Anomaly Detection in Electrocardiograms: Advancing Clinical Diagnosis Through Self-Supervised Learning (2404.04935v1)
Abstract: The electrocardiogram (ECG) is an essential tool for diagnosing heart disease, with computer-aided systems improving diagnostic accuracy and reducing healthcare costs. Despite advancements, existing systems often miss rare cardiac anomalies that could be precursors to serious, life-threatening issues or alterations in the cardiac macro/microstructure. We address this gap by focusing on self-supervised anomaly detection (AD), training exclusively on normal ECGs to recognize deviations indicating anomalies. We introduce a novel self-supervised learning framework for ECG AD, utilizing a vast dataset of normal ECGs to autonomously detect and localize cardiac anomalies. It proposes a novel masking and restoration technique alongside a multi-scale cross-attention module, enhancing the model's ability to integrate global and local signal features. The framework emphasizes accurate localization of anomalies within ECG signals, ensuring the method's clinical relevance and reliability. To reduce the impact of individual variability, the approach further incorporates crucial patient-specific information from ECG reports, such as age and gender, thus enabling accurate identification of a broad spectrum of cardiac anomalies, including rare ones. Utilizing an extensive dataset of 478,803 ECG graphic reports from real-world clinical practice, our method has demonstrated exceptional effectiveness in AD across all tested conditions, regardless of their frequency of occurrence, significantly outperforming existing models. It achieved superior performance metrics, including an AUROC of 91.2%, an F1 score of 83.7%, a sensitivity rate of 84.2%, a specificity of 83.0%, and a precision of 75.6% with a fixed recall rate of 90%. It has also demonstrated robust localization capabilities, with an AUROC of 76.5% and a Dice coefficient of 65.3% for anomaly localization.
- “Wearable Digital Health Technologies for Monitoring in Cardiovascular Medicine” In New England Journal of Medicine 390.4, 2024, pp. 346–356 DOI: 10.1056/NEJMra2301903
- Mirza Mansoor Baig, Hamid Gholamhosseini and Martin J Connolly “A comprehensive survey of wearable and wireless ECG monitoring systems for older adults” In Medical & Biological Engineering & Computing 51 Springer, 2013, pp. 485–495 DOI: https://doi.org/10.1007/s11517-012-1021-6
- “Arrhythmia classification algorithm based on multi-head self-attention mechanism” In Biomedical Signal Processing and Control 79 Elsevier, 2023, pp. 104206 DOI: https://doi.org/10.1016/j.bspc.2022.104206
- Jagdeep Rahul and Lakhan Dev Sharma “Automatic cardiac arrhythmia classification based on hybrid 1-D CNN and Bi-LSTM model” In Biocybernetics and Biomedical Engineering 42.1 Elsevier, 2022, pp. 312–324 DOI: https://doi.org/10.1016/j.bbe.2022.02.006
- Deepankar Nankani and Rashmi Dutta Baruah “Atrial fibrillation classification and prediction explanation using transformer neural network” In International Joint Conference on Neural Networks, 2022, pp. 01–08 IEEE DOI: 10.1109/IJCNN55064.2022.9892286
- “Clinical, electrocardiographic and electrophysiologic observations in patients with paroxysmal supraventricular tachycardia” In The American Journal of Cardiology 41.6 Elsevier, 1978, pp. 1045–1051 DOI: https://doi.org/10.1016/0002-9149(78)90856-1
- “Outcomes in patients with high-degree atrioventricular block as the initial manifestation of cardiac sarcoidosis” In The American Journal of Cardiology 115.4 Elsevier, 2015, pp. 505–509 DOI: https://doi.org/10.1016/j.amjcard.2014.11.028
- Varun Chandola, Arindam Banerjee and Vipin Kumar “Anomaly detection: A survey” In ACM Computing Surveys 41.3 ACM New York, NY, USA, 2009, pp. 1–58 DOI: https://doi.org/10.1145/1541880.1541882
- “Deep learning for anomaly detection: A review” In ACM Computing Surveys 54.2 ACM New York, NY, USA, 2021, pp. 1–38 DOI: https://doi.org/10.1145/3439950
- “Deep learning for medical anomaly detection–a survey” In ACM Computing Surveys 54.7 ACM New York, NY, USA, 2021, pp. 1–37 DOI: https://doi.org/10.1145/3464423
- “IoT healthcare analytics: The importance of anomaly detection” In IEEE International Conference on Advanced Information Networking and Applications, 2016, pp. 994–997 IEEE DOI: 10.1109/AINA.2016.158
- Rayan Krishnan, Pranav Rajpurkar and Eric J Topol “Self-supervised learning in medicine and healthcare” In Nature Biomedical Engineering 6.12 Nature Publishing Group UK London, 2022, pp. 1346–1352 DOI: https://doi.org/10.1038/s41551-022-00914-1
- “Step-by-Step Method for Accurate Electrocardiogram Interpretation” In Rapid ECG Interpretation Totowa, NJ: Humana Press, 2008, pp. 25–80 DOI: 10.1007/978-1-59745-408-7_2
- “A survey of heart anomaly detection using ambulatory Electrocardiogram (ECG)” In Sensors 20.5 MDPI, 2020, pp. 1461 DOI: https://doi.org/10.3390/s20051461
- “ECG signal preprocessing and SVM classifier-based abnormality detection in remote healthcare applications” In IEEE Access 6 IEEE, 2018, pp. 9767–9773 DOI: 10.1109/ACCESS.2018.2794346
- “Time series anomaly detection with multiresolution ensemble decoding” In Proceedings of the AAAI Conference on Artificial Intelligence 35.11, 2021, pp. 9567–9575 DOI: https://doi.org/10.1609/aaai.v35i11.17152
- George B Moody and Roger G Mark “The impact of the MIT-BIH arrhythmia database” In IEEE Engineering in Medicine and Biology Magazine 20.3 IEEE, 2001, pp. 45–50 DOI: 10.1109/51.932724
- “PTB-XL, a large publicly available electrocardiography dataset” In Scientific Data 7.1 Nature Publishing Group, 2020, pp. 1–15 DOI: https://doi.org/10.1038/s41597-020-0495-6
- “Electrocardiographic PR interval duration and cardiovascular risk: results from the Copenhagen ECG study” In Canadian Journal of Cardiology 33.5 Elsevier, 2017, pp. 674–681 DOI: https://doi.org/10.1016/j.cjca.2017.02.015
- “What clinicians should know about the QT interval” In Jama 289.16 American Medical Association, 2003, pp. 2120–2127 DOI: 10.1001/jama.289.16.2120
- “Age and Sex Estimation Using Artificial Intelligence From Standard 12-Lead ECGs” In Circulation: Arrhythmia and Electrophysiology 12.9, 2019, pp. e007284 DOI: 10.1161/CIRCEP.119.007284
- Arthur J Moss “Gender differences in ECG parameters and their clinical implications” In Annals of noninvasive electrocardiology: the official journal of the International Society for Holter and Noninvasive Electrocardiology, Inc 15.1 Wiley-Blackwell, 2010, pp. 1 DOI: 10.1111/j.1542-474X.2009.00345.x
- “Attention is All you Need” In Advances in Neural Information Processing Systems 30, 2017 URL: https://proceedings.neurips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf
- “Abnormality detection in chest x-ray images using uncertainty prediction autoencoders” In International Conference on Medical Image Computing and Computer-Assisted Intervention, 2020, pp. 529–538 Springer DOI: https://doi.org/10.1007/978-3-030-59725-2_51
- Shreshth Tuli, Giuliano Casale and Nicholas R. Jennings “TranAD: Deep Transformer Networks for Anomaly Detection in Multivariate Time Series Data” In International Conference on Very Large Databases 15.6, 2022, pp. 1201–1214 DOI: https://doi.org/10.14778/3514061.3514067
- “Anomaly transformer: Time series anomaly detection with association discrepancy” In International Conference on Learning Representations, 2022
- “Time series anomaly detection with adversarial reconstruction networks” In IEEE Transactions on Knowledge and Data Engineering 35.4 IEEE, 2022, pp. 4293–4306 DOI: 10.1109/TKDE.2021.3140058
- “Task-Oriented Self-supervised Learning for Anomaly Detection in Electroencephalography” In International Conference on Medical Image Computing and Computer-Assisted Intervention, 2022, pp. 193–203 Springer DOI: https://doi.org/10.1007/978-3-031-16452-1_19
- World Medical Association “World Medical Association Declaration of Helsinki: ethical principles for medical research involving human subjects” In Jama 310.20 American Medical Association, 2013, pp. 2191–2194 DOI: 10.1001/jama.2013.281053
- “Role of electrocardiography and echocardiography in prevention and predicting outcome of subjects at increased risk of heart failure” In European Journal of Preventive Cardiology 22.2 Oxford University Press, 2015, pp. 249–262 DOI: 10.1177/2047487313508343
- “Estimating the support of a high-dimensional distribution” In Neural Computation 13.7 MIT Press One Rogers Street, Cambridge, MA 02142-1209, USA journals-info …, 2001, pp. 1443–1471 DOI: 10.1162/089976601750264965
- David MJ Tax and Robert PW Duin “Support vector data description” In Machine Learning 54 Springer, 2004, pp. 45–66 DOI: https://doi.org/10.1023/B:MACH.0000008084.60811.49
- Raghavendra Chalapathy, Aditya Krishna Menon and Sanjay Chawla “Robust, deep and inductive anomaly detection” In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, 2017, pp. 36–51 Springer DOI: https://doi.org/10.1007/978-3-319-71249-9_3
- “Deep one-class classification” In International Conference on Machine Learning, 2018, pp. 4393–4402 PMLR
- “Deep autoencoding gaussian mixture model for unsupervised anomaly detection” In International Conference on Learning Representations, 2018
- “Encoder-Decoder Contrast for Unsupervised Anomaly Detection in Medical Images” In IEEE Transactions on Medical Imaging 43.3, 2024, pp. 1102–1112 DOI: 10.1109/TMI.2023.3327720
- “MAMA Net: Multi-Scale Attention Memory Autoencoder Network for Anomaly Detection” In IEEE Transactions on Medical Imaging 40.3, 2021, pp. 1032–1041 DOI: 10.1109/TMI.2020.3045295
- “Anomaly Detection for Medical Images Using Self-Supervised and Translation-Consistent Features” In IEEE Transactions on Medical Imaging 40.12, 2021, pp. 3641–3651 DOI: 10.1109/TMI.2021.3093883
- “A deep neural network for unsupervised anomaly detection and diagnosis in multivariate time series data” In Proceedings of the AAAI Conference on Artificial Intelligence 33.01, 2019, pp. 1409–1416 DOI: 10.1609/aaai.v33i01.33011409
- “Usad: Unsupervised anomaly detection on multivariate time series” In Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, 2020, pp. 3395–3404 DOI: 10.1145/3394486.3403392
- “MAD-GAN: Multivariate anomaly detection for time series data with generative adversarial networks” In International Conference on Artificial Neural Networks, 2019, pp. 703–716 Springer DOI: https://doi.org/10.1007/978-3-030-30490-4_56
- “Self-Supervised Multi-Scale Cropping and Simple Masked Attentive Predicting for Lung CT-Scan Anomaly Detection” In IEEE Transactions on Medical Imaging 43.1, 2024, pp. 594–607 DOI: 10.1109/TMI.2023.3313778
- “SWSSL: Sliding Window-Based Self-Supervised Learning for Anomaly Detection in High-Resolution Images” In IEEE Transactions on Medical Imaging 42.12, 2023, pp. 3860–3870 DOI: 10.1109/TMI.2023.3314318
- “Deep learning in ECG diagnosis: A review” In Knowledge-Based Systems 227 Elsevier, 2021, pp. 107187 DOI: 10.1016/j.knosys.2021.107187
- “A novel bidirectional LSTM network based on scale factor for atrial fibrillation signals classification” In Biomedical Signal Processing and Control 76 Elsevier, 2022, pp. 103663 DOI: https://doi.org/10.1016/j.bspc.2022.103663
- “FM-ECG: A fine-grained multi-label framework for ECG image classification” In Information Sciences 549 Elsevier, 2021, pp. 164–177 DOI: https://doi.org/10.1016/j.ins.2020.10.014
- “Practical fine-grained learning based anomaly classification for ECG image” In Artificial Intelligence in Medicine 119 Elsevier, 2021, pp. 102130 DOI: 10.1016/j.artmed.2021.102130
- “BeatGAN: Anomalous Rhythm Detection using Adversarially Generated Time Series.” In International Joint Conference on Artificial Intelligence, 2019, pp. 4433–4439 DOI: https://doi.org/10.24963/ijcai.2019/616
- “Generative adversarial networks” In Communications of the ACM 63.11 ACM New York, NY, USA, 2020, pp. 139–144 DOI: https://doi.org/10.1145/3422622
- “HeartPy: A novel heart rate algorithm for the analysis of noisy signals” In Transportation Research Part F: Traffic Psychology and Behaviour 66 Elsevier, 2019, pp. 368–378 DOI: https://doi.org/10.1016/j.trf.2019.09.015
- “Analysing noisy driver physiology real-time using off-the-shelf sensors: Heart rate analysis software from the taking the fast lane project” In Journal of Open Research Software 7.1 Ubiquity Press, 2019 DOI: https://doi.org/10.5334/jors.241