OSCR

A compact and interpretable multi-source framework for heterogeneous medical image classification.

Code ↔ Paper

The paper beside its authors' code: matches between them have not been computed for this paper yet.

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Markdown · 225 lines · 7.1 KB · MIT

  1. # ML-ConvNet: A Compact and Interpretable Multi-Source Framework for Heterogeneous Medical Image Classification
  2. [![Python](https://img.shields.io/badge/Python-3.12.3-blue)](https://www.python.org/)
  3. [![PyTorch](https://img.shields.io/badge/PyTorch-2.x-orange)](https://pytorch.org/)
  4. [![License](https://img.shields.io/badge/License-MIT-green)](LICENSE)
  5. Official repository for the paper:
  6. > **A Compact and Interpretable Multi-Source Framework for Heterogeneous Medical Image Classification**
  7. > Williams Ayivi, Xiaoling Zhang, Wisdom Xornam Ativi, Francis Sam
  8. > University of Electronic Science and Technology of China | Vienna University of Economics and Business
  9. > *Scientific Reports* (under review)
  10. ---
  11. ## Overview
  12. ML-ConvNet is an ultra-lightweight convolutional architecture (~4.2K parameters) designed for
  13. heterogeneous medical image classification across independent multi-source imaging cohorts.
  14. The framework operates without requiring paired or co-registered multi-modal data, making it
  15. suitable for realistic fragmented clinical data ecosystems.
  16. ### Key components
  17. | Component | Description | Parameters |
  18. |-----------|-------------|------------|
  19. | MBRConv | Multi-Branch Re-parameterized Convolution | ~912 per block |
  20. | IWO | Incremental Weight Optimization strategy | 0 (training only) |
  21. | FST | Feature Self-Transformation module | ~72 |
  22. | HDPA | Hierarchical Dual-Path Attention | ~60 |
  23. | LVW | Local Variance Weighted loss | 0 (training only) |
  24. **Total inference parameters:** 4,230 (for K=4 classes)
  25. **FLOPs:** 924M at 512x512 input resolution
  26. **Inference latency:** 2.3 ms (CPU) | 0.21 ms (GPU) | 6.1 ms (Snapdragon 888)
  27. ---
  28. ## Datasets
  29. Three publicly available benchmark datasets are used. Each is evaluated independently.
  30. | Modality | Dataset | Classes | Samples | Imbalance |
  31. |----------|---------|---------|---------|-----------|
  32. | Brain MRI | [Nickparvar Brain Tumor MRI](https://doi.org/10.34740/kaggle/dsv/14832123) | 4 (Glioma, Meningioma, Pituitary, Normal) | 7,023 | Balanced |
  33. | Lung CT | [IQ-OTH/NCCD](https://doi.org/10.34740/kaggle/ds/672399) | 3 (Malignant, Benign, Normal) | 1,097 | High (benign minority) |
  34. | Chest X-ray | [Guangzhou Pediatric Pneumonia](https://data.mendeley.com/datasets/rscbjbr9sj/2) | 2 (Pneumonia, Normal) | 5,856 | Moderate |
  35. Download each dataset and place under `data/` as follows:
  36. data/
  37. ├── mri/
  38. │ ├── Training/
  39. │ │ ├── glioma/
  40. │ │ ├── meningioma/
  41. │ │ ├── notumor/
  42. │ │ └── pituitary/
  43. │ └── Testing/
  44. ├── ct/
  45. │ ├── Malignant cases/
  46. │ ├── Benign cases/
  47. │ └── Normal cases/
  48. └── xray/
  49. ├── train/
  50. │ ├── PNEUMONIA/
  51. │ └── NORMAL/
  52. └── test/
  53. ---
  54. ## Installation
  55. ```bash
  56. git clone https://github.com/W-ayivi/ML-ConvNet.git
  57. cd ML-ConvNet
  58. pip install -r requirements.txt
  59. ```
  60. ---
  61. ## Repository Structure
  62. ML-ConvNet/
  63. ├── models/
  64. │ ├── mbrconv.py # Multi-Branch Re-parameterized Convolution + IWO
  65. │ ├── fst.py # Feature Self-Transformation module
  66. │ ├── hdpa.py # Hierarchical Dual-Path Attention
  67. │ └── mlconvnet.py # Full network definition (skeleton)
  68. ├── losses/
  69. │ └── lvw_loss.py # Local Variance Weighted loss
  70. ├── utils/
  71. │ ├── reparameterize.py # Structural re-parameterization utility
  72. │ └── preprocessing.py # Modality-specific preprocessing pipelines
  73. ├── evaluation/
  74. │ ├── metrics.py # Classification metrics
  75. │ └── intervals.py # CI, PI, TI computation
  76. ├── data/
  77. │ └── dataset.py # Dataset loaders
  78. ├── train.py # Training script
  79. ├── evaluate.py # Evaluation script
  80. ├── requirements.txt
  81. └── README.md
  82. ---
  83. ## Preprocessing
  84. All inputs are standardized to 512x512x3. Single-channel acquisitions (MRI, CT)
  85. are replicated across three channels. No modality identity label is passed as a
  86. conditioning signal at any stage.
  87. | Modality | Pipeline |
  88. |----------|----------|
  89. | MRI | N4ITK bias correction, skull stripping, in-mask z-score, 3-channel replication |
  90. | CT | HU windowing [-1000, 400], scale to [0,1], lesion-centric sampling |
  91. | X-ray | CLAHE, median filtering, global z-score (fallback min-max), pad to square |
  92. On-the-fly augmentation during training: elastic warping, random rotation, Gaussian noise.
  93. Minibatches are constructed via round-robin sampling across cohorts to maintain
  94. approximate modality balance. Missing modality inputs are replaced by zero tensors.
  95. ---
  96. ## Training
  97. ```bash
  98. python train.py --modality mri --data_dir data/mri --epochs 100 --batch_size 32 --lr 1e-4
  99. python train.py --modality ct --data_dir data/ct --epochs 100 --batch_size 32 --lr 1e-4
  100. python train.py --modality xray --data_dir data/xray --epochs 100 --batch_size 32 --lr 1e-4
  101. ```
  102. ### Training configuration
  103. | Parameter | Value |
  104. |-----------|-------|
  105. | Optimizer | Adam |
  106. | Learning rate | 1e-4 |
  107. | Batch size | 32 |
  108. | Epochs | 100 |
  109. | Weight initialization | Xavier uniform |
  110. | Validation | 10-fold stratified cross-validation (patient-level) |
  111. | Framework | PyTorch v2.x, Python 3.12.3 |
  112. | GPU | NVIDIA RTX 4060 (8GB VRAM) |
  113. Structural re-parameterization is applied after training completion within each fold.
  114. Numerical equivalence between training-phase and inference-phase outputs is verified
  115. with maximum absolute deviation below 1e-6.
  116. ---
  117. ## Evaluation
  118. ```bash
  119. python evaluate.py --modality mri --checkpoint checkpoints/mri_fold1.pth --data_dir data/mri
  120. ```
  121. Metrics reported per fold: Accuracy, Precision, Recall, F1-score, MCC, Cohen's kappa, AUC.
  122. Aggregate statistics: mean +/- SD, 95% CI, 95% PI, 95/95 TI across 10 folds.
  123. ---
  124. ## Results
  125. ### MRI Brain Tumor
  126. | Metric | Mean +/- SD | 95% CI |
  127. |--------|-------------|--------|
  128. | Accuracy | 0.982 +/- 0.002 | [0.981, 0.983] |
  129. | Macro F1 | 0.980 +/- 0.002 | [0.979, 0.981] |
  130. | MCC | 0.973 +/- 0.002 | [0.972, 0.974] |
  131. | AUC | 0.996 +/- 0.001 | [0.995, 0.997] |
  132. ### CT Lung Nodule
  133. | Metric | Mean +/- SD | 95% CI |
  134. |--------|-------------|--------|
  135. | Accuracy | 0.949 +/- 0.003 | [0.947, 0.951] |
  136. | Macro F1 | 0.933 +/- 0.003 | [0.931, 0.935] |
  137. | MCC | 0.918 +/- 0.003 | [0.916, 0.920] |
  138. | AUC | 0.972 +/- 0.002 | [0.971, 0.973] |
  139. ### Chest X-ray
  140. | Metric | Mean +/- SD | 95% CI |
  141. |--------|-------------|--------|
  142. | Accuracy | 0.958 +/- 0.002 | [0.957, 0.959] |
  143. | Macro F1 | 0.950 +/- 0.002 | [0.949, 0.951] |
  144. | MCC | 0.940 +/- 0.003 | [0.938, 0.942] |
  145. | AUC | 0.978 +/- 0.002 | [0.977, 0.979] |
  146. ---
  147. ## Citation
  148. ```bibtex
  149. @article{ayivi2025mlconvnet,
  150. title={A Compact and Interpretable Multi-Source Framework for Heterogeneous Medical Image Classification},
  151. author={Ayivi, Williams and Zhang, Xiaoling and Ativi, Wisdom Xornam and Sam, Francis},
  152. journal={Scientific Reports},
  153. year={2025},
  154. note={Under review}
  155. }
  156. ```
  157. ---
  158. ## Acknowledgements
  159. The core architectural design of ML-ConvNet is inspired by the MobileIE framework
  160. (Yan et al., ICCV 2025). We thank the authors for making their work publicly available.
  161. ---
  162. ## License
  163. MIT License. See LICENSE for details.
  164. ---
  165. ## Contact
  166. Williams Ayivi — [email hidden]

README.md at commit c7c3a6c, under MIT · at the source

Overview

Authors: Williams Ayivi1,2, Xiaoling Zhang1, Wisdom Xornam Ativi3, Francis Sam4, Amil Aligayev5,6
ORCID iDs: Williams Ayivi
  1. School of Information and Communication Engineering, University of Electronic Science and Technology of China, Chengdu, 611731 China
  2. Department of Information Systems and Operations Management, Vienna University of Economics and Business, 1020 Vienna, Austria
  3. School of Computer Science and Technology, University of Electronic Science and Technology of China, Chengdu, 611731 China
  4. School of Information and Software Engineering, University of Electronic Science and Technology of China, Chengdu, 611731 China
  5. NOMATEN CoE, National Centre for Nuclear Research, 05-400 Otwock, Poland
  6. Scientific Research Center, Baku Engineering University, AZ0101 Baku, Azerbaijan
Journal: Scientific reports, volume 16, issue 1, article 20414
Dates: received 21 February 2026; accepted 25 April 2026; published online 2 May 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41598-026-51120-x · PMID 42069855 · PMCID PMC13328668 · OpenAlex W7159925734
Open access: gold, a free copy (OpenAlex)
Status: empty repository
Categories: structural MRI / diffusion (modality), other (modality), human (organism), other condition (population), methods / tools (subfield)
Methods: Smoothing, state filtering, decompositions, Machine learning, Connectivity, Statistics
Keywords: Lightweight convolutional neural networks, Multi-source heterogeneous classification, Brain tumor MRI, Lung nodule CT, Chest X-ray, HDPA, MBRConv, Computational biology and bioinformatics, Engineering, Health care, Mathematics and computing, Medical research
MeSH: Deep Learning*, Image Processing, Computer-Assisted*, Algorithms, Brain, Convolutional Neural Networks, Humans, Magnetic Resonance Imaging, Tomography, X-Ray Computed (* major topic)
Topic: COVID-19 diagnosis using AI (Radiology, Nuclear Medicine and Imaging, Medicine), according to OpenAlex
Citations: not cited yet (Europe PMC); 40 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repository

Its files are read in the Code ↔ Paper reader above.

W-ayivi/ML-ConvNet

License: MIT
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: c7c3a6c92cf485a23473e477af51f754a0272341, 22 March 2026
Size: 1 file, 0 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
1 file

Code availability statement

The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1038/s41598-026-51120-x.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 0 scripts, each with its path and the digest of its content;
  • no match between paragraphs and code yet;
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

Datasets cited

Data availability statement

The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1038/s41598-026-51120-x.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 12 keywords, 8 MeSH terms, 14 references.

Cite

This paper

Ayivi, W., Zhang, X., Ativi, W. X., Sam, F., & Aligayev, A. (2026). A compact and interpretable multi-source framework for heterogeneous medical image classification. Scientific reports, 16(1), 20414. https://doi.org/10.1038/s41598-026-51120-x

BibTeX

@article{ayivi2026compact,
author = {Ayivi, Williams and Zhang, Xiaoling and Ativi, Wisdom Xornam and Sam, Francis and Aligayev, Amil},
title = {{A compact and interpretable multi-source framework for heterogeneous medical image classification}},
journal = {Scientific reports},
year = {2026},
month = may,
volume = {16},
number = {1},
pages = {20414},
publisher = {Nature Publishing Group},
issn = {2045-2322},
doi = {10.1038/s41598-026-51120-x},
url = {https://doi.org/10.1038/s41598-026-51120-x},
pmid = {42069855},
pmcid = {PMC13328668}
}

RIS

TY - JOUR
AU - Ayivi, Williams
AU - Zhang, Xiaoling
AU - Ativi, Wisdom Xornam
AU - Sam, Francis
AU - Aligayev, Amil
TI - A compact and interpretable multi-source framework for heterogeneous medical image classification
T2 - Scientific reports
J2 - Sci Rep
PY - 2026
DA - 2026/05/02
VL - 16
IS - 1
SP - 20414
SN - 2045-2322
PB - Nature Publishing Group
DO - 10.1038/s41598-026-51120-x
UR - https://doi.org/10.1038/s41598-026-51120-x
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41598-026-51120-x",
"type": "article-journal",
"title": "A compact and interpretable multi-source framework for heterogeneous medical image classification",
"container-title": "Scientific reports",
"author": [
{
"family": "Ayivi",
"given": "Williams"
},
{
"family": "Zhang",
"given": "Xiaoling"
},
{
"family": "Ativi",
"given": "Wisdom Xornam"
},
{
"family": "Sam",
"given": "Francis"
},
{
"family": "Aligayev",
"given": "Amil"
}
],
"container-title-short": "Sci Rep",
"volume": "16",
"issue": "1",
"page": "20414",
"DOI": "10.1038/s41598-026-51120-x",
"PMID": "42069855",
"PMCID": "PMC13328668",
"ISSN": "2045-2322",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41598-026-51120-x",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
2
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.3389/frai.2026.1849571
NeuroPlast: a learnable activation function evaluated under knowledge distillation for medical image classification.
Journal: Frontiers in artificial intelligence
In common: data.mendeley.com/datasets/rscbjbr9sj, methods / tools, other condition, 1 reference
[2] doi:10.1117/1.jbo.31.8.086006
Noise-aware dynamic convolution for improved generalizability of retinal disease diagnosis using optical coherence tomography images.
Journal: Journal of biomedical optics
In common: data.mendeley.com/datasets/rscbjbr9sj, other
[3] doi:10.1371/journal.pone.0351667
MamNet-PT: A Mamba-enhanced hybrid architecture with selective state-space modeling for uncertainty-aware brain tumor segmentation.
Journal: PloS one
In common: methods / tools, structural MRI / diffusion, other condition, 1 reference
[4] doi:10.1038/s41598-026-50158-1 [code]
NeXtSwin-X: dual-branch cross-attention fusion of ConvNeXt and swin transformer for accurate brain tumor classification from MRI and CT.
Journal: Scientific reports
In common: other, structural MRI / diffusion, other condition, 1 reference
[5] doi:10.1371/journal.pone.0351953 [code]
GL-Net: A knowledge-guided Gaussian-gated and layered refinement network for 3D MRI segmentation of brain gliomas.
Journal: PloS one
In common: methods / tools, structural MRI / diffusion, other condition, 1 reference
[6] doi:10.1186/s40708-026-00303-3 [code]
BrainFusionNet: a deep learning and XAI model to understand local, global, and sequential features of MRI images for improved brain tumour detection.
Journal: Brain informatics
In common: methods / tools, structural MRI / diffusion, other condition, 1 reference
[7] doi:10.3389/fonc.2026.1834400
BrainFusionNet: an attention-augmented deep convolutional framework with hybrid loss optimisation and test-time augmentation for multi-class brain tumour detection in magnetic resonance images.
Journal: Frontiers in oncology
In common: methods / tools, structural MRI / diffusion, other condition, 1 reference
[8] doi:10.1038/s41598-026-51236-0
A minimal-net CNN model for an IoT-based brain tumor detection and monitoring system.
Journal: Scientific reports
In common: structural MRI / diffusion, other condition, 1 reference
[9] doi:10.3390/diagnostics16172776
A Resource-Efficient Hybrid Deep Learning Framework with External Validation for Intracranial Hemorrhage Detection in CT Scans.
Journal: Diagnostics (Basel, Switzerland)
In common: other, 1 reference
[10] doi:10.3389/fmed.2026.1804084
Lightweight deep learning framework for intracranial hemorrhage detection in brain CT scans.
Journal: Frontiers in medicine
In common: other, 1 reference

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.