This study was approved by the Ethics Committee of Kagoshima University Hospital (Kagoshima, Japan) and registered with the University Hospital Medical Network (UMIN)-clinical trials registry (CTR). The registration title is “UMIN000031747, Research on retinal/choroidal structure analysis by novel image analysis technique and machine learning.” on March 2018. A detailed protocol is available at, https://upload.umin.ac.jp/cgi-open-bin/ctr/ctr_view.cgi?recptno=R000036250. A written informed consent was obtained from all of the subjects after an explanation of the procedures to be used and possible complications. All of the procedures conformed to the tenets of the Declaration of Helsinki.
The subjects underwent OCT at Sonoda Eye Clinic, Kagoshima, Japan from January 15, 2019, to March 29, 2019, with the data constituting OCT images of 617 eyes. OCT images of the macular region passing through the fovea centralis were analyzed. Images with poor quality because of the opacity of the optic media, poor fixation, etc. as well as images that were inverted due to posterior staphyloma were excluded. From the images that survived the exclusion criteria, 300 were randomly selected for the analysis.
Imaging Protocol
Imaging was performed using SD-OCT (RS-3000 Advance2) manufactured by NIDEK (Tokyo, Japan). OCT was taken horizontally through the fovea centralis. The image was extracted as a 1024 x 512 pixel Microsoft Windows bitmap image (bmp).
Segmentation AI
All OCT images were segmented using an OCT B-scan automatic image segmentation model that utilizes deep learning.25 For a brief overview, the segmentation model is based on U-Net26 and consists of an encoder and decoder, a skip-connection between the two, and a multiple dilated convolution (MDC) block. The input is an OCT image, and the output is a probability map for each boundary layer (Figure 6). The encoder and decoder perform 7×1 vertical convolution to extract features of the horizontal edges (vertical brightness changes). The MDC block expands the receptive field by combining convolutions with different dilations to capture the positional relationship of a wide range of features. In the output layer of the model, SoftMax is applied in the vertical direction (direction of the A-scan). This makes it possible to obtain a probability distribution of the position (depth) of each boundary layer from the A-scan. Finally, the position (depth) with maximum probability distribution in each A-scan is detected as the boundary layer. This model allows segmentation of ILM, NFL-GCL boundaries, IPL-INL boundaries, OPL-ONL boundaries, EZ, and RPE-BM boundaries.
Calculating uncertainty
Using the above automatic segmentation model, the certainty of the calculation of the retinal interface was calculated. In the model, of the 512 points, initially those corresponding to the boundary layer are calculated for each A-scan of the OCT image, whereby the probability distribution of the boundary layer is the output, and the point with the highest probability is actually detected as the boundary layer. If the probability distribution is not biased toward one point and varies, the detection of the boundary layer is considered to be uncertain. The variation in this probability distribution was calculated by entropy. Entropy is an index indicating the degree of chaos and irregularity of a state, and is calculated by the following formula.
The entropy value (\({\text{E}\text{n}\text{t}\text{r}\text{o}\text{p}\text{y}}_{x,l}\)) at position\(x\) of the boundary layer \(l\) of the A-scan is
$${\text{E}\text{n}\text{t}\text{r}\text{o}\text{p}\text{y}}_{x,l}=-{\sum }_{z}{p}_{x,z,l}\text{log}{p}_{x,z,l}$$
Here, \({p}_{x,z,l}\) is the output value of the network at coordinates\((x,z)\) of the boundary layer\(l\).
In other words, the larger the entropy, the more the probability distribution is scattered and the more uncertain layer detection is. This entropy was calculated for each boundary layer of the retina in the OCT image with the average value defined as the UI. The lower the UI, the smaller is the variation in the probability distribution, and the higher the UI, the greater is the variation in the probability distribution (Fig. 7). An example of segmentation using UI is provided in Fig. 8.
Heatmap creation
In the proposed method, a heatmap for each layer can be created by arranging the entropy calculated for each A-scan in the OCT volume (Figure 9). The heatmap created was smoothed by a Gaussian filter with σ = 1 and normalized so that the minimum value would be 0 and the maximum value would be 1. To colorize the normalized heatmap, jet colormap was applied.
Image labeling
Two retina experts labeled the presence or absence of abnormalities in each layer of the OCT image. Those with epiretinal membrane (ERM), retinal edema, hard exudate, retinal pigment ethitelium (RPE) abnormality, serous retinal detachment (SRD), pigment epithelial detachment (PED), and drusen were defined as abnormalities. The retina was also examined to determine in which layer these abnormal findings were located. If two examiners had different opinions, the abnormalities were established after discussions between the two examiners.
Statistical analysis
All statistical analyses were performed with SPSS statistics 19 for Windows (SPSS Inc., IBM, Somers, NY). The difference between the mean values of normal and abnormal UI was examined using the t-test. The ability to classify normal and abnormal parts was evaluated by the AUC of the ROC curve. A p-value of 0.05 or less was considered significant.
Data availability
All data generated or analysed during this study are included in this published article and its supplementary information files.