Next Article in Journal
Curriculum-Guided Adversarial Learning for Enhanced Robustness in 3D Object Detection
Next Article in Special Issue
Recent Advances in Vehicle Driver Health Monitoring Systems
Previous Article in Journal
A Multi-Strategy Visual SLAM System for Motion Blur Handling in Indoor Dynamic Environments
Previous Article in Special Issue
Preparation of Ion Composite Photosensitive Resin and Its Application in 3D-Printing Highly Sensitive Pressure Sensor
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Detection and Severity Classification of Sleep Apnea Using Continuous Wearable SpO2 Signals: A Multi-Scale Feature Approach

1
Ubiquitous and Personal Computing Lab, Kyoto University of Advanced Science (KUAS), Kyoto 615-8577, Japan
2
Institute of Industrial Science, The University of Tokyo, Tokyo 153-8505, Japan
*
Author to whom correspondence should be addressed.
Sensors 2025, 25(6), 1698; https://doi.org/10.3390/s25061698
Submission received: 31 January 2025 / Revised: 5 March 2025 / Accepted: 7 March 2025 / Published: 9 March 2025
(This article belongs to the Special Issue Wearable Sensors for Continuous Health Monitoring and Analysis)

Abstract

:
The use of wearable devices for sleep apnea detection is growing, but their limited signal resolution poses challenges for accurate diagnosis. This study explores the feasibility of using SpO2 signals from wearable sensors for detecting sleep apnea and classifying its severity. We propose a novel multi-scale feature engineering approach, which extracts features from coarsely grained SpO2 signals across timescales ranging from 1 s to 600 s. Our results show that traditional SpO2 markers, such as the oxygen desaturation index (ODI) and Lempel–Zip complexity, lose their relevance with the Apnea–Hypopnea Index (AHI) at longer timescales. In contrast, non-linear features like complex entropy, sample entropy, and fuzzy entropy maintain strong correlations with AHI, even at the coarsest timescales (up to 600 s), making them well suited for low-resolution data. Multi-scale feature extraction improves model performance across various machine learning algorithms by alleviating model bias, particularly with the Bayes and CatBoost models. These findings highlight the potential of multi-scale feature engineering for wearable device applications where only low-resolution data are commonly available. This could improve accessibility to low-cost, at-home sleep apnea screening, reducing reliance on expensive and labor-intensive polysomnography. Moreover, it would allow even healthy individuals to proactively monitor their sleep health at home, facilitating the early identification of potential sleep problems.

1. Introduction

In recent decades, the self-monitoring of health information has become a prominent trend, with widespread applications in healthcare [1]. Advancements in compact, sensor-integrated devices now enable the collection of various health metrics without requiring visits to medical facilities [2]. For sleep health, such devices—designed to be non-invasive and portable—offer a means to monitor sleep patterns consistently over extended periods, providing valuable insights into daily and longitudinal changes with reasonable validity [3,4]. These tools highlight a shift toward accessible and continuous health tracking, improving convenience and patient autonomy in managing well-being [5].
Despite the increasing adoption of wearable devices for health monitoring, their application in sleep studies remains limited. These devices have not yet received FDA approval as replacements for polysomnography (PSG), the gold standard for diagnosing sleep-related disorders. Furthermore, their limitations include reduced accuracy, reliability, comprehensiveness, and data granularity compared to PSG [6]. Compact and convenient designs often come at the cost of information quality, as they rely on a limited number of sensors—such as photoplethysmography (PPG), accelerometers, and heart rate monitors—while excluding comprehensive measurements like electroencephalograms (EEG), electrocardiograms (ECG), and respiratory movement data.
Nevertheless, wearable devices offer undeniable benefits. First, wearable devices enable users to move more freely during sleep, as they minimize the need for physical connections between sensors and recording devices. This design supports a more natural and comfortable sleeping experience, reducing potential disruptions caused by traditional polysomnography setups. Additionally, home-based sleep data collection has emerged as a more effective alternative for reflecting sleep patterns in a natural environment [7]. This approach enhances ecological validity by capturing sleep behaviors under real-world conditions and improves ergonomic value by minimizing constraints on user mobility and comfort. Second, wearable devices have the capacity to collect data continuously and over long periods, addressing a critical gap in traditional sleep studies. The “first-night effect”, a well-documented phenomenon in sleep research, persists despite advancements in measurement environments and equipment quality [8]. This issue underscores the limitations of relying on isolated polysomnography sessions. Even with large datasets like the Sleep Heart Health Study (SHHS) and the Wisconsin Sleep Cohort (WSC), longitudinal tracking has been constrained. These datasets show a significant drop in participant follow-ups, with intervals often extending to 5 years or more. Thus, over a span of 5 years, the SHHS dataset provides only about two sleep recordings per individual for reference. The WSC dataset includes more longitudinal measurements but features fewer participants, with only 566 individuals (50.40%) returning for a third measurement and just 121 (10.77%) for a fourth. This limited frequency of recordings underscores significant challenges in addressing the timeliness and urgency of monitoring and diagnosing sleep-related disorders. Furthermore, it highlights gaps in the “gold-standard” approach, particularly regarding its capacity to track disease progression and facilitate subsequent treatment effectively. Wearable devices, offering frequent and continuous data collection, have the potential to bridge this gap [9,10].
Blood oxygen saturation (SpO2) has emerged as an important signal for sleep apnea detection, with numerous studies demonstrating its diagnostic value. SpO2 has been found to outperform other signals, such as ECG or PPG, in classification tasks related to sleep apnea [11,12,13]. The widespread integration of SpO2 sensors in wearable devices makes this signal particularly accessible for continuous, home-based health monitoring, further cementing its potential as a key marker in the development of practical solutions for sleep apnea detection.
There are three primary methodologies for diagnosing sleep apnea: detecting individual apneic events, regressing the Apnea–Hypopnea Index (AHI), and classifying sleep apnea severity. Early research focused on detecting individual apneic events, often breaking down the epoch length from 30s to smaller intervals with the aim of building real-time detection systems [14,15]. However, a limitation of SpO2 as a diagnostic signal lies in its delayed response to apneic events. The drop in blood oxygen saturation is not immediate following an apneic event; it typically delays by 10–40 s due to the time required for oxygen levels to decrease [16,17,18]. This delay introduces challenges in accurately capturing the temporal dynamics of apneic events, which is crucial for timely diagnoses and interventions.
While detecting apneic episodes is best suited for high-frequency signals like those from polysomnography, wearable devices often face limitations in terms of signal granularity and resolution. Despite these challenges, wearable devices are more appropriate for severity classification, which focuses on identifying broad patterns rather than precise event timing. Severity classification is particularly advantageous for large datasets or long-term monitoring, where computational demands are lower, and interpretability is simpler. Recent advances in wearable sleep-monitoring technologies, though limited in signal resolution, are well suited for this task [19].
In this study, we investigate the feasibility of detecting sleep apnea and classifying its severity using SpO2 signals only, which can be continuously measured with wearable sensors. We proposed a novel feature engineering method that extracts features from coarsely grained signals across multiple timescales, ranging from 1 s to 600 s. This method is compared to a baseline method that extracts features from a single timescale at 1 s, which is commonly used in prior research for its detailed temporal resolution [20,21,22,23,24,25,26]. We thoroughly examine how feature relevance changes as the timescale increases and evaluate the corresponding impact on model performance. In particular, this study aims to answer the following research questions:
  • RQ1: How do different timescales impact the relevance of features for sleep apnea severity?
  • RQ2: Which features, derived from multiple timescales, are most useful for detecting sleep apnea and classifying its severity?
  • RQ3: Which machine learning algorithms perform best with multi-scale feature engineering?
We choose to implement machine learning techniques because they have demonstrated effectiveness in previous sleep apnea studies. More specifically, we intentionally adopt traditional machine learning techniques over deep learning approaches. This decision is driven by the fact that, unlike deep learning, models developed using traditional machine learning techniques are often more interpretable, which makes them better suited for healthcare applications where transparency and explainability are important [27]. By building more interpretable models, we aim to provide evidence in the form of clear, measurable outcomes that demonstrate how features derived from SpO2 signals across varied time resolutions relate to sleep apnea severity. This evidence will help highlight the clinical relevance of these features, showing how they correlate with meaningful healthcare outcomes. We hope that by providing these insights, this study will enhance the transparency of AI-based sleep apnea screening models and ultimately improve their adoption in healthcare settings.

2. Materials and Methods

2.1. Dataset

In this study, we utilize the Sleep Heart Health Study (SHHS) dataset [28,29], one of the largest public sleep datasets. To minimize data interdependency, we focus on the data collected during the first visit of each subject, which includes 5,787 sleep recordings with a balanced gender distribution. Following preprocessing and feature extraction, we exclude poor-quality features and suboptimal sleep recordings, resulting in a final dataset of 4,664 sleep recordings for the subsequent analysis. The demographic information for the subjects used for the model development is summarized in Table 1. For denoising the SpO2 signals, we remove SpO2 readings below 60% or above 100%, as these values are considered physiological outliers or measurement errors [13,30,31,32].

2.2. Multi-Scale Features Engineering

The original SpO2 signals in the SHHS dataset are sampled at 1 Hz. The multi-scale feature engineering process, inspired by existing studies  [24,33], begins with coarse-graining the signals at various timescales, ranging from 2 to 10 s with an increment of 1 s, from 15 to 60 s with an increment of 5 s, and from 120 to 600 s with an increment of 60 s. This allows us to examine the predictive power of features at a wide range of timescales. Multiple coarse-grained timescales are constructed by averaging the data points within non-overlapping windows of increasing length. The coarse-graining process is illustrated in Figure 1.
Figure 2 shows an example of a SpO2 signal at its original sampling rate and after coarse-graining at various timescales, ranging from 5 s to 600 s. As the timescale increases, the signal becomes smoother, and large fluctuations are filtered out, leading to a reduction in complexity. The orange plots in Figure 2 illustrate the low-resolution data typically accessible from consumer smartwatches such as Fitbit. It is observed that at a timescale of 60 s, the signal is noticeably smoother while still retaining key fluctuations.
For each timescale of the coarse-grained SpO2 signal, we extract 106 features, which include time domain, frequency domain, non-linear features, and oximetry biomarkers. The oximetry biomarkers are derived using the open-source POBM toolbox [25], which analyzes oximetry time series data to extract relevant metrics for further analysis. The non-linear features are extracted using Python libraries [34,35]. After extracting the features at each timescale, we combine the features across all timescales. Features with more than 20% missing values or more than 40% zero values are excluded.
To evaluate the impact of timescales on the predictive power of features, we first calculate the Spearman’s correlation coefficient between individual features and the Apnea–Hypopnea Index (AHI). Spearman’s correlation is a non-parametric measure that assesses the strength and direction of a monotonic relationship between two variables [36]. We choose it over Pearson’s correlation due to its robustness to outliers, loose assumptions on data distributions, and suitability for detecting non-linear associations. The Spearman’s correlation coefficient ( ρ ) ranges from −1 to 1, where −1 and 1 represent the perfect negative and positive monotonic relationship, respectively. To visualize the relationships between features and AHI, we also create scatter plots for each feature-AHI pair. For this study, we specifically use the variable nsrr_ahi_hp3r_aasm15, which adheres to the AASM 2015 scoring rules to ensure standardization and comparability across analyses [37].

2.3. Model Training, Validation and Testing

The dataset is split into 80% for training and 20% for testing. To ensure that each feature contributes equally to the learning process of the model, we apply standard scaling, which transforms the features to have a mean of 0 and a standard deviation of 1.
We apply multiple machine learning algorithms including naïve Bayes (NB), Logistic Regression (LR), decision tree (DT), K-nearest neighbor (KNN), CatBoost, XGBoost (XGB), and a basic multilayer perceptron (MLP). These algorithms are chosen for their simplicity and interpretability, which makes them well suited for understanding feature importance. Hyperparameter tuning is achieved through grid search with 5-fold cross-validation. A baseline single-scale model is developed using features extracted from the original 1 Hz SpO2 signal. Model performance is evaluated using several metrics, including accuracy (Acc), precision (Pre), sensitivity (Sen), F1-score, Matthews correlation coefficient (MCC), and area under curve (AUC). To gain a statistical perspective of the model performance, the training and test process is repeated 50 times, each time using a different random seed for data splitting. This approach helps minimize the risk that the model performance is influenced by a specific train–test split and confirms that the observed behavioral patterns of multi-scale features are consistent across experiments rather than being due to random variation. The results are reported as the mean and standard deviation in Section 3.
Figure 3 provides a visual summary of the research methodology. It begins with the input data and proceeds through feature extraction, followed by hyperparameter selection for optimization, and concludes with the training and testing of the machine learning models.

3. Results

3.1. Feature Utility Across Different Signal Granularity Scales

After analyzing the results of the Spearman correlation coefficient and visualizing the data through scatter plots, several interesting trends regarding the impact of coarse-graining on feature behavior are identified. Figure 4 provides a summary of these four trends. Table 2 summarizes the maximum and minimum correlation values, along with the corresponding timescale at which the highest correlation is observed.
First, as illustrated in Figure 4A, we examine features previously identified as important for sleep apnea detection in both epoch-wise and subject-wise classification. The line plot for group A reveals a notable trend: while the correlation between these features and AHI is initially strong, it declines rapidly as the timescale increases. By the 30 s timescale, the correlation value is reduced to approximately half of its original magnitude. At the 60 s timescale, the correlation fluctuates around 0.25, indicating a weak association. In half of the features in Group A, the highest correlation values are predominantly observed at the 1 s timescale. For the remaining features, the maximum correlation occurs at larger timescales but not longer than 5 s. However, the difference between this peak value and the correlation at 1 s remains relatively small, ranging from 0.03 to 0.08.
In this group, the approximate entropy demonstrates a more stable relationship with AHI compared to other features, with a median correlation of 0.72 and maintaining a correlation above 0.5 even at a timescale of 120 s (equivalent to a sampling frequency of one sample per two minutes). However, as the timescale increases further, its correlation declines to nearly zero. In contrast, the oxygen desaturation index (ODI), despite having the highest correlation at 1 s and being widely used in sleep apnea detection, exhibits a sharp decline as the timescale increases. As observed in the scatter plot in Figure 4A, the feature values become segmented, with a growing proportion of zero values, indicating that desaturation events are harder to detect when the SpO2 signals are coarsely grained at longer timescales.
The features in Figure 4B exhibit an opposite trend compared to Group A. Some features that were initially uncorrelated when derived from the original SpO2 signals exhibit stronger correlations after the signals are coarse-grained. For instance, zero-crossing (ZC), which in this context represents mean crossing since SpO2 values are never lower than 60%, reaches a strong correlation of 0.61 at the 20 s timescale, whereas at 1 s, it shows no correlation with AHI with a correlation coefficient at −0.01. Notably, the PRSAc feature shows a sharp increase in correlation, reaching −0.68 at the 6 s timescale. While PRSAc does not consistently exhibit a strong relationship with AHI across other timescales, its high correlation at 6 s suggests it could serve as a valuable indicator of sleep apnea severity at this specific data resolution.
With the exception of the PRSAc feature, the other features in this group exhibit their highest correlation with AHI at timescales of 10 s or higher. At the 60 s timescale, some features still maintain a relatively strong correlation with AHI, with ZC at 0.45, Lempel–Zip (LZ) complexity at 0.39, and dispersion entropy (DispEn) at 0.43. This indicates that despite the reduced signal resolution, these features retain meaningful associations with sleep apnea severity, highlighting their potential across different granularities.
Furthermore, several features, including Hjorth mobility (HjM), Hjorth complexity (HjC), phase entropy (PhasEn), and complex entropy (ComplexEn), exhibit correlation polarity shifts, transitioning from positive to negative correlations or vice versa. In particular, as can be seen from the scatter plots in Figure 4C, ComplexEn initially shows a positive correlation with AHI at the 1 s timescale but transitions to a negative correlation at larger timescales. Notably, ComplexEn achieves the highest absolute correlation among all surveyed features, reaching −0.86. Furthermore, this feature maintains a moderate correlation even at larger timescales, with values of −0.85 at 10 s, and −0.75 at 60 s, indicating its potential as a robust marker for sleep apnea severity across different data resolutions. Changes in correlation polarity provide valuable insights into the non-linear relationship between features and sleep apnea severity as the data resolution decreases.
Finally, we identify a set of important features that maintain consistently moderate to strong correlations across all timescales, with correlation coefficients exceeding 0.4 at all timescales below 60 s. These nine features are summarized in the last nine rows of Table 2 and illustrated in Figure 4D, which include two time-domain features and seven non-linear features. Figure 5 provides better visualization of the timescale from 1s to 600s. Their consistent performance across timescales allows for effective sleep apnea detection while optimizing storage and computational efficiency, making them particularly well suited for applications in consumer wearable devices.

3.2. Model Performance

To evaluate the effectiveness of the multi-scale approach in model development, we compare models trained on multi-scale features to baseline models trained on single-scale features derived at the original SpO2 signals with a resolution of 1 s.

3.2.1. Binary Classification

For binary classification, we evaluate model performance using three AHI cut-offs: 5, 15, and 30 events per hour. These cut-offs serve different clinical purposes [38]. At cut-off 5, the classification differentiates between normal and apneic patients. Cut-off 15 represents the distinction between individuals with mild symptoms and those with more severe symptoms. Meanwhile, cut-off 30 serves as a threshold to separate individuals who do not yet require treatment from those who should seek medical intervention or assistance. Figure 6 and Figure 7 show the classification results for the Bayes and CatBoost models, respectively.
For cut-off ≥ 5 events/h, subjects were categorized into two groups: healthy individuals and those with sleep apnea, labeled as “normal” and “have apnea”, respectively. We observed that classifiers at this cut-off often result in the highest degree of bias among the models used in this study. The poorest performance is observed in the first row of Figure 6, where the Bayes model exhibits a strong bias toward the majority class (patients).
The results from training and testing the Bayes model using features extracted from a single timescale of 1 s indicate that the model failed to distinguish between the two groups, classifying most of the subjects in the test set as having sleep apnea. However, incorporating multi-scale features significantly improved performance, increasing the average TN rate to 32.21%. Meanwhile, it is noteworthy that multi-scale features could not completely eliminate the model’s bias toward the majority class as reflected in the significantly lower MCC of the Bayes model in Table 3. On the other hand, with the multi-scale features, the accuracy, sensitivity, MCC increased by 6.42%, 7.68%, 0.06, respectively, while precision remained unchanged. This indicates that the model achieved better class balance in distinguishing between healthy and sleep apnea subjects when provided with the multi-scale feature set.
For cut-off ≥ 15 events/h, the classification task involves distinguishing individuals with mild or no apnea from those with moderate to severe apnea, labeled as “Light apnea” and “Heavy apnea”. The ratio between the two classes is almost the same, with 52.02% for the group of people with light sleep apnea and 47.98% for the group of people with heavy apnea. This is also the case where the models have good results and are balanced between the two classes.
Once again, the Naïve Bayes model shows the most notable improvement with multi-scale features, with accuracy increasing by 2.41%, sensitivity by 9.84%, and MCC by 0.03, while precision is decreased by 3.55%. Despite the reduction in precision, the model exhibits a better balance in classifying both groups. Multi-scale features also enhance the accuracy, precision, and sensitivity of the MLP models by approximately 2–4%.
For cut-off ≥ 30 events/h, the classification task distinguishes individuals requiring treatment from those who do not, with class labels “No treatment” and “Need treatment”, as severe apnea typically necessitates medical intervention or sleep aids. Similar to the AHI ≥ 5 case, the models face challenges due to class imbalance. Classification performance remains relatively strong, with MCC values ranging from 0.61 to 0.74. However, for the Naïve Bayes and Logistic Regression models, the introduction of multi-scale features has an adverse effect. Both models exhibit a trade-off between precision and sensitivity: for Naïve Bayes, sensitivity increases by 7.32% while precision decreases by 7.16%, and for Logistic Regression, sensitivity increases by 10.58% while precision decreases by 9.65%. Consequently, the models tend to misclassify severe apnea cases into the milder apnea category, reducing their ability to accurately identify individuals requiring treatment.
The observed increase in MCC, particularly at the AHI cut-off of 5, suggests that multi-scale feature engineering improves class separation. Specifically, as shown in the first row of confusion matrix in Figure 6, this approach increases the percentage of true positives while reducing false positives. In the case of CatBoost as shown in Figure 7, false negatives are also slightly decreased.

3.2.2. Multiclass Classification

In the multiclass classification scenario, the models attempt to classify four levels of sleep apnea severity, normal, mild, moderate, and severe, with class distributions of 13.59%, 38.42%, 30.32%, and 17.67%, respectively. Misclassification remains a challenge, particularly between the normal and mild apnea groups, which exhibit the highest error rates. As shown in the last section of Table 3, CatBoost achieves the best performance, with an accuracy of 70.46%, precision of 71.88%, sensitivity of 67.64%, and an MCC of 0.58. XGBoost and MLP follow closely behind, but CatBoost demonstrates superior classification of the normal group, correctly identifying 67.67% of cases, compared to 61.38% for XGBoost and 50.54% for MLP.
Multi-scale features improve performance in tree-based models (i.e., XGBoost and CatBoost), KNN and MLP, while other models show no significant changes. Overall, CatBoost emerges as the best model in this study, consistently outperforming others across evaluation metrics and maintaining a better balance across classes as reflected in its higher MCC value.

4. Discussion

4.1. Towards More Effective SpO2-Based Feature Extraction

In this study, we propose a multi-scale approach to enhance feature extraction from SpO2 signals. By applying coarse-graining at various timescales, we extend the analysis beyond the original 1 s resolution to larger timescales ranging from 2 to 600 s.
The results reveal three interesting trends in feature relevance: (1) Several features that initially exhibit strong correlations with AHI tend to decline rapidly as the timescale increases. (2) Certain features that are uncorrelated at the original timescale become more strongly correlated after coarse-graining the SpO2 signals. (3) Some features undergo correlation polarity shifts, transitioning from positive to negative correlations or vice versa.
Features such as central tendency measure (CTM) [14,39], Lempel–Zip (LZ) complexity [14,39], accumulative time such that SpO2 level stays below 95% [14], and kurtosis [20,40] are frequently utilized to assess signal dynamics. These features are approved due to their significance in apnea classification and severity assessment. However, most SpO2 biomarkers—except for CTM—lose their relevance with AHI when derived from low-resolution SpO2 signals. Notably, their correlation coefficients, which are initially at ρ ≥ 0.5, drop to around 0.3 at a timescale of 30 s. Given that consumer wearable devices store data at resolutions below 60 s, these traditional markers are not suitable for such devices.
The oxygen desaturation index (ODI) has been highlighted as an important feature across studies over a decade [14,23,40,41] for detecting sleep apnea in epoch-wise, subject-wise, and real-time contexts. A potential issue arises in the definition of ODI. ODI refers to the average number of desaturation episodes occurring per hour, where desaturation episodes are defined as a decrease in mean oxygen saturation of ≥3% (over the last 120 s) lasting for at least 10 s [42]. This minimum duration of 10 s implies that this feature cannot be computed with data at lower resolutions. At a 1 s resolution, ODI exhibits a strong correlation with the apnea indicator, with a Spearman’s correlation coefficient of 0.75. However, at a 60 s resolution, the correlation weakens, with the coefficient dropping to 0.25. This decline in correlation strength is evident in Table 2, and the top right scatter plots in Figure 4 visually illustrate this trend.
Interestingly, five features achieve their highest correlation at a timescale of approximately 10 s, with an average difference of 0.216 compared to the original timescale and the largest difference of 0.405 for ZC. These features capture relevant patterns more effectively at a coarser granularity, where transient fluctuations are smoothed, allowing stronger relationships with sleep apnea severity to emerge.
This highlights a key benefit of the coarse-graining technique applied in multi-scale feature extraction, which serves as a low-pass averaging filter for potential noise and disturbances, enhancing feature robustness and revealing underlying patterns more effectively. At the original timescale, the SpO2 signal is highly sensitive to external influences, leading to fluctuations that do not necessarily reflect oxygen deficiency but rather noise from movement or other artifacts. The larger timescales reduce the impact of high-frequency noise, enabling the underlying oscillation frequency of the SpO2 signal—associated with apnea events—to become more evident.
The above findings generate insights into how different timescales affect the predictive power of features and thus answer RQ1.
Another important finding in this study is that the nine features exhibit high correlation with AHI and maintain a moderate relationship ( ρ ≥ 0.5) even at the 60 s timescale. These include two statistical features (central tendency measure and average magnitude of change of SpO2) and seven non-linear features (Fuzzy entropy, increment entropy, Kolmogorov entropy, permutation entropy, sample entropy, Shannon entropy, and complex entropy). Notably, non-linear features, such as complex entropy, maintain a strong correlation with the AHI even at timescales as long as 600 s, making them well suited for low-resolution data environments like wearable device applications. This finding is consistent with published studies that reported non-linear features as important sleep apnea indicators. These include entropy measures like approximate entropy (ApEn) [14,39], sample entropy [20], attention entropy [24], and spectral entropy [23], which capture signal complexity and variability. This finding helps us answer RQ2.
Previous studies have mainly investigated features at the 1 s timescale [40,43,44]. A common assumption in signal processing is that a higher sampling rate leads to better signal and feature quality. However, this hypothesis has not been specifically validated in the context of using SpO2 for sleep apnea detection. Our results, as shown in Table 2, indicate that this assumption is not entirely accurate and has interesting exceptions, suggesting that sensor researchers should not solely prioritize maximizing the sampling rate but instead explore different rates to balance signal quality with power efficiency. Specifically, our findings highlight the usefulness of non-linear features, demonstrating that even without very high sampling rates, meaningful features can still be extracted for machine learning applications.

4.2. A Closer Understanding of Model Performance

Regarding sleep apnea classification, the models struggle the most with the AHI threshold of 5, as this cut-off results in a highly imbalanced dataset. The impact of multi-scale feature engineering is not consistent across all cases and gradually decreases in effectiveness at higher AHI cut-offs (5, 15, and 30). However, it does not negatively affect model performance in any scenario. In addition, at cut-offs 15 and 30, model performance is already relatively strong. Cut-off 15 presents a well-balanced class distribution, while cut-off 30 involves severe cases that are more easily distinguishable.
Overall, multi-scale features enhance evaluation metrics compared to the baseline model at the 1 s timescale. The multi-scale method efficiently impacts the Bayes model in two classification tasks with cut-offs of 5 events/h and 15 events/h. This improvement may stem from the richer data representation provided by multi-scale features, which capture broader temporal patterns and reduce sensitivity to noise or minor variations in the signals. However, despite this improvement, Bayesian performance remains weak. Overall, among the seven models surveyed, CatBoost demonstrates the best performance, effectively classifying classes with minimal bias. This finding addresses the final research question.

4.3. Comparison with Previous Study

Many previous studies have aimed to develop computational models for sleep apnea screening using machine learning techniques and have shown promising results. However, these studies vary in terms of the AHI cut-offs used, the number of categories considered (i.e., binary or multiclass classification), the dataset sizes employed for model training and testing, and the metrics used for model performance evaluation, which makes direct comparisons across studies challenging.
We identify several studies that allow direct comparison with part of our results. Three studies report high performance at the cut-off of 5 events/h, but their sample sizes are limited to fewer than 250 sleep records [22,44,45]. Another study using a small proprietary dataset with 320 sleep records [23] achieved the best performance with AdaBoost-Linear discriminant analysis (AB-LDA), which used statistical, spectral, non-linear and clinical-related features derived from SpO2. However, their model faced potential overfitting, as evidenced by very high accuracy (78.7–92.9%) and sensitivity (88.9–96.6%) but much lower specificity (50.0–73.5%). A similar issue was observed in the study that used the largest dataset so far (n = 8762), which achieved an accuracy of 89.2%, sensitivity of 93.8% and specificity of 56.3% at cut-off of 5 [40]. Their least square boost model performed better for the cut-offs of 15 and 30, achieving accuracy > 85%, sensitivity > 82%, and specificity > 84%. Another recent study used multi-scale attention entropy and trained models with a large dataset (n = 5786) but only reported results at AHI cut-offs of 5 and 30 [24]. At cut-off 5, the support vector machine (SVM) had the best performance with accuracy of 74.16%, specificity of 71.08%, sensitivity of 74.84%, and AUC of 0.73. At cut-off 30, the model performed better with an accuracy of 82.57%, specificity of 82.69%, sensitivity of 82.00%, and AUC of 0.82. This study highlighted the importance of non-linear features at multiple scales, but it only focused on one specific feature: the attention entropy.
Our multi-scale feature engineering concept is similar to convolutional neural networks (CNNs), where the data size shrinks across layers, enabling the extraction of generalizable features [46,47]. However, the timescale in those studies is limited to a few seconds and no longer than 60 s. Another similar approach that leverages the finer components of SpO2 is the Wavelet transform. In a previous study, SpO2 signals were decomposed into six sub-bands [48], and Shannon entropy features were extracted from each sub-band to train the model, achieving an AUC of 0.96 for epoch-wise classification. However, these studies did not focus on subject-wise classification, making direct comparison with this study unfeasible. In addition to improving model performance, our approach offers the advantages of being less computationally expensive and providing better interpretability.

5. Conclusions

In this study, we proposed a multi-scale feature engineering approach for developing machine learning models for sleep apnea detection and severity classification. We conducted a comprehensive evaluation of its impact on feature relevance and model performance.
A key finding is that while SpO2 signals exhibit reduced resolution when coarsely grained at larger timescales, some features extracted at these timescales show stronger correlations with the AHI. This result is important, as it suggests that sleep apnea severity could potentially be classified using lower-resolution data, such as those obtained from consumer-grade wearable devices (e.g., Fitbit, Apple Watch, and Google Pixel Watch). These devices, while more limited in capturing complex and high sampling rate signals like EEG or ECG compared to the gold-standard polysomnography, may still yield relevant insights for sleep apnea detection in daily life. Furthermore, our analysis reveals that multi-scale features help alleviate model bias, resulting in more balanced performance across all classes.
The current study has two primary limitations. First, the models were trained and tested using only one dataset. Future efforts should validate these with additional datasets encompassing more diverse populations. Second, while model bias was alleviated through multi-scale feature engineering, performance was still affected by dataset imbalance. As a next step, we plan to apply techniques to mitigate the effects of this imbalance, such as adjusting class weights and decision thresholds.

Author Contributions

Conceptualization, Z.L. and N.H.H.; methodology, Z.L. and N.H.H.; validation, Z.L. and N.H.H.; formal analysis, N.H.H.; investigation, Z.L. and N.H.H.; data curation, N.H.H.; writing—original draft preparation, Z.L. and N.H.H.; writing—review and editing, Z.L. and N.H.H.; visualization, N.H.H.; supervision, Z.L.; project administration, Z.L.; funding acquisition, Z.L. All authors have read and agreed to the published version of the manuscript.

Funding

This study was sponsored by a Japan Society for the Promotion of Science (JSPS) KAKENHI Grant-in-Aid for Early-Career Scientists (grant 21K17670).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The SHHS dataset used in this study are available at https://sleepdata.org/datasets with the permission of NSRR. The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Lupton, D. Self-tracking cultures: Towards a sociology of personal informatics. In Proceedings of the 26th Australian Computer-Human Interaction Conference on Designing Futures: The Future of Design, Sydney, Australia, 2–4 December 2014; pp. 77–86. [Google Scholar]
  2. Canali, S.; Schiaffonati, V.; Aliverti, A. Challenges and recommendations for wearable devices in digital health: Data quality, interoperability, health equity, fairness. PloS Digit. Health 2022, 1, e0000104. [Google Scholar] [CrossRef] [PubMed]
  3. De Zambotti, M.; Goldstein, C.; Cook, J.; Menghini, L.; Altini, M.; Cheng, P.; Robillard, R. State of the science and recommendations for using wearable technology in sleep and circadian research. Sleep 2024, 47, zsad325. [Google Scholar] [CrossRef] [PubMed]
  4. Liang, Z.; Chapa Martell, M.A. Validity of consumer activity wristbands and wearable EEG for measuring overall sleep parameters and sleep structure in free-living conditions. J. Healthc. Inform. Res. 2018, 2, 152–178. [Google Scholar] [CrossRef] [PubMed]
  5. Liang, Z.; Ploderer, B.; Liu, W.; Nagata, Y.; Bailey, J.; Kulik, L.; Li, Y. SleepExplorer: A visualization tool to make sense of correlations between personal sleep data and contextual factors. Pers Ubiquit Comput. 2016, 20, 985–1000. [Google Scholar] [CrossRef]
  6. Baron, K.G.; Duffecy, J.; Berendsen, M.A.; Mason, I.C.; Lattie, E.G.; Manalo, N.C. Feeling validated yet? A scoping review of the use of consumer-targeted wearable and mobile technology to measure and improve sleep. Sleep Med. Rev. 2018, 40, 151–159. [Google Scholar] [CrossRef]
  7. Retamales, G.; Gavidia, M.E.; Bausch, B.; Montanari, A.N.; Husch, A.; Goncalves, J. Towards automatic home-based sleep apnea estimation using deep learning. NPJ Digit. Med. 2024, 7, 144. [Google Scholar] [CrossRef]
  8. Tamaki, M.; Yamada, T.; Barnes-Diana, T.; Wang, Z.; Watanabe, T.; Sasaki, Y. First-night effect reduces the beneficial effects of sleep on visual plasticity and modifies the underlying neurochemical processes. Sci. Rep. 2024, 14, 14388. [Google Scholar] [CrossRef] [PubMed]
  9. Liang, Z.; Martell, M. A Multi-level Classification Approach for Sleep Stage Prediction with Processed Data Derived from Consumer Wearable Activity Trackers. Front. Digit. Health 2021, 3, 1–16. [Google Scholar] [CrossRef]
  10. Depner, C.M.; Cheng, P.C.; Devine, J.K.; Khosla, S.; De Zambotti, M.; Robillard, R.; Vakulin, A.; Drummond, S.P. Wearable technologies for developing sleep and circadian biomarkers: A summary of workshop discussions. Sleep 2020, 43, zsz254. [Google Scholar] [CrossRef]
  11. Rahman, M.J.; Morshed, B.I. A minimalist method toward severity assessment and progression monitoring of obstructive sleep apnea on the edge. Acm Trans. Comput. Healthc. 2021, 3, 1–16. [Google Scholar] [CrossRef]
  12. Pathinarupothi, R.K.; Rangan, E.S.; Gopalakrishnan, E.; Vinaykumar, R.; Soman, K. Single sensor techniques for sleep apnea diagnosis using deep learning. In Proceedings of the 2017 IEEE International Conference on Healthcare Informatics (ICHI), Park City, UT, USA, 23–27 August 2017; pp. 524–529. [Google Scholar]
  13. Ganglberger, W.; Bucklin, A.A.; Tesh, R.A.; Da Silva Cardoso, M.; Sun, H.; Leone, M.J.; Paixao, L.; Panneerselvam, E.; Ye, E.M.; Thompson, B.T.; et al. Sleep apnea and respiratory anomaly detection from a wearable band and oxygen saturation. Sleep Breath. 2021, 2021, 1–12. [Google Scholar] [CrossRef] [PubMed]
  14. Xie, B.; Minn, H. Real-time sleep apnea detection by classifier combination. IEEE Trans. Inf. Technol. Biomed. 2012, 16, 469–477. [Google Scholar] [CrossRef]
  15. Zhang, J.; Zhang, Q.; Wang, Y.; Qiu, C. A real-time auto-adjustable smart pillow system for sleep apnea detection and treatment. In Proceedings of the 12th International Conference on Information Processing in Sensor Networks, Hong Kong, China, 13–16 May 2013; pp. 179–190. [Google Scholar]
  16. Jeon, Y.; Heo, K.; Kang, S.J. Real-time sleep apnea diagnosis method using wearable device without external sensors. In Proceedings of the 2020 IEEE International Conference on Pervasive Computing and Communications Workshops (PerCom Workshops), Washington, DC, USA, 17–21 March 2020; pp. 1–5. [Google Scholar]
  17. Piorecky, M.; Bartoň, M.; Koudelka, V.; Buskova, J.; Koprivova, J.; Brunovsky, M.; Piorecka, V. Apnea detection in polysomnographic recordings using machine learning techniques. Diagnostics 2021, 11, 2302. [Google Scholar] [CrossRef] [PubMed]
  18. Deviaene, M.; Testelmans, D.; Buyse, B.; Borzée, P.; Van Huffel, S.; Varon, C. Automatic screening of sleep apnea patients based on the spo 2 signal. IEEE J. Biomed. Health Inform. 2018, 23, 607–617. [Google Scholar] [CrossRef] [PubMed]
  19. De Zambotti, M.; Cellini, N.; Goldstone, A.; Colrain, I.M.; Baker, F.C. Wearable sleep technology in clinical and research settings. Med. Sci. Sport. Exerc. 2019, 51, 1538. [Google Scholar] [CrossRef]
  20. Alvarez, D.; Hornero, R.; Marcos, J.V.; Penzel, T.; del Campo, F.; Wessel, N. Prospective evaluation of logistic regression models from overnight oximetry to assist in sleep apnea diagnosis. In Proceedings of the 2011 11th International Conference on Intelligent Systems Design and Applications, Cordoba, Spain, 22–24 November 2011; pp. 920–924. [Google Scholar]
  21. Mostafa, S.S.; Carvalho, J.P.; Morgado-Dias, F.; Ravelo-García, A. Optimization of sleep apnea detection using SpO2 and ANN. In Proceedings of the 2017 XXVI International Conference on Information, Communication and Automation Technologies (ICAT), Sarajevo, Bosnia and Herzegovina, 26–28 November 2017; pp. 1–6. [Google Scholar]
  22. Sánchez-Morillo, D.; López-Gordo, M.; León, A. Novel multiclass classification for home-based diagnosis of sleep apnea hypopnea syndrome. Expert Syst. Appl. 2014, 41, 1654–1662. [Google Scholar] [CrossRef]
  23. Gutiérrez-Tobal, G.C.; Álvarez, D.; Crespo, A.; Del Campo, F.; Hornero, R. Evaluation of machine-learning approaches to estimate sleep apnea severity from at-home oximetry recordings. IEEE J. Biomed. Health Inform. 2018, 23, 882–892. [Google Scholar] [CrossRef]
  24. Liang, Z. Multiscale attention entropy (MSAE) of overnight pulse oximetry for assessing sleep apnea. In Proceedings of the 2023 7th International Conference on Medical and Health Informatics, Kyoto, Japan, 12–14 March 2023; pp. 77–80. [Google Scholar]
  25. Levy, J.; Álvarez, D.; Rosenberg, A.A.; Alexandrovich, A.; Del Campo, F.; Behar, J.A. Digital oximetry biomarkers for assessing respiratory function: Standards of measurement, physiological interpretation, and clinical use. NPJ Digit. Med. 2021, 4, 1. [Google Scholar] [CrossRef]
  26. Bilge, P.C.; Fatma, E.K.; Cansu, S.; Haydar, S.; Deniz, K.; Alisher, K.; Sibel, C.; Ulufer, C.; Zuhal, A.; Ibrahim, O. Scanning of obstructive sleep apnea syndrome using smartwatch: A comparison of smartwatch and polysomnography. J. Clin. Neurosci. 2024, 119, 212–219. [Google Scholar] [CrossRef]
  27. Brennan, H.L.; Kirby, S.D. Barriers of artificial intelligence implementation in the diagnosis of obstructive sleep apnea. J.-Otolaryngol.-Head Neck Surg. 2022, 51, 16. [Google Scholar] [CrossRef]
  28. Quan, S.F.; Howard, B.V.; Iber, C.; Kiley, J.P.; Nieto, F.J.; O’Connor, G.T.; Rapoport, D.M.; Redline, S.; Robbins, J.; Samet, J.M.; et al. The sleep heart health study: Design, rationale, and methods. Sleep 1997, 20, 1077–1085. [Google Scholar]
  29. Zhang, G.Q.; Cui, L.; Mueller, R.; Tao, S.; Kim, M.; Rueschman, M.; Mariani, S.; Mobley, D.; Redline, S. The National Sleep Research Resource: Towards a sleep data commons. J. Am. Med. Inform. Assoc. 2018, 25, 1351–1358. [Google Scholar] [CrossRef] [PubMed]
  30. Liang, Z. Novel method combining multiscale attention entropy of overnight blood oxygen level and machine learning for easy sleep apnea screening. Digit. Health 2023, 9, 20552076231211550. [Google Scholar] [CrossRef]
  31. Bernardini, A.; Brunello, A.; Gigli, G.L.; Montanari, A.; Saccomanno, N. OSASUD: A dataset of stroke unit recordings for the detection of Obstructive Sleep Apnea Syndrome. Sci. Data 2022, 9, 177. [Google Scholar] [CrossRef] [PubMed]
  32. Bark, B.; Nam, B.; Kim, I.Y. SelANet: Decision-assisting selective sleep apnea detection based on confidence score. Bmc Med. Inform. Decis. Mak. 2023, 23, 190. [Google Scholar] [CrossRef] [PubMed]
  33. Costa, M.; Goldberger, A.L.; Peng, C.K. Multiscale entropy analysis of biological signals. Phys. Rev. Stat. Nonlinear Soft Matter Phys. 2005, 71, 021906. [Google Scholar] [CrossRef]
  34. Pessa, A.A.B.; Ribeiro, H.V. ordpy: A Python package for data analysis with permutation entropy and ordinal network methods. Chaos Interdiscip. J. Nonlinear Sci. 2021, 31, 063110. [Google Scholar] [CrossRef]
  35. Flood, M.W.; Grimm, B. EntropyHub: An open-source toolkit for entropic time series analysis. PloS ONE 2021, 16, e0259448. [Google Scholar] [CrossRef]
  36. De Winter, J.C.; Gosling, S.D.; Potter, J. Comparing the Pearson and Spearman correlation coefficients across distributions and sample sizes: A tutorial using simulations and empirical data. Psychol. Methods 2016, 21, 273. [Google Scholar] [CrossRef]
  37. Berry, R.B.; Brooks, R.; Gamaldo, C.; Harding, S.M.; Lloyd, R.M.; Quan, S.F.; Troester, M.T.; Vaughn, B.V. The AASM Manual for the Scoring of Sleep and Associated Events: Rules, Terminology and Technical Specifications; Version 2.4; American Academy of Sleep Medicine: Darien, IL, USA, 2017. [Google Scholar]
  38. Iber, C. The AASM manual for the scoring of sleep and associated events: Rules, terminology, and technical specification. Am. Acad. Sleep Med. 2007, 176, 7. [Google Scholar]
  39. Alvarez, D.; Hornero, R.; Marcos, J.V.; del Campo, F.; Lopez, M. Obstructive sleep apnea detection using clustering classification of nonlinear features from nocturnal oximetry. In Proceedings of the 2007 29th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Piscataway, NJ, USA, 26–26 August 2007; pp. 1937–1940. [Google Scholar]
  40. Gutiérrez-Tobal, G.C.; Álvarez, D.; Vaquerizo-Villar, F.; Crespo, A.; Kheirandish-Gozal, L.; Gozal, D.; del Campo, F.; Hornero, R. Ensemble-learning regression to estimate sleep apnea severity using at-home oximetry in adults. Appl. Soft Comput. 2021, 111, 107827. [Google Scholar] [CrossRef] [PubMed]
  41. Levy, J.; Álvarez, D.; Del Campo, F.; Behar, J.A. Deep learning for obstructive sleep apnea diagnosis based on single channel oximetry. Nat. Commun. 2023, 14, 4881. [Google Scholar] [CrossRef] [PubMed]
  42. Varghese, L.; Rebekah, G.; Oliver, A.; Kurien, R. Oxygen desaturation index as alternative parameter in screening patients with severe obstructive sleep apnea. Sleep Sci. 2022, 15, 224–228. [Google Scholar] [CrossRef] [PubMed]
  43. Chen, J.W.; Liu, C.M.; Wang, C.Y.; Lin, C.C.; Qiu, K.Y.; Yeh, C.Y.; Hwang, S.H. A deep neural network-based model for OSA severity classification using unsegmented peripheral oxygen saturation signals. Eng. Appl. Artif. Intell. 2023, 122, 106161. [Google Scholar] [CrossRef]
  44. Li, Z.; Li, Y.; Zhao, G.; Zhang, X.; Xu, W.; Han, D. A model for obstructive sleep apnea detection using a multi-layer feed-forward neural network based on electrocardiogram, pulse oxygen saturation, and body mass index. Sleep Breath. 2021, 25, 1–8. [Google Scholar] [CrossRef]
  45. Hwang, S.H.; Cho, J.G.; Choi, B.H.; Baek, H.J.; Lee, Y.J.; Jeong, D.U.; Park, K.S. Real-time automatic apneic event detection using nocturnal pulse oximetry. IEEE Trans. Biomed. Eng. 2017, 65, 706–712. [Google Scholar]
  46. Lyden, B.; Dair, Z.; O’Reilly, R. Classification of Sleep Apnea via SpO2 in a Simulated Smartwatch Environment. In Proceedings of the 2022 IEEE-EMBS International Conference on Biomedical and Health Informatics (BHI), Ioannina, Greek, 27–30 September 2022; pp. 1–5. [Google Scholar]
  47. Sharma, M.; Kumbhani, D.; Tiwari, J.; Kumar, T.S.; Acharya, U.R. Automated detection of obstructive sleep apnea in more than 8000 subjects using frequency optimized orthogonal wavelet filter bank with respiratory and oximetry signals. Comput. Biol. Med. 2022, 144, 105364. [Google Scholar] [CrossRef]
  48. Sharma, M.; Kumbhani, D.; Yadav, A.; Acharya, U.R. Automated Sleep apnea detection using optimal duration-frequency concentrated wavelet-based features of pulse oximetry signals. Appl. Intell. 2022, 52, 1325–1337. [Google Scholar] [CrossRef]
Figure 1. Illustration for coarse-graining procedure, for timescales of 2, 5, and 10 s.
Figure 1. Illustration for coarse-graining procedure, for timescales of 2, 5, and 10 s.
Sensors 25 01698 g001
Figure 2. An example of a SpO2 signal at its original timescale of 1 s and after coarse-graining at various timescales. The orange plots illustrate the low-resolution data typically available from consumer smartwatches such as Fitbit.
Figure 2. An example of a SpO2 signal at its original timescale of 1 s and after coarse-graining at various timescales. The orange plots illustrate the low-resolution data typically available from consumer smartwatches such as Fitbit.
Sensors 25 01698 g002
Figure 3. Flowchart of analyses and methods.
Figure 3. Flowchart of analyses and methods.
Sensors 25 01698 g003
Figure 4. Three interesting trends regarding correlation coefficient between features and AHI at multi-scale are visualized in subplot (AC). Subplot (D) visualizes the important features that remain high correlation with apnea severity across all timescales.
Figure 4. Three interesting trends regarding correlation coefficient between features and AHI at multi-scale are visualized in subplot (AC). Subplot (D) visualizes the important features that remain high correlation with apnea severity across all timescales.
Sensors 25 01698 g004
Figure 5. Spearman correlation coefficient of important features. The blue area indicates where the absolute value of the correlation coefficient is lower than 0.4, showing a weak relationship area.
Figure 5. Spearman correlation coefficient of important features. The blue area indicates where the absolute value of the correlation coefficient is lower than 0.4, showing a weak relationship area.
Sensors 25 01698 g005
Figure 6. The Bayes model failed to distinguish normal and apnea patients, but the result slightly improved with multi-scale features.
Figure 6. The Bayes model failed to distinguish normal and apnea patients, but the result slightly improved with multi-scale features.
Sensors 25 01698 g006
Figure 7. The CatBoost model achieved the highest performance for all tasks in general.
Figure 7. The CatBoost model achieved the highest performance for all tasks in general.
Sensors 25 01698 g007
Table 1. Demographic information for the subjects whose data are used for model development in this study.
Table 1. Demographic information for the subjects whose data are used for model development in this study.
CategoriesSHHS1
Number of subject 1 4664
Age 65.88 ± 11.01
BMI 28.24 ± 5.04
GenderFemale2287 (49.04%)
Male2377 (50.96%)
AHI 18.66 ± 15.4
Binary (AHI cut-off = 5)Normal634 (13.59%)
Patient/have apnea4030 (86.40%)
Binary (AHI cut-off = 15)Normal & mild2426 (52.02%)
Moderate & severe2238 (47.98%)
Binary (AHI cut-off = 30)Non-severe3 840 (82.33%)
Severe824 (17.67%)
MulticlassNormal634 (13.59%)
Mild1792 (38.42%)
Moderate1414 (30.32%)
(AHI cut-offs: 5, 15, 30)Severe824 (17.67%)
1 After pre-processing steps.
Table 2. The table presents features that exhibit notable trends across multiple timescales. It includes the highest and lowest correlation values observed, the median correlation value, and the specific timescale at which the highest correlation occurred.
Table 2. The table presents features that exhibit notable trends across multiple timescales. It includes the highest and lowest correlation values observed, the median correlation value, and the specific timescale at which the highest correlation occurred.
TrendFeaturesDescriptionCorrelation Coefficient Score ( ρ )Timescale of Highest  ρ
Highest Lowest Median
MPercentage of the signal at least x% below median SpO2, by default x = 20.540.180.402 s
ODIThe oxygen desaturation index0.770.20.483 s
CAIntegral of SpO2 below the x SpO2 level normalized by the total recording time, by default x = AV, here 930.540.160.41 s
PODTime of oxygen desaturation event, normalized by the total recording time0.750.200.411 s
Showing decreasing trendAODmaxThe area under the oxygen desaturation event curve, using the maximum SpO2 value as baseline and normalized by the total recording time0.680.200.401 s
AOD100Cumulative area of desaturations under the 100% SpO2 level as baseline and normalized by the total recording time0.710.200.421 s
ApEnApproximate entropy with, by default, m = 1, r = 0.25 times the standard deviation of the data0.850.110.725 s
alphaLong-term correlations for non-stationary process, using non-overlapping windows−0.57−0.08−0.445 s
alphaOverlapLong-term correlations for non-stationary process, using overlapping windows−0.57−0.12−0.435 s
DistEnDistribution entropy0.520.230.431 s
ReachZCMean crossing0.61−0.010.4520 s
strongerLZLempel–Zip complexity0.560.130.4310 s
correlation at higherPRSAcPhase-rectified signal averaging capacity. With d the fragment duration, here d = 10−0.680.03−0.176 s
timescaleCondEnCorrected conditional entropy0.530.240.4210 s
DispEnDispersion entropy0.570.240.4515 s
ShowhjmHjorth mobility0.45−0.210.2220 s
correlationhjcHjorth complexity−0.460.10−0.277 s
polarityPhasEnPhase entropy−0.600.070.183 s
shiftsComplexEnComplex entropy−0.860.31−0.7610 s
CTMCentral tendency measure with radius ρ , by default ρ = 0.25−0.82−0.37−0.7515 s
Mean abs changeAverage magnitude of change between consecutive SpO2 values0.840.280.7115 s
Constant highFuzzEnFuzzy Entropy0.860.380.7615 s
highIncrEnIncrement entropy0.860.390.7715 s
relationshipK2EnKolmogorov (K2) entropy0.810.370.739 s
PermEnPermutation entropy0.860.370.763 s
SampEnSample entropy0.800.360.715 s
ShannonEnShannon entropy0.660.280.554 s
ComplexEnComplex entropy−0.860.31−0.7610 s
Table 3. Classification results for each models at each task with 3 settings.
Table 3. Classification results for each models at each task with 3 settings.
Acc (%)Pre (%)Sen (%)F1-ScoreMCCAUC
Multi-ScaleBaselineMulti-ScaleBaselineMulti-ScaleBaselineMulti-ScaleBaselineMulti-ScaleBaselineMulti-ScaleBaseline
Cut_off_5
Bayes73.5967.1796.7796.7571.8464.160.820.770.410.350.830.84
DT85.3884.3591.9191.6791.1090.070.920.910.390.370.650.69
KNN87.5087.1188.2187.6898.7398.990.930.930.290.240.870.85
LG88.5488.9493.6291.3393.0896.350.930.940.520.460.920.91
XGB88.6688.3792.3291.9994.7694.800.940.930.480.470.910.91
CatBoost89.6389.1092.2791.4496.0696.420.940.940.510.470.920.92
MLP87.1386.2492.0191.6693.2092.490.930.920.430.400.890.87
Cut_off_15
Bayes79.5877.1784.1287.6670.9261.080.770.720.600.560.860.86
DT81.3680.8081.6280.9679.0178.520.800.800.630.620.790.81
KNN83.5782.2085.0684.2679.8477.420.820.810.670.640.910.90
LG87.0586.4987.6987.2485.0184.200.860.860.740.730.940.94
XGB86.1186.0886.3186.5684.4984.090.850.850.720.720.940.94
CatBoost87.1786.8287.5987.4385.4284.790.870.860.740.740.950.94
MLP84.8982.8584.4782.7284.0081.330.840.820.700.660.930.91
Cut_off_30
Bayes85.9288.0557.4164.5779.5372.210.670.680.590.610.890.91
DT90.5389.4774.3871.4571.1067.670.730.690.670.630.790.83
KNN90.7491.0787.9483.8555.2061.470.680.710.650.670.940.94
LG92.0292.7974.5184.1583.6673.080.790.780.740.740.960.96
XGB92.8692.1282.2780.3976.1773.540.790.770.750.720.960.95
CatBoost93.4792.6784.3782.5577.5074.340.810.780.770.740.960.96
MLP91.9290.8577.8374.6476.1673.420.770.740.720.690.950.94
Multiclass
Bayes57.7057.3657.6657.8758.2555.570.580.560.410.40
DT60.8558.6760.8758.2460.0257.550.600.580.450.42
KNN62.3260.9166.1363.0755.0553.920.570.550.460.44
LG67.5468.3767.4369.3265.0964.490.660.660.540.55
XGB69.2868.2969.8668.8467.1665.600.680.670.560.55
CatBoost70.4668.5471.8869.8567.6464.750.690.660.580.55
MLP62.7260.1462.4059.4961.4958.780.620.590.470.44
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Hoang, N.H.; Liang, Z. Detection and Severity Classification of Sleep Apnea Using Continuous Wearable SpO2 Signals: A Multi-Scale Feature Approach. Sensors 2025, 25, 1698. https://doi.org/10.3390/s25061698

AMA Style

Hoang NH, Liang Z. Detection and Severity Classification of Sleep Apnea Using Continuous Wearable SpO2 Signals: A Multi-Scale Feature Approach. Sensors. 2025; 25(6):1698. https://doi.org/10.3390/s25061698

Chicago/Turabian Style

Hoang, Nhung H., and Zilu Liang. 2025. "Detection and Severity Classification of Sleep Apnea Using Continuous Wearable SpO2 Signals: A Multi-Scale Feature Approach" Sensors 25, no. 6: 1698. https://doi.org/10.3390/s25061698

APA Style

Hoang, N. H., & Liang, Z. (2025). Detection and Severity Classification of Sleep Apnea Using Continuous Wearable SpO2 Signals: A Multi-Scale Feature Approach. Sensors, 25(6), 1698. https://doi.org/10.3390/s25061698

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop