Skip to main content

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

Ask DeepWiki PyPI Version PyPI Python version PyPI License 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 experiments – configs/ 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.

Metadata

Release files for nnd 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nnd 0.2.0
File Size Uploaded Provenance Actions
nnd-0.2.0.tar.gz 63.1 MB With provenance Details for nnd-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nnd 0.2.0
File Interpreter ABI Platform Actions
nnd-0.2.0-py3-none-any.whl Python 3 none any Details for nnd-0.2.0-py3-none-any.whl

Total release size: 63.1 MB

Release files / nnd-0.2.0.tar.gz

Download URL nnd-0.2.0.tar.gz
Size 63.1 MB
Tags Source
SHA-256 checksum
How to use checksums
cb4dcc9af44ffe4de2e1586b248719aecd31b36a16534823277316cb9a8b306c
BLAKE2b-256 checksum
How to use checksums
36d77516d2eccd377f0ea1b1a44c340826138359524068d16121f74e4fcc6937
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2025.

Transparency log

Release files / nnd-0.2.0-py3-none-any.whl

Download URL nnd-0.2.0-py3-none-any.whl
Size 19.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6e65c3a769081b0cde399598c1b28c1f1053d5b9a056f4c94aefc296b82da7f
BLAKE2b-256 checksum
How to use checksums
ec7b1ea2fbe2c01a65d81188732aef0daac54e3a8ae1fc12cf5fc63531abf3a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2025.

Transparency log

Security for nnd 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nnd-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page