Highlights
-
•
Angle- and depth-aware reflectance modeling enables objective opacity detection.
-
•
Eye-level accuracy reached 0.93, with F1-score of 0.94.
-
•
Sensitivity was 0.96 and specificity was 0.89.
-
•
Quantitative opacity maps may support longitudinal, objective follow-up.
PURPOSE
To develop and validate an automated corneal opacity detection algorithm for optical coherence tomography (OCT) images, utilizing an incidence-angle- and depth-dependent model of corneal reflectance.
DESIGN
Retrospective, cross-sectional diagnostic accuracy study.
SUBJECTS
Training used 95 healthy eyes from 49 volunteers. Testing included 50 eyes from 42 patients with corneal opacities and 35 healthy eyes from 35 volunteers.
METHODS
Normal-eye OCT scans were used to model normative incidence-angle-dependent reflectance across corneal layers. The algorithm detected pixels above the normal reflectance range using model-based thresholds, binned percentile analysis, and morphological operations. Eye-level performance was evaluated against slit-lamp examination as clinical ground truth and compared with 5 trained physician annotators. Pixel-level agreement with consensus annotations (≥3 of 5 annotators) was assessed with Dice similarity coefficient.
MAIN OUTCOME MEASURES
Eye-level accuracy, F1-score, sensitivity, and specificity; pixel-level Dice similarity coefficient and segmented-area agreement versus consensus annotations.
RESULTS
At the eye level, the algorithm achieved accuracy of 0.93, F1-score of 0.94, sensitivity of 0.96, and specificity of 0.89. Human annotators had a mean accuracy of 0.83 ± 0.06, F1-score of 0.85 ± 0.04, sensitivity of 0.84 ± 0.09, and specificity of 0.80 ± 0.27. At the pixel level, mean Dice similarity coefficient versus consensus was 0.58 for the algorithm and 0.71 ± 0.05 for annotators. The algorithm’s total segmented opacity area was close to the consensus pixel count (98% of consensus).
CONCLUSION
An algorithm that incorporates incidence angle and depth-specific reflectance thresholds detects and segments corneal opacities. It demonstrated favorable accuracy at the eye level and produced quantitative opacity maps on OCT.
Corneal opacity, characterized by the loss of corneal transparency, arises from various etiologies such as trauma, infection, edema, and dystrophies. The cornea owes its transparency to tightly arranged collagen fibrils in the stroma that minimize light scatter. Disruption of this arrangement increases light scatter and leads to opacity. According to a recent analysis of the American Academy of Ophthalmology’s IRIS Registry, corneal opacities were diagnosed in approximately 6.5% of patients seen in participating ophthalmology practices across the United States between 2013 and 2020, with dystrophies being the most frequently documented etiology. Despite this frequency and impact on vision, current clinical evaluations of corneal opacity often rely on slit-lamp examination, which is inherently subjective and prone to inter-observer variability.
Optical coherence tomography (OCT) offers high-resolution, cross-sectional images of the cornea, , enabling quantitative insight into reflectance properties and potential pathological alterations. We have previously characterized the directional reflectance properties of the normal cornea on OCT images. We developed mathematical models that quantify reflectance as a function of the angle of beam incidence and tissue depth. These studies revealed that corneal reflectance varies substantially across layers and angles of incidence ( Figure 1 ). The angle dependence was best fit with a multi-exponential model.
Influence of OCT beam incidence angle and tissue depth on corneal reflectance shown on a 6-mm wide cross-sectional OCT of a healthy cornea.
Recent OCT-based methods for quantifying corneal abnormalities have focused on aspects like edema quantification and haze delineation, ,,, but they often assume uniform corneal reflectance. Such assumptions neglect natural, layer-specific directional differences and can obscure subtle pathology. To address this gap, we present here a novel algorithm that incorporates an incidence-angle and depth-dependent reflectance baseline to detect and segment corneal opacities more precisely. We then evaluate its performance against physician annotations, highlighting how an incidence angle-aware, depth-specific approach improves objectivity and reliability in corneal opacity detection.
METHODS
This retrospective study was conducted at Oregon Health & Science University (OHSU) in Casey Eye Institute and was approved by the OHSU Institutional Review Board. The study adhered to the tenets of the Declaration of Helsinki and was in accord with the Health Insurance Portability and Accountability Act of 1996.
Patient Selection
We analyzed 6-mm-wide anterior segment OCT scans from the Optovue Avanti platform (Visionix). Patients were classified either as (1) healthy volunteers and LASIK candidates with no abnormal corneal findings confirmed by comprehensive slit-lamp examinations, or (2) those with clinically identified corneal opacities observed on slit-lamp examination. Opacity status was based on the clinical slit-lamp determination that corneal opacity was present and no prespecified threshold for visual significance, central location, or minimum severity was applied.
OCT Calibration
Calibration was performed once for the OCT device and followed the procedure described in our previous publication, using standard diffuse reflectance targets (12%, 25%, 50%) to map the OCT signal magnitude to absolute reflectance. A linear regression model was used to estimate the 100% reflectance level, and OCT intensities were then normalized to this value to ensure consistent reflectance measurements across imaging sessions and calibrated Avanti devices.
Data Preparation
As in our previous work, eight radial B-scan images (640 × 1024 pixels, scan depth of 2 mm) were extracted from each OCT scan, maintaining their raw, unprocessed, and non-dewarped format so that each axial scan (vertical column of signal values in the OCT B-scan image array) corresponds to the path of the OCT beam through the cornea. A signal roll-off compensation and a low-pass mean filter (rectangular, 3 × 5 pixels) were applied to each image to reduce speckle noise. Axial scans with central flare artifacts were excluded from subsequent analyses.
Three-Dimensional Incident Angle Calculation
Incident angles were computed using the 3-dimensional (3D) approach described in our previous study. This approach derives the surface normal at each point on the anterior surface from the anterior elevation map and assigns it to the corresponding axial scan. It accounts for the incidence angle of the OCT beam relative to the corneal anterior surface normal both in the plane parallel to the B-scan and in the plane perpendicular to the B-scan.
Binned Reflectance Analysis
To capture layer-specific optical behavior, we performed binned analyses as previously outlined, dividing the epithelium, stroma, and endothelium into uniform sections based on corneal depth and incidence angle. For the stroma, we used 4% depth increments and 0.005-radian angular bins, while the epithelium and endothelium were divided using 10% and 33.3% depth increments, respectively. Pixels from OCT images from multiple patients were then aggregated into bins with matching depth and angle parameters.
Because the distribution of reflectance within the bins is non-Gaussian and right-skewed, mean ± standard-deviation rules would not robustly characterize the upper tail relevant to opacity detection. Therefore we adopted a percentile-based approach. Within each bin, we calculated the 97th and 99.9th percentile reflectance values to define thresholds for “suspect” and “definite” opacities, respectively. These upper-tail cut-offs serve as empirical analogues to τ-quantiles commonly used in quantile regression. , The selected percentile thresholds were finalized during method development and then held fixed for all reported analyses.
Curve Fitting
Reflectance values at the 97th and 99.9th percentiles were fitted using exponential functions to model reflectance trends as a function of incidence angle and tissue depth. We applied the same functional form and optimization constraints as previously reported:
Where:
-
○
represents reflectance in layer at incidence angle
-
○
, , and are the amplitude coefficients for the exponential terms.
-
○
, , and are the decay constants.
-
○
is the baseline reflectance term.
Thresholding and Morphological Fusion
Pixels were labeled as “suspect opacity” if their reflectance exceeded the 97th-percentile threshold , and as “definite opacity” if they exceeded the 99.9th-percentile threshold , based on their specific depth–angle bin. Here, denotes the pixel coordinates in the OCT B-scan. We generated the initial binary masks using:
A mask merging technique was then applied to combine “suspect” and “definite” opacity pixels into a single mask using morphological operations. Both masks were first smoothed using an ellipse-like structuring element (3 × 5 pixels). The final fused mask was then generated by expanding the processed “definite” opacity mask through 4 sequential dilations with the same structuring element and intersecting it with the processed “suspect” opacity mask:
