Conference PaperPDF Available

Automatic Detection of Sleep Apnea from Single-lead ECG Signal Using Machine Learning

Authors:

Abstract and Figures

Sleep apnea is a common disorder that reduces sleep quality which can lead to serious health consequences. It is identified by a pause in breathing during sleep. At present, polysomnography (PSG) is used to diagnose sleep disorders at sleep centers. PSG is non-invasive but expensive and inconvenient as a clinician needs to observe the subjects overnight. Therefore, development of low-cost and most comfortable techniques is being developed by the researchers. This research presents an implementation of a classification algorithm for identifying sleep apnea episodes using an electrocardiogram (ECG) signal. It also provides a comparison of the accuracies achieved by different classifiers and a comparison between the performance of individual features. A Sgolay filter was utilized for baseline correction and denoising the ECG signal and used to calculate the Heart Rate Variability (HRV) sequence using RR intervals. Ten features were extracted from the ECG and HRV signals, and the performance of the proposed algorithm has been estimated for five classifiers, support vector machine (SVM), linear discriminant analysis (LDA), K-nearest neighbor (KNN), random forest (RF) and decision tree (DT). For the ECG signal, the average accuracies depicted by SVM, LDA, KNN, RF, and DT are 86.01±1.16,68.16±0.76,84.99±1.24,87.00±1.40, and S2.56±1.05, respectively. Further, for the HRV signal, the average accuracies depicted by SVM, LDA, KNN, RF, and DT are 83.53±1.36, 72.69±2.06, 82.60±1.07, 85.10±1.44, and 78.60±1.15, respectively. This research highlights the significance of selecting the appropriate classifier for a given issue and establishing and using the most relevant characteristics to achieve a higher level of accuracy. These encouraging early-stage findings might pave the way for additional research to refine the classifiers in preparation for potential use in the real world. The effectiveness of the suggested model was evaluated alongside the performance of other methods already in use for the detection of sleep apnea.
Content may be subject to copyright.
Automatic Detection of Sleep Apnea from Single-
lead ECG Signal Using Machine Learning
Amit Bhongade*
Department of Electrical Engineering,
Indian Institute of Technology Delhi,
Delhi, India
amitbhongade46@gmail.com*
Rohit Gupta
Department of Electrical Engineering,
Indian Institute of Technology Delhi,
Delhi, India
rohit.udai@yahoo.co.in
Tapan Kumar Gandhi
Department of Electrical Engineering,
Indian Institute of Technology Delhi,
Delhi, India
tgandhi@iitd.ac.in
Abstract Sleep apnea is a common disorder that reduces
sleep quality which can lead to serious health consequences. It
is identified by a pause in breathing during sleep. At present,
polysomnography (PSG) is used to diagnose sleep disorders at
sleep centers. PSG is non-invasive but expensive and
inconvenient as a clinician needs to observe the subjects
overnight. Therefore, development of low-cost and most
comfortable techniques is being developed by the researchers.
This research presents an implementation of a classification
algorithm for identifying sleep apnea episodes using an
electrocardiogram (ECG) signal. It also provides a comparison
of the accuracies achieved by different classifiers and a
comparison between the performance of individual features. A
Sgolay filter was utilized for baseline correction and denoising
the ECG signal and used to calculate the Heart Rate
Variability (HRV) sequence using RR intervals. Ten features
were extracted from the ECG and HRV signals, and the
performance of the proposed algorithm has been estimated for
five classifiers, support vector machine (SVM), linear
discriminant analysis (LDA), K-nearest neighbor (KNN),
random forest (RF) and decision tree (DT). For the ECG
signal, the average accuracies depicted by SVM, LDA, KNN,
RF, and DT are 86.01±1.16, 68.16±0.76, 84.99±1.24, 87.00±1.40,
and 82.56±1.05, respectively. Further, for the HRV signal, the
average accuracies depicted by SVM, LDA, KNN, RF, and DT
are 83.53±1.36, 72.69±2.06, 82.60±1.07, 85.10±1.44, and
78.60±1.15, respectively. This research highlights the
significance of selecting the appropriate classifier for a given
issue and establishing and using the most relevant
characteristics to achieve a higher level of accuracy. These
encouraging early-stage findings might pave the way for
additional research to refine the classifiers in preparation for
potential use in the real world. The effectiveness of the
suggested model was evaluated alongside the performance of
other methods already in use for the detection of sleep apnea.
KeywordsECG signals, RR/HRV signals, sleep disorders,
classification.
I. INTRODUCTION
Approximately one-third of a person's life is spent
sleeping, based on average longevity. A sleeping problem is
characterized by an inability to sleep, which results in
impaired bodily functions. Sleep is essential for every person
since it enables the body to recover and keep itself healthy
[1]. In the same way as getting enough rest may have a
variety of positive impacts on a person's body, including
mental, emotional, and physical consequences, not getting
enough sleep can have a negative effect on the body
physically, emotionally, and physiologically. At present,
restless leg syndrome, narcolepsy, sleep apnea, and insomnia
are some of the most common sleep disorders identified out
of 84 existing sleep disorders [2].
Sleep apnea is a clinically significant and possibly life-
threatening sleep disorder defined by periods during sleep in
which a person stops breathing for seconds or even minutes.
Apnea refers to pauses in breathing and might vary in terms
of the frequency with which it occurs and the amount of time
it lasts. On the other hand, hypopnea refers to an absence of
breathing during sleep [3]. Sleep apnea is a primary cause of
morbidity and death because it directly affects the
cardiovascular system by increased sympathetic activity and
systemic hypertension. This causes the heart and arteries to
work harder than they should [1]. Obstructive sleep apnea
(OSA) and central sleep apnea are the two categories of sleep
apnea. Because of a narrowing of the upper respiratory
airway, OSA is well known, affecting 1-3% of preschoolers
and 2-4% of middle-aged people [4]. Moreover, CSA is
mixed, produced by a lack of or suppressed respiratory drive,
and commonly coupled with OSA cases, and the instances of
CSA by itself emerge exceptionally rarely. OSA cases
generally occur in conjunction with CSA cases [5].
The traditional approach is PSG, which diagnoses sleep
disorders at sleep centers. PSG records breathing, heart rate,
the oxygen level in the blood, brain waves (electromyogram
(EMG), electrooculogram (EOG), and electroencephalogram
(EEG)), and eye and leg movements during sleep [6].
However, these physiological data recordings are time-
consuming, cumbersome, and complex because it is
necessary to conduct an extensive test in a well-calibrated
laboratory environment, such as a hospital setting. Hence,
this diagnosis is not only unrealistic for a broad
population but is also exceedingly expensive. Therefore, the
development of surrogate procedures that are capable of
being administered to the patient in a manner that is
comfortable for them and provides a solution that facilitates a
more straightforward diagnosis and more suitable treatment
for sleep apnea. In addition, it seems that automatic, portable,
at-home gadgets used while sleeping is becoming more
desirable, promising, and highly on demand.
In literature, various techniques have been proposed to
diagnose sleep apnea disease over the last few years. The
study by N. Pombo et al. [7] performed a systematic review
on computerized systems and the classification of ECG
signal-based apnea detection. However, the accuracy of the
classifiers is highly dependent on feature selection from
multiple data sources. In addition, the existing method of
PSG requires extensive data collection combined with
various modalities of data such as oxygen saturation (SpO2),
electromyogram (EMG), electrooculogram (EOG), and
2022 International Conference on Futuristic Technologies (INCOFT)
K
arnataka, India. Nov 25-27, 2022
978-1-6654-5046-1/22/$31.00 ©2022 IEEE 1
2022 International Conference on Futuristic Technologies (INCOFT) | 978-1-6654-5046-1/22/$31.00 ©2022 IEEE | DOI: 10.1109/INCOFT55651.2022.10094459
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY DELHI. Downloaded on April 17,2023 at 05:43:08 UTC from IEEE Xplore. Restrictions apply.
electroencephalogram (EEG). Therefore, as an alternate
approach for diagnosing sleep apnea, the use of fewer
physiological signs is now favored. [8]. The sleep apnea
detection algorithm using RR and HR signals retrieved from
single-lead ECG data was introduced by R. K. Tripathy et al.
[9]. Distinguishing sleep apnea and normal episodes were
accomplished with the help of the SVM and RF classifiers.
The inspection findings showed that each classifier's
accuracy was improved when they used features derived
from the HR signal rather than the RR signal. Furthermore,
the results obtained from 10-fold cross-validation
demonstrated that the SVM had performed better than the
RF. Similarly, the study conducted by the A. Pinho et al.
implemented the SVM and Artificial Neural Network (ANN)
to determine the system performance. In this, SVM
performed better with higher accuracy than ANN. The
outcomes of the experiments revealed that various aspects of
the system are responsible for multiple aspects of the
system’s performance. The study by A. Zarei et al. [10]
presented a study based on ECG signals to detect sleep
apnea. The classifiers used for classification between normal
and sleep apnea events were RF, Naive Bayes (NB), Logistic
Regression (LR), kNN, RF, SVM, and LDA. The author
concluded that RF performed better with high accuracy than
other classifiers. Similarly, a study by H. Sharma et al. [11]
utilized single-lead ECG electrodes and used SVM, LS-
SVM, Multilayer Perceptron Neural Network (MLPNN),
KNN, etc. Based on the findings of the experiments, it was
determined that the RBF kernel-based LS-SVM performed
better than other classifiers.
In this research, we exhibited a complete analysis by
employing two distinct sets of features derived from the
filtered ECG and the HRV signal. Both sets of features were
used to examine the data. In addition to that, the
effectiveness of the proposed method is determined by five
different classifiers (SVM, KNN, LDA, RF, DT). The main
contribution of this research is to provide a cost-efficient and
simple diagnostic tool to detect sleep apnea.
II. MATERIALS AND METHODS
Based on the literature above, we have formulated the
study that contained; sleep apnea detection using ECG signal
alone; appropriate feature selection is a prominent factor in
determining the accuracy of the classifier and presented the
comparison between the performance of different classifiers
for the same ECG signals. The proposed data processing and
system model is depicted in Figure 1, and a detailed
explanation is provided in the below sections.
A. Dataset
The dataset used to conduct this study is available in
PhysioNet [12] database. It is the most popular dataset, and
many studies have already been conducted on this dataset.
The considered dataset consists of ECG records of 35
subjects (Age:27 to 63, body mass index: 19.2 to 45.33 kg/m,
and apnea-hypopnea index (AHI): 0 to 83).
Out of these recordings, only ten subjects’ datasets were
selected based on sleep apnea and non-apnea events in the
recordings to perform this research. A total of 10 single-lead
ECG recordings (a01, a02, a03, a04, a06, a08, a09, a10, a14,
b01) were analyzed from this data set. These ten recordings,
each of which has been evaluated by a specialist in the field
of sleep apnea, include a total of 3032 minutes of apnea and
2044 minutes of non-apnea events. Each ECG record was
sampled at 100 Hz (12-bit resolution) and is of a different
length. However, details regarding waking and sleeping
times, as well as awakenings caused by trembling and
jerking limbs during sleep, are lacking. Furthermore, the
dataset does not include information on other sleep-related
diseases or cardiac difficulties, nor does it include specifics
about obstructive apnea, hypopnea, and central apnea.
Fig. 1. Proposed data processing and system model
B. Pre-processing of ECG signal
The dataset used contains data files in. apn format. The
.apn files were imported and processed in the MATLAB
2020b software. The database utilized for this study has
artifacts and noise incorporated with it, which occurred in a
clinical setting. It contains a variety of P-, T-wave
morphologies, and QRS complexes. The Sgolay filter [13]
was utilized for the baseline corrections and to denoise the
ECG signal. The filtered signal was subtracted from the
original ECG signal to obtain the noise-free and baseline
corrected ECG signal, as shown in Figure 2.
In addition, the R-peaks and QRS complexes can be
detected using the filtered ECG signal without misclassifying
or missing a pulse. The cyclic fluctuation in pulse duration is
also known as the RR interval. According to the research, the
RR interval comprises bradycardia during apnea and
tachycardia after it ends because of sleep apnea [6].
Fig. 2. (a) Raw ECG waveform, (b) Filtered ECG waveform with baseline
correction, (c) RR peak marked waveform.
2
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY DELHI. Downloaded on April 17,2023 at 05:43:08 UTC from IEEE Xplore. Restrictions apply.
Several studies were conducted to identify sleep apnea by
utilizing the characteristics calculated using HRV signal and
RR interval. These characteristics include the standard
deviation, inter-quartile range (IQR), mean, and median of
the HRV signal [6] [14][15]. In this research, thresholding of
30% of maximum values is utilized to find the RR peaks in
filtered ECG signals because it was able to improve the
performance of the system. Then, the RR time intervals using
filtered ECG signals can be calculated using the formula
shown in equation 1 [14]. In addition, the sequence formed
using RR intervals represents the HRV signal.
ܴܴ݆ൌܴܴ
݆൅ͳ
െܴܴ
݆ǡሺ݆ ͳǡ ʹǡ ǥ Ǥ Ǥ ǡ ݊ ͳሻ ǥ ǥ ሺͳሻ
Where n: Number of RR peaks in the ECG signal.
C. Feature extraction and classification
The feature extraction was performed using a moving
window of a one-minute on ECG and the HRV signal. A
total of ten-time domain features were extracted to perform
the comprehensive study, as shown in Table 1. To perform
the classification, all recordings from the one-minute section
were classified as either non-apnea or apnea episodes by
assigning them the values 0 or 1, respectively. Further, to
tackle the class imbalance issue, the under-sampling
technique has opted. As mentioned before, only ten subject
databases have been used for this study. So, the database of
these subjects contained 5076 records, of which 59.73%
related to sleep apnea events, whereas 40.27% related to non-
apnea events. The database was divided into two groups,
testing and training sets. In addition, the k-fold cross-
validation technique, with k=10, was utilized to enhance the
classifiers' training. Five classifiers (SVM, LDA, KNN, RF,
and DT) were applied during the classification phase, and
their comparative performances were assessed. Finally, the
six parameters, accuracy, precision, sensitivity, specificity,
recall, and F1 score, were evaluated for all these classifiers.
TABLE I. LIST OF EXTRACTED FEATURES FROM ECG AND HRV
SIGNALS
Signal
Features
ECG Signal
RMS, variance, kurtosis, skewness, mean, std,
power, entropy, minimum, maximum.
HRV Signal
HR, mean, standard deviation, mean of peak
values
in HRV,
standard deviation of HRV,
HRV
>50 ms, %HRV>50 ms,
RMS of HRV,
entropy
of HRV, interquartile range
of HRV
[16][17].
III. RESULTS AND DISCUSSION
The present research explored the two different feature
extraction methodologies applied to ECG signals to detect
sleep apnea. The first approach utilized the time- domain and
statistical features of the ECG signal. Whereas the second
approach utilized the features derived from the R-peaks and
HRV signal. To detect the RR peaks, the filtered ECG signal
has been passed through the peak detector module. The
performance of the peak detector module was highly
dependent on the threshold value. Hence, to select the
appropriate threshold value, the threshold was varied from 20
to 50 with an increment of 5, and subsequently, the features
were estimated for each threshold value. Further, the
performance of all the classifiers was estimated.
Figure 3 depicts the average accuracies illustrated by the
classifiers for different RR threshold values. Apart from the
DT and LDA classifier, the performance of all the classifiers
was found similar (p-value>0.05) for all the threshold values
less than 40. For the LDA classifier, the best performance
was depicted with a threshold value of 25. Whereas, for the
DT classifier, the best performance was achieved with a
threshold value of 20. So, for further analysis, the threshold
value of 25 was considered.
Fig. 3. Classifiers performance for different RR threshold values
Figure 4 (a) and (b) show the box plot of individual
features estimated from the ECG signal and RR/HRV signal,
respectively. For ECG features, none of the features depicted
very significant differences between the groups, normal(N)
and apnea (A). Further, for features estimated from RR and
HRV signals, only the HR depicted a substantial difference
between the groups, whereas the rest of the features were
found comparatively similar for both groups. Table 2
presents the performance of all the classifiers for the
individual feature. For the first type of feature set, the lowest
performance was depicted by all the classifiers for the mean
of the ECG signal. Whereas, for the second type of feature
set, StdRR feature emerged as the least performing feature for
all the classifiers. Among the classifiers, LDA performs the
least for most of the features. However, it depicted the least
variation in performance for 10-fold cross-validation.
Further, the performance of all the classifiers was
estimated for the complete feature vector formulated through
the feature extraction approach individually. Figure 5 depicts
the % classification accuracy of the sleep apnea detection
model for all compared classifiers using ECG and HRV
signals, respectively. The quantitative analysis used the
performance measures namely, accuracy, precision,
sensitivity, specificity, recall, and F1 score of each class. The
average classification accuracies using ECG signals for
SVM, LDA, KNN, RF, and DT are 86.01±1.16, 68.16±0.76,
84.99±1.24, 87.00±1.40, and 82.56±1.05, respectively.
Furthermore, the average classification accuracies of sleep
apnea detection using HRV signal for SVM, LDA, KNN,
RF, and DT are 83.53±1.36, 72.69±2.06, 82.60±1.07,
85.10±1.44, and 78.60±1.15, respectively. The RF classifier
was found to be the best performer, whereas the LDA is the
least performed.
3
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY DELHI. Downloaded on April 17,2023 at 05:43:08 UTC from IEEE Xplore. Restrictions apply.
Fig. 4. Performance of individual features. (a) For ECG signal, (B) For HRV signal
TABLE II. PERFORMANCE OF DIFFERENT CLASSIFIERS FOR INDIVIDUAL FEATURES (ACCURACIES)
Performance of classifiers for the individual feature of the ECG signal
Features
SVM
LDA
KNN
RF
DT
RMS
64.22±2.04
62.08±0.86
67.61±1.93
64.54±2.32
65.56±2.13
Variance
64.03±3.18
60.82±0.74
67.75±1.94
64.01±2.73
65.13±2.47
Kurtosis
61.41±2.33
59.73±0.08
64.76±1.43
60.74±2.03
62.53±2.06
Skewness
64.28±1.45
63.87±1.34
68.19±2.46
64.82±2.11
65.86±1.35
Mean
53.58±1.34
60.07±0.55
58.63±1.24
55.46±2.17
57.52±1.93
Standard Deviation
63.42±2.78
62.12±0.87
67.77±1.94
63.99±2.76
65.13±2.47
Power
63.14±1.90
60.76±0.73
67.59±1.90
64.48±2.30
65.56±2.13
Entropy
63.24±2.55
60.80±0.99
65.27±1.90
61.98±1.72
63.93±1.61
Minimum
63.24±1.99
60.70±0.81
65.82±1.21
63.28±2.42
64.36±2.13
Maximum
66.31±1.05
60.70±0.56
69.64±0.73
65.44±2.34
66.73±1.82
Performance of classifiers for the individual feature of RR and HRV signal
Features
SVM
LDA
KNN
RF
DT
HR
70.84±1.66
70.76±2.05
66.07±1.42
71.21±1.75
71.07±1.70
MeanHRV
63.27±1.11
60.06±0.20
65.36±1.70
63.21±1.33
63.78±2.21
StdHRV
61.06±1.19
59.74±0.07
62.76±2.27
57.67±2.26
60.12±2.94
MaxHRV
62.56±1.85
59.74±0.07
65.34±2.05
62.31±2.28
63.82±1.42
StdRR
58.76±1.29
59.74±0.07
58.60±1.02
55.90±1.26
57.30±2.15
HRV>50ms
62.78±1.18
59.74±0.07
55.84±1.67
62.72±1.30
62.86±1.22
%HRV>50ms
63.66±1.51
62.40±0.74
60.55±1.63
64.41±1.67
64.27±2.00
RMSHRV
62.09±1.38
59.74±0.07
66.36±1.66
62.32±2.52
64.08±2.36
EntropyHRV
61.83±1.14
58.96±1.04
65.46±1.96
60.87±1.48
63.59±2.15
IQRHRV
67.25±1.50
60.10±0.26
61.18±1.83
66.86±1.32
67.25±1.70
Fig. 5. Performance of classifiers for ECG and RR/HRV signal
4
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY DELHI. Downloaded on April 17,2023 at 05:43:08 UTC from IEEE Xplore. Restrictions apply.
IV. CONCLUSION
In the present research work, an ECG-based model for
analyzing sleep apnea on a minute-by-minute basis is
presented. The primary objective is to develop an accurate
and effective alternative technique to the traditional PSG. In
addition, a standard that has considered all five types of
classifiers, namely SVM, LDA, KNN, RF, and DT, has been
constructed. As a consequence of the findings that have been
provided, it is clear that various classifiers use different
strategies while attempting to solve the same problem. In
addition, the model developed in this research is reliable,
feasible, and appropriate to detect sleep apnea using ECG
signals. The performance of the proposed algorithm has been
estimated for five classifiers, SVM, LDA, KNN, RF, and
DT. The average classification accuracies using ECG signals
for SVM, LDA, KNN, RF, and DT are 86.01±1.16,
68.16±0.76, 84.99±1.24, 87.00±1.40, and 82.56±1.05,
respectively. Furthermore, the average classification
accuracies of sleep apnea detection using HRV signal for
SVM, LDA, KNN, RF, and DT are 83.53±1.36, 72.69±2.06,
82.60±1.07, 85.10±1.44, and 78.60±1.15, respectively.
Possible directions for future research include incorporating
feature selection to identify an optimal set of characteristics
for sleep apnea detection, increasing sensitivity to capture all
apnea moments, simulating the study in real patients to
assess its feasibility, and calculating and comparing the
performance of the various techniques used in the research.
REFERENCES
[1] G. Atkinson and D. Davenne, ‘‘Relationships between sleep, physical
activity and human health,’’ Physiol. Behav., vol. 90, nos. 2–3, pp.
229235, Feb. 2007. [Online]. Available:
http://www.sciencedirect.com/science/article/pii/S0031938406003957
[2] Sleep Disorder Overview. www.neurologychannel.com
[3] S. Isa, M. Fanany, W. Jatmiko and A. Arymurthy, “Sleep Apnea
Detection from ECG Signal, Analysis on Optimal Features, Principal
Components, and Nonlinearity,” in Proceedings of the 5 th IEEE
International Conference on Bioinformatics and Biomedical
Engineering (iCBBE), pp. 1-4, May 2011.
[4] Sleep Apnea: What Is Sleep Apnea? www.nhlbi.nih.gov
[5] Apnea guide. www.apneaguide.com
[6] P. Chazal, T. Penzel, and C. Heneghan, “Automated Detection of
Obstructive Sleep Apnea at Different Time Scales Using the
Electrocardiogram,” Institute of Physics Publishing, vol. 25, no. 4, pp.
967-983, Aug. 2004.
[7] N. Pombo, N. Garcia, and K. Bousson, ‘‘Classification techniques on
computerized systems to predict and/or to detect apnea: A systematic
review,’’ Comput. Methods Programs Biomed., vol. 140, pp. 265–
274, Mar. 2017. [Online]. Available:
www.sciencedirect.com/science/article/pii/S016926071630611.
[8] A. M. da Silva Pinho, N. Pombo, and N. M. Garcia, ‘‘Sleep apnea
detection using a feed-forward neural network on ECG signal,’’ in
Proc. IEEE 18th Int. Conf. e-Health Netw., Appl. Services
(Healthcom), Sep. 2016, pp. 16.
[9] R. K. Tripathy, P. Gajbhiye, and U. R. Acharya, ‘‘Automated sleep
apnea detection from cardio-pulmonary signal using bivariate fast and
adaptive EMD coupled with cross time–frequency analysis,’’
Comput. Biol. Med., vol. 120, May 2020, Art. no. 103769. [Online].
Available: http://www.
sciencedirect.com/science/article/pii/S0010482520301414.
[10] A. Zarei and B. M. Asl, ‘‘Performance evaluation of the spectral
autocorrelation function and autoregressive models for automated
sleep apnea detection using single-lead ECG signal,’’ Comput.
Methods Programs Biomed., vol. 195, Oct. 2020, Art. no. 105626.
[Online].Available:http://www.sciencedirect.com/science/article/pii/S
0169260720314590.
[11] H. Sharma and K. K. Sharma, ‘‘An algorithm for sleep apnea
detection from single-lead ECG using Hermite basis functions,’’
Comput. Biol. Med., vol. 77, pp. 116124, Oct. 2016. [Online].
Available: http://www.sciencedirect.com/science/article/pii/
S0010482516302086.
[12] T. Penzel, G. B. Moody, R. G. Mark, A. L. Goldberger, and J. H.
Peter, ‘‘The apnea-ECG database, ’’ in Proc. Comput. Cardiol., vol.
27, Sep. 2000, pp. 255258. PhysioNet, www.physionet.org.
[13] A. Savitzky and M. J. E. Golay, ‘‘Smoothing and differentiation of
data by simplified least squares Procedures.,’’ Anal. Chem., vol. 36,
no. 8, pp. 16271639, Jul. 1964, doi: 10.1021/ac60214a047.
[14] S. Isa, M. Fanany, W. Jatmiko and A. Murini, “Feature and Model
Selection on Automatic Sleep Apnea Detection Using ECG,” in
International Conference on Computer Science and Information
Systems, ICACSIS 2010, pp. 357-362, 2010.
[15] P. Langley, E. Bowers and A. Murray, “Principal Component
Analysis as Tool for Analyzing Beat-to-Beat Changes in ECG
Features: Application To ECG-Derived Respiration,” in IEEE
Transactions on Biomedical Engineering, vol. 57, no. 4, pp. 821- 829,
Apr. 2010.
[16] P. Schmidt, A. Reiss, R. Duerichen, C. Marberger, and K. V.
Laerhoven. 2018. Introducing WESAD, a Multimodal Dataset for
Wearable Stress and Affect Detection. In Proceedings of the 20th
ACM International Conference on Multimodal Interaction (ICMI '18).
Association for Computing Machinery, New York, NY, USA, 400
408. https://doi.org/10.1145/3242969.3242985.
[17] Bertini M, Ferrari R, Guardigli G, Malagù M, Vitali F, Zucchetti O,
D'Aniello E, Volta CA, Cimaglia P, Piovaccari G, Corzani A, Galvani
M, Ortolani P, Rubboli A, Tortorici G, Casella G, Sassone B, Navazio
A, Rossi L, Aschieri D, Rapezzi C. Electrocardiographic features of
431 consecutive, critically ill COVID-19 patients: an insight into the
mechanisms of cardiac involvement. Europace. 2020 Dec
23;22(12):1848-1854. doi: 10.1093/europace/euaa258. PMID:
32944767; PMCID: PMC7543398.
5
Authorized licensed use limited to: INDIAN INSTITUTE OF TECHNOLOGY DELHI. Downloaded on April 17,2023 at 05:43:08 UTC from IEEE Xplore. Restrictions apply.
... In this research, a total of five machine learning models have been selected based on popularity, diversity, and ability to distinguish between different class signals. Support vector machine (SVM), K-nearest neighbors (KNN), random forest (RF), decision tree (DT), and neural networks (NN) has been utilized for the classification purpose [30]. ...
Conference Paper
Full-text available
Over the last three decades, the transdisciplinary research community, including medical and engineering, has paid increased attention to snoring. Research from the past has shown that snoring may convey useful information about the health of the upper airway, paving the door for the creation of non-invasive acoustic-based-based techniques for the diagnosis and screening of obstructive sleep apnea and other sleep disorders. In the present paper, we are presenting an automated framework for snoring detection using audio data. Firstly, the audio signals are pre-processed, and thereafter different types of features, including spectral, statistical, and acoustic, are extracted. Thereafter prominent features are selected using the sequential forward feature (SFS) selection method. The selected features are then fed to different classifiers for the final classification task. Experimenting on benchmark snoring dataset, reveal that the RF classifier achieved the highest performance in terms of accuracy, precision, sensitivity, specificity, F1-score, MCC, and Kappa, which were 95.9±3.03, 95.32±2.89, 96.6±4.90, 95.2±3.16, 95.89±3.10, 91.93±5.97, and 91.8±6.07, respectively. This study also emphasizes the importance of feature selection and classifier selection for a specific problem. The results presented in the work will act as precursors for the design of robust snoring detection models for real-world use.
... As a result of the Covid-19 pandemic, it became clear that new medical monitoring equipment and updates to current technology were required in SA [16]. The aforementioned drawbacks have persuaded researchers to develop portable, affordable respiration monitoring devices that can detect the SA with comparable accuracy to the PSG [17]. Despite their potential drawbacks, wearable and portable technologies are advantageous for long-term patient monitoring since they are less complicated and cumbersome. ...
Conference Paper
Full-text available
Continuous monitoring of breathing activity is vital in detecting respiratory-based diseases such as obstructive sleep apnea (OSA) and hypopnea. Sleep apnea (SA) is a potentially dangerous sleep problem that occurs when a person's breathing stops and begins periodically while they sleep. In addition, SA interrupts sleep, causing significant daytime sleepiness, weirdness, and irritability. This study aims to design a single inertial measurement unit (IMU) sensor-based system to analyze the respiratory rate of humans. The results of the developed system is validated with the Equivital Wireless Physiological Systems for different activities. Further, the experiment has been designed to identify the optimal sensor placement location for efficient respiration rate estimation during different activities. The performance of the developed model has been quantified using breathing rate estimation accuracy (% BREA) and mean absolute error (MAE). Among all sensor placement locations and activities combinations, a window size of 30sec resulted in the worst performance, whereas a window size ≥ 60sec resulted in a better performance (p-value<0.05). In addition, the performance of the model has been found consistent for window size ≥ 60sec (p-value>0.05). For activity 3 (lying straight), comparably similar performance, 0.52±0.24 and 0.52±0.12 (p-value>0.05) have been depicted by the sensor placement position 3 (Abdomen) and position 1 (chest), respectively. Further, for the other two activities, activity 1 (sitting and working) and activity 2 (sitting straight), the best performance has been depicted as 0.32±0.18, 0.49±0.21 respectively (p-value<0.05), by the sensor placement position 2 (left ribs). This research presents a reliable, cost-effective, portable respiration monitoring system that could detect SA during sleep.
... They also advised the use of a temporal window multilayer perceptron, also known as a TW-MLP, in order to categorize the features that were gathered in order to diagnose sleep apnea. In [25], Bhongade et al. used features calculated from ECG and RR intervals and utilized several classifiers to show the performance. In these classifiers, the random forest classifier performed well and received the highest accuracy of 87%. ...
Conference Paper
Full-text available
Obstructive sleep apnea (OSA) is a prevalentsleep disorder that induces respiratory disturbances during thestate of sleep. Furthermore, it is associated with severalcomorbidities, such as cardiovascular ailments like coronaryheart disease and hypertension. Nocturnal polysomnography(PSG) is a clinical diagnostic modality utilized for the diagnosisof OSA. This method is associated with significant costs anddiscomfort for patients, as it necessitates manual interpretationby trained professionals and is time-consuming. Methodsutilizing electrocardiogram (ECG) signals for the diagnosis ofOSA have been proposed as a means of mitigating associatedchallenges. Nevertheless, the vast majority of the currentlyavailable solutions are based on feature engineering, whichrequires a large amount of specialized knowledge and skill. Thepresent study introduces an innovative technique for thecategorization of OSA through the utilization of a ResNet modelon a solitary-lead ECG signal. In order to train and test theproposed model, the PhysioNet Apnea-ECG database was usedthroughout the process. ReseNet18 and ResNet50 are both deeplearning models, and they are used to predict how well the modelwill perform. For a batch size of 256, after 2, and before 2, theResNet 18 proved its maximum performance by achieving anaccuracy of 89% and a recall of 89%. In addition, the ResNet 50was able to attain its maximum performance by doing thefollowing: obtaining an accuracy of 89%, a precision of 89%, anF1-score of 89%, and a recall of 89% for the batch size of 512,after 1, and before 1.
Conference Paper
Full-text available
Obstructive sleep apnea (OSA) is a condition that influences many people and is determined by events of reduced respiratory airflow during sleep. However, electrocardiogram (ECG)-based detection of OSA is more suitable for noninvasive requirements and instrument limitations of wearable portable devices. As compared to earlier electrocardiogram (ECG) based OSA detection systems, deep learning approaches demonstrate substantial promises and advantages. This research presents a model for the detection of OSA from a single-lead ECG using a 1D convolutional neural network (1D-CNN). The performance of the proposed model is estimated on the well-established PhysioNet Apnea-ECG dataset. This dataset includes seventy ECG recordings, but only thirty-five released datasets are used in this research. The accuracy, precision, sensitivity, specificity, and F1 scores of the proposed model were evaluated as 94.77±1.35%, 93.80±2.253%, 92.55±4.57%, 96.14±1.66%, and 93.07±2.03%, respectively. The accuracy of the proposed model can be further improved for large datasets. Moreover, the proposed method can be implemented in wearable devices, which could monitor/detect OSA in the home setting and assist the medical expert.
Article
Full-text available
Aims: Our aim was to describe the electrocardiographic features of critical COVID-19 patients. Methods and results: We carried out a multicentric, cross-sectional, retrospective analysis of 431 consecutive COVID-19 patients hospitalized between 10 March and 14 April 2020 who died or were treated with invasive mechanical ventilation. This project is registered on ClinicalTrials.gov (identifier: NCT04367129). Standard ECG was recorded at hospital admission. ECG was abnormal in 93% of the patients. Atrial fibrillation/flutter was detected in 22% of the patients. ECG signs suggesting acute right ventricular pressure overload (RVPO) were detected in 30% of the patients. In particular, 43 (10%) patients had the S1Q3T3 pattern, 38 (9%) had incomplete right bundle branch block (RBBB), and 49 (11%) had complete RBBB. ECG signs of acute RVPO were not statistically different between patients with (n = 104) or without (n=327) invasive mechanical ventilation during ECG recording (36% vs. 28%, P = 0.10). Non-specific repolarization abnormalities and low QRS voltage in peripheral leads were present in 176 (41%) and 23 (5%), respectively. In four patients showing ST-segment elevation, acute myocardial infarction was confirmed with coronary angiography. No ST-T abnormalities suggestive of acute myocarditis were detected. In the subgroup of 110 patients where high-sensitivity troponin I was available, ECG features were not statistically different when stratified for above or below the 5 times upper reference limit value. Conclusions: The ECG is abnormal in almost all critically ill COVID-19 patients and shows a large spectrum of abnormalities, with signs of acute RVPO in 30% of the patients. Rapid and simple identification of these cases with ECG at hospital admission can facilitate classification of the patients and provide pathophysiological insights.
Conference Paper
Full-text available
This paper presents a suitable and efficient implementation for detecting minute based analysis of sleep apnea by Electrocardiogram (ECG) signal processing. Using the PhysioNet apnea-ECG database, a median filter was applied to the recordings in order to obtain the Heart Rate Variability (HRV) and the ECG-derived respiration (EDR). The subsequent extracted features were used for training, testing and validation of a Artificial Neural Network (ANN). Training and testing sets were obtained by randomly divide the data until it reaches a good performance using a k-fold cross validation (k=10). According to results, the ANN classification has sufficient accuracy for sleep apnea detection and diagnosis (82,120%). This promising early-stage result may leads to complementary studies including alternative features selection methods and/or other classification models.
Conference Paper
Full-text available
The purpose of this study is to find optimal features and classifier's model selection for sleep apnea detection using ECG signals. We want to determine whether a set of unknown ECG signals (test data) is from heavy apnea, mild apnea, or healthy categories. We examine two recent approaches of features selection: an approach proposed by Chazal et al. (2004), which is based on the RR-interval mean and time-series analysis; and an approach proposed by Yilmaz et al. (2010), which is based on the RR-interval median. We also examine cross validation and random sampling method in the classifier's probability model selection. We evaluate the approaches using three classifiers: k-Nearest Neighbor (kNN), Naive-Bayes and Support Vector Machine (SVM). In addition, we use a self organizing map (SOM) clustering or preprocessing to provide better sample that can represent the entire training data. Our experiment using ECG data from PhysioNet shows that classification results using only 3 features as proposed by Yilmaz et al. (2010) gives about 3.59% gain on overall classification accuracy (CA) and 7.5% gain on area under ROC-curve (AUC) on than the classification accuracy using 8 features as proposed by Chazal et al., (2004).
Article
Full-text available
This paper describes implementation of Principal Component Analysis (PCA) on sleep apnea detection using Electrocardiogram (ECG) signal. The statistics of RR-intervals per epoch with 1 minute duration were used as an input. The combination of features proposed by Chazal and Yilmaz was transformed into orthogonal features using PCA. Cross validation, random sampling, and test on train data were used on model selection. The results of classification using kNN, Naïve- Bayes, and Support Vector Machine (SVM) show that PCA features give better classification accuracy compared to Chazal and Yilmaz features. SVM with RBF (Radial Basis Function) kernel gives the best classification accuracy by using 7 principal components (PC) as a features. The experimental results show that relation between Chazal features with target class tend to be linear, but Yilmaz and PCA features are non-linear.
Article
Background and objective: This paper addresses the automated recognition of obstructive sleep apnea (OSA) from the analysis of single-lead ECG signals. This is one of the most important problems that is, critical to the realization of monitoring patients with sleep apnea. Methods: In the present study, a novel solution based on autoregressive (AR) modeling of the single-lead ECG, and spectral autocorrelation function as an ECG feature extraction method is presented. The more effective features are opted by sequential forward feature selection (SFFS) technique and fed into the random forest for binary classification between the apnea and normal events. Results: Experimental results on Apnea-ECG database proved that the introduced algorithm resulted in an accuracy of 93.90% (sensitivity of 92.26% and specificity of 94.92%) in per-segment classification, which outperforms the other cutting-edge automatic OSA recognition techniques. Moreover, the proposed algorithm provided an accuracy of 97.14% (sensitivity of 95.65% and specificity of 100%) in discrimination of apnea patients from the normal subjects, which is comparable to the traditional and existing approaches. Conclusions: This study suggests that automatic OSA recognition from single-lead ECG signals is possible, which can be used as an inexpensive and low complexity burden alternative to more conventional methods such as Polysomnography.
Article
The sleep apnea is a sleep-related pathology in which the breathing or the respiratory activity of an individual is obstructed, resulting in the variations in the cardio-pulmonary (CP) activity. The monitoring of both cardiac (heart rate (HR)) and pulmonary (respiration rate (RR)) activities are important for the automated detection of this ailment. In this paper, we propose a novel automated approach for sleep apnea detection using the bivariate CP signal. The bivariate CP signal is formulated using both HR and RR signals extracted from the electrocardiogram (ECG) signal. The approach consists of three stages. First, the bivariate CP signal is decomposed into intrinsic mode functions (IMFs) and residuals for both HR and RR channels using bivariate fast and adaptive empirical mode decomposition (FAEMD). Second, the features are extracted using the time-domain analysis, spectral analysis, and time-frequency domain analysis of IMFs from the CP signal. The time-frequency domain features are computed from the cross time-frequency matrices of IMFs of CP signal. The cross time-frequency matrix of each IMF is evaluated using the Stockwell (S)-transform. Third, the support vector machine (SVM) and the random forest (RF) classifiers are used for automated detection of sleep apnea using the features from the bivariate CP signal. Our proposed approach has demonstrated an average sensitivity and specificity of 82.27% and 78.67%, respectively for sleep apnea detection using a 10-fold cross-validation method. The approach has yielded an average sensitivity and specificity of 73.19% and 73.13%, respectively for the subject-specific cross-validation. The performance of the approach has been compared with other CPC features used for the detection of sleep apnea.
Conference Paper
Affect recognition aims to detect a person's affective state based on observables, with the goal to e.g. improve human-computer interaction. Long-term stress is known to have severe implications on wellbeing, which call for continuous and automated stress monitoring systems. However, the affective computing community lacks commonly used standard datasets for wearable stress detection which a) provide multimodal high-quality data, and b) include multiple affective states. Therefore, we introduce WESAD, a new publicly available dataset for wearable stress and affect detection. This multimodal dataset features physiological and motion data, recorded from both a wrist- and a chest-worn device, of 15 subjects during a lab study. The following sensor modalities are included: blood volume pulse, electrocardiogram, electrodermal activity, electromyogram, respiration, body temperature, and three-axis acceleration. Moreover, the dataset bridges the gap between previous lab studies on stress and emotions, by containing three different affective states (neutral, stress, amusement). In addition, self-reports of the subjects, which were obtained using several established questionnaires, are contained in the dataset. Furthermore, a benchmark is created on the dataset, using well-known features and standard machine learning methods. Considering the three-class classification problem ( baseline vs. stress vs. amusement ), we achieved classification accuracies of up to 80%,. In the binary case ( stress vs. non-stress ), accuracies of up to 93%, were reached. Finally, we provide a detailed analysis and comparison of the two device locations ( chest vs. wrist ) as well as the different sensor modalities.
Article
Background and objective: Sleep apnea syndrome (SAS), which can significantly decrease the quality of life is associated with a major risk factor of health implications such as increased cardiovascular disease, sudden death, depression, irritability, hypertension, and learning difficulties. Thus, it is relevant and timely to present a systematic review describing significant applications in the framework of computational intelligence-based SAS, including its performance, beneficial and challenging effects, and modeling for the decision-making on multiple scenarios. Methods: This study aims to systematically review the literature on systems for the detection and/or prediction of apnea events using a classification model. Results: Forty-five included studies revealed a combination of classification techniques for the diagnosis of apnea, such as threshold-based (14.75%) and machine learning (ML) models (85.25%). In addition, the ML models, were clustered in a mind map, include neural networks (44.26%), regression (4.91%), instance-based (11.47%), Bayesian algorithms (1.63%), reinforcement learning (4.91%), dimensionality reduction (8.19%), ensemble learning (6.55%), and decision trees (3.27%). Conclusions: A classification model should provide an auto-adaptive and no external-human action dependency. In addition, the accuracy of the classification models is related with the effective features selection. New high-quality studies based on randomized controlled trials and validation of models using a large and multiple sample of data are recommended.
Article
This paper introduces a methodology for the detection of sleep apnea based on single-lead electrocardiogram (ECG) of the patient. In the proposed technique, each QRS complex of the ECG signal is approximated using a linear combination of the lower order Hermite basis functions. The coefficients of the Hermite expansion are then used to discriminate the apnea and normal segments along with three features based on R-R time series (mean of R-R intervals, the standard deviation of R-R intervals) and energy in the error of the QRS approximation. To perform classification between the apnea and normal segments, four different types of classifiers (K-nearest neighbor (KNN), multilayer perceptron neural network (MLPNN), support vector machine (SVM), and least-square support vector machine (LS-SVM)) are used in this work. In total, 70 ECG recordings from Apnea-ECG dataset are used in this study and the performance of the proposed algorithm is evaluated based on the minute-by-minute (per-segment) classification, and per-recording (where the entire ECG recording of a subject is discriminated as the apnea or normal one) classification. By considering the events of apnea and hypopnea together, an accuracy of about 84% is achieved on the minute-by-minute basis classification using the LS-SVM classifier with the Gaussian radial basis function (RBF) kernel. On the other hand, an accuracy of about 97.14% is achieved for per-recording classification using the SVM, and LS-SVM classifiers. From the results, it is observed that the proposed methodology provides comparable accuracy with the methods existing in the literature at reduced computational cost due to the lesser number of features selected for the classification.
Article
In attempting to analyze, on digital computers, data from basically continuous physical experiments, numerical methods of performing familiar operations must be developed. The operations of differentiation and filtering are especially important both as an end in themselves, and as a prelude to further treatment of the data. Numerical counterparts of analog devices that perform these operations, such as RC filters, are often considered. However, the method of least squares may be used without additional computational complexity and with considerable improvement in the information obtained. The least squares calculations may be carried out in the computer by convolution of the data points with properly chosen sets of integers. These sets of integers and their normalizing factors are described and their use is illustrated in spectroscopic applications. The computer programs required are relatively simple. Two examples are presented as subroutines in the FORTRAN language.