Journal of imaging informatics in medicine

Explainable Deep Learning for Tympanic Membrane Otoscopy Classification: A Patient-Level, Multi-Seed Comparison of CNN and Vision Transformer Architectures.

Emre Ölmez, Burak Silahlı, Mehmet Ekrem Zorlu, Togay Müderris, Mehmet Kemal Güllü, Orhan Er

Department of Biomedical Engineering, İzmir Bakırçay University, İzmir, Turkey. emre.olmez@bakircay.edu.tr. · Department of Otorhinolaryngology (ENT), Faculty of Medicine, İzmir Bakırçay University, İzmir, Turkey.

Computational · n=735

Key points

From the paper's conclusion
  • We compared convolutional neural network (CNN) and Vision Transformer architectures for classifying otoscopic images into five classes (acute otitis, cerumen impaction, normal, perforation and serous otitis) within a patient-level, multi-seed, leakage-resistant evaluation framework.

Abstract

Otoscopic assessment of the tympanic membrane relies heavily on the clinician's experience and therefore exhibits inter-observer variability. We compared convolutional neural network (CNN) and Vision Transformer architectures for classifying otoscopic images into five classes (acute otitis, cerumen impaction, normal, perforation and serous otitis) within a patient-level, multi-seed, leakage-resistant evaluation framework. The study included 2534 otoscopic images obtained from 735 patients. A held-out test set of 148 patients (20%) was not used at any stage of model development and was accessed only once, at the end of the study. For the remaining patients, patient-level five-fold cross-validation was repeated with five seeds, yielding 25 evaluations per model. Seven architectures were trained under an identical protocol and compared using the Friedman test with post-hoc Nemenyi analysis and 95% bootstrap confidence intervals. Swin-T achieved the highest performance (F1-macro 0.900; 95% confidence interval 0.890-0.910), and the models differed significantly (Friedman p < 10⁻9). This superiority stemmed more from design choices than from the architectural family. The hierarchical ConvNeXt-T (CNN) was statistically equivalent to Swin-T, whereas, under the common protocol, the flat-patch ViT-B/16 ranked among the weakest and most costly models. The difference between the families was small (0.881 for CNN versus 0.887 for Transformer). Temperature scaling, learnt on the validation set, reduced the mean expected calibration error (ECE) from 0.077 to 0.043. Most errors occurred between the visually similar acute otitis and serous otitis classes. Explanation faithfulness was quantified using Deletion and Insertion area under the curve (AUC) metrics. Held-out performance was consistent with cross-validation (difference ≤ 0.043), indicating that the models did not overfit. Hierarchical and locally windowed architectures achieved the best balance between accuracy and computational efficiency. The main limitation of the study is that the data are single-centre and external validation has not yet been carried out.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers