universiti teknikal malaysia melaka - eprints.utem.edu.myeprints.utem.edu.my/20291/1/heart rate...
TRANSCRIPT
UNIVERSITI TEKNIKAL MALAYSIA MELAKA
HEART RATE MONITORING SYSTEM FOR PATIENTS USING ANDROID
BASED
This report submitted in accordance of the Universiti Teknikal Malaysia
Melaka(UTeM) for the Bachelor’s of Computer Engineering Technology
(Computer Systems) with Honours
By
NURUL HANNAN BINTI ZAKARIA
B071310704
940812-02-5618
FACULTY OF ENGINEERING TECHNOLOGY
2016
UNIVERSITI TEKNIKAL MALAYSIA MELAKA
BORANG PENGESAHAN STATUS LAPORAN PROJEK SARJANA MUDA
TAJUK: HEART RATE MONITORING SYSTEM FOR PATIENTS USING ANDROID
BASED
SESI PENGAJIAN: 2015/2016
Saya NURUL HANNAN BINTI ZAKARIA
mengaku membenarkan Laporan PSM ini disimpan di Perpustakaan Universiti
Teknikal Malaysia Melaka (UTeM) dengan syarat-syarat kegunaan seperti berikut:
1. Laporan PSM adalah hak milik Universiti Teknikal Malaysia Melaka dan penulis. 2. Perpustakaan Universiti Teknikal Malaysia Melaka dibenarkan membuat salinan
untuk tujuan pengajian sahaja dengan izin penulis. 3. Perpustakaan dibenarkan membuat salinan laporan PSM ini sebagai bahan
pertukaran antara institusi pengajian tinggi.
4. **Sila tandakan ( )
SULIT
TERHAD
TIDAK TERHAD
(Mengandungi maklumat yang berdarjah keselamatan
atau kepentingan Malaysia sebagaimana yang termaktub
dalam AKTA RAHSIA RASMI 1972)
(Mengandungi maklumat TERHAD yang telah ditentukan
oleh organisasi/badan di mana penyelidikan dijalankan)
Alamat Tetap:
No. 16, Kg Changkat Nering
Mukim Padang Pusing, 06700
Pendang,
Kedah Darul Aman.
Tarikh: ________________________
Disahkan oleh:
Cop Rasmi:
Tarikh: _______________________
** Jika Laporan PSM ini SULIT atau TERHAD, sila lampirkan surat daripada pihak berkuasa/organisasi
berkenaan dengan menyatakan sekali sebab dan tempoh laporan PSM ini perlu dikelaskan sebagai
SULIT atau TERHAD.
v
DECLARATION
I hereby, declared this report entitled “Heart Rate Monitoring System For Patients
Using Android Based” is the results of my own research except as cited in
references.
Signature :………………………
Name : Nurul Hannan Binti zakaria
Date : ………………………
vi
APPROVAL
This report is submitted to the Faculty of Engineering Technology of UTeM as a
partial fulfillment of the requirements for the degree of Bachelor of Computer
Engineering Technology (Computer Systems) with Honours. The member of the
supervisory is as follow:
……………………………….
(Encik Zulhasnizam Bin Hasan)
vii
ABSTRAK
Laporan ini membentangkan pembangunan Sistem Pemantauan Kadar
Jantung untuk Pesakit Menggunakan Android. Sistem Pemantauan Kadar Jantung
digunakan untuk pesakit yang memerlukan untuk memantau denyutan jantung
mereka dan mengetahui julat atau purata yang mereka dapat. Untuk mengelakkan
keadaan yang tidak dijangka, seperti berlakunya sesuatu kecemasan bagi pesakit
lebih mudah untuk mengawal keadaan mereka. Pendekatan kadar jantung adalah
dengan menggunakan sensor nadi yang akan mengesan denyutan jantung pesakit di
mana keadaan atau gaya hidup atau aktiviti berbeza yang yang mereka jalankan. Ia
lebih mudah untuk mendapatkan kadar nadi denyutan jantung daripada pesakit yang
disepadukan dengan pelindung Wi-Fi untuk menghantar data ke pangkalan data pada
pelayan Web. Arduino Uno diguna pakai sebagai cip kawalan utama dan pengawal
untuk aktif sensor nadi dan juga data bertukar-tukar dicapai dengan menggunakan
pelindung Wi-Fi. Pelindung Wi-Fi akan menghantar data apabila memasukkan nilai-
nilai denyutan jantung kepada pangkalan data. CPanel digunakan dengan log masuk
pengguna dalam daftar yang mengandungi lebih daripada maklumat pangkalan data
yang diperlukan daripada pengguna. Data ini akan dipaparkan secara automatik pada
jadual pangkalan data. Keputusan ujian menunjukkan kadar denyutan jantung
kebiasaanya dalam julat 40 Bpm sehingga 120 Bpm. Sistem pemantauan digunakan
untuk memantau semua rakyat tanpa mengira umur dan masyarakat serta mereka
boleh menggunakan sistem ini secara meluas untuk setiap hari walau dimana mereka
berada. Data dari pangkalan data akan direkodkan dan statistik menunjukkan dalam
bentuk graf dengan setiap titik termasuk tarikh, masa dan nilai denyutan jantung.
Paparan graf menunjukkan statistic kadar denyutan jantung berdasarkan minit lawan
BPM. Pesakit akan tahu nilai tepat mereka daripada kadar jantung tersebut pada wktu
itu. Keputusan eksperimen adalah berkesan untuk setiap lapisan masyarakat bagi
mengenalpasti dan mendapatkan nilai sebenar kadar jantung mereka.
viii
ABSTRACT
This report presents the development of Heart Rate Monitoring System for
Patients Using Android Based. Heart Rate Monitoring System is used for patients
who need to monitor their heart rate and determine the range or average they are. To
avoid unexpected situation, such as the occurrence of an emergency for the patient
that it is easier to control their condition. The approach is to use a heart rate sensor
that detects heart beats in which the patient's heart condition or lifestyle or different
activities that they run. It's easier to get the pulse rate of the patient's heartbeat that is
integrated with Wi-Fi Shield to send data to the database on the Web server. Arduino
Uno adopted as the main control chip and a controller for active pulse sensor and the
data exchange is achieved by using Wi-Fi Shield. Wi-Fi Shield will send data when
entering values heartbeat to the database. CPanel is used to log the user in a list that
contains more than the required database information from users. This data will be
displayed automatically in a database table. The test results showed that heart rate
typically in the range 40 to 120 Bpm. The monitoring system is used to monitor all
people regardless of age and society, and they can use this system extensively for
every day no matter where they are. Data from the database will be recorded and
statistics show that in the form of a graph with each point including the date, time
and the heartbeat. The graph display indicates a statistic based on the minutes versus
BPM opponent. Patients will know their exact value of the heart rate on it further.
The experimental results are effective for all levels of society to identify and gain the
true value of their heart rate.
ix
DEDICATIONS
Special appreciation, I dedicate this thesis to my father Zakaria Bin Jusoh @ Junus ,
my mother Sofiah Binti Yahaya and all.
x
ACKNOWLEDGMENTS
Alhamdulillah, I would like to thanks to Allah S.W.T, the Most Merciful, and
all praises to Allah for His blessing in completing this thesis. Special appreciation to
my supervisor, En. Zulhasnizam Bin Hasan for supervised and guiding me
throughout the experimental and thesis works.
I would like to express my appreciation to all technicians and maintenances
that help towards my study. Sincere thanks to my beloved family and friends for their
support and kindness. I also would like to acknowledge the support of the Faculty of
Engineering Technology (FTK) , Universiti Teknikal Malaysia Melaka. Unforgotten
to those who directly or indirectly contributed in this research.
xi
TABLE OF CONTENTS
Abstrak vii Abstract viii
Dedication ix
Acknowledgement x
Table of Content xi
List of Tables xv
List of Figures xvi
List Abbreviations, Symbols and Nomenclatures xviii
CHAPTER 1:
1.0 Introduction
1.1 Background 1
1.2 Problem Statement 1
1.3 Objective 2
1.4 Scope of project 3
1.5 Significant of Study 3
1.6 Structure of Project 4
CHAPTER 2:
2.1 Introduction 6
2.2 Software part 6
2.2.1 Android Based 6
xii
2.2.2 Pushover 7
2.2.3 Arduino Software IDE 8
2.2.4 CPanel for PHP/MySQL 9
2.3 Hardware part 11
2.3.1 Wi-Fi 11
2.3.1.1 Wi-Fi Shield 12
2.3.1.2 Wi-Fi Shields Architecture 14
2.3.2 Arduino Uno 14
2.3.3 Sensor 16
2.3.3.1 Pulse Sensor 17
2.3.4 Buzzer 17
2.3.5 Comparison between Bluetooth, Wi-Fi and ZigBee 18
2.4 History of heart rate monitoring system 19
2.4.1 History of Heart Rate 19
2.4.2 Description of heart rate 20
2.5 Relay 21
2.6 Related project research 22
2.6.1 Android Based Heart Monitoring and Reporting System 22
2.6.2 Home Based Health Monitoring System Using Android
Smartphone 22
2.6.3 Android Based Patient Monitoring System 23
2.6.4 Continuous Heart Rate and Body Temperature Monitoring System
using Arduino UNO and Android Device 24
2.7 Comparison past research 24
xiii
2.8 Conclusion 25
CHAPTER 3:
3.0 Introduction 26
3.1 General Process 26
3.2 Flow of Project methodology 27
3.3 Research of Proposed concept 30
3.4 Software Simulation 32
3.5 Material and Equipment 33
3.6 Conclusion 36
Chapter 4:
4.0 Application 37
4.0.1 Wi-Fi Shield application 38
4.1 Project Analysis 39
4.1.1 Abnormal Heart Beat 41
4.1.2 Normal Hear Beat 45
4.2 Conclusion 48
Chapter 5:
5.0 Conclusion 49
xiv
5.1 Future Work 50
5.2 Summary of Chapter 50
REFERENCES 51
APPENDICES 53
xv
LIST OF TABLE
Table 2.1: Technical specs of Arduino Uno board…………………………………16
Table 2.2 : Wireless Connectivity Techniques……………………………………...18
Table 4.1: Heart Beat For Each Person……………………………………………...39
Table 4.2:Collection data of heart rate for five person……………………………...39
xvi
LIST OF FIGURES
Figure 2.1: Android Logo………………………………………………………….....6
Figure 2.2: PushOver…………….…………………………………………………...7
Fgure 2.3: Arduino Software IDE…………………………………………………….9 Figure 2.4: CPanel……………...…………………………………………………...10
Figure 2.5: CPanel for MySQL Workbench/ MySQL Database format……………11
Figure 2.6: Wi-Fi Shield…………………………………………………………….13 Figure 2.7: Architecture of Wi-Fi Shield……………………………………………14
Figure 2.8: Arduino Uno Board…………………………………………………….15 Figure 2.9: Pulse Sensor………………………………………………………….....17
Figure 2.10: Buzzer………………. ……………………………………………….17
Figure 2.11: Bluetooth and ZigBee………………………………………………...19
Figure 2.12: Hardware or devices use On Monitor Heart Rate from 1800s until
2013……………………………………………………………………………….....20
Figure 3.2.1: Flowchart for Patients………………………………………………...28
Figure 3.2.2: Flowchart for Android……………………………………………......29
Figure 3.3: Block diagram of Concept Project………………………………….......30
Figure 3.4.1: PHP/MySQL……………………..……………………………….......32
Figure 3.4.2: Test on Wi-Fi Shield……………..……………………………….......32
Figure 3.5.1: Implementation of Circuit………..……………………………….......33
Figure 3.5.2: Testing heart beat on thumb……...……………………………….......34
Figure 3.5.3: Testing heart beat on twist……………………………………….........34
Figure 3.5.4: Prototype of Heart Rate Monitoring System…………………………35
xvii
Figure 4.1 : Pushover Application…………………………………………………37
Figure 4.2.: Sending data of Heart Beat……………………………………………..38
Figure 4.3: PHP/MySQL……………………………………....................................38
Figure 4.4: Heart Rate monitoring Graph......………………………………….........41
Figure 4.5: Notification of Android Screen…………………………………………42
Figure 4.6: Heart Beat display on web……………………….……...........................42
Figure 4.7: Heart Beat Monitoring Graph…………….……….……………..…......43
Figure 4.8: Notification on Android Screen ………...………………………...........44
Figure 4.9: Heart Beat Monitoring Graph……………………………………….......45
Figure 4.10: Heart Beat Monitoring Graph...……………………..............................46
Figure 4.11: Heart Beat Monitoring Graph.…………………………………………47
Figure 4.12: Notification On android Screen…………………………………..........48
Figure 4.13: Display Heart Beat………..………………………………...................48
xviii
LIST OF SYMBOLS AND ABBREVIATIONS
Bpm = Beat per Minutes
SMS = Short Messaging System
IR = Infrared
ECG = Electrocardiogram
LCD = Light Crystal Display
MIT = Massachusetts Institute of Technology
TNG = The Next Generation
IDE = integrated development environment
RAMPS = RepRap Arduino Mega Pololu Shield
USB = Universal Serial Bus
AVR = Aboriginal Voices Radio
IIS = Internet Information Services
HTTP = HyperText Transfer Protocol
IEEE = Institute of Electrical and Electronics Engineer’s
xix
WLAN = Wireless Local area Network
WEP = Wired Equivalent Privacy
WPA = Wi-Fi protected Access
SD = Secure Digital
SPI = Serial Peripheral Interface Bus
ICSP = In-Circuit Serial Programming
FTDI = Future Technology Devices International
IP = Internet Protocol
TCP = Transfer Control Protocol
UDP = User Datagram Protocol
AT32UC3 = Series Software Framework
SS = Slave Select
HDG204 = Complete WLAN System In Package
SSID = Service Set Identifier
DFU = Device Firmware Upgrade
8U2 HWB = Firmware on port 8U2
SDA = Serial Data Line
SCL = SAS Component Language
xx
AREF pin = Above GND on Arduino port
IOREF = IO voltage reference (connected to +5V)
PWM = Pulse-width modulation
MHz = Mega Hertz
V = Voltage
KB = Kilo Bytes
RTD = Resistance Temperature Detectors
DVD = Digital Video Disc
RF = radio frequency
TTL = Transistor–transistor logic
NMEA = National Marine Electronics Association
WPAN = Wireless Personal Area Network
BAN = Body Area Network
URL = Uniform Resource Locater
ARM7(LPC2148) = Processor standalone board for LPC2148
microcontroller.
OS = Operating System
1
CHAPTER 1
INTRODUCTION
1.1 Background
This project is about the heart rate for the patient whose have heart disease
which will monitor their heart beat using the monitoring system. The heart beat will
evaluate this value of heart beat will transfer to the android based to know that the
patients have the out of the level for average heart rate. A heart attack is a disease
which the correctly and constantly care should be taken. Patients require
monitoring for 24 hours. However, practically patients cannot afford to go in the
hospital for 24 hours. Sensor systems are widely used to monitor vital signs in
hospitals and at home that designed for patients and connected to the hardware and
attached to the patient's body using the heart rate monitoring to count heart beat.
This value is sent to a mobile phone or android application. This device application
takes the values and analyzed to predict heart attack. The SMS or notification
contains the patient’s values of heart rate is sent to Android or iOS of patients
(Navale et al. 2014).
1.2 Problem Statement
People nowadays difficult to go to the hospital because of the cost of
treatment that has the sickness especially heart attack. The problems faced by
patients especially patients with heart disease will have difficulty in receiving
treatment in the event of an emergency due to the limitation of tools to monitor
heart rate for each hospital. The hospital also requires an effective monitoring
2
system in order to control the patient so that it can act promptly when the patient is
in a state of worry. The patient should make an appointment with a doctor or
physician in order to monitor the heart beats can be used on the day fixed for the
tool to be booked. Then, outpatient appointments were not in by physicians is
limited and may not be able to receive treatment in the use of assistive monitor for
heart failure. This problem mostly occurs in hospitals which need continuous
monitoring for patients with heart problems. Doctors should regularly visit or
monitor the patient and also assess the situation by analyzing heart rate. In case of
emergency, the doctor needs to monitor the application or through some means of
communication such as Android. However, comfort of monitoring system approved
by the patient and the doctor. This requires a mechanism or system to further
monitor can measure heart rate at any time and update their patient’s health status
and also to take action remote control if desired. Therefore, a system should be
developed to solve this problem.
1.3 Objective
The objectives of this project are mainly focus:
1. To study limitation of value measurement experienced by patient for heart
rate monitoring system.
2. To develop heart rate monitoring system for outside hospital.
3. To analyze the performance of heart rate monitoring system to patients.
3
1.4 Scope of Project
In heart rate monitoring system, the only one main sensor that have been
choose is Pulse sensor. Pulse sensor is medical device that measure the heart rate of
the all people who want to easily incorporate live heart rate data .It also grown to
be one of the most commonly used medical tests in modern medicine. This project
is used and decided with the location at UTeM. This project also will be reviewed
on the patients for male and female ages from 20 to 30 years old which needed to
attach patient’s body. The first situation dependence of a hospital to receive a lot of
heart patients. The event of an emergency patient need appropriate tools to help
monitor the patient’s body. The database store the Web system where it can show
data display on all application included android based. The data of heart beat also
will display the output on Serial port of Arduino IDE and also will display on LCD.
Then, the patients can know the range of heart rate that 40 BPM until 120 BPM is
the normal value. However when the patients are out of their heart average from
120 beat per minutes above accurately, the buzzer will released it sound (Palatini
2012).
1.5 Significance of Study
Nowadays, the usages of the heart rate monitoring system are widely used
by patients with heart problems. The monitoring system is a device that allows
users to get the size of their heart beats. Patients need an effective system to control
heart problems they face. This monitoring system is important to patients in order
to know they have the disease or not. Then, monitoring system will monitor the
patient and they can know how your heart rate they have. In an emergency
situation, patients also need the appropriate system to help monitor their body. The
patients need this monitoring system because the hospital is sometimes a lack of
4
monitoring and monitor of doctors in stages or continuously. Therefore, this
monitoring system can improve control continuously by a doctor through a
notification in the android that has been stored in the analysis of data and Web
systems. This can make it easier for doctors to know that someone is there or not
heart disease through the values read from the notification on Android or iOS.
Moreover, the use of this monitor system is uniform and wide to all those who want
to measure the heart rate and especially to those with heart disease.
1.6 Structure of Project
Chapter 1:
This chapter will provide brief explanation about the project which will
cover the background, problem statement, objective, scope of the project and
significant of project. This explanation will describe the idea and concept of the
project and how it is applied in the real world situation.
Chapter 2:
This chapter will cover the background study about the project based on the
knowledge and information required to design and develop the project. The
research that will target on every software and hardware that used to develop this
project. The source of these researches has to be acceptable in the system format
such as books, journals, articles and website that are licensed.
Chapter3:
This chapter contains methodology. Methodology chapter is a schedule or
steps that need to be complete, detailed reports of studies done to achieve aim
objective. When the project complete, this chapter explains the procedure taken. It
consist the detail development of this current project.
5
Chapter 4:
This chapter presents the result and the findings of the study, the result from
the experiments that are presented in tables, figures, drawings and graphs and are
discussed elaborately in the chapter. Several observations are also projected from
the findings.
Chapter 5:
This chapter summarizes the outcomes of this experiment. The chapter also
outlines several recommendations for further development and improvement on the
design. Suggestions for future inventor are also provided within the chapter.
6
CHAPTER 2
LITERATURE REVIEW
2.1 Introduction
This chapter will cover on the background study about the project based on
the knowledge and information required to design and develop the project. To
develop this project, it is necessary to go through several researches that is related
to the idea of this project. The research that will target on every hardware and
software that will used to develop this project. With this, it will help in achieving
the idea of the project based on what component is suitable to use. The source of
these researches has to be acceptable in the system format such as books, journals,
articles and website that are licensed.
2.2 Software Part
2.2.1 Android Based
Figure 2.1: Android Logo