ECG-Based Stress Prediction with Power Spectral Density Features and Classification Models

Md. Mohibbul Haque Chowdhury 1 , Nafisa Anjum 2 , and Md. Rokonuzzaman Mim 3 · 2025

Read ECG-Based Stress Prediction with Power Spectral Density Features and Classification Models by Md. Mohibbul Haque Chowdhury 1 , Nafisa Anjum 2 , and Md. Rokonuzzaman Mim 3 (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2509-01923.txt.

Introduction

Md Mohibbul Haque Chowdhury, Nafisa Anjum, and Md Rokonuzzaman Mim predict stress from heart signals gathered during daily activities. Stress drives heart disease, depression, and other long term illness, so reliable monitoring matters. Their signals are electrocardiograms, traces of heart electric activity, recorded while sitting, walking, and jogging. Frequency features from power spectral analysis capture nerve system balance.

Those features feed five classic learning models, while two deep models read raw signals directly. Ensemble methods, which blend many models, lead the classic group with high accuracy. A memory based deep network that tracks time order tops all models at higher accuracy still. Balanced scores across error types back its strength. The mix points toward real time stress monitoring tools.

Catalog record

CREATORMd. Mohibbul Haque Chowdhury 1 , Nafisa Anjum 2 , and Md. Rokonuzzaman Mim 3
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE27 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2509-01923

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

ECG-Based Stress Prediction with Power Spectral Density Features and Classification Models Md. Mohibbul Haque Chowdhury 1 , Nafisa Anjum 2 , and Md. Rokonuzzaman Mim 3 Abstract Stress has emerged as a critical global health issue, contributing to cardiovascular disorders, depression, and several other long-term illnesses. Consequently, accurate and reliable stress monitoring systems are of growing importance. In this work, we propose a stress prediction framework based on electrocardiogram (ECG) signals recorded during multiple daily activities such as sitting, walking, and jogging. Frequency-domain indicators of autonomic nervous system activity were obtained through Power Spectral Density (PSD) analysis and utilized as input for machine learning models including Decision Tree, Random Forest, XGBoost, LightGBM, and CatBoost. In addition, deep learning approaches, namely Convolutional Neural Networks (CNN) and Long Short-Term Memory (LSTM) networks, were directly applied to the raw ECG signals. Our experiments highlight the effectiveness of ensemble-based classifiers, with CatBoost achieving 90% accuracy. Moreover, the LSTM model provided superior results, attaining 94% accuracy with balanced precision, recall, and F1-score, reflecting its strength in modeling temporal dependencies in ECG data. Overall, the findings suggest that integrating frequency-domain feature extraction with advanced learning algorithms enhances stress prediction and paves the way for real-time healthcare monitoring solutions. I Introduction Stress is a physiological and psychological response to demanding or threatening situations, and chronic high stress is associated with serious health issues including cardiovascular disease, depression, and impaired cognitive function [ 1 ] . Early detection of stress is important for preventing these outcomes and improving overall well-being [ 2 ] . Wearable sensors and biosignals provide a way to continuously monitor stress during daily [ 3 ] . Among these, the electrocardiogram (ECG) and heart rate variability (HRV) derived from ECG have proven to be reliable indicators of stress, reflecting autonomic nervous system responses to stressors [ 2 , 4 ] . Unlike self-reported assessments, physiological signals are not easily influenced by voluntary control, making them more objective markers of stress [ 5 , 6 ] . However, detecting stress in real-world settings is difficult because conditions like resting, sleeping, or walking alter physiological signals. Posture and activity changes can affect heart rate and HRV, leading to confusion in stress detection models. [ 7 ] . For instance, an increased heart rate may result from stress or physical movement, and distinguishing between the two requires contextual awareness. Few studies have incorporated lifestyle context into their stress prediction models. [ 3 ] , even though research shows that including context such as activity status (e.g., walking or resting) can improve prediction accuracy [ 7 , 3 ] . This limitation motivates researchers to predict stress across varied lifestyle situations using ECG signals and to investigate which conditions most strongly affect stress levels. To address these challenges, machine learning (ML) algorithms have been widely applied to stress classification using ECG and HRV features. Models such as Decision Trees and Random Forests perform well in physiological signal analysis, providing interpretability and robustness in noisy data. [ 8 , 9 ] . Ensemble-based boosting models, including CatBoost, XGBoost, and LightGBM, have also been applied to stress recognition. These methods exploit non-linear relationships in HRV features and achieve improved accuracy compared to individual classifiers [ 2 , 4 , 1 ] . Such tree-based and boosting algorithms remain appealing in wearable applications due to their efficiency and explainability [ 3 ] . With recent advances, deep learning (DL) methods have become increasingly prominent in stress detection research. Convolutional Neural Networks (CNNs) have been effective in extracting complex patterns directly from ECG signals. For instance, Kang et al. applied a CNN–LSTM model to ECG recordings and achieved high accuracy in mental stress classification [ 10 ] . Similarly, Ramteke et al. introduced an attentive CNN architecture that utilized ECG scalograms for detecting acute stress levels [ 11 ] . Other approaches have transformed one-dimensional ECG signals into two-dimensional image representations, enabling the use of pre-trained CNN models with transfer learning [ 12 , 5 ] . LSTM-based models have also demonstrated strong capability in capturing temporal dependencies of HRV sequences, further enhancing predictive performance [ 11 ] . Recent studies have also applied foundation models and Transformers for stress recognition, showing the potential of advanced DL frameworks in this area. [ 13 ] . Deep learning enables end-to-end modeling with high accuracy, as shown by multi-class studies achieving strong performance across stress levels. [ 14 ] . Fig. 1: Flow chart illustrating the workflow of the proposed study. In this work, we extend prior research by predicting stress across lifestyle situations such as sleeping, walking, and sitting. We extract Power Spectral Density (PSD) features from ECG signals as frequency-domain markers of autonomic activity. These features are used to train ML models (Decision Tree, Random Forest, CatBoost, XGBoost, LightGBM) and DL models (CNN and LSTM). By comparing performance across contexts, we identify how activity affects stress prediction and highlight the strengths and limitations of each approach. II Literature Review Early work on stress prediction used handcrafted features from ECG, especially heart rate variability (HRV), with traditional machine learning classifiers. HRV metrics from time and frequency domains, often estimated through Power Spectral Density (PSD), have proven reliable for stress detection. [ 2 ] . For example, Dalmeida and Masala [ 2 ] demonstrated that HRV features such as AVNN, SDNN, and RMSSD can achieve high recall in stress classification using models like Random Forest and Gradient Boosting. Szakonyi et al. [ 4 ] studied acute stress detection with Ambient Assisted Living sensors and compared classifiers, finding ensemble methods like XGBoost and Random Forest performed best. They also showed that combining HRV feature domains improves accuracy over frequency features alone. Other studies confirmed that ensemble models and boosting algorithms improve predictive accuracy. Dham et al. [ 9 ] reported that an ensemble stacking classifier combining ANN and SVM outperformed single models in stress detection tasks. Bobade and Vani [ 8 ] compared classical ML models against a feed-forward neural network using multimodal physiological data, finding that Random Forest and SVM achieved strong performance on binary and multi-class stress detection. An important challenge addressed in the literature is the variability of stress responses across individuals. Nkurikiyeyezu et al. [ 6 ] showed that generic models often fail to generalize, but incorporating person-specific calibration significantly improves predictive accuracy. Similarly, Elzeiny and Qaraqe [ 5 ] highlighted the importance of personalization when classifying stress with frequency and spatial-domain images derived from PPG signals, showing that person-specific models greatly outperform generic ones. Recent reviews emphasize the need to consider lifestyle context when building wearable stress detection systems. Taskasaplidis et al. [ 3 ] surveyed wearable-based stress detection methods and argued that incorporating contextual factors such as physical activity or posture is crucial for real-world use. Hongn et al. [ 7 ] collected a dataset of wearable signals under both acute stress and exercise conditions, demonstrating that machine learning models such as XGBoost can successfully differentiate mental stress from physical exertion. These findings highlight the necessity of context-aware stress prediction in everyday life. More recent work has turned to deep learning models to automatically extract features from ECG signals for stress prediction. CNNs and LSTMs have proven effective for

Read the complete text