{"title":"Leakage-Aware Visit-Level Benchmarking Reveals Representational Overlap in Deep Learning for Bacterial Versus Fungal Keratitis Classification.","authors":"Wonjong Jeong, Jinho Jeong","doi":"10.1167/tvst.15.7.28","DOIUrl":null,"url":null,"abstract":"<p><strong>Purpose: </strong>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.</p><p><strong>Methods: </strong>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.</p><p><strong>Results: </strong>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.</p><p><strong>Conclusions: </strong>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.</p><p><strong>Translational relevance: </strong>Leakage-aware visit-level benchmarking supports realistic evaluation and calibrated decision support.</p>","PeriodicalId":23322,"journal":{"name":"Translational Vision Science & Technology","volume":"15 7","pages":"28"},"PeriodicalIF":2.7000,"publicationDate":"2026-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC13426526/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Translational Vision Science & Technology","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.1167/tvst.15.7.28","RegionNum":3,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"OPHTHALMOLOGY","Score":null,"Total":0}
引用次数: 0
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 Vision Science & Technology (TVST), an official journal of the Association for Research in Vision and Ophthalmology (ARVO), an international organization whose purpose is to advance research worldwide into understanding the visual system and preventing, treating and curing its disorders, is an online, open access, peer-reviewed journal emphasizing multidisciplinary research that bridges the gap between basic research and clinical care. A highly qualified and diverse group of Associate Editors and Editorial Board Members is led by Editor-in-Chief Marco Zarbin, MD, PhD, FARVO.
The journal covers a broad spectrum of work, including but not limited to:
Applications of stem cell technology for regenerative medicine,
Development of new animal models of human diseases,
Tissue bioengineering,
Chemical engineering to improve virus-based gene delivery,
Nanotechnology for drug delivery,
Design and synthesis of artificial extracellular matrices,
Development of a true microsurgical operating environment,
Refining data analysis algorithms to improve in vivo imaging technology,
Results of Phase 1 clinical trials,
Reverse translational ("bedside to bench") research.
TVST seeks manuscripts from scientists and clinicians with diverse backgrounds ranging from basic chemistry to ophthalmic surgery that will advance or change the way we understand and/or treat vision-threatening diseases. TVST encourages the use of color, multimedia, hyperlinks, program code and other digital enhancements.