Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2022 Dec 27;17(12):e0279305.
doi: 10.1371/journal.pone.0279305. eCollection 2022.

Cloud-based healthcare framework for real-time anomaly detection and classification of 1-D ECG signals

Affiliations

Cloud-based healthcare framework for real-time anomaly detection and classification of 1-D ECG signals

Menaa Nawaz et al. PLoS One. .

Abstract

Real-time data collection and pre-processing have enabled the recognition, realization, and prediction of diseases by extracting and analysing the important features of physiological data. In this research, an intelligent end-to-end system for anomaly detection and classification of raw, one-dimensional (1D) electrocardiogram (ECG) signals is given to assess cardiovascular activity automatically. The acquired raw ECG data is pre-processed carefully before storing it in the cloud, and then deeply analyzed for anomaly detection. A deep learning-based auto-encoder(AE) algorithm is applied for the anomaly detection of 1D ECG time-series signals. As a next step, the implemented system identifies it by a multi-label classification algorithm. To improve the classification accuracy and model robustness the improved feature-engineered parameters of the large and diverse datasets have been incorporated. The training has been done using the amazon web service (AWS) machine learning services and cloud-based storage for a unified solution. Multi-class classification of raw ECG signals is challenging due to a large number of possible label combinations and noise susceptibility. To overcome this problem, a performance comparison of a large set of machine algorithms in terms of classification accuracy is presented on an improved feature-engineered dataset. The proposed system reduces the raw signal size up to 95% using wavelet time scattering features to make it less compute-intensive. The results show that among several state-of-the-art techniques, the long short-term memory (LSTM) method has shown 100% classification accuracy, and an F1 score on the three-class test dataset. The ECG signal anomaly detection algorithm shows 98% accuracy using deep LSTM auto-encoders with a reconstructed error threshold of 0.02 in terms of absolute error loss. Our approach provides performance and predictive improvement with an average mean absolute error loss of 0.0072 for normal signals and 0.078 for anomalous signals.

PubMed Disclaimer

Conflict of interest statement

The authors have declared that no competing interests exist.

Figures

Fig 1
Fig 1. Automatic ECG classification flow.
Fig 2
Fig 2. Illustration of the cloud-based healthcare system.
Fig 3
Fig 3. Unfiltered ECG signal.
Fig 4
Fig 4. Detrend & denoised ECG signal.
Fig 5
Fig 5. LSTM cell diagram [66].
Fig 6
Fig 6. Signal plot of each class.
Fig 7
Fig 7. Peak and interval detection in ECG Signal.
Fig 8
Fig 8. Detection of QRS interval.
Fig 9
Fig 9. Measurement of HRV.
Fig 10
Fig 10. Wavelet transform and scaling function.
Fig 11
Fig 11. Model summary.
Fig 12
Fig 12. Distribution of normal signals loss.
Fig 13
Fig 13. Distribution of anomaly signals Loss.
Fig 14
Fig 14. Reconstruction error of normal & anomaly signals.
Fig 15
Fig 15. Feature selection.
Fig 16
Fig 16. LSTM confusion matrix for ECG classification.
Fig 17
Fig 17. Training & validation accuracy/loss curves.
Fig 18
Fig 18. ROC curves for each class using KNN-weighted.
Fig 19
Fig 19. ROC curves for each class using SVM-cubic.
Fig 20
Fig 20. ROC curves for each class using LSTM.
Fig 21
Fig 21. Precision-recall curve (PRC) of LSTM.

Similar articles

Cited by

References

    1. Faust Oliver and Hagiwara, et al.. (2018). Deep learning for healthcare applications based on physiological signals: a review. Computer methods and programs in biomedicine. Elsevier. 2018 161:1–13. doi: 10.1016/j.cmpb.2018.04.005 - DOI - PubMed
    1. Dias D, Paulo Silva Cunha J. (2018). Wearable health devices—vital sign monitoring, systems and technologies. Sensors. 2018;18: 2414. doi: 10.3390/s18082414 - DOI - PMC - PubMed
    1. Yeasmin S. (2019). Benefits of artificial intelligence in medicine. ICCAIS 2019; 1–6.
    1. Chauhan S, Vig L. (2015). Anomaly detection in ECG time signals via deep long short-term memory networks. 2015 IEEE international conference on data sciences and advanced analytics DSAA 2015.
    1. Elgendi M, Eskofier B, Dokos S, Abbott D. (2014). Revisiting QRS detection methodologies for portable, wearable, battery-operated, and wireless ECG systems. Amaral LAN, editor. PLoS One. 2014;9: e84018. doi: 10.1371/journal.pone.0084018 - DOI - PMC - PubMed