{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,20]],"date-time":"2026-11-20T18:04:17Z","timestamp":1795197857848,"version":"4.10.3"},"reference-count":43,"publisher":"Frontiers Media SA","license":[{"start":{"date-parts":[[2025,8,13]],"date-time":"2025-08-13T00:00:00Z","timestamp":1755043200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["frontiersin.org"],"crossmark-restriction":true},"short-container-title":["Front. Digit. Health"],"abstract":"<jats:p>Stress is a common human reaction to demanding circumstances, and prolonged and excessive stress can have detrimental effects on both mental and physical health. Heart rate variability (HRV) is widely used as a measure of stress due to its ability to capture variations in the time intervals between heartbeats. However, achieving high accuracy in stress detection through machine learning (ML), using a reduced set of statistical features extracted from HRV, remains a significant challenge. In this study, we aim to address these challenges by proposing lightweight ML models that can effectively detect stress using minimal HRV features and are computationally efficient enough for IoT deployment. We have developed ML models incorporating efficient feature selection techniques and hyper-parameter tuning. The publicly available SWELL-KW dataset has been utilized for evaluating the performance of our models. Our results demonstrate that lightweight models such as <jats:inline-formula><mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" id=\"IM1\"><mml:mi>k<\/mml:mi><\/mml:math><\/jats:inline-formula>-NN and Decision Tree can achieve competitive accuracy while ensuring lower computational demands, making them ideal for real-time applications. Promisingly, among the developed models, the <jats:inline-formula><mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" id=\"IM2\"><mml:mi>k<\/mml:mi><\/mml:math><\/jats:inline-formula>-nearest neighbors (<jats:inline-formula><mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" id=\"IM3\"><mml:mi>k<\/mml:mi><\/mml:math><\/jats:inline-formula>-NN) algorithm has emerged as the best-performing model, achieving an accuracy score of 99.3<jats:inline-formula><mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" id=\"IM4\"><mml:mi mathvariant=\"normal\">%<\/mml:mi><\/mml:math><\/jats:inline-formula> using only three selected features. To confirm real-world deployability, we benchmarked the best model on an 8\u2009GB NVIDIA Jetson Orin Nano edge device, where it retained 99.26% accuracy and completed training in 31\u2009s. Furthermore, our study has incorporated local interpretable model-agnostic explanations to provide comprehensive insights into the predictions made by the <jats:inline-formula><mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" id=\"IM5\"><mml:mi>k<\/mml:mi><\/mml:math><\/jats:inline-formula>-NN-based architecture.<\/jats:p>","DOI":"10.3389\/fdgth.2025.1523381","type":"journal-article","created":{"date-parts":[[2025,8,13]],"date-time":"2025-08-13T05:35:27Z","timestamp":1755063327000},"update-policy":"https:\/\/doi.org\/10.3389\/crossmark-policy","source":"Crossref","is-referenced-by-count":17,"title":["Investigating lightweight and interpretable machine learning models for efficient and explainable stress detection"],"prefix":"10.3389","volume":"7","author":[{"given":"Debasish","family":"Ghose","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Ayan","family":"Chatterjee","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Indika A. M.","family":"Balapuwaduge","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yuan","family":"Lin","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Soumya P.","family":"Dash","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1965","published-online":{"date-parts":[[2025,8,13]]},"reference":[{"key":"B1","volume-title":"Stress: are we coping?","year":"2018"},{"key":"B2","doi-asserted-by":"crossref","DOI":"10.1109\/SPCOM55316.2022.9840812","article-title":"Automatic depression detection based on merged convolutional neural networks using facial features","author":"Acharya","year":""},{"key":"B3","doi-asserted-by":"publisher","first-page":"6088","DOI":"10.1007\/s10489-020-02131-2","article-title":"Depression and anorexia detection in social media as a one-class classification problem","volume":"51","author":"Aguilera","year":"2021","journal-title":"Applied Intelligence"},{"key":"B4","doi-asserted-by":"publisher","first-page":"94","DOI":"10.1016\/j.neubiorev.2013.11.005","article-title":"Biological and psychological markers of stress in humans: focus on the trier social stress test","volume":"38","author":"Allen","year":"2014","journal-title":"Neurosci Biobehav Rev"},{"key":"B5","doi-asserted-by":"crossref","first-page":"37","DOI":"10.1109\/WD.2018.8361691","article-title":"Real-time stress evaluation using wireless body sensor networks","volume-title":"2018 Wireless Days (WD)","author":"Koussaifi","year":"2018"},{"key":"B6","doi-asserted-by":"crossref","DOI":"10.1109\/ECBIOS.2019.8807835","article-title":"Evaluation of mental stress and heart rate variability derived from wrist-based photoplethysmography","author":"Chen","year":""},{"key":"B7","doi-asserted-by":"publisher","first-page":"394","DOI":"10.1016\/j.biopsycho.2010.03.010","article-title":"Autonomic nervous system activity in emotion: a review","volume":"84","author":"Kreibig","year":"2010","journal-title":"Biol Psychol"},{"key":"B8","doi-asserted-by":"publisher","first-page":"258","DOI":"10.3389\/fpubh.2017.00258","article-title":"An overview of heart rate variability metrics and norms","volume":"5","author":"Shaffer","year":"2017","journal-title":"Front Public Health"},{"key":"B9","doi-asserted-by":"publisher","first-page":"459","DOI":"10.9758\/cpn.2019.17.4.459","article-title":"Heart and brain interaction of psychiatric illness: a review focused on heart rate variability, cognitive function, and quantitative electroencephalography","volume":"17","author":"Jung","year":"2019","journal-title":"Clin Psychopharmacol Neurosci"},{"key":"B10","doi-asserted-by":"crossref","DOI":"10.18653\/v1\/N16-3020","article-title":"\u201cWhy should i trust you?\u201d explaining the predictions of any classifier","author":"Ribeiro","year":""},{"key":"B11","first-page":"4768","article-title":"A unified approach to interpreting model predictions","volume":"30","author":"Lundberg","year":"2017","journal-title":"Adv Neural Inf Process Syst"},{"key":"B12","doi-asserted-by":"publisher","first-page":"9657","DOI":"10.1109\/TNNLS.2022.3159573","article-title":"MuLHiTA: a novel multiclass classification framework with multibranch LSTM and hierarchical temporal attention for early detection of mental stress","volume":"34","author":"Xia","year":"2022","journal-title":"IEEE Trans Neural Netw Learn Syst"},{"key":"B13","doi-asserted-by":"publisher","first-page":"1153","DOI":"10.3390\/bios12121153","article-title":"Classification of mental stress from wearable physiological sensors using image-encoding-based deep neural network","volume":"12","author":"Ghosh","year":"2022","journal-title":"Biosensors"},{"key":"B14","doi-asserted-by":"crossref","DOI":"10.1109\/BIA50171.2020.9244492","article-title":"Improved non-contact mental stress detection via bioradar","author":"Anishchenko","year":""},{"key":"B15","doi-asserted-by":"publisher","first-page":"746","DOI":"10.1109\/JBHI.2020.3002336","article-title":"Estimating left ventricle ejection fraction levels using circadian heart rate variability features and support vector regression models","volume":"25","author":"Alkhodari","year":"2020","journal-title":"IEEE J Biomed Health Inform"},{"key":"B16","doi-asserted-by":"publisher","first-page":"33727","DOI":"10.1109\/ACCESS.2018.2844308","article-title":"A deep learning approach for vital signs compression and energy efficient delivery in mhealth systems","volume":"6","author":"Said","year":"2018","journal-title":"IEEE Access"},{"key":"B17","first-page":"1","article-title":"Evaluating different configurations of machine learning models and their transfer learning capabilities for stress detection using heart rate","volume":"14","author":"Albaladejo-Gonz\u00e1lez","year":"2022","journal-title":"J Ambient Intell Hum Comput"},{"key":"B18","doi-asserted-by":"publisher","first-page":"147","DOI":"10.28991\/ESJ-2023-07-01-011","article-title":"Evaluation of machine learning algorithms for emotions recognition using electrocardiogram","volume":"7","author":"Khan","year":"2022","journal-title":"Emerg Sci J"},{"key":"B19","doi-asserted-by":"publisher","first-page":"227","DOI":"10.1109\/TAFFC.2016.2610975","article-title":"Detecting work stress in offices by combining unobtrusive sensors","volume":"9","author":"Koldijk","year":"2018","journal-title":"IEEE Trans Affect Comput"},{"key":"B20","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1109\/ACCESS.2023.3274478","article-title":"Multi-class stress detection through heart rate variability: a deep neural network based study","volume":"11","author":"Mortensen","year":"2023","journal-title":"IEEE Access"},{"key":"B21","doi-asserted-by":"crossref","DOI":"10.1109\/ISRITI54043.2021.9702802","article-title":"Classification of stress in office work activities using extreme learning machine algorithm and one-way anova f-test feature selection","author":"Perangin-Angin","year":""},{"key":"B22","doi-asserted-by":"crossref","DOI":"10.1109\/ICASSP40776.2020.9053985","article-title":"Self-supervised learning for ECG-based emotion recognition","author":"Sarkar","year":""},{"key":"B23","doi-asserted-by":"publisher","first-page":"359","DOI":"10.1016\/j.procs.2017.09.090","article-title":"Stress detection in working people","volume":"115","author":"Sriramprakash","year":"2017","journal-title":"Procedia Comput Sci"},{"key":"B24","doi-asserted-by":"publisher","first-page":"947168","DOI":"10.3389\/fnins.2022.947168","article-title":"Real-time mental stress detection using multimodality expressions with a deep learning framework","volume":"16","author":"Zhang","year":"2022","journal-title":"Front Neurosci"},{"key":"B25","volume-title":"Interpreting Machine Learning Models: Learn Model Interpretability and Explainability Methods","author":"Nandi","year":"2021"},{"key":"B26","doi-asserted-by":"publisher","first-page":"95872","DOI":"10.1109\/ACCESS.2021.3090215","article-title":"Interpretable pneumonia detection by combining deep learning and explainable models with multisource data","volume":"9","author":"Ren","year":"2021","journal-title":"IEEE Access"},{"key":"B27","doi-asserted-by":"crossref","DOI":"10.1145\/2663204.2663257","article-title":"The SWELL knowledge work dataset for stress and user modeling research","author":"Koldijk","year":""},{"key":"B28","first-page":"413","article-title":"Personalized support for well-being at work: an overview of the SWELL project","volume":"30","author":"Kraaij","year":"2020","journal-title":"User Model User-adapt Interact"},{"key":"B29","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1007\/s10489-021-02550-9","article-title":"A comprehensive survey on feature selection in the various fields of machine learning","volume":"52","author":"Dhal","year":"2022","journal-title":"Appl Intell"},{"key":"B30","doi-asserted-by":"publisher","first-page":"12041","DOI":"10.1109\/JIOT.2021.3133002","article-title":"Online hour-ahead load forecasting using appropriate time-delay neural network based on multiple correlation\u2013multicollinearity analysis in IoT energy network","volume":"9","author":"Zamee","year":"2022","journal-title":"IEEE Internet Things J"},{"key":"B31","doi-asserted-by":"crossref","first-page":"259","DOI":"10.1016\/0169-7439(89)80095-4","article-title":"Analysis of variance (ANOVA)","volume":"6","author":"Lars","year":"1989","journal-title":"Chemom Intell Lab Syst"},{"key":"B32","doi-asserted-by":"publisher","first-page":"3","DOI":"10.1007\/s10994-006-6226-1","article-title":"Extremely randomized trees","volume":"63","author":"Geurts","year":"2006","journal-title":"Mach Learn"},{"key":"B33","doi-asserted-by":"publisher","first-page":"1353","DOI":"10.1007\/s13369-021-05947-3","article-title":"Analysis of machine learning classifiers for early detection of DDoS attacks on IoT devices","volume":"47","author":"Gaur","year":"2022","journal-title":"Arab J Sci Eng"},{"key":"B34","volume-title":"A Practical Guide to Support Vector Classification","author":"Hsu","year":"2003"},{"key":"B35","doi-asserted-by":"publisher","first-page":"125","DOI":"10.1080\/00401706.1974.10489157","article-title":"The relationship between variable selection and data augmentation and a method for prediction","volume":"16","author":"Allen","year":"1974","journal-title":"Technometrics"},{"key":"B36","doi-asserted-by":"crossref","DOI":"10.1007\/978-981-19-1412-6_16","article-title":"Computational complexity and analysis of supervised machine learning algorithms","author":"Singh","year":""},{"key":"B37","volume-title":"Discriminatory Analysis: Nonparametric Discrimination, Consistency Properties","author":"Fix","year":"1985"},{"key":"B38","volume-title":"Machine Learning","author":"Mitchell","year":"1997"},{"key":"B39","doi-asserted-by":"crossref","DOI":"10.1007\/978-0-387-84858-7","volume-title":"The Elements of Statistical Learning: Data Mining, Inference, and Prediction","author":"Hastie","year":"2009"},{"key":"B40","doi-asserted-by":"publisher","first-page":"352","DOI":"10.1016\/S1532-0464(03)00034-0","article-title":"Logistic regression and artificial neural network classification models: a methodology review","volume":"35","author":"Dreiseitl","year":"2002","journal-title":"J Biomed Inform"},{"key":"B41","volume-title":"Machine Learning: A Probabilistic Perspective","author":"Murphy","year":"2012"},{"key":"B42","volume-title":"Artificial Intelligence A Modern Approach","author":"Russell","year":"2010"},{"key":"B43","article-title":"Data from: Time complexity of ml models","year":""}],"container-title":["Frontiers in Digital Health"],"original-title":[],"link":[{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/fdgth.2025.1523381\/full","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,8,13]],"date-time":"2025-08-13T05:35:30Z","timestamp":1755063330000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/fdgth.2025.1523381\/full"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,8,13]]},"references-count":43,"alternative-id":["10.3389\/fdgth.2025.1523381"],"URL":"https:\/\/doi.org\/10.3389\/fdgth.2025.1523381","relation":{},"ISSN":["2673-253X"],"issn-type":[{"value":"2673-253X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,8,13]]},"article-number":"1523381"}}