Related Experiment Video
Updated: May 28, 2026

Live Imaging of Antifungal Activity by Human Primary Neutrophils and Monocytes in Response to A. fumigatus
Published on: April 19, 2017
Artifact-Aware Fungal Detection in Dermatophytosis: A Transformer-Based Approach for KOH Microscopy
Rana Gursoy1, Abdurrahim Yilmaz2, Baris Kizilyaprak3
1Department of Mechatronics Engineering, Yildiz Technical University, Istanbul 34220, Turkey.
Abstract:
Dermatophytosis is commonly assessed using potassium hydroxide (KOH) microscopy, yet accurate recognition of fungal hyphae is hindered by preparation-related artifacts, heterogeneous keratin clearance, and notable inter-observer variability. This study presents a transformer-based object detection framework using the RT-DETR architecture for precise, query-driven localisation of fungal structures in high-resolution KOH images. A dataset of 2540 routinely acquired microscopy images was manually annotated using a multi-class strategy that explicitly distinguishes fungal elements from confounding artifacts, enabling the model to actively suppress false detections arising from visually similar mimics. To assess architectural trade-offs, RT-DETR was benchmarked against two CNN-based detectors (YOLOv11 and Faster R-CNN) under identical training and inference conditions. Five-fold stratified cross-validation was performed, and each fold-level model was evaluated on the same independent held-out test set (n = 254). Across the five evaluations, RT-DETR achieved a mean AP@0.50 of 89.73%±1.48%, a mean recall of 0.831±0.011, and a mean precision of 0.921±0.014. At the image level, the model achieved a mean sensitivity of 0.989±0.022 on the independent test set, with a mean of 0.2±0.4 missed positive cases across the five evaluations. These results demonstrate the technical feasibility of a transformer-based artificial intelligence (AI) system as a decision-support aid for fungal region detection in KOH microscopy, pending prospective multi-center validation to establish clinical generalisability.
Insights
A new AI system using RT-DETR accurately detects fungal hyphae in potassium hydroxide (KOH) microscopy images, improving diagnosis of dermatophytosis by reducing errors from artifacts and variability.
Area of Science:
- Medical Mycology
- Artificial Intelligence in Medicine
- Image Analysis
Background:
- Potassium hydroxide (KOH) microscopy is standard for dermatophytosis diagnosis but faces challenges with artifacts and inter-observer variability.
- Accurate identification of fungal hyphae is crucial for timely and effective treatment.
Purpose of the Study:
- To develop and evaluate a transformer-based object detection framework (RT-DETR) for precise fungal structure localization in KOH microscopy images.
- To benchmark the RT-DETR model against convolutional neural network (CNN) based detectors.
Main Methods:
- A dataset of 2540 KOH microscopy images was manually annotated to distinguish fungal elements from artifacts.
- The RT-DETR model was trained and validated using five-fold stratified cross-validation.
- Performance was compared against YOLOv11 and Faster R-CNN under identical conditions.
Main Results:
- RT-DETR achieved a mean Average Precision (AP@0.50) of 89.73% ± 1.48%, with high precision (0.921 ± 0.014) and recall (0.831 ± 0.011).
- The model demonstrated high image-level sensitivity (0.989 ± 0.022) with minimal missed cases.
- RT-DETR outperformed CNN-based detectors in accuracy and artifact suppression.
Conclusions:
- A transformer-based AI system shows technical feasibility for detecting fungal regions in KOH microscopy.
- This AI system can serve as a valuable decision-support tool for clinicians.
- Further multi-center validation is needed to confirm clinical generalizability.

