Investigating lightweight and interpretable machine learning models for efficient and explainable stress detection.

IF 3.2 Q1 HEALTH CARE SCIENCES & SERVICES
Frontiers in digital health Pub Date : 2025-08-13 eCollection Date: 2025-01-01 DOI:10.3389/fdgth.2025.1523381
Debasish Ghose, Ayan Chatterjee, Indika A M Balapuwaduge, Yuan Lin, Soumya P Dash
{"title":"Investigating lightweight and interpretable machine learning models for efficient and explainable stress detection.","authors":"Debasish Ghose, Ayan Chatterjee, Indika A M Balapuwaduge, Yuan Lin, Soumya P Dash","doi":"10.3389/fdgth.2025.1523381","DOIUrl":null,"url":null,"abstract":"<p><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 <math><mi>k</mi></math> -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 <math><mi>k</mi></math> -nearest neighbors ( <math><mi>k</mi></math> -NN) algorithm has emerged as the best-performing model, achieving an accuracy score of 99.3 <math><mi>%</mi></math> using only three selected features. To confirm real-world deployability, we benchmarked the best model on an 8 GB NVIDIA Jetson Orin Nano edge device, where it retained 99.26% accuracy and completed training in 31 s. Furthermore, our study has incorporated local interpretable model-agnostic explanations to provide comprehensive insights into the predictions made by the <math><mi>k</mi></math> -NN-based architecture.</p>","PeriodicalId":73078,"journal":{"name":"Frontiers in digital health","volume":"7 ","pages":"1523381"},"PeriodicalIF":3.2000,"publicationDate":"2025-08-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12380676/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Frontiers in digital health","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.3389/fdgth.2025.1523381","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2025/1/1 0:00:00","PubModel":"eCollection","JCR":"Q1","JCRName":"HEALTH CARE SCIENCES & SERVICES","Score":null,"Total":0}
引用次数: 0

Abstract

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 k -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 k -nearest neighbors ( k -NN) algorithm has emerged as the best-performing model, achieving an accuracy score of 99.3 % using only three selected features. To confirm real-world deployability, we benchmarked the best model on an 8 GB NVIDIA Jetson Orin Nano edge device, where it retained 99.26% accuracy and completed training in 31 s. Furthermore, our study has incorporated local interpretable model-agnostic explanations to provide comprehensive insights into the predictions made by the k -NN-based architecture.

Abstract Image

Abstract Image

Abstract Image

研究轻量级和可解释的机器学习模型,以实现高效和可解释的应力检测。
压力是人类对苛刻环境的一种常见反应,长期和过度的压力会对精神和身体健康产生有害影响。心率变异性(HRV)被广泛用于测量压力,因为它能够捕捉心跳间隔时间的变化。然而,通过机器学习(ML),利用从HRV中提取的一组简化的统计特征,实现高精度的应力检测仍然是一个重大挑战。在本研究中,我们的目标是通过提出轻量级ML模型来解决这些挑战,该模型可以使用最小的HRV特征有效地检测压力,并且计算效率足以用于物联网部署。我们已经开发了包含有效特征选择技术和超参数调优的ML模型。公开可用的well - kw数据集已被用于评估我们的模型的性能。我们的研究结果表明,k -NN和Decision Tree等轻量级模型可以在确保较低的计算需求的同时实现具有竞争力的准确性,使其成为实时应用的理想选择。有希望的是,在已开发的模型中,k近邻(k -NN)算法已经成为表现最好的模型,仅使用三个选定的特征就实现了99.3%的准确率得分。为了确认真实世界的可部署性,我们在8gb的NVIDIA Jetson Orin Nano edge设备上对最佳模型进行了基准测试,在那里它保持了99.26%的准确率,并在31秒内完成了训练。此外,我们的研究结合了局部可解释的模型不可知论解释,为基于k - nn的架构所做的预测提供了全面的见解。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
4.20
自引率
0.00%
发文量
0
审稿时长
13 weeks
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信