Gå til innhold
Vitenskapelig tidsskriftspublikasjon

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

Ghose, Debasish; Chatterjee, Ayan; Balapuwaduge, Indika A.M.; Lin, Yuan; Dash, Soumya P.

Publikasjonsdetaljer

Tidsskrift: Frontiers in Digital Health, vol. 7, 1523381, 2025

Doi: doi.org/10.3389/fdgth.2025.1523381

Sammendrag:
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.