In total, 660 CCM images from both eyes were analyzed independently using manual semiautomated, purpose-designed CCM image segmentation software (CCMetrics; M.A. Dabbah, X. Chen, J. Graham, and R.A. Malik, University of Manchester, Manchester, UK) (
Figs. 1F–
1J) and the automated version (ACCMetrics).
32 CCMetrics is a validated CCM image segmentation algorithm that allows measurement of corneal nerve fiber density (CNFD) (fibers/mm
2), the number of main nerve fibers per image divided by the area of the image; corneal nerve branch density (CNBD) (branches/mm
2), the number of main nerve branches; CNFL (mm/mm
2), the sum of the length of all nerves per image (main nerves and branches). ACCMetrics was used for the estimation of CNFrD as previously described.
26 For CNFrD estimation, all original CCM images (
Fig. 2A) were resized to 512 × 512 pixels, as this was the image resolution used to train our machine learning-based nerve fiber detection mode.
32 CNFrD was calculated based on the binary image representing the detected nerve fibers using our previously developed machine learning approach,
32 as shown in
Figure 2B. CNFrD measures nerve complexity as the ratio of the change in detail to the change in scale in a CCM image. Box counting is a widely used and acknowledged method for fractal analysis calculation,
33 and it was applied in our study. This technique uses various sizes of
n ×
n boxes (in our study,
n = 1, 2, 4, …, 512, as 512 was the image width) to split the image into small patches. For each of the box sizes, the total number of boxes,
Yi (
i is the index of the different box sizes), that contain nerve fibers are recorded. As shown in
Figure 2C, the logarithm of
Y against the logarithm of
n is then plotted. A first-order polynomial (i.e., red line in
Fig. 2C) is fitted to these points using the method of least squares, where the coefficient of the line fitting (i.e., slope of the line, denoted as
C) is calculated. Subsequently,
–C is used as the fractal dimension value of a given CCM image (i.e., CNFrD). The CNFrD value is unitless, as it is a ratio, and increases when the number of counted small boxes increases, indicating a more complicated structure (e.g., higher CNFrD in a healthy control subject). In contrast, fewer, shorter, or disrupted nerve fibers result in a lower CNFrD value that reflects altered morphology (
Figs. 1K–
1O). To adjust for the severity of corneal nerve fiber loss, a ratio of CNFL/CNFrD was calculated (CNFrD adjusted for CNFL, or ACNFrD), which is also unitless. The averaged result of six images per patient was used for CNFD, CNBD, CNFL, CNFrD, and ACNFrD.