Abstract
There is a disparity between the increasing application of digital retinal imaging to neonatal ocular screening and slowly growing number of pediatric ophthalmologists. Assistant tools that can automatically detect ocular disorders may be needed. In present study, we develop a deep convolutional neural network (DCNN) for automated classification and grading of retinal hemorrhage. We used 48,996 digital fundus images from 3770 newborns with retinal hemorrhage of different severity (grade 1, 2 and 3) and normal controls from a large cross-sectional investigation in China. The DCNN was trained for automated grading of retinal hemorrhage (multiclass classification problem: hemorrhage-free and grades 1, 2 and 3) and then validated for its performance level. The DCNN yielded an accuracy of 97.85 to 99.96%, and the area under the receiver operating characteristic curve was 0.989–1.000 in the binary classification of neonatal retinal hemorrhage (i.e., one classification vs. the others). The overall accuracy with regard to the multiclass classification problem was 97.44%. This is the first study to show that a DCNN can detect and grade neonatal retinal hemorrhage at high performance levels. Artificial intelligence will play more positive roles in ocular healthcare of newborns and children.
Keywords: artificial intelligence, convolutional neural network, fundus images, retinal hemorrhage
Introduction
Retinal hemorrhage (RH) is one of the most common ocular abnormalities in newborns and has a wide prevalence ranging from 2.6 to 50.0% [1–3]. The delivery mode, examination technique and time of examination after birth are considered as important factors that influence the rate of RH in newborns [4]. Vacuum extraction delivery was reportedly associated with the highest rate of RH, followed by spontaneous vaginal delivery and cesarean delivery [5,6]. Direct or indirect ophthalmoscopy is usually used for primary ocular screening of newborns. However, both techniques have some limitations. When performing direct ophthalmoscopy, some ocular abnormalities or RH in the peripheral regions may be missed due to the limited inspection range. Indirect ophthalmoscopy requires experienced and skilled experts for both performance and diagnosis, which may limit the widespread use and screening accuracy of this technique [7]. It was reported that birth-related hemorrhages may resolve quickly and can be of ‘small size and number’ [8], and those hemorrhages seen at 1 month of age were less likely birth-related [2]. But the other difference between NH and other hemorrhages found in other ocular or retinal disease was rarely reported.
In recent years, a wide-field digital imaging system (RetCam; Clarity Medical Systems, Pleasanton, CA, U.S.A.) has been applied with increasing frequency for regular ocular examination of newborns. This system can provide and record high-resolution, objective and wide-angle images of ocular diseases [4,9,10]. The system can provide a 130-degree field of view so that lesions in the peripheral regions, including RH, can be detected easily and quickly. Although the RetCam can provide quick and precise information regarding RH, there is a growing disparity between the increasing need for neonatal ocular examinations and the limited number of pediatric ophthalmologists. This problem is more severe in China, where there are more than 16 million newborns born each year. Therefore, an automated detection system for ocular abnormalities, including RH of different grades, based on fundus images of newborns is an urgent need.
Recent developments in deep learning techniques have provided evidence that artificial intelligence can help to diagnose ocular diseases, with an accuracy near or exceeding that attained by experienced experts, with much greater speed [11–15]. Gulshan et al. [11] developed a deep convolutional neural network (DCNN) to classify referable diabetic retinopathy using retinal fundus photographs with a sensitivity ranging from 87.0 to 97.5% and a specificity ranging from 93.4 to 98.5%. Similarly, Burlina et al. [12] applied a DCNN in the automated detection of age-related macular degeneration using color fundus images. Their DCNN yielded an accuracy of 88.4 to 91.6% with an area under the receiver operating characteristic curve (AUC) of 0.94 to 0.96, which are close to human performance levels.
The goal of the present study is to develop a DCNN model that can automatically determine the presence and severity of RH in newborns based on fundus images.
Methods
Data source
We used color fundus images of neonates from the National Science and Technology Basic Work program, a multi-center cross-sectional investigation involving the performance of fundus examinations by a wide-field digital imaging system (RetCam) on consecutive series of newborns with written informed consent. The digital images of the posterior pole and the superior, inferior, nasal and temporal retinal fields of each participant were captured and labeled by professional ophthalmologists. Neonatal RH was diagnosed and graded according to Egge’s classification [16]: (1) Grade 1: small retinal hemorrhage confined to the area around the optic nerve, associated with dot or fine linear bleeding; (2) Grade 2: slightly larger amount of retinal hemorrhage than Grade 1; patchy, dot, blot or flame-shaped hemorrhage, size does not exceed the optic disc diameter; (3) Grade 3: retinal hemorrhage more than the diameter of the optic disc area, a line of flame-shaped hemorrhage along vessels, macular hemorrhage The images of graded RH and normal fundi were used for training and testing of the DCNN. This research was approved by the ethics committee of National Research Institute for Family Planning.
Model
The architecture of the DCNN model is shown in Figure 1. The network comprised the following types of hidden layers:
Convolutional layer (Conv): Performance of convolutional operation.
Pooling layer (Max Pool): Performance of pooling operation.
Maxout layer (Maxout): Use of a maxout activation function for non-linear changes, down-sampling.
Dropout layer (Dropout): Prevention of over-fitting.
Concatenate layer (Concat): Concatenation of input data.
Dense layer (Dense): All nodes in the fully connected layer are connected to all nodes in the previous layer and are used to combine the features extracted from the front layers.
Softmax layer (Softmax): Use of the softmax activation function to predict the results.
Figure 1. Framework of the deep convolution neural network.
The details of the layers are shown in Table 1. All images were resized to 512 × 512, with three channels representing RGB. The image first went through the convolutional layer and max-pooling layer, and 7 × 7 feature maps of 256 channels were obtained. This part contained 16 convolutional layers and 5 max pool layers, similar to VGG19. The feature maps then went through the maxout layer, dropout layer and dense layer to improve the performance [17,18]. Finally, we applied the softmax function to predict the probability of each type (0, normal; 1, mild; 2, moderate; 3, severe) and used the type with the highest probability as the predicted result. We used Theano and Lasagna [19] to perform the DCNN model.
Table 1. Details of each layer in the convolution neural network.
| Kernel | Strides | Number of filters | Feature map (height,width,channels) | Function | |
|---|---|---|---|---|---|
| Conv | 7*7 | 2*2 | 32 | (256, 256, 32) | Extract features |
| Conv | 5*5 | 2*2 | 32 | (128, 128, 32) | |
| Max-pooling | 3*3 | 2*2 | (63, 63, 32) | Fuse feature and reduce feature map | |
| Conv | 3*3 | 1*1 | 32 | (63, 63, 32) | |
| Conv | 3*3 | 1*1 | 32 | (63, 63, 32) | |
| Max-pooling | 3*3 | 2*2 | (31, 31, 32) | ||
| Conv | 3*3 | 1*1 | 64 | (31, 31, 64) | |
| Conv | 3*3 | 1*1 | 64 | (31, 31, 64) | |
| Conv | 3*3 | 1*1 | 64 | (31, 31, 64) | |
| Conv | 3*3 | 1*1 | 64 | (31, 31, 64) | |
| Max-pooling | 3*3 | 2*2 | (15, 15, 64) | ||
| Conv | 3*3 | 1*1 | 128 | (15, 15, 128) | |
| Conv | 3*3 | 1*1 | 128 | (15, 15, 128) | |
| Conv | 3*3 | 1*1 | 128 | (15, 15, 128) | |
| Conv | 3*3 | 1*1 | 128 | (15, 15, 128) | |
| Max-pooling | 3*3 | 2*2 | (7, 7, 128) | ||
| Conv | 3*3 | 1*1 | 256 | (7, 7, 256) | |
| Conv | 3*3 | 1*1 | 256 | (7, 7, 256) | |
| Conv | 3*3 | 1*1 | 256 | (7, 7, 256) | |
| Conv | 3*3 | 1*1 | 256 | (7, 7, 256) | |
| Max-pooling | 3*3 | 2*2 | (3, 3, 256) | ||
| Dropout | (3, 3, 256) | Prevent over fitting | |||
| Dense | 1024 | Purify features for classification | |||
| Maxout | |||||
| Dropout | |||||
| Dense | 1024 | ||||
| Maxout | |||||
| Dense | 16 | ||||
| Dense | 8 | ||||
| Softmax | classifier |
Data preparation
Our study included 48,996 fundus images collected from 3770 newborns (5–20 imagines for each one). All samples were carefully classified by experts as 765 normal fundi, 1023 grade 1 RH, 975 grade 2 RH and 1007 grade 3 RH. Each sample donated 5–20 eligible images after assessment in the present study. We divided each classification of newborns into a training set and testing set in a 7:3 ratio (Table 2).
Table 2. Summary of the training and testing dataset.
| Dataset | Number of images | Number of patients |
|---|---|---|
| Training | ||
| Normal | 6590 | 708 |
| Grade 1 RH | 7816 | 519 |
| Grade 2 RH | 11,470 | 685 |
| Grade 3 RH | 8210 | 727 |
| Testing | ||
| Normal | 2762 | 299 |
| Grade 1 RH | 3678 | 246 |
| Grade 2 RH | 5130 | 290 |
| Grade 3 RH | 3340 | 296 |
Abbreviation: RH, retinal hemorrhage.
Because the external illumination conditions can be quite different when performing fundus examinations, all images went through a normalization step at the preprocessing stage to remove the illumination effect. For each pixel in the image, assuming the values on the three channels are r, g and b, the normalization changed the values on the three channels as follows:
Figure 2 shows the effect of normalizing the fundus images under different levels of illumination. After normalization (Figure 2B,D), the illumination effect was greatly reduced.
Figure 2. Normalization effect of digital fundus images.
(A and C) Fundus images taken under bright and dark illumination conditions. (B and D) Images after normalization.
Training
We adopted stochastic gradient descent and the Nesterov momentum method to train the model. The loss function was a combination of a continuous kappa loss together with the cross-entropy (or log) loss [20] as defined in (Copyright © 2015 Jeffrey De Fauw). We gradually decreased the learning rate to balance the learning speed and accuracy. The learning rate of each step is listed in Table 3 as the training procedure progressed. After 40,000 iterations of training, the loss and accuracy became stable.
Table 3. Change of learning rate as the training procedures went.
| Epochs | Learning rate |
|---|---|
| 0–19 | 0.007 |
| 20–39 | 0.0035 |
| 40–59 | 0.0021 |
| 60–79 | 0.00105 |
| 80–99 | 0.0007 |
| 100–119 | 0.00035 |
| 120–139 | 0.00007 |
| 140–159 | 0.000035 |
| 160–179 | 0.000007 |
| 180–189 | 0.0000007 |
| 190–199 | 0.00000007 |
Performance merit
We used the accuracy, sensitivity, specificity, positive predictive value (PPV) and negative predictive value (NPV) to assess the performance of the DCNN. Additionally, we applied a receiver operating characteristic (ROC) curve and computed the AUC. Notably, the detection of RH was a multiclass classification problem (normal, grade 1 RH, grade 2 RH and grade 3 RH). We transformed it into four binary classification problems for assessment and comparison of the performance levels: RH (yes vs. no), grade 1 RH (yes vs. no), grade 2 RH (yes vs. no) and grade 3 RH (yes vs. no). All statistical analyses were performed using SPSS version 19 (IBM Corp., Armonk, NY, U.S.A.).
Results
We used 14,910 fundus images of 1131 newborns from the validation dataset to assess the performance of the trained DCNN. The performance levels of each classification are listed in Table 4, and the ROC curve of each classification is shown in Figure 3.
Table 4. Performance levels for machines experiments using fundus images dataset.
| Classification | Sensitivity | Specificity | PPV | NPV | Accuracy | AUC (95%CI) |
|---|---|---|---|---|---|---|
| RH | 99.57 | 99.20 | 99.82 | 98.14 | 99.50 | 1 (0) |
| Grade 1 RH | 97.85 | 97.85 | 93.62 | 99.30 | 97.85 | 0.995 (0.001) |
| Grade 2 RH | 99.92 | 99.98 | 99.96 | 99.96 | 99.96 | 1 (0) |
| Grade 3 RH | 93.11 | 99.26 | 97.31 | 98.04 | 97.88 | 0.989 (0.001) |
Abbreviations: 95%CI, 95% confidence interval; AUC, area under ROC curve; NPV, negative predictive value; PPV, positive predictive value; RH, retinal hemorrhage. All values indicate percentages except for AUC.
Figure 3. Receiver operating characteristic curve for performance of the neural network in the binary classification problem of retinal hemorrhage.
(A) hemorrhage versus no hemorrhage, (B) grade 1 hemorrhage versus the others, (C) grade 2 hemorrhage versus the others and (D) grade 3 versus the others
The trained DCNN had high performance for prediction of RH regardless of severity, with a sensitivity of 99.57%, specificity of 99.20%, PPV predictive value of 99.82%, NPV of 98.14% and accuracy of 99.50%. The AUC was 1, indicating excellent performance of the DCNN for the diagnosis of RH.
The DCNN showed varying performance for classifying the severity of RH. The accuracy for grade 1, 2 and 3 RH was 97.85%, 99.96% and 97.88%, respectively. The AUC for each classification was 0.995, 1.000 and 0.989, respectively, implying that our DCNN has the best performance for classification of grade 2 RH. Overall, our model showed high performance levels in the detection and grading of RH using fundus images.
We also assessed the performance level of the DCNN on the multiclass classification problem (normal and grade 1, 2 or 3 RH). When the image classification obtained by the DCNN was in accordance with the original label, it was regarded as a correct classification. The overall accuracy was then calculated as the number of correct classifications divided by the total number of images. Finally, we obtained 14,528 correctly classified images, yielding an overall accuracy of 97.44%.
Discussion
With the increasing understanding of the importance of neonatal ocular healthcare among parents, pediatric experts and ophthalmologists, there is a growing demand for early ocular examination worldwide, especially in developing countries. However, the numbers of ophthalmologists and individuals involved in ocular healthcare of newborns and children are still limited and are not increasing quickly enough to meet the rising demand. Thus, the development of automated and assistive systems for ocular screening is expected. The present study has demonstrated that artificial intelligence based on application of a DCNN can successfully classify and grade RH with high accuracy of 97.85 to 99.96% and an overall accuracy of 97.44%.
Compared with ophthalmoscopy or the red reflex test, wide-field digital imaging is the neonatal ocular screening method most widely recommended by the American Association of Pediatrics. This technique has some advantages in the comprehensive screening and documentation of neonatal ocular disorders. The system can be operated by a trained doctor or nurse with minimal clinical experience requirements. It also causes less distress in infants, increasing parents’ and ophthalmologists’ acceptance of this method for detection of RH and other disorders. The system can detect some fundus disorders other than RH, including retinopathy of prematurity [21–23], ocular birth defects [9], persistent hyperplastic primary vitreous [24], retinoblastoma [25] and others. Moreover, the digital system can generate high-resolution images of a wide range of the fundus that provide instant documentation of neonatal ocular disorders. The present study is the first to demonstrate that fundus images can also be used for automated detection of RH by combining these images with a DCNN.
RH is the most frequently encountered abnormality during neonatal universal ocular screening by the RetCam shuttle, accounting for more than 85% of all findings [9]. Most birth-related RH will spontaneously and quickly resolve because of its small size and number [8]. However, RH of great size, long duration or special location should be given closer attention because it can be a clinical sign of cerebral injury [4] or may affect the future development of vision. In the present study, we developed a DCNN that can successfully classify the severity of RH, which will support the long-term management of fundus hemorrhage.
In conclusion, this was a pilot exploration of the combination of artificial intelligence with digital fundus images for the detection of neonatal ocular abnormalities. We applied a DCNN in the classification and grading of RH, the most frequently encountered fundus abnormality in newborns, at high performance levels. In our next phase of development, we will further explore more DCNN models related to other ocular diseases or develop a comprehensive model for all the ocular diseases.
Abbreviations
- AUC
area under the receiver operating characteristic curve
- DCNN
deep convolutional neural network
- NH
neonatal hemorrhage
- NPV
negative predictive value
- PPV
positive predictive value
- RH
retinal hemorrhage
- ROC
receiver operating characteristic
Competing Interests
The authors declare that there are no competing interests associated with the manuscript.
Funding
This work was supported by the National Key Research and Development Program of China [2016YFC1000307]; National Science and Technology Basic Work [2014FY130100]; and the CAS Pioneer Hundred Talents Program (2017-074).
Author Contribution
Binbin Wang performed data analysis of DCNN performance, draft and revised the manuscript. Li Xiao designed the DCNN model, draft and revised the manuscript. Yang Liu trained and test the DCNN model, and revised the manuscript. Jing Wang, Beihong Liu and Tengyan Li collected all the the images and revised the manuscript. Xu Ma and Yi Zhao conceptualized and designed the study, revised the manuscript critically and approved the manuscript.
References
- 1.Kaur B. and Taylor D. (1992) Fundus hemorrhages in infancy. Surv. Ophthalmol. 37, 1–17 10.1016/0039-6257(92)90002-B [DOI] [PubMed] [Google Scholar]
- 2.Emerson M.V., Pieramici D.J., Stoessel K.M., Berreen J.P. and Gariano R.F. (2001) Incidence and rate of disappearance of retinal hemorrhage in newborns. Ophthalmology 108, 36–39 10.1016/S0161-6420(00)00474-7 [DOI] [PubMed] [Google Scholar]
- 3.Watts P., Maguire S., Kwok T., Talabani B., Mann M., Wiener J.. et al. (2013) Newborn retinal hemorrhages: a systematic review. J. AAPOS 17, 70–78 10.1016/j.jaapos.2012.07.012 [DOI] [PubMed] [Google Scholar]
- 4.Hughes L.A., May K., Talbot J.F. and Parsons M.A. (2006) Incidence, distribution and duration of birth-related retinal hemorrhages: a prospective study. J. AAPOS 10, 102–106 10.1016/j.jaapos.2005.12.005 [DOI] [PubMed] [Google Scholar]
- 5.Williams M.C., Knuppel R.A., O’Brien W.F., Weiss A., Spellacy W.N. and Pietrantoni M. (1993) Obstetric correlates of neonatal retinal hemorrhage. Obstet. Gynecol. 81, 688–694 [PubMed] [Google Scholar]
- 6.Egge K., Lyng G. and Maltau J.M. (1981) Effect of instrumental delivery on the frequency and severity of retinal hemorrhages in the newborn. Acta Obstet. Gynecol. Scand. 60, 153–155 [PubMed] [Google Scholar]
- 7.Zhao Q., Zhang Y., Yang Y., Li Z., Lin Y., Liu R.. et al. (2015) Birth-related retinal hemorrhages in healthy full-term newborns and their relationship to maternal, obstetric, and neonatal risk factors. Graefes. Arch. Cin. Exp. Ophthalmol. 253, 1021–1025 10.1007/s00417-015-3052-9 [DOI] [PubMed] [Google Scholar]
- 8.Forbes B.J., Christian C.W., Judkins A.R. and Kryston K. (2004) Inflicted childhood neurotrauma (shaken baby syndrome): ophthalmic findings. J. Pediatr. Ophthalmol. Strabismus 41, 80–88, quiz 105-106 [DOI] [PubMed] [Google Scholar]
- 9.Goyal P., Padhi T.R., Das T., Pradhan L., Sutar S., Butola S.. et al. (2017) Outcome of universal newborn eye screening with wide-field digital retinal image acquisition system: a pilot study. Eye 32, 67–73 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Callaway N.F., Ludwig C.A., Blumenkranz M.S., Jones J.M., Fredrick D.R. and Moshfeghi D.M. (2016) Retinal and optic nerve hemorrhages in the newborn infant: one-year results of the newborn eye screen test study. Ophthalmology 123, 1043–1052 10.1016/j.ophtha.2016.01.004 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Gulshan V., Peng L., Coram M., Stumpe M.C., Wu D., Narayanaswamy A.. et al. (2016) Development and validation of a deep learning algorithm for detection of diabetic retinopathy in retinal fundus photographs. JAMA 316, 2402–2410 10.1001/jama.2016.17216 [DOI] [PubMed] [Google Scholar]
- 12.Burlina P.M., Joshi N., Pekala M., Pacheco K.D., Freund D.E. and Bressler N.M. (2017) Automated grading of age-related macular degeneration from color fundus images using deep convolutional neural networks. JAMA Ophthalmol. 135, 1170–1176 10.1001/jamaophthalmol.2017.3782 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Gargeya R. and Leng T. (2017) Automated identification of diabetic retinopathy using deep learning. Ophthalmology 124, 962–969 10.1016/j.ophtha.2017.02.008 [DOI] [PubMed] [Google Scholar]
- 14.Ramachandran N., Hong S.C., Sime M.J. and Wilson G.A. (2017) Diabetic retinopathy screening using deep neural network. Clin. Exp. Ophthalmol. 46, 412–416 [DOI] [PubMed] [Google Scholar]
- 15.Takahashi H., Tampo H., Arai Y., Inoue Y. and Kawashima H. (2017) Applying artificial intelligence to disease staging: Deep learning for improved staging of diabetic retinopathy. PLoS One 12, e0179790 10.1371/journal.pone.0179790 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Egge K., Lyng G. and Maltau J.M. (1980) Retinal haemorrhages in the newborn. Acta Ophthalmol. (Copenh) 58, 231–236 10.1111/j.1755-3768.1980.tb05715.x [DOI] [PubMed] [Google Scholar]
- 17.Goodfellow I. J. et al. (2013) Maxout networks, Proceedings of the 30th International Conference on Machine Learning, 1319–1327, ACM, Atlanta, GA, U.S.A. [Google Scholar]
- 18.Srivastava N. et al. (2014) Dropout: a simple way to prevent neural networks from overfitting. J. Machine Learning Res. 15, 1929–1958 [Google Scholar]
- 19.Rami A. et al. (2016) Theano: A Python framework for fast computation of mathematical expressions, http://adsabs.harvard.edu/abs/2016arxiv160502688T [Accessed: May 2016] [Google Scholar]
- 20.Boer D. (2005) A Tutorial on the Cross-Entropy Method" (PDF). Ann. Oper. Res. 134, 19–67 10.1007/s10479-005-5724-z [DOI] [Google Scholar]
- 21.Ju R.H., Ke X.Y., Zhang J.Q. and Fu M. (2012) Outcomes of 957 preterm neonatal fundus examinations in a Guangzhou NICU through 2008 to 2011. Int. J. Ophthalmol. 5, 469–472 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Roth D.B., Morales D., Feuer W.J., Hess D., Johnson R.A. and Flynn J.T. (2001) Screening for retinopathy of prematurity employing the retcam 120: sensitivity and specificity. Arch. Ophthalmol. 119, 268–272 [PubMed] [Google Scholar]
- 23.Xu Y., Zhou X., Zhang Q., Ji X., Zhang Q., Zhu J.. et al. (2013) Screening for retinopathy of prematurity in China: a neonatal units-based prospective study. Invest. Ophthalmol. Vis. Sci. 54, 8229–8236 10.1167/iovs.13-12297 [DOI] [PubMed] [Google Scholar]
- 24.Han M., Zhao K., Zhang T., Li Y., Gao J. and Dong L. (2016) Apply of RetCam and color Doppler imaging in persistent hyperplastic primary vitreous. Zhonghua Yan Ke Za Zhi 52, 362–365 [DOI] [PubMed] [Google Scholar]
- 25.Fan X., Hashem A.M., Chen Z., Li C., Doyle T., Zhang Y.. et al. (2015) Targeting the HA2 subunit of influenza A virus hemagglutinin via CD40L provides universal protection against diverse subtypes. Mucosal Immunol. 8, 211–220 10.1038/mi.2014.59 [DOI] [PMC free article] [PubMed] [Google Scholar]



