Monsicha Pongpom, Siriwoot Sookkhee, Siriporn Chongkae, Sara Wattanasombat, Kornprom Pikulkaew, Narin Lawan, Phit Upaphong, Tanaporn Wangsanut
Background: Vulvovaginal candidiasis (VVC) is a common fungal infection that is frequently diagnosed through manual microscopic examination of vaginal discharge. Artificial Intelligence (AI)-assisted analysis of microscopic images enables rapid and accurate diagnosis, supporting timely and effective antifungal therapeutic interventions. However, conventional light microscopy often lacks cameras, limiting digital image analysis and AI applications. While mobile devices offer a practical alternative, no AI tools currently exist for the automated detection of fungal cellular morphology in microscopic images captured by smartphones and tablets. In this study, we developed deep learning models to segment fungal morphologies in microscopic images of vaginal discharge acquired with smartphones and tablets. Methods: presence/absence), YOLOv5 for detection, and YOLOv11 for segmentation. Models were trained using 1,259 microscopy images of Gram-stained vaginal discharge acquired with smartphones or tablets, along with 67 images obtained from conventional microscopes. These images were divided into training, validation, and test sets. Annotated microscopic images for fungal elements were used to train YOLO models in a two-stage approach: Stage 1 utilized 687 annotated images of yeast infections to learn general fungal morphology, comprising 266 bounding box-annotated images sourced from Roboflow and 421 segmentation-labeled images manually annotated from the open-access dataset. Stage 2 fine-tuned the models on the annotated mobile device-acquired dataset. Metrics included F1-score, area under the curve (AUC), precision, recall, and mean average precision at 50% intersection over union (mAP50). Experts assessed segmentation outputs for diagnostic utility, providing explainability to the AI results. Results: ResNet18 achieved F1-score=0.986, AUC = 0.99. YOLOv5 performed best at IoU=0.50 (precision=0.812, recall=0.622, mAP50 = 0.730); YOLOv11 at IoU=0.25 (precision=0.766, recall=0.700, mAP50 = 0.727). Expert ratings averaged 4.25/5. Only 3.68% of images were rated as inappropriate due to false negative or false positive segmentations. Conclusion: morphologies, including yeasts, budding yeasts, and filamentous forms from clinical specimens. The high accuracy and positive expert feedback demonstrate the feasibility of integrating AI-assisted mobile microscopy into routine workflows, thereby advancing digital analysis of microbial infections using conventional light microscopy. With further clinical validation and expansion to include other infections, this approach holds great potential to establish robust real-world utility.