Supervised learning for imbalance sleep stage classification problem

Bens Pardamean, Arif Budiarto, Bharuno Mahesworo, Alam Ahmad Hidayat, Digdo Sudigyo

Abstract


Sleep is commonly associated with physical and mental health status. Monitoring sleep quality from the dynamic of sleep stages during the night can be valuable. Data from the wearable device has the potential to be used as predictors to predict the sleep stage. Machine learning methods have been proposed to learn patterns within the data for the sleep-wake classification. The main challenge is the nature of imbalanced sleep, which means more sleep stages will be found in the data than in the wake stages. In this study, we utilized five different supervised methods complemented by three strategies to handle the imbalanced data problem. We implemented Random Forest, Support Vector Machine, XGBoost, Dense Neural Network (DNN), and Long-Short Term Memory (LSTM), to a publicly available dataset that consists of three features captured from a consumer wearable device and the labelled sleep stages. Among all the models, the DNN method was found to have the best performance, achieving a 12% higher specificity score (predictive capability for minority class) while using all features in the model. This achievement was affected by the implementation of custom class weight and SMOTE oversampling strategy. The class weight parameter avoided the model ignoring the minority class by giving more weight for this class in the loss function. The feature engineering process seemed to obscure the time-series characteristics within the data. This is why LSTM, as one of the best methods for time-series data, failed to perform well in this classification task. Our proposed method therefore can provide an insight into constructing more robust ML-based sleep quality prediction pipelines.

Full Text: PDF

Published: 2023-12-11

How to Cite this Article:

Bens Pardamean, Arif Budiarto, Bharuno Mahesworo, Alam Ahmad Hidayat, Digdo Sudigyo, Supervised learning for imbalance sleep stage classification problem, Commun. Math. Biol. Neurosci., 2023 (2023), Article ID 131

Copyright © 2023 Bens Pardamean, Arif Budiarto, Bharuno Mahesworo, Alam Ahmad Hidayat, Digdo Sudigyo. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Commun. Math. Biol. Neurosci.

ISSN 2052-2541

Editorial Office: [email protected]

 

Copyright ©2024 CMBN