ML/DL analysis of Cardiotocography (CTG) traces using Recurrence Plot
This Repo contains Jupyter Notebooks and code to reproduce the results of the paper Computer-Aided Diagnosis System of Fetal Hypoxia Incorporating Recurrence Plot With Convolutional Neural Network by Zhidong Zhao, Yang Zhang, Zafer Comert and Yanjun Deng.
Key Jupyter Notebooks (currently configured to run on Google Colab per below):
-
- Initializes fresh colab instance, downloading source files, packages and dataset
- view using nbviewer
-
- Generates RP images and trains FastAI Model.
- RP Images based on earliet valid 10min CTG segment
- CTG recordings partitioned into Train and Valid prior to RP generation, such that a single recording is only in Train or Valid, but not both
- view using nbviewer
- Generates RP images and trains FastAI Model.
-
- Generates RP images and trains FastAI Model using Late configuration.
- RP Images based on latest valid 10min CTG segment prior to Stage II Labor
- CTG recordings partitioned into Train and Valid prior to RP generation, such that a single recording is only in Train or Valid, but not both
- view using nbviewer
- Generates RP images and trains FastAI Model using Late configuration.
-
- Trains FastAI Model based on random partition of images into train avd valid sets
- CTG recordings partitioned into Train and Valid after RP generation. RP images with configuration partameters but from same recording may appear in both Train and Valid
- Note: assumes images previously generated by CTG_RP_Train_Model, CTG_RP_Train_Model_Late or CTG_RP_Generate_Recurrence_Plots notebooks
- view using nbviewer
- Trains FastAI Model based on random partition of images into train avd valid sets
Other Notebooks:
- CTG_RP_Display_Denoised
- Displays sample denoised signals
- view using nbviewer
- CTG_RP_Generate_Recurrence_Plots
- Creates individual RP Images. IMAGES_DIR/rp_images_index.json contains metadata associated with images for each recording
- view using nbviewer
- CTG_RP_Explore_Datasets
- Builds Databunch and displays contents
- view using nbviewer
- CTG_RP_Train_ResNet_Model
- Uses transfer learning to train using ResNet32 model
- view using nbviewer
-
Data:
- CTU-UHB Intrapartum Cardiotocography Database
- Paper: Open access intrapartum CTG database
- Download:
rsync -Cavz physionet.org::ctu-uhb-ctgdb /content/ctu-uhb-ctgdb
- CTU-UHB Intrapartum Cardiotocography Database
-
Libraries:
-
Computation:
- Google Colab
- Jupyter Notebook service with no-cost access to GPU accelerated instances
- Google Colab