A Mixture-of-Experts Network for Infectious Keratitis Classification Using Multimodal Slit-Lamp Images: A Multicenter Study.
Аннотация
PURPOSE: Infectious keratitis (IK) remains one of the leading causes of corneal blindness worldwide, and subtype distinguishing continues to pose significant clinical challenges. Existing deep learning (DL) approaches typically rely on a single imaging modality, which overlooks the distinct diagnostic cues present in other modalities.
METHODS
To address this limitation, we propose KeraFusionNet, a novel DL framework that simultaneously processes three imaging modalities: diffuse white light, slit beam, and cobalt blue light with fluorescein staining. The model integrates three modality-specific expert subnetworks and uses a dynamic gating network to adaptively fuse their feature representations for final classification. We validated the method using a multicenter dataset comprising 3236 images from 820 patients at Zhejiang Eye Hospital (ZEH) and 862 images from 261 patients at Aier Guangming Eye Hospital (AGEH).
RESULTS
On the ZEH dataset, the model achieved an overall classification accuracy of 87.40%, with areas under the curve (AUCs) of 0.9899, 0.9177, 0.9653, 0.9803, and 0.9635 for a healthy cornea, herpes simplex keratitis (HSK), bacterial keratitis (BK), fungal keratitis (FK), and other cornea abnormalities, respectively. On the independent AGEH dataset, the accuracy reached 83.49%.
CONCLUSIONS
These results demonstrate the effectiveness and generalizability of our multimodal fusion framework, offering a promising tool for automated IK diagnosis and subtype differentiation.
TRANSLATIONAL RELEVANCE: By integrating complementary diagnostic information from routine slit-lamp imaging (SLI) modalities, KeraFusionNet enables accurate, automated differentiation of IK subtypes, supporting more precise clinical decision making in real-world ophthalmic practice.
Другие публикации по теме
Перевод полного текста: Перевод в очереди
Полный текст источника
https://creativecommons.org/licenses/by-nc-nd/4.0/ This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Текст сохранён. Часть иллюстраций пока доступна только в первоисточнике; загрузка будет проверена повторно.
Introduction
Corneal diseases form a significant global health challenge, contributing prominently to vision impairment and blindness. 1 Approximately 11.7 million people worldwide suffer from moderate to severe vision loss due to corneal opacities. 2 Among these, infectious keratitis (IK) has emerged as the leading cause, with its incidence and proportion varying by geographic region. 3 Broadly speaking, IK can be caused by a range of microorganisms, including bacteria, fungi, parasites, and viruses such as herpes simplex virus. 4 The treatment burden imposed by IK is substantial, placing a significant economic strain on healthcare systems. 5 Successful IK treatments often depend on timely and accurate diagnoses, followed by appropriate interventions. Misdiagnoses and improper medication can lead to irreversible corneal damage and eventually the need for corneal transplantation.
At present, the methods for diagnosing IK largely rely on the visual identification of corneal lesions via slit-lamp microscopy. 4 However, the slit lamp-based method for diagnosing IK subtypes has low accuracy across general ophthalmologists, and even specialists can achieve only 66.0% to 75.9% accuracy. 6 , 7 Additionally, corneal scraping and biopsy cultures yield false-negative results in 40% to 60% of IK cases and are not immediately available, complicating antimicrobial treatment decisions. 8 , 9 Unfortunately, a delayed or incorrect empirical treatment can worsen the condition, increasing the risk of permanent vision loss and even corneal perforation. 10 In real-world settings, especially in tertiary referral hospitals, identifying the causative pathogen remains challenging, highlighting the need for assistive diagnostic tools.
Artificial intelligence (AI) has gained attention across various medical specialties, 11 including ophthalmology, due to its potential for automating clinical diagnoses through deep learning (DL). 12 Previously, clinicians explored AI as a potential solution for assisting with the diagnosis of various types of corneal disease; this is mainly accomplished through data acquired from slit-lamp and smartphone photographs. 13 DL-based methods have exhibited a strong ability to discriminate between keratitis and nonkeratitis, with accuracies of up to 98.0%. 14 However, despite these promising results, the diagnostic accuracy of DL in IK subclassification tasks remains limited, ranging from 44.19% to 88.0%. 15 , 16 Notably, even on large datasets comprising 10,592 images, DeepIK achieved an unweighted Cohen kappa score of 0.773. 17 To date, most existing studies have been limited to single-modal imaging (mainly using diffuse white light images), which fundamentally cannot account for the diagnostic complementarity and cross-modal variations among different imaging modalities. This critical gap in conventional methodologies thereby creates substantial potential for enhancing diagnostic precision via multimodal image fusion.
For this purpose, we developed a multimodal DL framework based on a Mixture-of-Experts (MoE) architecture to classify five major types of corneal conditions, including bacterial keratitis (BK), fungal keratitis (FK), herpes simplex keratitis (HSK), other corneal abnormalities (others including corneal dystrophies, filamentary keratitis, and pterygium), and healthy corneas (healthy). The goal of this study is to support ophthalmologists, particularly less experienced practitioners, in making accurate and timely diagnoses, thereby guiding appropriate treatment decisions and improving clinical outcomes.
The main contributions of this study are as follows: (1) We constructed a multicenter dataset of slit-lamp images, incorporating three complementary imaging modalities: diffuse white light, slit beam, and cobalt blue fluorescence. All images were collected from real-world clinical settings and annotated by corneal specialists, providing a high-quality benchmark for multimodal learning in IK. (2) We proposed KeraFusionNet, a modality-aware fusion framework that leverages independent expert subnetworks and a learnable gating mechanism to dynamically integrate diagnostic features across modalities. This architecture enhances classification performance by preserving modality-specific cues while enabling flexible feature fusion. (3) We conducted extensive experiments, including comparisons with strong single-modality models across the three slit-lamp modalities and systematic ablation studies, to validate the effectiveness of KeraFusionNet and the contribution of each component.
Methods
Image Datasets
This was a retrospective study, and the research procedure was approved by the Medical Ethics Committee of the Eye Hospital of Wenzhou Medical University, Hangzhou (H2023-049-K-45), and the Chinese Clinical Trial Registry (No. ChiCTR2400086787). Additionally, an external dataset derived from the outpatient clinics and inpatient department of the Aier Guangming Eye Hospital (AGEH) was utilized to test the generalization of KeraFusionNet. The study protocol fully adhered to the Declaration of Helsinki and the Association for Research in Vision and Ophthalmology (ARVO) statement on human subjects. As this was a retrospective study, the institutional ethics committee granted a waiver of written informed consent for all participating patients. The flowchart is shown in Figure 1 .
Иллюстрация — в первоисточнике ↗
Cases with corneal diseases consecutively evaluated at our hospital between 2018 and 2023 were retrospectively recruited. The reference standard was based on the final documented clinical diagnosis in the medical records, which had been established during routine care according to disease characteristics, clinical history, treatment course, and relevant laboratory findings where applicable. The enrolled patients met one of the following criteria: (1) slit-lamp images obtained with corneal infections in the active stage; (2) BK, FK, and Acanthamoeba keratitis (AK) defined as compatible clinical manifestations with at least one positive laboratory test result (smear or microbial cultures). However, the AK category was excluded from the present analysis because only two AK cases were available, which was considered insufficient for robust model training and evaluation; (3) patients suspected of having HSK based on their medical histories, clinical manifestations, exclusion of BK, FK, and AK, and effective responses after empirical antiviral therapy; and (4) non-infectious corneal diseases, including corneal dystrophies, filamentary keratitis, and pterygium, were grouped as “others” based on their characteristic clinical features. During dataset construction, two ophthalmologists jointly reviewed the medical records and corresponding images in face-to-face sessions to verify eligibility and label consistency according to the predefined diagnostic criteria. This procedure served as a quality-control measure to minimize potential errors that might arise from single-reviewer data collection during retrospective chart review. Cases with uncertain diagnoses, diagnostic ambiguity, mixed infections, or incomplete diagnostic information were excluded. Additional exclusion criteria were a history of ocular trauma or eye surgery and absence of slit-lamp images. Representative image series for each category is shown in Figure 2 .
Иллюстрация — в первоисточнике ↗
Image Preprocessing
The images were captured by digital slit-lamp cameras (Kanghua DED-3H, Canton Shangbang LS-7, Shangbang SL-6) with three types of illumination modalities, including slit-beam imaging (SBI), diffuse white light, and diffuse cobalt blue light with fluorescein. Quality control was performed across all three imaging modalities, ensuring image standardization even when images were acquired from different camera types. The detailed methodology for quality control has been comprehensively described in our previously published study focused on this aspect. 18 SBI uses a very narrow beam of light and can reveal fine details of the corneal surface and internal structures, which can help doctors observe the transparency, shape, thickness, depth, and other characteristics of the cornea. Diffuse white light imaging uses a white light source that illuminates the eye through a scattering pattern, generating an image with uniform light that provides a comprehensive view of the corneal surface and other ocular structures, which helps doctors assess the transparency of the cornea and whether there are any irregularities or abnormalities present on its surface. This modality focuses on small surface damage or irregularities on the cornea, such as scratches, ulcers, or inflammation. Fluorescein staining-based imaging uses cobalt blue light to identify areas of the cornea that are damaged or defective with green color, allowing ophthalmologists to clearly identify corneal injuries or abnormalities.
Owing to the inherent differences between these categories, their images can be considered from different modalities. Directly combining them in a single network for processing may lead to interference between these modalities, as the feature disparities across various modalities make it challenging for the model to effectively capture the relevant features of each modality, thereby limiting the accuracy of the developed model. Therefore, this study proposes KeraFusionNet, an MoE network designed to integrate imaging data derived from different modalities for classification tasks, including SBI, diffuse light imaging (DLI), and fluorescein staining imaging (FSI). The network uses three independent expert models, each of which is trained to process images acquired from a specific modality (see Fig. 2 ).
Design of KeraFusionNet
In practical medical diagnosis, doctors typically rely on multiple imaging modalities to make comprehensive diagnoses. The combination of these different modalities provides more complete diagnostic information, as each modality reveals unique disease characteristics. Therefore, the proposed KeraFusionNet model accepts inputs from all three modalities and leverages their combined information for enhanced keratitis diagnosis.
KeraFusionNet is a two-stage multimodal framework composed of three modality-specific expert networks and one gating-based fusion module ( Fig. 3 ). The goal is to exploit the complementary information from diffuse white-light, slit-beam, and cobalt-blue fluorescein images while allowing the model to adaptively emphasize the most informative modality for each case.
Иллюстрация — в первоисточнике ↗
Modality-Specific Expert Networks
For each illumination modality m ∈ { A , B , C }, we construct an independent expert network with an identical backbone architecture (ResNet-50 by default, unless otherwise specified). Given an input slit-lamp image x m , the expert network produces (i) a global feature embedding f m ∈ R d via global average pooling, and (ii) a modality-wise class probability vector p m ∈ R K obtained by applying a softmax layer to the modality-specific logits, where K is the number of diagnostic categories.
The single-modality experts are first pretrained using a standard cross-entropy loss on the ground-truth disease labels. These pretrained weights are then used to initialize KeraFusionNet, after which all modules are fine-tuned jointly in an end-to-end manner.
Interaction and Uncertainty Aware Gating
To integrate the three modality embeddings into a unified representation, we introduce an enhanced gating module that is driven by both high-order cross-modal interactions and modality-wise predictive uncertainty.
Let f A , f B , f C ∈ R d denote the global features extracted from the diffuse, slit-beam, and cobalt-blue modalities, respectively. To better model complementarity among modalities, the gating module takes as input not only the raw modality embeddings but also pairwise interaction features and uncertainty-related cues. Specifically, the gating input is defined as: g = Concat ( f A , f B , f C , f A B , f A C , f B C , u A , u B , u C ) where f AB , f AC , and f BC denote the pairwise interaction features between modalities, and u A , u B , and u C denote modality-wise uncertainty scores derived from the corresponding expert predictions.
The gating network G (·), implemented as a two-layer multilayer perceptron with a nonlinear activation, produces a sample-specific weight vector as: ω = [ ω A , ω B , ω C ] T = S o f t m a x G g , where ω A , ω B , and ω C denote the relative importance of the three modalities. The fused feature is computed as: f f u s i o n = ω A f A + ω B f B + ω C f C , and is then fed into a fully connected classifier to generate the final multimodal prediction y ^ .
End-to-End Training of the Gating Network
It is important to note that the gating network does not require any additional ground-truth labels for the modality weights. Instead, KeraFusionNet is trained end-to-end using only the disease labels as supervision, and the modality weights are automatically learned and adjusted through back-propagation: when a particular modality contributes more to correct predictions and exhibits more reliable behavior, the gating network is encouraged to assign it a higher weight. Given the ground-truth class y and the multimodal prediction y ^ derived from f fusion , we optimize the following cross-entropy loss: L = CE ( y , y ^ ) .
Gradients are back-propagated through the final classifier, the fusion representation, the gating network, and all modality-specific experts. In this way, the gating module learns to assign higher weights to modalities that are both feature-wise compatible (through high-order interactions) and prediction-wise reliable (through low uncertainty), leading to an adaptive and clinically intuitive fusion of slit-lamp modalities.
Comparison With Ophthalmologists
This study recruited ophthalmologists of various professional levels from our hospital, including resident doctors, fellows, and attending ophthalmologists, to evaluate their performance in image-based diagnostic analysis and compare it with the developed DL method. A total of 60 images from 20 randomly selected patients in the test set were used. These images were presented to the ophthalmologists in a stepwise manner, with progressively increasing diagnostic information, and they were asked to make a diagnosis at each step. Five ophthalmologists from each professional level participated in the study. All participants independently completed the diagnostic tasks without any time constraints.
Statistical Analysis
The performance of the proposed model was further evaluated after its construction. Specifically, receiver operating characteristic (ROC) curves, the corresponding areas under the curves (AUCs), and the confusion matrix were computed to quantify its classification capability.
Three experienced cornea specialists were invited to provide clinical diagnoses for each image contained in the external validation set, and they competed with the prediction of the model. The confusion matrix was calculated to measure the differences among the outputs. For a more intuitive evaluation, gradient-weighted class activation mapping (Grad-CAM) visualization was performed.
Implement Details
The code for training and assessing the models was built with Python version 3.8.18 and the PyTorch version 1.8.2 framework. The utilized GPU was a Tesla V100 with a memory capacity of 32 GB. During training, the batch size was set to 16, and the loss function was configured as Focal Loss 19 to address the class imbalance in the dataset. In each epoch of the training process, the model achieving the maximum accuracy on the validation set was saved.
Due to the absence of certain modalities in the images of some patients, during testing, the corresponding networks for the missing modalities had their weights set to zero via the gating network.
Results
Dataset Characteristics
The ZEH dataset, which serves as the internal dataset, consists of 3236 ocular images collected from 820 patients (1384 eyes). Among these, 1925 images were from healthy cases, 457 were HSK images, 136 were BK images, 118 were FK images, and 600 were images of other corneal abnormalities. These images were used to develop the DL system ( Table 1 ). The dataset was divided into training, validation, and test sets at a 7:1:2 ratio using an eye-level data splitting strategy. Meanwhile, assigning both eyes from the same case to the same dataset was considered as a secondary criterion whenever possible, but it was not set as a mandatory constraint. In addition, an independent external dataset was collected from AGEH, comprising 862 images from 261 patients (364 eyes), including 222 healthy images, 195 HSK, 128 BK, 60 FK, and 257 others. This dataset was used for external validation to assess the generalizability of the model across institutions with different imaging devices. Each image was resized to 224 × 224 pixels before being input into the network to reduce computational complexity and ensure consistent input dimensions for the model.
Table 1.
Dataset Characteristics
AGEH, Aier Guangming Eye Hospital; ZEH, Zhejiang Eye Hospital. The internal dataset was divided into training, validation, and test sets in a 7:1:2 ratio.
| Number of Images | ||||||||||||
| Center | Camera Model | Participants | Age, Y | Gender, Male | Number of Eyes | Eyes, Right | Healthy | HSK | BK | FK | Others | Total |
| ZEH | KanghuaDED‐3H | 820 | 51.51 (18.34) | 54.20% | 1384 | 47.44% | 1925 | 457 | 136 | 118 | 600 | 3236 |
| AGEH | Shangbang LS‐7/SL-6 | 261 | 51.72 (16.49) | 57.5% | 364 | 47.6% | 222 | 195 | 128 | 60 | 257 | 862 |
Performance Comparison on the Internal Dataset
Four DL algorithms, namely ResNet-101, 20 DenseNet-121, 21 EfficientNet, 22 and our proposed KeraFusionNet, were used to train models for diagnosing BK, FK, HSK, other corneal abnormalities, and healthy corneas. The performance of these algorithms on the internal test dataset demonstrated that KeraFusionNet outperformed the others ( Fig. 4 ), achieving the highest accuracy of 87.40% (95% confidence interval [CI] = 84.79%–89.87%; Table 2 ). This was followed by EfficientNet (80.34%, 95% CI = 77.27%–83.26%), DenseNet-121 (78.19%, 95% CI = 75.12%–81.11%), and ResNet-101 (75.42%, 95% CI = 72.20%–78.65%).
Иллюстрация — в первоисточнике ↗
Table 2.
Performance Achieved by DL Algorithms on the Test Dataset
Bold values indicate the best performance for each metric among all compared models.
| Metric | ResNet-101 | DenseNet-121 | EfficientNet | KeraFusionNet |
| Accuracy (%) | 75.42 (72.20, 78.65) | 78.19 (75.12, 81.11) | 80.34 (77.27, 83.26) | 87.40 (84.79, 89.87) |
| Precision (%) | 53.27 (44.52, 62.74) | 55.64 (48.48, 62.96) | 62.05 (55.11, 69.29) | 75.76 (70.59, 81.06) |
| Recall (%) | 46.36 (41.56, 51.26) | 53.04 (47.74, 58.81) | 59.17 (53.05, 64.85) | 78.20 (72.67, 83.42) |
| Specificity (%) | 92.76 (91.77, 93.69) | 94.60 (93.80, 95.35) | 94.90 (94.08, 95.68) | 96.57 (95.85, 97.27) |
| F1-Score (%) | 47.72 (41.79, 53.17) | 53.64 (47.55, 59.47) | 60.29 (53.83, 66.21) | 76.60 (71.21, 81.35) |
In addition to accuracy, KeraFusionNet achieved superior performance across other metrics, including precision (75.76%, 95% CI = 70.59%–81.06%), recall (78.20%, 95% CI = 72.67%–83.42%), specificity (96.57%, 95% CI = 95.85%–97.27%), and F1-score (76.60%, 95% CI = 71.21%–81.35%). These results suggest that KeraFusionNet demonstrates superior performance in diagnosing the five corneal conditions compared with the other algorithms.
Experiments
The Grad-CAM technique was used to provide a visual interpretation of the model's decision making process. This technique was applied to the last convolutional layer to generate localization maps highlighting the image regions that contributed most to the classification results ( Fig. 5 ). As illustrated in Figure 5 , a brighter heatmap indicates the regions to which the network assigned greater attention during classification, suggesting that these regions contained more discriminative features. In many abnormal cases, the activation maps broadly overlapped with clinically relevant corneal regions. It should also be noted that normal images can likewise exhibit heatmaps, reflecting the regions referenced by the model when making classification decisions. In Figure 5 , the heatmap of the healthy group may have been influenced by specular reflection spots. However, the visualizations were less visually intuitive for some slit-beam images and for the healthy group ( Supplementary Fig. S1 ). This may be because slit-beam illumination introduces a strong high-contrast optical section, which is itself an important carrier of corneal structural information, whereas healthy corneas do not contain focal pathological lesions.
Иллюстрация — в первоисточнике ↗
Performance Comparison on the External Dataset
Additionally, the external dataset, collected from the outpatient clinics and inpatient department of AGEH, was used to evaluate the generalizability of KeraFusionNet and comprised 862 images from 261 individuals.
The results for the AGEH dataset are presented in Table 3 , with the corresponding confusion matrix and ROC curves shown in Figure 6 . The performance of KeraFusionNet on these datasets demonstrated its strong generalizability, achieving accuracies of 83.49%. These findings highlight the model's effectiveness across diverse datasets and its superiority over commonly used DL models.
Table 3.
Performance Achieved by DL Algorithms on the AGEH Dataset
Bold values indicate the best performance for each metric among all compared models.
| Metric | ResNet-101 | DenseNet-121 | EfficientNet | KeraFusionNet |
| Accuracy (%) | 71.48 (68.36, 74.48) | 75.06 (72.06, 77.94) | 79.79 (77.25, 82.56) | 83.49 (81.06, 86.03) |
| Precision (%) | 78.38 (75.31, 81.36) | 80.39 (76.84, 83.47) | 82.56 (79.84, 85.14) | 85.11 (82.54, 87.65) |
| Recall (%) | 65.90 (62.35, 69.46) | 68.31 (64.59, 71.70) | 74.22 (70.88, 77.71) | 81.05 (77.85, 84.10) |
| Specificity (%) | 92.24 (91.45, 93.02) | 93.24 (92.47, 94.01) | 94.55 (93.84, 95.27) | 95.57 (94.94, 96.25) |
| F1-Score (%) | 69.34 (65.63, 72.83) | 71.16 (67.05, 74.66) | 77.04 (73.68, 80.21) | 82.66 (79.73, 85.26) |
Иллюстрация — в первоисточнике ↗
Ablation Study
To validate the effectiveness of the proposed fusion framework, we conducted two sets of ablation experiments: one examining the impact of modality configurations, and another assessing the influence of expert network backbones.
Impact of Modality Combination
To validate the effectiveness of multimodal inputs, we conducted the following ablation study to assess the model's performance under different input configurations ( Table 4 ). We used the overall accuracy of the model as the evaluation metric and also calculated the accuracy of the model for each image category. • ResNet-50: As the baseline model, ResNet-50 uses all modality images merged as input for classification, achieving an accuracy of 74.96%. This model does not consider the complementarity between modalities and directly classifies images of all modalities. • KeraFusionNet-Single: Only one modality image is input at a time, and it is fed into the corresponding expert network, with the gating network setting the weights of the missing modalities to 0. The accuracy of this configuration is 84.33%, indicating that the gating network can effectively adjust the model to enhance performance on specific tasks. • KeraFusionNet-Dual: Two different modality images from the same patient are randomly input each time. The accuracy of this configuration is 85.71%. By combining information from two modalities, the model is able to capture more features, thereby improving overall performance. • KeraFusionNet-Full: Three different modality images from the same patient are input each time. This configuration utilizes the comprehensive features of all 3 modalities, achieving a final accuracy of 87.40%. The full integration of features from the three modalities enables the model to leverage information from different modalities, providing the best classification performance.
Table 4.
Ablation Study on KeraFusionNet Configurations
| Model | Accuracy (%) | Normal (%) | HSK (%) | BK (%) | FK (%) | Others (%) |
| ResNet-50 | 74.96 | 97.05 | 35.92 | 25.00 | 30.43 | 60.48 |
| KeraFusionNet-Single | 84.33 | 96.51 | 66.02 | 32.14 | 73.91 | 76.61 |
| KeraFusionNet-Dual | 85.71 | 98.12 | 60.19 | 50.00 | 82.61 | 78.23 |
| KeraFusionNet-Full | 87.40 | 97.59 | 65.05 | 64.29 | 82.61 | 81.45 |
Through this ablation study, we can observe that as the number of modalities increases, the model's performance continuously improves, especially under the KeraFusionNet-Full configuration, where the best performance is ultimately achieved. This indicates that multimodal fusion plays a significant role in enhancing model accuracy, enabling the model to improve classification performance by integrating information from different modalities.
Effect of Expert Network Architecture
To further evaluate the influence of the expert network architecture on the overall performance of KeraFusionNet, we adopted three evaluation metrics: mean AUC, total parameter count, and inference throughput (measured in frames per second [FPS]). We evaluated three commonly used convolutional neural network backbones (ResNet-50, DenseNet-121, and EfficientNet-B5), all integrated into the proposed multimodal fusion framework under identical training and evaluation conditions. As shown in Table 5 , EfficientNet achieved the highest mean AUC (96.34%), surpassing both ResNet-50 (95.63%) and DenseNet-121 (95.16%).
Table 5.
Comparison of Expert Networks Under Full Fusion Configuration
| Backbone | Mean AUC (%) | Params (M) | FPS |
| DenseNet-121 | 95.16 | 23.94 | 19.73 |
| EfficientNet | 96.34 | 91.53 | 21.36 |
| ResNet-50 | 95.63 | 76.53 | 32.79 |
Despite its superior accuracy, EfficientNet introduced a significantly larger number of parameters (91.53M) when used as the expert network, compared with ResNet-50 (76.53M) and DenseNet-121 (23.94M). DenseNet-121, although more compact in terms of parameter count, suffered from lower throughput due to its densely connected structure, which leads to higher memory usage and slower inference when deployed as an expert network.
These observations reinforce that the primary goal of this study is not to pursue the optimal backbone architecture, but to validate the effectiveness and flexibility of the proposed multimodal fusion framework. ResNet-50 was therefore selected as the expert network in our experiments due to its relatively small model size and faster inference speed, which offer a favorable trade-off between performance and efficiency within the fusion setting.
Comparison Study With Ophthalmologists’ Diagnoses
The performance of ophthalmologists in terms of diagnosing clinical images is listed in Table 6 . Each professional title group included five participants. Single images refer to diffuse white light images only, dual images include a diffuse white light image and a slit-beam image, and full images include a diffuse white light image, a slit-beam image, and a cobalt blue light image with fluorescein staining. The average diagnostic accuracy of all ophthalmologists based solely on diffuse illumination images was 60.1% (range = 40.0%–85.0%), which was significantly lower than the performance of AI-based DL models. As more types of images were provided, the accuracy increased to 67.2%, with a particularly notable improvement in the diagnosis of HSK. For example, attending ophthalmologists achieved a diagnostic accuracy of 75.0% based on the full set of modalities, including accuracies of 57.5%, 67.5%, and 65.0% for BK, FK, and HSK, respectively.
Table 6.
Average Classification Accuracies Achieved According to the Professional Titles of the Ophthalmologists ( n = 25)
The figures in bold represent the overall results obtained from all participating ophthalmologists ( n = 25) within each image-setting group.
| Group | Mean % | Range % | Normal % | HSK % | BK % | FK % | Others % |
| Single images | 60.1 | 40.0–85.0 | 85.4 | 42.2 | 55.6 | 43.7 | 73.7 |
| Resident ( n = 7) | 55.7 | 40.0–65.0 | 89.3 | 32.1 | 50.0 | 39.3 | 67.9 |
| Fellow ( n = 8) | 55.6 | 40.0–75.0 | 71.9 | 46.9 | 59.4 | 34.4 | 65.6 |
| Attending ( n = 10) | 69.0 | 40.0–85.0 | 95.0 | 47.5 | 57.5 | 57.5 | 87.5 |
| Dual images | 60.3 | 35.0–85.0 | 87.1 | 42.0 | 55.2 | 46.3 | 71.1 |
| Resident ( n = 7) | 52.1 | 40.0–60.0 | 85.7 | 32.1 | 50.0 | 35.7 | 57.1 |
| Fellow ( n = 8) | 56.9 | 35.0–75.0 | 78.1 | 43.8 | 53.1 | 40.6 | 68.8 |
| Attending ( n = 10) | 72.0 | 45.0–85.0 | 97.5 | 50.0 | 62.5 | 62.5 | 87.5 |
| Full images | 67.2 | 45.0–85.0 | 90.6 | 61.5 | 53.4 | 51.4 | 79.0 |
| Resident ( n = 7) | 62.1 | 45.0–75.0 | 89.3 | 57.1 | 46.4 | 42.9 | 75.0 |
| Fellow ( n = 8) | 64.4 | 45.0–80.0 | 87.5 | 62.5 | 56.3 | 43.8 | 71.9 |
| Attending ( n = 10) | 75.0 | 50.0–85.0 | 95.0 | 65.0 | 57.5 | 67.5 | 90.0 |
Discussion
The present study developed KeraFusionNet, a DL model designed for the automated diagnosis of cornea disease using multimodal slit-lamp images. The main findings of this study are as follows. First, KeraFusionNet achieved an overall diagnostic accuracy of 87.40% across multiple keratitis categories and other conditions. Second, the integration of multiple slit-lamp imaging modalities significantly improved diagnostic performance compared with single-image input. Third, the proposed model demonstrated strong capability in distinguishing clinically challenging keratitis subtypes, highlighting the potential of multimodal AI systems to assist clinicians in complex corneal disease diagnosis.
A notable feature of our study is that the proposed model was designed to perform multi-disease diagnosis of IK within a clinically realistic framework. Unlike previous two-step classification strategies, which first distinguish keratitis from non-keratitis and then perform subtype classification, 14 , 23 such sequential approaches are inherently constrained by the cumulative error propagation across multiple models. In contrast, our model simultaneously classifies four types of IK together with healthy cornea and other corneal abnormalities, thereby expanding its applicability to real-world clinical scenarios where clinicians must differentiate IK from a broad range of corneal conditions. Importantly, the “others” category included diseases that frequently mimic IK in slit-lamp examinations, such as corneal dystrophies, filamentary keratitis, and pterygium, enabling the model to better reflect common diagnostic confounders encountered in clinical practice.
Another key contribution of this study lies in the multimodal fusion strategy. Slit-lamp examination typically involves multiple illumination techniques, including slit-beam illumination, diffuse white light, and cobalt blue light with fluorescein staining, each providing complementary diagnostic information. In our ablation analysis, the use of a single image modality achieved an accuracy of 84.33%, whereas the multimodal fusion approach increased the accuracy to 87.40%. This improvement suggests that each imaging modality contributes distinct feature information that enhances diagnostic performance. Notably, the diagnostic accuracy for BK increased markedly from 32.14% to 64.29%, highlighting the limitations of relying on a single imaging modality when interpreting complex corneal lesions. These findings indicate that multimodal imaging can capture complementary structural and pathological features, enabling the model to better recognize subtle differences among keratitis subtypes.
Previous studies have demonstrated the potential of DL in diagnosing keratitis; however, most were based on single-modal slit-lamp images, typically diffuse white-light photographs. 24 For example, Xu et al. developed a sequential-level deep model using 2284 images derived from 867 patients to classify four types of keratitis (BK, FK, HSK, and others), achieving an accuracy of 78.73%. 15 Zhang et al. proposed KeratitisNet based on 4830 images obtained from 4083 patients, reporting an average accuracy of 77.08% in terms of distinguishing BK, FK, AK, and HSK. 17 In addition, Li et al. analyzed 10,592 images and reported an unweighted Cohen's kappa coefficient of 0.773. 23 Susila et al. introduced KeraNet, a hybrid-attention deep convolutional neural network (CNN) that integrates spatial and channel attention, multi-scale feature extraction, and deformable convolutions to enhance early detection of keratitis. 25 Soleimani et al. designed a lightweight CNN trained on smartphone-captured images to classify BK, FK, and AK, achieving an overall accuracy of 83.8%. 26 Koyama et al. applied InceptionResNetV2 to 4306 slit-lamp images acquired from 362 cases, and achieved an overall accuracy of 87%, 16 although their dataset included relatively few individual cases, which may limit generalizability. Compared with these studies, our work differs in that it integrates multiple slit-lamp imaging modalities within a unified framework, allowing the model to capture richer diagnostic information. The improved diagnostic performance observed in our study further supports the value of multimodal data for enhancing AI-based keratitis diagnosis.
Another clinically important aspect is the differentiation between BK and FK, which remains a major diagnostic challenge. 27 , 28 Early and accurate distinction between these infections is crucial because FK requires prompt antifungal therapy and carries a higher risk of progression to severe complications such as endophthalmitis. 9 Previous studies have reported moderate performance in this task. For instance, Hung et al. developed a DenseNet161-based DL model using 1330 images derived from 580 patients, achieving 65.8% accuracy for diagnosing FK, indicating that 34.2% of FK cases were misclassified as BK. 29 Similarly, Kuo et al. utilized DenseNet to develop a DL model that differentiated patients with FK ( n = 114) from non-FK patients ( n = 174) with an accuracy of 69.4%. 30 Ghosh et al. analyzed 2167 anterior segment images acquired from 194 patients (128 patients with BK and 66 patients with FK) via the Visual Geometry Group 19 (VGG19) model, achieving an accuracy of 78%. 31 More recently, Soleimani et al. developed a DL-based framework using 9329 slit-lamp photographs from 977 patients, achieving an accuracy of 84.0% in differentiating BK from FK, and further reaching 77.5% accuracy in discriminating filamentous fungi from yeast subtypes, highlighting the potential of AI not only for pathogen-level classification but also for clinically relevant fungal subtype discrimination. 32 In our study, KeraFusionNet achieved an AUC of 0.9763 and an accuracy of 82.61% using multimodal images, with 64.29% for BK and 82.61% for FK. These results suggest that future research incorporating multimodal approaches could further increase the accuracy and robustness of AI systems for distinguishing these conditions. Furthermore, compared with clinical ophthalmologists, KeraFusionNet demonstrated comparable performance with attending in terms of identifying keratitis subtypes. Despite the inherent challenges associated with diagnosing lesions solely from images, these findings underscore the immense potential of AI for providing improved diagnostic accuracy, particularly for corneal specialists.
The present study also has several strengths. First, the proposed model was designed to reflect real-world clinical diagnostic workflows, incorporating multiple corneal disease categories rather than focusing solely on binary classification. Second, the multimodal imaging strategy allows the model to exploit complementary information obtained from different slit-lamp examination techniques. Third, the model architecture is based on a lightweight CNN, which has practical advantages, including lower computational requirements and easier deployment in clinical environments, particularly in resource-limited settings.
Nevertheless, several limitations should be acknowledged. First, owing to the varying rates of BK, FK, AK, and HSK, 3 we were unable to obtain a larger and more homogeneous dataset. Given the lower incidence of AK and to avoid imbalanced datasets that could have affected the validity of the model, two patients with AK were excluded from the analysis, which likely misled the diagnosis of the model. Additionally, patients with histories of corneal surgeries (e.g. corneal transplantation, limbal stem cell transplantation, or intracorneal ring segment insertion) were excluded, limiting the broader applicability of the model. This underscores the need for a more extensive and diverse public dataset to provide enhanced model generalizability. Second, our study was conducted at the eye level, as keratitis is typically diagnosed and managed on an eye-specific basis. However, we acknowledge that subject-level splitting would be a more conservative strategy to reduce potential inter-eye effects. During the 7:1:2 data splitting process, we attempted to assign both eyes from the same patient to the same dataset whenever possible, but this was not set as a mandatory constraint. In our dataset, only 15 patients had 2 eyes assigned to different datasets (1.83%), all between the validation and test sets and none involving the training set, suggesting that the potential impact of inter-eye effects may be limited. Nevertheless, subject-level splitting should be adopted in future studies to further validate the robustness and generalizability of the proposed model. Third, the current DL-based methods for diagnosing IK often yield suboptimal accuracy on smaller datasets. 6 Even in cases with expanded sample sizes, some studies reported accuracies of only 77%. 23 Although contemporary methods often leverage more advanced architectures, such as Swin Transformer, 33 or multimodal large language models (LLMs)-to enhance feature representation and generalizability, particularly for subtle infections, we opted for a relatively simple CNN. This choice was driven by the limited size of our dataset, which increases the risk of overfitting when using high-capacity models like Transformers. Furthermore, CNNs offer practical advantages, including lightweight architecture, lower computational requirements, and ease of deployment in real-world clinical environments; especially on resource-limited platforms, such as embedded systems or mobile diagnostic devices. Despite its simplicity, our CNN-based model demonstrated strong performance with an accuracy of 87.40%. In future work, we plan to explore the integration of more advanced architectures, including Transformer-based models and multimodal LLMs, which may enable better utilization of complex clinical information such as longitudinal patient history, free-text symptom descriptions, and high-resolution imaging data. Such integration holds promise for further enhancing diagnostic accuracy and clinical utility. Forth, our study relied primarily on slit-lamp images collected in a clinical setting, without including images captured by smartphones. Expanding the analysis to include smartphone-captured images in future research could significantly enhance the model's generalizability, making it more suitable for telemedicine and remote healthcare applications.
Conclusions
We developed an AI algorithm that can identify different types of corneal disease. Notably, our findings suggest that providing multimodal images is a highly effective strategy for improving diagnostic accuracy. Compared with clinicians, this algorithm demonstrated superior accuracy, highlighting the potential of AI to assist in diagnosing IK through image analyses alone. Such advancements could greatly aid ophthalmologists, especially primary care providers, in improving the accuracy of empirical treatments. Furthermore, the development of KeraFusionNet is a significant step forward and may serve as the foundation for future innovations in the automated slit-lamp diagnosis field and the establishment of efficient telemedicine platforms for anterior segment diseases.
Supplementary Material
Supplement 1
Acknowledgments
The authors thank the participants involved in this study and the contributors from various centers who dedicated their efforts. We also thank the School of Artificial Intelligence at Beijing Normal University for their technical support.
Supported by the Zhejiang Provincial Health Sector Science and Technology Programme Project (WKJ-ZJ-26067), The Key Research and Development Program of Zhejiang Province (2024C04025), the National Natural Science Foundation of China (62276210), the Key Research and Development Project of Shaanxi Province (2025CY-YBXM-044), and the Provincial Advantageous Characteristic Discipline of Wenzhou Medical University (Clinical Medicine).
Author Contributions: Conceptualization: Fen-Fen Li, Gao-Xiang Li, Jia-Xu Hong, Min Hu, and Qi Dai. Methodology: Fen-Fen Li, Gao-Xiang Li, Jie-Wei Jiang, Jia-Xu Hong, Min Hu, and Qi Dai. Investigation: Fen-Fen Li, Gao-Xiang Li, Xin-Xin Yu, Xiao-Yu Chen, Jia-Xu Hong, Min Hu, and Qi Dai. Data curation: Fen-Fen Li, Xin-Xin Yu, Xiao-Yu Chen, Zu-Hui Zhang, Ya-Na Fu, Shuang-Qing Wu, and Yu-Feng Ye. Resources: Yu-Feng Ye, Jia-Xu Hong, Min Hu, and Qi Dai. Writing - original draft: Fen-Fen Li, Gao-Xiang Li, and Qi Dai. Writing - review & editing: Fen-Fen Li, Gao-Xiang Li, Xin-Xin Yu, Xiao-Yu Chen, Jie-Wei Jiang, Zu-Hui Zhang, Ya-Na Fu, Shuang-Qing Wu, Yu-Feng Ye, Jia-Xu Hong, Min Hu, and Qi Dai. Funding acquisition: Qi Dai.
Data Availability Statements: The datasets analyzed during the current study are available upon reasonable request from the corresponding author.
Patient Consent Statements: As this was a retrospective study, the institutional ethics committee granted a waiver of written informed consent for all participating patients.
Data Code Availability: The code used in this study is available upon reasonable request from the corresponding author.
Disclosure: F.-F. Li , None; G.-X. Li , None; X.-X. Yu , None; X.-Y. Chen , None; J.-W. Jiang , None; Z.-H. Zhang , None; Y.-N. Fu , None; S.-Q. Wu , None; K.-H. Xu , None; Y.-F. Ye , None; J.-X. Hong , None; M. Hu , None; Q. Dai , None
References
1. Flaxman SR , Bourne RR , Resnikoff S , et al . Global causes of blindness and distance vision impairment 1990–2020: a systematic review and meta-analysis . Lancet Glob Health . 2017 ; 5 ( 12 ): e1221 – e1234 . 29032195 10.1016/S2214-109X(17)30393-5
2. Wang EY , Kong X , Wolle M , et al . Global trends in blindness and vision impairment resulting from corneal opacity 1984–2020: a meta-analysis . Ophthalmology . 2023 ; 130 ( 8 ): 863 – 871 . 36963570 10.1016/j.ophtha.2023.03.012 PMC10355344
3. Ting DSJ , Ho CS , Deshmukh R , Said DG , Dua HS. Infectious keratitis: an update on epidemiology, causative microorganisms, risk factors, and antimicrobial resistance . Eye . 2021 ; 35 ( 4 ): 1084 – 1101 . 33414529 10.1038/s41433-020-01339-3 PMC8102486
4. Durand ML , Barshak MB , Chodosh J. Infectious keratitis in 2021 . JAMA . 2021 ; 326 ( 13 ): 1319 – 1320 . 34609465 10.1001/jama.2021.0424
5. Ballouz D , Maganti N , Tuohy M , Errickson J , Woodward MA. Medication burden for patients with bacterial keratitis . Cornea . 2019 ; 38 ( 8 ): 933 – 937 . 31276456 10.1097/ICO.0000000000001942 PMC6613796
6. Sarayar R , Lestari YD , Setio AA , Sitompul R. Accuracy of artificial intelligence model for infectious keratitis classification: a systematic review and meta-analysis . Front Public Health . 2023 ; 11 : 1239231 . 38074720 10.3389/fpubh.2023.1239231 PMC10704127
7. Redd TK , Prajna NV , Srinivasan M , et al . Expert performance in visual differentiation of bacterial and fungal keratitis . Ophthalmology . 2022 ; 129 ( 2 ): 227 – 230 . 34624299 10.1016/j.ophtha.2021.09.019 PMC8792176
8. McLeod SD , Kolahdouz-Isfahani A , Rostamian K , Flowers CW , Lee PP , McDonnell PJ. The role of smears, cultures, and anibiotic sensitivity testing in the management of suspected infectious keratitis . Ophthalmology . 1996 ; 103 ( 1 ): 23 – 28 . 8628555 10.1016/s0161-6420(96)30738-0
9. Lin A , Rhee MK , Akpek EK , et al . Bacterial keratitis preferred practice pattern® . Ophthalmology . 2019 ; 126 ( 1 ): P1 – P55 . 30366799 10.1016/j.ophtha.2018.10.018
10. Austin A , Lietman T , Rose-Nussbaumer J . Update on the management of infectious keratitis . Ophthalmology . 2017 ; 124 ( 11 ): 1678 – 1689 . 28942073 10.1016/j.ophtha.2017.05.012 PMC5710829
11. Wang J , Wang S , Zhang Y . Deep learning on medical image analysis . CAAI Trans Intell Technol . 2025 ; 10 ( 1 ): 1 – 35 .
12. Ting DSW , Pasquale LR , Peng L , et al . Artificial intelligence and deep learning in ophthalmology . Br J Ophthalmol . 2019 ; 103 ( 2 ): 167 – 175 . 30361278 10.1136/bjophthalmol-2018-313173 PMC6362807
13. Tey KY , Cheong EZK , Ang M. Potential applications of artificial intelligence in image analysis in cornea diseases: a review . Eye Vis (Lond) . 2024 ; 11 ( 1 ): 10 . 38448961 10.1186/s40662-024-00376-3 PMC10919022
14. Li Z , Jiang J , Chen K , et al . Preventing corneal blindness caused by keratitis using artificial intelligence . Nat Commun . 2021 ; 12 ( 1 ): 3738 . 34145294 10.1038/s41467-021-24116-6 PMC8213803
15. Xu Y , Kong M , Xie W , et al . Deep sequential feature learning in clinical image classification of infectious keratitis . Engineering . 2021 ; 7 ( 7 ): 1002 – 1010 .
16. Koyama A , Miyazaki D , Nakagawa Y , et al . Determination of probability of causative pathogen in infectious keratitis using deep learning algorithm of slit-lamp images . Sci Rep . 2021 ; 11 ( 1 ): 22642 . 34811468 10.1038/s41598-021-02138-w PMC8608802
17. Zhang Z , Wang H , Wang S , et al . Deep learning-based classification of infectious keratitis on slit-lamp images . Ther Adv Chronic Dis . 2022 ; 13 : 20406223221136071 . 36407021 10.1177/20406223221136071 PMC9666706
18. Li FF , Li GX , Yu XX , et al . Integrating prior knowledge with deep learning for optimized quality control in corneal images: a multicenter study . Comput Methods Programs Biomed . 2025;267 : 108814 . 40319841 10.1016/j.cmpb.2025.108814
19. Lin TY , Goyal P , Girshick R , He K , Dollár P. Focal loss for dense object detection. IEEE Xplore . 2017 : 2980 – 2988 . Available at: https://ieeexplore.ieee.org/document/8237586 . 10.1109/TPAMI.2018.2858826 30040631
20. He K , Zhang X , Ren S , Sun J. Deep residual learning for image recognition. IEEE Xplore . 2016 : 770 – 778 . Available at: https://openaccess.thecvf.com/content_cvpr_2016/papers/He_Deep_Residual_Learning_CVPR_2016_paper.pdf .
21. Huang G , Liu Z , Van Der Maaten L , Weinberger KQ. Densely connected convolutional networks. IEEE Xplore . 2017 : 4700 – 4708 . Available at: https://ieeexplore.ieee.org/document/8099726 .
22. Tan M , Le QV. EfficientNet: Rethinking model scaling for convolutional neural networks. arXiv Preprint . 2019 : 6105 – 6114 . Available at: https://arxiv.org/abs/1905.11946 .
23. Li Z , Xie H , Wang Z , et al . Deep learning for multi-type infectious keratitis diagnosis: a nationwide, cross-sectional, multicenter study . NPJ Digit Med . 2024 ; 7 ( 1 ): 181 . 38971902 10.1038/s41746-024-01174-w PMC11227533
24. Gu H , Guo Y , Gu L , et al . Deep learning for identifying corneal diseases from ocular surface slit-lamp photographs . Sci Rep . 2020 ; 10 ( 1 ): 17851 . 33082530 10.1038/s41598-020-75027-3 PMC7576153
25. Susila SJG , Kavitha D. A deep convolutional neural network-based keratitis detection and classification approach . Multimedia Tools and Applications . New York, NY: Springer Nature Link; 2025 ; 84 : 42735 – 42755 .
26. Soleimani M , Cheung AY , Rahdar A , et al . Diagnosis of microbial keratitis using smartphone-captured images; a deep-learning model . J Ophthalmic Inflamm Infect . 2025 ; 15 ( 1 ): 8 . 39946047 10.1186/s12348-025-00465-x PMC11825435
27. Dahlgren MA , Lingappan A , Wilhelmus KR . The clinical diagnosis of microbial keratitis . Am J Ophthalmol . 2007 ; 143 ( 6 ): 940 – 944 . 17408586 10.1016/j.ajo.2007.02.030 PMC1973090
28. Thomas P , Leck A , Myatt M. Characteristic clinical features as an aid to the diagnosis of suppurative keratitis caused by filamentous fungi . Br J Ophthalmol . 2005 ; 89 ( 12 ): 1554 – 1558 . 16299128 10.1136/bjo.2005.076315 PMC1772991
29. Hung N , Shih AKY , Lin C , et al . Using slit-lamp images for deep learning-based identification of bacterial and fungal keratitis: model development and validation with different convolutional neural networks . Diagnostics . 2021 ; 11 ( 7 ): 1246 . 34359329 10.3390/diagnostics11071246 PMC8307675
30. Kuo MT , Hsu BWY , Yin YK , et al . A deep learning approach in diagnosing fungal keratitis based on corneal photographs . Sci Rep . 2020 ; 10 ( 1 ): 14424 . 32879364 10.1038/s41598-020-71425-9 PMC7468230
31. Ghosh AK , Thammasudjarit R , Jongkhajornpong P , Attia J , Thakkinstian A. Deep learning for discrimination between fungal keratitis and bacterial keratitis: DeepKeratitis . Cornea . 2022 ; 41 ( 5 ): 616 – 622 . 34581296 10.1097/ICO.0000000000002830 PMC8969839
32. Soleimani M , Esmaili K , Rahdar A , et al . From the diagnosis of infectious keratitis to discriminating fungal subtypes; a deep learning-based study . Sci Rep . 2023 ; 13 ( 1 ): 22200 . 38097753 10.1038/s41598-023-49635-8 PMC10721811
33. Liu Z , Lin Y , Cao Y , et al . Swin transformer: Hierarchical vision transformer using shifted windows. arXiv Preprint . 10.48550/arXiv.2103.14030 .
Предметные рубрики MeSH
Подготовка и перевод публикации
Обработка статьи · этапы, ошибки и управление
Ошибки и ограничения
История · было → стало
Состояние обновляется каждые 5 секунд, пока блок открыт. Процент показывается только там, где известен объём работы. Пауза останавливает продолжение этапа; текущий запрос к источнику может завершиться.
Тип публикации указан по данным источника. Уровень доказательности автоматически не присваивается.