Professional Documents
Culture Documents
NurturHub- Final Report WITH STP
NurturHub- Final Report WITH STP
PROJECT REPORT ON
“ NURTURHUB: A SMART MATERNAL HEALTH MONITORING
DEVICE ”
BACHELOR OF ENGINEERING
IN
ARTIFICIAL INTELLIGENCE & MACHINE LEARNING
Submitted by
PROJECT REPORT ON
“ NURTURHUB: A SMART MATERNAL HEALTH MONITORING
DEVICE ”
BACHELOR OF ENGINEERING
IN
ARTIFICIAL INTELLIGENCE & MACHINE LEARNING
Submitted by
CERTIFICATE
Certified that the project work entitled “NURTURHUB: A SMART
MATERNAL HEALTH MONITORING DEVICE” carried out by
External Viva
Name of the Examiner Signature with date
1
2
ACKNOWLEDGEMENT
We have immense pleasure and pride in expressing our heartfelt gratitude to our project
guide Dr. Shreenath Acharya, Head of the Department of Intelligent Computing and
Business Systems, whose guidance was indispensable and of vital importance behind
the success of our project.
We would like to extend our gratitude to our project coordinator Ms. Gayana MN
Assistant Professor, Department of Intelligent Computing and Business Systems, for
the encouragement in completing the project. With due respect, we thank our beloved
HOD, Dr. Shreenath Acharya, Department of Intelligent Computing and Business
Systems, for his coordination, suggestion and moral support on the course of our
project work.
We consider it our pleasure to extend our gratitude to our beloved principal Dr. Rio
D'Souza for providing us the facilities to carry out our project work. We express our
sincere appreciation to our esteemed Director, Rev. Fr. Wilfred Prakash D’Souza, for
his unwavering support in facilitating our project endeavors. His guidance and
provision of resources have been invaluable in ensuring the success of our initiatives.
We also extend our heartfelt thanks to our dedicated Assistant Director, Rev. Fr.
Kenneth Crasta, whose assistance and commitment have played a pivotal role in
enabling us to effectively execute our project work. Her dedication to our cause is
deeply appreciated.
We would like to thank our teaching and non-teaching staff for their support and
encouragement. Also a special thanks to our parents for providing us assistance,
constant support and encouragement throughout.
ABSTRACT
The prevalence of mental health issues among expectant mothers underscores the
critical need for effective monitoring solutions. The "Nurture Hub" represents a
significant leap forward by seamlessly integrating real-time stress detection with
empathetic community support. Through the convergence of cutting-edge sensors,
machine learning algorithms, and intuitive user interfaces, our project offers a holistic
solution to address the multifaceted challenges faced by pregnant women. This
innovative fusion of technology and emotional support marks a paradigm shift in
maternal care, promising improved well-being and outcomes.
TABLE OF CONTENTS
1. INTRODUCTION 1
1.1 PROBLEM DEFINITION 2
1.2 SCOPE AND IMPORTANCE 2
2.8.2 RELIABILITY 11
2.8.3 SAFETY ASSURANCE 11
2.8.4 EFFICIENCY 11
2.8.5 SCALABILITY 11
2.8.6 DATA ACCURACY 11
2.8.7 USER EXPERIENCE 11
2.9 DESIGN CONSTRAINTS 12
2.9.1 COMPATIBILITY 12
2.9.2 COST EFFFECTIVENESS 12
2.10 ADDITIONAL REQUIREMENTS 12
2.10.1 EMERGENCY SOS 12
2.10.2 EDUCATIONAL CONTENT 12
3. DESIGN 13
3.1 ABSTRACT DESIGN 13
3.1.1 ARCHITECURE DIAGRAM 13
3.1.2 USE CASE DIAGRAM 14
3.2 FUNCTIONAL DESIGN 14-15
3.2.1 DATA FLOW DIAGRAM 15
3.2.2 SEQUENCE DIAGRAM 15
3.3 CONTROL FLOW DESIGN 16
3.3.1 ACTIVITY DIAGRAM 17
3.4 ACCESS LAYER 18
3.4.1 ER DIAGRAM 18
4. IMPLEMENTATION 19
4.1 SOFTWARE 19
4.1.1 ANDROID STUDIO 19
4.1.2 ARDUINO IDE 19
4.1.3 VISUAL STUDIO 19-20
4.2 HARDWARE 20
4.2.1 ESP32 WROOM 20
4.2.2 TEMPERATURE SENSOR 21
4.2.3 HEARTRATE SENSOR 22
4.2.4 ACCELEROMETER SENSOR 22
5. TESTING 26
5.1 TEST CASES AND VALIDATION 26
5.1.1 DETECTING HIGH STRESS 26
5.1.2 DETECTING STRESS FREE SYMTOMPS 26-27
5.1.3 DETECTING MODERATE STRESS 27
LIST OF TABLES
LIST OF FIGURES
CHAPTER 1
INTRODUCTION
CHAPTER 1
INTRODUCTION
The Empowering Maternity project is a pioneering initiative aiming to transform the
pregnancy experience through innovative technology and a holistic approach to
expectant mothers' well-being. It integrates cutting-edge sensors, and machine
learning, to provide real-time health monitoring, personalized interventions, and
support throughout the journey. The project addresses maternal healthcare gaps with a
unified platform offering Maternal Health Rate Tracking, Prenatal Health Reminders,
Emergency Response, and Advanced Mental Health Prediction. It empowers
expectant mothers with timely, personalized, and holistic support for optimal physical
and mental well-being.
CHAPTER 2
SOFTWARE
REQUIREMENT
SPECIFICATION
CHAPTER 2
Software Interfaces
a. Android Studio: The project requires Android Studio as the
primary integrated development environment (IDE) for
Android app development. The development environment
should be set up to support the project's minimum Android OS
version. Android Studio plugins and libraries may be utilized
for enhanced functionality.
b. Companion Mobile App: Seamless synchronization with a
mobile app (iOS/Android) for data storage, analysis, and
additional features like community support or forums for
pregnant women.
c. React Native: The project utilizes React Native as the primary
framework for cross-platform mobile app development. React
Native enables developers to build mobile applications using
JavaScript and React, offering a flexible and efficient approach
to development. The development environment should be
configured to support React Native, including necessary
dependencies and tools such as Node.js and npm. React
Native's extensive ecosystem of libraries and components
allows for the integration of various functionalities, ensuring
the project meets its requirements while targeting multiple
platforms with a single codebase.
Communication Interfaces
2.7.1 Adaptability:
2.7.2 Operability:
Ensure the device is easy to operate and adjust, considering the continuous
development and changing capabilities of patients, including children.
2.8.2 Reliability:
2.8.4 Efficiency:
2.8.5 Scalability:
2.8.8 Compatibility:
2.9.2 Cost-Effectiveness:
CHAPTER 3
DESIGN
CHAPTER 3
DESIGN
Actors in the system include expectant mothers, healthcare professionals, and system
administrators. Key use cases involve expectant mothers viewing health data such as
heart rate, activity levels, and stress patterns, receiving stress alerts and tips for managing
stress, connecting with other expectant mothers through a community forum, chatting
with healthcare providers for consultations and guidance, and system administrators
managing users, monitoring system performance, and updating content.
services access health data from the database for analysis and stress detection, with the
results and stress alerts sent back to the mobile app for display.
Sensor data first flows from the sensors to the device, where it is then transmitted to the
mobile app. Subsequently, the mobile app sends this data to the database for storage
purposes. Cloud services then access the health data stored in the database to perform
analysis and stress detection. Once the analysis is completed, the results and any stress
alerts are sent back to the mobile app. Finally, the mobile app displays both the data and
alerts to the user, providing them with real-time insights into their health status.
The process begins when the user encounters a stressful event, triggering physiological
changes in their body. These changes are captured by sensors integrated into a wearable
device worn by the user. The wearable device then transmits the captured data to a mobile
app installed on the user's smartphone. Subsequently, the mobile app forwards the data to
cloud services for thorough analysis. Upon detecting a stress event, the cloud services
promptly send an alert back to the mobile app. The app then displays a stress alert
notification to the user, who can access stress management tools or contact healthcare
professionals directly through the app for assistance.
The complete system flow diagram illustrates a continuous loop where the system collects
sensor data from the wearable device, pre-processes and analyzes it to extract meaningful
health metrics, employs stress detection algorithms to identify potential stress events, and
provides feedback to the user through alerts, recommendations, or data visualizations.
Users can interact with the system through the mobile app, accessing health data,
managing stress, and participating in the community platform. Decision points involve
algorithms using thresholds and criteria to determine stress events, and the loops ensure
real-time monitoring and updates.
The data flow within the system begins with sensors capturing physiological data, which
then flows to the wearable device and subsequently to the mobile app. The processing and
interaction phase involve the analysis of health data to detect stress, with users utilizing
the mobile app for viewing data and managing stress. Processed data is stored in the
database, while cloud services analyze it for stress detection. Finally, a continuous
feedback loop is established where users receive real-time stress alerts and
recommendations.
The access layer design includes an entity-relationship (ER) model with entities such as
User, HealthData, StressEvent, and SensorReading. Relationships are established,
allowing one User to have many HealthData records, one HealthData record to be
associated with multiple SensorReadings, and one StressEvent to be associated with
specific HealthData and SensorReadings. Constraints involve primary keys on each entity
for unique identification and foreign keys to maintain relationships between entities
3.4.1 ER DIAGRAM:
CHAPTER 4
IMPLEMENTATION
CHAPTER 4
IMPLEMENTATION
4.1 SOFTWARE
Because of its unique set of capabilities designed just for Android app
development, Android Studio is a highly favored tool among developers. Its
feature-rich environment helps to improve overall productivity and streamline the
development process with its built-in emulators, performance profiling tools, and
user-friendly layout editor. Android Studio gives developers the ability to easily
create high-quality applications by offering a seamless platform for coding,
testing, and debugging Android apps. It also offers extensive support for
languages like Java and Kotlin, which increases its appeal and usefulness in the
Android development ecosystem.
The Arduino IDE is widely recognized for its ease of use and accessibility,
making it the ideal starting point for novices and enthusiasts interested in learning
microcontroller programming. Because of its easy-to-use interface and simple
setup procedure, users may quickly learn the principles of coding for Arduino
boards and overcome entry obstacles. The Arduino IDE facilitates collaborative
learning environments with its large community of enthusiasts sharing projects
and resources. Its compatibility with a wide range of sensors and actuators allows
users to experiment and innovate in a variety of domains, including automation,
robotics, and the Internet of Things. As such, it is an indispensable tool for
creative exploration and prototyping.
feature set includes advanced code editing capabilities, debugging tools, version
control integration, and support for a multitude of programming languages such as
C#, C++, Python, and more. Furthermore, Visual Studio's seamless integration
with Azure services facilitates smooth deployment and management of
applications, empowering developers to build, test, and deploy software solutions
with utmost efficiency and reliability, thus solidifying its status as the preferred
choice for developers tackling complex projects in various domains.
4.2 HARDWARE
The ESP32 WROOM module is a great option for many IoT and embedded
applications because of its small size, low power consumption, and strong
capabilities. Due to its energy-efficient design that extends battery life, it can be
integrated into devices with limited space and is small enough to be portable. The
ESP32 WROOM's dual-core processor and large memory capacity enable it to
perform complicated tasks with ease and guarantee dependable operation even in
demanding conditions. Furthermore, its integrated Bluetooth and Wi-Fi
capabilities enable smooth connectivity, enabling remote device control and
monitoring. All things considered, the ESP32 WROOM is a flexible platform for
developing cutting-edge Internet of Things applications due to its mix of
performance, power efficiency, and small size.
Temperature sensors offer priceless data for a variety of uses, including consumer
electronics, industrial processes, and environment monitoring. These sensors
ensure optimal performance and efficiency by precisely controlling and
optimizing systems through accurate temperature measurement. Furthermore,
temperature sensors are essential for environmental monitoring since they help
identify and stop freezing or overheating circumstances that could harm
machinery or put people in risk. Modern temperature sensors are essential
components in many different sectors and applications because of their high
precision, quick response times, and small form factors, which are made possible
by improvements in sensor technology.
Heart rate monitors are vital for tracking cardiovascular health and fitness,
offering important information about heart activity during exercise, rest, and
recuperation. These sensors detect changes in blood volume or electrical impulses
produced by the heart to monitor heart rate using photoplethysmography (PPG) or
electrocardiography (ECG) procedures. These sensors allow users to track heart
rate correctly, which helps them to detect abnormal cardiac rhythms or diseases,
optimize training regimens, and evaluate the intensity of their exercise. People
may now easily monitor their heart health in real-time and make well-informed
decisions about their health thanks to the incorporation of heart rate sensors into
wearable technology and fitness trackers.
4.3 ALGORTIHMS
This algorithm first uses the mean technique to impute missing values from the
dataset in order to guarantee that the data is full. After that, StandardScaler is used
to standardize the features so they are on a similar scale. The train_test_split
evaluation is then used to divide the dataset into training and testing sets in an
80:20 ratio. An KNN Regressor combines several weak learners to produce a
strong classifier. It is first initialized with a Decision Tree as the basis estimator.
The algorithm for updating weights, learning rate, and the number of weak
learners (50) are defined. Next, using the training dataset, the AdaBoost classifier
is trained. Furthermore, predictions are generated for the test dataset; the
accuracy_score function is used to determine the KNN Regressor’s accuracy on
the test set out to be 81%.
1. Connect to Device:
Initialize a socket connection to the device using the device's IP address and port
number.
3. Extract Values:
5. Predict:
Use the loaded model to predict the label based on the extracted test data.
Create a dictionary to hold the output data, including the predicted label and the
extracted sensor data.
7. Convert to JSON:
CHAPTER 5
TESTING
CHAPTER 5
TESTING
Predicted threshold values and the example data presented suggest that the forecast is
most likely to show "High Stress." The fact that a number of the data's feature values
including TEMP (33.002), HR (60.02), and EDA (20) exceed their corresponding
thresholds for high stress levels leads to this conclusion. Consequently, this new data
point would be classified by the KNearestNeighbour Regressor as indicating a high stress
level, in line with the predetermined threshold criterion.
All feature values in the sample fresh data are within the designated threshold ranges,
hence "No Stress" is the most likely predicted label. As per the defined criteria, there is
no physiological stress evident in the values of X, Y, Z coordinates, EDA, HR, and
TEMP (-1, 60, 22, -19.22, 80.68, 0.78) since they fall within their respective threshold
limits. Thus, it is anticipated that for this input data point, the KNearestNeighbour
Regressor will predict a "No Stress" label.
The sample fresh data's feature values are all within the specified threshold ranges, hence
the most likely projected label is "Moderate Stress". Since the values of the X, Y, Z
coordinates, EDA, HR, and TEMP (-23, 53, 26, -29.09, 70.87, 34.091) are within their
respective threshold ranges, there is no physiological stress visible in accordance with the
established criteria. The KNearestNeighbour Regressor is therefore expected to predict a
"Moderate Stress" label for this input data point.
CHAPTER 6
CONCLUSION AND FUTURE SCOPE
CHAPTER 6
6.1 CONCLUSION
The strategy presented here, in summary, provides a comprehensive way to use wearable
sensor technologies to enhance pregnant women's well-being. It is feasible to gather data
seamlessly and provide continuous monitoring during everyday activities by combining
accelerometer, EDA, and BVP sensors into an intuitive gadget or mobile application.
Peak detection and movement intensity estimate are two analytic approaches that offer
useful insights into physical activity levels, while imputation and noise reduction are
preprocessing procedures that guarantee data quality.
REFERENCES
[1] Ahmad, S. G., Iqbal, T., Javaid, A., Munir, E. U., Kirn, N., Jan, S. U., & Ramzan,
N. (2022). Research Article: “Sensing and Artificial Intelligent Maternal-Infant
Health Care Systems: A Review”. Sensors, vol.2022,22(12) 4362.
[2] Poudyal, A., van Heerden, A., Hagaman, A., Maharjan, S. M., Byanjankar, P.,
Subba, P., & Kohrt, B. A. (2019). Research Article: “Wearable Digital Sensors to
Identify Risks of Postpartum Depression and Personalize Psychological Treatment
for Adolescent Mothers: Protocol for a Mixed Methods Exploratory Study in
Rural Nepal”. Journal of Medical Internet Research, vol.8,No 9,2019, e14914.
[3] Tomoki Saito, Hikaru Suzuki, and Akifumi Kishi. Research Article: "Predictive
Modeling of Mental Illness Onset Using Wearable Devices and Medical
Examination Data: Machine Learning Approach," Frontiers in Digital Health, vol.
4, pp. 861808, 2022.
[4] Enrique Garcia-Ceja, Michael Riegler, Tine Nordgreen, Petter Jakobsen, Ketil J.
Oedegaard, Jim Tørresen. Research Article: "Mental Health Monitoring with
Multimodal Sensing and Machine Learning: A Survey," A survey on Pervasive
and Mobile Computing, vol. 51, pp. 1-26, December 2018.
[5] Debard, G., De Witte, N., Sels, R., Mertens, M., Van Daele, T., & Bonroy, B.
(2020). Research Article: “Making Wearable Technology Available for Mental
Healthcare through an Online Platform with Stress Detection Algorithms: The
Carewear Project”. Journal of Sensors, Volume 2020, Article ID 8846077, 15
pages. Hindawi.
APPENDIX
A continuous loop is depicted in the complete system flow diagram, wherein the device's
sensor data is collected, pre-processed and analyzed to extract relevant health metrics,
stress detection algorithms are used to identify potential stress events, and the user is
notified through alerts, recommendations, or data visualizations. Through the smartphone
app, users may communicate with the system, receive health information, handle stress,
and take part in community activities. Real-time monitoring and updates are ensured via
loops, and decision points employ algorithms that use thresholds and criteria to identify
stress events.