# Integrated Wearable System for Monitoring Heart Rate and Step during Physical Activity

Authors: Eka Adi Prasetyo Joko Prawiro; Chun-I Yeh; Nai-Kuan Chou; Ming-Wei Lee; Yuan-Hsiang Lin
Journal: Mobile Information Systems
 (2016)

---

## 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.


---

## Body

## 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. Figure1 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.Figure 1
System architecture.


### 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 Figure2. 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).Figure 2
Block diagram of wireless wearable device.Figure 3
Prototype wearable device: (a) left-top and right-top point of view and (b) device with cover and belt.
(a)
(b)


#### 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.Figure 4
Block diagram of ECG circuits.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.Figure 5
GUI on smartphone showing the various functions.


### 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:(1)
Exercise
_
Intensity
=
HR
Max
⁡
_
HR
×
100
%
,
(2)
Max
⁡
_
HR
=
220
-
Age
.


### 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 thex-axis data (
X
(
n
)
) of the signal from the accelerometer, where n 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 (X
subdc) is used to remove the DC offset from the band-pass filter output (X
band). This is achieved by reducing each data sample using the average data point. The number of Len is 43, and j represents data number from n
-
Len
-
1 to n
-
1. Third, we implement an 8-tap moving average filter to smooth the signal (X
ma). The formulations of baseline wandering removal and moving average are given in (3) and (4), respectively. Consider(3)
X
subdc
n
=
X
band
n
-
∑
j
=
n
-
Len
-
1
n
-
1
X
band
j
Len
,
(4)
X
ma
n
=
∑
j
=
n
-
N
n
X
subdc
j
N
.Figure 6
Workflow involved in signal preprocessing.The moving average filter is a simple low-pass filter. The cutoff frequency in terms of moving average is given by (5), where f
s, f
c, andN are the sampling frequency (50 Hz), cutoff frequency, and number of taps (8 taps), respectively. Consider(5)
f
c
=
0.443
f
s
N
.Equation (5) is obtained from (6), whereN is the number of filter taps and f is equal tof
c
/
f
s. Consider(6)
H
f
=
sin
⁡
π
f
N
N
sin
⁡
π
f
,
when
H
f
is
-
3 dB
.An enlarging process (X
enlarge) is also used to enlarge the signal characteristics using (7), as follows:(7)
X
enlarge
n
=
X
ma
n
10
2
,
X
ma
n
≥
0
,
X
enlarge
n
=
X
ma
n
,
X
ma
n
<
0
.Finally, an 8-tap (N) integration process (X
i
n
t) is then applied to enlarge and smooth, wherej represents the number of data points from n
-
N to n, as follows:(8)
X
i
n
t
n
=
∑
j
=
n
-
N
n
X
enlarge
j
.Figure7 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 (
input
(
n
)
<
input
(
n
-
1
)
). 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.Table 1
Relationship between peak-to-valley amplitude and adaptive threshold.
Peak amplitude (m/s2)
Peak-to-valley amplitude
Adapt. THR.(number of samples (second))
Walking status
<1.25
<50
Resting
1.25~1.36
50~200
22 (0.44)
Walking
1.36~1.44
200~300
20 (0.40)
↓
1.44~1.50
300~500
17 (0.34)
1.50~2.03
500~650
15 (0.30)
2.03~2.25
650~850
13 (0.26)
2.25~2.61
850~1100
11 (0.22)
2.62~2.82
1100~1600
10 (0.20)
>2.82
>1600
9 (0.18)
RunningFigure 7
Step detection algorithm.Figure 8
Step signal: (a) before preprocessing and (b) peak detection.
(a)
(b)


### 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 usingCardioSoft [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 andYamax SW200), the accuracy and reliability of which are proven [29, 30].HJ-720 detects step using dual accelerometers, whereas theSW200 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 fromGE 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:(9)
Accuracy
=
1
-
∑
Failed
_
Beat
∑
RB
×
100
%
.The accuracy of step detection was evaluated by calculating the difference (DEF
SC) 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 (DER
SC) is defined as follows:(10)
DEF
SC
=
RSC
-
DSC
,
(11)
DER
SC
=
1
-
DEF
SC
RSC
×
100
%
.


## 2.1. System Architecture

The proposed monitoring system consists of three parts: a wireless wearable device, a smartphone, and a remote server. Figure1 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.Figure 1
System architecture.


## 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 Figure2. 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).Figure 2
Block diagram of wireless wearable device.Figure 3
Prototype wearable device: (a) left-top and right-top point of view and (b) device with cover and belt.
(a)
(b)


### 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.Figure 4
Block diagram of ECG circuits.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.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.Figure 4
Block diagram of ECG circuits.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.Figure 5
GUI on smartphone showing the various functions.


## 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:(1)
Exercise
_
Intensity
=
HR
Max
⁡
_
HR
×
100
%
,
(2)
Max
⁡
_
HR
=
220
-
Age
.


## 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 thex-axis data (
X
(
n
)
) of the signal from the accelerometer, where n 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 (X
subdc) is used to remove the DC offset from the band-pass filter output (X
band). This is achieved by reducing each data sample using the average data point. The number of Len is 43, and j represents data number from n
-
Len
-
1 to n
-
1. Third, we implement an 8-tap moving average filter to smooth the signal (X
ma). The formulations of baseline wandering removal and moving average are given in (3) and (4), respectively. Consider(3)
X
subdc
n
=
X
band
n
-
∑
j
=
n
-
Len
-
1
n
-
1
X
band
j
Len
,
(4)
X
ma
n
=
∑
j
=
n
-
N
n
X
subdc
j
N
.Figure 6
Workflow involved in signal preprocessing.The moving average filter is a simple low-pass filter. The cutoff frequency in terms of moving average is given by (5), where f
s, f
c, andN are the sampling frequency (50 Hz), cutoff frequency, and number of taps (8 taps), respectively. Consider(5)
f
c
=
0.443
f
s
N
.Equation (5) is obtained from (6), whereN is the number of filter taps and f is equal tof
c
/
f
s. Consider(6)
H
f
=
sin
⁡
π
f
N
N
sin
⁡
π
f
,
when
H
f
is
-
3 dB
.An enlarging process (X
enlarge) is also used to enlarge the signal characteristics using (7), as follows:(7)
X
enlarge
n
=
X
ma
n
10
2
,
X
ma
n
≥
0
,
X
enlarge
n
=
X
ma
n
,
X
ma
n
<
0
.Finally, an 8-tap (N) integration process (X
i
n
t) is then applied to enlarge and smooth, wherej represents the number of data points from n
-
N to n, as follows:(8)
X
i
n
t
n
=
∑
j
=
n
-
N
n
X
enlarge
j
.Figure7 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 (
input
(
n
)
<
input
(
n
-
1
)
). 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.Table 1
Relationship between peak-to-valley amplitude and adaptive threshold.
Peak amplitude (m/s2)
Peak-to-valley amplitude
Adapt. THR.(number of samples (second))
Walking status
<1.25
<50
Resting
1.25~1.36
50~200
22 (0.44)
Walking
1.36~1.44
200~300
20 (0.40)
↓
1.44~1.50
300~500
17 (0.34)
1.50~2.03
500~650
15 (0.30)
2.03~2.25
650~850
13 (0.26)
2.25~2.61
850~1100
11 (0.22)
2.62~2.82
1100~1600
10 (0.20)
>2.82
>1600
9 (0.18)
RunningFigure 7
Step detection algorithm.Figure 8
Step signal: (a) before preprocessing and (b) peak detection.
(a)
(b)


## 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 usingCardioSoft [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 andYamax SW200), the accuracy and reliability of which are proven [29, 30].HJ-720 detects step using dual accelerometers, whereas theSW200 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 fromGE 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:(9)
Accuracy
=
1
-
∑
Failed
_
Beat
∑
RB
×
100
%
.The accuracy of step detection was evaluated by calculating the difference (DEF
SC) 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 (DER
SC) is defined as follows:(10)
DEF
SC
=
RSC
-
DSC
,
(11)
DER
SC
=
1
-
DEF
SC
RSC
×
100
%
.


## 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 fromCardioSoft. Figures 9 and 10 present the raw ECG data obtained from the two devices at walking and running speeds, respectively.Figure 9
Comparison of raw ECG data under walking conditions:CardioSoft (a) and the proposed device (b).
(a)
(b)Figure 10
Comparison of raw ECG data under running conditions:CardioSoft (a) and the proposed device (b).
(a)
(b)


### 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 Table2, 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%.Table 2
ECG peak detection results in MIT-BIH ST Change Database.
Data no.
RB (beats)
FP
FN
Failed beats
Data no.
RB (beats)
FP
FN
Failed beats
300
2558
2
0
2
314
2121
6
1
7
301
2497
4
3
7
315
3274
1
36
37
302
2113
3
0
3
316
3351
1
1
2
303
3005
2
13
15
317
2776
0
26
26
304
1852
1
0
1
318
3531
3
6
9
306
6527
4
0
4
320
3135
0
7
7
307
2469
10
0
10
321
2115
3
0
3
308
2299
14
2
16
322
1508
0
4
4
309
5149
0
0
0
323
5290
5
0
5
310
2410
0
2
2
324
1740
3
0
3
311
3009
1
0
1
325
1465
1
0
1
312
2340
12
4
16
326
2075
2
1
3
313
2701
2
0
2
327
1270
1
0
1
Total
72580
81
106
187


### 3.3. HR Detection in Treadmill Test

Table3 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 theGE 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%.Table 3
HR detection accuracy for one subject at 1.8 km/h.
Data no.
Our Device
GE
Err.
Acc. (%)
Data No.
Our Device
GE
Err.
Acc. (%)
1
100
101
-
1
99
16
99
98
1
99
2
102
104
-
2
98
17
98
96
2
98
3
104
105
-
1
99
18
97
96
1
99
4
106
106
0
100
19
98
99
-
1
99
5
106
104
2
98
20
99
100
-
1
99
6
104
101
3
97
21
100
100
0
100
7
101
99
2
98
22
100
98
2
98
8
100
98
2
98
23
99
96
3
97
9
100
98
2
98
24
97
95
2
98
10
99
99
0
100
25
96
96
0
100
11
99
98
1
99
26
96
96
0
100
12
98
96
2
98
27
96
96
0
100
13
97
96
1
99
28
96
95
1
99
14
98
97
1
99
29
96
94
2
98
15
99
99
0
100
30
96
94
2
98
Average
98.7Table 4
HR detection results in treadmill test.
Speed (km/h)
1.8
2.7
3.6
4.5
5.4
6.3
7.2
8.1
9.0
Accuracy (%)
98.74
98.67
98.91
98.83
98.92
98.96
98.90
99.06
99.04
Avg. (%)
98.89Figure 11
Comparison of HR values obtained from the proposed device and the GE Dash 3000.


### 3.4. Step Counting Accuracy in Treadmill Test

Table5 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.Table 5
Step detection results from one subject in treadmill test.
Treadmill speeds(km/h)
RSC(steps)
ADEFS
C (steps)
BDEFS
C (steps)
CDEFS
C (steps)
ADERS
C  (%)
BDERS
C (%)
CDERS
C  (%)
1.8
144
-
6
-
6
-
3
95.83
95.83
97.92
2.7
155
0
-
3
-
26
100.00
98.06
83.23
3.6
164
-
2
-
2
-
16
98.78
98.78
90.24
4.5
173
1
-
2
5
99.42
98.84
97.11
5.4
184
0
0
-
1
100.00
100.00
99.46
6.3
200
-
6
-
2
-
1
97.00
99.00
99.50
7.2
216
-
4
-
3
1
98.15
98.61
99.54
8.1
225
1
-
10
4
99.56
95.56
98.22
9
237
1
1
9
99.58
99.58
96.20
Average
98.70
98.25
95.71
A: proposed device, B: Omron, and C: Yamax.Table 6
Step detection accuracy for all subjects.
Treadmill speeds(km/h)
ADERS
C (%)
BDERS
C (%)
CDERS
C (%)
1.8
98.07
72.04
74.63
2.7
98.19
95.40
76.05
3.6
99.23
98.67
90.56
4.5
99.55
98.94
96.73
5.4
99.32
98.35
98.38
6.3
98.78
98.81
99.04
7.2
98.74
96.08
98.92
8.1
99.22
96.14
99.22
9
99.58
96.74
97.81
Average
98.96
94.57
92.37


### 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. Table7 lists the consumption of current by the main components in each of the working modes.Table 7
Current consumption by component in sensor module under various working modes.
Working mode
Sensor module status
Currentconsumption (mA)
Mode 1
Standby
1
Mode 2
BLE is not connected
6
Mode 3
Execution of HR/SC algorithm and transmission of calculated data
15
Mode 4
Execution of HR/SC algorithm and transmission of calculated and raw data
19


## 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 fromCardioSoft. Figures 9 and 10 present the raw ECG data obtained from the two devices at walking and running speeds, respectively.Figure 9
Comparison of raw ECG data under walking conditions:CardioSoft (a) and the proposed device (b).
(a)
(b)Figure 10
Comparison of raw ECG data under running conditions:CardioSoft (a) and the proposed device (b).
(a)
(b)


## 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 Table2, 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%.Table 2
ECG peak detection results in MIT-BIH ST Change Database.
Data no.
RB (beats)
FP
FN
Failed beats
Data no.
RB (beats)
FP
FN
Failed beats
300
2558
2
0
2
314
2121
6
1
7
301
2497
4
3
7
315
3274
1
36
37
302
2113
3
0
3
316
3351
1
1
2
303
3005
2
13
15
317
2776
0
26
26
304
1852
1
0
1
318
3531
3
6
9
306
6527
4
0
4
320
3135
0
7
7
307
2469
10
0
10
321
2115
3
0
3
308
2299
14
2
16
322
1508
0
4
4
309
5149
0
0
0
323
5290
5
0
5
310
2410
0
2
2
324
1740
3
0
3
311
3009
1
0
1
325
1465
1
0
1
312
2340
12
4
16
326
2075
2
1
3
313
2701
2
0
2
327
1270
1
0
1
Total
72580
81
106
187


## 3.3. HR Detection in Treadmill Test

Table3 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 theGE 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%.Table 3
HR detection accuracy for one subject at 1.8 km/h.
Data no.
Our Device
GE
Err.
Acc. (%)
Data No.
Our Device
GE
Err.
Acc. (%)
1
100
101
-
1
99
16
99
98
1
99
2
102
104
-
2
98
17
98
96
2
98
3
104
105
-
1
99
18
97
96
1
99
4
106
106
0
100
19
98
99
-
1
99
5
106
104
2
98
20
99
100
-
1
99
6
104
101
3
97
21
100
100
0
100
7
101
99
2
98
22
100
98
2
98
8
100
98
2
98
23
99
96
3
97
9
100
98
2
98
24
97
95
2
98
10
99
99
0
100
25
96
96
0
100
11
99
98
1
99
26
96
96
0
100
12
98
96
2
98
27
96
96
0
100
13
97
96
1
99
28
96
95
1
99
14
98
97
1
99
29
96
94
2
98
15
99
99
0
100
30
96
94
2
98
Average
98.7Table 4
HR detection results in treadmill test.
Speed (km/h)
1.8
2.7
3.6
4.5
5.4
6.3
7.2
8.1
9.0
Accuracy (%)
98.74
98.67
98.91
98.83
98.92
98.96
98.90
99.06
99.04
Avg. (%)
98.89Figure 11
Comparison of HR values obtained from the proposed device and the GE Dash 3000.


## 3.4. Step Counting Accuracy in Treadmill Test

Table5 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.Table 5
Step detection results from one subject in treadmill test.
Treadmill speeds(km/h)
RSC(steps)
ADEFS
C (steps)
BDEFS
C (steps)
CDEFS
C (steps)
ADERS
C  (%)
BDERS
C (%)
CDERS
C  (%)
1.8
144
-
6
-
6
-
3
95.83
95.83
97.92
2.7
155
0
-
3
-
26
100.00
98.06
83.23
3.6
164
-
2
-
2
-
16
98.78
98.78
90.24
4.5
173
1
-
2
5
99.42
98.84
97.11
5.4
184
0
0
-
1
100.00
100.00
99.46
6.3
200
-
6
-
2
-
1
97.00
99.00
99.50
7.2
216
-
4
-
3
1
98.15
98.61
99.54
8.1
225
1
-
10
4
99.56
95.56
98.22
9
237
1
1
9
99.58
99.58
96.20
Average
98.70
98.25
95.71
A: proposed device, B: Omron, and C: Yamax.Table 6
Step detection accuracy for all subjects.
Treadmill speeds(km/h)
ADERS
C (%)
BDERS
C (%)
CDERS
C (%)
1.8
98.07
72.04
74.63
2.7
98.19
95.40
76.05
3.6
99.23
98.67
90.56
4.5
99.55
98.94
96.73
5.4
99.32
98.35
98.38
6.3
98.78
98.81
99.04
7.2
98.74
96.08
98.92
8.1
99.22
96.14
99.22
9
99.58
96.74
97.81
Average
98.96
94.57
92.37


## 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. Table7 lists the consumption of current by the main components in each of the working modes.Table 7
Current consumption by component in sensor module under various working modes.
Working mode
Sensor module status
Currentconsumption (mA)
Mode 1
Standby
1
Mode 2
BLE is not connected
6
Mode 3
Execution of HR/SC algorithm and transmission of calculated data
15
Mode 4
Execution of HR/SC algorithm and transmission of calculated and raw data
19


## 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.


## 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.



---

*Source: 6850168-2016-05-12.xml*