Next Article in Journal
The Thiadiazole Ring (THD) Is a Building Block for Potential Inhibitors of the SARS-CoV-2 Main Protease (Mpro): Theoretical Look into the Structure, Reactivity, and Binding Profile of Three 1,3,4-THD Derivatives toward Mpro
Previous Article in Journal
Hand Gesture Recognition in Indian Sign Language Using Deep Learning
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Golomb–Rice Coder-Based Hybrid Electrocardiogram Compression System †

1
School of VLSI Design and Embedded System, National Institute of Technology Kurukshetra, Kurukshetra 136119, Haryana, India
2
Department of ECE, National Institute of Technology Kurukshetra, Kurukshetra 136119, Haryana, India
*
Author to whom correspondence should be addressed.
Presented at the 10th International Electronic Conference on Sensors and Applications (ECSA-10), 15–30 November 2023; Available online: https://ecsa-10.sciforum.net/.
Eng. Proc. 2023, 58(1), 10; https://doi.org/10.3390/ecsa-10-16209
Published: 15 November 2023

Abstract

:
Heart-related ailments have become a significant cause of death around the globe in recent years. Due to lifestyle changes, people of almost all age brackets face these issues. Preventing and treating heart-related issues require the electrocardiogram (ECG) monitoring of patients. The study of patients’ ECG signals helps doctors identify abnormal heart rhythm patterns by which screening problems like arrhythmia (irregular heart rhythm), myocardial infarction (heart attacks), and myocarditis (heart inflammation) is possible. The need for 24 h heart rate monitoring has led to the development of wearable devices, and the constant monitoring of ECG data leads to the generation of a large amount of data since wearable systems are resource-constrained regarding energy, memory, size, and computing capabilities. The optimization of biomedical monitoring systems is required to increase their efficiency. This paper presents an ECG compression system to reduce the amount of data generated, which reduces the energy consumption in the transceiver, which is a significant part of the overall energy consumed. The proposed system uses hybrid Golomb–Rice coding for data compression, a lossless data compression technique. The data compression is performed on the MIT BIH arrhythmia database; the achieved compression ratio of the compression system is 2.75 and 3.14 for average and maximum values, which, compared to the raw ECG samples, requires less transmission cost in terms of power consumed.

1. Introduction

Advancements in sensory systems, VLSI technology. and wireless sensor networks (WSN) have opened up new avenues of technological applications. Wearable technology has emerged as a promising market, a combination of various technologies catering to multiple applications. With the healthcare landscape increasingly embracing personalized medicine, the global wearable sensor market is projected to experience a robust compound annual growth rate (CAGR) of around 38% between 2017 and 2025. Notably, the development of smartwatches is anticipated to exhibit an exceedingly rapid rate of expansion during this period [1]. Any wearable technology has a standard building block, e.g., sensors, processors, and communication units. These technologies rely on a basic unit, i.e., “data”. Every wearable technology aims to collect, process, and communicate acquired data from the sensors [2]. Some primary design constraints every wearable technology aspires to overcome are size, memory management, power management, latency, and computational efficiency. Out of these metrics, power management is the most sought-after area in which optimizations are performed, and this is because wearable technologies have a limited size, resulting in fewer batteries [3]. The communication system consumes most of the energy from the various subsystems discussed. The prime reason is the limited computational capacity of these systems; hence, the acquired data need to be transmitted to a central system, resulting in energy consumption. The extent of transmission is directly proportional to the amount of data being sent, which, for a physiological monitoring system, is very large when constant information about body vitals is needed.

2. Literature Survey

Data compression techniques aim to reduce the extent of generated data to minimize time and power consumption due to transmission and memory. Various data compression schemes have been devised. Major bifurcation among these techniques is based on data retrieval after compression, which constitutes lossless data compression and lossy data compression methods. All compressed data can be retrieved with lossless methods, but these methods result in smaller compression ratios (CRs), which is defined as the ratio of original ECG data to compressed data. On the other hand, complete data retrieval is not possible with lossy methods, but when compared with lossless methods, these can produce a greater CR. This category’s most commonly used schemes are transforming coding, vector quantization, and fractal compression. The selection of data compression methods is application-dependent. Lossy methods are generally used in applications where a specific amount of loss in data does not affect the performance of the systems, e.g., audio compression, video compression, gaming, and multimedia streaming. In comparison, lossless methods are used in data-critical applications like databases, scientific data compression, biomedical data, and communication systems. Hybrid methods use predictive and run-length encoding to balance the CR and quality [4]. Various hardware implementations for ECG data compression have been developed, aiming at low-power applications. Y. Zou et al. proposed a hardware model for ECG acquisition based on the wavelet transform; this implementation uses a high frequency of operation and is a lossy method [5]. As a result, this method is not viable for wearable sensor systems. C.J. Deepu et al. used a prediction-based hybrid algorithm for data compression [6]. F. Nasimi et al., Lin Y et al., and Chen Y. et al. implemented ECG hardware using lossless methods producing high CR values, but these methods require a large number of complex computations for data retrieval, which degrades the energy efficiency of the system [7,8]. Tsung-Han Tsai et al. developed a low-power data compression system for multichannel data using predictive and entropy coding [9]. Another similar study by Sarma J. et al. devised a hardware implementation of lossless data compression for wearable nodes; this method uses linear filtering, run-length encoding, and Golomb–Rice coding for data compression [10]. Tsai and Kuo implemented a lossless compression scheme that uses linear prediction for prediction accuracy and GRC for entropy coding. This method uses basic digital circuits to implement the subsystems, resulting in power-efficient operation and few logic gates, in turn achieving less chip area [10].

3. Methodology

This section discusses the methodology used in the system. Various subsystems are discussed below, and Figure 1 depicts the steps involved in the ECG compression system:
A derivative block is required to obtain the first difference in the ECG values taken from the MIT BIH arrhythmia dataset, and it finds the difference between the present value and the previous sample value. This step fulfils two purposes. Firstly, it reduces the amplitude values of the data samples since the ECG signals have values close to each other. This also minimizes the number of iterations of the compression algorithm since a zero value of difference results in no additional computational cost for the calculation of the quotient and remainder. After the derivative block, the magnitude of the first difference values is taken, and a packet of 8 values is chosen to find the respective means. This operation is performed to maintain the amplitude values and to provide immunity towards noise levels. To achieve better compression ratios, it is necessary to have the minimum value of amplitudes possible as it requires the minimum number of bits for representation. The acquired mean values are compared with a threshold value1, which is selected based on the amplitude regions in the ECG values, which are mainly divided into three central regions: low, medium, and high amplitude. The obtained mean values are subjected to threshold comparison with the chosen threshold values T1, T2, and T3. The output of this comparison determines the factor by which the 8-bit packet will be divided. This packet is the same one that was chosen earlier to find the mean. The division operation further reduces the amplitude values. Further steps involve the encoding of values based on the division.
The Golomb–Rice encoder performs the encoding of the ECG values, and this block is the most essential part of the data compression system. The Golomb–Rice coding (GRC) method is usually employed where the amplitudes are very low in value. First, the samples are divided into groups of symbols, and then these symbols are assigned a code word, which is usually equal to the number of parameters subtracted by the decided coder parameter. This parameter can be decided based on various signal metrics like variance or geometric mean to incorporate the maximum number of reoccurring sample values.
In GRC, the sample values are segregated into two parts upon parameter division, i.e., quotient and remainder. For these obtained quotients and remainders, separated coding schemes are used. Quotients are coded in a unary scheme. GRC is popular due to numerous reasons, such as its low complexity for hardware and software implementations, its viability for various sample data types, and it being a lossless scheme; therefore, it is suitable for applications where sample drops can degrade the efficiency. Here, the value of k is chosen based on the threshold comparison with the obtained mean values. It is observed that the quotient values of samples have a very high frequency over zero values, which can result in a further reduction in the number of bits used for encoding. If the number of consecutive zeros is obtained for a run of encoding, then a binary number can signify the run length rather than sending that many zeros. This method further reduces the CR.
Q u o t i e n t = D n 2 k ,   w h e r e ,   k = 3 , 4 , 5
R e m a i n d e r = D n   mod   2 k ,   w h e r e ,   k = 3 , 4 , 5
The obtained quotient values are then coded further to enhance the CR run-length encoding (RLE), which is used to encode the consecutive zero quotient values. RLE aims to reduce the redundancy due to the repeated number of characters. RLE is useful in applications where there are repeating sample values in succession to each other. A particular marker bit needs to be used at the decoder end to understand that the RLE code has arrived; in this case, “000” is used as a marker to identify that the runs of zeros have arrived. The data obtained after encoding contains various values, i.e., raw ECG, mean, absolute values, quotients, and remainders. The last step remains to combine the essential information for transmission. The packaging is performed in two different ways, one for zero values and the other for non-zero values of the quotient. The packaging starts with the initial value of the 11-bit ECG signal, which is followed by the initial value of the difference. The next block is the marker indicating the factor used for the division of values specified. This block also indicates the zero quotient values by indicating a distinct marker. After this, quotient values are sent, which are variable in length due to a unary coding scheme. In the end, the remainder is sent over in binary form; hence, it is shown as a variable in the data frame. For a run of zeros, frame 3,4 is replaced by marker 000, and the variable run length is coded in binary format. The explained packaging format used here is for 8-bit packets, and this process is repeated for all 450 packets of 8 bits, resulting in a total of 3600 values. The overall hardware of the compression system is shown in Figure 2.

4. Results

The results obtained from the waveforms and RTL schematic from the compression system are shown in this section. At the positive edge of the clock cycle and low reset value, the addresses of the memory locations from where the values were to be taken were loaded. The data outputted the corresponding value of the ECG signal from the buffer. The clock period was 2, and the complete data took 7.2 microseconds to reach the system. Figure 3 shows the output of the shift operation and the subtraction to find the value of the first difference. It can be observed that some values were exceptionally large. This is due to 2’s complement representation of negative numbers in binary format. In the next step, absolute values were taken for the first difference. After that, eight sample values were taken to find the sum and shifted right by 3 to obtain the mean of the values. The obtained values were then given to the threshold comparator, which decided the factor from which the sample values corresponding to the mean should be divided, and quotients and remainders were obtained. Quotient values for respective data samples were taken, and the packaging for the 8-bit samples was performed. It was observed that for the first eight data samples containing 88 bits of data, a total of 24 bits were generated. Subsequently, the range lay between 24 and 32 bits for other samples. The average CR for the compression system was found to be 2.75, and the maximum CR was found to be 3.14. With a power consumption of 2.9 W, around 92% of the power was utilized in I/O operation from memory to fetch the data, which can be reduced in the actual design because real-time data are acquired in the latter case, as seen in Figure 3. The logic power utilization was 0.2W for the logical operations performed in the compression system. The total number of lookup tables (LUTs) used was 408, and the flip flops used numbered 51. Table 1 shows a summary of the results.

5. Conclusions and Future Scope

In this paper, a lossless ECG data compression system was presented. The compression system used the Golomb–Rice coding method to encode the ECG signals. The MIT BIH arrhythmia dataset was used, which contains 11-bit raw ECG sample values. The CR attained by the compression system was 2.89 and 3.6 for average and maximum values. The design implementation was tested on Nexys DDR4 FPGA, which is of the Artix-7 low-voltage family. The design consumed 408 LUTs and 51 FFs at a clock frequency of 0.5 KHz. The system’s logical power consumption was 0.2 W, and the I/O consumption was 2.7 W. It was observed that there is a trade-off between the transmitted power and the processing power in the sensor node if we aim to decrease the power consumption due to the transmission of extensive data.
Table 2 shows a comparison between different ECG compression techniques. The achieved compression ratio resulted in lower energy requirements to send data and a lower storage space requirement, which help achieve two critical wearable metrics, i.e., power and memory management, which help in the development of a better and optimized wearable system. Additional computations must be performed via the processor used in the sensor node. However, due to advances in VLSI technology, the processor design is highly optimized and can provide better savings. The implemented compression system can be further extended for physical design implementation. The changes at this step, like clock gating, power gating, and algorithmic level changes, can further reduce the system’s power consumption. The proposed system can also be modelled for sensor node simulations to map power savings due to the compression methods applied. The system can also be used for various biomedical signals for data compression.

Author Contributions

S.H. was responsible for the conceptualization and methodology of the paper. The design and simulation of the experiments and the drafting of the manuscript were performed by S.H. as well. V.G. performed the manuscript review, proofreading, and reference collection for the research. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not Applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data sharing is not applicable to this article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. WebCite Query Result. webcitation.org. Available online: https://webcitation.org/73HUXmOKl (accessed on 25 October 2023).
  2. Dargie, W.; Poellabauer, C. Fundamentals of Wireless Sensor Networks: Theory and Practice; Wiley: Berlin, Germany, 2010; p. 311. [Google Scholar]
  3. King, P.H. Wearable Sensors: Fundamentals, Implementation and Applications. IEEE Pulse 2021, 12, 30–31. [Google Scholar] [CrossRef]
  4. Li, R.; Wang, L.; Yin, L. Materials and Devices for Biodegradable and Soft Biomedical Electronics. Materials 2018, 11, 2108. [Google Scholar] [CrossRef] [PubMed]
  5. World Health Statistics. Monitoring Health for the SDGs, Sustainable Development Goals. 2022. Available online: https://www.who.int/publications/i/item/9789240051157 (accessed on 16 May 2023).
  6. Alam, M.S.; Rahim, N.M.S. Compression of ECG signal based on its deviation from a reference signal using discrete cosine transform. In Proceedings of the ICECE (2008)–5th International Conference on Electrical and Computer Engineering, Dhaka, Bangladesh, 20–22 December 2008; pp. 53–58. [Google Scholar] [CrossRef]
  7. Nasimi, F.; Khayyambashi, M.R.; Movahhedinia, N.; Law, Y.W. Exploiting similar prior knowledge for compressing ECG signals. Biomed. Signal Process. Control 2020, 60, 101960. [Google Scholar] [CrossRef]
  8. Zou, Y.; Han, J.; Xuan, S.; Huang, S.; Weng, X.; Fang, D.; Zeng, X. An energy-efficient design for ECG recording and R-peak detection based on wavelet transform. IEEE Trans. Circuits Syst. II Express Briefs 2015, 62, 119–123. [Google Scholar] [CrossRef]
  9. Deepu, C.J.; Zhang, X.; Liew, W.S.; Wong, D.L.T.; Lian, Y. An ECG-SoC with 535nW/channel lossless data compression for wearable sensors. In Proceedings of the 2013 IEEE Asian Solid-State Circuits Conference, A-SSCC 2013, Singapore, 11–13 November 2013; pp. 145–148. [Google Scholar] [CrossRef]
  10. Tsai, T.H.; Kuo, W.T. An Efficient ECG Lossless Compression System for Embedded Platforms with Telemedicine Applications. IEEE Access 2018, 6, 42207–42215. [Google Scholar] [CrossRef]
  11. Chen, S.-L.; Villaverde, J.F.; Lee, H.-Y.; Chung, D.W.-Y.; Lin, T.-L.; Tseng, C.-H.; Lo, K.-A. A Power-Efficient Mixed-Signal Smart ADC Design With Adaptive Resolution and Variable Sampling Rate for Low-Power Applications. IEEE Sens. J. 2017, 17, 3461–3469. [Google Scholar] [CrossRef]
  12. Deepu, C.J.; Heng, C.-H.; Lian, Y. A Hybrid Data Compression Scheme for Power Reduction in Wireless Sensors for IoT. IEEE Trans. Biomed. Circuits Syst. 2017, 11, 245–254. [Google Scholar] [CrossRef] [PubMed]
  13. Deepu, C.J.; Zhang, X.; Heng, C.H.; Lian, Y. A 3-Lead ECG-on-Chip with QRS Detection and Lossless Compression for Wireless Sensors. IEEE Trans. Circuits Syst. II Express Briefs 2016, 63, 1151–1155. [Google Scholar] [CrossRef]
  14. Ieong, C.-I.; Li, M.; Law, M.-K.; Mak, P.-I.; Vai, M.I.; Martins, R.P. A 0.45 V 147–375 nW ECG Compression Processor With Wavelet Shrinkage and Adaptive Temporal Decimation Architectures. IEEE Trans. Very Large Scale Integr. (VLSI) Syst. 2017, 25, 1307–1319. [Google Scholar] [CrossRef]
  15. Tsai, T.-H.; Hussain, M.A. VLSI Implementation of Lossless ECG Compression Algorithm for Low Power Devices. IEEE Trans. Circuits Syst. II Express Briefs 2020, 67, 3317–3321. [Google Scholar] [CrossRef]
Figure 1. Epileptic seizure detection methodology.
Figure 1. Epileptic seizure detection methodology.
Engproc 58 00010 g001
Figure 2. The overall architecture of the compression system.
Figure 2. The overall architecture of the compression system.
Engproc 58 00010 g002
Figure 3. Power report and outputs of various subsystems.
Figure 3. Power report and outputs of various subsystems.
Engproc 58 00010 g003
Table 1. Summary of results.
Table 1. Summary of results.
MetricValue
Board used
  • Family: Artix-7 low voltage;
  • Package: csg324;
  • Part number: xc7a100tlcsg324-2L.
Mean CR2.89
Highest CR3.6
Lookup tables used408
Flip flops used51
Power (logical, I/0)0.2 W, 2.7 W
Delay7.2 microseconds
Table 2. Comparison of results.
Table 2. Comparison of results.
Parameter This Work2017 [11]2017 [12]2016 [13]2017 [14]2020 [15]
MethodGolomb–Rice EncoderContext-Aware CompressionEntropy CodingJointCoding PackageWavelet ShrinkageLossless ECG Compression
Compression ratio2.752.152.152.12.702.77
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

Himalyan, S.; Gupta, V. Golomb–Rice Coder-Based Hybrid Electrocardiogram Compression System. Eng. Proc. 2023, 58, 10. https://doi.org/10.3390/ecsa-10-16209

AMA Style

Himalyan S, Gupta V. Golomb–Rice Coder-Based Hybrid Electrocardiogram Compression System. Engineering Proceedings. 2023; 58(1):10. https://doi.org/10.3390/ecsa-10-16209

Chicago/Turabian Style

Himalyan, Sachin, and Vrinda Gupta. 2023. "Golomb–Rice Coder-Based Hybrid Electrocardiogram Compression System" Engineering Proceedings 58, no. 1: 10. https://doi.org/10.3390/ecsa-10-16209

Article Metrics

Back to TopTop