ResearchTranslational Vision Science & Technology · Jul 27, 2026

Leakage-Aware Visit-Level Benchmarking Reveals Representational Overlap in Deep Learning for Bacterial Versus Fungal Keratitis Classification

Jeong W, Jeong J
OphthalmologyInfectious DiseaseDigital Health & AIAdult

Study type: Observational study: it can show a link, but not prove that one thing causes another.

Read the full paper free at PubMed Central ↗

Abstract

Purpose The purpose of this study was to benchmark deep learning for bacterial versus fungal keratitis classification from slit-lamp photographs under a leakage-aware, visit-level framework, and to characterize embedding-space geometry as a potential performance ceiling. Methods This retrospective single-center study included white-light slit-lamp photographs from 101 patients with culture-confirmed bacterial or fungal keratitis (258 visits; 658 images), using strict patient-disjoint five-fold cross-validation with the clinical visit as the primary prediction unit. Image-level classifiers, multiple instance learning (MIL), and DINOv2-based retrieval were compared under three preprocessing strategies: full-frame, corneal region of interest (ROI), and lesion-centered MedSAM crops. Embedding geometry was analyzed using Uniform Manifold Approximation and Projection (UMAP). Pairwise visit-level model comparisons were performed using patient-cluster paired bootstrap on aligned out-of-fold (OOF) visit-level predictions, and probability calibration was assessed using expected calibration error (ECE) and Brier score. Results At the image level, the highest area under the receiver operating characteristic curve (AUROC) was 0.691. At the visit level, convolutional neural network (CNN)-based MIL models achieved the highest AUROC (0.677), followed by retrieval-based approaches (0.661). However, MIL models showed larger generalization gaps, whereas DINOv2 lesion-crop retrieval remained stable (-0.014). Lesion-centered preprocessing was the dominant performance determinant within the retrieval paradigm. Embedding analysis revealed extensive class overlap, with 90.9% of fungal visits within the bacterial convex hull. Conclusions Under leakage-aware, visit-level evaluation, all paradigms converged to modest discrimination, consistent with representational overlap within this single-center cohort. CNN-based MIL achieved higher AUROC but greater overfitting; retrieval-based models provided more stable generalization and superior probability calibration. Whether this ceiling is task-intrinsic or site-specific requires multicenter validation. Translational relevance Leakage-aware visit-level benchmarking supports realistic evaluation and calibrated decision support.

More on this topic

AI in medicine

Subject terms

Humans; Deep Learning; Retrospective Studies; Benchmarking; Eye Infections, Fungal; Keratitis; Eye Infections, Bacterial; Classification Algorithms

DOI: 10.1167/tvst.15.7.28 · PubMed: 42506962

Cite this article

Jeong W, Jeong J. Leakage-Aware Visit-Level Benchmarking Reveals Representational Overlap in Deep Learning for Bacterial Versus Fungal Keratitis Classification. Transl Vis Sci Technol. 2026;15(7):28. doi:10.1167/tvst.15.7.28

RIS (EndNote, Zotero, Mendeley)BibTeX

Spotted a mistake? Suggest a correction

Top Ophthalmology studies every Monday

The week’s key trials and guidelines, free to read, in one short email. No account; unsubscribe in one click.

Choose specialties and topics

Similar articles

Research · Transl Vis Sci Technol · Oct 22, 2026 · Ophthalmology, Digital Health & AI

Deep learning models classified six keratitis types with 76.8% accuracy in 3797 images

Research · Invest Ophthalmol Vis Sci · Sep 21, 2026 · Ophthalmology, Infectious Disease

A Novel Mycovirus Reprograms the Pathogenic State of Aspergillus flavus in Keratitis

Research · Invest Ophthalmol Vis Sci · Apr 1, 2026 · Ophthalmology

PIM1 Inhibition Alleviates Aspergillus fumigatus Keratitis by Regulating DDX41-Mediated STING Signaling Pathway

Research · Invest Ophthalmol Vis Sci · Oct 29, 2026 · Ophthalmology

Sodium butyrate alleviates fungal keratitis with antifungal and anti-inflammatory effects

Randomized trial n = 354 · Ophthalmology · Dec 9, 2021 · Ophthalmology

Natamycin 5% was associated with better vision than chlorhexidine 0.2% for fungal eye infections