1. Introduction
With urbanization and an accelerating population of the aging society, combined with a human unhealthy diet, lack of exercise, stress, and other factors, the number of people suffering from cardiovascular diseases continues to increase [
1]. An electrocardiogram (ECG) is a common tool for evaluating whether a heart is healthy or not, which needs at least three leads of data for clinical diagnosis [
2,
3]. Since its introduction in the 1960s by the Massachusetts Institute of Technology Media Lab, wearable technology has received much attention and has become a hot topic of research [
4].
In recent years, the development of microelectronics technology, Internet of Things (IoT) technology, and communication technology in medical applications have provided a good foundation for the development of wearable ECG equipment [
5]. Several ECG monitoring devices have been proposed to monitor heart diseases [
6,
7,
8,
9,
10]. Wearable devices are mainly used for two aspects. One is for fitness and exercise, where it is used to monitor the heart rate, steps, and other motion parameters to arrange reasonable movement for users. The other aspect is in the medical field, where it is used for medical detection and diagnostic purposes [
11].
Wearable medical devices typically combine data acquisition devices with every day use. K. Takahashi et al. [
12] designed a novel wearable device that uses a dry electrode on the elastic cuff of the garment to monitor the ECG of children. The University of Manchester developed a low-power wristband to monitor the ECG between the hands [
13]. S. Majumder et al. [
14] also proposed a wearable wristband ECG monitoring system that transmits the ECG data to a personal computer over the low-power Bluetooth (BT) communication medium. V.P. Rachim et al. [
15] proposed a healthcare monitoring system implemented in an armband. These are single-lead wearable devices that are not recognized clinically for heart disease. The device should have at least three leads to acquire acceptable ECG information for disease diagnosis. The jacket developed by the University of Aveiro in Portugal is a wearable vital sign-monitoring system, which monitors a multi-lead ECG [
16]. W.V. Rosenberg et al. [
17] have developed a smart helmet that is especially useful for recording and monitoring vital signs in uncertain or dangerous situations, such as in racing or military activities. However, the power consumption of these two devices is relatively high. Low power consumption means that the device can work and operate for a longer period of time, which is particularly important for long-term monitoring of the physical condition of the wearable device [
18]. These devices monitor human physiological signals, such as respiratory rate, heart rate, electrocardiograms, skin temperature, physical movement, brain activity, and blood pressure. Moreover, these devices transmit these physiological signals wirelessly to devices or networks for health monitoring, disease diagnosis, or treatment purposes [
19].
At present, the use of wearable devices are on the rise. Power consumption is a main consideration for biomedical systems. Chen et al. [
20] minimized the power by incorporating a micro control unit (MCU) to manage the power for each component in a biomedical system. Additionally, devices with multi-sensors are being promoted more than ever. A MCU with power management and a filter component in the reconfigurable circuit were provided in [
21] to adjust signals in real-time. Moreover, Chen et al. [
22] proposed systems for ECG data compression, particularly implementing the main aim of dropping power loss. In wireless systems, dropping the data transmitted by using fuzzy-control and entropy coding in stages reduced the data significantly. The resolution method, in which the fuzzy method is implanted, can improve the data compression performance efficiently. Chen et al. [
23] not only improved the analog circuit, but also the analog-to-digital converter (ADC) by adaptively adjusting its sampling rate. This design will benefit both the limiting of data from the transmission and the minimizing of power of the analog and digital components.
This work has designed a low-power multi-lead wearable ECG signal sensor system that can simultaneously acquire the electrocardiograms of three leads and calculate the ECG of the seven leads of I, II, and V1, and the other four leads, III, aVL, aVF, and aVR, using Einthoven’s law [
24]. Compared with the single-lead wearable ECG device, the designed device in this work uses more leads with a sampling rate of 250 Hz per lead, which has a higher clinical value. In order to meet the low-power requirements of wearable devices, in terms of hardware design, several low-power chips were incorporated. In terms of software, the working mode of a MCU was optimized to reduce the power consumption; a Bluetooth 4.0 low energy (BLE) protocol stack was modified to improve the parameters in the Bluetooth digital communication process; ECG data was compressed by Huffman coding to reduce the amount of data transmitted by Bluetooth and reduce the power consumption in a wireless communication process.
The rest of this paper is organized as follows.
Section 2 presents the equipment architecture of the ECG monitoring sensor system. The details of the ECG vest and its low power design are described in
Section 3.
Section 4 presents the experimental results of the compression algorithm verification and low-power test.
Section 5 concludes this paper.
2. System Architecture
The structure diagram of the multi-lead wearable ECG sensor system designed in this paper is illustrated in
Figure 1, which includes an ECG vest and an ECG signal acquisition device. The core equipment consists of four components as follows: The power supply module, the acquisition module, the MCU module, and the Bluetooth communication module. The entire device was designed to meet the requirements of a portable ECG device for wearable devices with low power consumption and high accuracy measures.
The ECG test equipment can be worn on the human body using the arm band [
15], the test clothes, or the chest strap [
11]. Considering the comfort level of the user, the ECG test vest was selected as the front-end interface. The ECG test clothing needs to have a certain elasticity to ensure that the electrodes are closely attached to the human body. The vest uses five electrode patches to acquire the analog ECG signal from the surface of the human body. The ECG signal obtained is sent to the ECG signal acquisition module of the core device.
The overview of the ECG vest is shown in
Figure 2. The front of the vest is designed with a zipper layer and a pocket to place the core device. There are five electrode patches on the vest, corresponding to the five positions of the right arm (RA), left arm (LA), left leg (LL), right leg (RL), and right chest V1 on the human body. The vest uses the RA and LA, RL and LL, and a Wilson center terminal (WCT) and V1 to acquire the analog ECG leads, I, II, and V1, respectively. The WCT is generated by the three patches of RA, RL, and LL. The RL patch sends a signal to the right leg drive (RLD) node of the ECG device, which is intended for control of the common-mode level of the patient. It is connected through the electrodes to the ADC chips, and thereby improves the alternating current (AC) common mode rejection ratio (CMRR) of the overall ECG system.
Compared to the traditional AgCl wet electrode patch used in most ECG instruments, the ECG vest designed in this work uses a silicone dry electrode that provides a comfortable feeling when attached on the skin of the user. Increasing the comfort level would be more satisfying if it met the requirement of a long-term monitoring of wearable devices. The silica dry electrode design is illustrated in
Figure 3. The silicone dry electrode is integrated in the interior of the vest, and the bottom surface is in direct contact with the human skin ECG signal acquisition; the top surface of the dry electrode is in contact with the conductive button. In this way, the ECG vest can collect the ECG signal of the three leads, I, II, and V1.
The overview of the ECG signal acquisition device with a 250 Hz-high sample rate per lead is shown in
Figure 4. The area of the printed circuit board is 7.2 cm × 6.3 cm. It consists of four parts; the power supply, the front-end circuits of the ECG signal acquisition and amplification, the MCU, and the Bluetooth 4.0 communication module [
25].
The entire device is powered by a 500-mA lithium battery and can be charged through the micro universal serial bus (Micro-USB) interface.
Figure 5 presents the connection diagram of the whole device.
The multi-lead wearable ECG device obtains the ECG signals of the three leads, I, II, and V1, from the surface of the human body through the ECG vest. The front-end chip is used to amplify, sample, and convert the ECG signal acquired from the body from an analog to a digital signal. The transmission of the ECG data to the MCU is done through a serial peripheral interface (SPI). Similar to the MCU, it controls the front-end ADC chip register configuration, reads the ECG data from it, and performs Huffman compression processing in its central processing unit (CPU) for ECG data size reduction. This allows the sampling rate to be improved to achieve higher data transmission and better wave performance.
The multi-lead wearable ECG signal sensor system presented in this work is designed to be portable. Recently, wireless ECG monitoring systems have been implemented [
26,
27] using Bluetooth and ZigBee as their main wireless communication protocols. WiFi communication protocols are widely used due to their advantages of having a wide range of coverage, fast transmission speed, and high security for a wide range of application. However, WiFi transmission requires large power consumption, which is costly and requires a router or an access point (AP) device for transmission. Hence, it is difficult to use WiFi communication protocols in wearable ECG devices. ZigBee, on the other hand, is an extension of the standard IEEE802.15.4 wireless personal area network (WPAN) protocol. It is mainly used in the field of automatic control and remote control [
28]. It can be embedded in various devices and has the advantages of having low power consumption and low cost and has a strong networking capability. However, it has a low transmission rate. With the increase in the number of ECG leads and sampling rates of a device, ZigBee is not suitable as a communication protocol to be used to transmit the large amount of data due to its low communication rate. Although Bluetooth has a slow transmission speed, it is much faster than ZigBee. The speed of Bluetooth 4.0 can reach up to 24 Mbps of transfer rate. At the same time, it has a low power consumption and is of small size. As such, the Bluetooth communication protocol is preferred to be embedded in portable devices than ZigBee. Bluetooth was therefore adopted as the wireless communication method in the proposed device.
The ECG data is transmitted to the Bluetooth module of the device through the SPI. The Bluetooth communication module obtains the ECG data package from the MCU and completes the Bluetooth data packet encapsulation of the ECG data. It presents the acquired ECG waveform through the mobile application (APP) via Bluetooth 4.0 in real-time.
3. Low-Power Design for the Core Devices
Low power consumption is one of the main requirements of wearable ECG equipment and is an important condition for ensuring long-term operation [
29]. A wearable ECG device includes an ECG acquisition module, an embedded MCU, and a wireless communication module. The ECG acquisition module completes the amplification and performs the ADC processing of the ECG data. These steps are accomplished in a continuous working state. The embedded MCU is the control core of the entire device, while the wireless communication module wirelessly transmits the ECG data [
30]. The power consumption of the entire wearable ECG device
P is computed using Equation (1) below, while the entire circuit operation time
t in hours can be calculated using the expression in Equation (2) below.
where
PADC,
PMCU, and
PTRANS are the power consumption of the front-end ADC, MCU, and Bluetooth modules, respectively.
P0 is the power consumed by the power supply module,
C is the capacity of the power supply battery, and
VBAT is the battery voltage.
In this study, three ways were adopted to reduce the power consumption of the multi-lead wearable ECG device: Firstly, by optimizing the embedded MCU operation mode to reduce the MCU power,
PMCU; secondly, by adjusting the radio frequency (RF) parameters in the process of wireless communication to reduce the wireless transmission power,
PTRANS; thirdly, by using Huffman coding to compress the ECG data to reduce the amount of wireless communication data and the wireless transmission power,
PTRANS. However, when compressing the ECG data, it increases the power consumption
P′ of the MCU. As such, the power consumption of the entire ECG device is modified using Equation (3), as follows:
where
CR is the compression ratio of the ECG data,
P′ is the increased power consumption due to the execution of the compression algorithm, and Δ
P in Equation (4) is the difference between the power consumption before and after the data is compressed. Only by satisfying the expression in Equation (5) can the purpose of reducing power consumption be achieved using the Huffman compression algorithm. The optimization of the MCU operation mode, which allows it to operate in standby mode instead of active mode, is the first method to saving the operating power. When the MCU is in standby low-power mode, it can be woken up by the interrupt signal to execute the corresponding interrupt program. If the standby mode is exited during the interrupt routine, the MCU will operate in active mode when the interrupt routine is completed. It will then enter the standby low-power mode if it finds that there is no ECG data during the execution of the main program. The specific process is illustrated in
Figure 6.
The wireless communication module is based on the Bluetooth 4.0 BLE (BT BLE) protocol stack for Bluetooth connectivity and data transfer. Therefore, the power consumption can be reduced by improving the parameters in the Bluetooth communication process.
First, two of the three default channels of the Bluetooth transmission are turned off and only broadcast on the 37 channels. The time interval between the transmissions of two adjacent broadcast packets is then set to 200 ms, which is twice the default value. The larger the broadcast interval, the smaller the power consumption. Moreover, in the connected state, the RF power consumption of the Bluetooth device is reduced, which requires an increase in the connection interval and the number of slave delays. However, that will slow down the rate of Bluetooth data transmission and lower the Bluetooth communication bandwidth. As a result, the experiment is carried out on the principle that the APP software will receive all the packets in order to find the most suitable slave delay and connection interval. Finally, the slave latency is set to 10, the connection interval is set to 20, and the monitoring timeout is set to 500.
As the number of ECG leads is increased, the amount of ECG data transmitted by the wearable ECG device via Bluetooth is also increased [
31]. Compressing the ECG data can reduce the amount of wireless communication data, therefore reducing the power consumption of the wireless transmission,
PTRANS. Among the data compression algorithms, this study chooses Huffman coding to realize the compression of the ECG data. Huffman coding is a lossless compression algorithm, which can restore the original data after decoding [
32]. The Huffman coding considers the frequency and length of the code. Its principle is to represent high frequency data using a shorter code and low frequency data using a longer code.
The proposed ECG acquisition device has a sampling rate of 250 Hz, where each data sample is 3 bytes or 24 bits per lead. The ECG data format is stored as hexadecimal data, including the first byte (i.e., the high-eight-bit), the second byte (i.e., the middle-eight-bit), and the third byte (i.e., the low-eight-bit). The amount of three-lead data is 2250 bytes or 18,000 bits per second. The acquired ECG data from three leads are listed in
Table 1. The data was hardly changed for the first byte in each lead. A slight change was contributed only when there was a huge baseline drift and motion artifact noise interference. For the second byte, the data was slightly changed, since the sampling rate of device was 250 Hz higher than the ECG frequency, which is low and is only within the range of 0.5 Hz to 3 Hz. Therefore, the adjacent two samples of data of the ECG signal also did not change that much. For instant, in lead I between the first sampling data of 32 and the second sampling data of 31, the data was just changed a little. For the third byte of these three leads, the data was changed more sensitively, since the ECG signal has a small variation. The ECG signal is a weak physiological signal; therefore, the change of data is mainly reflected in the low-level byte. The data of the first-byte and middle-byte has changes that were too small. As for the two high-level bytes, with 1500 bytes per second, data compression can be employed to reduce the amount of data.
The first method was to compress 1500 bytes of 1 s of ECG data by Huffman coding. In this case, when Huffman coding was performed, the amount of data processed and the Huffman binary tree established did not match the MCU memory. This consumed a long processing time. In order to solve this for the first compression method, the second method of 1500 bytes of ECG data was separately stored into 6 arrays. The 6 arrays were then separately compressed by Huffman coding.
Table 2 shows the results of the compression using the second compression method. Each array had 250 bytes of original data, where the first byte of lead I was compressed to 10 bytes with a compression rate (CR) of 25. The results show that the CR of the original and compressed data for each lead is relatively high. As such, the second method of compression was adopted to compress the ECG data of the first and second byte of data for each lead. This method ensured a large CR that allowed a high sampling rate to be used for transmission via a Bluetooth communication module.
4. Experimental Results and Performance Analysis
The experimental results of the compression algorithm using the core equipment with Huffman code designed in this paper are presented. The participants were tested for a span of 60 s in three different states, including sitting, walking, and jogging. The data collected was stored in the mobile APP. Moreover, the data was imported into MATLAB simulator for decompression [
33], verifying the correctness of the compression algorithm, as well as analyzing the effect in the compression under the three different states.
Figure 7a shows the ECG data in the sitting state after MATLAB. In addition to a slight baseline drift, the ECG waveform shows a clear waveform with less noise. This verifies that the compression algorithm can be implemented on the designed wearable ECG device proposed in this study. The ECG data in the walking state after MATLAB decompression is shown in
Figure 7b. Motion artifact noise was introduced due to the walking motion. This is evident in lead I with smaller amplitudes. The ECG data in the jogging state after MATLAB decompression is shown in
Figure 7c. It can be seen in the waveform that the noise is higher in the jogging state over the first two states. The features of lead I are submerged, and the P waves of lead II and V1 are also affected. By comparing and analyzing each state, it can be seen that in the sitting state, the CR is highest and the compression effect is best. However, irregularities in the waveform will result in a very low CR.
Figure 8a presents a participant sitting on a stool wearing the proposed ECG vest design. Through the ECG vest, the ECG signal was collected and sent to a smart phone. The real-time ECG waveform acquired through lead II was displayed via the mobile APP, as shown in
Figure 8b. The ECG signal acquisition was tested again, this time using the patient monitor. The patient monitor device is a medical grade device produced by a medical device company. It can simultaneously measure the ECG signal of seven leads. The ECG of the three leads of I, II, and V1, measured by the patient monitor device and ECG vest designed in this work are shown in
Figure 8c. It can be seen that the ECG waveforms of the three leads of I, II, and V1, collected by the proposed device, are clear and in par with the commercially-produced patient monitor device.
The operation current of the proposed device was tested under four conditions of a low power device design using 3.7 V lithium batteries as the energy supply. As listed in
Table 3, the reduction in the operation currents under three different methods were 3.36 mA, 1.30mA, and 0.30mA. The operating power consumption of the entire device is reduced by 31% when all measures are performed.
Table 4 presents the performance comparison between the proposed design and previously proposed systems in the literature. In the case of the normal operation of the device, the output voltage measured by the power supply module is 2.10 V. According to the measurement result, the current consumption of the proposed low-power acquisition system is 9.87 mA (i.e., reduced by 37.6%), which can operate for 50 h using a 500-mAh battery. The sampling rate of the proposed system is 250 Hz per lead, which is suitable for clinical diagnosis, compared to other references [
30,
31,
32]. Moreover, the power dissipation is smaller than in [
27,
34], which can achieve a long-term application.
The proposed device is a real-time three-lead ECG acquisition device with a Bluetooth wireless transmission system and is compared with a single-lead ECG acquisition device with ZigBee, as proposed in [
10]. The proposed device in this study has several advantages as opposed to [
10]. First, the transmission data of the proposed system is four times more than [
10]. Second, the battery capacity is 500 mAh, which is 150 mAh less, as opposed to 650 mAh in [
10]. Third, it uses Bluetooth communication protocol, which is more widely used than ZigBee for wearable devices used together with mobile phones. On the other hand, [
10] using Zigbee has a current consumption and power dissipation of 2.4 times and 20.72 mW less than the proposed device in this study, respectively.
Table 4 lists the performances of the previously proposed system and the proposed system in this study. The list of abbreviations used in this article is included in
Table 5.