FormalPara Key Summary Points

Why perform this study?

Retinal detachment is a sight-threatening emergency where more than half of those affected are left with permanently impaired vision

Prophylaxis has been demonstrated to be effective, but for most cases there is no way of identifying who will be affected

This study was looking for a test that could identify which eyes will be affected by retinal detachment

What was learned?

There are differences in peripheral retinal shape measured with optical coherence tomography between post hoc eyes treated by vitrectomy for retinal detachment and those with a posterior vitreous detachment

These differences do not appear to be affected by surgery or posterior vitreous detachment

Introduction

Rhegmatogenous retinal detachment (hereafter retinal detachment) is a sight-threatening emergency. Most cases develop from a retinal tear formed when posterior vitreous detachment (PVD) occurs, typically after the fourth decade of life. Retinal detachment affects approximately 1% of the population [1,2,3], with the majority of eyes experiencing an uncomplicated PVD without formation of a retinal tear. Even with successful surgery, more than half of those affected by retinal detachment lose vision [4,5,6,7]. In the less than 1% of retinal detachment cases known to be at high risk due to syndromic disease (Type 1 Stickler syndrome) or severe fellow eye disease (giant retinal tears), early prophylactic laser treatment prior to PVD has led to a five to tenfold reduction in vision loss [8,9,10]. There is at present no method to predict which eyes will develop a retinal tear or detachment prior to posterior hyaloid separation, although risk of retinal detachment is known to rise with increasing myopia [11]. Therefore, there is a need for a clinical test to identify eyes that will develop retinal detachment. Any increase in the number of eyes identified as at risk would create opportunities to further explore prevention.

Retinal irregularity is a biomarker that correlates with axial length, the primary determinant of myopia. Measured with optical coherence tomography (OCT), it is defined as the residual retinal shape after removal of the best fit (second order polynomial) curve from the retinal contour, where the retinal contour is the path of the retinal pigment epithelium across the OCT (see Supplementary information 1). This is often more irregular in the mid-peripheral retina than would be expected from examination of the macula [12]. As both retinal irregularity and risk of retinal detachment increase with increasing myopia, the possibility of the former being a biomarker for the latter motivated the investigation reported herein. The ultimate goal is to develop a test that can predict retinal detachment.

This paper reports the systematic measurement of the retinal irregularity of posterior and mid-peripheral retina in eyes that have experienced either a retinal detachment, PVD or retinal tear without detachment. Retinal irregularity was quantified through fast Fourier transformation, which describes the irregularity by deconstructing it into partitions (bins) in a spectrum of sine waves. The regions of the eye with the greatest differences in irregularity between PVD and retinal detachment were identified. These were combined with axial length to train a machine learning classifier to identify eyes that had a retinal detachment from a mixed group of retinal detachment and PVD eyes. The classifier was tested further with an independent validation set of eyes with a retinal tear. Finally, evidence is presented in the section “The effect of PVD and surgery on retinal shape” that retinal irregularity is not affected by retinal detachment surgery or development of PVD.

Methods

Study Participants

Individuals were recruited from ophthalmic clinics of a tertiary care hospital (Flinders Medical Centre) and a private ophthalmic practice (Eyemedics), in Adelaide, South Australia, following examination by a retinal specialist. Those with a PVD or retinal tear were imaged within 2 months of presentation. Retinal detachment eyes were imaged within 4 months of diagnosis in the post-operative period after retinal reattachment was confirmed and intra-ocular gas had dissipated. There were 264 participant eyes from 264 individuals in three groups: those who had undergone vitrectomy without scleral buckling for a PVD-associated retinal detachment (n = 99), those who had presented with an acute symptomatic PVD with complete separation of the posterior hyaloid from the macula and optic disc confirmed by OCT (n = 97) and those with an acute symptomatic PVD-associated retinal tear that was treated by laser (n = 68). There were 134 right eyes and 130 left eyes, with 159 male and 105 female participants. Age ranged from 43 to 83 years, with axial length 21.11–28.09 mm. Of those that had a retinal detachment, 45 were macula on, 43 macula off and 3 macula split at time of surgery, with missing data for 8. Patient demographics are presented in Table 1. The study was approved by the Southern Adelaide Local Health Network Human Research Ethics Committee and was performed in accordance with the tenets of the Declaration of Helsinki. Prior written informed consent was obtained from all participants.

Table 1 Participant demographics

Imaging and Image Processing

Eyes underwent systematic imaging of the posterior pole and mid-periphery of the retina using the Zeiss Cirrus 5000 spectral-domain OCT (Carl Zeiss Meditec AG, Germany). After pupil dilation with one drop each of tropicamide 1% and phenylephrine 2.5% (Bausch & Lomb, Chatswood, Australia), OCT cubes of 21 parallel B scans of 9 mm length and spaced by 0.4 mm were captured (HD21 cube protocol). Zeiss OCT machines do not perform pre-processing image flattening, so that retinal irregularity is preserved in the B scan. OCT cubes were grouped into 17 regions: the macula, and two OCT cubes in each direction of gaze (up, down, left, right, up left, up right, down left, down right), one more anterior to the other (labelled post-equatorial and peri-macular, respectively). Axial length was measured via partial coherence interferometry with the Zeiss IOLMaster (Carl Zeiss Meditec AG, Germany).

The retinal irregularity for each scan was quantified in the frequency domain, so that the shape was described by a vector of 30 bin values from the spectrum of sine waves (Fig. 2). Measurement of retinal shape and quantification of irregularity was performed with code written for this study in MATLAB (The MathWorks, Inc., Natick, MA) and is described in Supplementary material 1.

Fig. 1
figure 1

Flow chart. The data set of retinal detachment (RD) and PVD eyes was split into training and testing sets. Shape features were extracted from the training set images (Fig. 2) and explored to find useful differences between retinal detachment and PVD eyes. These were combined with axial length to train a classifier. The classifier was tested with the validation set of retinal detachment and PVD eyes, and a separate validation set of retinal tear eyes. Results are presented in a confusion matrix in Table 3

Fig. 2
figure 2

Shape analysis and feature extraction. The retinal shape (taken from the retinal pigment epithelial line) in the B scan (i), is plotted in (ii). The middle figure (iii) shows the residual left after subtraction of the best fit quadratic curve. Figure (iv) is the Fourier transform of (iii) and describes the retinal irregularity in the frequency domain. The 30 lowest frequency bins are magnified in (v). The difference between an individual B scan irregularity [dotted line in (vi)] and the average B scan irregularity [solid line in (vi)] was used for analysis (Supplementary information 1). Each vertical coloured bar represents the contribution of a range of frequencies (a bin) to the irregularity and is used for analysis of shape. Note the B scan image (i) is shown as presented in the clinic, and it is not uncommon for mid-peripheral retina to be as irregular as this. The true aspect ratio is 9 mm (wide) × 2 mm (deep)

Feature Selection and Development of a Retinal Shape Classifier

Potential variables for classification are here called features. Classification was performed using a standard process of identifying features that appeared best able to separate the two groups, then training an algorithm using these features with a subset of the sample eyes and testing its performance with the remainder of the sample. Training was performed with a randomly selected sample equivalent to 40% of the retinal detachment and PVD eyes, with the remaining 60% as a validation set. The training set was used for feature selection, with all bin values from all regions considered, corresponding to 30 (bins) × 17 (regions) = 510 potential features. The average irregularity was determined for each region of the eye for each group (see Supplementary information 1 and Figure S2). Candidate features selected were those potential features with the greatest difference in average irregularity between retinal detachment and PVD eyes. Axial length was included as a classifier feature as it is known to be associated with both irregularity [12] and risk of retinal detachment [11]. Classifiers were generated with quadratic discriminant analysis [13], a computationally efficient machine learning algorithm, using the PVD and retinal detachment groups as diagnostic classes. With a sample size N, only classifiers with no more than 1 + log10 N features were considered suitable [14]. This reduces both the complexity of the model and the risk of overfitting and poor performance. Classifier sensitivity and specificity were calculated with the PVD and retinal detachment eye validation set. Sensitivity was calculated as retinal detachment eyes labelled 2 (true positive) divided by total number of validation set retinal detachment eyes. Specificity was computed as the number of PVD eyes labelled 1 (true negative) divided by the total number of validation set PVD eyes [15]. All permutations of the candidate features were explored to identify the combination with the highest sensitivity that maintained a specificity over 85%, using the training set. This is a stricter test than using re-substitution error, and was chosen as specificity was considered important to minimise the labelling of non-pathological PVD eyes as abnormal. The classifier was further tested with the set of retinal tear eyes.

Results

Feature Selection and Classifier Generation

Initial candidate feature selection found the greatest differences in irregularity between PVD and retinal detachment eyes were all in the supero-temporal hemisphere: post-equatorial superior retina (region 3), peri-macular and post-equatorial infero-temporal retina (regions 8 and 9), peri-macular and post-equatorial supero-temporal retina (4 and 5), peri-macular temporal (6) and peri-macular supero-nasal [16] retina. All were from the second and third (lower frequency) bins, corresponding to frequencies of 0.11—0.22 cycles mm−1 (bin 2) and 0.22—0.33 cycles mm−1 (bin 3), equivalent to feature wavelengths of 3–9 mm. Where two regions in any gaze direction both held candidate features, the post-equatorial regions were selected as they consistently had more irregular scans. As a result, bins from regions 3, 5, 6, 9 and 16 were explored along with axial length by assessing training set classifier performance on all possible three-variable classifier combinations. The most effective three-variable classifier used features from the superior (region 3) and supero-temporal (region 5) regions of the eye, along with axial length. The average values of these features are presented in Table 2. Twenty repeats of fivefold cross validation of the classifier performance with the training set produced an average success rate (true positive + true negative divided by total number of eyes) of 0.69, with a standard deviation of 0.09.

Table 2 Average and standard deviation of irregularity features by diagnosis

Age was considered as well as axial length. Age had no effect on classifier performance. Single-variable classification using axial length alone varied by the threshold axial length chosen to separate PVD and retinal detachment. At a specificity of 75%, sensitivity was less than 5%, and with a sensitivity of 40%, specificity was only 34%, indicating that axial length on its own was ineffective at identifying retinal detachment eyes.

Test Set Results

The test set confusion matrix is presented in Table 3. Classifier specificity was 84% and sensitivity 35%. A receiver operating characteristic (ROC) curve for identification of retinal detachment eyes, with 95% confidence intervals generated from 5000 bootstrap replicas is shown in Fig. 3, with an area under the curve = 0.75 (95% confidence intervals 0.58–0.85). An ROC curve is a standard device for summarising the performance of a classification system in terms of sensitivity and specificity over the full range of possible operating points [16].

Table 3 Test set confusion matrix
Fig. 3
figure 3

Receiver operating characteristic curve. For identification of retinal detachment eyes. Error bars representing 95% confidence intervals (CI) were generated from 5000 bootstrap replicas. Area under the curve = 0.75 (95% CI 0.58–0.85)

Independent Validation Set

The retinal tear group eyes were used as an independent validation set for the classifier, with these eyes treated as having the same pathology, albeit less advanced disease than retinal detachment. Sixteen eyes (24%) out of 68 in this retinal tear group were labelled ‘2’ (true positive). While retinal tear group features were on average smaller than those of the retinal detachment group, this was only significant for axial length (Tables 1 and 2).

The Effect of PVD and Surgery on Retinal Shape

Two eyes were imaged prior to PVD, and again after PVD occurred. Shape features (20 frequency bins for each of the 17 regions) from the two imaging sessions were compared by a Bland–Altman plot to assess shape metric consistency before and after PVD [e.g. Fig. 4(i)]. The 95% limits of agreement were generated using eight eyes not included in the main study that had been imaged twice (on separate days) with no change in status between imaging sessions. There was no difference in shape metric variation before and after PVD compared with shape metric variation in eyes with no change in ocular status. Another two eyes were imaged before PVD occurred, and after vitrectomy for PVD-related retinal detachment. Again, the test–retest distribution of shape metrics of these eyes in the Bland–Altman plot matched that of the control eyes [e.g. Fig. 4(ii)]. The two PVD eyes and one of the retinal detachment eyes were labelled ‘1’ when tested with the classifier. The second retinal detachment eye was labelled ‘2’. Classification label for all four remained unchanged across the two imaging sessions of each eye.

Fig. 4
figure 4

Bland–Altman test–retest plots of shape metrics (17 regions, frequency bin moduli 2–20) from B scan irregularity spectra before and after PVD [blue points (i)], and before PVD and after vitrectomy for retinal detachment [red points (ii)]. The 95% limits of agreement are set by test–retest measurements from eight eyes with no change in status between examinations (black points). As higher frequency bins and bin 1 are of very low magnitude, only bins 2–20 were plotted to reduce the impact of noise on the plot. Shape metric variation before and after PVD and retinal detachment was no greater than test–retest variation in the absence of any change in ocular condition

Discussion

With laser treatment known to prevent retinal detachment in some eyes, there is a need for a test to identify more at-risk eyes to reduce the need for emergency surgery and prevent vision loss. This report identifies a potential biomarker, specifically irregularities in retinal shape quantified in the frequency domain, for retinal detachment. These irregularities, used to develop a classifier, were capable of distinguishing between eyes that had suffered a retinal detachment from those that had suffered a PVD.

A sensitivity of 35% is not high (Table 3), but if this performance were to remain the same for eyes at risk of retinal detachment before PVD, it would make one-third of retinal detachments potentially preventable, when at present very few can be targeted with prophylaxis. Evidence presented here that this may be possible was seen with no classification change and no substantive change in shape metrics in two eyes imaged before and after PVD, and two eyes imaged before PVD and after surgery for retinal detachment. The high specificity (84%) gives confidence that an eye labelled ‘2’ was a true positive, crucial were the classifier to be used for prediction or to guide counselling or intervention. Axial length alone was ineffective at identifying retinal detachment eyes, with the retinal irregularity essential for specificity. Spectral domain OCT is widely available in optometric and ophthalmic practices, and imaging and analysis were fast enough to be practical as a point-of-care test.

The retinal tear group was used as an independent validation set for the two-class classifier. Separation was maintained between retinal tear and retinal detachment eyes to maintain a clean data set, and to explore feature differences between the retinal tear and detachment eyes that might provide evidence as to why these patients present at an earlier stage of the disease than others. In this sample, retinal tear eyes had an axial length significantly shorter than retinal detachment eyes, and longer than PVD eyes. The average age and irregularity of the retinal tear group were also between that of the PVD and retinal detachment groups, but not significantly different from either (Tables 1, 2). This may reflect either that they were a less severe pathology than the retinal detachment eyes, or that they consisted of a mixed group of eyes, some of which would progress to retinal detachment and some of which would not.

Discriminant analysis was developed for Gaussian data, but remains a robust method when this condition is not met, and is a suitable model for this sample size [17]. All machine learning algorithms perform better with larger data sets. The sample presented here was of moderate size, and the use of the training set for feature selection was an effective use of data [14]. This work differs from many applications of machine learning in ophthalmology, which aim to automate the task of a human operator. Instead, it used machine learning tools to identify a new clinical feature. There remain many limitations to this study. Currently OCT can only sample the retinal shape. A more complete morphological analysis, including different scan directions, sample lengths or retinal areas not accessible with this approach might improve classification. Other parameters may predict retinal detachment. Di Michele et al. present a theoretical model that implies the shape of the posterior hyaloid face may differ with different pathological states, which may be an alternative method of identifying eyes at risk with OCT [18]. Larger samples would allow more complex algorithms to be explored. Patients were all from the age range when PVD or retinal detachments commonly occur, and as eye shape will change over time, the use of the classifier should at present be limited to this age group. All tests need to be used judiciously, as performance depends upon the population studied. Prospective data will be required to investigate whether these features can be used to predict retinal detachment before PVD has occurred, work now being undertaken for the fellow eyes (no PVD) of individuals who have had a retinal tear or detachment in the other eye.

Conclusion

The objective was to look for features (in post hoc eyes) that may be present prior to PVD and retinal detachment occurring, that could be explored as a test for retinal detachment in pre-PVD at-risk eyes. Differences in retinal irregularity were found between retinal detachment and PVD eyes. These differences were combined with axial length to train a classifier, which was able to distinguish retinal detachment eyes from PVD eyes. The features were unchanged by PVD itself or retinal detachment surgery in a subset of four eyes imaged before and after PVD and retinal detachment. Prospective evaluation of this test will be undertaken to determine if the test is reliable when performed prior to PVD and disease development.