You are on page 1of 29

A

Project Report
on

Health Monitoring Wearable Device


By
Anjal R. Doshi (201303100910027)
Pooja V. Pancholi (201303100910036)
Riya A. Ariwala (201303100910040)

Submitted in
Partial fulfillment of the requirements for the degree of

BACHELOR OF TECHNOLOGY
in
Computer Engineering

Under the guidance of


Mr. Vishvajit Bakrola
Department of Computer Engineering & Information Technology
CGPIT, UTU, Bardoli, Gujarat

Chhotubhai Gopalbhai Patel Institute of Technology


Uka Tarsadia University
Bardoli - 394350
December 2016
CERTIFICATE

This is to certify that project work embodied in this report entitled “Health

Monitoring Wearable Device” as carried out by Anjal R. Doshi, Pooja

V. Pancholi, Riya A. Ariwala in 7th semester, for partial fulfilment of Bachelor


of Technology in Computer Engineering at Chhotubhai Gopalbhai Patel Institute of
Technology, to be awarded by Uka Tarsadia University. This project work has been
carried out under my supervision and is to my satisfaction.

Date:
Place: CGPIT, Bardoli

Guided By: Mr. Vishvajit Bakrola

___________________
Mr. Vishvajit Bakrola Prof. Purvi Tandel
Assistant Professor, Head of the Dept.,
Department of CE & IT, Department of CE & IT,
CGPIT, UTU, Bardoli. CGPIT, UTU, Bardoli.

_________________________

Signature of Examiner

Chhotubhai Gopalbhai Patel Institute of Technology


Uka Tarsadia University
Bardoli – 394350
iii
ACKNOWLEDGEMENTS

It is our proud privilege and duty to acknowledge the kind of help and guidance received
from several people in preparation of this report. It would not have been possible to
prepare the report in this form without their valuable help, cooperation and guidance.
First and foremost, wewish to record our sincere gratitude to faculty members of
Chhotubhai Gopalbhai Patel Institute of Technology and to our beloved Head of the
Department Prof. Purvi Tandel for her constant support and encouragement and for
making available library and laboratory facilities. We express our sincere gratitude to our
guide, Mr. Vishvajit Bakrola, Assistant Professor, in Department of Computer
Engineering & Information Technology, for guiding us in investigations for the project
and in carrying out experimental work. Our numerous discussions with him were
extremely helpful. We hold him in esteem for guidance, encouragement and inspiration
received from him. We also want to thank our colleagues in developing the project and
people who have willingly helped us out with their abilities.

Anjal R. Doshi (201303100910027)


Pooja V. Pancholi (201303100910036)
Riya A. Ariwala (201303100910040)

CGPIT/ CE_06 i
ABSTRACT

Currently, automation is incorporated to increase safety and health related issues which
could prove a great help to certain ill-health people or people who are incapable of
visiting doctor on a regular basis. Hence, it is convenient to integrate certain subsystems
which help to constantly examine a person’s health aspects and to let the concerned
people like guardians or doctors get informed if health gets worse. The proposed device
is formed by assimilation of sensors like pulse sensor, accelerometer and temperature
sensor. The sensorwill constantly measure the parameters detected by the sensors and
forwards the result to the android application. The android application tracks down the
values.The value of each parameter will be compared with a threshold valuebeyond
which if the parameters reach, the person’s health is considered ill. Values beyond the
threshold will be sent through a message to those people who were registered.

CGPIT/ CE_06 ii
Table of Contents
Acknowledgements ............................................................................................................... i

Abstract ................................................................................................................................ii

List of Figures ...................................................................................................................... v

List of Tables ...................................................................................................................... vi

Chapter 1 Introduction .................................................................................................... 1

1.1 Background ........................................................................................................... 1

1.2 Problem Definition ................................................................................................ 1

1.3 Motivation ............................................................................................................. 1

1.4 Scope ..................................................................................................................... 1

Chapter 2 System Planning............................................................................................. 2

2.1 Project Development Approach ............................................................................ 2

2.2 System Modules .................................................................................................... 3

2.3 Functional Requirements....................................................................................... 6

2.4 Non Functional Requirements............................................................................... 7

2.5 Hardware and Software Requirements .................................................................. 7

2.6 Timeline Chart....................................................................................................... 7

Chapter 3 System Design ............................................................................................... 9

3.1 Use Case Diagram ................................................................................................. 9

3.2 Sequence Diagram............................................................................................... 10

3.3 Activity Diagram ................................................................................................. 10

3.4 Block Diagram .................................................................................................... 12

3.5 Database Schema............................................................................................... 123

3.6 ER Diagram ......................................................................................................... 14

Chapter 4 Implementation and Testing ........................................................................ 15

4.1 Snapshots............................................................................................................. 15

CGPIT/ CE_06 iii


4.2 Test Cases ............................................................................................................ 18

Chapter 5 Conclusion and Future Scope ...................................................................... 19

References .......................................................................................................................... 20

CGPIT/ CE_06 iv
LIST OF FIGURES
Figure 2-1 Arduino Nano ..................................................................................................... 3
Figure 2-2 Thermistor .......................................................................................................... 4
Figure 2-3 Pulse Sensor ....................................................................................................... 4
Figure 2-4 Accelerometer .................................................................................................... 4
Figure 2-5 Bluetooth Module............................................................................................... 5
Figure 2-6 Application Snapshot ......................................................................................... 5
Figure 2-7 Tentative Timeline Chart ................................................................................... 8
Figure 3-1 Use case Diagram ............................................................................................... 9
Figure 3-2 Sequence Diagram ........................................................................................... 10
Figure 3-3 Activity Diagram .............................................................................................. 11
Figure 3-4 Block Diagram ................................................................................................ 12
Figure 3-5 ER Diagram ..................................................................................................... 14
Figure 4-1 Home Page ....................................................................................................... 15
Figure 4-2 Login Page ....................................................................................................... 16
Figure 4-3 Registration Page ............................................................................................. 16
Figure 4-4 Bluetooth Device Selection Page ..................................................................... 17
Figure 4-5 Body Measure Information Page ..................................................................... 17

CGPIT/ CE_06 v
LIST OF TABLES

Table 2.1 Functional Requirements Table ........................................................................... 6


Table 3.1 Registration Table .............................................................................................. 13
Table 4.1 Test Cases Table ................................................................................................ 18

CGPIT/ CE_06 vi
Health Monitoring Wearable Device

CHAPTER 1 INTRODUCTION

1.1 Background
Nowadays automation is required in almost everything. People want to perform task
sitting at home and obtain results. Keeping the aspects in mind, we thought of creating a
smart health monitoring device. The wearable device makes it easier for people to
encapsulate data into the device regarding health related parameters. The obtained results
can be forwarded to concerned people through a message showing the conveniency of the
device.

1.2 Problem Definition


The project was developed keeping in mind providing ease to people regarding
management of health related issues that are needed to be kept in constant observation.
People require to constantly examining health in order to stay healthy and stay away from
incurring heavy diseases like heart attack, diabetes, blood pressure and similar diseases.
Implementing a wearable allows automated monitoring of help without requiring external
help. In critical conditions, the concerned guardians must be informed.

1.3 Motivation
Health is the biggest factor in anyone’s life. Good health is the key to a better life. But the
number of healthy people is deteriorating day by day. If we don’t take steps, nothing will
change. One might need to measure their temperature, measure the calories burnt while
walking or running or measure or heart rate, one need to evaluate them separately using
the devices like thermometer, pedometers and heart-rate sensors. One may need to go to
the doctor daily for getting their health checked. Hence, the idea of developing a wearable
device to measure the health parameters comes into existence. A wearable hardware
accumulates different sensors onto a single device for which one does not need to exert
different instruments to evaluate the mentioned parameters. A person himself can monitor
the data resulted continuously which will help him/her to take preventive actions. For
example, if the heart rate is showing a gradual decrease in past week, a person can
manage his/her diet and daily routine in order to bring the heart rate back to normal.

1.4 Scope
This project aims to monitor different health related parameters of a person by using
multiple sensors and logs the data on an Android phone. The problems that are perceived
using the device are then enumerated. If due to any reason the persons health becomes
critical then the family members of the person are informed about it.

CGPIT/ CE_06 1
Health Monitoring Wearable Device

CHAPTER 2 SYSTEM PLANNING

2.1 Project Development Approach


Each project need to be developed with software model which makes the project with
high quality, reliable and cost effective.

2.1.1 Spiral model

The spiral model combines the idea of iterative development with the systematic,
controlled aspects of the waterfall model. Spiral model is a combination of iterative
development process model and sequential linear development model i.e. waterfall
model with very high emphasis on risk analysis. It allows for incremental releases of
the product, or incremental refinement through each iteration around the spiral. The
spiral model has four phases. A software project repeatedly passes through these
phases in iterations called Spirals.

Identification:This phase starts with gathering the business requirements in the


baseline spiral. In the subsequent spirals as the product matures, identification of
system requirements, subsystem requirements and unit requirements are all done in
this phase. This also includes understanding the system requirements by continuous
communication between the customer and the system analyst.

Design: Design phase starts with the conceptual design in the baseline spiral and
involves architectural design, logical design of modules, physical product design and
final design in the subsequent spirals.

Construct or Build: Construct phase refers to production of the actual software


product at every spiral. In the baseline spiral when the product is just thought of and
the design is being developed a POC (Proof of Concept) is developed in this phase to
get customer feedback. Then in the subsequent spirals with higher clarity on
requirements and design details a working model of the software called build is
produced with a version number. These builds are sent to customer for feedback.

Evaluation and Risk Analysis: Risk Analysis includes identifying, estimating, and
monitoring technical feasibility and management risks, such as schedule slippage and
cost overrun. After testing the build, at the end of first iteration, the customer
evaluates the software and provides feedback.

CGPIT/ CE_06 2
Health Monitoring Wearable Device

2.1.2 Idea behind using the Spiral Model

With the idea of having more accurate system, comes the construction of preliminary
design of the system. After having the design constructed, the first module is
implemented. But the implementation should match the product expectations.
Keeping in mind the efficiency and product accuracy, many prototypes are build that
can meet the needs. Hence, spiral model is the best fit for the system thereby
fulfilling all the needs.

2.1.3 Advantages of Spiral model

1) Changing requirements can be accommodated.

2) Allows for extensive use of prototypes

3) Requirements can be captured more accurately.

4) Users see the system early.

5) Development can be divided into smaller parts and more risky parts can be
developed earlier which helps better risk management.

2.2 System Modules

2.2.1 Hardware Module


- Arduino Nano: It is a small, complete, and breadboard-friendly open-source
electronic prototyping board based on the ATmega328 microcontroller. It uses inputs
and outputs in the same way an ordinary computer does. Inputs capture information
from the user or the environment while outputs do something with the information
that has been captured. An input could be digital or analog, and could come form the
environment or a user. Outputs can control and turn on and off device.

Figure 2-1 Arduino Nano [1]

CGPIT/ CE_06 3
Health Monitoring Wearable Device

- Temperature Sensor (Thermistor): A thermistor is a thermal resistor - a resistor that


changes its resistance with temperature. Technically, all resistors are thermistors - their
resistance changes slightly with temperature - but the change is usually very small and
difficult to measure. Thermistors are made so that the resistance changes drastically with
temperature. Thermistor temperature range -55°C to 125°C.

Figure 2-2 Thermistor [2]

- Pulse Sensor: The Pulse Sensor Amped is a plug-and-play heart-rate sensor. It


essentially combines a simple optical heart rate sensor with amplification and noise
cancellation circuitry making it fast and easy to get reliable pulse readings.

Figure 2-3 Pulse Sensor [3]

- Accelerometer (ADXL-335):The ADXL335 is a small, thin, low power, complete 3-


axis accelerometer with signal conditioned voltage outputs. The product measures
acceleration with a minimum full-scale range of ±3 g. It can measure the static
acceleration of gravity in tilt sensing applications

Figure 2-4 ADXL335 Accelerometer [4]

CGPIT/ CE_06 4
Health Monitoring Wearable Device

- Bluetooth Module (HC-05):HC-05 module is an easy to use Bluetooth SPP (Serial


Port Protocol) module, designed for transparent wireless serial connection setup.It can
easily transfer the UART data through the wireless Bluetooth, without complex PCB
layout or deep knowledge in the Bluetooth software stack.

Figure 2-5 HC-05 Bluetooth Module [5]

2.2.2 Software Module


The software module uses MIT APP Inventor which is a visual, blocks language for
building Android Apps.

Figure 2-6 Application snapshot [6]

CGPIT/ CE_06 5
Health Monitoring Wearable Device

2.3 Functional Requirements

Table 2.1Functional Requirement Table

ID Title & Description


FR1 Title: User registration
Description: The user should be able to register through the Android app.
The user must provide his personal details as well as his health information.
The user must enter at least 3 emergency contacts which are to be contacted
during crisis.

FR2 Title: Pulse Detection


Description: Hardware circuit should be able to detect the pulse and show
it on the app as well as store it in log.

FR3 Title: Temperature Sensing


Description: Hardware circuit should be able to detect the body
temperature and show it on the app as well as store it.

FR4 Title: Step Counter


Description: Hardware circuit should be able to detect the movement of the
person and count the number of steps he has walked, show it on the app and
store it.

FR5 Title: Send Alert to Emergency Contact


Description: If any critical arises for the patient then the app should
automatically send alert to the emergency contacts via sms.

FR6 Title: Send location of patient


Description: The location of the patient should be obtained using the
smartphone’s GPS by the app and it should be sent to the emergency
contacts.

CGPIT/ CE_06 6
Health Monitoring Wearable Device

2.4 Non Functional Requirements


- Security: The details of user such as emergency contacts as well as personal info
should not be altered without his access.

- Performance: The device should be fast in terms of receiving data from sensors -
and sending data to app. The app should work flawlessly on smartphone.

- Reliability: The sensors should be very accurate as well as function properly


without error in certain environmental conditions.

- Reusability: New sensors should be able to be added as per requirement without


changing the behaviour of existing sensors.

2.5 Hardware and software Requirements


Hardware Requirement

- Microcontroller: Arduino Nano


- Sensors:
Pulse Sensor – To monitor heart beats.
Accelerometer – To count the number of steps
Thermistor – To measure body temperature
- Bluetooth Module–To send data wirelessly toSmartphone

Software Requirement

- Arduino IDE – To code and write programs on Arduino MC.


- MIT App Inventor 2 – To develop app for smart phone.

CGPIT/ CE_06 7
Health Monitoring Wearable Device

2.6 Timeline Chart

Figure 2-7 Tentative timeline chart

CGPIT/ CE_06 8
Health Monitoring Wearable Device

CHAPTER 3 SYSTEM DESIGN

3.1 Use Case Diagram


A use case illustrates a unit of functionality provided by the system. The main purpose of
the use case diagram is to help development teams visualize the functional requirements
of a system, including the relationship of actors (human beings who will interact with the
system) to essential processes, as well as the relationships among different use cases.

Figure 3-1Use case Diagram

CGPIT/ CE_06 9
Health Monitoring Wearable Device

3.2 Sequence Diagram


Sequence diagram shows a detailed flow for a specific use case even just part of a specific
use case. They are almost self-explanatory; they show the calls between the different
objects in their sequence and can show, at a detailed level, different calls to different
objects. A sequence diagram has two dimensions: The vertical dimension shows the
sequence of message/calls in the time order that they occur, the horizontal dimension
shows the object instances to which the messages are sent.

Figure 3-2Sequence Diagram

CGPIT/ CE_06 10
Health Monitoring Wearable Device

3.3 Activity Diagram


Activity diagram is basically a flow chart to represent the flow form one activity to
another activity. The activity can be described as an operation of the system. So the
control flow is drawn from one operation to another. Activity diagrams are not only used
for visualizing dynamic nature of a system but they are also used to construct the
executable system by using forward and reverse engineering techniques.

Figure 3-3 Activity Diagram

CGPIT/ CE_06 11
Health Monitoring Wearable Device

3.4 Block Diagram


A block diagram is a diagram of a system in which the principal parts or functions are
represented by blocks connected by lines that show the relationships of the blocks. A
block diagram is a specialized, high-level flowchart used in engineering. Its structure
provides a high-level overview of major system components, key process participants,
and important working relationships.

Figure 3-4 Block Diagram of Health Monitoring Wearable Device

CGPIT/ CE_06 12
Health Monitoring Wearable Device

3.5 Database Schema

Table 3.1 Registration Table

Column Name Data Type Size Constraint Description

ID INT 5 Primary Key

F_name VARCHAR 20 --- First Name

L_name VARCHAR 20 --- Last name

Password VARCHAR 20 --- Password

Gender VARCHAR 10 --- Gender

Birthdate DATE 20 --- Birthdate

Age INT 5 --- Age

E_contact1 INT 10 --- Emergency Contact 1

E_contact2 INT 10 --- Emergency Contact 2

E_contact3 INT 10 --- Emergency Contact 3

CGPIT/ CE_06 13
Health Monitoring Wearable Device

3.6 ER Diagram
An entity relationship diagram (ERD) shows the relationships of entity sets stored in a
database. An entity in this context is a component of data. In other words, ER diagrams
illustrate the logical structure of databases.

Figure 3-5 Use case Diagram

CGPIT/ CE_06 14
Health Monitoring Wearable Device

CHAPTER 4 IMPLEMENTATION AND TESTING

4.1 Snapshots

 Home Page
On opening the app one is greeted with a welcome message. Two buttons are
present, Login and Sign Up. For a new user, one has to Sign Up and for a
returning user one has to login to proceed further.

Figure 4-1Home Page

 Login Page
After clicking on login button the app redirects to the login page. Here one has to
enter username and password the user has registered with. If it is valid then it is
redirected to other page or else a pop up message with “Invalid username /
password” opens up.

CGPIT/ CE_06 15
Health Monitoring Wearable Device

Figure 4-2 Login Page

 Registration Page
If a user is new then he has to register himself. The details mentioned are to be
entered along with the numbers of the emergency contacts. The data is now stored
in the database.

Figure 4-3Registration Page

CGPIT/ CE_06 16
Health Monitoring Wearable Device

 Selection of Bluetooth devices


On this screen one has to select the wearable device from the list of Bluetooth
devices.

Figure 4-4 Bluetooth Device Selection Page

 Body Measure Info. Page


On this page, the data sent from the wearable device via Bluetooth is fetched and
displayed.

Figure 4-5 Body Measure Info. Page


CGPIT/ CE_06 17
Health Monitoring Wearable Device

4.2 Test Case


Table 4.1Test Cases Table

Test Case Test Data Expected Result Actual Result Pass/Fail


ID
1 Login - Login ID If Login ID & If Login ID & Pass
- Password password is password is
empty or invalid empty or invalid
then display Error then display
message Error message.
otherwise
Login
successfully
2 Registration -Name Data entered Data entered is Pass
-Age should be successfully
-Birthdate successfully stored in
-Emergency stored in TinyDB TinyDB
Contact
Numbers
3 Bluetooth Bluetooth Select the The Bluetooth Pass
Connectivity Addresses Bluetooth module module is
from the given connected
list and connect successfully.
to it.
4 Accelerometer -X, Y, Z The initial The initial Pass
Calibration axis input position of the position is
user should be calibrated and
calibrated first. then step
counting takes
place.

5 Step Counting -X, Y, Z The steps should The steps are Pass
axis values be increased incremented
accordingly if the according to the
user is walking or walking or
running. running of user.
6 Body -Input data The temperature The temperature Pass
temperature from the should ne is converted
measurement sensor inputted as a form from analog
of analog voltage voltage to degree
and converted Celsius.
into Celsius.
7 Heart Rate - The heart rate -Yet to b tested -
should be
measured and
displayed on the
app.
8 Exit -Select exit Application Application is Pass
should be closed. closed.

CGPIT/ CE_06 18
Health Monitoring Wearable Device

CHAPTER 5 CONCLUSION AND FUTURE SCOPE

In the present world, health related issues are the major concern. People especially seniors
do not monitor their health as frequently as they seriously should. The proposed system
enables people to examine their health related parameters on their own without anyone’s
help or visiting doctors. The basic idea behind Health Monitoring Wearable Device is to
have the convenience of wireless wearable device while remaining fashionably sound.
However, certain bugs are there. The future work on this project is to work on the
accuracy of the device and extension of more health related parameters in the same device
while keeping the size of the device small. The project can be extended to a level such
that it can be used by more and more number of people.

CGPIT/ CE_06 19
Health Monitoring Wearable Device

REFERENCES

Web references

[1] [Online] https://www.arduino.cc/en/uploads/Main/ArduinoNanoManual23.pdf


[5 NOV 2016].
[2] [Online] http://cdn.sparkfun.com/datasheets/Sensors/Temp/ntcle100.pdf
[5 NOV 2016].
[3] [Online] http://pulsesensor.com/pages/pulse-sensor-amped-arduino-v1dot1
[5 NOV 2016].
[4] [Online] https://www.sparkfun.com/datasheets/Components/SMD/adxl335.pdf
[5 NOV 2016].
[5] [Online] http://www.electronicaestudio.com/docs/istd016A.pdf [5 NOV 2016].
[6] [Online]https://i.ytimg.com/vi/-VVe1qKwqJk/maxresdefault.jpg [5 NOV 2016].

CGPIT/ CE_06 20

You might also like