Introduction
Sleep disorders such as insomnia and sleep apnea are becoming increasingly prevalent in modern society. Traditionally, clinical diagnosis relies on Polysomnography (PSG), an expensive and intrusive procedure conducted in a hospital setting involving numerous wired sensors. While consumer-grade wearables and smart devices now capture significant sleep-related data, there is a critical need for robust algorithms to translate this noisy sensor data into accurate quality assessments. This paper explores the application of 1D Convolutional Neural Networks (CNNs) to automate sleep quality prediction, benchmarking them against traditional machine learning models across diverse datasets.
Methodology
The researchers proposed a general CNN framework adapted for 1D data sequences, such as heart rate or survey responses. Unlike 2D CNNs used for image processing, these models are designed to extract features from temporal or tabular sequences. Two specific architectures were evaluated:
- $CONV-1D_1$: Incorporates Max Pooling layers to reduce dimensionality and create abstract representations of the input data.
- $CONV-1D_2$: Designed to preserve the dimensionality of intermediate representations to retain more detailed feature information throughout the network.
Both models follow a standard deep learning pipeline: a Convolutional layer with ReLU activation, Max Pooling, a Fully-connected layer, and a Dropout layer to mitigate overfitting before final Softmax classification.
These deep learning approaches were compared against five traditional baselines: Logistic Regression (LR), Decision Trees (DT), k-Nearest Neighbor (k-NN), Naïve Bayes (NB), and Support Vector Machines (SVM).
Experimental Setup
The study utilized three publicly available datasets from Kaggle to test the models' generalizability across different data types:
- Sleep-Study: A survey-based dataset (104 records) focusing on lifestyle habits like phone usage, breakfast consumption, and self-reported tiredness.
- Sleep Deprivation: 86 records containing 80 attributes, including demographics and Karolinska Sleep Questionnaire responses regarding anxiety and health.
- Sleep Cycle Data: 50 records featuring a mix of temporal data (start/end times) and sensor data (heart rate and step counts).
Results and Discussion
The experimental results indicate that 1D CNNs are highly competitive with traditional classifiers, often providing more consistent performance across different data types.
As shown in the comparative analysis, the $CONV-1D_2$ model achieved the highest accuracy on the Sleep Deprivation dataset at 65.23%, outperforming all traditional classifiers. While traditional models like Logistic Regression performed exceptionally well on specific datasets (e.g., 63.46% on Sleep-Study), the CNN-based approaches demonstrated greater robustness across the three diverse datasets.
A key insight from the study is that dimensionality preservation in $CONV-1D_2$ generally led to better performance than the abstraction in $CONV-1D_1$. This suggests that for small, feature-rich datasets, maintaining detail throughout the network layers is more beneficial than aggressive pooling. Furthermore, the study reinforces that CNNs can effectively learn complex relationships between disparate features—such as the correlation between heart rate and phone usage—without manual feature engineering.
Conclusion
This research demonstrates the potential of 1D CNNs for automating sleep quality assessment using accessible data sources. While traditional models like SVM and Logistic Regression remain strong contenders, deep learning offers a more consistent framework for handling varied sensor and survey data.
The primary limitation of this study is the relatively small sample size of the datasets (50 to 104 records). Deep learning models typically require larger volumes of data to reach peak performance. Future work should focus on applying these architectures to larger, real-time physiological signal datasets and exploring temporal models like Recurrent Neural Networks (RNNs) to better capture the dynamics of sleep cycles.
Summary updated