Source code for the IEEE CIVEMSA 2022 paper
ALLNet: Acute Lymphoblastic Leukemia Detection using lightweight convolutional networks
ALLNet is a lightweight deep-learning pipeline for Acute Lymphoblastic Leukemia (ALL) detection from blood-cell images.
The repository implements a two-stage transfer-learning workflow:
- Pre-training a lightweight convolutional network on the Atlas of Digital Pathology (ADP) dataset.
- Fine-tuning the pre-trained model on the ALL-IDB dataset for ALL detection.
The approach is designed to exploit histopathological pre-training and adapt the learned visual representations to leukemic-cell classification.
ADP histopathology patches
β
βΌ
LBCNN / lightweight CNN pre-training
β
βΌ
Pre-trained models
β
βΌ
Fine-tuning on ALL-IDB blood-cell images
β
βΌ
Acute Lymphoblastic Leukemia detection
- 𧬠ALL detection from microscopic blood-cell images
- β‘ Lightweight convolutional architecture based on LBCNN components
- π Transfer-learning workflow from ADP to ALL-IDB
- π§ͺ Two-stage experimental pipeline: pre-training and fine-tuning
- π Python / PyTorch implementation
- π Reproducible code accompanying the IEEE CIVEMSA 2022 paper
ALLNet/
β
βββ 0_PyTorch_ADP_HistoNet_LBCNN/
β βββ pytorch_adp_histonet.py
β βββ lbcnn_pytorch/
β βββ requirements.txt
β
βββ 1_PyTorch_ADP_HistoNet_LBCNN_fineTune_ALL_IDB/
β βββ pytorch_adp_histonet_finetune_all.py
β βββ pretrained_nets/
β βββ lbcnn_pytorch/
β βββ requirements.txt
β
βββ LICENSE
βββ README.md
git clone https://github.com/AngeloUNIMI/ALLNet.git
cd ALLNetUsing Conda:
conda create -n allnet python=3.7
conda activate allnetInstall the required packages from the corresponding experiment folder:
cd 0_PyTorch_ADP_HistoNet_LBCNN/lbcnn_pytorch
pip install -r requirements.txtThe repository dependency graph reports the main framework versions as:
pytorch == 1.4.0
torchvision == 0.5.0
tqdm
Download the Atlas of Digital Pathology (ADP) dataset from:
https://www.dsp.utoronto.ca/projects/ADP/
Expected files and folders:
ADP/img_res_1um_bicubic/
ADP/ADP_EncodedLabels_Release1_Flat.csv
The ADP images should be split into patches following the dataset instructions.
Download the Acute Lymphoblastic Leukemia Image Database for Image Processing (ALL-IDB) from:
https://homes.di.unimi.it/scotti/all/
Expected folder:
ALL_IDB2/
cd 0_PyTorch_ADP_HistoNet_LBCNN
python pytorch_adp_histonet.pyThis step trains the lightweight CNN on the ADP histopathology database.
Copy the generated models into:
1_PyTorch_ADP_HistoNet_LBCNN_fineTune_ALL_IDB/pretrained_nets/
Some pre-trained models may already be included for convenience.
cd 1_PyTorch_ADP_HistoNet_LBCNN_fineTune_ALL_IDB
python pytorch_adp_histonet_finetune_all.pyThis step fine-tunes the network for Acute Lymphoblastic Leukemia detection on ALL-IDB.
Depending on the script configuration, the pipeline can produce:
| Stage | Output |
|---|---|
| ADP pre-training | Trained lightweight CNN models |
| Model transfer | Pre-trained checkpoints for fine-tuning |
| ALL-IDB fine-tuning | ALL classification model |
| Evaluation | Classification performance on ALL-IDB |
| Dataset | Purpose | Link |
|---|---|---|
| ADP β Atlas of Digital Pathology | Histopathology pre-training | https://www.dsp.utoronto.ca/projects/ADP/ |
| ALL-IDB | Acute Lymphoblastic Leukemia detection | https://homes.di.unimi.it/scotti/all/ |
Mahdi S. Hosseini, Lyndon Chan, Gabriel Tse, Michael Tang, Jun Deng, Sajad Norouzi, Corwyn Rowsell, Konstantinos N. Plataniotis, and Savvas Damaskinos,
βAtlas of Digital Pathology: A Generalized Hierarchical Histological Tissue Type-Annotated Database for Deep Learning,β
Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2019, pp. 11747β11756.
R. Donida Labati, V. Piuri, and F. Scotti,
βALL-IDB: the acute lymphoblastic leukemia image database for image processing,β
Proc. of the 2011 IEEE International Conference on Image Processing (ICIP 2011), Brussels, Belgium, pp. 2045β2048, September 11β14, 2011.
DOI: 10.1109/ICIP.2011.6115881
If you use this code, please cite:
@InProceedings{civemsa22_all,
author = {A. Genovese},
booktitle = {Proc. of the 2022 IEEE Int. Conf. on Computational Intelligence and Virtual Environments for Measurement Systems and Applications (CIVEMSA 2022)},
title = {ALLNet: Acute Lymphoblastic Leukemia Detection using lightweight convolutional networks},
address = {Chemnitz, Germany},
pages = {1--6},
month = {June},
day = {15--17},
year = {2022},
note = {Accepted}
}Paper:
https://ieeexplore.ieee.org/document/9853691
Project page:
https://iebil.di.unimi.it/cnnALL/index.htm
Angelo Genovese
Department of Computer Science
UniversitΓ degli Studi di Milano, Italy
This project is released under the GNU General Public License v3.0.
See the LICENSE file for details.
