Skip to content

Sharvin1106/CTG-Prediction

Repository files navigation

Machine-Learning-and-Fuzzy-Logic-Model

We built a Machine Learning and Deep Learning model to classify fetal states based on the CTG data.

Introduction

Cardiotocography (CTG) is a medical procedure that records the fetal heartbeat and uterine contractions during pregnancy. CTG reading will be very important in order to determine the condition of the baby and prevent any mortality whether to the baby or mother. The fetal heart rate is given more importance in the CTG because it reveals if the fetal is going through hypoxia or any distress which can lead to severe complications in delivery. Hence, CTG comes in handy in conditions where the women who are going to labour is in high-risk category or if the fetal heartrate is too low, too high or abnormal. It is a very controversial and problematic task. It because there are so many things that we need to look out in a CTG to correctly understand the fetal heart rate activity in accordance to the uterine contraction. Errors and pitfalls can cause doctors to receive incorrect reading which can endanger the fetus.There are few things we need to give importance on when interpreting the CTG such as the fetal heart rate, number of accelerations in the fetal heart rate, uterine contraction per second, variability in fetal heart rate and decelerations. The fetal is in normal condition if the heartbeat rate is between 110-160 beats per minute, there are accelerations present which lasts long for more than 15 seconds with a rise of 15 beats per minute in the fetal heart rate and there is a variability in the fetal heart rate more than 5 beats per minute. However, there must not be any deceleration present in the fetal heart rate. If it happened so, then the fetal is categorized as in the pathological state. There are 5 requirements for a fetal’s conditions to be categorized as normal. If one of the conditions is not met, then fetal condition will be categorized as suspect. If more than 2 condition is not met, then fetal condition will be categorized as pathological.

Aim

The above pair plot shows all the features available in this dataset. All these features are part of CTG readings. In this project, we were very interested in building a predictive modal for cardiotocography. Our goal was to make a modal that can classify fetal heart rate reading into three categories which are Normal, Suspect and Pathologic.

Problem Definition

  • To reduce human interpretation error in CTG.
  • To build a cohesive computerised algorithm to interpret CTG readings with no human intervention.
  • To determine the best and optimal number of features to be used in the modal.
  • To choose the best modal for CTG reading interpretation.
  • To find the best parameters for each modal which are suitable for imbalance dataset. Then pick the best modal out of them.

Feature Selection

In this experiment there are total of 23 features and 2126 CTG records. It is computationally expensive to build, train and test models with 23 features. Hence, to reduce the feature space we have performed feature selection to select relevant features in building the machine learning model. However, there are some data cleanings has been carried out before selecting the features.

  1. Data Cleaning
    • Removing the features that have low variance as it will not have much effect in the prediction

Model Evaluation

  1. The models were evaluated using cross validation before its parameters were tuned

  1. The models were evaluated again with train data and test data after choosing the right hyperparameters

Snippets of Fuzzy Logic Model

For more info please refer to our .fis file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published