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

,(((&RQIHUHQFHRQ2SHQ6\VWHPV ,&26

A New IoT Patient Monitoring System for


Hemodialysis Treatment

Muhammad Faisal Zainol, Rohani S Mohamed Farook Rosilah Hassan


Faculty of Engineering Technology, Faculty of Engineering Technology, Centre for Cyber Security
Universiti Malaysia Perlis (UniMAP), Universiti Malaysia Perlis (UniMAP), Faculty of Information Science & Tech.
Perlis, MALAYSIA. Perlis, MALAYSIA. Universiti Kembagsaan Malayasia,
faisalzainol96@gmail.com rohani@unimap.edu.my 43600, UKM, Bangi,Selangor,
MALAYSIA.
Aznor Hanah Abdul Halim rosilah@ukm.edu.my
Faculty of Engineering Technology, Mohamad Rizal Abdul Rejab
Universiti Malaysia Perlis (UniMAP), Faculty of Engineering Technology, Zulkifli Husin
Perlis, MALAYSIA. Universiti Malaysia Perlis (UniMAP), Faculty of Engineering Technology,
aznor@unimap.edu.my Perlis, MALAYSIA. Universiti Malaysia Perlis (UniMAP),
m.rizal@unimap.edu.my Perlis, MALAYSIA.
zulhusin@unimap.edu.my

Abstract— Ominously, end stage renal disease (ESRD)


became a more frequent disease. Dialysis process acts as kidney I. INTRODUCTION
and perform the diffusion proses to remove the accumulated
Nowadays, Internet of Things (IoT) represents the smart
metabolic waste products and ultrafiltration process that remove
the excess fluids from the body. The dialysis process is Internet concept which consists of connecting everything
unfortunately the life-prolonging treatment for this illness to surrounding us to Internet and making it responsible of
enable the patient lives their normal life. However, it is quite a arranging and exchanging. Numerous studies have been
difficult and tiring process for patients when it comes to maintain conducted concerning IoT technologies and all showed that
their health to be optimal condition in between the dialysis there is significant and urgent need for platforms development
scheduled days. The kidney works 24 hours performing diffusion [1][2]. IoT significantly spread in healthcare through the
and ultrafiltration process throughout a day to keep our body development of new platforms giving birth to Internet of
clean and stabile. The dialysis is a pre scheduled process that Medical Things (IoMT) [3]. It is todays at the highest peak as
patient enrol for normally 4 hours every alternate days. The
it has essential potentialities among all other types of IoT
frequency could increase if there is a need or emergency condition.
The patient if does not control their water intake could lead to applications [4]. In healthcare, IoT represents a developed
water retention where their heart need to work hard and cause technology integrating all the smart resources, systems, and
the patient to feel fatigue, difficulty to sleep and induce cough. devices ease diagnosis of diseases, to find out cures, drugs and
Since the ESRD patient will less urinate, the water drank will stay ensure a successful follow up in one unique system [5].
on the blood and cause bloated feeling and lead to heart pulse rate Recording information became fundamental since it constitute
and blood pressure increase. Monitoring the physiological a successful health providing a complete report about a detailed
parameters for ESRD facing a huge lack, if not a total absence. daily status of patients can be provided [6]. Modern
Systems that able to monitor the well-being of patients and Technology is necessary for any type of data recording to ease
informing the precautions and the solutions to be adapted. This
and quicker this process through a local network where
project consists of designing a circuit and integration of pulse and
infrared temperature sensors using MCU Arduino and Raspberry mechanisms connect with each other to share and communicate
Pi for data storage and management, allowing the patients to information [7].
record those parameters by themselves. This study suggests a new The main objective of IoT-based monitoring and
system as a solution for the monitoring and control of the users
regarding their health major information and simultaneously
controlling systems is to ensure a continuous control of all the
send it to their doctors. The recorded information will be stored crucial patient parameters such as the body temperature, the
in a unique database enabling the admin and the patients to blood pressure, the glycemic index, or even the
monitor and consult their own health parameters in a webpage. electrocardiography and SpO2 [8]. Such systems can be
The purpose of this study is to develop a new system to control crucial and very useful for all health mechanisms and
and ease the dialysis mechanism and ensure the patient well- treatments especially dialysis patients who require a more
being. tiring and detailed process for data gathering, and who do not
always have the strength to reach hemodialysis facilities.
Keywords- Dialysis, MCU Arduino, Raspberry Pi, patient well- Some patients may be living in rural communities or in harsh
being, monitoring system. living conditions and cannot easily access to dialysis
institutions as they are very limited. A previous study
conducted by Kang et al. showed a very high demand for

k,(((
Authorized 46on May 24,2020 at 17:49:14 UTC from IEEE Xplore. Restrictions apply.
licensed use limited to: University College London. Downloaded
,(((&RQIHUHQFHRQ2SHQ6\VWHPV ,&26

adoption of IoT- based services in hospitals with 13% for USB. It can also transfer the coding to the circuit by wireless
kidney dialysis rooms. In fact, for a dialysis monitoring means.
system, there is a huge lack of monitoring systems controlling The second microcontroller used for this circuit is the MCU
the well- being of the patient dialysis [9]. Arduino. It can read the equivalent input including the body
The purpose of this research is to develop a new monitoring temperature and heart rate. It is a wired device which requires
system for kidney dialysis patients using MCU Arduino and a USB connection to the computer to ensure the system run.
Raspberry Pi. In fact, to ensure a well and useful functioning It is composed of 14 digital input/output pins and is necessary
of this system, the system be accessible by the nephrologist since it reads the equivalent data received from the sensor
doctor in charge, the dialysis nurse from hospital whereas the connected to it. All GPIO pins of the MCU Arduino can be
the patient himself could utilize the kit from home in daily used as interrupts for functions, mainly HIGH, LOW,
scheduled durations. So that the system could notify the RISING and FALLING, and can also play the role of a digital
doctors and nurses once the health conditions seems converter. The core sensor used in this circuit is the
deteriorating in case of any critical situation. MLX90164 temperature sensor. It acts as an ultraviolet
The structure of this paper consists of a section II explaining thermometer for distant temperature measurement. It exists
the design procedure and providing the details about the two different methods of interfacing this sensor, which are
selected components. Section III presenting the results of the PWM and SMBus communication. This sensor is divided into
designed circuit, and section IV justify a conclusion along two main parts including the infrared thermophile detector
with the contribution of this work and the future possible and the signal application conditioning processor. In fact, it
work. detects the radiation from the object requiring measurements.
Besides the power and the ground, it contains two major pins,
II. METHODOLOGY SDA and SCL.
This study mainly focuses on hemodialysis patients that are
required to be monitored their heart rate. The heart rate could TABLE I. CONNECTION BETWEEN THE BODY TEMPERATURE SENSOR AND
be the identifier of the requirement for the dialysis. Water
retention in dialysis patient could increase the heart rate that MLX90614 Pins MCU Arduino Pins
indicates the urgent treatment. The prototype enable the
VDD 3.3V
doctors to monitor the heart rate recorded through the sensor
and alert the doctors and patients if action needed . VCC GND
SDA/PWM SDA(A4)
A. Hardware of the system
SCL SCL(A5)
The main component of this circuit is an SBC as for a
single board computer called Raspberry Pi 3 as shown in Fig. THE MCU ARDUINO
1. This type of boards is characterized with a basic
microcontroller similar to other existent ones such as the The VCC pin of the sensor is connected to the 5V pin
MCU Arduino. The advantage of its use is that it enables the whereas the GND pin is connected to the MCU Arduino GND
code to be uploaded easily and directly from the smartphone pin. Table I explains the connections between the temperature
to the Raspberry Pi itself. It contains output pins necessary sensor and the MCU Arduino pins. The sensor located at the
for the project running. It also contributes in booting Wi-Fi, prototype box side to make the temperature reading easier for
USB, and Bluetooth. the patient. It is detected by the infrared thermophile; thus, it
is not necessary to press the sensor.
The third major constituent is the heart rate sensor. It
consists of a simple optical heart rate sensor characterized
with an amplification and noise cancellation circuitry. It can
be placed either on the fingertip or the earlobe. Table II
summarizes the connections between the sensor and the MCU
Arduino. In fact, the pin+ is connected at 5V pin, pin- is at the
GND pin on MCU Arduino, and pin S is connected to A0.

Fig. 1. Raspberry Pi 3
TABLE II. CONNECTION BETWEEN THE PULSE RATE
Raspberry Pi 3 has been selected for this for its variety of SENSOR AND THE MCU ARDUINO
functions that can be crucial such as the wireless KY-039 MCU Arduino
communication, the basic microcontroller operation, and the
S A0
Bluetooth module. It consists of 27 GPIO I/O pin which are
necessary for the sensors, the jumper and other constituents. Pin + 5V
Raspberry Pi 3 was used in this project as a web server to Pin - GND
store the information in the database. It also contains two 5V
DC pin two 3.3V DC power pins. The user can decide about Minor components are included to the circuit such as the
the sensor to be connected with each pin. It also has eight buzzer to warn if the temperature is surpassed and the LED to
ground pins which are connected to the circuit as decided by display the recorded information including the temperature
the user. From GPIO0 to GPIO26 may be used for the input and the heartbeat as shown in Fig. 2. The switch is used to
and the output of the components used. It is also easily start the MCU Arduino code programming and is placed on
powered by only using an external power supply through a top of the prototype.

47on May 24,2020 at 17:49:14 UTC from IEEE Xplore. Restrictions apply.
Authorized licensed use limited to: University College London. Downloaded
,(((&RQIHUHQFHRQ2SHQ6\VWHPV ,&26

D. System User Interface


The system user interface of this system will be represented
by a webpage. It consists mainly on a PHP and an HTML
language. Both are necessary for the webpage creation. It has
been designed for web the development and has been used as
a general- purpose programming language. Regarding the
PHP, the coding is placed in www and contain an HTML file.
To access the system, users must create an account with a
username, an email and a password. PHP, HTML and CSS
Fig. 2. Connection Circuit between the sensor and the MCU Arduino codes are essential for the webpage creation, to store it in the
database and to transfer the data from database to webpage.
B. Master and Slave CSS is requested to add several styles to the webpage. The
patient and the admin may login at the same webpage.
The master/slave refers to a communication model in which
The patient webpage will only display the health parameter
one device or a process controls other slave devices. The
table, and the admin is charged of adding, editing and
master is charged of giving the instructions and can also
deleting the information. Besides, the administrator can
receive them from the slaves. In this system, the master is
monitor the data condition of the patient.
represented by the Raspberry Pi 3 Model B V1.2 and the
MCU Arduino represents the slave. The two components are
connected through a Serial Communication by a USB cable. III. RESULTS AND DISCUSSION
The coding for circuit board of the sensors is written and
executed within the MCU Arduino and the input data is A. Prototype setup
directed through the Raspberry Pi for the in-web server As shown in Fig. 4, this system contains a pulse sensor, a
recording. On the Raspberry Pi, MCU Arduino IDE is opened MLX90614 infrared body temperature sensor, and an LCD to
through a VNC Viewer to directly obtain the reading process. display the obtained information. The switch is needed to start
The setup for the master/slave for this circuit is shown in Fig. the program and the LED is added to light up whenever there
3. is a pulse flow. The reading will appear once the switch is
pressed. It will only receive the reading once the number of
the loop in the MCU Arduino code is set.

Fig. 3. Master/Slave Setup

C. VNC (Virtual Network Computing)


The Virtual Network Computing is a technique helping Fig. 4. Front view of the sensors set up
two operating systems to perform simultaneously. It works
like an isolated workstation and software. It mainly shares in
file, data or input. This technology enables the individuals to The top view of the system is represented in Fig. 5. It consist
access their desktops regardless their position. VNC operates of a breadboard used for the sensors, resistors, capacitor, and
in a client/server model and uses a particular network protocol other components connection. The MCU Arduino is linked to
named Remote Frame Buffer (RFB). VNC servers catches the Raspberry Pi 3 through a serial communication. The buzzer
local display framebuffer contents and shares them with the helps alarming the individual if the sensor’s temperature
client. exceeds 37°C.
To install VNC on a Raspberry PI, it is necessary to dispose
of a monitor, a keyboard, a mouse and Ethernet cable. To
install the NOOB operating system in the memory card it is
recommended to attach it to the board. The first step consists
of unzipping the folder and copy it in the memory card to be
inserted inside the board. For the first time use, it is crucial to
run the setup on with the monitor. The Raspberry PI should
be setup with specific IP address to have its unique identity.
Raspberry PI is arranged with a password to avoid the
changes settings. It will also prompt the user to change
password for a higher security. To determine what IP address Fig. 5. Top view of the sensors set up
corresponds to this circuit’s Raspberry Pi, an advance IP
scanner is used. The board is already set with precise IP B. Sensors reading
address, it saved and can be run in anytime.
The data obtained from this system displayed in form of
tables and graphs. Three tables illustrated for each

48on May 24,2020 at 17:49:14 UTC from IEEE Xplore. Restrictions apply.
Authorized licensed use limited to: University College London. Downloaded
,(((&RQIHUHQFHRQ2SHQ6\VWHPV ,&26

temperature, pulse and the list of users. All the data are IV. CONCLUSION
obtained in the webpage. The advantage of this system is that This system has been successful and played an important
all the data reading can be monitored by both the admin and role in controlling and assisting the dialysis pre-process and
the patient. Fig. 6 shows the body temperature reading table, ensure the patient well-being. Several additions and
taken directly from the database. Each data is unique for its improvements in this circuit are planned, in the study process
record time and date. Fig.7 shows the trend of the body for the obtention of a complete and operational dialysis
temperature flow monitoring data at a certain time. If the monitoring system. An Android application is in the
temperature is between 35-37℃, the person in good elaboration process, and it was recommended to develop a
condition, and if it is exceeding 37℃, the individual has short message service along with an email alert the patient
fever. and the admin and ensure a perfect follow up, as well as the
development of a global positioning system to determine the
exact location of the patient if case of any unexpected event.
Thus, this study is emerging for a new system in the IoMT,
which highly contributes to the well-being of health services.

ACKNOWLEDGMENT
We would like to acknowledge through this paper the
Network and Communication Technology Research Group
for providing us with the necessary support and assistance,
FTK, UniMAP (R&D Grant), FTSM, and UKM (Grant DIP-
2018-040) for guaranteeing all the facilities necessary for
this study.

Fig. 6. Body temperature reading


REFERENCES
[1] S. M. R. Islam, D. Kwak, M. H. Kabir, M. Hossain and K. Kwak, "The
Internet of Things for Health Care: A Comprehensive Survey," in IEEE
Access, vol. 3, pp. 678-708, 2015.

[2] V. Pardeshi, S. Sagar, S. Murmurwar and P. Hage, "Health monitoring


systems using IoT and Raspberry Pi — A review," 2017 International
Conference on Innovative Mechanisms for Industry Applications
(ICIMIA), Bangalore, 2017, pp. 134-137.

[3] Puthal, B.D., Malik, N., Mohanty, S.P., Kougianos, E. & Yang, C. ,
"The Blockchain as a Decentralized Security Framework," p. 8–11,
2008.

[4] Islam M. S., Islam M. T., Almutairi A. F., Beng G. K., Misran N., and
Fig. 7. Graph body temperature in respect with time
Amin N., "Monitoring of the human body signal through the Internet
of Things (IoT) based LoRa wireless network system," Applied
C. Web server Sciences, vol. 9, no. 9, 2019.
The web server displays the real-time update of each [5] Dauwed M. A., Yahaya J., Mansor Z., and Hamdan A. R.,
sensor’s reading. It contains two table for each sensor in one "Determinants of internet of things services utilization in health
single database. Several readings are uploaded to the web information exchange," Journal of Engineering and Applied Sciences,
server as a form of tables. The data is stored until the reset is vol. 13, no. 24, pp. 10490-10501, 2018.
performed. The two tables are placed in a single database [6] Demlo, L.K., Campbell, P.M. & Brown, S.S., "Reliability of
because to enable the connection with each other as shown is information abstracted from patients’ medical records. Medical Care,"
Fig. 8. vol. 16, no. 12, p. 995–1005, 1978..
[7] Kamaruzaman F. M., Hamid R., Mutalib A. A., and Rasul M. S.,, "
Conceptual framework for the development of 4IR skills for
engineering graduates," Global Journal of Engineering Education, vol.
21, no. 1, pp. 54-61, 2019.
[8] Li, C., Hu, X., and Zhang, L. , "The IoT-based heart disease
monitoring system for pervasive healthcare service.," Procedia
Computer Science, vol. 112, pp. 2328-2334, 2017.

Fig. 8. Data users stored in the server [9] Kang S., Baek H., Jung E., Hwang H., and Yoo S, "Survey on the
demand for adoption of Internet of Things (IoT)-based services in
hospitals: Investigation of nurses' perception in a tertiary university
hospital," Applied Nursing Research, vol. 47, pp. 18-23, 2019.

49on May 24,2020 at 17:49:14 UTC from IEEE Xplore. Restrictions apply.
Authorized licensed use limited to: University College London. Downloaded
,(((&RQIHUHQFHRQ2SHQ6\VWHPV ,&26

50on May 24,2020 at 17:49:14 UTC from IEEE Xplore. Restrictions apply.
Authorized licensed use limited to: University College London. Downloaded

You might also like