Investigating Effects of the Window Size on Stress Detection Through Machine Learning

Recently, stress detection has become an important research area with the increased usage of sensor technologies. In this study, the effect of segmenting the dataset with various window sizes on stress classification was studied. Publicly-accessible dataset, Wearable Stress and Affect Detection (WESAD) was employed and stress classification was performed. Only the data of the chest sensors namely electrocardiogram (ECG), electrodermal activity (EDA), electromyography (EMG) and temperature (TEMP) were used. Sensor data were segmented using the sliding window technique with time window sizes ranging from 10 to 120 seconds. Then, the segmented data were used in the extraction of temporal and spectral features. The derived temporal and spectral features were employed to train and test the classification algorithms. In this study binary classification method was used. Decision Tree (DT), k Nearest Neighbors (k-NN) and Linear Support Vector Classification (LinearSVC) were used as classification algorithms. The data tested with classification algorithms were evaluated according to metrics namely accuracy, F1 score, precision and recall. The results provide guidance for evaluating the implications of various window sizes on classification efficiency and also provide important findings for determining the most appropriate window size parameters and machine learning algorithms for stress classification.

Authors

Institutions

Publication Details

Published
2025-08-07
DOI
https://doi.org/10.1109/acdsa65407.2025.11166271
Primary Topic
Structural Health Monitoring Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Investigating Effects of the Window Size on Stress Detection Through Machine Learning

Gonca Uslu Özküçük, Mustafa Burunkaya
Structural Health Monitoring Techniques
article

Investigating Effects of the Window Size on Stress Detection Through Machine Learning

Gonca Uslu Özküçük, Mustafa Burunkaya
article en

Abstract

Recently, stress detection has become an important research area with the increased usage of sensor technologies. In this study, the effect of segmenting the dataset with various window sizes on stress classification was studied. Publicly-accessible dataset, Wearable Stress and Affect Detection (WESAD) was employed and stress classification was performed. Only the data of the chest sensors namely electrocardiogram (ECG), electrodermal activity (EDA), electromyography (EMG) and temperature (TEMP) were used. Sensor data were segmented using the sliding window technique with time window sizes ranging from 10 to 120 seconds. Then, the segmented data were used in the extraction of temporal and spectral features. The derived temporal and spectral features were employed to train and test the classification algorithms. In this study binary classification method was used. Decision Tree (DT), k Nearest Neighbors (k-NN) and Linear Support Vector Classification (LinearSVC) were used as classification algorithms. The data tested with classification algorithms were evaluated according to metrics namely accuracy, F1 score, precision and recall. The results provide guidance for evaluating the implications of various window sizes on classification efficiency and also provide important findings for determining the most appropriate window size parameters and machine learning algorithms for stress classification.

Ostim Technical University (TR), Gazi University (TR)
Openalex Percentile: Top 73%
Structural Health Monitoring Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.