Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

An IoT based low-cost heart rate measurement

system employing PPG sensors


Lena Gohlke1 , Frederik Dreyer1 , Monica Pimiento Álvarez1 , and Jens Anders1
1
Institute of Smart Sensors, University of Stuttgart, D-70569 Stuttgart, Germany

Abstract—In this paper, we present a low-cost system for heart


rate measurements. The device is easily usable without medical
knowledge or training, and it works without prior calibration.
The sensor mainly targets for health monitoring people in rural
areas of emerging countries, who do not have easy access to
medical examinations. While there are already many devices
on the market that can perform heart rate and blood pressure
measurements, the focus of the presented work is on reducing the
cost while maintaining sufficient accuracy and providing online
access to the measured data for medical personnel. The presented
prototype uses commercial PPG sensors and can measure heart
rates between 30 bpm and 200 bpm with an absolute accuracy of
±10 bpm. The total cost of the prototype is below 30 USD.
Keywords—PPG, Photoplethysmography, heart rate measure-
ment, IoT, low-cost medical sensors, telehealth, telemedicine
Fig. 1. Measurement setup and operating principle of the PPG sensor.
I. I NTRODUCTION
According to the 2018 census, approximately 11 million A. Photoplethysmography
Colombians live in rural areas. Only 17 % of the population
has access to health services due to the poor infrastructure One possible way to measure heart rate and blood pressure
and large distances to the nearest hospital. Additionally, the is by photoplethysmography (PPG). PPG is a cuff-less and
consequences of violence in the country prevent development non-invasive method to measure changes in blood volume [4].
in these areas. Overall, this leads to increased health risks and As shown in Fig. 1, an LED or an array of LEDs is used
an unmet medical need in the vulnerable population. to emit light that is partly absorbed and partly reflected by
However, in many areas of the country, the project ”vive the tissue. A photodiode (PD) detects the reflected part of the
digital” [1] provides access to computing and internet infras- light, which is a function of the blood volume in the tissue.
tructure. These access points offer great potential to implement Since each heartbeat alters the actual blood volume in the
automated screening tests in rural areas. In the envisioned tissue, the time trace of the absorbed light signal can be used
scenario, people in rural areas would utilize low-cost point- to monitor the heart rate. Unfortunately, the LED signal is
of-care instruments, which acquire medical data. Then, these also reflected by bones, which, together with motion artifacts,
data are made available online to the medical staff, who ambient light fluctuations, and tissue deformation, lead to an
electronically communicate their first diagnosis and treatment increased noise floor and signal artifacts in the measured PPG
suggestion to the patients. signal that complicate the extraction of the heart rate from
First-level medical examinations utilize a variety of parame- the raw PPG data. To measure blood pressure from PPG data,
ters, including body temperature, blood pressure, heart rate, two spatially displaced sensors are required. Then, the linear
and respiratory rate, to examine the general state of health relationship between blood pressure and the speed of blood
of the patient [2]. To make the remote assessment of these traveling through arteries [5] can be used to extract the blood
parameters widely accessible in rural areas, it is necessary to pressure from the PPG data of the two sensors. Therefore, as
measure these four parameters with low-cost, easy-to-use, and shown in Fig. 1, in the proposed system, we simultaneously
low-maintenance devices that provide an IoT functionality for acquire the PPG signals from two PPG sensors, one placed at
an online assessment by a remote physician. the wrist and another one at the fingertip of the patient.

II. H EART RATE SENSING B. PPG sensor details


In this paper, we focus on the development of a heart rate Today, there are mainly two types of commercially available
sensor as a first building block towards a complete toolkit for PPG devices: sport watches and finger clips. Sport watches are
medical diagnosis in rural areas in emerging countries. The used for non-medical pulse measurements and mostly employ
resting heart rate is typically between 40 bpm and 109 bpm green LEDs. For medical measurements, finger clips with red
[3], establishing the minimum dynamic range of the heart rate LEDs are used to measure heart rate and oxygen saturation
sensor. simultaneously [6]. To find an optimal wavelength, one needs

978-1-7281-6801-2/20/$31.00 ©2020 IEEE

Authorized licensed use limited to: Auckland University of Technology. Downloaded on December 21,2020 at 14:57:21 UTC from IEEE Xplore. Restrictions apply.
to take both the absorption spectrum of haemoglobin and the raw measured total raw
signal measured signal
penetration depth of the light into account. Here, while blue first half raw
measured signal
and green light are good choices when only considering the PSD +
second half raw
haemoglobin absorption spectrum [7], according to the Beer- digital filter +
measured signal
normalizing
Lambert law, only infrared light can penetrate sufficiently deep
into the tissue to reach the arteries that carry the main pulse ignore peaks
lower than 6 %
signal. In contrast, green and blue light only measure the of the highest
one
capillary pulsation directly underneath the skin. From the light
reflected by the capillaries, the pulse signal is only measurable
indirectly, due to a higher density of capillaries when the
pulse arrives in the artery. Therefore, the signals measured +

with green LEDs contain less information and a weaker signal.


However, due to the lower penetration depth, these signals also add peaks from IR and
red signal - choose
contain fewer motion artifacts. In summary, a PPG signal of highest peak
red or infrared light contains more information but also has to
deal with more motion artifacts. calculate heart rate from
red signal of highest
peak
C. Proposed sensor platform
all peaks
The sensing device presented in this paper is illustrated in HR of total
checked HR of second
no signal
Fig. 1. It is, in principle, capable of measuring heart rate, blood half
HRs
yes
pressure, and oxygen saturation. Here, a precise heart rate esti- HR of first half
delete first peak if it is HRf
mation is critical for an accurate blood pressure measurement not the fundamental
[8]. The main features of the proposed sensor are ease of use corresponding to the
second peak and the HRs-10<HR
and maintenance (simple cleaning), low-cost manufacturability second peak is the <HRs+10
fundamental of the and heart rate
and operation as well as IoT compatibility while providing third peak HRf-10<HR yes

sufficient accuracy for first-level medical examinations. The <HRf+10


first peak
no
main component of the presented sensing platform is the corresponds to measure again
heart rate
commercial PPG sensor MAX30102 from Maxim integrated
[9]. This sensor employs both red and infrared LEDs for
Fig. 2. Flow chart of the algorithm used for pulse detection.
reflective PPG measurements. To be able to measure both heart
rate and blood pressure, the proposed platform combines two
PPG sensors, one placed at the wrist and a second one at the tip III. S YSTEM VERIFICATION ON SYNTHETIC DATA
of the index finger. An I2 C interface transfers the measured
data from the two sensors to a Raspberry Pi. All required As a first step, we used a synthetic data set [10] to verify the
signal processing is performed on the Raspberry Pi, and the algorithm of Fig. 2. This data set consists of 192 PPG signals
processed data are made remotely accessible via a website. with different heart rates ranging from 30 bpm up to 200 bpm.
From each signal, only the first 20 seconds were used for the
D. Signal processing heart rate calculation. At first, the python function detects all
The signal processing is implemented using the scipy pack- peaks in the PSD corresponding to the time series. Every peak
age in Python. Fig. 2 shows a flow chart of the main functions. with an intensity lower than 6 % of the highest detected peak
First, the power spectral density (PSD) is calculated employing is then discarded since it is most likely caused by noise and
a flattop windowing function. Next, digital band-pass filtering interferences. The threshold of 6 % was empirically chosen.
of the PPG signal with a passband between 0.45 Hz, and Subsequently, two peaks that have a distance of less than
6.7 Hz is applied. Here, the lower cutoff frequency of 0.45 Hz 0.1 Hz are merged. If three peaks have a distance less than
corresponds to a heart rate of 27 bpm, and the upper frequency 0.4 Hz, these peaks are likely to have their origin in side lobes
of 6.7 Hz to 400 bpm. Typically, the first peak in the frequency of the windowing function. In this case, only the middle peak
domain corresponds to the heart rate. All following peaks is kept, and the two side peaks are discarded. The frequency
should be harmonics of this frequency. However, due to threshold of 0.4 Hz arises from the typical human heart rate
interferences, other peaks, which are not correlated with the between 40 and 109 bpm. Fig. 3 is used to illustrate the peak
heart rate, can appear in the frequency spectrum. Initially, post-processing. In the figure, to be deleted peaks with an
all peaks are detected and stored in a list. Then the peaks, intensity lower than 6 % are marked with a red cross. Peaks
unrelated to the heart rate are eliminated by the algorithm of that will be discarded due to the windowing threshold are
Fig. 2. Finally, the first peak is checked for consistency by marked with an orange cross. Peaks that are not discarded
testing whether harmonics of this peak occur in the spectrum. in this initial sorting step are marked with a blue cross. Next,
This peak is deleted if it is not the fundamental corresponding the algorithm checks the harmonic relation between the first
to the second peak. peak and the second peak in the list. If the first peak is not

Authorized licensed use limited to: Auckland University of Technology. Downloaded on December 21,2020 at 14:57:21 UTC from IEEE Xplore. Restrictions apply.
the fundamental corresponding to the second peak, but the the time domain signal that are, however, spatially separated
second peak is the fundamental corresponding to the third from the heart signal in the PSD. In this case, the highest peak
peak, the first peak is likely to originate from interferences of the PSD signal corresponds directly to the heart rate.
and is therefore discarded. The first peak of the list after this
1.00

reflection
last verification step is used for the heart rate calculation. The
peak found by the algorithm in Fig. 3 is marked with a green 0.95

circle. 0 10 20 30 40 [s] 50
1

reflection
1.0 0

0 10 20 30 40 [s] 50
1

amplitude
PSD

0.5

0
1 2 3 4 5 6 [Hz] 7
0.0
1 2 3 4 5 6 7
frequency [Hz] Fig. 5. Time signal after measurement (top), filtered time signal (middle) and
PSD of processed signal (bottom); red curve - red light, blue curve - infrared
Fig. 3. Illustration of the peak postprocessing algorithm on synthetic data. light.

This algorithm has been applied to the synthetic data set. In To avoid the effect of short term disturbances and thereby im-
this experiment, no false heart rate detections due to selecting prove the robustness of the heart rate detection, we performed
the wrong spectral peaks occurred, and the maximum deviation three individual heart rate estimations. In a first estimation,
from the specified heart rates was ±3 bpm. Here, it should be we used the entire time signal of 50 s to calculate the heart
noted that commercial pulse monitors display a deviation of rate (HR) according to Fig. 2. Then we split the time signal
up to ±5 bpm [11]. into two parts of 25 s each, and reran the algorithm of Fig. 2
on these shorter time signals. If HR is within ±10 bpm of
IV. M EASUREMENTS HRfirst (HRf) or HRsecond (HRs), the heart rate measurement
In this section, we have applied the sensor of Fig. 1 for is considered valid, and the result is displayed. Otherwise, the
measuring the heart rate of human beings in vivo. Reference user is requested to remeasure.
measurements have been performed using a commercial blood In approximately 70 % of all measurements, the algorithm
pressure and pulse measurement device (Medisana BU-92E) calculates a heart rate within ±10 bpm of the reference value.
with a heart rate measurement accuracy of ±5 bpm [11]. To In 62 % of all measurements, the deviation from the reference
measure the heart rate, we have recorded time traces of 50 s value was better than ±5 bpm. Due to patient motion during
with a sampling rate of 400 Hz/channel, using both the infrared the measurement, in about 29 % of the cases, the algorithm
and the red LED signals from both the wrist and the fingertip requested the patient to remeasure. In only 2 % of the cases, a
sensors, i. e. a total of four signals per measurement. Since wrong heart rate outside a ±10 bpm window of the reference
it was found that the fingertip signals are less affected by value was displayed. A total of 45 data sets was recorded and
motion artifacts, we continued to use only those for the heart analyzed.
rate estimation. Thanks to the availability of both the red and
the infrared data, we could extend the algorithm of Fig. 2 by
measure again (28.9 %) wrong heart rate (2.2 %)
the blue and purple blocks, in which the two PSDs of the heart rate within +/-5 bpm (62.2 %) heart rate within +/-10 bpm (6.7 %)
individual time traces are added after the signal processing
described in section III. Example PSDs of measured data of Fig. 6. Results of the heart rate calculation applied to data recorded from 45
healthy patients (average age: 25 years (21 years to 31 years), average weight:
all four individual signals and the sum of the PSDs of the 74 kg (58 kg to 100 kg), average height: 1,78 m (1,62 m to 1,95 m ))
fingertip sensor data are shown in Fig. 4.

1.00
V. C ONCLUSION AND OUTLOOK
infrared finger
0.75 red finger In this paper, we have presented a sensing platform that is
infrared hand capable of measuring the heart rate, blood pressure, and blood
PSD

0.50 red hand oxygenation. The total cost of a prototype system including
infrared and red signal added - finger
0.25 the PPG sensors, the Raspberry Pi, and the 3D printed parts is
0.00 less than 30 USD. The functionality of the device in measuring
1 2 3 4 5 6 7 the heart rate using a custom developed algorithm has been
frequency [Hz]
successfully demonstrated on data recorded from 45 patients
Fig. 4. PSD of the four measured signals. with a very good agreement between our low-cost system and
a medical device. Our next steps will be to incorporate blood
The raw data of one data set, the filtered raw data, and the PSD pressure and blood oxygenation measurements before we will
can be seen in Fig. 5, clearly highlighting the interferences in deploy the device in field studies in Colombia.

Authorized licensed use limited to: Auckland University of Technology. Downloaded on December 21,2020 at 14:57:21 UTC from IEEE Xplore. Restrictions apply.
R EFERENCES
[1] Ministerio de tecnologı́as de la información y las comunicaciones,
Departamento nacional de ciencia tecnologı́a e innovación - colciencias,
“Convocatoria vive digital regional,” 2015.
[2] T. Hall, D. Y. Lie, T. Q. Nguyen, J. C. Mayeda, P. E. Lie, J. Lopez,
and R. E. Banister, “Non-contact sensor for long-term continuous vital
signs monitoring: A review on intelligent phased-array doppler sensor
design,” Sensors, vol. 17, no. 11, p. 2632, 2017.
[3] G. Quer, P. Gouda, M. Galarnyk, E. J. Topol, and S. R. Steinhubl,
“Inter-and intraindividual variability in daily resting heart rate and its
associations with age, sex, sleep, bmi, and time of year: Retrospective,
longitudinal cohort study of 92,457 adults,” Plos one, vol. 15, no. 2, p.
e0227709, 2020.
[4] S. S. Mousavi, M. Firouzmand, M. Charmi, M. Hemmati,
M. Moghadam, and Y. Ghorbani, “Blood pressure estimation from
appropriate and inappropriate ppg signals using a whole-based method,”
Biomedical Signal Processing and Control, vol. 47, pp. 196–206, 2019.
[5] A. M. Johnson, R. Jegan, and X. A. Mary, “Performance measures
on blood pressure and heart rate measurement from ppg signal for
biomedical applications,” in 2017 International Conference on Innova-
tions in Electrical, Electronics, Instrumentation and Media Technology
(ICEEIMT). IEEE, 2017, pp. 311–315.
[6] O. Abdallah, K. A. Alam, and A. Bolz, “Towards noninvasive monitoring
of total hemoglobin concentration and fractional oxygen saturation
based on earlobe pulse oximetry,” in 4th European Conference of
the International Federation for Medical and Biological Engineering.
Springer, 2009, pp. 1738–1742.
[7] S. Prahl, Tabulated Molar Extinction Coefficient for
Hemoglobin in Water, March 1998. [Online]. Available:
https://omlc.org/spectra/hemoglobin/summary.html
[8] R. Lazazzera, Y. Belhaj, and G. Carrault, “A new wearable device for
blood pressure estimation using photoplethysmogram,” Sensors, vol. 19,
no. 11, p. 2557, 2019.
[9] Maxim Integrated Products, Inc., “MAX30102, High-Sensitivity Pulse
Oximeter and Heart-Rate Sensor for Wearable Health,” 10/2018.
[10] P. H. Charlton, T. Bonnici, L. Tarassenko, D. A. Clifton, R. Beale, and
P. J. Watkinson, “An assessment of algorithms to estimate respiratory
rate from the electrocardiogram and photoplethysmogram,” Physiologi-
cal measurement, vol. 37, no. 4, p. 610, 2016.
[11] Medisana, ecomed, “Blood pressure monitor bu-92e,” 2014.

Authorized licensed use limited to: Auckland University of Technology. Downloaded on December 21,2020 at 14:57:21 UTC from IEEE Xplore. Restrictions apply.

You might also like