Medical Signal Processing via Digital Filter and Transmission Reception Using Cognitive Radio Technology

Medical Signal Processing via Digital Filter and Transmission Reception Using Cognitive Radio Technology

M. PremkumarS. Sathiyapriya M. Arun Vikash Sachan 

Department of ECE, Panimalar Engineering College, Chennai 600123, Tamil Nadu, India

Department of Electronics Engineering, Dr. Ambedkar Institute of Technology for Handicapped, Kanpur 208024, Uttar Pradesh, India

Corresponding Author Email: 
ermpremkumar@yahoo.co.in
Page: 
1357-1362
|
DOI: 
https://doi.org/10.18280/ts.390429
Received: 
15 June 2022
|
Revised: 
23 July 2022
|
Accepted: 
3 August 2022
|
Available online: 
31 August 2022
| Citation

© 2022 IIETA. This article is published by IIETA and is licensed under the CC BY 4.0 license (http://creativecommons.org/licenses/by/4.0/).

OPEN ACCESS

Abstract: 

This research paper provides a viable solution for processing noise affected Electrocardiogram (ECG) signal via digital filter and transmission of ECG signal and reception via cognitive radio (CR) technology. Health assessment signals such as ECG signal, Electroencephalogram (EEG) signal, Electromyogram (EMG) signal are vital for diagnosis and rehabilitation of human welfare among which ECG attains prime importance due to its information on heart functioning. However, electrocardiogram signals are prone to addition of noise such as power line noise 50 Hz mainly due to improper shielding which can lead to wrong interpretation, incorrect diagnosis and at times will eventually lead to loss of human life. On combining signal processing into medical applications misconceptions can be eliminated and diagnosis can be done effectively through a designed digital filter. Effect of noise can be cancelled in an ECG signal and by using cognitive radio technology ECG information can be transmitted to a medical physician mobile terminal for remedial measures relating to medical treatment. Simulation results are shown in matrix laboratory (MATLAB) for cancelling noise in an ECG signal having noise using a digital filter which is designed represented by its transfer function. Also, ECG signal is transmitted and received in a CR system where the metric of probability of error is obtained which can be useful for signal processing fraternity.

Keywords: 

cognitive radio, digital filter, electro cardiogram, noise cancellation

1. Introduction

Cognitive radio technology has nowadays found to be of importance in medicinal field for human health in present day world [1, 2]. Signals such as 1-Dimensional signal namely a speech signal, 2-Dimensional signal like that of an image signal and 3-Dimensional signal as that of a video signal can be transmitted and received effectively through proper spectrum utilization using cognitive radio [3]. Cognitive radio has sensing capability to locate the vacant spectrum hole or spectrum band where an unlicensed user can acquire the licensed spectrum for information data transmission and reception. Such cognitive radio can be surfaced to have profound applications in emergency situations, disaster management where among that medicinal healthcare is deemed to be vital. In healthcare transmission of medical signals and reception is very essential which is to be done in an uninterrupted manner and send reports to the medical physician so that timely diagnosis can be done. Various medical signals such as ECG, EEG and EMG are vital for diagnosis in healthcare. However, electrocardiogram gets corrupted by noise where noise cancellation [4, 5] is required. Further, artifacts [6] affect ECG signals which are signals with larger amplitude which occur due to placement of electrodes, frequent changing of electrodes, electrical disturbances, physical other body part contacts of patients. Also, noise such as power line noise, interference and other electrical disturbances are also other disturbing signals which can lead to wrong diagnosis for a physician.

By suitable design of digital filter for power line noise such as 50 Hz or 60 Hz depending on the frequency, artifacts can be removed. A suitable digital filter can be designed and the corrupted ECG signal can be passed through the digital filter [6-9] to recover the desired ECG signal. Several research papers have been presented and surveyed. But in this paper it is proposed to cancel the noise in the ECG signal through a noise cancellation filter [10-12]. Normally noise gets acquired during recording of ECG signal probably 50 Hz power line noise. The noise cancelled [13-17] signal is then transmitted as data to the medical physician mobile terminal through cognitive radio technology which is an intelligent form of communication. The noise considered in this research paper can also be considered as narrowband interference (NBI) [18]. Narrowband interference is an interference where it can be considered to be a signal which has very less bandwidth. It is an analog signal which has continuous time and continuous amplitude resembling to be a sharp spike. Such NBI is deemed to be unwanted and it needs to removed when acquired during signal transmission. NBI can be removed with a narrowband notch filter and not a wideband filter as in the study [19]. The outline of this paper is that section I gives introduction, section II presents ECG signal processing and noise cancellation, section III presents cognitive radio ECG signal results and discussions and section IV gives conclusions to the paper.

2. Electrocardiogram Signal Processing and Noise Cancellation

Electrocardiogram signal [4, 5] recorded by having electrodes positioned at places exterior to the human body can exhibit normal readings or abnormal readings based on the surroundings. Normal readings provide accurate analysis for a medical physician to have proper diagnosis. Abnormal readings can also provide better analysis for medical diagnosis but at the same time wrong diagnosis can be done due to improper readings obtained. The values obtained in ECG can be improper but can also be due to certain issues in the ECG readings which may due to artifacts, interferences and noise. ECG readings have to be free from such aforementioned issues. The ECG signal in mathematical form [20] is given as

$y(n)=e_{c g}(n)$      (1)

Figure 1 shows ECG signal generated for 1500 samples for 2 beats/sec considered with a sampling frequency of 1 kHz. An ECG signal is represented by PQRS wave for a particular duration of time in observation. P waves represent atrial depolarization where it always precedes a QRS complex. The PR interval is the start of P wave to start of R wave where it represents the time taken for electrical activity between the atria and ventricles.

Figure 1. Electrocardiogram signal

The QRS complex represents depolarization of ventricles. ST segment represents the start of S wave and finishes at the start of T wave and it is an electrical line representing time between depolarization and repolarization of ventricles obviously contraction. The T wave is ventricular repolarization and it is the small wave after QRS complex. Though in Figure 1 an ECG signal is shown the initial spike is the P wave followed by a small spike and longer spike representing QRS complex and afterwards a T wave forming the ST signal [4-8]. If such an ECG signal is corrupted by 50 Hz noise, it can be represented by Figure 2. The 50 Hz noise can also be considered as narrowband interference [19, 20] is generated by a cosinusoidal signal represented by

$p_{50}(n)=\cos (\pi 0.05 n)$      (2)

where, 0.05 rad/sec represents the digital frequency for an analog frequency of 50 Hz and a sampling frequency of 1 kHz. This 50 Hz noise is found to corrupt the ECG signal at the digital frequency of 0.05 rad/sec.  The noisy ECG signal or the representation for ECG signal corrupted by noise [20] is given by

$y(n)=e_{c g}(n)+p_{50}(n)$           (3)

$y(n)=e_{c g}(n)+\cos (\pi 0.05 n)$            (4)

Figure 2. Noise signal for 50 Hz

Figure 3. ECG signal with noise for frequency of 50 Hz

When a 50 Hz noise signal corrupts an ECG signal due to near by power line it can be represented through Figure 3. The 50 Hz power line noise corrupts the beats of the ECG signal [20] and makes it difficult for a medical physician to do diagnosis. This can be overcome by using a digital filter designed to remove that particular frequency of 50 Hz. The design of the digital filter [20] starts from the input output difference equation of a digital system which is given as

$y(n)=x(n)-1.79 x(n-1)+x(n-2)$$+1.79 y(n-1)-0.9 y(n-2)$            (5)

On rearranging the terms with x(n) as the input and y(n) as the output it is expressed as

$y(n)-1.79 y(n-1)+0.9 y(n-2)$$=x(n)-1.79 x(n-1)$$+x(n-2)$      (6)

The value of R2 is found to be 0.9 and R= 0.9486 as per the input and output filter coefficients as per literature of Orfanidis [20]. Now in order to find the transfer function of the digital IIR filter it is necessary to take the z-transform of the above equation on both the sides and it follows as.

$Z T[y(n)-1.79 y(n-1)+0.9 y(n-2)]$$=Z T[x(n)-1.79 x(n-1)$$+x(n-2)]$         (7)

$y(z)-1.79 y(z) z^{-1}+0.9 y(z) z^{-2}$$=x(z)-1.79 x(z) z^{-1}+x(z) z^{-2}$            (8)

Proceeding further it is

$y(z)\left[1-1.79 z^{-1}+0.9 z^{-2}\right]$$=x(z)\left[1-1.79 z^{-1}+z^{-2}\right]$      (9)

Finally, the transfer function which is the ratio of the output to the input is given as

$H(z)=\frac{y(z)}{x(z)}=\frac{1-1.79 z^{-1}+z^{-2}}{1-1.79 z^{-1}+0.9 z^{-2}}$       (10)

The digital notch filter can be represented by the transfer function

$H(z)=\frac{1-1.79 z^{-1}+z^{-2}}{1-1.79 z^{-1}+0.9 z^{-2}}$      (11)

Figure 4. Noise cancelled ECG signal

The digital filter represented in (11) is a digital infinite impulse response (IIR) filter known as single frequency elimination filter or notch filter [20]. The digital filter has poles and zeros in the transfer function. If a noise added ECG signal is passed into a 50 Hz noise cancellation filter, the effect of noise is minimized so that ECG signal can be used for diagnosis as shown in Figure 4. Moreover, the digital filter can also be realized in terms of the basic building blocks of digital signal processing namely scaling element, summation element and delay element which can provide a possibility for hardware realization of the digital filter. Such hardware realization of digital filter can be obtained by direct form realization, canonical form realization, parallel form realization and lattice form realization [20] as shown in Figure 5.

Figure 5 shows the digital notch filter realization in direct form in accordance with the transfer function as per Eq. (11) in digital domain with z-transform. The filter has filter input as x(n) and output as y(n) with delay elements represented by z-1, scaling elements for representing its scaling values and a summing element which can provide further insights for research domain perspective.

Figure 5. Digital notch filter realization direct form

3. Cognitive ECG Signal Results and Discussions

When cognitive user ECG signal is recovered through digital filter it needs to be sent to medical physician for proper diagnosis. The cognitive ECG signal is modulated and sent through cognitive radio technology which senses the available frequency through spectrum sensing technique and transmits the information by digital modulation scheme. Cognitive radio technology is an intelligent form of communication which transmits and receives data in next generation networks, can also be used in massive MIMO systems [21], machine learning methods [22, 23] and can also be fruitful for medical signal transmission and reception to cater medical signal processing and health care data [24].

The system model considers a cognitive radio system comprising of a primary user I acting as transmitter and a primary user II acting as receiver forming the licensed band is considered where spectrum sensing is done. The unlicensed band has the cognitive secondary user I and cognitive secondary user II. When a N x 1 data symbol vector ecg is transmitted from the secondary user I to the primary user II the N x 1 received signal vector $\boldsymbol{y}_{c g}$  is

$\boldsymbol{y}_{c g}=h_{c g} \boldsymbol{e}_{c g}+\boldsymbol{n}_{c g}$        (12)

where, $\mathrm{h}_{\mathrm{cg}}$ is a scalar channel coefficient in the cognitive radio system undergoing Rayleigh flat fading. Rayleigh flat fading channel has magnitude component which is statistically $h_{c g}=\sqrt{x_1^2+x_2^2}$; where $x_1$ and $x_2$ are a Gaussian random variables and its phase component values take the mathematical representation $\tan ^{-1}\left(\frac{x_2}{x_1}\right) \cdot \mathbf{n}_{\mathrm{cg}}$ is $N \times 1$ a complex Gaussian noise vector with $N\left(\mu_x, \sigma^2\right)$ having mean $\mu_x$ and unit variance $\sigma^2$. The probability density function (PDF) of the Rayleigh flat fading channel is given by the Rayleigh distribution [25].

$f\left(h_{c g}\right)=\left\{\begin{array}{c}\frac{h_{c g}}{\sigma^2} \exp \left(\frac{h_{c g}^2}{2 \sigma^2}\right) ; 0 \leq h_{c g} \leq \infty \\ 0 \quad ; h_{c g}<0\end{array}\right\}$     (13)

On the other hand cognitive radio performance in Rician flat fading channel can be given by the following mathematical representation

$\boldsymbol{y}_{c g r i c}=h_{r i c} \boldsymbol{e}_{c \boldsymbol{g}}+\boldsymbol{n}_{c g}$      (14)

where, $h_{\text {ric }}$ is Rician flat fading channel and it is also a lineof-sight (LOS) fading channel which is considered to be a complex variable where its magnitude is represented by $K_{d B}$. The Rician flat fading channel has Rician probability density function [25, 26] which is given as

$f\left(h_{\text {ric }}\right)$$=\left\{\begin{array}{c}\frac{h_{r i c}}{\sigma^2} e^{\frac{-\left(h_{r i c}^2+A^2\right)}{2 \sigma^2}} I_0\left(\frac{A h_{r i c}}{\sigma^2}\right) ;\left(A \geq 0 ; h_{r i c} \geq 0\right) \\ 0 \, \, \, \, \, \, \, \, \, \, \, \, \,\,\,\,\,\,\,\,\,\,\, \, ;(h_{r i c<0})\end{array}\right\}$              (15)

where, A is amplitude which determines the line-of-sight component for the Rician flat fading channel. If the value of KdB=0dB is equal to zero then it is considered to be Rayleigh flat fading channel. Table 1 shows the simulation testbed metrics.

Table 1. Simulation testbed metrics

Data Metrics

Simulation Parameters

Data signal

ECG Signal of 2 beats with 1500 samples

Filter

Notch Filter

Analog Frequency

50 Hz

Sampling Frequency

1kHz

Digital Frequency/Discrete Frequency

0.05 rad/sec

Modulation Scheme

Binary Phase Shift Keying (BPSK)

Fading channel

Rayleigh Fading Channel

Rician Fading Channel

Monte Carlo Runs

1000

Assessment Metric

Probability of Error

Figure 6. Probability of error performance of ECG signal under cognitive radio environment

Figure 6 shows cognitive ECG signal transmitted as data in the form of binary phase shift keying (BPSK) signal transmitted as +1 and -1 for phase shift of 0 degrees and 180 degrees. Each of the beats in Cognitive ECG signals are transmitted in this process and probability of error values are analyzed. Fading channel considered here is Rayleigh channel which implies K=0dB and when the fading channel experiences line-of-sight (LOS) channel such as Rician fading channel LOS components of K=1dB,2dB,3dB and 4dB is simulated and it shows that the error rate reduces significantly from which the results are shown as in Table 2. When K=1 dB presence of line-of-sight component reduces probability of error in comparison to K=0dB. When the signal to noise ratio (SNR) of 6dB is reached, the probability of error reaches 5.6 x 10-4 for K=0dB and ultimately when K=4dB the probability of error reaches 0.5 x 10-4. This infers that probability of error reduces significantly for the transmitted ECG signal making analysis significant. From the obtained signals the physician can give suggestions for human welfare making a distinct possibility for diagnosis and medical treatment when 5G and 6G systems are deployed with massive MIMO technology [21] for higher data rate requirement.

Table 2. Signal to noise ratio against probability of error

Signal to Noise Ratio

LOS Component

Probability of Error

 

6dB

K=0dB

5.6 x 10-4

K=1dB

2.3 x 10-4

K=2dB

1.8 x 10-4

K=3dB

1.4 x 10-4

K=4dB

0.5 x 10-4

Figure 7. Rayleigh fading channel impulse response under cognitive radio environment

Figure 7 shows the channel impulse response obtained over entire 1500 samples taken into consideration during simulation for Rayleigh fading channel. Here the Rayleigh fading channel [25] has a flat response over the entire frequency of duration and they are also narrow band channels and it is also used to give the statistical nature of the channel. As the wireless channel is random it is usually measured by its statistical parameters such as mean and variance. Variance always specifies the amount of power level in a random signal, whereas mean is used to represent the first moment. The probability of error performance over Rayleigh fading channel is given as

$P_{\text {Ray }}=\frac{1}{2}\left(1-\sqrt{\frac{S N R}{(1+S N R)}}\right)$       (16)

Similarly Figure 8, shows the Rician fading channel impulse response observed in cognitive radio environment where the magnitude components are increased in comparison to Figure 7, due to the presence of a dominant line-of-sight component as it is given for K=1dB. However, when the dominant signal factor reduces it almost reaches to a Rayleigh fading channel and the probability of error reaches to the expression as that for Rayleigh fading cognitive radio environment.

Figure 8. Rician fading channel impulse response under cognitive radio environment

4. Conclusions

This paper gives the conclusion that cognitive radio technology can be used for transmission and reception of ECG signals for proper diagnosis and recovery of human mankind. ECG signal corrupted by 50 Hz noise can be cancelled for noise by a properly selected digital filter which will give the correct readings of the ECG signal. Further, ECG signal can be transmitted to the medical physician mobile terminal through cognitive radio technology as ECG signal has only beats which can give an equivalent representation in the form of data. This sort of medical signal processing using cognitive radio will be beneficial for the human welfare and can lead to development of more applications relating to medical signal processing.

  References

[1] Syed, A.R, Yau, K.L.A. (2013). On cognitive radio-based wireless body area networks for medical applications. 2013 IEEE Symposium on Computational Intelligence in Healthcare and e-health (CICARE), Singapore, pp. 51-57. https://doi.org/10.1109/CICARE.2013.6583068

[2] Chavez-Santiago, R., Nolan, K.E., Holland, O., de Nardis, L., Ferro, J.M., Barroca, N., Bores, L.M., Velez, F.J., Goncalves, V., Balasingham, I. (2012). Cognitive radio for medical body area networks. IEEE Transactions on Wireless Communications, 19(4): 74-81. https://doi.org/10.1109/MWC.2012.6272426

[3] Chavez-Santiago, R., Balasingham, I. (2011). Cognitive radio for medical wireless body area networks. 2011 IEEE 16th International Workshop on Computer Aided Modeling and Design of Communication Links and Networks (CAMAD), pp. 148-152. https://doi.org/10.1109/CAMAD.2011.5941105

[4] Kockanat, S., Koza, T., Karaboqa, N., Erkoc., M.E. (2016). Noise cancellation application of ECG signal using artificial bee colony algorithm. 2016 24th Signal Processing and Communication Application Conference (SIU), Turkey, pp. 1017-1020. https://doi.org/10.1109/SIU.2016.7495915

[5] Bhoi, A.K., Sherpa, K.S., Phurailatpam, D., Tamang, J.S., Giri, P.K. (2015). Multidimensional approaches for noise cancellation of ECG signal. 2015 International Conference on Communications and Signal Processing (ICCSP), India, pp. 66-70. https://doi.org/10.1109/ICCSP.2015.7322569

[6] Khalaf, A.A.M., Ibrahim., M.M., Hamed, H.F.A. (2015). Performance study of adaptive filtering and noise cancellation of artifacts in ECG signals. 17th International Conference on Advanced Information Technology (ICACT), PyeongChang, Korea (South), pp. 394-401. https://doi.org/10.1109/ICACT.2015.7224826

[7] Makwana, G., Gupta, L. (2015). De-noising of Electrocardiogam (ECG) with adaptive filter using MATLAB. 2015 Fifth International Conference on Communication Systems and Network Technologies, Gwalior, India, pp. 511-514. https://doi.org/10.1109/CSNT.2015.126

[8] Jamwal, S. (2012). Power line interference cancellation in ECG signals using Alpha-Beta filter. IEEE International Conference on Signal Processing, Computing and Control (ISPCC), Solan, India, pp. 1-6. https://doi.org/10.1109/ISPCC.2012.6224372

[9] Chang, CH., Ko, H.J., Chang,KM, (2010). Cancellation of high-frequency noise in ECG signal using adaptive filter without external reference. 2010 3rd International Conference on Biomedical Engineering and Informatics, Yantai, China, pp. 787-790. https://doi.org/10.1109/BMEI.2010.5639953

[10] Rahman, M.Z.U., Shaik, R.A., Reddy, D.V.R.K. (2009). Noise cancellation in ECG signals using normalized Sign-Sign LMS algorithm. 2009 IEEE International Symposium on Signal Processing and Information Technology (ISSPIT), Ajman, United Arab Emirates, pp. 282-292. https://doi.org/10.1109/ISSPIT.2009.5407510

[11] Rahman, M.Z.U., Shaik, R.A., Reddy, D.V.R.K. (2009). Denoising ECG signals using Transform Domain Adaptive Filtering Technique. 2009 Annual IEEE India Conference, Ahmedabad, India, pp. 1-4. https://doi.org/10.1109/INDCON.2009.5409383

[12] Zhao, Z., Ma, C. (2008). A novel cancellation method of powerline interference in ECG signal based on EMD and adaptive filter. 2008 11th IEEE International Conference on Communication Technology, Hangzhou, China, pp. 517-520. https://doi.org/10.1109/ICCT.2008.4716100

[13] Wu, Y., Rangayyan, R.M., Ng, S.C. (2007). Cancellation of artifacts in ECG signals using a normalized adaptive neural filter. 2007 29th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Lyon, France, pp. 2552-2555. https://doi.org/10.1109/IEMBS.2007.4352849

[14] Behbahani, S. (2007). Investigation of adaptive filtering for noise cancellation in ECG signals. Second International Multi-Symposiums on Computer and Computational Sciences (IMSCCS), Iowa City, IA, USA, pp. 144-149. https://doi.org/10.1109/IMSCCS.2007.77

[15] Gholam-Hosseini, H., Nazeran, H., Reynolds, K.J. (1998). ECG noise cancellation using digital filters. Proceedings of the 2nd International Conference on Bioelectromagnetism (Cat. No.98TH8269), Astralia, pp. 151-152. https://doi.org/10.1109/ICBEM.1998.666440

[16] Thakor, N.V., Zhu, Y.S. (1991). Applications of adaptive filtering to ECG analysis: Noise cancellation and arrhythmia detection. IEEE Transactions on Biomedical Engineering, 38(8): 785-794. https://doi.org/10.1109/10.83591

[17] Jane, R., Laguna, P.P., Caminal, P., Rix, H. (1990). Adaptive filtering of high-resolution ECG signals. Proceedings Computers in Cardiology, pp. 347-350. https://doi.org/10.1109/CIC.1990.144231

[18] Rajkumar, S., Thiruvengadam, S.J. (2017). Performance analysis of optimum combining technique in OFDM based full duple multiantenna DF relay network with narrowband interference. Wireless Personal Communications, 92(2): 547-563. https://doi.org/10.1007/s11277-016-3556-6

[19] Altay, Y.A., Kremley, A.S., Zimenko, K.A. (2020). A new ECG signal processing method based on wide-band notch filter. 2020 IEEE Conference of Russian Young Researcher in Electrical and Electronic Engineering (EIConus), St. Petersburg and Moscow, Russia, pp. 1464-1469. https://doi.org/10.1109/EIConRus49466.2020.9039403

[20] Orfanidis, S.J. (2010). Introduction to Signal Processing. Prentice Hall.

[21] Sachan, V., Mishra, R.K. (2019). Uplink sum rate and capacity of hybrid precoding mmWave massive MIMO system. Traitement du Signal, 36(2): 155-160. https://doi.org/10.18280/ts.360205

[22] Papadogiorgaki, M., Venianaki, M., Charonyktakis, P., Antonakakis, M., Tsamardinos, I., Zervakis, M.E., Sakkalis, V. (2021). Heart rate classification using ECG Signal processing and machine learning methods. 2021 IEEE 21st International Conference on Bioinformatics and Bioengineering (BIBE), pp. 1-6. https://doi.org/10.1109/BIBE52308.2021.9635462

[23] Qaisar, S.M., Alkorbi, F. (2021). Automated arrhythmia diagnosis based on ECG signal filtering wavelet transformation and machine learning. 2021 National Computing Colleges Conference (NCCC), Taif, Saudi Arabia, pp. 1-5. https://doi.org/10.1109/NCCC49330.2021.9428834

[24] Mohammed, D.A., Sadkhan, S.B. (2021). A developed sensing approach in cooperative cognitive radio networks. 2021 2nd Information Technology to Enhance e-learning and Other Application (IT-ELA), Baghdad, Iraq, pp. 6-11. https://doi.org/10.1109/IT-ELA52201.2021.9773579

[25] Rappaport, T. (2002). Wireless Communications: Principles and Practice. Prentice Hall.

[26] Simon, M.K., Alouini, M.S. (2000). Digital communication over fading channels: A unified approach to performance analysis. John Wiley and Sons. https://doi.org/10.1002/0471200697