One does not fit all: Detecting work-related stress from mouse, keyboard, and cardiac data in the field
Naegelin, M.; Weibel, R. P.; Kerr, J. I.; Wangenheim, F.; Schinazi, V. R.; La Marca, R.; Hoelscher, C.; Nater, U. M.; Ferrario, A.
Show abstract
BackgroundContinuously and unobtrusively monitoring work-related stress may help combat its detrimental effects on mental and physical health. For work in offices specifically, mouse and keyboard data have been suggested as highly suitable data sources for stress detection, in addition to physiological data such as heart rate variability (HRV). However, previous studies have yielded mixed results regarding the potential of mouse and keyboard data to detect stress, and very few works have examined the connection in real work environments. Moreover, concerns regarding the robustness and validity of existing stress detection approaches have been raised, emphasising the need for more rigorous investigations in the field. MethodsWe conducted an 8-week observational field study with office employees (N = 36) where we collected mouse, keyboard, and cardiac data as well as self-reported stress during working hours. We derived mouse movement, keystroke dynamics, and HRV features, and trained regression models to detect self-reported stress levels using machine learning algorithms including Elastic Net, Random Forest, eXtreme Gradient Boosting (XGBoost), and Recurrent Neural Networks in two distinct modelling approaches: (1) one-fits-all, and (2) personalised. The first approach aims to detect the stress levels of a participant using training data from other participants. In the second, individual models are trained per participant. ResultsThe one-fits-all modelling approach yields modest correlations with true labels (Spear-mans{rho} = 0.078) under leave-one-subject-out cross-validation, with a slight improvement when incorporating time series of feature values (Spearmans{rho} = 0.096). In the personalised approach, XGBoost models trained on mouse and keyboard features reach an average Spearmans{rho} of 0.188 under blocked cross-validation. When optimised across machine learning models and feature sets, performance of the personalised approach further improves, reaching an average Spearmans{rho} of 0.296. ConclusionOur results suggest that that developing robust and valid stress detection models from in-field data remains challenging, reflecting the complexity of affective computing in naturalistic settings. Personalised modelling approaches show encouraging potential and warrant further exploration. We offer actionable recommendations to advance research on automated stress detection in real-world settings and openly share our dataset to promote innovation and collaboration within the research community.
Matching journals
The top 4 journals account for 50% of the predicted probability mass.
Similar papers in this journal
- Statistical and machine learning models for classification of human wear and delivery days in accelerometry data 94%
- On the reliability of wearable technology: A tutorial on measuring heart rate and heart rate variability in the wild 94%
- Measuring Repositioning in Home Care for Pressure Injury Prevention and Management 93%
Similar papers in this journal
- From theoretical models to practical deployment: A perspective and case study of opportunities and challenges in AI-driven healthcare research for low-income settings 94%
- Evaluating and mitigating unfairness in multimodal remote mental health assessments 94%
- Population Analysis Of Mortality Risk: Predictive Models Using Motion Sensors For 100,000 Participants In The UK Biobank National Cohort 93%
Similar papers in this journal
- High-Resolution Digital Phenotypes from Consumer Wearables Enhance Prediction of Cardiometabolic Risk Markers 93%
- Quantified Flu: an individual-centered approach to gaining sickness-related insights from wearable data 93%
- Factors Associated with Longitudinal Psychological and Physiological Stress in Health Care Workers During the COVID-19 Pandemic 91%
Similar papers in this journal
Similar papers in this journal
- Mother-child autonomic nervous system interaction as an indication of parental stress: 24-hour cross recurrence plot analysis 94%
- Rett syndrome severity estimation with the BioStamp nPoint using interactions between heart rate variability and body movement 93%
- A geometric approach to human stress based on stress-related surrogate measures 93%
"Similar papers" are the closest papers from that journal in the model's embedding space. They show what the match is built on, but the ranking comes mostly from a classifier over the whole training set, not from these examples alone.