# QoL_Stress Dataset (version 1.1)
## Authors
- Amaia Calvo¹*, Ander Cejudo¹², Cristina Martin¹²³
¹ Fundación Vicomtech, Basque Research and Technology Alliance (BRTA), Donostia-San Sebastián, Spain
² Faculty of Engineering, University of Deusto, Bilbao, Spain
³ BioGipuzkoa Health Research Institute, eHealth Group, Donostia-San Sebastián, Spain
## Overview
The QoL_Stress dataset contains Fitbit Charge 6 heart-rate, single-lead ECG and electrodermal activity (EDA) recordings and PSS-14 and STAI-S questionnaire responses from 66 adult employees of one research institute. Each participant completed one session of about 30 minutes in a fixed order: PSS-14, a 5-minute relaxation video, an ECG and EDA scan, STAI-S, Geometry Dash plus a Stroop task, a second ECG and EDA scan, and a second STAI-S.
## Background
The `phase` field has two values: `relax` (relaxation phase: relaxation video) and `stress` (stress-induction phase: Geometry Dash plus Stroop). The label identifies the phase of the study in which a record was acquired; it does not indicate whether the participant was relaxed or stressed, which was not independently established. The order was fixed, with no counterbalancing, no control task and no record of task performance; a paired analysis found no detectable difference in ECG heart rate or EDA between the phases (see the Data Descriptor).
## Dataset Structure
The main folder contains the following CSV files:
- **participants.csv** — participant demographics
**Fields:** `username`, `sex`, `age`, `education_level`, `job_category`.
- **ecg.csv** — ECG scans (30 s, 250 Hz, device units; one per participant and phase)
**Fields:** `_id`, `reading_id`, `reading_time`, `wire_id`, `result_classification`, `heart_rate`, `heart_rate_alert`, `firmware_version`, `device_app_version`, `hardware_version`, `username`, `phase`, `waveform_samples`.
- **eda.csv** — Electrodermal activity (EDA) scans (124 scans; eight could not be acquired)
**Fields:** `username`, `phase`, `time_sec`, `valid_data`, `activation`, `scl_avg` (device-reported; labelled microsiemens in the export; not validated against a reference sensor).
- **fitbit_heart_rate_per_minute.csv** — minute-level heart rate
**Fields:** `username`, `time`, `value`.
- **fitbit_heart_rate_per_second.csv** — second-level heart rate (median sampling interval 2 s, about 0.4–0.5 Hz, not 1 Hz)
**Fields:** `username`, `time`, `value`.
- **fitbit_heart_rate_summary.csv** — whole-day summary of heart rate zones (not specific to the session)
**Fields:** `username`, `zone_name`, `min`, `max`, `minutes`, `caloriesOut`.
- **pss_14.csv** — Perceived Stress Scale questionnaire responses
**Fields:** `username`, `time`, `score`, plus one column per question.
- **stai.csv** — State-Trait Anxiety Inventory (state) questionnaire responses
**Fields:** `username`, `time`, `phase`, `score`, plus one column per question, and `incomplete_form` (new in version 1.1).
**Statistics:**
- 66 participants
- 132 ECG records
- 124 EDA scans (20,094 rows)
- 66 participants with Fitbit heart rate (54,462 per-second rows; 2,131 per-minute rows)
## Data Description
For a detailed description of each data type and which files contain it, see `data_description.csv`.
## Notes
- `username` is a code that each participant generated with a SHA-256 tool from a pseudonym of their choice. One code is the hash of an empty string.
- **Times.** The release contains no calendar dates. `time` and `reading_time` are times of day (hh:mm:ss). The heart-rate export has no documented time zone, and `reading_time` is not consistently aligned with it: in 15 of 132 scans it differs by one hour (two scans by four hours) from the device timestamp of the scan, and for three participants the heart-rate record does not cover one or both scans. Do not assume exact synchronisation between modalities.
- **STAI-S incomplete forms.** Four forms (three after the relaxation video, one after game plus Stroop) are incomplete: unanswered items were exported as the first response category (`0. Not at all`) and `score` omits them, so `score` is a partial sum in these forms. They are flagged with `incomplete_form = 1`; do not use their `score` as a STAI-S total (for the 128 other forms `score` is the conventional 20–80 total).
- **Questionnaire values** are stored as response text prefixed with the code (e.g. `3. Very much`; STAI-S codes 0–3, PSS-14 codes 0–4). The questionnaires were administered and are stored in English.
- **ECG.** Waveforms are space-separated integers in device units (not converted to millivolts). Most scans have 7,500 samples (30 s at 250 Hz); 25 scans have between 7,488 and 7,501 samples, as exported by the device. Seven scans with heart rate below 50 bpm are `UNCLASSIFIABLE` (the Fitbit app does not assess rhythm below 50 bpm). `wire_id` identifies one of the two watches used in the study, not a participant.
## Usage Notes
The dataset can be used to:
- Develop and test methods for short, single-lead consumer ECG recordings.
- Examine the heart-rate and EDA outputs of a consumer wearable.
- Link questionnaire responses with the scans in exploratory analyses.
It is not a validated stress-detection benchmark. Users must not attempt to identify participants or link the records to other data sources.
## Ethics
- Protocol approved by the Ethics Committee for Research of the Gipuzkoa Health Area (MAR-QOL-2024).
- All participants gave written informed consent, including an explicit authorisation to publish their pseudonymised individual records in open-access repositories.
- The data are pseudonymised personal data (not anonymous) and are shared on the basis of this consent.
## Version history
- **1.1:** (a) `_id` and `reading_id` in `ecg.csv`, which encoded acquisition dates, were replaced by random identifiers of the same format; (b) a calendar date in one `reading_time` value was removed; (c) `incomplete_form` was added to `stai.csv`; (d) in 18 waveforms, a stray space after the minus sign of a negative sample (e.g. `- 39`) was removed (values unchanged); (e) in `pss_14.csv`, the text of item 9 and the response labels `0. Nunca` and `3. A menuda`, which had been exported in Spanish, were replaced by their English equivalents (`In the last month, how often have you been able to control difficulties in your life?`, `0. Never`, `3. Often`; codes unchanged); (f) README and `data_description.csv` corrected. All measured values, participant codes and demographic variables are unchanged.
- **1.0:** first release.
## Licence
CC BY 4.0 (see `LICENSE.txt`).
## Acknowledgements
Thanks to all participants and the data collection team. This work was supported by Fundación Vicomtech.