Skip to content

QTIM-Lab/AI-for-BPD-and-PH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

AI-for-BPD-and-PH

Deep learning-based prediction of cardiopulmonary disease in retinal images of premature infants

BPD and PH Prediction Pipeline

This repository contains the complete pipeline for predicting Bronchopulmonary Dysplasia (BPD) and Pulmonary Hypertension (PH) using deep learning feature extraction and statistical analysis.

Overview

The project focuses on two related medical conditions:

  • BPD: A chronic lung disease affecting newborns, especially premature infants.
  • PH: Pulmonary hypertension, which may occur as a complication of BPD.

We explore the predictive capabilities of clinical informatics, medical image features, and their combination, evaluating statistical significance.


Methodology

1. BPD Prediction

  1. Train a ResNet-18 model from scratch using medical imaging data specific to BPD.
  2. Use the trained ResNet-18 as a feature extractor to generate high-level image features.
  3. Evaluate predictive performance using these features in combination with clinical data.

2. PH Prediction

  1. Use a pretrained ImageNet ResNet-18 model as a feature extractor for PH-related medical images.
  2. Extract feature embeddings from images without retraining the CNN.

3. SVM Classification

For both BPD and PH:

  • Train a Support Vector Machine (SVM) classifier for each feature pair:
    • Clinical-only features
    • Image-only features
    • Combined clinical + image features

4. Statistical Significance Testing

  • Perform the DeLong test to compare the Area Under the ROC Curve (AUC) across different feature sets.
  • The test determines whether the differences in performance are statistically significant.

Directory Structure

bpd-ph-prediction/
│
├── data/                  # Dataset (not included in repo)
├── src/                   # Source code for training & evaluation
│   ├── bpd_pipeline.py    # BPD training & feature extraction
│   ├── ph_pipeline.py     # PH feature extraction & SVM training
│   ├── statistics.py      # DeLong test implementation
│
├── requirements.txt       # Python dependencies
├── README.md              # Project documentation
└── .gitignore             # Ignored files

Installation

git clone https://github.com/yourusername/bpd-ph-prediction.git
cd bpd-ph-prediction
pip install -r requirements.txt

Usage

Train BPD ResNet-18 and Extract Features

python src/bpd_pipeline.py

Extract PH Features Using ImageNet ResNet-18

python src/ph_pipeline.py

Run SVM Classification and Statistical Significance Tests

python src/statistics.py

Requirements

  • Python 3.8+
  • PyTorch
  • torchvision
  • numpy
  • pandas
  • scikit-learn
  • Pillow
  • tqdm

About

Deep learning-based prediction of cardiopulmonary disease in retinal images of premature infants

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages