arXiv:2609.03668cs.CVSep 2026

Manuscript Offprint

arXiv:2609.03668

ARCOS: Zero-shot Boundary Localization for Corneal Layer Segmentation Across Optical Coherence Tomography Devices

Nuno Vivas Brás, Benjamin Memmi, Maëlle Bouhassane, Cristina Georgeon, Vincent Borderie, Karsten Plamann, Anatole Chessel

Abstract

Accurate segmentation of corneal layers in optical coherence tomography (OCT) is essential for quantitative assessment of corneal morphology, including layer thickness and structural changes associated with disease or surgery. However, automatic segmentation remains challenging because corneal interfaces are thin, affected by speckle noise, and variable across acquisition devices. In this work, we propose ARCOS, a patch-based zero-shot boundary localization framework for corneal layer segmentation in clinical anterior-segment OCT images. Rather than performing conventional region classification, the method predicts boundary heatmaps for the main corneal interfaces from overlapping native-resolution patches. Patch-level predictions are stitched across the full B-scan and converted into boundary locations to obtain continuous, anatomically ordered layer segmentations. The network combines multi-scale feature fusion with a self-conditioned refinement module that uses intermediate boundary information to improve local heatmap predictions while preserving spatial detail. The method was evaluated on clinical OCT images acquired from multiple devices and compared with representative segmentation baselines using boundary localization and derived thickness metrics. The proposed method achieved an off-by-one boundary localization accuracy of 95.1% and a mean absolute boundary error of 0.514 pixels on the matched-device test set. In zero-shot cross-device evaluation, it maintained an average off-by-one accuracy of 84.3% and a mean absolute boundary error of 0.855 pixels across unseen acquisition devices, outperforming the baseline models. Thickness estimates derived from the predicted boundaries showed low error across corneal regions, supporting the method's use for quantitative corneal OCT analysis.

Keywords: Optical coherence tomography, corneal segmentation, boundary localization, deep learning, zero-shot generalization, cross-device generalization.

1 Introduction

Anterior segment optical coherence tomography (AS-OCT) has become an important imaging modality in corneal ophthalmology, offering non-invasive cross-sectional visualization of the cornea and its layered architecture. Based on low-coherence interferometry, AS-OCT provides micrometer-scale axial resolution and enables visualization of the major corneal layers, including the epithelium and stroma. In high-quality acquisitions, finer structures such as Bowman's layer, Descemet's membrane, and the endothelial interface may also be identified (see Fig. 1).

Beyond structural imaging, AS-OCT facilitates assessment of corneal morphology in several ocular conditions, including keratoconus, Fuchs endothelial corneal dystrophy (FECD), infectious keratitis, and post-surgical remodeling following procedures such as photorefractive keratectomy (PRK). Reliable delineation of corneal layers and their interfaces allows the extraction of clinically relevant measurements, including epithelial and stromal thickness maps, corneal geometry descriptors, and structural biomarkers that may support diagnosis, disease monitoring, and surgical planning [1,2].

Accurate localization of corneal interfaces remains challenging, however. These boundaries can appear faint, noisy, or locally ambiguous due to pathology-related deformation, speckle noise, acquisition artifacts, and device differences. Manual annotation is time-consuming, expert-dependent, and difficult to perform consistently, especially in large or longitudinal datasets. Automated segmentation methods are therefore needed to improve reproducibility, reduce analysis time, and support the development of objective imaging biomarkers for clinical and research applications.

Figure

Figure 1: Representative clinical corneal OCT B-scan with an enlarged of view of the central corneal region. The principal cornea layers are labelled to illustrate the anatomical interfaces targeted by the proposed boundary-localisation model.

Deep learning has increasingly been applied to corneal OCT layer and interface segmentation, building on convolutional and fully convolutional architectures for dense image prediction. U-Net-based encoder-decoder [3] models and related architectures have been used to delineate corneal layers and interfaces, with subsequent approaches introducing boundary-guided supervision, attention mechanisms, or multi-scale feature extraction to improve localization of thin or low-contrast structures [4–7].

While these approaches have demonstrated accurate corneal layer segmentation within their respective datasets and acquisition settings, their evaluation has predominantly focused on relatively consistent imaging conditions, often using the same scanner or acquisition protocol. Consequently, it remains unclear how well such models generalize to OCT systems that were entirely unseen during training, where differences in image resolution, contrast, noise characteristics, and scanner-specific appearance can introduce substantial domain shifts. Broader clinical translation is further constrained by the limited availability of public datasets with detailed annotations of individual corneal layers, which complicates reproducible benchmarking and direct comparison between methods.

These challenges motivate segmentation methods that preserve local anatomical detail while maintaining coherent full-image boundary structure under different imaging conditions. In this work, we propose ARCOS, a patch-based framework for corneal boundary detection in AS-OCT images. The method processes overlapping full-resolution patches, predicts boundary heatmaps for corneal interfaces, and reconstructs full-resolution boundary estimates by combining patch-level predictions across the entire B-scan. This design avoids resizing the entire image to a fixed input resolution and accommodates variations in image dimensions, pixel spacing, field of view, and scanner-specific characteristics.

Rather than treating corneal layer segmentation as a conventional region classification problem, the proposed method defines the task as boundary localization. This formulation reflects the geometry of corneal OCT, where clinically relevant measurements depend on thin, continuous, and anatomically ordered interfaces rather than on large object-like regions.

The method is designed to improve interface localization, reduce dependence on user-defined parameter tuning, and support segmentation across different devices and pathological cases.