Skip to content

Latest commit

 

History

History
78 lines (54 loc) · 2.13 KB

README.md

File metadata and controls

78 lines (54 loc) · 2.13 KB

Preterm/Term Labor Classification (ECE 4782 Final Project)

Use Physionet EHG preterm/term database to make a classifier. The classifier is able to classify whether the patient will have a preterm or a term labor, using EHG signal and past medical history features, with an average sensitivity of 92.6%.

More in-depth project description, including our research and design approach.

Physionet database: https://physionet.org/physiobank/database/tpehgdb/

Table of Contents

Getting Started

We are using Python 3x, pip, and pipenv.

Prerequisites

Pipenv installation:

pip install pipenv

Installing

Once you have Python 3x, pipenv, and the repo downloaded, go to the root directory and initialize the pipenv and all of the dependencies:

pipenv install

Running the scripts

Running different files:

pipenv run .\[filename]

Running the main.py will print the accuracy, sensitivity, and specificity of our best classifier, model 6, and output a csv file with the sensitivity and specificity for each of the 30 trials.

pipenv run .\main.py

Methodology

Future Plans

Implement Random Forest, logistic regression, and other ML models

Built With

  • pipenv - The virtual environment
  • wfdb - For downloading the Physionet's dataset
  • tensorflow - For building and evaluating the neural network
  • imbalanced-learn - Used to balance the dataset
  • numpy - Used for fomatting the data
  • scikit-learn - Used for splitting the data

Authors

  • Dian Guo
  • Michael Isaf
  • Alexandra Melehan
  • Brandi Nevius