Skip to main navigation Skip to search Skip to main content

Validating Vision Transformers for Otoscopy: Performance and Data-Leakage Effects

  • James Ndubuisi*
  • , Fernando Auat-Cheein
  • , Marta Vallejo
  • *Corresponding author for this work

Research output: Working paperPreprint

1 Downloads (Pure)

Abstract

This study evaluates the efficacy of vision transformer models, specifically Swin transformers, in enhancing the diagnostic accuracy of ear diseases compared to traditional convolutional neural networks. With a reported 27% misdiagnosis rate among specialist otolaryngologists, improving diagnostic accuracy is crucial. The research utilised a real-world dataset from the Department of Otolaryngology at the Clinical Hospital of the Universidad de Chile, comprising otoscopic videos of ear examinations depicting various middle and external ear conditions. Frames were selected based on the Laplacian and Shannon entropy thresholds, with blank frames removed. Initially, Swin v1 and Swin v2 transformer models achieved accuracies of 100% and 99.1%, respectively, marginally outperforming the ResNet model (99.5%). These results surpassed metrics reported in related studies. However, the evaluation uncovered a critical data leakage issue in the preprocessing step, affecting both this study and related research using the same raw dataset. After mitigating the data leakage, model performance decreased significantly. Corrected accuracies were 83% for both Swin v1 and Swin v2, and 82% for the ResNet model. This finding highlights the importance of rigorous data handling in machine learning studies, especially in medical applications. The findings indicate that while vision transformers show promise, it is essential to find an optimal balance between the benefits of advanced model architectures and those derived from effective data preprocessing. This balance is key to developing a reliable machine learning model for diagnosing ear diseases.
Original languageEnglish
PublisherarXiv
Pages1--12
Number of pages12
DOIs
Publication statusPublished - 6 Nov 2025

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 3 - Good Health and Well-being
    SDG 3 Good Health and Well-being
  2. SDG 10 - Reduced Inequalities
    SDG 10 Reduced Inequalities

Keywords

  • Ear Disease Diagnosis
  • Swin Transformer
  • Vision Transformer
  • Deep Learning
  • Convolutional Neural Networks
  • Data Leakage

Fingerprint

Dive into the research topics of 'Validating Vision Transformers for Otoscopy: Performance and Data-Leakage Effects'. Together they form a unique fingerprint.

Cite this