CSwinFK: a bidirectional cross-attention CNN-Swin Transformer fusion model for fungal keratitis classification in in vivo confocal microscopy images

Fungal keratitis is a corneal infection caused by filamentous fungi or yeasts. It can progress rapidly and, if not diagnosed and treated promptly, may lead to irreversible visual impairment or blindness. In this study, we developed CSwinFK, a classification model for distinguishing fungal keratitis from negative cases using in vivo confocal microscopy images. This model is based on a novel bidirectional cross-attention fusion of the CNN architecture and Swin Transformer. Through deep interactions between the two branches, the model aims to achieve high sensitivity to local structural details while effectively capturing long-range global dependencies in the image. Experiments were conducted on a curated set of 3,612 clinical IVCM images from the fungal keratitis and negative groups using a subject-level data split. The model achieved a test accuracy of 97.23%, with a sensitivity of 97.05% and a specificity of 97.42%. Comparative experiments with representative architectures and existing deep learning models showed that CSwinFK achieved favorable classification performance. Grad-CAM analysis further showed that the model focused on regions exhibiting patterns consistent with fungal hyphae in IVCM images.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-10-13
DOI
https://doi.org/10.1038/s41598-026-72933-w
Primary Topic
Ocular Infections and Treatments
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

CSwinFK: a bidirectional cross-attention CNN-Swin Transformer fusion model for fungal keratitis classification in in vivo confocal microscopy images

Xianxian Wei, Miaoting Hu, Dongqi Liu, Shirley W. I. Siu et al.
Scientific Reports
Ocular Infections and Treatments
article

CSwinFK: a bidirectional cross-attention CNN-Swin Transformer fusion model for fungal keratitis classification in in vivo confocal microscopy images

Xianxian Wei, Miaoting Hu, Dongqi Liu, Shirley W. I. Siu, Jianxiu Cai, Qianqian Lan, Qi Chen, Li Jiang, Lifei Chen, Liang Liang, Henry H. Y. Tong, Wenjing He, Kefeng Li, Hui Huang
article en

Abstract

Fungal keratitis is a corneal infection caused by filamentous fungi or yeasts. It can progress rapidly and, if not diagnosed and treated promptly, may lead to irreversible visual impairment or blindness. In this study, we developed CSwinFK, a classification model for distinguishing fungal keratitis from negative cases using in vivo confocal microscopy images. This model is based on a novel bidirectional cross-attention fusion of the CNN architecture and Swin Transformer. Through deep interactions between the two branches, the model aims to achieve high sensitivity to local structural details while effectively capturing long-range global dependencies in the image. Experiments were conducted on a curated set of 3,612 clinical IVCM images from the fungal keratitis and negative groups using a subject-level data split. The model achieved a test accuracy of 97.23%, with a sensitivity of 97.05% and a specificity of 97.42%. Comparative experiments with representative architectures and existing deep learning models showed that CSwinFK achieved favorable classification performance. Grad-CAM analysis further showed that the model focused on regions exhibiting patterns consistent with fungal hyphae in IVCM images.

Scientific Reports
Beibu Gulf University (CN), The People's Hospital of Guangxi Zhuang Autonomous Region (CN), Macao Polytechnic University (MO)
Natural Science Foundation of Guangxi Zhuang Autonomous Region, National Natural Science Foundation of China
Openalex Percentile: Top 10%
Ocular Infections and Treatments
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.