%0 Journal Article %T Two-stage deep neural network for diagnosing fungal keratitis via in vivo confocal microscopy images. %A Li CP %A Dai W %A Xiao YP %A Qi M %A Zhang LX %A Gao L %A Zhang FL %A Lai YK %A Liu C %A Lu J %A Chen F %A Chen D %A Shi S %A Li S %A Zeng Q %A Chen Y %J Sci Rep %V 14 %N 1 %D 2024 08 8 %M 39117709 %F 4.996 %R 10.1038/s41598-024-68768-y %X Timely and effective diagnosis of fungal keratitis (FK) is necessary for suitable treatment and avoiding irreversible vision loss for patients. In vivo confocal microscopy (IVCM) has been widely adopted to guide the FK diagnosis. We present a deep learning framework for diagnosing fungal keratitis using IVCM images to assist ophthalmologists. Inspired by the real diagnostic process, our method employs a two-stage deep architecture for diagnostic predictions based on both image-level and sequence-level information. To the best of our knowledge, we collected the largest dataset with 96,632 IVCM images in total with expert labeling to train and evaluate our method. The specificity and sensitivity of our method in diagnosing FK on the unseen test set achieved 96.65% and 97.57%, comparable or better than experienced ophthalmologists. The network can provide image-level, sequence-level and patient-level diagnostic suggestions to physicians. The results show great promise for assisting ophthalmologists in FK diagnosis.