Skip to main content

Python library designed to analyze and detect the sclerosis from MRI brain scans using advanced deep learning algorithms

Reason this release was yanked:

Incomplete

Project description

Bachelor’s Thesis – University of Málaga (Sept 2024 – Jun 2025) Author: Emilio Rodrigo Carreira Villalta (emiliorodrigo.ecr@gmail.com)

Ask DeepWiki CI

Segmenting sclerosis lesions on 3‑D MRI volumes is a critical yet time‑consuming step in clinical workflows. This repository contains the open‑source code, experiments and analysis accompanying my bachelor’s thesis, which investigates the synergy between YOLOv11 object detection and nnUNet semantic segmentation, enhanced by a novel 3‑D consensus‑ensemble strategy.

Key features

  • Dual‑model pipeline – combines fast YOLOv11 localisation with nnUNet high‑resolution segmentation.
  • Rotation‑and‑cut consensus – aggregates predictions across multiple axial rotations and random 3‑D crops to mitigate viewpoint bias.
  • Statistical benchmarking – leverages the SAES library to run non‑parametric tests and automatically generate LaTeX reports.
  • HPC‑ready – training scripts tested on Málaga’s Picasso Supercomputer (SLURM job templates provided).
  • Reproducible experimentsconfigs/ YAML files capture every run; hashes are logged with Weights & Biases.

Getting started

1. Clone & install

git clone https://github.com/rorro6787/neurodegenerative-disease-detector.git
cd neurodegenerative-disease-detector
python3 -m venv venv
source venv/bin/activate

2. Launch experiments

cd models

# Train the different YOLO and nnUNet models
python models_pipeline.py

3. Ensemble inference

An example Jupyter notebook that visualises the different nnUNet model inferences is available at notebooks/predict/visualize_segmentation.ipynb.

4. Statistical analysis

You can observe the statistical analysis results at notebooks/results/experimental_results.ipynb.

Repository structure

├── .github/                  # Github Actions
├── information/              # Relevant Documents
├── neuro_disease_detector/   # Main Library
├── notebooks/                # Exploratory notebooks
├── picasso/                  # Picasso files used for Experiments
├── tests/                    # Test for the package
├── .gitignore          
├── LICENSE.md
├── pyproject.toml
└── README.md

Results

See information/ThesisTFG.pdf for the full ablation study.

Citing

If you use this code, please cite:

@article{carreira2025sclerosis,
  author  = {Emilio Rodrigo Carreira Villalta},
  title   = {Deep Learning–Based MRI Segmentation for Sclerosis Using YOLOv11 and nnUNet},
  journal = {To appear},
  year    = {2025}
}

License

This project is licensed under the MIT License – see LICENSE.md for details.

Acknowledgements

  • University of Málaga & SCENIC research group for guidance.
  • Málaga Supercomputing Center (Picasso) for GPU resources.
  • The open‑source communities behind YOLO, nnUNet and PyTorch.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nnd-0.1.1.tar.gz (63.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nnd-0.1.1-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file nnd-0.1.1.tar.gz.

File metadata

  • Download URL: nnd-0.1.1.tar.gz
  • Upload date:
  • Size: 63.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for nnd-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fa4a0c2963526dd88b22df0d800bbb7ee99fc01e6fcd7c13aafdd35dde8a88a9
MD5 d43d723322b087427dcdf073db15cc8d
BLAKE2b-256 bb4aba1ec4abe1bc493e7a612e0f6411332f989f1f32a7c3beb2e01f3cdab161

See more details on using hashes here.

Provenance

The following attestation bundles were made for nnd-0.1.1.tar.gz:

Publisher: publish_pypi.yml on rorro6787/neurodegenerative-disease-detector

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nnd-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: nnd-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for nnd-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a42c923215bdfb428ceeb8bc1e0820f12373347d41a4d66c603e84af4693e401
MD5 45b4e5c3bba03290936948f0735b8bc6
BLAKE2b-256 79fdfb2099e3f35d434d016dd8ca76bd1fe21017e41231dd73cf05cd81614590

See more details on using hashes here.

Provenance

The following attestation bundles were made for nnd-0.1.1-py3-none-any.whl:

Publisher: publish_pypi.yml on rorro6787/neurodegenerative-disease-detector

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page