How noel-mni/deepfcd works
deepFCD detects focal cortical dysplasia from paired T1 and FLAIR MRI. The main user workflow supplies a patient ID, images, output directory, and preprocessing/device options to inference; inference prepares inputs, loads two CNNs, runs prediction, and writes probability and uncertainty images. The repository also includes model training, patch/HDF5 data handling, post-processing, and confidence/reporting utilities. Relationships are limited to README statements and SOURCE INDEX references; some internal runtime connections remain unverified because excerpts are incomplete.
Main entry points: inference.py Inference CLI · base.py Prediction engine · train.py Training routine · noel_models_keras.py CNN pair loader
Components 18
Inference
- Inference CLI
app/inference.py - MRI preprocessing
app/preprocess.py - Brain extraction
app/deepMask - Experiment options
app/config/experiment.py
Models
- CNN pair loader
app/models/noel_models_keras.py - 3D CNN architecture
app/models/model_builder.py - Prediction engine
app/utils/base.py - Patch inference data
app/utils/patch_dataloader.py
Training
- Training routine
app/train.py - Patch sampling
app/utils/h5data.py - HDF5 data handling
app/utils/create_hdf5_patch_dataset.py
Analysis and reporting
- Lesion post-processing
app/utils/post_processor.py - Evaluation metrics
app/utils/metrics.py - Confidence estimates
app/utils/confidence.py - Results reporting
app/utils/reporting.py
Other components
- User
- T1 and FLAIR
- Probability and uncertainty images
Connections 19
- User → Inference CLI: runs
README.md - T1 and FLAIR → Inference CLI: provides images
README.md - Inference CLI → Experiment options: loads options
app/inference.py - Inference CLI → MRI preprocessing: preprocesses inputs
README.md - Inference CLI → Brain extraction: extracts brain
README.md - Inference CLI → CNN pair loader: loads CNNs
app/inference.py - Inference CLI → Prediction engine: runs prediction
app/inference.py - CNN pair loader → 3D CNN architecture: builds models
app/models/noel_models_keras.py - Prediction engine → Patch inference data: uses data loader
app/utils/base.py - Prediction engine → Lesion post-processing: post-processes
app/utils/base.py - Prediction engine → Probability and uncertainty images: writes images
README.md - User → Training routine: runs training
README.md - Training routine → Experiment options: loads options
app/train.py - Training routine → CNN pair loader: builds CNNs
app/train.py - Training routine → Prediction engine: tests models
app/train.py - HDF5 data handling → Patch sampling: loads patch data
app/utils/create_hdf5_patch_dataset.py - Patch sampling → Training routine: supplies patches
- Lesion post-processing → Evaluation metrics: uses metrics
app/utils/post_processor.py - Results reporting → Confidence estimates: uses estimates
app/utils/reporting.py