Report Editing
Report Editing
CHAPTER 1
INTRODUCTION
1.1 Introduction:
Dept.of CS&E,BIET,Davangere 1
Machine learning based Maternal Risks and Fetus health Monitoring System
Pregnancy involves various risks for both the woman and the fetus. Machine learning (ML)
techniques offer valuable tools for detecting and classifying these risks, enhancing early
intervention and improving outcomes.
Maternal Health Risks:
● Possible Risks: Gestational diabetes, preeclampsia, maternal hypertension.
● ML Application: Machine learning models can analyze maternal health data,
identifying patterns and predicting the likelihood of these conditions, allowing for timely
monitoring and intervention.
Fetal Health Risks:
● Possible Risks: Intrauterine growth restriction, congenital anomalies, fetal distress.
● ML Application: ML algorithms applied to fetal monitoring data, such as
cardiotocography (CTG), can assist in early detection of abnormalities, enabling healthcare
professionals to intervene and manage risks proactively .
Pregnancy Complications:
● Possible Risks: Preterm birth, stillbirth, multiple pregnancies.
● ML Application: ML models can analyze historical data to predict the likelihood of
complications, allowing healthcare providers to implement preventive measures and
personalized care plans .
● ML Application: ML algorithms can assess various factors to predict the mode of
childbirth, aiding in decision-making and reducing the risk of complications associated with
specific delivery methods.
In summary, machine learning provides a data-driven approach to analyze complex relationships
within maternal and fetal health datasets, enabling accurate risk prediction and classification.
This empowers healthcare professionals with timely information for informed decision-making,
ultimately improving outcomes for both the pregnant woman and the fetus.
Dept.of CS&E,BIET,Davangere 2
Machine learning based Maternal Risks and Fetus health Monitoring System
CHAPTER 2
LITERATURE SURVEY
2.1 Literature Survey Review:
The term Severe Maternal Morbidity (SMM) includes a set of complications that can have
a severe adverse effect on women and baby health, and happen during pregnancy, delivery. When
any of these appear, it is necessary to provide the patient with immediate attention, in order to
avoid death. Although maternal health outcomes have shown positive variation, complications of
pregnancy still are an important public health issue. Each year around 585.000 women die during
pregnancy, delivery and annually close to 50 million complications in maternal health are
registered, and approximately 300 million women suffer from short and long-term illnesses and
injuries related to pregnancy, childbirth and postpartum.
Islam MN, Mustafina SN, Mahmud T, Khan NI: “Machine learning to predict pregnancy
outcomesYear:2022” [2] A systematic review, synthesizing framework and future research
agenda. BMC Pregnancy Childbirth .Machine Learning (ML) has been widely used in predicting
the mode of childbirth and assessing the potential maternal risks during pregnancy. The primary
Dept.of CS&E,BIET,Davangere 3
Machine learning based Maternal Risks and Fetus health Monitoring System
aim of this review study is to explore current research and development perspectives that utilizes
the ML techniques to predict the optimal mode of childbirth and to detect various complications
during childbirth. A total of 26 articles (published between 2000 and 2020) from an initial set of
241 articles were selected and reviewed following a Systematic Literature Review (SLR)
approach. As outcomes, this review study highlighted the objectives or focuses of the recent
studies conducted on pregnancy outcomes using ML; explored the adopted ML algorithms along
with their performances; and provided a synthesized view of features used, types of features, data
sources and its characteristics. Besides, the review investigated and depicted how the objectives of
the prior studies have changed with time being; and the association among the objectives of the
studies, uses of algorithms, and the features.
Dept.of CS&E,BIET,Davangere 4
Machine learning based Maternal Risks and Fetus health Monitoring System
Predictive maternal factors were selected through Bayesian adaptive sampling. Selected maternal
factors were incorporated into a multivariate Bayesian logistic regression using Markov Chain
Monte Carlo simulation. The area under receiver operating characteristic curve (AUC) was used
to assess discrimination.
Dept.of CS&E,BIET,Davangere 5
Machine learning based Maternal Risks and Fetus health Monitoring System
Dept.of CS&E,BIET,Davangere 6
Machine learning based Maternal Risks and Fetus health Monitoring System
The current system, relying on traditional methods such as Cardiotocography (CTG) for assessing
fetal health during pregnancy, is susceptible to potential errors and high variability in interpreting
Fetal Heart Rate (FHR) patterns. This variability may result in false alarms regarding fetal
distress, potentially prompting unnecessary interventions. Diabetes screening usually involves a
Glucose Challenge Test (GCT) Test at 24-28 weeks. If elevated or with risk factors, then further
tests are conducted.
Maternal health during pregnancy is a critical concern, and predicting associated risks is vital for
ensuring the well-being of both the mother and the fetus. Traditional methods may lack precision
and early detection capabilities. The problem lies in the need for a more accurate, proactive, and
data-driven approach to assess maternal health risks and monitor fetal well-being throughout
pregnancy. Current systems may not effectively leverage advancements in machine learning and
analytics to analyze diverse health data and identify subtle risk factors. The challenge is to develop
a robust machine learning-based system capable of predicting maternal health risks and fetal
health status accurately.
The system employs advanced machine learning algorithms, including Naïve Bayes, K-Nearest
Neighbor, Decision Tree, and Random Forest, to develop a robust predictive model for maternal
and fetal health assessment. The goal is early identification, enabling timely interventions for
improved outcomes in maternal and fetus health. Users can input maternal and fetal health
attributes through the graphical user interface, and the deployed model provides predictions
regarding potential complications during pregnancy.
Dept.of CS&E,BIET,Davangere 7
Machine learning based Maternal Risks and Fetus health Monitoring System
2.5 Objectives:
To identify and extract essential features from the maternal and fetal health datasets by
using advanced preprocessing methods, addressing challenges such as missing data and
outliers.
To design and develop a robust machine learning model for accurately classifying maternal
health risks, utilizing ML algorithms
To design and implement an intuitive Graphical User Interface (GUI) that enables
healthcare professionals to interact seamlessly with the machine learning model, facilitating
easy interpretation of risk assessments.
Dept.of CS&E,BIET,Davangere 8
Machine learning based Maternal Risks and Fetus health Monitoring System
CHAPTER 3
SYSTEM REQUIREMENTS AND SPECIFICATION
3.1 SOFTWARE REQUIREMENTS
This section specifies the minimum software configuration required for the system. Operating
System :
Windows 7 or any compatible
Programming language: Python
IDE : Visual studio.
Libraries : Pandas, NumPy, sklearn, Seaborn etc.
Dept.of CS&E,BIET,Davangere 9
Machine learning based Maternal Risks and Fetus health Monitoring System
CHAPTER 4
METHODOLOGY
Hypertension Diabetes
Feature selection
Data Pre-processing
KNN
Decsion Tree
Naive Bayes
Random
Forest
Split Dataset
Feature Extraction Into train set &
test set
Trained Models
In this project, the methodology is structured into three essential stages. The initial phase involves
data preparation, where the Fetal Health and maternal dataset is utilized. Null values are
systematically removed to enhance dataset quality, ensuring the accuracy of subsequent analyses
and model training. Following data preparation, the feature engineering phase begins with a
comprehensive dataset description, providing foundational insights. These feature engineering
activities aim to provide a deeper understanding of the dataset and its characteristics to contribute to
selecting relevant features for model training.
Dept.of CS&E,BIET,Davangere 11
Machine learning based Maternal Risks and Fetus health Monitoring System
In our proposed method, maternal risk and fetal classification can be detected more efficiently and
less costly within a short time. The working of the system starts with collection of data and
selecting important attributes. Then the required data is preprocessed into the standard format. In
the first stage, preprocessed data are divided into two parts. Most of those are used in the training
phase (80%), and the rest (20%) are used in the testing phase. The proposed system has trained our
dataset using machine learning algorithms like Decision tree, Random Forest, Naive Bayes and
KNN. Using Visual studio platform, we have trained and finally predicted the result of a patient.
The accuracy of the system is obtained by testing the system using the testing data.
This system is implemented using the following modules.
Dataset Collection
Data Preprocessing
Feature selection
Splitting Dataset
Classification models
Risk Level: Predicted Risk Intensity Level during pregnancy considering the previous
attribute.
4.2 Pre-processing of data
Data pre-processing plays a vital role in the development of a machine learning model.
Initially, the data may be in an untidy or incompatible format, leading to potentially erroneous
outcomes. During the data pre-processing phase, we convert the data into the necessary format.
Ensuring the dataset's reliability and accuracy, this step becomes crucial in addressing factors
like noise, duplicates, and missing values present in the data. Data pre-processing encompasses
a range of activities that include collecting datasets, partitioning datasets, data cleaning,
factorization, missing values imputation, etc. The purpose of data pre-processing is to enhance
the accuracy of the model by refining the data before it is used for analysis or modeling.
• Data Cleaning:
NA values in the dataset is the major setback for us as it will reduce the accuracy of the
prediction profoundly so, we will remove the fields which does not have values. We will
substitute it with the mean value of the column. This way, we will remove all the values in the
data set.
• Data Integration:
Data Integration is a data preprocessing technique that combines data from multiple
heterogeneous data sources into a coherent data store and provides a unified view of the data.
While implementing data integration, it should work on data redundancy, inconsistency,
duplicity, etc.
• Data transformation:
Data transformation is an essential data preprocessing technique that must be performed on the
Dept.of CS&E,BIET,Davangere 13
Machine learning based Maternal Risks and Fetus health Monitoring System
data before data mining to provide patterns that are easier to understand. Data transformation
changes the format, structure, or values of the data and converts them into clean, usable data.
• Data Reduction:
Data reduction is a process that reduces the volume of original data and represents it in a much
smaller volume. Data reduction techniques are used to obtain a reduced representation of the
dataset that is much smaller in volume by maintaining the integrity of the original data.
nodes exist: the Decision Node and the Leaf Node. Decision nodes in a decision tree are
responsible for making decisions and have multiple branches leading to different paths. In
contrast, leaf nodes represent the final output of those decisions and do not contain any further
branches. To predict the class of a given dataset using a decision tree, the algorithm initiates
from the root node of the tree. It compares the values of the root attribute with the
corresponding attribute in the dataset and, based on this comparison, follows the appropriate
branch to the next node. At the next node, the algorithm once again compares the attribute
value with the sub-nodes' values, thus progressing further along the tree. This iterative process
continues until the algorithm arrives at the leaf node, which provides the final prediction for the
dataset.
capable of swift predictions. Its primary application lies in text classification, especially in
scenarios with high-dimensional training datasets. Naive Bayes operates as a probabilistic
classifier, making predictions based on the likelihood or probability of an object's occurrence.
4.5.4 Random Forest:
Random Forest is a highly popular machine learning algorithm utilized within the realm of
supervised learning. It proves effective for addressing both Classification and Regression
challenges in the field of Machine Learning. The foundation of this algorithm lies in the
Dept.of CS&E,BIET,Davangere 15
Machine learning based Maternal Risks and Fetus health Monitoring System
concept of ensemble learning, where multiple classifiers are combined to tackle intricate
problems and enhance model performance. As a classifier, Random Forest comprises numerous
decision trees created from diverse subsets of the provided dataset. To enhance predictive
accuracy, it takes the average of the outputs from these decision trees. The inclusion of a
greater number of trees within the forest enhances accuracy while also mitigating the risk of
overfitting. The Random Forest operates in two phases: First, it constructs the random forest by
amalgamating N decision trees, and second, it makes predictions for each tree created during
the initial phase.
Dept.of CS&E,BIET,Davangere 16