An Open-Source Deep Learning Framework for Automated Corneal Segmentation in Anterior Segment Optical Coherence Tomography With Cross-Device External Validation
Open Access
- 10 April 2026
- journal article
- Published by Wolters Kluwer Health in Cornea
Abstract
Purpose: To develop a deep learning model—Cornea nnU-Net Extractor (CUNEX)—for full-thickness corneal segmentation of anterior segment optical coherence tomography (AS-OCT) images and evaluate its utility in artificial intelligence research. Methods: CUNEX was developed and evaluated using our Moorfields AS-OCT dataset of 194,599 scans from 37,499 patients, from which 100 normal, 100 keratoconus, and 100 Fuchs endothelial corneal dystrophy eyes were selected for model training. External validation was performed without fine-tuning using AS-OCT images acquired on 4 different OCT devices: Casia SS-1000, Anterion, Visante, and a ultrahigh-resolution custom build. CUNEX was benchmarked against 2 established models, CorneaNet and ScLNet. We then evaluated whether CUNEX-based segmentation influenced downstream deep learning classification of age, sex, and disease staging. Results: On the internal MS-39 validation set, CUNEX achieved Dice similarity coefficient (DSC) and intersection over union (IoU) scores of 94% to 95% and 88% to 91% across healthy, keratoconus, and Fuchs endothelial corneal dystrophy eyes, comparable to ScLNet (within 3%) and superior to CorneaNet (8%–35% lower). On external datasets, CUNEX was the only model to produce anatomically meaningful segmentations across devices (DSC and IoU >70%), whereas ScLNet and CorneaNet showed substantial performance degradation (DSC and IoU <20%). Segmentation minimally affected classification accuracy except for sex prediction, where accuracy dropped from 81% to 68%, suggesting sex-related features may lie outside the cornea. Conclusions: CUNEX delivers the first open-source AS-OCT corneal segmentation model evaluated across multiple independent OCT platforms. It offers a reproducible foundation for integrating segmentation into clinical and artificial intelligence research workflows. The code and pretrained weights are available at https://github.com/lkandakji/CUNEX.Keywords
Funding Information
- Moorfields Eye Charity (GR001147)
- Amazon Web Services
- National Institute for Health and Care Research (AI_AWARD02488)
- Fight for Sight UK (MR/X006271/1)
- National Institute for Health Research Biomedical Research Centre at Moorfields Eye Hospital NHS Foundation Trust and UCL Institute of Ophthalmology (NIHR203322)
- Frost Foundation
- NIHR Doctoral Fellowship (NIHR305630)
This publication has 31 references indexed in Scilit:
- Associations of ocular anterior segment structures with sex and age: the Yamagata study (Funagata)Japanese Journal of Ophthalmology, 2024
- Deep learning models based on CNN architecture for early keratoconus detection using corneal topographic mapsMultimedia Tools and Applications, 2023
- Quantitative evaluation of corneal irregularity and scarring after infectious keratitis using anterior segment optical coherence tomographyGraefe's Archive for Clinical and Experimental Ophthalmology, 2023
- Data collection and quality challenges in deep learning: a data-centric AI perspectiveThe VLDB Journal, 2023
- Two-stage hybrid network for segmentation of COVID-19 pneumonia lesions in CT images: a multicenter studyMedical & Biological Engineering & Computing, 2022
- Multidisease Deep Learning Neural Network for the Diagnosis of Corneal DiseasesAmerican Journal of Ophthalmology, 2021
- Deep Learning Classifiers for Automated Detection of Gonioscopic Angle Closure Based on Anterior Segment OCT ImagesAmerican Journal of Ophthalmology, 2019
- A Deep Learning System for Automated Angle-Closure Detection in Anterior Segment Optical Coherence Tomography ImagesAmerican Journal of Ophthalmology, 2019
- Deep Learning in Medicine—Promise, Progress, and ChallengesJAMA Internal Medicine, 2019
- Age-specific Incidence and Prevalence of Keratoconus: A Nationwide Registration StudyAmerican Journal of Ophthalmology, 2017