Abstract
These days signal processing has the great importance in extracting important pathological attributes of the subject (patient). This paper covers important aspects of Electrocardiogram (ECG) signal analysis by proposing emerging tool. The degree of morphological beat-to-beat variability has been examined using a spectrogram technique on real-time ECG datasets. It provides time varying spectral density description of the ECG signal. Out of 49,181 total beats, the proposed technique presents duplicity (D) of 0.4% and detection rate (DR) of 99.48%. Some of the possible future directions, that the research work carried out in this paper can take, are also outlined in conclusion section.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
Heart comprises of four chambers—the right & left atrium and the right & left ventricle. The automatic pacemaker in the heart is known as the sinoatrial (SA) node which is located in the right atrium [1]. It presents its activity in the form of electrical signal known as Electrocardiogram (ECG) signal. ECG is a non-invasive process of heart diagnosing during which action potentials are generated and combined in the form of three waves known as P-QRS-T waves [2, 3]. ECG is mostly used for diagnosing arrhythmias, coronary heart disease, heart attacks and cardiomyopathy [4, 5].
Over the last two decades, cardiac arrhythmia seeks huge attention in health care due to availability of ECG diagnostic tool which has great reproducibility [6]. During cardiac arrhythmias, heart’s blood supply is blocked or interrupted during coronary heart disease and is completely blocked suddenly [7, 8]. And heart walls get thickened or enlarged during cardiomyopathy.
Other important ECG features are estimation of optimal trajectory of P-QRS-T wave in case of normal and highly noisy environment, spectral components estimation, etc. [9, 10]. In past literature, various techniques have already been incorporated in ECG signal analysis such as maximum mean minimum (MaMeMi) filter [11], autoregressive time-frequency analysis (ARTFA) [12, 13], chaos analysis [14,15,16], fractional Fourier transform (FrFT) [17], wavelet-based techniques [18,19,20], signal entropy [21], K-means algorithm [22], support vector machine (SVM) [23], principal component analysis (PCA) [24, 25], savitzky golay digital filtering (SGDF) [26], autoregressive (AR) modelling [27] and Stockwell transform (S-transform) [28]. Unfortunately, these proposed techniques have not universally accepted due to its operating limitations. Moreover, these techniques were resulted into large FNs and FPs. These issues are motivated to propose an emerging tool in biomedical digital signal processing (BDSP). In this paper, a spectrogram-based feature extraction is proposed which is squared magnitude of the short-time Fourier transform (STFT) presenting a signal in joint time-frequency domain [29,30,31].
2 Related Work
Every new research work is initiated in the context of shortcomings of the previous methodologies. Therefore, this section contains the diverse literature survey on ECG signal analysis [32,33,34,35,36,37,38,39].
In [32], M. Mortezaee et al. proposed a singular spectrum analysis (SSA)-based denoising the ECG signals. They used the following steps—(i) embedding, (ii) singular value decomposition, (iii) grouping and (iv) diagonal averaging. But the execution of these steps is not easy even requires special attention. In [33], S. Chandra et al. used cosine modulated filter bank for data compression of ECG datasets. It requires the involvement of interpolated finite impulse response prototype filter, linear iteration technique, thresholding and run length encoding for its smooth conduction. In [34], S. S. Mehta and N. S. Lingayat proposed the detection of QRS complexes using support vector machine (SVM). They used two techniques for pre-processing of raw ECG datasets—(i) digital filtering and (ii) entropy criterion and presented detection rate (DR) of 99.79%. In [35], P. Marwaha and R. K. Sunkaria proposed sample entropy for investigation of ECG datasets. They used physiologic and pathologic time series with multiscale entropy for classifying different types of cardiac arrhythmias.
3 Materials and Methods
Electrical signals are recorded using electrodes from the surface of the body. Electrodes convert the ionic current energy into electrical current energy. In this paper, 23 real-time datasets are used obtained by BIOPAC machinery MP35 at 360 Hz sampling rate. Figure 1 shows proposed methodology.
3.1 Pre-processing Using DBPF
Digital band pass filtering (DBPF) is obtained by cascading of high pass and low pass filtering sections [40]. To get the smooth conduction of DBPF, proper selection of cut-off frequencies of high pass and low pass sections is so important.
3.2 Spectrogram
In spectrogram, sequences of spectra are shown [41,42,43] in which one axis is dedicated to time, and second axis is dedicated to frequency. And brightness or colour shows strength of a frequency component at each time frame [42]. It is given as [44,45,46]
where s, t and f are the window function, time variable and frequency variable, respectively.
3.3 K-Nearest Neighbour (KNN) Classifier
KNN is used in classification problem due to three main reasons such as easy to interpret output, accuracy and predictive power. These are the main motivations to apply KNN in this paper. For achieving it, the distance between test data and each row of training data is estimated [47,48,49].
3.4 Figures-of-Merit (FoM)
In this paper, two figures-of-merit (FoM) are considered which are duplicity (D) and detection rate (DR) [49, 50].
4 Results and Discussion
Baseline wander (BLW) and power line noises (PLNs) are very annoying problem in ECG signal which makes its interpretation/classification problem very tedious [51]. After digital band pass filtering, these are effectively removed, and feature extraction step starts. It is achieved by selecting different window functions which is selected according to the condition of ECG datasets/minimum spectral leakage effect [12]. Figure 2 shows spectrogram plot in which wave components of ECG dataset is not making any loop which indicates the presence of cardiac and non-cardiac components. For verification of frequency components, contour plot is shown in Fig. 3. In Fig. 3, it is clearly revealed that noise components are shown by red colour. Here it is not clearly mentioned the noise components according the P-Q-R-S-T wave components (cardiac components shown by sky blue, blue, green, orange, light green colour) of the ECG signal.
Figure 4 shows spectrogram plot in which ECG dataset of the patient is making loop which indicates the removal of non-cardiac components (BLW, PLNs, etc.). Figure 5 shows cardiac components shown by sky blue, blue, green, orange and light green colour with corresponding noise components (shown by small red circles).
It has been observed that the proposed work achieves DR of 99.48%, whereas Mehta and Lingayat [34] achieved DR of 99.79%. In this paper, KNN classifier is used which can handle new data seamlessly; whereas in Mehta and Lingayat [34], SVM classifier was used which is not suitable for large datasets.
5 Conclusion
This paper sketches the landscape of the raw and filtered ECG datasets and verifies using contour plot. Spectrogram effectively showcases the time-frequency-intensity spectrum using contour and trajectory plot with hamming window. It may cover various important applications and features related to computational medicine of ECG signal. The proposed technique has been tested on 23 real-time datasets and obtained D of 0.4% and DR of 99.48%.
As STFT relies on window length for better time and frequency resolution. In future, this technique may be replaced by—(i) Fractional S-transform and (ii) short-time fractional Fourier transform (STFrFT).
References
Heart structure. https://www.online-sciences.com/tag/heart-structure/. Last accessed 09 Sept 2020
Singh, R.S., Saini, B.S., Sunkaria, R.K.: Times varying spectral coherence investigation of cardiovascular signals based on energy concentration in healthy young and elderly subjects by the adaptive continuous Morlet wavelet transform. IRBM 39(1), 54–68 (2018)
Singh, D., Saini, B.S., Kumar, V.: Heart rate variability—a bibliographical survey. IETE J. Res. 54(3), 209–216 (2008)
Zidelmal, Z.: QRS detection based on wavelet coefficients. Comp. Met. Prog. Biomed. 107(3), 490–496 (2012)
Luz, E.J.S., Schwartz, W.R., Chávez, G.C., Menotti, D.: ECG-based heartbeat classification for arrhythmia detection: a survey. J. Com. Met. Prog. Biom. 127, 144–164 (2016)
Singh, R.S., Saini, B.S., Sunkaria, R.K.: Arrhythmia detection based on time–frequency features of heart rate variability and back-propagation neural network. Iran J. Comput. Sci. (2019). https://doi.org/10.1007/s42044-019-00042-1
Chakraborty, M., Ghosh, D.: Quantitative assessment of arrhythmia using non-linear approach: a non-invasive prognostic tool. J. Inst. Eng. India Ser. B. (2017). https://doi.org/10.1007/s40031-017-0307-3
Jung, W.H., Lee, S.G.: An arrhythmia classification method in utilizing the weighted KNN and the fitness rule. IRBM (2017). https://doi.org/10.1016/j.irbm.2017.04.002
Rai, H.M., Trivedi, A., Chatterjee, K., Shukla, S.: R-peak detection using Daubechies wavelet and ECG signal classification using radial basis function neural network. J. Inst. Eng. India Ser. B. 95(1), 63–71 (2014)
Halder, B., Mitra, S., Mitra, M.: Classification of complete myocardial infarction using rule-based rough set method and rough set explorer system. IETE J. Res. (2019). https://doi.org/10.1080/03772063.2019.1588175
Sheetal, A., Singh, H., Kaur, A.: QRS detection of ECG signal using hybrid derivative and MaMeMi filter by effectively eliminating the baseline wander. Analog Integr. Circ. Sig. Process. 98(1), 1–9 (2019)
Gupta, V., Mittal, M.: Respiratory signal analysis using PCA, FFT and ARTFA. In: Proceeding of the 2016 International Conference on Electrical Power and Energy Systems (ICEPES), December 14–16, pp. 221–225. India (2016)
Gupta, V., Kanungo, A., Kumar, P., Sharma, A.K., Gupta, A.: Auto-regressive time frequency analysis (ARTFA) of electrocardiogram (ECG) signal. Int. J. Appl. Eng. Res. 13(6), 133–138 (2018)
Gupta, V., Mittal, M., Mittal, V.: R-peak detection based chaos analysis of ECG signal. Analog Integr. Circ. Sig. Process. (2019). https://doi.org/10.1007/s10470-019-01556-1
Nguomkam, A., Kengne, J.: A minimal three-term chaotic flow with coexisting routes to chaos, multiple solutions, and its analog circuit realization. Analog Integr. Circ. Sig. Process. (2019). https://doi.org/10.1007/s10470-019-01436-8
Gupta, V., Mittal, M.: Electrocardiogram signals interpretation using Chaos theory. J. Adv. Res. Dyn. Con. Sys. 9, 2392–2397 (2018)
Gupta, V., Mittal, M.: A comparison of ECG signal pre-processing using FrFT, FrWT and IPCA for improved analysis. IRBM 40(3), 145–156 (2019)
Kora, P., Krishna, K.S.R.: ECG based heart arrhythmia detection using wavelet coherence and bat algorithm. Sens. Imag. 17, 1–16 (2016)
Xingyuan, W., Juan, M.: Wavelet-based hybrid ECG compression technique. Analog Integr. Circ. Sig. Process. 59(3), 301–308 (2009)
Rajankar, S.O., Talbar, S.N.: An electrocardiogram signal compression techniques: a comprehensive review. Analog Integr. Circ. Sig. Process. 98(1), 59–74 (2019)
Mehta, S.S., Lingayat, N.S.: SVM based QRS detection in electrocardiogram using signal entropy. IETE J. Res. 54(3), 231–240 (2008)
Mehta, S.S., Shete, D.A., Lingayat, N.S., Chouhan, V.S.: K-means algorithm for the detection and delineation of QRS-complexes in electrocardiogram. IRBM 31, 48–54 (2010)
Mehta, S.S., Lingayat, N.S.: SVM-based algorithm for recognition of QRS complexes in electrocardiogram. IRBM 29, 310–317 (2008)
Gupta, V., Mittal, M.: Arrhythmia detection in ECG signal using fractional wavelet transform with principal component analysis. J. Inst. Eng. (India): Ser. B (2020). https://doi.org/10.1007/s40031-020-00488-z
Gupta, V., Mittal, M.: QRS complex detection using STFT, Chaos analysis, and PCA in standard and real-time ECG databases. J. Inst. Eng. India Ser. B 100(5), 489–497 (2019)
Gupta, V., Mittal, M.: A novel method of cardiac arrhythmia detection in electrocardiogram signal. Int. J. Med. Eng. Inf. 12(5), 489–499 (2019)
Gupta, V., Mittal, M., Mittal, V.: An efficient AR modeling based electrocardiogram signal analysis for health informatics. Int. J. Med. Eng. Inf. (IJMEI). In press (2022)
Das, M., Ari, S.: Analysis of ECG signal denoising method based on S-transform. IRBM 34(6), 362–370 (2013)
Emresoy, M.K., Jaroudi, A.E.: Sig. Process. 64, 157–165 (1998)
Sallo, Z.G.: Efficient ECG signal parameters extraction using multiresolution analysis. In: Proceedings of the International Conference on Advancements of Medicine and Health Care Through Technology, Romania (2009)
Gupta, V., et al.: ECG signal analysis using CWT, spectrogram and autoregressive technique. Iran J. Comput. Sci. In press (2021)
Mortezaee, M., Mortezaie, Z., Abolghasemi, V.: An improved SSA-based technique for EMG removal from ECG. IRBM 40, 62–68 (2019)
Chandra, S., Sharma, A., Singh, G.K.: Computationally efficient cosine modulated filter bank design for ECG signal compression. IRBM (2019). https://doi.org/10.1016/j.irbm.2019.06.002
Mehta, S.S., Lingayat, N.S.: Development of SVM based ECG pattern recognition technique. IETE J. Res. 54(1), 5–11 (2008)
Marwaha, P., Sunkaria, R.K.: Cardiac variability time-series analysis by sample entropy and multiscale entropy. Int. J. Med. Eng. Inf. 7(1), 1–14 (2015)
Amar, D., Abboud, S.: P-wave morphology in focal atrial tachycardia using a 3D numerical model of the heart. Int. J. Med. Eng. Inf. 8(3), 263–274 (2016)
Salman, M.N., Rao, P.T., Rahman, M.Z.U.: Cardiac signal enhancement using normalised variable step algorithm for remote healthcare monitoring systems. Int. J. Med. Eng. Inf. 9(2), 145–161 (2017)
Murthy, H.S.N., Meenakshi, M.: Novel and efficient algorithms for early detection of myocardial ischemia. Int. J. Med. Eng. Inf. 9(4), 351–372 (2017)
Rawal, K., Saini, B.S., Saini, I.: Effect of age and postural related changes on cardiac autonomic function in the pre-menopausal and post-menopausal women. Int. J. Med. Eng. Inf. 9(4), 299–315 (2017)
Gupta, V., et al.: Performance evaluation of various pre-processing techniques for R-peak detection in ECG signal. IETE J. Res. (2020). https://doi.org/10.1080/03772063.2020.1756473
Gramatikov, B., Georgiev, I.: Wavelets as alternative to short-time Fourier transform in signal-averaged electrocardiography. Med. Biolo. Eng. Comput. 33(3), 482–487 (1995)
Wyse, L.: Audio spectrogram representations for processing with convolutional neural networks. In: Proceeding of the First International Workshop on Deep Learning and Music Joint with IJCNN, vol. 1(1), pp. 37–41. Anchorage, US (2017)
Rohini, R., et al.: A new paradigm for plotting spectrogram. J. Inf. Syst. Commun. 3, 158–161 (2012)
Ranjan, R., Jindal, N., Singh, A.K.: Fractional S-transform and its properties: a comprehensive survey. Wirel. Pers. Commun. 113, 2519–2541 (2020)
Speaker Control-Time Frequency Analysis (TFA). https://www.klippel.de/products/rd-system/modules/tfa-time-frequency-analysis.html. Last accessed 09 Sept 2020
Sejdic, E., Djurovic, I., Jiang, J., Stankovic, L.J.: Time–frequency based feature extraction and classification: considering energy concentration as a feature using Stockwell transform and related approaches, vol.1, 1st ed. VDM Verlag Publishing, Germany (2009)
Gupta, V., Mittal, M.: ECG signal analysis: past, present and future. In: Proceeding of the 8th IEEE Power India International Conference (PIICON), December 10–12, 1–6. NIT Kurukshetra, Haryana, India (2018)
Gupta, V., Mittal, M.: KNN and PCA classifier with autoregressive modelling during different ECG signal interpretation. Procedia Comput. Sci. 125, 18–24 (2018)
Gupta, V., Mittal, M.: Efficient R-peak detection in electrocardiogram signal based on features extracted using Hilbert transform and Burg method. J. Inst. Eng. India Ser. B. (2020). https://doi.org/10.1007/s40031-020-00423-2
Kaur, I., Rajni, R., Marwaha, A.: ECG signal analysis and arrhythmia detection using wavelet transform. J. Inst. Eng. India Ser. B. 97(4), 499–507 (2016)
Rahman, A., et al.: A statistical designing approach to MATLAB based functions for the ECG signal pre-processing. Iran J. Comput. Sci. (2019). https://doi.org/10.1007/s42044-019-00035-0
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Gupta, V., Mittal, M., Mittal, V., Saxena, N.K. (2022). Spectrogram as an Emerging Tool in ECG Signal Processing. In: Natarajan, S.K., Prakash, R., Sankaranarayanasamy, K. (eds) Recent Advances in Manufacturing, Automation, Design and Energy Technologies. Lecture Notes in Mechanical Engineering. Springer, Singapore. https://doi.org/10.1007/978-981-16-4222-7_47
Download citation
DOI: https://doi.org/10.1007/978-981-16-4222-7_47
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-16-4221-0
Online ISBN: 978-981-16-4222-7
eBook Packages: EngineeringEngineering (R0)