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

N Nisreen Osman E. Ahmed S Samuel Mwalili M Murtada K. Elbashir

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.

Article Details

Journal PLoS ONE
Volume / Issue Vol. 21, Issue 3
Published March 17, 2026
Pages e0344561
ISSN 1932-6203
Publisher Public Library of Science

Journal Info

PLoS ONE

Public Library of Science

ISSN: 1932-6203 Open Access Health Sciences

Authors (3)

N

Nisreen Osman E. Ahmed

S

Samuel Mwalili

M

Murtada K. Elbashir