Your new experience awaits. Try the new design now and help us make it even better

METHODS article

Front. Digit. Health

Sec. Health Informatics

Volume 7 - 2025 | doi: 10.3389/fdgth.2025.1523381

This article is part of the Research TopicUtilizing Artificial Intelligence Techniques to Detect Major Health Events Using Physiological SignalsView all 3 articles

Investigating Lightweight and Interpretable Machine Learning Models for Efficient and Explainable Stress Detection

Provisionally accepted
Debasish  GhoseDebasish Ghose1*Ayan  ChatterjeeAyan Chatterjee2Indika  A M BalapuwadugeIndika A M Balapuwaduge3Yuan  LinYuan Lin1Soumya  P DashSoumya P Dash4
  • 1Kristiania University College, Oslo, Norway
  • 2Norwegian Institute for Air Research, Kjeller, Norway
  • 3University of Agder, Kristiansand, Vest-Agder, Norway
  • 4Indian Institute of Technology Bhubaneswar, Bhubaneswar, Odisha, India

The final, formatted version of the article will be published soon.

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 seconds. Furthermore, our study has incorporated local interpretable model-agnostic explanations to provide comprehensive insights into the predictions made by the k-NN-based architecture. In future, we will examine the feasibility of deploying these models on edge devices, considering their computational efficiency and the potential for real-time decision-making.

Keywords: Stress detection, ML Models, IoT device, Explainable AI, Health

Received: 05 Nov 2024; Accepted: 21 Jul 2025.

Copyright: © 2025 Ghose, Chatterjee, Balapuwaduge, Lin and Dash. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: Debasish Ghose, Kristiania University College, Oslo, Norway

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.