Abstract

This paper integrates a heart rate (HR) monitoring system with step counter for use during physical activities. Novel step counter algorithm has been developed to enable the highly accurate detection of step. The proposed system comprises a wireless wearable device, a smartphone, and a remote server. Data transmission between a wearable device and a smartphone is conducted via Bluetooth low energy (BLE). An indirect contact measurement method has also been devised to eliminate the need for direct contact electrodes and likelihood of skin irritation. The proposed system is compact, lightweight, and comfortable to wear. A smartphone application provides the interface for the display of data related to HR, step count (SC), exercise intensity, speed, distance, and calories burned, as well as waveforms related to ECG and step cycle. ECG peak detection algorithm achieved accuracy of 99.7% using the MIT-BIH ST Change Database. Accuracy of 98.89% was achieved for HR and 98.96% for SC at treadmill speeds of 1.8 to 9.0 km/h.

1. Introduction

Global annual expenditure in the health-related domain is currently US$5.3 trillion, and this is expected to increase at an ever-accelerating rate [1]. Evidence supports a strong link between regular physical exercise and decreased risk of cardiovascular disease [2] as well as chronic illnesses such as diabetes [3].

It has been suggested that the volume of exercise required by most individuals is equivalent to 10,000 steps per day [4]. Pedometers are sensors that are worn on the body to motivate one in the pursuit of physical activity and assess one’s progress. Pedometers are viewed as a practical alternative to group health promotion because the output (e.g., steps taken, steps/day) is user-friendly [5]. Unfortunately, most pedometers give no indication of the intensity of the physical activity, despite the importance of meeting minimum exertion thresholds and the danger of exceeding physical limits. For example, 55–90% of maximum HR has been cited as an appropriate level for training cardiorespiratory fitness without leading to early fatigue [6]. This underlines the need to monitor exercise intensity in real time. HR can be used as an indicator of exercise intensity [7], according to the formula outlined by Fox and Haskell [8].

Sun and Yu [9] designed an HR monitoring and fatigue detection system for drivers. Khan et al. [10] enabled the monitoring of HR using photoplethysmographics (PPG). He et al. [11] designed an ear-worn HR monitoring system using a combination of ECG, PPG, and ballistocardiogram (BCG). Accelerometers have also been used to monitor activity. Gupta and Dallas [12] developed an activity monitoring system using a single triaxial accelerometer. Cheng et al. [13] proposed a system for activity monitoring and fall detection using accelerometer signals and Ryu et al. [14] proposed a step counter using accelerometer data. Nonetheless, a comprehensive system for the evaluation of one’s overall physical condition in real time has yet to be developed.

A shift toward technology that prioritizes comfort for the user has led to the development of systems based on coupling capacitance for indirect contact ECG in order to monitor HR. Oehler et al. [15] first used capacitive sensors to measure multichannel ECGs. Matsuda and Makikawa [16] implemented ECG capacitive sensors in driving applications. In 2012, Baek et al. [17] embedded in a smart chair indirect contact ECG for the measurement of physiological signals. Eilebrecht et al. [18] proposed a measurement system using capacitive multichannel ECGs. However, no previous study has conducted a comprehensive investigation into the monitoring of everyday activities such as walking and running.

Smartphones have recently been adapted to accommodate p-health monitoring systems [19, 20] and rapid progress in this area makes it a particularly useful medium for mobile monitoring systems. In this study, we developed a wearable device integrating an accelerometer-based pedometer with single-channel ECG system for the monitoring of HR, SC, exercise intensity, speed, distance, and calories burned as well as the presentation of ECG waveforms and depictions of step cycle during physical activities. We also developed a novel step counter algorithm to enable the highly accurate detection of step. The proposed device is strapped to the chest using indirect contact to reduce the likelihood of skin irritation.

2. Methods

2.1. System Architecture

The proposed monitoring system consists of three parts: a wireless wearable device, a smartphone, and a remote server. Figure 1 illustrates the architecture of the system. The wearable device includes two-electrode circuits for the measurement of ECG signals, a 3-axis accelerometer for the measurement of step signals, and an ultra-low-power microcontroller (MSP430) for data acquisition and calculations. Data transmission between the wearable device and the smartphone is conducted via BLE [21]. A smartphone application was developed to receive user data and display the HR, step count, exercise intensity, speed, distance, and calorie burn information. The sensors data can be transmitted to the smartphone in real time; the ECG and step signal waveforms can also be displayed on the screen of smartphone. If the system detects an instance of overexercise, the smartphone triggers an alarm (sound and vibration) to warn the user. At the same time, HR, SC, and GPS location are transmitted to a remote server (remote health care center) via a 3G mobile network, to enable clinical staff to monitor the activity status of the user.

2.2. Wearable Device

The wearable device comprises three parts, sensors and circuits, microcontroller, and wireless data transmission interface, as shown in the block diagram in Figure 2. The sensors and circuits include an accelerometer and ECG circuits that use I2C and ADC on a microcontroller. Wireless data transmission is achieved using a CC2541 module with BLE support. All external circuits are implemented using SMD to reduce the size of the hardware. Figure 3 presents a prototype of the wearable device, which is compact (6 × 4 cm) and lightweight (19 g including a 110 mAh battery).

2.2.1. Sensors, Circuits, and Microcontroller

The sensors include POLAR belt electrodes for single-channel ECG acquisition and a 3-axis accelerometer (ADXL 345) for the detection of body movement.

The main chip in the wearable device is the MSP430, which includes an ultra-low-power microprocessor integrating memory, MCU, ADC, I2C, UART data communication, and other peripheral functions on a single chip [22]. For the ECG circuits, we modified a simple, low-cost circuit using the two-electrode nondifferential amplifier proposed by Dobrev et al. [23], a block diagram of which is presented in Figure 4. The ECG signals first pass through a biopotential amplifier and noninverting amplifier with gain of 11, followed by a high-pass filter and noninverting amplification with cutoff frequency of 4.8 Hz and gain of 48. Finally, a low-pass filter with cutoff frequency at 48 Hz is applied.

We also employed a digital accelerometer (ADXL 345) with 13-bit resolution and acceleration range of ±16 g. The sampling rates of the ECG and accelerometer are 200 Hz and 50 Hz, respectively. The MSP430 processes the digital data to calculate the HR and SC, whereupon the processed data is sent to UART connected to a BLE module for data transmission at a data rate of 115.2 kb/s.

2.2.2. Wireless Data Transmission

The wearable device uses a standard BLE 4.0 as a data transmission interface, due to its wide compatibility with mobile devices such as smartphones. We use CC2541 Bluetooth module [24], which is Bluetooth 4.0 that has low power energy and appropriate for healthcare applications.

2.3. Smartphone Platform

We used the ASUS Padfone S with an Android 4.4.2 operating system in conjunction with Android Eclipse for the development of a smartphone application, which we entitled “Integrated Monitoring System.” This application makes it possible to save HR, SC, and related parameters on a memory card and display it on the screen of the smartphone. It also initiates call to emergency response services should the need arise. Figure 5 presents the graphic user interface (GUI) on the smartphone and the function of each component.

2.4. HR Detection Algorithm

We developed a heart rate detection algorithm based on our previous work in [25]. This algorithm is divided into two stages: preprocessing and decision. Preprocessing includes a band-pass filter, differentiation, absolute function, and moving window integration (MWI). The output from this stage is then used as the input for the decision stage in which HR is calculated. The HR value is used to derive exercise intensity (1) with a corresponding maximum HR for each subject (2). For example, using 24 years as a default age value, we obtain the maximum HR as follows:

2.5. Step Counter Algorithm

The step counter algorithm is based on that of a pedometer, wherein the number of steps can be determined after one’s cycle is recognized. The accelerometer is highly sensitive to small motions; therefore, we applied several preprocessing steps to adjust the -axis data of the signal from the accelerometer, where is the number of data samples. Preprocessing includes band-pass filtering, the removal of baseline wandering, obtaining a moving average, enlargement, and integration. Figure 6 presents the workflow involved in preprocessing the signal, beginning with the signal passing through an FIR digital band-pass filter with cutoff frequencies of 0.5 Hz and 2 Hz. These cutoff frequencies are in accordance with the method proposed by Libby [26], with modifications to reduce noise. Baseline wandering removal () is used to remove the DC offset from the band-pass filter output (). This is achieved by reducing each data sample using the average data point. The number of Len is 43, and represents data number from to . Third, we implement an 8-tap moving average filter to smooth the signal (). The formulations of baseline wandering removal and moving average are given in (3) and (4), respectively. Consider

The moving average filter is a simple low-pass filter. The cutoff frequency in terms of moving average is given by (5), where , , and N are the sampling frequency (50 Hz), cutoff frequency, and number of taps (8 taps), respectively. Consider

Equation (5) is obtained from (6), where N is the number of filter taps and is equal to. Consider

An enlarging process () is also used to enlarge the signal characteristics using (7), as follows:

Finally, an 8-tap () integration process () is then applied to enlarge and smooth, where j represents the number of data points from to , as follows:

Figure 7 illustrates the algorithm used in step detection. As shown in Figure 8(b), a fall is defined as a situation in which the amplitude of the current input is lower than the previous input . A maximum value is set when the first fall signal is detected, and a minimum value is set when current input is lower than previous one. The maximum and minimum values are used to detect peaks and peak amplitudes, which are then used to determine the interval threshold. After a peak is detected, the peak-to-peak interval is compared with the interval threshold, adapted from an experience-based rule (Table 1). Situations in which the peak-to-peak interval is higher than the interval threshold are recognized as step, whereupon the maximum and minimum values are reset and the process is repeated from the beginning. Remember that the amplitude of the step signal is associated with the speed walking; that is, a slower walking speed has a smaller amplitude and longer interval and vice versa. This adaptive threshold is used to increase the accuracy of step detection for various speeds.

2.6. Experiment Setup

To verify the performance of ECG peak detection, we use the open-source MIT-BIH ST Change Database [27] as input data. We also compared the reliability of the ECG acquisition device using CardioSoft [28]. To evaluate the performance of the HR and SC algorithm, we recruited five healthy males to walk and run on a treadmill. The participants ranged in age from 22 to 28 years (mean: 24 years, SD: 2.4 years), with body mass ranging from 63 to 79 kg (mean: 69 kg, SD: 6.7 kg). Measurements were obtained sequentially at the following treadmill speeds: 1.8, 2.7, 3.6, 4.5, 5.4, 6.3, 7.2, 8.1, and 9 km/h. Measurements were taken for a period of one minute at each speed, before increasing the speed by 0.9 km/h and repeating the process. Subjects wore thin clothes with the device fastened across the chest with a belt. The subjects walked for the first six speeds and ran for the last three speeds. HR data was recorded for two seconds at each speed using the proposed device as well as a commercial device (GE Dash 3000) [28] for comparison. The SC results from the proposed device were compared with those obtained from two commercial products (Omron HJ-720 and Yamax SW200), the accuracy and reliability of which are proven [29, 30]. HJ-720 detects step using dual accelerometers, whereas the SW200 detects step using a traditional mechanical method. The subjects and an observer were also requested to count the number of steps taken at each speed for use as a standard (actual number of steps).

2.7. Evaluation Methods

To verify the reliability of the ECG acquisition device, we began by comparing the ECG signal from the proposed device with that of the commercial device, CardioSoft. We then applied our ECG R-peak detection algorithm to 26 records from the open-source MIT-BIH ST Change Database. The aim was to identify the number of beats identified by the proposed algorithm as False Positives (FPs) and False Negatives (FNs) and then calculate the accuracy based on Real Beats (RBs) obtained from the database. The equation used to determine the accuracy of ECG peak detection is given in (9). We then applied HR detection to the data acquired from the five subjects in the treadmill test. HR accuracy was based on the HR from GE Dash 3000 as a reference. We compared the accuracy of HR detection using the proposed device and a GE Dash 3000 in two-second increments over a period of one minute at each of the speeds between 1.8 and 9.0 km/h:

The accuracy of step detection was evaluated by calculating the difference () between real step count (RSC) and detected step count (DSC), as shown in (10), using data obtained from the five test subjects at each of the speeds. These values were then compared with those obtained using the two commercial pedometers. The detection rate () is defined as follows:

3. Results

3.1. ECG Raw Data

Evaluating the accuracy of the devices began with a comparison of the raw data obtained from the proposed device and that from CardioSoft. Figures 9 and 10 present the raw ECG data obtained from the two devices at walking and running speeds, respectively.

3.2. MIT-BIH ST Change Database Test

We applied the proposed ECG peak detection algorithm to 26 datasets from the MIT-BIH ST Change Database (except data numbers 305 and 319), which resulted in a total of 72580 beats. The detection results are listed in Table 2, the sums of which are divided as follows: FP: 81, FN: 106, and total failed beats: 187. Therefore, the accuracy of ECG peak detection based on 10 is 99.7%.

3.3. HR Detection in Treadmill Test

Table 3 lists the HR detection results from one subject in the treadmill test walking at 1.8 km/h. The graph in Figure 11 compares the HR values obtained using the proposed device and those from the GE Dash 3000 over the period of one minute. In this example, the difference between the HR values from the two devices never exceeds 3 BPM. Table 4 lists the overall results for all five subjects walking or running at all speeds, revealing an overall HR detection accuracy of 98.89%.

3.4. Step Counting Accuracy in Treadmill Test

Table 5 presents the results of step detection for one subject in the treadmill test. The accuracy values of the Yamax SW200 and Omron HJ-720 and the proposed device were 95.71%, 98.25%, and 98.70%, respectively. Table 6 lists the results of step detection for all five subjects walking or running at all speeds, revealing the accuracy of three devices was 92.37%, 94.57%, and 98.96%, respectively.

3.5. Power Consumption

The power consumption of the device was tested in the four main working modes: (1) standby; (2) being not connected; (3) execution of HR/SC algorithm and transmission of calculated data (HR, SC, speed, and distance); and (4) execution of HR/SC algorithm and transmission of calculated and raw (ECG and accelerometer) data. The transmission load for calculated data was two bytes/second, whereas the transmission load for raw ECG data was four bytes/0.01 seconds and raw accelerometer data was two bytes/0.02 seconds. The acquisition of ECG and accelerometer data was, respectively, conducted at sampling rates of 200 Hz and 50 Hz for each channel. Table 7 lists the consumption of current by the main components in each of the working modes.

4. Discussion

This study developed a wireless wearable system for the monitoring of HR and SC in real time as indications of exercise intensity. The aim was to limit the likelihood of overexertion and/or underexertion in order to maximize the efficiency of training.

4.1. Mobility

The proposed device is compact and lightweight, designed to be attached to the chest of the user over thin clothes. The proposed system monitors 3-axis accelerometer signals and ECG signals without the need to connect electrodes to the subject directly. The proposed system also facilitates continuous remote monitoring via a smartphone using systems such as Mobile-Cloud Telemonitoring [31].

4.2. Accuracy

The detection accuracy of ECG peaks and HR and the number of steps were verified using the MIT-BIH ST Change Database and a treadmill experiment involving five subjects. The average accuracy in ECG peak detection was 99.7%. Detection failures were due to instabilities in the raw ECG data. The accuracy of HR detection remained consistent at 98.89% across all speeds.

The accuracy of step detection was determined using a treadmill test. In most situations, lower treadmill speeds are less accurate than higher treadmill speeds due to the associated signal amplitudes. The Yamax SW200 achieved good performance at walking speeds exceeding 3.6 km/h; however, the Omron HJ-720 was more accurate at lower walking speeds. The proposed system achieved an average accuracy of 98.96%, exceeding that of both commercial devices, regardless of speed.

4.3. Usability and Practicality

Pedometers are a powerful tool for motivating individuals to increase their physical activity; however, unless they are lightweight and easy to use, they will not be adopted. The proposed device overcomes this issue and provides the ability to monitor HR as well as SC.

Furthermore, the power consumption of the device under full load is only 19 mA. The sampling rate could be reduced in order to reduce power consumption even further.

5. Conclusion

This paper outlines an integrated wearable system for the monitoring of HR and SC. Novel step counter algorithm has been developed to achieve the highly accurate step detection. We integrated an accelerometer-based pedometer with a two-electrode ECG circuit to reduce the size and weight of the device. In a treadmill test, the accuracy of the proposed device was shown to be very high. A Bluetooth interface facilitates connection to smartphones for the display, recording, and transmission of data, thereby enhancing the flexibility and usability of the device for health monitoring applications.

Disclosure

Yuan-Hsiang Lin is IEEE Member.

Competing Interests

The authors declare no conflict of interests regarding the publication of this paper.

Acknowledgments

This work was supported in part by a research grant from the Ministry of Science and Technology under Grant MOST 104-3115-E-011-001, Avalue Technology Inc., and the Department of Medical Research of National Taiwan University Hospital.