IoT Based Wearable Smart Health Monitoring System
IoT Based Wearable Smart Health Monitoring System
1
CERTIFICATE
VISHWAKARMA INSTITUTE OF TECHNOLOGY
This is to certify that the report entitled “IOT Based Wearable Smart Health
Monitoring System” has been submitted in the academic year 2019-20 Sem VI
by
2
ACKNOWLEDGEMENT
3
IOT Based Wearable Smart Health Monitoring System
Abstract
An important part of our life, internet has enabled many machines and devices
we use in everyday life to be monitored and controlled remotely through Internet
of Things (IOT) technology. Thanks to IOT technology, smart health applications
have become a rapidly growing sector. For individuals with heart disease, the
Heart Rate (HR), Heart Rate Variability (HRV) and Body Temperature (BT)
values are considered vital signs that must be measured regularly. In this study, an
android-based application is developed that can monitor HR, HRV and CT
parameters for cardiovascular patients who should be under constant observation.
The measuring system, which consists of wearable sensors, constantly measures
patient signs. Then send the measured signals to android interface via wireless
connection. If the predetermined critical values for the patient are exceeded, the
HR, HRV, CT values and also the real time location of patient is sent both to
family members and doctor as e-mail and twitter notification. The wearable
measurement system allows patients to be mobile in their own social environment,
allowing them to live their lives in confidence.
Keywords: Internet of things, smart health, Arduino pro mini, pulse sensor.
4
1. Introduction:
5
Continuous monitoring of a person's health through wearable biomedical
devices is now possible with many wearable health kits. However, real-time
analyzes and estimates, warnings and alarms on health hazards are not
adequately addressed in these devices.
In this study, a wearable device is designed to measure vital values
such as HR, HRV, and CT, which directly concern heart health. The pulse sensor
on the device and the heart related data from the patient's fingertip are analyzed
with the Arduino Pro Mini controller. The results of this analysis are transferred
to the patient's mobile phone via Bluetooth connection.
Thanks to the "Smart Health" interface created with the Blynk application
developer, the data transmitted to the mobile phone is displayed on the screen in
real time. When the patient's vital parameters reach critical levels, an audible-
visual alert is sent to the patient and family members with the Android-based
application. Concurrently, this data and the patient's position information are sent
to the patient's family members and the her/his doctor as e-mail and twitter
notification. The main purpose of the device is to increase the chances of survival
by providing medical assistance to the patient within the first few hours in case of
a possible heart attack.
6
2. Materials and Methods
Parameters such as HR, HRV and BT, which are considered to be important
health status indicators, have a tremendous diagnostic value. Until recently,
continuous monitoring of these physiological parameters has been possible only
in the hospital environment, and nowadays with the development of wearable
technology, these parameters can be monitored accurately, continuously and in
real time.
7
Some of these values are HRV, PR, QRS interval, RR interval, QT interval and ST
interval.
Heart rate variability (HRV): Heart rate variability is an important parameter in
determining cardiac autonomic functions. HRV varies according to
psychophysiological conditions such as stress, relief, exercise, as well as age and
health. It is obtained by examining short-term (3-5 min) or long-term (24 h)
signals.
PR interval : PR interval is the time between the P wave and the QRS complex.
Normal PR interval is between 120-200 ms.
QRS interval: Normal QRS interval is between 70-100 ms.
RR interval, IBI (Inter beat interval): It's the time between two heart beats. This
time varies depending on the heart rate. Normal RR interval is between 600-
1000 ms.
QT interval: QT interval is the time from the beginning of the QRS complex to
the end of the T wave. QT interval and HR are inversely proportional. It also
varies with age and sex. Normal range is 320-440 ms.
ST interval : ST interval is inversely proportional to HR and the normal range is 0-
150 ms.
The heartbeat is detected by the reflection of the light emitted by the green LED
on the APDS-9008 light sensor. In Figure 2 shows the circuit diagram of the
pulse sensor. The low pass filter used at the output of the light sensor clears the
signal from high frequency noise.
After the output of the filter, the signal is amplified by the MCP-6001 Op-Amp.
The analog signal from this amplifier has a frequency of 0,5 to 4 Hz.
8
V / 2 which is half the supply voltage. If the sensor cannot make a contact, the
V / 2 value is taken from the sensor output.
The Arduino Pro Mini is a low cost 8 bit controller that is the smallest of the
Arduino series. Due to its small size, it is often preferred in battery operated
and portable applications. For Arduino Pro Mini has 3.3V/5V voltage and 8/16
MHz frequency options.
9
Table 1. Technical specifications of Arduino Pro Mini.
Specifications Value
MCU 8 bit
ATmega328P
Frequency 16 MHz
Input/output 14xDIO
ADC Pin 6x10 Bit
Operating 5V
Voltage
IO Current 40 mA
Program 32kB
Memory
Wi-Fi -
Bluetooth is a communication protocol that uses the frequency band 2,4-2.48 GHz,
which is often used in short distance communications applications. The
communication distance between Bluetooth modules is usually between 10 and 20
m.
Figure 5. The front and back side of the HC-06 Bluetooth module.
10
This distance has been increased by about 100 meters with new technologies.
However, these newly developed Bluetooth modules are not produced in the
modular structure suitable for amateur projects yet.
11
Arduino Software(IDE):
The open source Arduino IDE editor allows you to write code and easily load it
to the controllers via USB. The Arduino IDE supports many different controllers
besides Arduino kits (Uno, Pro Mini, Mega, Due etc.). This software works on
Windows, Mac OS X and Linux.
The Arduino IDE is written in the Java language and is based on the language
named Processing/Wiring. The libraries are written in C and C ++ languages and
compiled with AVR-GCC and AVR Libc. The code for the "Smart Health" has
been developed using this interface. It is also compatible with advanced
controllers such as Blynk, ESP, Onion Omega, Raspberry Pi, STM32. These
specification of the controllers with bluetooth feature such as ESP32 can be used
for closed circuit communication by consuming low energy on-line. Thanks to all
these features Blynk; IOT offers solutions for developers at low prices and these
users can also benefit from the cloud service at the same time.
12
3. System Architecture
13
inter beat interval (IBI) can be calculated using the PPG wave obtained from the
pulse sensor. he temperature and the sensitivity is very high. Due to its cheap,
stable, and small structure, it is preferred in most sensitive temperature
measurement applications. The sensor output is not linear, so the resistance
values corresponding to each temperature measured in the program are written
in a table. Generally, these values are presented in tables The circuit is first
installed on a board where necessary tests and trials were carried out. The inter
beat interval (IBI) can be calculated using the PPG wave obtained from the pulse
sensor.
Microcontroller code is set to measure the IBI with the timing between moments
when the signal crosses 50% of the wave amplitude during this fast-upward
ramp (PT), as shown in Figure 10. BPM is an average value from every previous
10 IBI beat value.
14
Figure 11. PPG signal for consecutive heartbeats.
(1)
(2)
As shown in Figure 11, after a total of 10 consecutive IBI registrations, the BPM
value is obtained in ms by taking the average of the total IBI values. The
formulas for calculating the IBI value are given in equations 1 and 2. Thanks to
the SMART HEALTH application installed on the mobile phone, all vital data
sent wirelessly by
Arduino Pro Mini can be displayed in real time. In Figure 12a you can see the
"SMART HEALTH" Blynk android interface, in Figure 12b the e-mail sent to
the patient's family members and doctor via internet, and in Figure 12c the sent
twitter notification.
Figure 12. (a) Blynk "SMART HEALTH" User Panel, (b) e-mail notification, (c)
twitter notification.
The location information of the GPS module which is the members and his/her
doctor as a notification. A sample unit of mobile phones can be used by the
Blynk e-mail notification relevant this situation is shown in application. When
a critical event occurs, the application Figure 12b. sends the patient's location
information to the family
15
Real-time PPG signal obtained from the Arduino IDE Serial Monitor, (b) HR,
IBI values and real-time values of the PPG signal.
shows the real-time image of the PPG signal obtained from the serial
monitor of the arduino IDE. The serial monitor also displays instantaneous
HR and IBI values alongside the PPG signal. Figure 13b shows real-time
numerical values of HR, IBI and PPG signals. The successive values of the
pulse sensor form the PPG signal. HR and IBI values are obtained from
these signals as a result of calculations.
16
4. Conclusion
Today, many services can be reached with internet technology and the number
of applications that use this technology is constantly increasing. IoT
technology is expanding day by day to include different sectors and
applications. One of them is the smart health sector and this sector offers
incredible opportunities for us with new applications. The monitoring of the
patients, who should be kept under constant surveillance, in the hospital
environment is very difficult with the existing infrastructure and methods.
Patients under surveillance in hospitals are dependent on bedding and this
makes the patients uncomfortable. Many health problems that require early
diagnosis may cause vital problems for the patient because they cannot be
monitored on time. Early diagnosis is unbelievably important for patients with
heart disease.
In this study, a wireless patient monitoring system is developed that allows
patients to be mobile in their social areas. The developed system
continuously measures the heart rate and body temperature of the patient
and provides monitoring and tracking through an android based interface.
When the patient's vital data reaches a predetermined limit value, the
mobile application alerts the patient and the people in the vicinity. This
warning is made at a volume level that people near the patient can hear. If
there is nobody in the vicinity of the patient who can help him, the patient's
heart rate, body temperature, and coordination information are sent to
family members and the doctor as e-mail and twitter notifications. The
main purpose of the device is to make provide that they get medical aid as
soon as possible, in case of a possible discomfort for heart diseases. So
there will be an increased chance of survival of patients
17
5.References
1. Ashton, K, That ‘internet of things’ thing, RFID journal, 2009, 22(7), 97-
114.
2. Gubbi, J., Buyya, R., Marusic, S., Palaniswami, M, Internet of Things (IoT):
A vision, architectural elements, and future directions, Future generation
computer systems, 2013, 29(7), 1645-1660.
3. Evans, D., The internet of things: How the next evolution of the internet is
changing everything, CISCO white paper, 2011, 1,
1-11.
4. Zanella, A., Bui, N., Castellani, A., Vangelista, L., Zorzi, M., Internet of
things for smart cities, IEEE Internet of Things journal, 2014, 1(1), 22-32.
5. Ejaz, W., Naeem, M., Shahid, A., Anpalagan, A., Jo, M., Efficient energy
management for the internet of things in smart cities, IEEE Communications
Magazine, 2017, 55(1), 84-
91.
6. Rahmani, A. M., Gia, T. N., Negash, B., Anzanpour, A., Azimi, I., Jiang, M.,
Liljeberg, P., Exploiting smart e-Health gateways at the edge of healthcare
Internet-of-Things: A fog computing approach, Future Generation Computer
Systems, 2018, 78, 641-
658.
18