P-184 Final Report
P-184 Final Report
Monitoring
A PROJECT REPORT
Submitted by
BACHELOR OF TECHNOLOGY
IN
MAY 2024
AMRITA VISHWA VIDYAPEETHAM
BONAFIDE CERTIFICATE
This is to certify that the project report entitled “NextGen Patient Care -
Unleashing IoT for Health Monitoring” submitted by
I would like to thank the project panel members for their suggestions,
encouragement, and moral support during the process of project work and all faculty
members for their academic support. Finally, I am forever grateful to my parents,
who have loved, supported and encouraged me in all my endeavors.
I
ABSTRACT MAY 2024
ABSTRACT
In order to improve patient care, advanced technologies have been discovered as a
result of increasing demand for effective emergency health care services.
This study focuses on creating a smart system to keep track of people's health using
IoT technology. We'll use devices like ESP8266 and Arduino to monitor real-time
health data, like temperature and pulse rate. All this information will be securely
stored in the Power Bi, making it easy to access and keeping it private.
Their medical history will be collected and safely stored in the Power Bi.
Then, using ESP8266, we'll build a simple device that measures an individual's
temperature, ECG, and pulse rate. The collected data will be transferred to a Power
Bi for storage and analysis. The system will continuously analyze the health data and
compare it with previous records to identify any odd changes or possible health
issues.
After setting up the IoT device, we'll test it by checking the temperature, ECG
and pulse rate of a few people and comparing the results with their past health data
stored in the cloud. This will help us identify any early changes or health problems.
Our system consists of small devices to measure health, and a way to send this
data. We make sure that the health information is kept private and follows all the
rules to protect sensitive data.
Overall, this project aims to create a simple and effective way to monitor
health using IoT, making it easier for people and doctors to work together for better
health outcomes.
II
TABLE OF CONTENT MAY 2024
TABLE OF CONTENTS
Page No.
ACKNOWLEDGEMENTS i
ABSTRACT ii
LIST OF FIGURES iv
CHAPTER 1- INTRODUCTION 1-5
1.1 INTRODUCTION 1-5
1.2 MOTIVATION 5
CHAPTER 2 – LITERATURE SURVEY 6 - 12
2.1 LITERATURE REVIEW 6 - 11
2.2 SUMMARY OF LITERATURE 12
CHAPTER 3 – SYSTEM REQUIREMENTS AND ANALYSIS 13 - 17
3.1 SOFTWARE REQUIREMENTS 13 - 14
3.2 HARDWARE REQUIREMENTS 14 - 17
CHAPTER 4 – SYSTEM DESIGN 18 - 22
4.1 HIGH-LEVEL DESIGN 18 - 19
4.2 LOW-LEVEL DESIGN 19 - 22
CHAPTER 5 – SYSTEM IMPLEMENTATION 23 - 29
5.1 MODULES USED WITH DESCRIPTION 23 - 25
5.2 ALGORITHMS USED WITH DESCRIPTION 25 - 29
5.2.1 UNO Code 25 - 27
5.2.2 NODE MCU CODE 27 - 28
5.2.3 RANDOM FOREST CODE 29
CHAPTER 6 – SYSTEM TESTING 30 - 35
III
TABLE OF CONTENT MAY 2024
IV
LIST OF FIGURES MAY 2024
LIST OF FIGURES
Fig 1.1 IoT patient-based health monitoring system 2
V
LIST OF FIGURES MAY 2024
Fig 6.7 Patient data downloaded from thingspeak and visuals from 33
excel.
IV
INTRODUCTION MAY 2024
CHAPTER - 1
INTRODUCTION
In today's fast changing healthcare environment, where technological developments
are changing every aspect of patient care, the implementation of modern technologies
stands out as a sign of hope for improving health outcomes and boosting patient
experience. Among these advancements, the Internet of Things (IoT) stands out as a
game changer, promising an evolution in how we monitor, manage, and deliver
healthcare services.
Our initiative, aptly named "NextGen Patient Care - Unleashing IoT for Health
Monitoring," highlights IoT's transformative power in healthcare. By welcoming IoT
technologies, we hope to bring in a new era of patient care defined by continuous
monitoring, early detection, and unique treatment options.
In the old way of doing things in healthcare, patients usually wait until they feel sick,
or their conditions get bad before they seek help. This puts a lot of pressure on
hospitals and clinics and makes it harder to treat them effectively.
However, we now have the chance to overcome these challenges and move toward a
more proactive and patient-focused style of treatment thanks to the development of
IoT-enabled healthcare solutions. Patients are given the ability to take part in the
management of their own health and well-being using a variety of networked devices
and sensors that can monitor many health metrics in real-time.
Page | 1
Dept. of CSE, ASC, Bengaluru
INTRODUCTION MAY 2024
delivery of more integrated and planned treatment. The opportunities that the Internet
of Things (IoT) offers the healthcare industry are almost endless, covering everything
from predictive analytics and preventive treatments to remote patient monitoring.
With our project, we hope to fully utilize the Internet of Things to not only monitor
and control health but also to completely change the healthcare experience for
everyone involved—providers, patients, and caregivers. We are setting off on a
journey towards a future where healthcare is not just about treating illness but also
about empowering people to live healthier, more fulfilling lives by accepting
innovation and the promise of IoT.
Page | 2
Dept. of CSE, ASC, Bengaluru
INTRODUCTION MAY 2024
that can monitor vital signs—combines to form an equilibrium that enables people to
take greater control of their health.
Moreover, the whole healthcare cycle may benefit from increased efficiency and
effectiveness thanks to IoT-enabled medical technologies. IoT data can provide
valuable insights into various aspects of patient care, such as treatment plan
improvement and diagnostic process efficiency. This can ultimately lead to improved
patient satisfaction and better outcomes.
Utilizing Power BI, a powerful and approachable data visualization platform that
forms the basis of our IoT-driven healthcare solution, is at the foundation of our
project. By converting raw data into useful insights that help with well-informed
decision-making, Power BI enables us to fully utilize the amazing potential of data.
Through the utilization of Power BI, we may easily import and examine historical
medical records, leading to a whole comprehension of a person's medical history.
With the use of this comprehensive view, we can spot trends, patterns, and possible
risk factors that could otherwise go neglected, enabling us to execute specific
measures and targeted preventative measures.
Furthermore, Power BI's interactive features enable real-time monitoring and analysis
of health data, allowing for immediate actions and necessary changes to treatment
plans. Better health outcomes are the ultimate result of this flexible approach to
healthcare, which gives patients and healthcare professionals the opportunity to make
decisions based on the latest information.
Page | 3
Dept. of CSE, ASC, Bengaluru
INTRODUCTION MAY 2024
Essentially, Power BI is an effective instrument for turning data into information that
can be used to improve health. By utilizing this platform to its fullest, we enable
patients to take charge of their health and wellbeing and give medical professionals
with the resources they need to provide individualized, high-quality care.
Comprehensive health monitoring is made possible using sensors like the DHT
Temperature Sensor and Pulse Sensor, which allow us to record essential
physiological parameters accurately and precisely. The DHT Temperature Sensor
captures ambient temperature to ensure environmental factors are considered in our
research, while the Pulse Sensor measures heart rate and blood oxygen levels,
offering essential information into cardiovascular health. Together, these sensors
offer a comprehensive picture of a person's health status, facilitating early detection
of problems and preventive measures.
Additionally, the addition of an OLED display gives our system a new level of user
involvement. With the help of the OLED Display's simple visual indicators, users can
keep an eye on their health in real time and get alerts when there are changes from the
usual. Our device's benefit is improved by its user-friendly interface, which
encourages people to actively participate in their healthcare journey and make well-
informed decisions.
In the end, our project signifies a paradigm change in the way we see the provision of
healthcare. By utilizing the potential of IoT technology, we may encourage people to
Page | 4
Dept. of CSE, ASC, Bengaluru
INTRODUCTION MAY 2024
actively manage their health and well-being and enhance the quality of treatment. Our
proactive measures and data-driven decision-making are establishing the way for a
future in which healthcare is accessible, efficient, and personalized for everybody.
1.1Motivation
In the airline's Gurugram office, a 37-year-old Air India pilot passed away from a
heart attack. He was taken to a nearby hospital and given CPR, but he was not able to
be saved.
Patient health monitoring systems are becoming more and more important. This is
demonstrated by the many cases in which early indicators of medical concern were
missed, resulting in life-threatening situations or even deaths. The tragic event of an
Air India employee who, despite having passed all previous medical examinations,
developed an unexpected health problem that ultimately proved fatal serves as a
moving illustration of this necessity. This incident, which happened during a regular
task at his place of employment, serves as an important example of the sudden onset
of serious health crises in otherwise apparently healthy people.
Therefore, the primary motivation behind this project is the use of technology to
develop a strong health monitoring system that can significantly decrease the number
of medical emergencies and enhance people's general safety and wellbeing, especially
in situations where there is a lot of stress and a plenty on the line.
Page | 5
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
CHAPTER - 2
LITERATURE REVIEW
[1] The proposed system makes use of sensors, microcontrollers, and Internet of
Things technologies to send real-time patient data to a medical server, enabling
healthcare professionals to diagnose patients remotely. Real Time data transmitted to
server.
The aim of this project is to create an effective patient health monitoring system by
using the latest developments in sensor, microcontroller, and Internet of Things (IoT)
technology. The main objective is to enable the real-time transfer of patient data to
medical servers so that healthcare professionals may monitor patients from a distance
and react quickly if their health worsens.
[2] represents the IoT-based healthcare system to improve patient care, reduce
healthcare costs, and provide real-time online patient condition updates, thereby
encouraging early medical treatments and better quality of care. The monitoring of
essential parameters and the alerting of doctors if any parameter exceeds threshold
values.
Page | 6
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
Through constant monitoring of critical health metrics like blood pressure, oxygen
saturation, body temperature, and heart rate, the Internet of Things system makes sure
that problems are found as soon as possible. With real-time medical care adjustments
based on the most recent data, this continuous monitoring allows a more flexible and
adaptable approach to patient care, resulting in more personalized and efficient
healthcare solutions.
One of the most important features in avoiding any health emergencies is the system's
capacity to notify medical professionals when specific parameters cross pre-
established limits. These alerts can be set up to take a variety of actions, such as
immediately notifying a doctor's mobile device or connecting with emergency
services to enable fast reaction and ensure that patients receive the care they require.
[3] focuses on the continuous remote monitoring of critical health metrics, the
suggested system uses Raspberry Pi, Internet of Things (IoT) devices, and cloud
platforms to improve patient care, increase efficiency, and transform healthcare
delivery.
Page | 7
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
The paper highlights the critical need to include modern digital health technology,
including remote monitoring, as brought to light by the Covid-19 outbreak. It
promotes the use of wearable sensors as necessary instruments for real-time patient
monitoring, with cloud based IoT systems making access to data possible.
The suggested approach makes use of the Internet of Things to link wearable sensors
to cloud servers, allowing the smooth transfer of medical information for remote
health monitoring. A complete smart healthcare monitoring system with cloud
storage, IoT servers, embedded sensors, and communication channels is described in
this paper. This method intends to improve patient care, lower problems, and provide
healthcare decision-makers with current information through continuous remote
monitoring made possible by Raspberry Pi, IoT devices, and cloud platforms. In
doing so, it will change the way healthcare is delivered.
[4] presents an overview of measuring vital signs including temperature, heart rate,
and ECG using sensors and microcontrollers, it fulfills the requirement for continuous
patient monitoring, particularly for individuals who are at home.
Page | 8
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
Page | 9
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
Fig 2.5. The art framework/architecture for IoT-based smart and ubiquitous healthcare.
The Internet of Things (IoT) applications in healthcare are a quickly growing sector,
and e-health monitoring systems are the main topic of this study. IoT makes it
possible to continuously monitor patients' physical and mental health by utilizing
networked devices like wearable sensors and remote gadgets. The main goal is to
enable medical professionals to remotely monitor patients by automating medication
distribution based on patient conditions.
The study uses a descriptive research approach to carefully examine current research
and highlight the potential of IoT in improving medical care services. This includes
precise diagnosis, lowered hospitalization rates, and enhanced data accuracy for
scientific research. The evaluation highlights the benefits and drawbacks of Internet-
based healthcare monitoring systems while showing how essential they are to the
transformation of normal medical procedures.
[6] presents an overview of sensors such as temperature, heartbeat, eye blink, and
SPO2
The suggested system improves patient health care and lowers medical costs by
enabling rapid identification of problems.
Page | 10
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
With the aim of greatly improving patient care and possibly saving lives through
early identification of health concerns, this research suggests an Internet of Things-
based method for continuously monitoring the health parameters of coma patients.
The system uses smart sensors to track vital indications like oxygen saturation levels,
heart rate, eye movement, and body temperature. These sensors include temperature,
heartbeat, eye blink, and SPO2 sensors. The system makes use of the Arduino Uno
board as a microcontroller and cloud computing to enable authorized users' laptops
and cell phones to receive data through a cloud server.
Page | 11
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
2.1 Summary
S.No. Gaps
3 If previous medical records are not compared with current patient data,
significant patterns, changes, or abnormalities that may indicate the
beginning of a possible health problem may go undetected.
CHAPTER – 3
Page | 12
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
SYSTEM SPECIFICATIONS
Arduino IDE:
The Arduino Integrated Development Environment (IDE) is an open-source software
platform used for developing code for Arduino microcontroller boards. The IDE
provides a user-friendly interface for writing, compiling, and uploading code to an
Arduino board.
The Arduino IDE supports a simplified programming language based on C/C++,
which makes it accessible even to beginners with little or no programming
experience. It also provides a library of pre-written code, called "sketches," that can
be used as building blocks for creating more complex programs.
The IDE includes a text editor with features like syntax highlighting, auto-
completion, and error highlighting, making it easier for developers to write and debug
code. It also includes a serial monitor for viewing and sending data between the
computer and the Arduino board, which is particularly useful for debugging.
Power BI:
Page | 13
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
Microsoft created Power BI, a powerful business analytics tool that enables users to
see and analyse data from a variety of sources interactively and easily. Data-driven
decision-making is made easier for enterprises by enabling them to translate raw data
into meaningful and visually appealing reports and dashboards. Many functions are
available with Power BI, including collaboration tools, data modelling, data
networking, data preparation, and visualization. Power BI's powerful features and
user-friendly interface enable users at all organizational levels to get important
insights from their data, allowing them to spot patterns, recognize trends, and make
well-informed decisions that boost company success.
Arduino UNO:
The Arduino UNO is a popular microcontroller board that is widely used in
electronics and robotics projects. It is based on the Atmel ATmega328P
microcontroller and features 14 digital input/output pins, 6 analog inputs, a 16 MHz
quartz crystal, a USB connection, a power jack, and an ICSP header.
The digital I/O pins on the Arduino UNO can be configured as either input or output
pins and can be used to interface with various electronic components like sensors,
LEDs, and motors. The analog inputs on the board can be used to read analog signals
from sensors and other devices.
Page | 14
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
The board is powered either through the USB connection or through an external
power supply connected to the power jack. The ICSP header can be used for
programming the microcontroller using an external programmer, if needed and
compatible with the Arduino IDE.
Jumper Wires:
Jumper wires are a type of electronic wiring commonly used in prototyping and bread
boarding circuits. They are typically made of flexible, insulated wire with pins or
connectors on either end to easily connect electronic components together.
Bread Board:
A breadboard is a type of prototyping board used for designing and testing electronic
circuits. It is a reusable board that allows electronic components to be easily
connected without the need for soldering. A typical breadboard consists of a plastic
base with a series of interconnected metal strips or holes. The holes or strips are
arranged in a grid pattern, with rows and columns marked by different colors to aid in
component placement and wiring.
Electronic components such as resistors, capacitors, transistors, and ICs can be easily
inserted into the holes on the breadboard, and then connected using jumper wires.
The interconnected strips or holes on the breadboard allow components to be easily
connected without the need for soldering.
Components can be easily inserted and removed without any permanent alterations,
making breadboards highly reusable.
Wonderful for quick experiments and modifications because soldering is not
required, which reduces off setup time and makes modifications easier.
Supports a wide range of components, from resistors and capacitors to integrated
circuits and microcontrollers.
Page | 15
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
Pulse Sensor:
A pulse sensor is a type of sensor used to detect and measure a person's heart rate in
real-time. It works by detecting the changes in blood volume in the body caused by
the beating of the heart.
Page | 16
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
commonly used in various DIY electronics projects and IoT (Internet of Things)
applications due to its simplicity and affordability.
The DHT11 sensor can measure both temperature and humidity levels in the
surrounding environment.
CHAPTER - 4
Page | 17
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
SYSTEM DESIGN
Fi
g 4.1. System Architecture
● Each sensor (pulse sensor, temperature sensor, and ECG sensor) is connected
● The Arduino Uno reads sensor data from its input pins.
● These sensors collect physiological data: heart rate, body temperature, and
● The Arduino Uno sends the processed sensor data to the NodeMCU.
● This communication occurs through the digital pins 5 and 6 on the Arduino
Page | 18
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
protocols.
● This file contains timestamped entries of the sensor data, allowing for past
data analysis.
● The CSV file exported from ThingSpeak is uploaded into Microsoft Power
BI.
● Power BI handles data processing and modeling so that the visualization tools
● Predictive modeling, correlation plots, and time series analysis are some of
● The data visualizations allow users to explore and dig deeper into time periods
or events.
● Connect GND of the OLED to analog pin GND of the Arduino board.
Page | 19
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
● Connect the SDA of the OLED to the SDA of the Arduino board.
Page | 20
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
Page | 21
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
CHAPTER – 5
SYSTEM IMPLEMENTATION
1. LiquidCrystal_I2C
Page | 22
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
2. DHT11
3. SoftwareSerial
4. Wire
5. Adafruit Sensor
LiquidCrystal_I2C:
Liquid Crystal is a commonly used header file in the Arduino libraries that can be
used to control different types of Liquid Crystal Display modules. In terms of
Arduino, the Liquid_Crystal module is a convenient tool as it is used for handling
Liquid Crystal Displays (LCDs) via the I2C communication protocol. Because of
these functions it provides for purposes of initializing and controlling the display,
interfacing with LCD modules has been simplified using Liquid Crystal. The library
allows users to change the cursor's position, display custom characters, and write text
on LCD screen. It also performs backlight control so that you can increase/decrease
the visibility or turn it on/off depending on lighting conditions.
DHT11:
The DHT module is a sensing unit that detects and measures humidity as well as
temperature levels in its environment. It detects and transforms chances in humidity
levels and temperature into electronic signals. Usually, it contains a digital output
interface which makes it simple to connect with microcontrollers for data retrieval
purposes. Utilizing a single-wire interface simplifies wiring, only one digital pin is
needed for both data transmission and power supply. Signal processing, calibration
and error checking are performed inside the module so that reliable and precise
measurements can be obtained under different environmental conditions.
SoftwareSerial:
Page | 23
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
banging. This can use more CPU than hardware serial and may be less reliable under
some conditions—for example, higher baud rates or if multiple software serial ports
are active.
Wire:
The Wire.h library is one of the fundamental parts of the Arduino programming
environment, and it allows Arduino boards to communicate with I2C / TWI (Two-
Wire Interface) devices. The library provides an interface to facilitate the use of the
I2C bus, a widely used protocol in the communication between a microcontroller and
peripheral devices, such as sensors, displays, or even other microcontrollers. I2C
protocol has multiple slave devices connected over a common bus. Two wires are
needed—one for data (SDA) and one for clocking (SCL). One master device will be
in control of them all. The abstractions within the Wire.h library make most of the
underlying I2C communication complexity easy to use in simple functions within the
Arduino IDE.
Adafruit Sensor:
The module offers a consistent API for interacting with different sensors, which
makes it easy for developers to write code that can work with various types of
sensors. It is made to work with a wide range of sensors from Accelerometers to
Gyroscopes to Magnetometers and even Temperature Sensors among others designed
for creators who need such products in their design systems. This includes all sorts
like accelerometers, gyroscopes, magnetometers, temperature sensors. To connect to
a sensor in the Adafruit Sensor library one usually will make a sensor object instance.
This object stands for an actual sensor connected to the Arduino board. After that,
you can call Adafruit Sensor library functions to get sensor data.
Page | 24
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
Initialization:
● Set pin modes and baud rates for communication interfaces (Serial,
SoftwareSerial).
Main Loop:
● Continuously execute the main loop, where the program's core functionalities
are performed.
● Read analog data from the pulse sensor connected to pin A0.
● Calculate the heart rate (beats per minute) based on the sensor data.
● If a heartbeat is detected (heart rate above threshold), turn on the built-in LED
as a visual indicator.
ECG Measurement:
● Read analog data from the ECG sensor connected to pin A1.
● Output the ECG value to the serial monitor for visualization or further
processing.
Page | 25
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
● Output the temperature and humidity values to the serial monitor for
Data Transmission:
● Combine the temperature and humidity values into a string along with
appropriate labels.
● Send the data string to the ESP8266 module via SoftwareSerial for
OLED Display:
● Display the current heart rate, ECG value, temperature, and humidity in
Loop Delay:
● Introduce delays between sensor readings and OLED updates to ensure stable
Serial Communication:
Page | 26
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
● Use the Serial interface for debugging and monitoring sensor data on a
computer.
transmission.
Repeat:
● Repeat the main loop indefinitely to continuously monitor sensor data, update
This algorithmic description outlines the key steps and functionalities performed by
your Arduino code, providing a high-level understanding of its operation.
Initialization:
Initialization:
● Connect to the specified Wi-Fi network using the provided SSID and
password.
Main Loop:
Page | 27
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
Wi-Fi Connection:
● Attempt to connect to the specified Wi-Fi network using the provided SSID
and password.
● Construct a POST request string containing the API key and the data to be
● Print debug messages to the serial monitor indicating that the data has been
sent to ThingSpeak.
Serial Communication:
Page | 28
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
Serial Debugging:
● Echo any received serial data to the serial monitor for debugging purposes.
● This ensures that the device is receiving data from connected sensors or other
peripherals.
Serial Delay:
consecutive transmissions.
This algorithm continuously reads data from the serial port, sends it to ThingSpeak
for storage and visualization, and maintains the Wi-Fi connection for smooth data
transmission. The delay between transmissions ensures adherence with ThingSpeak's
Train-Test Split:
train_data = data.iloc[:-250]
test_data = data.iloc[-250:]
train_data: This variable contains all rows of the dataset except the last 250 rows.
test_data: This variable contains the last 250 rows of the dataset.
Page | 29
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
The data is divided into training and testing sets using this split. The model is
constructed using the training data, and its performance is evaluated using the testing
data.
Import Libraries:
CHAPTER - 6
SYSTEM TESTING
A dialogue box displaying the data, including the pulse, temperature, humidity, and
ECG readings, is displayed by the Serial Monitor.
Page | 30
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
The NodeMCU Serial Monitor is used to track the progress of data transmission to
ThingSpeak.
Within the 'Data Import / Export' tab, you will have options to specify the range of
data you want to download.
Choose the format in which you want to download the data. I’ve used CSV (Comma-
Separated Values), which is a convenient format as it can be easily imported into
spreadsheet software like Microsoft Excel.
Page | 31
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
The data will be processed, and a CSV file will be generated. Click the download link
or the file icon to save the CSV file to your computer.
To predict health outcomes, I've implemented Random Forest, SVM and KNN
machine learning models.
During training, several decision trees are built using the Random Forest ensemble
learning technique, which produces the mode of the classes (classification) of each
individual tree. The accuracy of the Random Forest model was 0.96.
With extremely high recall and precision, it succeeds in classifying the majority class
(Class 0). The model likewise shows good performance for the minority class (Class
1), but with a slight decline in recall.
Page | 32
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
Class 0 is classified with excellent recall and precision, suggesting that the SVM
model performs extremely well in minimizing false negatives and recognizing true
positives for this class.
Class 1 has strong recall and precision in classification, however slightly lower
metrics than Class 0. This implies that while the model can accurately predict Class 1
in most cases, it might miss some instances.
High performance and accuracy are shown by the SVM model in all significant
classification measures. With excellent recall and precision, it excels in classifying
the majority class (Class 0). The approach works well for the minority class (Class 1),
although recall for that class is slightly lower than for Class 0.
The KNN model is good at finding true positives for class 0, but it also generates a
higher number of false positives. Class 0 is classified with moderate precision but
high recall.
Class 1 has a low recall and low precision of classification, indicating that the KNN
model has a major problem detecting genuine positives and reducing false negatives
for this class.
Page | 33
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
With an accuracy of 0.696, the KNN model performs moderately overall. It performs
noticeably worse for Class 1, with poor precision and recall, even if it has a
reasonable recall for Class 0. The imbalance suggests that KNN is not a good fit for
this specific classification problem, especially when handling data that is not
balanced.
Based on the accuracy scores, Random Forest and SVM perform better than KNN.
Random Forest and SVM are nearly equivalent in performance, with Random Forest
slightly ahead.
Page | 34
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
Fig 6.7. Patient data downloaded from thingspeak and visuals from excel.
This file contains timestamped entries of the sensor data, allowing for past data
analysis and backup.
The CSV file exported from ThingSpeak is downloaded and uploaded into Microsoft
Power BI.
Page | 35
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
To ensure accuracy in visualization, ECG, pulse, and temperature sensor data were
cleaned and transformed.
shows the trend of the temperature, pulse, and ECG rates during the observation
period.
Data can be filtered by users according to particular time intervals, sensor types, or
medical conditions.
Enhanced decision-making and in-depth analysis are made possible by this
interaction.
Page | 36
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
CHAPTER – 7
RESULTS AND ANALYSIS
7.1 Result and analysis:
The IoT Health Monitoring System represents an innovation in the integration of
hardware and software components to facilitate remote health monitoring and
analytics of vital physiological data. The NodeMCU and Arduino Uno are the
microcontrollers at the center of the system architecture, which undertake the
responsibility for data acquisition, processing, and transmission. Additionally, a suite
of sensors composed of the Pulse Sensor, Temperature Sensor, and ECG Sensor are
used for the capture of key health metrics such as heart rate, body temperature, and
electrocardiogram signals.
Sensors collect real-time physiological data, which is transferred into the Arduino
Uno for preprocessing and conditioning. Here, it becomes an intermediary in the
process of converting the analog sensor readings into digitized data for transmission.
The Arduino Uno communicates with the NodeMCU, harnessing its Wi-Fi capability
to connect it to the internet.
Once connected, the NodeMCU uses HTTP requests in sending the sensor data,
which has been processed, to ThingSpeak—a cloud-based IoT analytics platform.
ThingSpeak is the central repository of the collected data, complete with its high-end
storage and analytics features. Data is structured into channels within ThingSpeak for
ease of access and retrieval.
Power BI provides the facility of dynamic dashboards and reports, which means the
representation of important health metrics in real time. The user extracts important
insights from trends, patterns, and anomalies in the data through the use of these
interactive visualizations, which can include charts, graphs, and gauges.
Page | 37
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
The results of the IoT Health Monitoring System are multifaceted and far-reaching.
In addition to real-time monitoring capabilities, the system allows for early detection
of potential health issues through proactive analysis of sensor data. Not only that, but
the predictive analytics capabilities embedded in Power BI empower users to forecast
and predict potential health outcomes based on historical trends in the data.
7.2 Challenges:
In this project we face various challenges like:
1. Hardware Selection:
Selecting hardware for health monitoring projects might be difficult because there
are so many alternatives. It is straightforward to know the properties,
compatibility, and specs of different sensors, microcontrollers, and
communication modules. We gathered data on various hardware components and
did a thorough investigation to address this difficulty. For us to be able to make
informed decisions, we also searched online for suggestions for developing an
IoT project.
2. Programming Skills:
Our project involves programming to control the hardware, process data, and
implement communication protocols. We have faced difficulties with coding. We
have gone through varies Online tutorials, documentation, and examples as they
can be valuable resources for learning and practicing programming concepts.
3. Power Management:
IoT devices need to be efficient in terms of power consumption, especially if they
are intended to operate for extended periods without frequent battery replacement
or recharging. We have struggle with optimizing power management and
balancing functionality with power requirements. We consider using low-power
hardware components.
Page | 38
Dept. of CSE, ASC, Bengaluru
LITERATURE REVIEW MAY 2024
The system includes three main types of sensors: ECG sensor, Pulse sensor, and
Temperature sensor. These sensors are responsible for collecting vital health data
from the patient.
The main data collecting device is an Arduino Uno, which reads sensor data every 10
seconds on a regular basis.
The NodeMCU uploads the sensor data to ThingSpeak, where it is stored and made
available for real-time monitoring and analysis.
The system continuously monitors and transmits patient data to the cloud.
Page | 39
Dept. of CSE, ASC, Bengaluru
CONCLUSION AND FUTURE SCOPE MAY 2024
CHAPTER – 8
CONCLUSION AND FUTURE SCOPE
8.1 Conclusion:
The Patient Health Monitoring System is a very important innovation within the
bounds of healthcare technology, using IoT, data analytics, and visualization to
remotely monitor and manage patient health. The system delivers real-time insights
into life physiological data, such as heart rate, temperature, and electrocardiogram
signals, through the integration of NodeMCU, Arduino Uno, ThingSpeak, and Power
BI. The system collects, analyzes, and visualizes this data, enabling healthcare
providers to track patient health proactively, identify early warning signs of a
potential health problem, and intervene promptly to improve the patient's health.
● Remote Monitoring: The device allows remote access to patient health data by a
health practitioner, thus making appropriate decisions for the patient irrespective
of their location.
● Early Detection: The system allows the detection of health problems early by
analyzing the trends and anomalies of the physiological data, allowing timely
intervention and treatment.
Page | 40
Dept. of CSE, ASC, Bengaluru
CONCLUSION AND FUTURE SCOPE MAY 2024
providers critical health events in real time, which may permit timely intervention
and reduce response time.
● Electronic Health Records Integration: Integrate the system into existing EHR
systems that enable a complete view of patient health data and communication
between healthcare providers.
● Improved UI: Create a user-friendly interface for patients to see their health data,
set personalized health goals, and track progress over time, encouraging patient
participation and self-management.
Page | 41
Dept. of CSE, ASC, Bengaluru
REFERENCES MAY 2024
REFERENCES
[1] P. Valsalan, T. A. B. Baomar, and A. H. O. Baabood, “IoT based
health monitoring system,” Journal of Critical Reviews, vol. 7, no. 4,
pp. 739-743, 2020.
[2] K. Sangeethalakshmi, U. Preethi, and S. Pavithra, “Patient health
monitoring system using IoT,” Materials Today: Proceedings, vol. 80,
pp. 2228-2231, 2023.
[3] G. J. Lakshmi, M. Ghonge, and A. J. Obaid, “Cloud based IoT smart
healthcare system for remote patient monitoring,” EAI Endorsed
Transactions on Pervasive Health and Technology, vol. 7, no. 28, pp.
e4, 2021.
[4] S. U. Rani et al., “IoT patient health monitoring system,” Indian
Journal of Public Health Research and Development, vol. 8, no. 4, pp.
1-6, 2017.
[5] S. P. Kumar et al., “Smart health monitoring system of patient through
IoT,” in 2017 International Conference on I-SMAC (IoT in Social,
Mobile, Analytics and Cloud) (I-SMAC), Palladam, India, pp. 551-
556, 2017.
[6] D. S. R. Krishnan, S. C. Gupta, and T. Choudhury, “An IoT based
Patient Health Monitoring System,” in 2018 International Conference
on Advances in Computing and Communication Engineering
(ICACCE), Paris, France, pp. 01-07, 2018, doi:
10.1109/ICACCE.2018.8441708.
[7] K. T. Kadhim, A. M. Alsahlany, S. M. Wadi, and H. T. Kadhum, “An
Overview of Patient’s Health Status Monitoring System Based on
Internet of Things (IoT),” Wireless Personal Communications, vol.
114, pp. 2235-2262, 2020.
Page | 42
Dept. of CSE, ASC, Bengaluru
REFERENCES MAY 2024
Page | 43
Dept. of CSE, ASC, Bengaluru
REFERENCES MAY 2024
Page | 44
Dept. of CSE, ASC, Bengaluru