Skip to Content
SensorsSensors
  • Article
  • Open Access

7 December 2022

15 Pages

A Denoising and Fourier Transformation-Based Spectrograms in ECG Classification Using Convolutional Neural Network

,
and
Institute of Computer Science, Faculty of Electronics and Information Technology, Warsaw University of Technology, 00-665 Warsaw, Poland
*
Author to whom correspondence should be addressed.
This article belongs to the Section Intelligent Sensors

Abstract

The non-invasive electrocardiogram (ECG) signals are useful in heart condition assessment and are found helpful in diagnosing cardiac diseases. However, traditional ways, i.e., a medical consultation required effort, knowledge, and time to interpret the ECG signals due to the large amount of data and complexity. Neural networks have been shown to be efficient recently in interpreting the biomedical signals including ECG and EEG. The novelty of the proposed work is using spectrograms instead of raw signals. Spectrograms could be easily reduced by eliminating frequencies with no ECG information. Moreover, spectrogram calculation is time-efficient through short-time Fourier transformation (STFT) which allowed to present reduced data with well-distinguishable form to convolutional neural network (CNN). The data reduction was performed through frequency filtration by taking a specific cutoff value. These steps makes architecture of the CNN model simple which showed high accuracy. The proposed approach reduced memory usage and computational power through not using complex CNN models. A large publicly available PTB-XL dataset was utilized, and two datasets were prepared, i.e., spectrograms and raw signals for binary classification. The highest accuracy of 99.06% was achieved by the proposed approach, which reflects spectrograms are better than the raw signals for ECG classification. Further, up- and down-sampling of the signals were also performed at various sampling rates and accuracies were attained.

1. Introduction

Electrocardiogram (ECG) signals are non-stationary and risk-free, and using them is inexpensive to measure the electrical activity of the heart. The ECG signal consists of waves in the forms of P, Q, R, S, and T notations called one complete cardiac cycle as shown in below Figure 1, plotted as an X-Y plot where the x-axis represents time and voltage on the y-axis which shows heart activity. These are used to identify cardiac abnormalities and diseases. These waves need to be transformed for the classification model to detect heart disease i.e., a noise-free wave [1]. The ECG signals consisted of segments (as given in Figure 1) that depict the region between two waves, i.e., PR and ST. The said regions are important to know the time interval of depolarization and repolarization among heart chambers, i.e., atria and ventricles activation, and the changes in these segments are useful in heart disease prediction. Similarly, the RR interval and R-peaks are also crucial factors to determine the patient’s health status [2]. ECG is useful in finding various heart-related diseases, including cardiovascular disorder [3], heart bundle branch block [4], ST-T ischemic changes for coronary heart disease [5], atrial fibrillations due to disordered heart rhythm [6], left ventricular hypertrophy [7], and acute pericarditis [8]. Anteroseptal myocardial infarction (ASMI), considered in this study, is one of the life-threatening heart diseases that occurs due to the rupture of the volatile atherosclerotic plaque in the left anterior descending artery and can be detected through an ECG test [9].
Figure 1. ECG cardiac cycle (image credit: Public Domain): x-axis (time), y-axis (amplitude in mV), typical duration (1 s).
ECG signals have some non-cardiac signals, making them noisy and thus affecting the ability to differentiate between normal and abnormal signals. The noise in the signals produces some additional frequency components, i.e., low and high frequencies. These push the vital clinical evidence beyond, and therefore, a misclassification occurs [10,11]. The noise is of diverse types, including powerline interference, muscle artifacts, baseline wanders, and electrode contact. The impact of noise on ECG is sometimes much worse, corrupting to an extent making the medical professionals impossible to study. The delays due to repeating the ECG or wrong interpretation may be harmful for the patients’ health [10,12]. A signal denoising is a crucial factor for the accurate disease classification from the ECG signals. Wavelet transformation (WT) has become famous in biomedical signals since the 1990s for giving a progressive interpretation of the data. WT extracts the features from signals by decomposing input data into smooth patterns and then performing reconstruction of the signals, which gives a better understanding [13]. WT has the following two types: continuous and discrete wavelets. The continuous WT follows the shifting and scaling mechanism of the base signal, utilizing each conceivable wavelet, therefore, it is highly redundant. The discrete WT (which is applied in this study) on the other hand pursues only the limited set of wavelets such as locations and scales, thus, more efficiently [14]. The types of noises discussed earlier, i.e., baseline wanders and powerline interference can be constricted by applying the denoising technique based on discrete wavelet as performed in [15,16]. The cleaned signal gives a better interpretation of the ECG. To apply the denoising approach, diverse wavelets from the families including Daubechies, Bior, and Coif are practiced, enhancing the signals [17]. The main reason for the preference of WT for signal denoising is that it offers a range of wavelets, i.e., Daubechies, Haar, Coif, Sym, and Bior. Therefore, there are a number of options available under a single approach to finding the best matching wavelet for the presented problem.
Another approach for ECG signals analysis is Fast Fourier Transformation (FFT), which is used to transform the signals into a time-frequency domain [18]. Correspondingly, a sliding window-based version of the Fourier transformation called Short Time Fourier Transformation (STFT) deployed in the proposed study is used for the efficient signal analysis both in terms of computational time and memory. STFT is comparatively faster and has good precision, as highlighted in [19]. The other possible time-frequency transformation methods are fast Fourier transformation [20], synchro-squeezed transform [19], and continuous wavelet transformation [21]. It takes a few parameters to perform transformation, i.e., the signal data array, the length of the segments, sampling frequency as a number of samples per cycle, overlapping ratio which usually set as 25%, 50%, or 75%, and window size [22,23] as described in [24]. By applying the discussed approach, the output appears which called a spectrogram that shows time on the x-axis, frequency on the y-axis, and the color intensity represents the level of amplitude. The studies [25,26] suggest the signals are more distinguishable in the spectrograms rather than in the raw signals. In Figure 2a,c show the raw signal of the Normal (NORM) and ASMI classes, respectively, while Figure 2b,d represent the transformation of raw signals into spectrograms for both classes. A difference can be seen between the Normal and ASMI spectrograms at the signal base. There is a spread or light shadow in the ASMI spectrogram that is condensed or dark in the Normal spectrogram.
Figure 2. (a) Normal ECG signals: x-axis (samples/datapoints), y-axis (frequency in Hz); (b) raw signal transformed into spectrogram: x-axis (data segments), y-axis (frequency in Hz); (c) ASMI ECG signals: x-axis (samples/datapoints); (d) raw signal transformed into spectrograms: x-axis (data segments), y-axis (frequency in Hz).
Identifying the diseases from the resultant spectrograms is not only difficult for humans but for the traditional models as well. These require narrow observation and/or computation [27]. Therefore, neural networks such as convolutional neural networks (CNN) are considered as one of the exceptional classification models. CNN takes images as an input, extracts the features, and produces the classification result with more accuracy even in a shorter time [28,29]. In recent years, it has been widely deployed for the various classification problems by the different researchers [29,30,31,32]. CNN models proposed by [33,34,35,36] used spectrograms as input to predict heart disease. In the existing ECG signal analysis, the image classification model consumes more memory and computation because of its high dimensions. Therefore, the study aimed to decrease the data size without losing vital information and affecting accuracy.
In the proposed study, the size of ECG images is reduced through denoising, unwanted frequency filtration, and generating the spectrograms by applying the STFT transformation. With this approach, comparable accuracy at a smaller number of parameters is achieved. Further, the up- and down-sampling rates of the ECG signal were performed and evaluated with the classification model on it. The novelty of the proposed work is a representation of data for the CNN model in well-presented form i.e., spectrograms. Additionally, the data size reduction aim is achieved through frequency filtration, where a simple architecture of the CNN model showed higher accuracy rather than utilizing the complex model, which ultimately requires more memory and computational power.
In Section 2, related work over various filters for signal denoising, neural networks in imaging, and spectrograms in ECG signal analysis using CNN are presented. In Section 3, the overall methodology consisting of pre-processing techniques, dataset preparation, and model architecture is described. In Section 4, experiments and their results, along with a discussion, are presented. In Section 5, a conclusion to the study is given.

3. Methodology

The ECG signals may contain various types of noises i.e., baseline wander and power line interference, which produces some additional frequency components i.e., low, and high frequencies and can affect the classification accuracy. Therefore, WT was considered for denoising the signals. Similarly, Fourier transformation divides the biomedical signals into time-frequency domain, through which an unwanted frequency can be filtered with the purpose of data size reduction. The key advantage of reducing data size is to present the complete data into less resolution image i.e., spectrogram which helps in memory and computational management. Spectrograms depict the data in a more distinguishable form than the raw signals i.e., recent studies [34,35,36] reveal that the data feed as spectrograms into neural networks resulted in better accuracy, which urged us to produce spectrograms using STFT.
Initially, the 12-leads ECG PTB-XL dataset was downloaded from the well-known repository physionet.org [50]. The dataset consisted of 21,837 records of 18,885 patients recorded at 100 Hz sampling rate over 10 s in length. The current study methodology into three parts. Firstly, pre-processing on the given data was applied and spectrograms were generated. Following this, datasets were prepared and finally, CNN model for classification purposes was applied. The details are given below:

3.1. Pre-Processing

3.1.1. Denoising

The given signal data had some noise on the baseline, which affects the overall accuracy, therefore, it is necessary to clean it. The thorough experiments by the authors of [10,51], gave us the motivation to apply the WT for our purposed work to remove the noise from the signals as shown in Algorithm 1 when it retains important diagnostic data [51].
Algorithm 1: Denoising
Step 1: L c o e f f = d w t ( d a t a , w a v e l e t , m o d e )
Step 2: V s i g m a = [ ( 1 0.6745 ) × M a .   d e v ( L c o e f f ) ]
Step 3: V t h r e s h = V s i g m a × ( 2 × l o g   ( l e n ( d a t a ) )
Step 4: F c o e f f = ∀   x i ∈ L c o e f f ,   {   i = 0 ,   1 , 2 … n   }
        t h r e s h ( x i , V t h r e s h , m o d e )
Step 5: R s i g = I n v e r s e _ d w t   ( F c o e f f , w a v e l e t , m o d e )
In Algorithm 1, initially, the list of coefficients was calculated ( L c o e f f ) using discrete wavelet transformation (dwt) from pyWT python library [52]. The function dwt takes three parameters including signal data, wavelet as bior3.1 (as proposed work results are better at this wavelet), and the mode as periodic. The results of dwt are stored in L c o e f f . Now, the sigma value ( V s i g m a ) was considered to find the threshold by measuring the mean absolute deviation ( M a .   d e v ) of the L c o e f f . The constant value of 0.6745 set as given at [53], which depicts the ratio of standard deviation to ( M a .   d e v ) and is a robust value of noise coefficient amplitude [54]. In the next step, the threshold value ( V t h r e s h ) was computed by multiplying the V s i g m a with the log of a given data length. On step 4, V t h r e s h was applied to keep only those coefficients ( F c o e f f ), which have greater value than the V t h r e s h to remove the unwanted coefficients from the list. The thresh function was utilized from the pyWT library [52], which needed three arguments including each index of the coefficient list (found in step 1), threshold value (found in step 3), and mode as periodic. Finally, the inverse dwt was applied to retrieve the signal and stored it in resultant signal ( R s i g ). The inverse dwt function [52] takes the following variables as input: filtered coefficient list as F c o e f f , wavelet, and the mode. The R s i g is then stored in a NumPy file for further frequency filtration.

3.1.2. Frequency Filtration

Frew frequencies were filtered to reduce data to the next level after performing the denoising approach. The study is based on the ASMI disease classification, which only focuses on the baseline signals; therefore, data that presents peak-level signals was deleted i.e., R-peaks. The various cutoff frequencies were manually tested, and value 2 Hz found as the best cutoff. At this cutoff value, vital information is retained by achieving success in data reduction aim.
As shown in Algorithm 2, firstly, denoised signals data were loaded from NumPy files, which were stored during the denoising process (output of Algorithm 1). Next, FFT was computed on the given time series data and stored it into variable x t . In step 3, sampling frequency ( S f r e q ) of each signal (stored in variable x i from x t ) was calculated using the SciPy Fourier transformation frequency function. At the same time, a frequency cutoff value on the signal x i was applied to delete the unwanted frequencies along with the data and store the results in variable x c l e a n . Finally, inverse Fourier transformation was used to retrieve the x c l e a n reduced signal data and stored it in variable F s i g . The data in F s i g was further stored in a NumPy file to generate the spectrograms. In the below Figure 3a is showing spectrogram before frequency filtration, in which x-axis represents data segments, which means each segment contains five data points with their corresponding frequencies at y-axis, while Figure 3b is showing after operation with the same axis information. However, number of data segments reduced in Figure 3b because we dropped all the data points having frequencies greater than 2 Hz instead of replacing them with zero values. We considered the data segments at x-axis instead of time because it gives more presentable and disguisable information (among both classes) for the purpose of neural network training with improved accuracy as shown in results section. It is pertinent to mention here that, both x and y axis were completely omitted from all of figures during preparation of dataset with the aim of neural network model training because it can affect the overall accuracy.
Algorithm 2: Frequency filtration
Step 1: x = l o a d _ d a t a   ( s i g n a l )
Step 2: x t = f o u r i e r _ t r a n s f o r m a t i o n   ( x )
Step 3: ∀   x i ∈ x t ,   {   i = 0 ,   1 , 2 … n   }   S f r e q = f o u r i e r _ t r a n s _ f r e q .   ( x i )     x c l e a n = d e l   ( x i ,       S f r e q > 2   H z )
Step 4: F s i g = I n v e r s e _ f o u r i e r _ t r a n s f o r m   ( x c l e a n )
Figure 3. (a) Spectrogram before frequency filtration: x-axis (data segments), y-axis (frequency in Hz), (b) spectrogram after frequency filtration: x-axis (data segments), y-axis (frequency in Hz).

3.1.3. Spectrograms

The spectrograms give a more distinguishable shape to the signals than the raw signals [25,26]. Therefore, spectrograms were produced after performing the denoising and frequency filtration procedures. SciPy signal library was utilized to import the STFT-based transformation for the spectrograms. The STFT takes a few arguments (as discussed in the introduction section) to generate the spectrograms. Several parameter values were tested and found few suitable by manual visualization where spectrograms give better interpretation and are more distinct. Thus, the number of FFTs (NFFT) and segments were set to 9, over looping length to half of the NFFT, and sampling frequency to 100 Hz at which signals were computed by the machine. The dimensions of the spectrograms were set to 64 × 64 with the grayscale color map and stored in the form of portable network graphics (.PNG) images.

3.2. Dataset Preparation

The PTB-XL signal was originally calculated at sampling rates of 100 Hz and 500 Hz. However, 100 Hz sampling rate was chosen in which each signal measured for 10 s of the length. The dataset consisted of 44 classes, out of which only a few had a higher number of samples. There was a class imbalance among the dataset classes. The whole dataset divided into two parts ASMI and normal (NORM) according to proposed work. ECG consists of 12 leads (I, II, III, aVR, aVL, aVF, v1–v6), only v1 lead data is acquired in the dataset preparation. Only those samples were inserted in the ASMI class, which originally belonged to this and the rest of the images were moved to the NORM class. Since the class imbalance occurs for the ASMI, therefore, two data augmentation approaches were applied i.e., horizontal flip and image contrast enhancement. However, it has been carefully considered to use only data augmentation approaches, which have no effect or have possible minimum on original data. Some images were also duplicated to deal with the ASMI class imbalance problem.

3.3. Model Architecture

As discussed earlier, CNN model is one of the popular classification models for image data. Therefore, the said model is chosen for current study to perform classification over the prepared dataset. The projected architecture is given in Figure 4.
Figure 4. Proposed model architecture with 1 input layer, 4 convolutional layers and 1 output layer.
In the proposed 2-dimensional CNN model, four convolutional layers were applied. The input layer accepts a 64 × 64-dimension image as a spectrogram. The first layer has 64 filters (3 × 3) in size along with 2D Max Pooling (2 × 2) in size and 0.25 dropout to avoid overfitting. In the second layer, the filter size increased to 128 with a size of 3 × 3, and 2D Max Pooling (2 × 2) was added. The third layer was formed with an increased 256 filters (3 × 3), 2D Max Pooling (2 × 2), and 0.25 dropout. The fourth layer consisted of 64 filters (3 × 3), 2D Max Pooling (2 × 2), and 0.25 dropout. The biases and rectifier linear unit (ReLu) activation function were added in each layer. Next, the flatten layer comes up, and then a fully connected dense layer with 8 filters size appears. Lastly, one denser layer as an output layer structured with 1 filter size, sigmoid activation function, and L1 type of activity regularizer. The total number of parameters in this model are 0.52 million. In the model compilation, binary cross entropy loss with learning rate 0.001 and Adam optimizer was set. The given architecture is chosen by taking six number of layers randomly at start and attempted model training with different hyperparameters. However, the accuracy was not good as it is. Therefore, number of layers were reduced, and re-tune the hyperparameters. The best accuracy achieved at four layers and with the mentioned hyperparameters i.e., as given above.

4. Experimental Setting and Results

A Jupyter notebook on google research colab with a Tesla T4 GPU, 15.10 GB GPU memory, and 12.68 GB CPU RAM was set up to perform the experiments. Python as a programming language with several libraries, was used. The details of the implementation are as follows:

4.1. Memory Consumption

Keeping in view the data size reduction aim, firstly, two datasets, i.e., spectrograms (as discussed in the pre-processing phase) and raw signals, were created. The raw signal dataset was generated only with the denoising approach. However, the number of images (39, 908), dimensions (64 × 64), and forecolor as grayscale were the same for both datasets.
Figure 5 shows that the proposed spectrograms consume less CPU memory compared to the raw signals dataset in Figure 5a, while for the GPU memory, the memory consumption ratio is the same for both datasets in Figure 5b. However, around 50% less physical memory consumption can be seen for the spectrograms compared to the raw signals with equivalent properties in Figure 5c. The said difference is because we reduced the samples in spectrograms by applying frequency filtration. The spectrogram dataset holds a physical memory size of 29.3 MB, while the raw signals are 58.8 MB data size.
Figure 5. Memory proportion on both datasets: raw signals and spectrograms.

4.2. Model Evaluation

The CNN model was trained and evaluated on both datasets, including spectrograms and raw signals, separately. The hyperparameters were tuned as per the requirements. The batch size was set to 256 for both training and validation, along with 500 epochs and 10 steps per epoch. It is pertinent to mention here that the exact model architecture (as described earlier) and hyperparameters were utilized for both datasets.
Figure 6 shows the overall performance and validation accuracy for the two datasets. The accuracy, precision, and loss on the spectrograms dataset were 99.06%, 100%, and 0.04, respectively, all are in the logarithmic scale. One can see that accuracy, precision, and loss are better than the raw signals’ dataset as represented in blue bars. Similarly, in the right-hand line graph, the validation accuracy is given at different epochs for both datasets. The improved convergence curve can be seen for the spectrogram’s dataset at each next epoch, i.e., top accuracy is 99.06% at 500 epochs. The accuracy on the raw signals dataset goes into the 70s at 100 epochs but then does not improve at all.
Figure 6. (a) Data analytics: accuracy, precision, and loss in log scale for both datasets: raw signals and spectrograms, (b) validation accuracy: x-axis (no. of epochs), y-axis (accuracy) for both datasets: raw signals and spectrograms.

4.3. Learning Rate

The CNN model achieved 99% accuracy on the spectrograms dataset; therefore, we decided to further evaluate the various learning rates. An increment and decrement in the learning rate from 0.001 were considered, the point at which the highest performance was obtained. Various learning rates such as 0.1, 0.01, 0.001, 0.0001, and 0.00001 were considered here, the rest of all other hyperparameters and model architecture kept the same as it was previously.
Figure 7 shows the accuracy of both datasets at various learning rates. The optimal learning rate was found as 0.001 for both datasets; beyond this limit, i.e., at 0.1 and 0.01, the accuracy fell below 60%, which is the least. Similarly, when the rate goes beyond the optimal learning rate i.e., 0.001, the accuracy again showed a dropping trend.
Figure 7. Learning rate evaluation on both datasets: raw signals and spectrograms: x-axis (learning rate), y-axis (accuracy).

4.4. Sampling Rate

The well-known wfdb-python package was utilized to perform up- and down-sampling. Initially, the signals were sampled at 100 Hz, as shown in Figure 8 with red color. Signals were recalculated at a distinct sampling rate, i.e., 25, 200, 600, and 1000, to evaluate the accuracies. The same model architecture and dataset (spectrograms) were utilized for all the sampling rate experiments.
Figure 8. ECG sampling rate influence (down sampling) on algorithm quality: x-axis (sampling rate), y-axis (accuracy).
In Figure 8, less accuracy can be seen at 25 Hz and 50 Hz sampling rates. Besides the above figure, we also performed up-sampling. We checked if interpolation (up-sampling) was able to make our analysis better. For 200 Hz, we obtain 71.32% accuracy; for 400 Hz, 800 Hz, 600 Hz, and 1 kHz, we obtain 82.34%, 66.32%, 81%, and 64.21% accuracy, respectively. We concluded that adding or deleting dummy data among the original signals cannot give performance equal to the original signals.

4.5. Comparison with Existing Methods

The proposed approach is compared with present methodologies in terms of performance and the classification model. To prevent unfairness, only those studies were selected that had quite similar implementation approaches as the current work. Firstly, the proposed approach is compared with studies that implemented a parallel classification model over ECG signals but did not consider the spectrograms. Mishra Abhinav et al. [37] applied custom CNN to predict the arrhythmia on denoised signals using the MIT-BIH Arrhythmia Database. Their suggested approach achieved 93% accuracy, which is lower than the proposed work results. Similarly, Dinesh Kumar et al. [48] also applied an optimization-based deep CNN model to identify the ECG signals for arrhythmia. They obtained 93.19% accuracy in their proposed work, as shown in Table 2. Both authors exercised signal-denoising approaches, which are considered in this work and are obligatory to filter the noise. However, the spectrogram was found as a necessary part from this study for better classification.
Table 2. Assessment with similar classification model.
Keeping in view of the above, the proposed work was compared with the authors who followed the spectrograms approach before performing the model training. Studies by [34,35,36] applied the transformation (Fourier) to generate the spectrograms as presented in the proposed work. Table 3 shows the comparison of the proposed work with the others.
Table 3. Comparison with spectrogram approach.
Jingshan Huang et al. [34] and Amin Ullah et al. [35] achieved 99% accuracy, while Guo Yang Liu et al. [36] obtained 93.09% accuracy using spectrograms and the CNN model. The results by [36] are somehow lower because of the less optimized statistical features and CNN architecture as mentioned by them. As shown, a comparable accuracy of 99.06% was achieved in the proposed work by applying the transformation. Moreover, the unwanted frequency filtration was also applied along with denoising for further data size reduction, as discussed earlier. The high accuracy results shows that classification model such as CNN learn and perform well on the spectrograms by extracting better features than the raw signals.

5. Conclusions

In this study, an accurate and diverse approach is proposed for ECG signal classification. The PTB-XL ECG signals dataset used in the current study experiments was obtained from physionet.org, a well-established medical signals platform. Firstly, a denoising method using wavelet transformation (bior3.1 wavelet) was applied, and then frequency filtration was implemented to remove the unnecessary signals by taking a specific cutoff value without losing useful information. On the resulting data, the short time fourier transformation was applied to generate the spectrograms with the grayscale color scheme. Likewise, one more dataset of raw signals was also prepared by applying a similar denoising approach only for results comparison purposes. The CNN classification model on both datasets was implemented separately using the same architecture and hyperparameters. The proposed approach achieved a higher accuracy of 99.06% than the raw signals. Additionally, the CNN model was evaluated by performing up- and down-sampling of the ECG signals’ sample rate, which depicts the fluctuating accuracies. The novelty of the proposed work is using spectrograms instead of raw signals. Spectrograms could be easily reduced by eliminating frequencies with no ECG information. Further, spectrogram calculation is time-efficient through STFT. Therefore, reduced data with well-distinguishable form was presented to CNN models. These steps make the architecture of the CNN model simple which showed high accuracy. The proposed approach reduced memory usage and computational power through not using complex CNN models. In the future, the multi-class problem will be considered from a similar area, i.e., ECG signals and will emphasize the class imbalance problem.

Author Contributions

Conceptualization, M.F.S., R.M.N., and P.P.; methodology, M.F.S., R.M.N., and P.P.; software, M.F.S.; validation, M.F.S., R.M.N., and P.P.; formal analysis, M.F.S., R.M.N., and P.P.; data curation, M.F.S.; writing—original draft preparation, M.F.S.; Review, R.M.N. and P.P.; supervision, R.M.N. and P.P. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by Warsaw University of Technology, Poland grant BIOTECHMED-3.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The software, developed in Python, is available freely on http://github.com/mfarhan166/ECG-Signals-and-Spectrograms under MIT license (accessed on 5 December 2022).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Aziz, S.; Ahmed, S.; Alouini, M.-S. ECG-based machine-learning algorithms for heartbeat classification. Sci. Rep. 2021, 11, 18738. [Google Scholar] [CrossRef] [Scilit]
  2. Raeiatibanadkooki, M.; Quachani, S.; Khalilzade, M.; Bahaadinbeigy, K. Real Time Processing and Transferring ECG Signal by a Mobile Phone. Acta Inform. Med. 2014, 22, 389. [Google Scholar] [CrossRef] [Scilit]
  3. Serhani, M.A.; TEl Kassabi, H.; Ismail, H.; Nujum Navaz, A. ECG Monitoring Systems: Review, Architecture, Processes, and Key Challenges. Sensors 2020, 20, 1796. [Google Scholar] [CrossRef] [Scilit]
  4. Søndergaard, M.M.; Riis, J.; Bodker, K.W.; Hansen, S.M.; Nielsen, J.; Graff, C.; Pietersen, A.H.; Nielsen, J.B.; Tayal, B.; Polcwiartek, C.; et al. Associations between left bundle branch block with different PR intervals, QRS durations, heart rates and the risk of heart failure: A register-based cohort study using ECG data from the primary care setting. Open Heart 2021, 8, e001425. [Google Scholar] [CrossRef] [Scilit]
  5. Liu, Y.; Ping, J.; Qiu, L.; Sun, C.; Chen, M. Comparative analysis of ischemic changes in electrocardiogram and coronary angiography results: A retrospective study. Medicine 2021, 100, e26007. [Google Scholar] [CrossRef] [Scilit]
  6. Udawat, A.S.; Singh, P. An automated detection of atrial fibrillation from single-lead ECG using HRV features and machine learning. J. Electrocardiol. 2022, 71, 70–81. [Google Scholar] [CrossRef] [Scilit]
  7. Bacharova, L. ECG in left ventricular hypertrophy: A change in paradigm from assessing left ventricular mass to its electrophysiological properties. J. Electrocardiol. 2022, 73, 153–156. [Google Scholar] [CrossRef] [Scilit]
  8. Liu, Y.-L.; Lin, C.-S.; Cheng, C.-C.; Lin, C. A Deep Learning Algorithm for Detecting Acute Pericarditis by Electrocardiogram. J. Pers. Med. 2022, 12, 1150. [Google Scholar] [CrossRef] [Scilit]
  9. Bhattarai, S.; Chhabra, L.; Hashmi, M.F.; Matalgah, M.M. Anteroseptal Myocardial Infarction. In StatPearls; StatPearls Publishing: Treasure Island, FL, USA, 2022. Available online: https://www.ncbi.nlm.nih.gov/books/NBK540996/ (accessed on 20 July 2022).
  10. Gupta, V.; Mittal, M. A Comparison of ECG Signal Pre-processing Using FrFT, FrWT and IPCA for Improved Analysis. IRBM 2019, 40, 145–156. [Google Scholar] [CrossRef] [Scilit]
  11. Gupta, V.; Mittal, M.; Mittal, V. Performance Evaluation of Various Pre-Processing Techniques for R-Peak Detection in ECG Signal. IETE J. Res. 2020, 68, 3267–3282. [Google Scholar] [CrossRef] [Scilit]
  12. Mortezaee, M.; Mortezaie, Z.; Abolghasemi, V. An Improved SSA-Based Technique for EMG Removal from ECG. IRBM 2019, 40, 62–68. [Google Scholar] [CrossRef] [Scilit]
  13. Al-Ghraibah, A.; El-Sharo, S.; Al-Nabulsi, J.; Matalgah, M.M. Evaluation of the carotid artery using wavelet-based analysis of the pulse wave signal. Int. J. Elec. Comp. Eng. 2022, 12, 1456–1467. [Google Scholar]
  14. Stokfiszewski, K.; Wieloch, K.; Yatsymirskyy, M. An efficient implementation of one-dimensional discrete wavelet transforms algorithms for GPU architectures. J. Supercomput. 2022, 78, 11539–11563. [Google Scholar] [CrossRef] [Scilit]
  15. Fars, S.; Thomas, S. An efficient ECG Denoising method using Discrete Wavelet with Savitzky-Golay filter. Curr. Dir. Biomed. Eng. 2019, 5, 385–387. [Google Scholar] [CrossRef] [Scilit]
  16. Gualsaqui, M.; Vizcaíno, I.; Proaño, V.; Flores, M. ECG signal denoising using discrete wavelet transform: A comparative analysis of threshold values and functions. MASKANA 2018, 9, 105–114. [Google Scholar] [CrossRef] [Scilit]
  17. Dautov, Ç.P.; Özerdem, M.S. Wavelet transform and signal denoising using Wavelet method. In Proceedings of the 2018 26th Signal Processing and Communications Applications Conference (SIU), Izmir, Turkey, 2–5 May 2018; pp. 1–4. [Google Scholar] [CrossRef] [Scilit]
  18. Zhang, R.; Liu, X.; Zheng, Y.; Lv, H.; Li, B.; Yang, S.; Tan, Y. Time-frequency synchroextracting transform. IET Signal Process 2022, 16, 117–131. [Google Scholar] [CrossRef] [Scilit]
  19. Yan, J.; Laflamme, S.; Singh, P.; Sadhu, A.; Dodson, J. A Comparison of Time-Frequency Methods for Real-Time Application to High-Rate Dynamic Systems. Vibration 2020, 3, 204–216. [Google Scholar] [CrossRef] [Scilit]
  20. Kang, M.; Shin, S.; Jung, J.; Kim, Y.T. Classification of Mental Stress Using CNN-LSTM Algorithms with Electrocardiogram Signals. J. Healthc. Eng. 2021, p. e9951905. Available online: https://www.hindawi.com/journals/jhe/2021/9951905/ (accessed on 10 May 2022).
  21. Wang, T.; Lu, C.; Sun, Y.; Yang, M.; Liu, C.; Ou, C. Automatic ECG Classification Using Continuous Wavelet Transform and Convolutional Neural Network. Entropy 2021, 23, 119. [Google Scholar] [CrossRef] [Scilit]
  22. Jeon, H.; Jung, Y.; Lee, S.; Jung, Y. Area-Efficient Short-Time Fourier Transform Processor for Time–Frequency Analysis of Non-Stationary Signals. Appl. Sci. 2020, 10, 7208. [Google Scholar] [CrossRef] [Scilit]
  23. Mateo, C.; Talavera, J.A. Short-Time Fourier Transform with the Window Size Fixed in the Frequency Domain (STFT-FD): Implementation. SoftwareX 2018, 8, 5–8. [Google Scholar] [CrossRef] [Scilit]
  24. STFT Signal—SciPy v1.8.1 Manual. Available online: https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.stft.html (accessed on 20 July 2022).
  25. Ye, F.; Yang, J. A Deep Neural Network Model for Speaker Identification. Appl. Sci. 2021, 11, 3603. [Google Scholar] [CrossRef] [Scilit]
  26. Li, W.; Wang, K.; You, L. A Deep Convolutional Network for Multitype Signal Detection and Classification in Spectrogram. Math. Probl. Eng. 2020, 2020, 9797302. [Google Scholar] [CrossRef] [Scilit]
  27. Li, J.; Si, Y.; Xu, T.; Jiang, S. Deep Convolutional Neural Network Based ECG Classification System Using Information Fusion and One-Hot Encoding Techniques. Math. Probl. Eng. 2018, 2018, 7354081. [Google Scholar] [CrossRef] [Scilit]
  28. Yadav, S.S.; Jadhav, S.M. Deep convolutional neural network based medical image classification for disease diagnosis. J. Big Data 2019, 6, 13. [Google Scholar] [CrossRef] [Scilit]
  29. Chiang, C.H.; Weng, C.L.; Chiu, H.W. Automatic classification of medical image modality and anatomical location using convolutional neural network. PLoS ONE 2021, 16, e0253205. [Google Scholar] [CrossRef] [Scilit]
  30. Reshi, A.A.; Rustam, F.; Mehmood, A.; Alhossan, A.; Alrabiah, Z.; Ahmad, A.; Alsuwailem, H.; Choi, G.S. An Efficient CNN Model for COVID-19 Disease Detection Based on X-Ray Image Classification. Complexity 2021, 2021, 1–12. [Google Scholar] [CrossRef] [Scilit]
  31. Woźniak, M.; Siłka, J.; Wieczorek, M. Deep neural network correlation learning mechanism for CT brain tumor detection. Neural Comput. Appl. 2021. [Google Scholar] [CrossRef] [Scilit]
  32. Litjens, G.; Ciompi, F.; Wolterink, J.M.; de Vos, B.D.; Leiner, T.; Teuwen, J.; Išgum, I. State-of-the-Art Deep Learning in Cardiovascular Image Analysis. JACC Cardiovasc. Imaging 2019, 12, 1549–1565. [Google Scholar] [CrossRef] [Scilit]
  33. Król-Józaga, B. Atrial fibrillation detection using convolutional neural networks on 2-dimensional representation of ECG signal. Biomed. Signal Process. Control. 2022, 74, 103470. [Google Scholar] [CrossRef] [Scilit]
  34. Huang, J.; Chen, B.; Yao, B.; He, W. ECG Arrhythmia Classification Using STFT-Based Spectrogram and Convolutional Neural Network. IEEE Access 2019, 7, 92871–92880. [Google Scholar] [CrossRef] [Scilit]
  35. Ullah, A.; Anwar, S.M.; Bilal, M.; Mehmood, R.M. Classification of Arrhythmia by Using Deep Learning with 2-D ECG Spectral Image Representation. Remote Sens. 2020, 12, 1685. [Google Scholar] [CrossRef] [Scilit]
  36. Liu, G.; Han, X.; Tian, L.; Zhou, W.; Liu, H. ECG quality assessment based on hand-crafted statistics and deep-learned S-transform spectrogram features. Comput. Methods Programs Biomed. 2021, 208, 106269. [Google Scholar] [CrossRef] [Scilit]
  37. Mishra, A.; Dharahas, G.; Gite, S.; Kotecha, K.; Koundal, D.; Zaguia, A.; Kaur, M.; Lee, H.-N. ECG Data Analysis with Denoising Approach and Customized CNNs. Sensors 2022, 22, 1928. [Google Scholar] [CrossRef] [Scilit]
  38. AlMahamdy, M.; Riley, H.B. Performance Study of Different Denoising Methods for ECG Signals. Procedia Comput. Sci. 2014, 37, 325–332. [Google Scholar] [CrossRef] [Scilit]
  39. Gusev, M.; Domazet, E. Optimal DSP bandpass filtering for QRS detection. In Proceedings of the 2018 41st International Convention on Information and Communication Technology, Electronics and Microelectronics (MIPRO), Opatija, Croatia, 12–25 May 2018; pp. 0303–0308. [Google Scholar] [CrossRef] [Scilit]
  40. Xu, B.; Liu, R.; Shu, M.; Shang, X.; Wang, Y. An ECG Denoising Method Based on the Generative Adversarial Residual Network. Comput. Math. Methods Med. 2021, 1–23. [Google Scholar] [CrossRef] [Scilit]
  41. Liu, R.; Shu, M.; Chen, C. ECG Signal Denoising and Reconstruction Based on Basis Pursuit. Appl. Sci. 2021, 11, 1591. [Google Scholar] [CrossRef] [Scilit]
  42. Giełczyk, A.; Marciniak, A.; Tarczewska, M.; Lutowski, Z. Pre-processing methods in chest X-ray image classification. PLoS ONE 2022, 17, e0265949. [Google Scholar] [CrossRef] [Scilit]
  43. Heidari, M.; Mirniaharikandehei, S.; Khuzani, A.Z.; Danala, G.; Qiu, Y.; Zheng, B. Improving the performance of CNN to predict the likelihood of COVID-19 using chest X-ray images with pre-processing algorithms. Int. J. Med. Inform. 2020, 144, 104284. [Google Scholar] [CrossRef] [Scilit]
  44. Aboussaleh, I.; Riffi, J.; Mahraz, A.M.; Tairi, H. Brain Tumor Segmentation Based on Deep Learning’s Feature Representation. J. Imaging 2021, 7, 269. [Google Scholar] [CrossRef] [Scilit]
  45. Nurmaini, S.; Tondas, A.E.; Darmawahyuni, A.; Rachmatullah, M.N.; Effendi, J.; Firdaus, F.; Tutuko, B. signal classification for automated delineation using bidirectional long short-term memory. Inform. Med. Unlocked 2021, 22, 100507. [Google Scholar] [CrossRef] [Scilit]
  46. Fang, Y.; Shi, J.; Huang, Y.; Zeng, T.; Ye, Y.; Su, L.; Zhu, D.; Huang, J. Electrocardiogram Signal Classification in the Diagnosis of Heart Disease Based on RBF Neural Network. Comput. Math. Methods Med. 2022, 2022, 9251225. [Google Scholar] [CrossRef] [Scilit]
  47. Fariha, M.A.Z.; Ikeura, R.; Hayakawa, S.; Tsutsumi, S. Analysis of Pan-Tompkins Algorithm Performance with Noisy ECG Signals. J. Phys. Conf. Ser. 2020, 1532, 1. [Google Scholar] [CrossRef] [Scilit]
  48. Atal, D.K.; Singh, M. Arrhythmia Classification with ECG signals based on the Optimization-Enabled Deep Convolutional Neural Network. Comput. Methods Programs Biomed. 2020, 196, 105607. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  49. Bat algorithm. Wikipedia. 2020. Available online: https://en.wikipedia.org/wiki/Bat_algorithm (accessed on 5 July 2022).
  50. PTB-XL, a Large Publicly Available Electrocardiography Dataset v1.0.1. Available online: https://physionet.org/content/ptb-xl/1.0.1/ (accessed on 6 July 2022).
  51. Singh, B.N.; Tiwari, A.K. Optimal selection of wavelet basis function applied to ECG signal denoising. Digit. Signal Process. 2006, 16, 275–287. [Google Scholar] [CrossRef] [Scilit]
  52. Discrete Wavelet Transform (DWT)—PyWavelets Documentation. Available online: https://pywavelets.readthedocs.io/en/latest/ref/dwt-discrete-wavelet-transform.html (accessed on 10 May 2022).
  53. Vantuch, T. Analysis of Time Series Data. Ostrava. Ph.D. Thesis. 2018. VŠB-Technical University of Ostrava, Fakulta Elektrotechniky a Informatiky. Thesis Supervisor Ivan Zelinka. Available online: http://dspace.vsb.cz/bitstream/handle/10084/133114/VAN431_FEI_P1807_1801V001_2018.pdf (accessed on 10 May 2022).
  54. Jia, H.; Yin, Q.; Lu, M. Blind-noise image denoising with block-matching domain transformation filtering and improved guided filtering. Sci. Rep. 2022, 16195. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.