deboraJ23 commited on
Commit
f32d6c3
·
verified ·
1 Parent(s): a639402

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +75 -21
README.md CHANGED
@@ -1,33 +1,87 @@
1
- # Robust Breast MRI Classification via Multi-Sequence Attention-Based Multiple Instance Learning and Focal Loss Optimization
2
- This repository contains code for **Attention-Based Multiple Instance Learning (ABMIL)** models for **breast MRI classification**.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
- # 🩺 Code for ODELIA Breast MRI Challenge 2025
5
- ## Overview
6
- The **ODELIA Breast MRI Challenge 2025** benchmarks subject-level classification on a multi-center dataset of unilateral breast MRI in NIfTI format with three labels: **normal, benign, and malignant**. The goal is to advance clinically meaningful AI by tackling class imbalance, temporal contrast dynamics, and multi-sequence integration. Participants build models that ingest pre- and post-contrast sequences (and subtraction) and produce patient-level predictions evaluated on robust metrics. The challenge emphasizes reproducibility and fairness across institutions, encouraging architectures that learn from full 3D volumes without lesion annotations. Results aim to accelerate real-world deployment of reliable screening and diagnostic support systems across heterogeneous clinical settings.
 
 
 
 
 
 
7
 
8
- ## Method
9
- We present a multi-sequence **Attention-Based Multiple Instance Learning (ABMIL)** framework for subject-level breast MRI classification. Each breast volume is represented by 32 axial slices with **pre-contrast, early post-contrast, and on-the-fly subtraction** channels. Slice features are extracted with **Swin Transformer Tiny** (ImageNet-pretrained) and aggregated via **gated attention** to form a patient-level embedding. To mitigate pronounced class imbalance, we optimize with **focal loss** and found **γ = 5.0** consistently strongest across validation and pre-evaluation tests. The approach operates without lesion annotations, leverages temporal enhancement patterns, and delivers robust performance across institutions—tailored for scalable, clinically relevant evaluation.
 
10
 
11
- # Code
12
 
 
 
13
 
14
- The training pipeline is controlled by **CSV configuration files** located in the [`config/`](config/) folder.
 
15
 
16
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
- ## 🚀 Running the Code
 
 
 
19
 
20
  ```bash
 
 
21
  pip install -r requirements.txt
22
-
23
- python main.py \
24
- --configuration_file "config/config_mil_cross_nii.csv" \
25
- --project_name "Breast MRI MIL Cross Attention"
26
- configuration_file → Path to one of the CSV configs in config/.
27
- project_name → Custom name for logging runs in Weights & Biases
28
  ```
29
 
30
- ## Contact Us
31
- - **Dr. Tri-Thien Nguyen** – [tri-thien.nguyen@fau.de](mailto:tri-thien.nguyen@fau.de) · [Profile](https://lme.tf.fau.de/person/ttnguyen)
32
- - **Adarsh Bhandary Panambur** – [adarsh.bhandary.panambur@fau.de](mailto:adarsh.bhandary.panambur@fau.de) · [Profile](https://lme.tf.fau.de/person/panambur/)
33
- - **Pattern Recognition Lab (FAU Erlangen-Nürnberg)** – [https://lme.tf.fau.de/](https://lme.tf.fau.de/)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license_link: https://github.com/adarshbhandaryp/ABMIL
3
+ datasets:
4
+ - ODELIA-AI/ODELIA-Challenge-2025
5
+ language:
6
+ - en
7
+ metrics:
8
+ - roc_auc
9
+ pipeline_tag: image-classification
10
+ tags:
11
+ - breast
12
+ - cancer
13
+ - mri
14
+ - odelia
15
+ - abmil
16
+ - swin-transformer
17
+ extra_gated_prompt: >-
18
+ ### Model Usage Agreement
19
+
20
+ By accessing or using this model (the "Model"), you acknowledge and agree
21
+ to the following terms:
22
 
23
+ 1. The Model is provided for non-commercial academic and research use only.
24
+ 2. The Model must not be used for diagnosis, treatment, clinical decision
25
+ making, or any application involving real-patient care.
26
+ 3. Do not identify, re-identify, or deanonymize people whose data may have
27
+ contributed to the training or evaluation data.
28
+ 4. Publications or derivative research must acknowledge the ODELIA
29
+ consortium and cite the ABMIL authors and source repository.
30
+ 5. You are responsible for validating outputs in your research context.
31
+ The Model is provided as-is, without warranties.
32
 
33
+ This gated access does not grant rights beyond the license and permissions
34
+ stated in this model card. Third-party components retain their own licenses.
35
+ ---
36
 
37
+ # ODELIA ABMIL Model
38
 
39
+ Attention-Based Multiple Instance Learning (ABMIL) model for subject-level
40
+ three-class breast MRI classification in the ODELIA Challenge 2025.
41
 
42
+ This model was contributed by the ABMIL team. The source implementation is
43
+ available at [adarshbhandaryp/ABMIL](https://github.com/adarshbhandaryp/ABMIL).
44
 
45
+ ## Method
46
+
47
+ The model represents each subject using 32 axial slices with pre-contrast,
48
+ early post-contrast, and subtraction channels. A Swin Transformer Tiny
49
+ backbone extracts slice features. Gated attention aggregates the slice
50
+ features into a patient-level representation, followed by a three-class
51
+ classifier. The source README reports focal loss with gamma 5.0.
52
+
53
+ ## Intended use and limitations
54
+
55
+ This release is for research and benchmarking only. It is not a medical
56
+ device, is not clinically validated, and must not be used for diagnosis,
57
+ prognosis, treatment, triage, or other clinical decisions. Performance may
58
+ vary across institutions, scanners, acquisition protocols, and populations.
59
 
60
+ ## Setup
61
+
62
+ The source repository provides the complete training and evaluation code and
63
+ requirements:
64
 
65
  ```bash
66
+ git clone https://github.com/adarshbhandaryp/ABMIL.git
67
+ cd ABMIL
68
  pip install -r requirements.txt
 
 
 
 
 
 
69
  ```
70
 
71
+ Refer to the source repository for configuration-file usage and preprocessing
72
+ requirements. The model expects ODELIA-style multi-sequence breast MRI input.
73
+
74
+ ## License and attribution
75
+
76
+ This repository is published under the ODELIA and ABMIL authors' permission.
77
+
78
+ The Swin Transformer implementation and pretrained ImageNet weights are
79
+ third-party components. Their applicable licenses and terms must be preserved
80
+ and reviewed before redistribution. See the dependency notices in the source
81
+ repository and the relevant upstream package/model licenses.
82
+
83
+ Please cite or acknowledge:
84
+
85
+ - ODELIA Challenge 2025 and the ODELIA consortium.
86
+ - The ABMIL authors and [source repository](https://github.com/adarshbhandaryp/ABMIL).
87
+ - The ODELIA paper: [arXiv:2506.00474](https://arxiv.org/abs/2506.00474).