6_Design of Mobile Healthcare Monitoring System
6_Design of Mobile Healthcare Monitoring System
Abstract. This project presents an implementation of wearable, portable, low power consumption,
real-time remote bio-signals monitoring system based on the internet of thing technology. This
implementation provides an improved step-in remote health monitoring field. Numbers of people,
who require health care increase year by year and the conventional bio-signals monitoring systems
require patients' attendance in person inside hospitals. This might cause an inefficient situation to
take care of the patients, especially those who have critical and unstable health conditions.
Therefore, internet technology along with modern electronic devices could offer promising
solutions in this field. Based on that, this project utilizes a mobile application as an IoT platform to
monitor remotely the live ECG signal, heart rate, SPO2, and the body temperature of patients. The
signals are measured and processed by using a microcontroller-based device (Arduino). The main
contribution of this paper is sending an electrocardiogram (ECG signal) to a specific smart mobile
phone to be watched by a doctor. This assists in heart diseases diagnosing before the worst case can
happen. Finally, the obtained results of this project are illustrated on both smartphone and personal
computer (PC) as well.
1. Introduction
IoT technology makes certain physical events can have an impact on other things remotely. Using this
technology can execute controlling or monitoring something somewhere in the world. Additionally, this
technology provides a communication channel between human-to-human, human-to-smart devices, and
smart devices-to-smart devices without human interaction. IoT applications have been increasing by the
time such as smart wearable devices, smart cities, home automation, remote control, and monitor systems.
Also, IoT technology has a modern evolution in healthcare systems and fitness applications. This can be
an essential step to change the conventional healthcare systems which require patients’ existence inside
hospitals or clinic centers to check their health parameters. On the other hand, there are some challenges
of this technology such as data management, security, privacy, human-cloud interface [1].
IoT technology utilizes diverse types of communication protocols for example (IPv6) Wi-Fi, (IPv4)
Wi-Fi, 6LoWPAN, ZigBee, (BLE) Bluetooth Low Energy, Z-Wave, (NFC) Near Field Communication,
SigFox, 2G-3G-4G Cellular, Thread, and LoRaWAN. Each protocol has distinguished properties that
allow IoT project designers to use any protocol to meet their requirements and limits [2, 3]. In this paper,
we used Wi-Fi protocol IEEE 802.11, standard IPv4 address, beside a 3G cellular network to send data
Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution
of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
Published under licence by IOP Publishing Ltd 1
3rd International Conference on Sustainable Engineering Techniques (ICSET 2020) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 881 (2020) 012113 doi:10.1088/1757-899X/881/1/012113
from sensors to mobile application “Blynk”. Moreover, NodeMCU and Arduino UNO microcontrollers
are applied. Arduino microcontroller family has been used in many fields and it is considered in many
experimental models and prototypes [4, 5]. Furthermore, the IoT platform is Blynk mobile application. It
receives, stores, visualizes data, and provides hardware control remotely. To use Blynk four steps must be
accomplished such as downloading the mobile app from Apple Store or Google Play, installing its
libraries on the developer PC, creating widgets inside the app, building the desired hardware design and
writing code. There are a lot of examples in “examples.blynk.cc” to make users familiar with Blynk code
standards. Moreover, this IoT platform includes, besides the Blynk application, the Blynk server which
provides a communication channel between the IoT project’s hardware and the cloud. This server can be
built on a Blynk cloud or a local server in case the IoT system is used in a limited area. Finally, Blynk
libraries are responsible to communicate between the server and the processing instructions. The impactful
thing in Blynk that it is installed in a caregiver smartphone so, the interface layout is constructed on that
phone only. This means that no one can see the data except the caregiver. This keeps the data private and
secure. Finally, this application delivers an opportunity to monitor more than one patient at the same time
by creating a new page for each patient.
In this paper, four health parameters monitored in real-time continuous such as body temperature, ECG
signal, heart rate, SPO2. These health parameters are monitored in the CCU (Coronary Care Unit) rooms
in hospitals. This project is effective equipment for patients who are recovering from a heart attack or
patients who suffer from chronic cardiovascular system issues. It follows up their case whenever and
wherever they are in the world. Some chronic diseases such as the cardiovascular system and diabetic
require continuous monitoring to prevent the situation get worse [8]. Firstly, the body temperature is one
of the vital signals that should be monitored for patients because it informs about patient’s metabolism
situation, some medicines side-effects, and balance rate between heat generation and heat loss. Secondly,
the ECG signal is important to be monitored to prevent cardiac arrhythmia cases such as Bradycardia,
SVT (supraventricular tachycardia), AF (Arterial Fibrillation), VT (ventricular tachycardia), and VF
(Ventricular Fibrillation) which are life-threatening conditions [18][6]. While the heart rate monitoring
can diagnose some cardiac diseases before it happens and making sure the case is stable [7]. Finally, the
SPO2 (Saturation of Peripheral Oxygen) parameter indicates the ratio of oxygenated hemoglobin amount
to the whole hemoglobin amount. The oxygen is a vital element to make body cells work and perform
their functions.
This paper is structured as follows. Section 2 shows a literature review of this IoT application. Next,
Section 3 explains the design and implementation of this project. After that, Section 4 discusses the results
and it performs comparisons between this project’s sensors and trusted medical devices. Finally, Section 5
introduces the conclusion of this work and it gives brief suggestions for future work in this field.
2. Related work
Acute health conditions might lead to sudden death. Many people die suddenly around the world because
of dysfunction in one or more body organs. Before that happen, these organs produce abnormal signs.
These signs, which called bio-signals, can be detected and collected via sensors.
Based on the search scope, the remote healthcare systems based on IoT technology depends on
microcontroller and gateway to upload data. Arduino microcontroller family is used frequently in this
field. Some projects utilize NodeMCU which is ESP8266 based board [9]. While others utilize Arduino
UNO with ESP9266 module [12]. Other projects make matching between one of Arduino boards and
Raspberry Pi board. The processing is performed by the Arduino board and the Raspberry Pi is the
gateway [13]. Moreover, projects depend on Raspberry Pi for processing and uploading data to the IoT
server [15]. However, some projects depend on the Arduino board for processing purposes and utilize the
smartphones as gateway [16].
Sensors connected to the microcontroller via wires like most of the projects [9-15] or via a wireless
protocol such as the HC-06 Bluetooth module [16].
2
3rd International Conference on Sustainable Engineering Techniques (ICSET 2020) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 881 (2020) 012113 doi:10.1088/1757-899X/881/1/012113
There are various types of IoT platforms. Some of them are created via developers from scratch using web
design skills such as Node.js server and WebSocket library also, HTTP server and the developed web-
based GUI interface [9,11,14]. On the other hand, Android Studio provides a good opportunity for mobile
application developers to build up their own healthcare applications, so, some projects depend on that
approach [10,13]. For example, one mobile application is called “Abuelómetro” and another one is called
“3rd Nurse”. Additionally, there are some mobile applications are created for IoT projects in general. As a
result, these types of applications can be utilized for healthcare systems such as Blynk mobile application
[16].
Data storage can be achieved by two methods. One is by storing data in an online (cloud-based)
database such as MySQL and Google Firebase Database [11,13]. However, the other projects depend on
the mobile applications server. This approach is considered less complex than the first approach. For
example, Blynk and Abuelómetro applications save health data on their server [16,10].
The monitored health parameters are almost heart rate and body temperature. The heart rate is
monitored by using two types of sensors one of them is analog [9,11,12,16] and the other one is digital
which usually can monitor the SPO2 as well [10,15]. Secondly, the body temperature is measured by
using two types of sensors LM35 [9,11,12] and thermistor NTC [16]. Furthermore, there are other
parameters such as Galvanic Skin Response (GSR) to detect skin conductivity [13]. This detects skin
conductivity which increases when human is affected emotionally. Also, some projects detect patient
location within an indoor limited area by using the “iBeacon module” instead of the GPS which is less
accurate in the indoor locations [15]. Other projects monitor patients’ safety from falling hard on the
ground by using the fall detector sensor ADXL335 (3-Axis Accelerometer) [15]. Finally, one project
utilizes the AD8232 ECG sensor [14]. This paper did not mention the medical benefits of the real-time
monitoring of ECG. Also, it utilizes a web page to present only the ECG signal without any elegant
layout. There is no possibility to monitor more than one ECG signal. Also, the ECG signal quality was not
efficient. This problem stemmed from the fact that the output signal did not include all the ECG signal
parameters such as P-Q-R-S-T and some of them disappear. Finally, this paper did not verify the signal
practically and accurately. Based on that, the achieved signal in this project cannot be trusted and used for
diagnosing purposes.
Finally, security and privacy approaches in this review can be divided into three methods. First, some
healthcare project requires login information (username and password) to access patients’ health data [10,
13]. In contrast, some projects depend on creating their interface on a specific device to make sure the
accessibility is restricted by that device users. This can be done in some mobile applications [16].
3
3rd International Conference on Sustainable Engineering Techniques (ICSET 2020) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 881 (2020) 012113 doi:10.1088/1757-899X/881/1/012113
4
3rd International Conference on Sustainable Engineering Techniques (ICSET 2020) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 881 (2020) 012113 doi:10.1088/1757-899X/881/1/012113
Figure 4. Heart rate and Spo2 connected to the Arduino UNO and NodeMCU
For measuring the reflected light, this sensor utilizes two types of lights, red and infrared. The red light
has a wavelength of 650 nm and the infrared light has a wavelength of 950 nm. Oxygen-saturated
hemoglobin (oxygenated blood) and non-oxygen-saturated hemoglobin (deoxygenated blood) absorb
different amounts of each light. So, the reflected light will be received by the sensor and through an
algorithm, the final value for the Spo2 will be deducted.
For calculating the heart beats per minute another approach is used. The blood needs high pressure to
be pumped out of the heart to other body members. It occurs with the heartbeat and it causes the arteries to
feel an amount of strain (blood pressure) when the blood flows in them. Arteries are responsible for
carrying the blood out of the heart. So, the blood pressure leads to swelling and contracting of arteries,
therefore the volume of the artery in the body parts (fingertip in this project) increases and reduces. When
the volume increases, there will be more hemoglobin in the section area and consequently, the amount of
absorbed infrared light will rise and the reflected signal back to the heart rate sensor will be reduced.
These variations in the reflected light will result in a fluctuated signal called photoplethysmogram (PPG).
5
3rd International Conference on Sustainable Engineering Techniques (ICSET 2020) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 881 (2020) 012113 doi:10.1088/1757-899X/881/1/012113
do not produce an alternated reflective light and they just are DC elements of the signal (direct signal
without fluctuations) and can be easily bypassed by the sensor circuit or in the signal processing stage
(figure 6).
Figure 7 shows a flowchart describing the process of calculating the heart rate beats per minute. For
achieving this task, the PPG wave is filtered by a low pass filter, so we can obtain noise reduced waves to
measure the heart pulse rate. Then the maximum and minimum peaks of these waves are detected. By
checking their peaks, the validity of an actual heart pulse is determined. In order to measure the interval
between pulses, at least two consecutive heart pulses must be correctly detected. Then the last twelve
intervals will be stored in an array and the median of these intervals is calculated. In this project instead of
calculating the average, the median calculation is used, because the median function will result in more
accurate final value if there are some anomalies in the results. Then the median value is converted to the
heartbeats per minute (BPM) and along with the Spo2 value are sent to the Blynk cloud server.
Start
YES
Using FIFO to Store the Obtain the Heart Beat Per Minute
Calculate the Median of the Array
last tweleve Heart Beat (BPM) from the Calculated
using Running Median Method
Intervals in An Array Median
6
3rd International Conference on Sustainable Engineering Techniques (ICSET 2020) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 881 (2020) 012113 doi:10.1088/1757-899X/881/1/012113
Figure 9. AD8232 single-lead ECG sensor Figure 10. ECG electrodes suitable positions
7
3rd International Conference on Sustainable Engineering Techniques (ICSET 2020) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 881 (2020) 012113 doi:10.1088/1757-899X/881/1/012113
Start
Yes
8
3rd International Conference on Sustainable Engineering Techniques (ICSET 2020) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 881 (2020) 012113 doi:10.1088/1757-899X/881/1/012113
Figure 14. LM35 sensor connected to the Arduino UNO and NodeMCU
9
3rd International Conference on Sustainable Engineering Techniques (ICSET 2020) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 881 (2020) 012113 doi:10.1088/1757-899X/881/1/012113
Initialize the
Sensor and Blynk
Start
Server
Configurations
Read the
Sensor
Value
Send the
Temperature From
NodeMCU to the
Blynk Cloud Server
10
3rd International Conference on Sustainable Engineering Techniques (ICSET 2020) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 881 (2020) 012113 doi:10.1088/1757-899X/881/1/012113
NO
YES
YES
Figure 16. Flowchart of the communication between Arduino UNO and NodeMCU
3.3. Blynk
For illustrating the patient’s information an IOT platform called Blynk is used. Blynk cloud service
enables live monitoring of the patient’s condition in an elegant and professional environment. It also has
the ability to be run on a local server for example inside or nearby a hospital and the cloud service secures
a live stream of information about the patient’s condition outside the hospital.
3.3.1. Blynk app design layout
As is shown in Figure 17, at the top of the page a live graph for illustrating a live ECG signal is inserted,
while below it there are three gauges for live visualization each of heart rate in BPM, Spo2 in percentage
and the Celsius body temperature.
11
3rd International Conference on Sustainable Engineering Techniques (ICSET 2020) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 881 (2020) 012113 doi:10.1088/1757-899X/881/1/012113
Figure 18. Pulse oximeter fingertip device Figure 19. Digital blood pressure
12
3rd International Conference on Sustainable Engineering Techniques (ICSET 2020) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 881 (2020) 012113 doi:10.1088/1757-899X/881/1/012113
T
P
Q
S
13
3rd International Conference on Sustainable Engineering Techniques (ICSET 2020) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 881 (2020) 012113 doi:10.1088/1757-899X/881/1/012113
emulator. Then, we took the data to Microsoft Excel sheet to export the data and visualize it on MATLAB
software (figure 22). MATLAB assists us to verify and check the intervals between the pulses of the
examed ECG signal.
14
3rd International Conference on Sustainable Engineering Techniques (ICSET 2020) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 881 (2020) 012113 doi:10.1088/1757-899X/881/1/012113
15
3rd International Conference on Sustainable Engineering Techniques (ICSET 2020) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 881 (2020) 012113 doi:10.1088/1757-899X/881/1/012113
Figure 26. Live monitoring of a person condition on the Blynk cloud server
5. Conclusion
To sum up, this paper presents an experimental model to achieve wearable, portable, low power
consumption, real-time remote bio-signals monitoring system based on the internet of thing technology.
This implementation achieves trusted and verified bio-signals. The verification is done by performing
comparisons between this project’s readings and the medical devices which are used by doctors and health
providers. Also, those bio-signals are uploaded successfully to Blynk mobile application. This makes
health professionals capable to monitor and diagnose more than one health parameter at the same time.
Also, This mobile application provides an opportunity to supervise more than one case at the same time.
Finally, this project is affordable to be purchased.
16
3rd International Conference on Sustainable Engineering Techniques (ICSET 2020) IOP Publishing
IOP Conf. Series: Materials Science and Engineering 881 (2020) 012113 doi:10.1088/1757-899X/881/1/012113
Reference List
[1] B. Farahani, F. Firouzi, V. Chang, M. Badaroglu, N. Constant, and K. Mankodiya, 2018 Towards
fog-driven IoT eHealth: Promises and challenges of IoT in medicine and healthcare, Future
Generation Computer Systems, 78, pp. 659-676.
[2] S. Al-Sarawi, M. Anbar, K. Alieyan, and M. Alzubaidi, 2017 Internet of Things (IoT)
communication protocols, in 2017 8th International conference on information technology
(ICIT), pp. 685-690: IEEE.
[3] L. M. Dang, M. Piran, D. Han, K. Min, and H. Moon, 2019 A survey on internet of things and cloud
computing for healthcare, Electronics 8 (7), p. 768.
[4] I. J. Hasan, N. A. J. Salih, N. I. Abdulkhaleq, and M. J. Mnati, 2019 An Android smart application
for an Arduino based local meteorological data recording, IOP Conference Series: Materials
Science and Engineering 518 (4), p. 042014.
[5] N. A. J. Salih, I. J. Hasan, and N. I. Abdulkhaleq, 2019 Design and implementation of a smart
monitoring system for water quality of fish farms, Indonesian Journal of Electrical Engineering
and Computer Science, 14 (1), pp. 44-50.
[6] S. Diekmann et al., 2019 Economic evaluation of prolonged and enhanced ECG Holter monitoring
in acute ischemic stroke patients, Current Medical Research and Opinion, 35 (11), pp. 1859-
1866.
[7] R. Acharya, A. Kumar, P. Bhat, C. Lim, N. Kannathal, and S. Krishnan, 2004 Classification of
cardiac abnormalities using heart rate signals, Medical and Biological Engineering and
Computing, 42 (3), pp. 288-293.
[8] V. Jagadeeswari, V. Subramaniyaswamy, R. Logesh, and V. Vijayakumar, 2018 A study on
medical Internet of Things and Big Data in personalized healthcare system, Health information
science and systems, 6 (1), p. 14.
[9] A. Škraba, A. Koložvari, D. Kofjač, R. Stojanović, V. Stanovov, and E. Semenkin, 2017 Prototype
of group heart rate monitoring with NODEMCU ESP8266, in 2017 6th Mediterranean
Conference on Embedded Computing (MECO), pp. 1-4.
[10] L. A. Durán-Vega et al., 2019 An iot system for remote health monitoring in elderly adults through
a wearable device and mobile application, Geriatrics, 4 (2), p. 34.
[11] J. Wan et al., 2018 Wearable IoT enabled real-time health monitoring system, EURASIP Journal on
Wireless Communications and Networking, 2018 (1), p. 298.
[12] D. S. R. Krishnan, S. C. Gupta, and T. Choudhury, 2018 An IoT based patient health monitoring
system, in 2018 International Conference on Advances in Computing and Communication
Engineering (ICACCE), pp. 01-07: IEEE.
[13] M. Hamim, S. Paul, S. I. Hoque, M. N. Rahman, and I.-A. Baqee, 2019 IoT Based Remote Health
Monitoring System for Patients and Elderly People, in 2019 International Conference on
Robotics, Electrical and Signal Processing Techniques (ICREST), pp. 533-538: IEEE.
[14] Z. Yang, Q. Zhou, L. Lei, K. Zheng, and W. Xiang, 2016 An IoT-cloud based wearable ECG
monitoring system for smart healthcare, Journal of medical systems, 40 (12), p. 286.
[15] A. Abdelgawad, K. Yelamarthi, and A. Khattab, 2016 IoT-based health monitoring system for
active and assisted living, in International Conference on Smart Objects and Technologies for
Social Good, pp. 11-20: Springer.
[16] M. Taştan, 2018 IoT Based Wearable Smart Health Monitoring System, Celal Bayar Üniversitesi
Fen Bilimleri Dergisi, 14 (3), pp. 343-350.
[17] C. Wijaya, M. Harahap, M. Turnip, and A. Turnip, 2019 Abnormalities State Detection from P-
Wave, QRS Complex, and T-Wave in Noisy ECG, Journal of Physics: Conference Series, 1230
(1), p. 012015: IOP Publishing.
[18] Murray Longmore, Ian Wilkinson, Andrew Baldwin, Elizabeth Wallin, Oxford Handbook of Clinical
Medicine, Oxford University Press, ninth edition, 2014.
17