A Self-Contained STFT CNN for ECG Classification and Arrhythmia Detection at the Edge

被引:34
作者
Farag, Mohammed M. [1 ,2 ]
机构
[1] King Faisal Univ, Coll Engn, Elect Engn Dept, Al Hasa 31982, Saudi Arabia
[2] Alexandria Univ, Fac Engn, Elect Engn Dept, Alexandria 21544, Egypt
关键词
Electrocardiography; Image edge detection; Biomedical monitoring; Heart beat; Computational modeling; Feature extraction; Heart; Machine learning; Convolutional neural networks; Fast Fourier transforms; Electrocardiogram; machine learning; edge inference; convolutional neural network; interpretable neural network; finite impulse response; short-time Fourier transform; HEARTBEAT CLASSIFICATION; MORPHOLOGY;
D O I
10.1109/ACCESS.2022.3204703
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Automated classification of Electrocardiogram (ECG) for arrhythmia monitoring is the core of cardiovascular disease diagnosis. Machine Learning (ML) is widely used for arrhythmia detection. The cloud-based inference is the prevailing deployment model of modern ML algorithms which does not always meet the availability and privacy requirements of ECG monitoring. Edge inference is an emerging alternative that addresses the concerns of latency, privacy, connectivity, and availability. However, edge deployment of ML models is challenging due to the demanding requirements of modern ML algorithms and the computation constraints of edge devices. In this work, we propose a lightweight self-contained short-time Fourier Transform (STFT) Convolutional Neural Network (CNN) model for ECG classification and arrhythmia detection in real-time at the edge. We provide a clear interpretation of the convolutional layer as a Finite Impulse Response (FIR) filter and exploit this interpretation to develop an STFT-based 1D convolutional (Conv1D) layer to extract the spectrogram of the input ECG signal. The Conv1D output feature maps are reshaped into a 2D heatmap image and fed to a 2D convolutional (Conv2D) neural network (CNN) for classification. The MIT-BIH arrhythmia database is used for model training and testing. Four model variants are trained and tested on a cloud machine and then optimized for edge computing on a raspberry-pi device. Weight quantization and pruning techniques are applied to optimize the developed models for edge inference. The proposed classifier can achieve up to 99.1% classification accuracy and 95% F1-score at the edge with a maximum model size of 90 KB, an average inference time of 9 ms, and a maximum memory usage of 12 MB. The achieved results of the proposed classifier enable its deployment on a wide range of edge devices for arrhythmia monitoring.
引用
收藏
页码:94469 / 94486
页数:18
相关论文
共 39 条
[1]   A deep convolutional neural network model to classify heartbeats [J].
Acharya, U. Rajendra ;
Oh, Shu Lih ;
Hagiwara, Yuki ;
Tan, Jen Hong ;
Adam, Muhammad ;
Gertych, Arkadiusz ;
Tan, Ru San .
COMPUTERS IN BIOLOGY AND MEDICINE, 2017, 89 :389-396
[2]   Wavelet transforms and the ECG: a review [J].
Addison, PS .
PHYSIOLOGICAL MEASUREMENT, 2005, 26 (05) :R155-R199
[3]   ECG heartbeat arrhythmias classification: a comparison study between different types of spectrum representation and convolutional neural networks architectures [J].
Alqudah, Ali Mohammad ;
Qazan, Shoroq ;
Al-Ebbini, Lina ;
Alquran, Hiam ;
Abu Qasmieh, Isam .
JOURNAL OF AMBIENT INTELLIGENCE AND HUMANIZED COMPUTING, 2021, 13 (10) :4877-4907
[4]  
[Anonymous], Quantization aware training in Keras example
[5]  
[Anonymous], TensorFlow Model Optimization
[6]  
[Anonymous], GRADIENT PAPERSPACE
[7]  
Association for the Advancement of Medical Instrumentation, 2012, AMI EC57 TEST REP PE
[8]   A survey on ECG analysis [J].
Berkaya, Selcan Kaplan ;
Uysal, Alper Kursat ;
Gunal, Efnan Sora ;
Ergin, Semih ;
Gunal, Serkan ;
Gulmezoglu, M. Bilginer .
BIOMEDICAL SIGNAL PROCESSING AND CONTROL, 2018, 43 :216-235
[9]  
Cao M, 2022, Arxiv, DOI arXiv:2206.14200
[10]  
Cardiovascular Diseases (CVDs), about us