Cross Dataset Analysis for Generalizability of HRV-Based Stress Detection Models
Overview
Authors
Affiliations
Stress is an increasingly prevalent mental health condition across the world. In Europe, for example, stress is considered one of the most common health problems, and over USD 300 billion are spent on stress treatments annually. Therefore, monitoring, identification and prevention of stress are of the utmost importance. While most stress monitoring is carried out through self-reporting, there are now several studies on stress detection from physiological signals using Artificial Intelligence algorithms. However, the generalizability of these models is only rarely discussed. The main goal of this work is to provide a monitoring proof-of-concept tool exploring the generalization capabilities of Heart Rate Variability-based machine learning models. To this end, two Machine Learning models are used, Logistic Regression and Random Forest to analyze and classify stress in two datasets differing in terms of protocol, stressors and recording devices. First, the models are evaluated using leave-one-subject-out cross-validation with train and test samples from the same dataset. Next, a cross-dataset validation of the models is performed, that is, leave-one-subject-out models trained on a Multi-modal Dataset for Real-time, Continuous Stress Detection from Physiological Signals dataset and validated using the University of Waterloo stress dataset. While both logistic regression and random forest models achieve good classification results in the independent dataset analysis, the random forest model demonstrates better generalization capabilities with a stable F1 score of 61%. This indicates that the random forest can be used to generalize HRV-based stress detection models, which can lead to better analyses in the mental health and medical research field through training and integrating different models.
Romaniszyn-Kania P, Pollak A, Kania D, Mitas A Sci Rep. 2025; 15(1):8382.
PMID: 40069355 PMC: 11897178. DOI: 10.1038/s41598-025-92368-z.
Stress management with HRV following AI, semantic ontology, genetic algorithm and tree explainer.
Chatterjee A, Riegler M, Ganesh K, Halvorsen P Sci Rep. 2025; 15(1):5755.
PMID: 39962099 PMC: 11833117. DOI: 10.1038/s41598-025-87510-w.
Adoption of Digital Therapeutics in Europe.
Fassbender A, Donde S, Silva M, Friganovic A, Stievano A, Costa E Ther Clin Risk Manag. 2025; 20:939-954.
PMID: 39741688 PMC: 11687304. DOI: 10.2147/TCRM.S489873.
Velmovitsky P, Alencar P, Leatherdale S, Cowan D, Pelegrini Morita P Digit Health. 2024; 10:20552076241249931.
PMID: 39281042 PMC: 11394344. DOI: 10.1177/20552076241249931.
Mahawan T, Luckett T, Mielgo Iza A, Pornputtapong N, Caamano Gutierrez E BMC Med Inform Decis Mak. 2024; 24(Suppl 4):175.
PMID: 38902676 PMC: 11191155. DOI: 10.1186/s12911-024-02578-0.