Next Article in Journal
LidPose: Real-Time 3D Human Pose Estimation in Sparse Lidar Point Clouds with Non-Repetitive Circular Scanning Pattern
Previous Article in Journal
Design and Implementation of Dongba Character Font Style Transfer Model Based on AFGAN
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Communication

Electrocardiography Classification with Leaky Integrate-and-Fire Neurons in an Artificial Neural Network-Inspired Spiking Neural Network Framework

Department of Electronic Engineering, Daegu University, Daegudaero 201, Gyeongsan 38543, Republic of Korea
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(11), 3426; https://doi.org/10.3390/s24113426
Submission received: 7 April 2024 / Revised: 6 May 2024 / Accepted: 21 May 2024 / Published: 26 May 2024
(This article belongs to the Section Biomedical Sensors)

Abstract

:
Monitoring heart conditions through electrocardiography (ECG) has been the cornerstone of identifying cardiac irregularities. Cardiologists often rely on a detailed analysis of ECG recordings to pinpoint deviations that are indicative of heart anomalies. This traditional method, while effective, demands significant expertise and is susceptible to inaccuracies due to its manual nature. In the realm of computational analysis, Artificial Neural Networks (ANNs) have gained prominence across various domains, which can be attributed to their superior analytical capabilities. Conversely, Spiking Neural Networks (SNNs), which mimic the neural activity of the brain more closely through impulse-based processing, have not seen widespread adoption. The challenge lies primarily in the complexity of their training methodologies. Despite this, SNNs offer a promising avenue for energy-efficient computational models capable of displaying a high-level performance. This paper introduces an innovative approach employing SNNs augmented with an attention mechanism to enhance feature recognition in ECG signals. By leveraging the inherent efficiency of SNNs, coupled with the precision of attention modules, this model aims to refine the analysis of cardiac signals. The novel aspect of our methodology involves adapting the learned parameters from ANNs to SNNs using leaky integrate-and-fire (LIF) neurons. This transfer learning strategy not only capitalizes on the strengths of both neural network models but also addresses the training challenges associated with SNNs. The proposed method is evaluated through extensive experiments on two publicly available benchmark ECG datasets. The results show that our model achieves an overall accuracy of 93.8% on the MIT-BIH Arrhythmia dataset and 85.8% on the 2017 PhysioNet Challenge dataset. This advancement underscores the potential of SNNs in the field of medical diagnostics, offering a path towards more accurate, efficient, and less resource-intensive analyses of heart diseases.

1. Introduction

As reported by the World Health Organization, cardiovascular diseases (CVDs) represent the foremost cause of mortality worldwide [1]. In response, a myriad of strategies and actions have been initiated across various sectors that are aimed at diminishing the frequency of cardiovascular incidents. Within this context, the electrocardiogram (ECG) has emerged as a pivotal tool for the immediate identification of cardiac conditions. Serving as a visual chart of the heart’s electrical dynamics, the ECG plays a critical role in pinpointing a spectrum of cardiac irregularities [2]. Conventional works include ECG monitoring solutions that extract the R-peak or the QRS complex and do not further process the ECG signal [3,4]. Recent research has predominantly targeted the augmentations ECG-based diagnostics, notably in the accurate delineation of the QRS complex, as depicted through the Q, R, and S wave patterns illustrated in Figure 1. This focus underscores the significance of ECGs in advancing cardiovascular health diagnostics and intervention strategies.
However, classical algorithms were mainly based on morphological features and are not sufficient for accurate arrhythmia detection [5].
The quest for enhanced arrhythmia detection has led to a significant investment in the development of sophisticated neural network architectures, including Deep Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs) [6,7,8,9]. Despite their proven efficacy, these technological solutions bring forth increased hardware expenses, operational complexities, heightened power consumption, and prolonged deployment durations.
Having emerged as a contrasting paradigm, Spiking Neural Networks (SNNs) adopt a binary, event-driven operation mode that mirrors the activity of biological neurons, which are activated exclusively in response to incoming or outgoing neural spikes. This operational characteristic endows SNNs with a remarkable energy efficiency and reduces their dependency on the substantial computational demands that are typical of their convolutional counterparts. SNNs have gained traction in a variety of domains, including medical imaging and ECG signal analysis, thus reinforcing their burgeoning status within the sphere of neuroscience research [10,11,12].
This paper presents a cutting-edge SNN architecture inspired by a deep ANN, that integrates leaky integrate-and-fire (LIF) neurons and has been engineered to boost the efficiency and effectiveness of ECG signal classification. This initiative rectifies the limitations of previous SNN deployments, which often overlooked the complexity of ECG signals, potentially undermining diagnostic precision [13,14]. Previous SNN-based research processed ECG signals by employing non-SNN algorithms, neglecting full signal analysis, and applying bandpass or perturbation detection [15,16,17,18]. Our proposed model incorporates an attention mechanism within the SNN framework, enhancing cardiac feature extraction through the meticulous analysis of channel information and the identification of unique patterns. The necessity of this approach becomes apparent when considering the significant variation and similarities observed among periodic ECG signal categories, as illustrated in Figure 2.

2. Proposed Method

In this paper, we introduce an ANN-inspired SNN framework with an attention mechanism to automate the extraction of distinctive representations learned from ECG signals for precise recognition of abnormal conditions.

2.1. Denoising ECG Signals

The wavelet thresholding method stands out for its effectiveness in purifying ECG signals by removing extraneous noise without compromising the integrity of the waveform’s morphological characteristics [19]. This technique employs a strategic application of wavelet transform methods to differentiate between signal components attributable to cardiac activity and those arising from noise. By setting an optimal threshold level, it is possible to attenuate noise components, thus enhancing the clarity and quality of the ECG signal. This preparatory step is crucial for ensuring that subsequent analyses are based on data that most accurately reflect the underlying cardiac dynamics.

2.2. ECG Segmentation

Segmentation plays a pivotal role in the analysis of ECG signals, particularly in the context of identifying and examining individual heartbeats within a continuous ECG recording, as depicted in Figure 2. Our approach draws upon the rich annotations provided by the MIT-BIH dataset, which comprises 44 records, to pinpoint the R-wave peak—the most distinctive feature of each heartbeat [20]. Recognizing the potential for slight discrepancies between the annotated peak values and those derived post-denoising, our methodology includes a provision for adjusting these values to represent the true peak positions more accurately.
In recognizing the importance of analyzing heartbeats that reflect a physiologically stable state, our protocol excludes the initial fifteen heartbeats from each sequence. This decision is based on the premise that the beginning of each recording may capture transient physiological states that are not representative of the subject’s typical cardiac function.
To enable a detailed comparison of heartbeats and facilitate the extraction of diagnostic features, we adopt a systematic approach to extract segments surrounding the R-wave peak. By delineating a window that extends 250 points ahead and 250 points behind each R-wave peak, we ensure the inclusion of the entire P, QRS, and T wave components within each segmented heartbeat. This segmentation strategy not only standardizes the length of the feature vectors for subsequent analysis but also ensures that the critical components of each heartbeat are comprehensively captured, laying the groundwork for a more nuanced and precise interpretation of the ECG data.

2.3. SNN

Building upon the innovative foundation of the 12-layer Artificial Neural Network (ANN) model, our proposed method introduces a groundbreaking Spiking Neural Network (SNN) architecture, delineated in Figure 3, which deftly incorporates an attention mechanism within its structure.

2.3.1. Leaky Integrate-and-Fire

The leaky integrate-and-fire (LIF) model is esteemed due to its biological plausibility and computational efficacy, as demonstrated in Figure 4. Recently, researchers have designed an SNN consisting of LIF neurons that can be used to detect anomalous patterns in ECGs [21]. The dynamism of the LIF neuron is underpinned by its membrane potential’s sensitivity to incoming signals—each contributing to the temporal build-up of the neuron’s potential until a threshold Vth is surpassed, resulting in the emission of a spike.
The input spikes, as shown on the top graph of Figure 4, initiate the response of the LIF neuron. The synaptic weight wij modulates the influence of each incoming spike from presynaptic neuron i onto postsynaptic neuron j. This modulation is pivotal to the network’s learning and pattern recognition capabilities. The middle graph illustrates the neuron’s membrane potential over time. It accumulates charge in response to the input spikes, decays over time due to its ‘leaky’ nature, and resets after spiking back to the resting potential Vr, which is indicative of the neuron’s refractory period. The output spikes, depicted on the bottom graph, are the neuron’s response to reaching the critical threshold Vth. This spike, occurring at a discrete point in time, underscores the neuron’s role as an information-processing unit in an SNN.
In the SNN layer, the membrane potential of the LIF neuron is ingeniously engineered to parallel the original activation function served by the convolution operation in traditional convolutional neural networks.
Equation (1) provides a mathematical framework for quantifying the temporal information storage capacity of U j (t), offering insights into the potential’s evolution and its implications for signal processing within the network.
τ d t d U j ( t ) = U j ( t ) + R I ( t )
where τ indicates the time constant for the leak current, and R and I(t) represent the input resistance and drive current in the LIF circuit, respectively. The membrane voltage is represented by Equation (2).
U j t = λ U j t 1 + i w i j U i ( t )
where U j (t) is the membrane voltage of the postsynaptic neuron j at the time t and w i j   is the synaptic weight which weights the inputs of presynaptic neuron i. An action potential is triggered and a spike is produced by neuron j when the membrane voltage V m (v) surpasses the voltage threshold Vth. One can compute the output spike at time t as follows:
O u t p u t   t = 1 ,   i f   U j t > V t h 0 , o t h e r w i s e
After the neuron j attains its threshold, the membrane potential U j (t) is reset to the predefined reset potential V r . As a simplifying assumption in our model, V r is designated as zero. This reset initiates the refractory period for neuron j, a span during which the membrane potential is held constant, rendering the neuron temporarily unresponsive to any new stimuli. The initiation of the refractory period simulates the biological neuron’s recovery phase, where it is not capable of firing another action potential regardless of the incoming signals.

2.3.2. Attention Module

As shown in Figure 5, the proposed attention module is stacked by an input layer that receives the ECG signal. The LIF neurons, embedded at key intervals in conjunction with the attention mechanism, replace the traditional ReLU activation functions, marking a significant shift toward an architecture that closely emulates the complex operations between biological neural systems. The attention layer consists of 2 CONV followed by 2 POOL layers, which use 2 kernels in the first and second CONV that increase the depth to 2. The attention layer is then followed by 4 SNN layers.
This strategic configuration facilitates a more nuanced response to the spatiotemporal aspects of the input signals. The attention layer is applied to the SNN layer to measure the importance of the input sample and takes control of how much attention the model should pay to each signal slice. To be specific, a weight is assigned to each time slice in the input ECG sample. For an input sample with 250 time slices, we use an FC layer to learn an attention–weight vector with 250 elements. A SoftMax is used to normalize to make the sum equal to 1. Thereafter, we broadcast the weights to the same shape and conduct element-wise multiplication to adjust the dimension. We then incorporate multi-head attention to independently calculate multiple attention weights. Finally, averaging all the attention heads results in the final attention weights. The notation for the single heartbeat is shown in Equation (4).
X i = R n i , K i , d i
where ni, Ki, and di denote the number of channels and the dimension of the representation depth of the i-th layer.

3. Results and Discussion

In the pursuit of enhancing arrhythmia detection through the use of Spiking Neural Networks (SNNs), this paper carries out a comprehensive examination of SNN configurations, employing a diverse ECG dataset for model training and validation, and investigating the computational intricacies of SNN optimization.

3.1. Dataset Utilization and Computational Framework

Two publicly available datasets, namely the MIT-BIH Arrhythmia dataset, and the 2017 PhysioNet Challenge, were used for evaluation purposes [22,23]. The computational framework used to optimize the translated SNN model operates within the Spikingjelly environment, an extension of the PyTorch library [24]. This environment offers four principal modules that are essential to the deep learning processes of SNNs, labeled as neuron, layer, functional, and encoding. Within the SNN paradigm, LIF neurons from the neuron module interpret each data input as a series of binary spikes dispersed over discrete timesteps (ranging from one to T). The evaluation metrics for ECG classification performance in our paper are accuracy, precision, and F1 score. In the case of the MIT-BIH Arrhythmia dataset, the training and testing consist of 44 recordings from 100 to 234, excluding (102, 104, 107, 217). Five major groups (N, S, V, F, and Q) of heartbeats were taken. The PhysioNet 2017 dataset provides ECG recordings (between 30 s and 60 s in length) in which the recording shows four classes i.e., normal sinus rhythm, atrial fibrillation (AF), an alternative rhythm, and noisy. Table 1 shows the performance evaluation over all the classes of PhysioNet 2017 and MIT-BIH Arrhythmia Dataset.

3.2. Performance Analysis

Within this study, we conducted ablation experiments on various model configurations: a twelve-layer ANN model and a six-layer SNN model. Notably, two activation functions—ReLU and Leaky ReLU—were subjected to comparative simulations, the results of which are visually presented in Figure 6a,b. The efficacy of these activation functions in conjunction with ANN layers was quantitatively assessed, with a focus on precision metrics during the classification of ECG signals. The best performance we achieved was with the LeakyReLU activation in the ANN. The empirical findings show that the proposed SNN outperformed the 12-layer ANN by more than 1% in the case of PhysioNet, whereas it outperformed the ANN by 4% on the MIT-BIH dataset. The simulations that informed these findings were executed within the PyCharm Integrated Development Environment (IDE), harnessing the computational framework provided by PyTorch. A singular NVIDIA RTX 3090 GPU was deployed for this task, underscoring the efficiency of the computational process. Adhering to a “70:30” split strategy, the heartbeat data from all 44 ECG recordings were randomly assigned to constitute a training set (70%) and a testing set (30%), fostering a comprehensive learning and validation cycle.
The training regimen encompassed 200 epochs executed with a learning rate set at 0.001 and a batch size of 64. An initial timestep of 100 was specified to kickstart the simulation process. Remarkably, the entire simulation—encompassing the classification of ECG signals—was completed within a span of merely 2.5 h, demonstrating not only the methodological efficiency but also the computational speed of the proposed SNN model.
We then compared the performance of the model on the normal and noise classes in PhysioNet 2017, as shown in Table 2. The proposed att-SNN outperformed the other model in both cases by 4% and 0.4%.
For a fair evaluation, while comparing the model with other state-of-the-art methods, we adopted two strategies, namely the “70:30” strategy and the Inter-Patient strategy. The “70:30” strategy means that all the heartbeats from 44 ECG recordings are split with a random distribution between a training (70%) and a testing (30%) set. The overall performance of the model in identifying five types of heartbeats and four in the case of PhysioNet 2017 was far better than that of the 12-layer ANN by 85.8% and 93.8%, respectively.
Crating similar proportions for each type of heartbeat while conforming to the Inter-Patient lead to the training set containing 22 ECG records (101, 106, 108, 109, 112, 114, 115, 116, 118, 119, 122, 124, 201, 203, 205, 207, 208, 209, 215, 220, 223, and 230) and the testing containing 100, 103, 105, 111, 113, 117, 121, 123, 200, 202, 210, 212, 213, 214, 219, 221, 222, 228, 231, 232, 233, and 234. Despite having the highest power consumption, the F1 score of the V class was the highest.
We compared our model with a number of baseline models, shown in Table 3, for the MIT-BIH Arrhythmia dataset. More specifically, our overall classification accuracy was 3% higher than [25,26] and 1% higher than [27]. The F1 score is the highest among the baseline models. We tested our model in FPGA using Vivado 2019.2. However, the power consumption was the highest. Our model achieved the best accuracy with five timesteps. Figure 7 shows the comparison of different models concerning the timesteps (T).
As indicated in Figure 7 our proposed attention mechanism has an overall comparable performance in terms of classification accuracy.
Figure 7 provides a comparative analysis of accuracy trends over varying durations, measured in timesteps, between an Artificial Neural Network (ANN) a Spiking Neural Network (SNN), and three other baseline models. This phenomenon can be attributed to the networks’ increased ability to integrate and process information over extended temporal sequences, allowing for more robust signal analysis and pattern recognition.
In this paper, a twelve-layer ANN was adeptly transformed into a six-layer SNN through the integration of an attention module that employs leaky integrate-and-fire (LIF) neurons. This transformation was carried out to ensure the preservation of accuracy while leveraging the inherent temporal processing advantages of SNNs. Notably, the empirical results illustrated the effectiveness and feasibility of our classification model which achieved comparable results to previous conventional models except for its power consumption.

4. Conclusions

In this paper, we have pioneered an attention-augmented Spiking Neural Network (SNN) that enhances the efficacy of conventional Artificial Neural Network (ANN) frameworks for ECG signal classification. A comprehensive suite of experiments was conducted to ascertain the most effective network structures and to evaluate the impact of various activation functions on model performance. The empirical evidence gleaned from these investigations confirms that our ANN-to-SNN conversion, empowered by the integration of an attention mechanism, yields superior classification outcomes compared to the original ANN model.
Looking ahead, our aspiration is to refine this algorithm further, optimizing it for deployment on portable devices. The goal is to achieve a level of computational efficiency that allows for real-time, on-the-go cardiac monitoring, thereby contributing to proactive health management and potentially life-saving interventions. This future work aims to reduce power consumption and bridge the gap between advanced cardiac diagnostic tools and their accessibility in the form of handheld technology.

Author Contributions

Methodology, A.R. and K.K.K.; Software, A.R. and K.K.K.; Supervision, K.K.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Education (NRF-2021R1F1A1064351). The EDA tool was supported by the IC Design Education Center.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Dagenais, G.R.; Leong, D.P.; Rangarajan, S.; Lanas, F.; Lopez-Jaramillo, P.; Gupta, R.; Diaz, R.; Avezum, A.; Oliveira, G.B.; Wielgosz, A.; et al. Variations in common diseases, hospital admissions, and deaths in middle-aged adults in 21 countries from five continents (PURE): A prospective cohort study. Lancet 2020, 395, 785–794. [Google Scholar] [CrossRef] [PubMed]
  2. Rajni, I.K. Electrocardiogram signal analysis—An overview. Int. J. Comput. Appl. 2013, 84, 22–25. [Google Scholar] [CrossRef]
  3. Sopic, D.; Aminifar, A.; Aminifar, A.; Atienza, D. Real-Time Event-Driven Classification Technique for Early Detection and Prevention of Myocardial Infraction on Wearable Systems. IEEE Trans. Biomed. Circuits Syst. 2018, 12, 982–992. [Google Scholar] [CrossRef] [PubMed]
  4. Tang, X.; Hu, Q.; Tang, W. A Real-Time QRS Detection System with PR/RT Interval and ST Segment Measurements for Wearable ECG sensors using parallel Delta Modulators. IEEE Trans. Biomed. Circuits Syst. 2018, 12, 751–761. [Google Scholar] [CrossRef] [PubMed]
  5. Kiranyaz, S.; Ince, T.; Gabbouj, M. Real-Time Patient-Specific ECG Classification by 1-D Convolutional Neural Networks. IEEE Trans. Biomed. Eng. 2016, 63, 664–675. [Google Scholar] [CrossRef] [PubMed]
  6. Rajpurkar, P.; Hannun, A.Y.; Haghpanahi, M.; Bourn, C.; Ng, A.Y. Cardiologist-Level Arrhythmia Detection with Convolutional Neural Networks. arXiv 2017, arXiv:1707.01836. [Google Scholar]
  7. Kachuee, M.; Fazeli, S.; Sarrafzadeh, M. ECG Heartbeat Classification: A Deep Transferable Representation. In Proceedings of the 2018 IEEE International Conference on Healthcare Informatics (ICHI), New York, NY, USA, 4–7 June 2018; pp. 443–444. [Google Scholar]
  8. Saadatnejad, S.; Oveisi, M.; Hashemi, M. LSTM-based ECG classification for continuous monitoring on personal wearable devices. IEEE J. Biomed. Health Inform. 2019, 24, 515–523. [Google Scholar] [CrossRef] [PubMed]
  9. Saroj, K.P.; Rekh, R.R. Automatic Detection of Arrhythmia from Imbalanced ECG Database Using CNN Model with SMOTE. Australas. Phys. Eng. Sci. Med. 2019, 42, 1129–1139. [Google Scholar]
  10. Kłosowski, G.; Rymarczyk, T.; Wójcik, D.; Skowron, S.; Cieplak, T.; Adamkiewicz, P. The Use of Time-Frequency Moments as Inputs of LSTM Network for ECG Signal Classification. Electronics 2020, 9, 1452. [Google Scholar] [CrossRef]
  11. Tavanaei, A.; Ghodrati, M.; Kheradpisheh, S.R.; Masquelier, T.; Maida, A. Deep Learning in Spiking Neural Networks. Neural Netw. 2019, 111, 47–63. [Google Scholar] [CrossRef] [PubMed]
  12. Indiveri, G.; Corradi, F.; Qiao, N. Neuromorphic Architectures for Spiking Deep Neural Networks. In Proceedings of the IEEE International Electron Devices Meeting (IEDM), Washington, DC, USA, 7–9 December 2015; pp. 5–9. [Google Scholar]
  13. Saeed, R.K.; Timothee, M. Temporal Backpropagation for Spiking Neural Networks with One Spike per Neuron. Int. J. Neural Syst. 2020, 30, 2050027. [Google Scholar]
  14. Alireza, A.; Matin, H. ECG Classification Algorithm Based on STDP and R-STDP Neural Networks for Real-Time Monitoring on Ultra-Low-Power Personal Wearable Devices. IEEE Trans. Biomed. Circuits Syst. 2019, 13, 1483–1493. [Google Scholar]
  15. Kolagasioglu, E.; Zjajo, A. Energy Efficient Feature Extraction for Single-Lead ECG Classification Based on Spiking Neural Networks. Ph.D. Dissertation, Delft University of Technology, Delft, The Netherlands, 2018. [Google Scholar]
  16. Das, A.; Pradhapan, P.; Groenendaal, W.; Adiraju, P.; Rajan, R.T.; Catthoor, F.; Schaafsma, S.; Krichmar, J.L.; Dutt, N.; Van Hoof, C. Unsupervised heart-rate estimation in wearables with Liquid states and a probabilistic readout. Neural Netw. 2018, 99, 134–147. [Google Scholar] [CrossRef] [PubMed]
  17. Ma, Q.; Li, Y.G.; Haider, M.R.; Massoud, Y. A low-power neuromorphic bandpass filter for biosignal processing. In Proceedings of the WAMICON 2013, Orlando, FL, USA, 7–9 April 2013. [Google Scholar]
  18. Cattaneo, R. Ecg Signals Classification Using Neuromorphic Hardware. Ph.D. Dissertation, ETH Zurich, Zurich, Switzerland, 2018. [Google Scholar]
  19. Szi-Wen, C.; Hsiao-Chen, C. A Real-Time QRS Detection Method Based on Moving-averaging Incorporating with Wavelet Denoising. Comput. Methods Programs Biomed. 2006, 82, 187–195. [Google Scholar]
  20. Mohammad, D. Detection of Abnormalities in Cardiac Rhythm Using Spiking Neural Networks. Thesis. 2023. Available online: https://lup.lub.lu.se/luur/download?func=downloadFile&recordOId=9113248&fileOId=9113249 (accessed on 6 April 2024).
  21. Bauer, F.C.; Muir, D.R.; Indiveri, G. Real-time ultra-low power ECG anomaly detection using an event-driven neuromorphic processor. IEEE Trans. Biomed. Circuits Syst. 2019, 13, 1575–1582. [Google Scholar] [CrossRef]
  22. Moody, G.B.; Mark, R.G. The Impact of the MIT-BIH Arrhythmia Database. IEEE Eng. Med. Biol. Mag. 2001, 20, 45–50. [Google Scholar] [CrossRef] [PubMed]
  23. Clifford, G.; Liu, C.; Moody, B.; Lehman, L.; Silva, I.; Li, Q.; Johnson, A.; Mark, R. AF classification from a short single lead ECG recording: The Physionet Computing in Cardiology Challenge 2017. In Proceedings of the 2017 Computing in Cardiology (CinC), Rennes, France, 24–27 September 2017. [Google Scholar]
  24. Fang, W.; Chen, Y.; Ding, J.; Yu, Z.; Masquelier, T.; Chen, D.; Huang, L.; Zhou, H.; Li, G.; Tian, Y. SpikingJelly: An Open-Source Machine Learning Infrastructure Platform for Spike-Based Intelligence. Sci. Adv. 2023, 9, eadi1480. [Google Scholar] [CrossRef]
  25. Yan, Z.; Zhou, J.; Wong, W.F. Energy Efficient ECG Classification with Spiking Neural Network. Biomed. Signal Process. Control. 2021, 63, 102170. [Google Scholar] [CrossRef]
  26. Takalo-Mattila, J.; Kiljander, J.; Soininen, J.-P. Inter-patient ECG classification using deep convolutional neural networks. In Proceedings of the 2018 21st Euromicro Conference on Digital System Design (DSD), Prague, Czech Republic, 29–31 August 2018; pp. 421–425. [Google Scholar]
  27. Xing, Y.; Zhang, L.; Hou, Z.; Li, X.; Shi, Y.; Yuan, Y.; Zhang, F.; Liang, S.; Li, Z.; Yan, L. Accurate ECG Classification Based on Spiking Neural Network and Attention Mechanism for Real-Time Implementation on Personal Portable Devices. Electronics 2022, 11, 1889. [Google Scholar] [CrossRef]
Figure 1. Structure of an ECG signal.
Figure 1. Structure of an ECG signal.
Sensors 24 03426 g001
Figure 2. Segmented heartbeats of N and V classes from MIT-BIH Arrhythmia dataset.
Figure 2. Segmented heartbeats of N and V classes from MIT-BIH Arrhythmia dataset.
Sensors 24 03426 g002
Figure 3. The proposed SNN framework for ECG classification.
Figure 3. The proposed SNN framework for ECG classification.
Sensors 24 03426 g003
Figure 4. LIF neuron.
Figure 4. LIF neuron.
Sensors 24 03426 g004
Figure 5. Attention Module.
Figure 5. Attention Module.
Sensors 24 03426 g005
Figure 6. (a) ReLU; (b) Leaky ReLU.
Figure 6. (a) ReLU; (b) Leaky ReLU.
Sensors 24 03426 g006
Figure 7. Accuracy comparison of conventional vs. proposed SNN over time steps [25,26,27].
Figure 7. Accuracy comparison of conventional vs. proposed SNN over time steps [25,26,27].
Sensors 24 03426 g007
Table 1. Performance evaluation over all classes.
Table 1. Performance evaluation over all classes.
ModelOverall-Acc (%)F1 (%)Pre (%)
12-layer ANN (PhysioNet2017) 84.170.173.4
Proposed SNN (PhysioNet2017) 85.870.475.7
12-layer ANN (MIT-BIH Arrhythmia) 89.983.685.0
Proposed SNN (MIT-BIH Arrhythmia) 93.885.488.0
Table 2. Performance evaluation over normal and noise classes.
Table 2. Performance evaluation over normal and noise classes.
ModelOverall-Acc (%)F1 (%)Pre (%)
NormalANN86.890.089.6
Proposed SNN90.892.093
NoiseANN93.449.160.0
Proposed SNN93.050.054.0
Table 3. Baseline model and proposed Att-SNN for Inter-Patient evaluation strategy.
Table 3. Baseline model and proposed Att-SNN for Inter-Patient evaluation strategy.
ModelAcc (%)Sen (%)Pre (%)F1 (%)Power (W)
Proposed Att-SNN93.8N: 94N: 94.3N: 95.5278 mW
V: 54V: 75.0V: 73.5
Yan et al. [25]90N: 92N: 97N: 94.4181 mW
V: 77V: 59V: 66.8
Janne et al. [26]90N: 92N: 97 N: 93.4-
V: 89V: 51V: 63
Xing et al. [27]92.07N: 98.3N: 93.2N: 95.7246 mW
V: 69.0V: 76.4V: 72.5
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

Rana, A.; Kim, K.K. Electrocardiography Classification with Leaky Integrate-and-Fire Neurons in an Artificial Neural Network-Inspired Spiking Neural Network Framework. Sensors 2024, 24, 3426. https://doi.org/10.3390/s24113426

AMA Style

Rana A, Kim KK. Electrocardiography Classification with Leaky Integrate-and-Fire Neurons in an Artificial Neural Network-Inspired Spiking Neural Network Framework. Sensors. 2024; 24(11):3426. https://doi.org/10.3390/s24113426

Chicago/Turabian Style

Rana, Amrita, and Kyung Ki Kim. 2024. "Electrocardiography Classification with Leaky Integrate-and-Fire Neurons in an Artificial Neural Network-Inspired Spiking Neural Network Framework" Sensors 24, no. 11: 3426. https://doi.org/10.3390/s24113426

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