# A lightweight deep learning framework for reliable microscopy-based diagnosis of cutaneous leishmaniasis

**Authors:** Nisreen Osman E. Ahmed, Samuel Mwalili, Murtada K. Elbashir

PMC · DOI: 10.1371/journal.pone.0344561 · PLOS One · 2026-03-17

## TL;DR

A new deep learning framework improves the accuracy and reliability of diagnosing cutaneous leishmaniasis from microscope images.

## Contribution

A lightweight, calibration-aware deep learning framework for automated diagnosis of cutaneous leishmaniasis using microscopy images.

## Key findings

- The framework achieved a Dice coefficient of 0.901 and IoU of 0.820 for parasite segmentation.
- Isotonic regression improved diagnostic reliability, reducing Brier score from 0.089 to 0.030 and ECE from 0.120 to 0.023.
- The model demonstrated strong slide-level diagnostic performance with an AUROC of 0.978.

## Abstract

Cutaneous leishmaniasis (CL) is a neglected tropical and zoonotic disease affecting both human and animal health, for which microscopic examination of Giemsa-stained slides remains the diagnostic reference standard despite being time-consuming and operator-dependent. In this study, we developed a lightweight, calibration-aware deep learning framework for automated amastigote detection and slide-level diagnostic probability estimation from microscopy images. A U-Net architecture with a MobileNetV2 encoder was employed for pixel-level parasite segmentation using a weakly supervised pseudo-labeling strategy on a single-center dataset comprising 292 field-of-view images. Slide-level diagnostic probabilities were derived via probability pooling and subsequently refined using post-hoc calibration techniques, including isotonic regression, Platt scaling, and temperature scaling. Model performance was evaluated on an independent test set using segmentation metrics (Dice coefficient and Intersection-over-Union) and diagnostic reliability metrics (AUROC, Brier score, and Expected Calibration Error). The proposed framework achieved a Dice coefficient of 0.901 and an IoU of 0.820 for segmentation against pseudo-label references, with strong discriminative performance at the slide level (AUROC = 0.978). Isotonic regression markedly improved probability reliability, reducing the Brier score from 0.089 to 0.030 and the Expected Calibration Error from 0.120 to 0.023 without significantly affecting discrimination. Statistical analyses confirmed the robustness of the calibration improvements. Overall, the results demonstrate that isotonic calibration enhances the interpretability and reliability of deep-learning-based CL diagnostics. The proposed lightweight framework provides a robust foundation for microscopy-based screening and supports future validation across broader datasets and One Health–oriented diagnostic applications.

## Linked entities

- **Diseases:** cutaneous leishmaniasis (MONDO:0005446)

## Full-text entities

- **Genes:** MLC1 (modulator of VRAC current 1) [NCBI Gene 23209] {aka LVM, MLC, VL}
- **Diseases:** Chagas disease (MESH:D014355), zoonotic disease (MESH:D015047), skin cancer (MESH:D012878), infected (MESH:D007239), Sigmoid (MESH:D012810), MCL (MESH:C535516), malaria (MESH:D008288), Mucocutaneous Leishmaniasis (MESH:D007897), ReLU (MESH:D017499), CL (MESH:D016773), VL (MESH:D007898)
- **Chemicals:** Giemsa (MESH:D001399), IoU (-)
- **Species:** Canis lupus familiaris (dog, subspecies) [taxon 9615], Homo sapiens (human, species) [taxon 9606], Leishmania (subgenus) [taxon 38568]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12994852/full.md

## Figures

8 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12994852/full.md

## References

35 references — full list in the complete paper: https://tomesphere.com/paper/PMC12994852/full.md

---
Source: https://tomesphere.com/paper/PMC12994852