Ecg PDF
Ecg PDF
net/publication/330358573
CITATIONS READS
0 15
3 authors:
Samer Majeed
Al-Mansour University College
4 PUBLICATIONS 0 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Noor Kareem Jumaa on 14 January 2019.
Auday A.H. Mohamad1, Noor Kareem Jumaa1 and Sameer Hameed Majeed1
1
Computer Technology Eng. Dept., Al-Mansour University College, Baghdad, Iraq
Received 4 Sep. 2018, Revised 16 Oct. 2018, Accepted 10 Nov. 2018, Published 1 Jan. 2019
Abstract: The Internet of Things (IoT) is a community of smart things that is a combination of sensors with network technology,
cloud computing, and many data concepts. Presently, the IoT is applied in many fields, and one of the most critical issues is health
monitoring systems since statistical analyses have shown that a human lose their life every minute across the globe. In Iraq, many
lives are affected by heart attacks every day, because patients do not receive proper help at the right time. The electrocardiogram
(ECG) signal is an important parameter for monitoring heart activity. This article focuses on the recruitment of IoT technology in the
field of health applications and its main objective is to provide an ECG diagnostic system using Thingspeak IoT platform capability
analysis and a reliable healthcare analytic system for patients that can be used by healthcare professionals for patient monitoring. The
monitoring system is based on analysis and comparison of ECG signals using Principal Component Analysis (PCA).The proposed
system collects and sends ECG signals from patients to the Thingspeak IoT platform for PCA. The system can classify the heart
malady and gives people with unstable health a chance to be treated by healthcare professionals.
the heart activity for a physician using electrical signals 2. RELATED WORKS
generated throughout the cardiac cycle; and measured In [1], an application based on biomedical engineering
using external electrodes. The medical importance of the (BME) was proposed. Wireless and mobile technologies
ECG in cardiology is well established. ECGs are used to are used to enable patients suffering from chronic heart
investigate abnormal heart rhythms and to determine heart diseases to live in their own homes and lead normal lives
rates and causes of chest pain. ECG heart activity is while being monitored for cardiac events. The proposed
recorded on graph sheets or monitors by placing system [1] focuses on a heartbeat monitoring and alert
electrodes on a person’s body. The records show a series system that can monitor the patient’s heart rate. The
of electrical waves that occur during each beat of the system determines the heart beat rate per minute and
heart. The recorded waves have peaks and valleys, and are sends a short message service (SMS) alert to the mobile
normally represented by the letters P, Q, R, S, T, and U phones of medical experts or the patient's family
(shown in Fig. 2). The U wave is not consistent and can members.
be invisible in 70% of people. Clinically, the U wave is as
important as the other waves [6, 7]. Fig. 3 shows different A smartphone-based health monitoring system was
ECG samples for different heart beat cases. presented in [2]. Using this system, healthcare
professionals can monitor, diagnose, and advise their
In this article, an IoT health monitoring system is patients all at the same time. The field tests of this project
proposed and designed based on principal component show that our system can produce medical data that are
analysis (PCA). The proposed IoT system sends the ECG similar to those produced by existing medical equipment.
signals of the patients to the IoT (Thingspeak) cloud In [2], the blood pressure, body temperature, heart rate,
service. The analytic algorithm (PCA algorithm) runs in and QRS intervals are included in the performance
the Thingspeak -MATLAB cloud to classify the heart analysis.
illness by comparing the received signal with various
ECG signals stored in the Thingspeak channel databases. In [5], a survey of IoT- based Patient Health
Monitoring Systems was proposed by the researcher. This
This study is arranged into seven sections as follows: reference includes different technologies and IoT
section 2 presents a survey of related works, section 3 applications for health monitoring systems. An
discusses IoT platforms, section 4 introduces the principle explanation and analysis of the technologies were
of the PCA algorithm, section 5 introduces the provided, along with, applications, methods and
Thingspeak based ECG data analysis system, section 6 implementation for the health monitoring system
introduces the details and components of the proposed procedure in the medical field.
system structure, section 6 illustrates the proposed system
implementation and results, section 7 presents the In [6], the researchers designed a project that could
conclusions of this work. transmit data sensed from a remote patient to the doctor’s
PC using wireless transmission technology, (ZigBee).
Using ZigBee, the data are received and displayed on the
PC. If the doctors are not present nearby, they will receive
an SMS on their mobile phones in case any of the
parameters go beyond the normal range. The leads of the
ECG sensor must stick properly to the patient, closest to
the chest side.
Figure 2. ECG signal from a healthy subject.
A health monitoring system based on a LPC1114,
GSM Modem, LCD and other hardware circuits was
designed in [7]. In this study, the page messages were
transferred at fixed time intervals to the corresponding
medical expert to give necessary precautions and take care
of the patient.
In [8], the researchers developed a patient monitoring
system at low cost to reduce health care costs by reducing
emergency room and physician office visits,
hospitalizations, and diagnostic testing procedures. Many
new wireless transmission protocols and technologies
adapt easily to new applications. Their system was based
on a Max232, 555 timer, GSM module, health care
sensors, and AT89S52 microcontroller.
In [9], a healthcare monitoring system based IoT was
designed and implemented to deal with brain tumors. The
Figure 3. ECG signal samples. proposed system addressed in [9] uses the Thingspeak
platform to run the Support Vector Machine (SVM) as a
detection algorithm so, this work is contribute to make the
IoT platform to deal with the machine learning and
Fig. 1. Components of an IoT Systems healthcare monitoring system.
http://journals.uob.edu.bh
Int. J. Com. Dig. Sys. 8, No.1, 11-18 (Jan-2019) 13
http://journals.uob.edu.bh
14 Auday A.H. Mohamad, et. al.: Thingspeak Cloud Computing Platform Based ECG Diagnose System
Inpatient and
Intensive care Gateway &
Patient Node Central Broker ISP
sensor No.1
(ECG Electrodes
and Node MCU)
Thingspeak
Based Cloud
Service
Inpatient and
Intensive care
Patient Node Thingspeak Based
sensor No.n
Data Analysis and
(ECG Electrodes
Results
and Node MCU)
2
Web Storage
1 3
4
Doctor’s Computer
http://journals.uob.edu.bh
Int. J. Com. Dig. Sys. 8, No.1, 11-18 (Jan-2019) 15
http://journals.uob.edu.bh
16 Auday A.H. Mohamad, et. al.: Thingspeak Cloud Computing Platform Based ECG Diagnose System
The proposed IoT ECG health monitoring system Group Name Disease Type
based on the Thingspeak platform is composed of two Group1 Arrhythmia-MLII
main parts as shown in Fig. 9. The first part is the ECG
sensor nodes for ECG raw data acquisition via a Node- Group2 Atrial Fibrillation
MCU with a WiFi built-in module and central broker. The Group3 Normal- Sinus
data are collected, saved as text file type and forwarded to
the central broker. The central broker is designed based on
the Visual Basic programming language with a user-
friendly command window for fourteen patients. The TABLE II. TIME SCHEDULING FOR SIX ECG SIGNALS
main role of this part is to schedule patients ECG data and
forward those data to Thingspeak platform. The central Patient No. Start Time (GMT+ End Time (GMT+3
broker encapsulate each ECG data signal as csv file and 3Hours) Hours)
send the file to Thingspeak platform with time
Patient 1 22:55:42 22:57:49
approximately 128 seconds ( one second between each
data value of the ECG signal). Table II shows the starting Patient 2 23:16:47 23:18:54
and ending time (GMT+3 Hours) of six ECG signals for Patient 3 23:02:28 23:04:35
six patients shown in Fig. 8.
Patient 4 23:05:24 23:07:31
The user can read the ECG data and forward those
Patient 5 23:07:50 23:09:50
data to the Thingspeak platform after checking whether
the previous patient's data have been processed Patient 6 23:09:41 23:11:48
successfully via the online MATLAB analytic program.
The forwarded data are saved in fourteen fields of two
Thingspeak channels. The second part is the online There are single obvious fault technical issue
MATLAB program in Thingspeak platform. The program regarding patient 2, where the ECG signal of this patient
reads and processes the saved data using the PCA belong to group one while the system designated it as
algorithm for classification purposes. A sample of group two. On the other hand, the other signals have been
Thingspeak-based online MATLAB code for the PCA classified successfully according to their groups.
classification of one patient with an ECG signal saved in
field1of channel1 is shown in Fig. 10. Fig. 11 shows the
results captured from the Thingspeak online program for
fourteen patients with different diseases.
Cloud
http://journals.uob.edu.bh
Int. J. Com. Dig. Sys. 8, No.1, 11-18 (Jan-2019) 17
Figure 10. Thingspeak based online Matlab code for one patient.
7. CONCLUSIONS
A Thingspeak cloud computing ECG diagnostic
system is proposed based on an analytic MATLAB
classification program. The analytic program is based on a
PCA algorithm running on the Thingspeak cloud IoT
platform. The proposed system provides a reliable
healthcare monitoring system that can enable healthcare
professionals to monitor their patients remotely through
the cloud. All experimental set up and observations
showed that the system was an effective solution for
monitoring a patient’s heart health. The doctor can access
the data through the Thingspeak IoT cloud and run the
analytic MATLAB program to classify the ECG signal
Figure 11. Results captured from the Thingspeak online program.
from a patient and aid in the diagnosis. Implementation of
this system allows doctors to monitor and improve the
health of their patients. Notably this system allows a
doctor to monitor more than one patient through the
cloud.
http://journals.uob.edu.bh
18 Auday A.H. Mohamad, et. al.: Thingspeak Cloud Computing Platform Based ECG Diagnose System
http://journals.uob.edu.bh