1 Introduction

Medical imaging is a process of creating images of internal parts of the human body for medical diagnosis. The internal structure of the body can be easily visualized with medical images. Many recordings and measurement techniques are used to produce images. Computer vision techniques and medical analysis concepts are designed to provide medical image data. It is extended to all fields of medical science, especially to Ophthalmology.

Ophthalmology [1] is a medical branch in which it deals with diagnosis and treatment of eye disorder. There are many retinal diseases, such as glaucoma, diabetic retinopathy, cataracts, etc. From the past 15 years, various techniques for the automatic detection of glaucoma are developed but these methods need an improvement.

1.1 Retinal fundus images

The human eye is an essential organ in the human body in which allows vision. The human eye is capable to differentiate more than 10 million colors, enables depth perception. It is composed of two segments, namely the anterior segment and the posterior segment. The anterior segment consists of iris, cornea, and lens. The posterior segments composed of retina, vitreous, choroid, and sclera. The area where the connection between sclera and cornea is the limbus. The central part of the eye is called the pupil and which is surrounded by a pigmented circular area called iris. Figure 1 [2] shows the anatomical structure of the human eye.

Fig. 1
figure 1

Structure of the human eye

The fundus camera is used to capture the retinal images, and these images are called fundus images. These images help doctors to quickly diagnose most varieties of eye diseases which occur on the retina. The various eye diseases like glaucoma, maculopathy, retinopathy, etc. can be easily measured. Figure 2 represents the Structure of Retina and its main componentsThere are different retinal features like an optic disc, optic cup, fovea, macula, exudates, etc. These features vary from person to person. Mainly glaucoma will be identified by measuring the retinal part of optic disc and optic cup.

Fig. 2
figure 2

Structure of retina

Optic disc [3, 4] is the bright yellow part of the retina containing more neurons. The shape slightly looks like circular, but it varies from person to person. It is also named as blind spot because it does not provide the color-attiring photoreceptors such as rods and cones. Optic Cup is the bright central part of the optic disc and which is an essential parameter for detecting glaucoma. Compared to the optic disc, the optic cup is smaller in size. For a healthy patient, the optic cup shape is one-third of the optic disc. If the size of the optic cup increases than the standard size, it leads to glaucoma.

The macula is the central part of the retina. Which is approximately yellow, and the size is 5.5 mm. It receives images and light signals. The macula is a very delicate region in which many photoreceptor cells used to get color and subtle details. Due to degeneration, infection, vascular trauma, and inflammatory problems, the macula may get affected. The fovea is the central part of the macula, and it does not contain any blood vessels. It is a minimal area, and the diameter is approximately 1.5 mm. The fovea helps to give a central vision for the human eye, which is dark brown or red, and it is the dark part of the retina. Exudates are one of the features of the retina, which forms due to the leakage of the arteries and veins. It is a bright patch form of the retina, and the appearance is yellow-white.

1.2 Main contribution of this paper

There are many survey papers till date, which gives information about the optic disc and optic cup segmentation and classification techniques used for the diagnosis of glaucoma. But in most of the existing survey papers, we get the information about image processing techniques applied for both segmentation and classification approaches, and also there are only a few survey papers that are particular about the optic disc, optic cup segmentation and classification process. In the current system, there is an automatic and early detection of glaucoma to make the system faster. Hence, in recent years most of the researchers applying machine learning and deep learning techniques to make the decision-making system. In this paper, all the existing till date published articles including both image processing and deep learning techniques applied for fundus image segmentation and classification methodologies are collected from multiple resources. This article helps to compare the image processing and deep learning technique by performance metrics. Hence, this paper promotes the researcher to improve performance.

The paper contains eight sections. Section 2 describes detail description and various types of glaucoma. Section 3 contains the information about various publicly available database, Sect. 4 describes different types of parameters used to detect the OD and OC, Sect. 5 contains the related works to find disc and cup, Sect. 6 describes the performance metrics used for checking the performance of the method applied, Sect. 7 describes the research gaps that are identified after the survey and final section concludes the findings.

2 A brief overview of glaucoma

Glaucoma is a significant eye disease that occurs on the retina of the eye, and it is the second-largest eye disease in the world which causes blindness. The optic nerve connects to the brain and it helps to scan the images from the eye. The glaucoma damages to these optic nerves. If glaucoma is not detected in the early stage, it leads to vision loss. The regular eye check-up is the only precautionary measure to avoid glaucoma. Mainly glaucoma occurs due to the Intraocular Pressure (IOP) [5, 6] on the eye. Intraocular pressure is the high pressure on the eye; due to this, more fluid is produced on the eye, leading to the blockage on the eye's channel. Due to this, the optic nerve gets damaged and it gives rise to glaucoma.

Some standard tests like Tonometry, Ophthalmoscopy, Perimetry, Pachymetry, etc., are used for glaucoma detection. The pressure that occurs within the eye is diagnosed by conducting tonometry, and the device is called a tonometer. If the value is more than 21 mm Hg, it will be classified as glaucoma. In Ophthalmoscopy, the doctors detect any damage to the Color and Shape of the optic nerve. Perimetry helps to find the range of pressure inside the eye. Based on the cornea's thickness, the shape and color of the optic nerve is detected by the Pachymetry test.

Mainly glaucoma is classified into three types (1) Open Angle Glaucoma (2) Closed Angle Glaucoma and (3) Normal-tension Glaucoma.

2.1 Open angle glaucoma

It is a major and most common type of glaucoma. In this case, there are no early symptoms or early warning signs. During the initial stages, it isn't easy to identify. The people who are suffering from open-angle glaucoma will feel normal in the beginning stages. Once they lose the vision, the doctors will come to know that the person is suffering from glaucoma. Out of all glaucoma cases, 90% of cases suffering from this type of glaucoma.

In the case of open-angle glaucoma, the produced eye fluid will not be drained clearly in the drainage canals. The liquid will be slowly blocked and resulting in slow fluid flow through the drainage canals. Due to this, the intraocular pressure on the eye increases, causing the optic nerve to get damaged. In this case, a wide-angle will be developed between the cornea and iris. If the blockage occurs beyond or somewhere inside the drainage canals, it will lead to open-angle glaucoma. Figure 3 [7] shows the complete architecture of open-angle glaucoma.

Fig. 3
figure 3

Open-angle glaucoma

2.2 Closed-angle glaucoma or acute angle glaucoma

Closed-angle glaucoma is one of the types of glaucoma. The symptoms of closed-angle glaucoma are nausea, headache, eye pain, and vision will get blurred. The generated eye fluid will not get adequately drained in the drainage canals. Due to this, intraocular pressure occurs and causes the optic disc to get damage. The narrow-angle form between iris and cornea. If the blockage occurs at the entrance of the drainage, canals lead to closed-angle glaucoma. Figure 4 [7] shows the complete architecture of closed-angle glaucoma.

Fig. 4
figure 4

Closed-angle glaucoma

2.3 Normal-tension glaucoma

It is also called low-tension glaucoma [8]. In this case, the optic nerve gets affected even though there is no much pressure on the eye. The average pressure on the human eye is in the range between 12–22 mm Hg. The people having normal eye pressure also sometimes suffer from glaucoma. Mainly it occurs due to family history. They were treated by decreasing the pressure on the eye as low as possible using laser treatment, medications, and by some surgery.

3 Retinal image acquisition

In the retinal imaging technique [9], the two-dimensional images converted into three-dimensional retinal tissues. These images are useful for diagnosing and managing several eye diseases. Capturing the rear image of the eye is called the fundus. Hence it is named a fundus camera. The detailed visualization of the eye can be easily obtained by using a fundus camera [10]. The fundus cameras are readily available in most of the eye care centres and hospitals. Some of the eye's main components that can easily visualized from the fundus camera are optic disc, fovea, exudates retina, and macula.

3.1 Publicly available dataset

Some of the publicly available datasets used to detect glaucoma are discussed below,

3.1.1 DRIVE dataset

DRIVE (Digital Retinal Images for Vessel Extraction) [11] database was acquired from the diabetic retinopathy research program in the Netherlands and consist of nearly 40 images. Out of 40 images, 7 of them are having pathology, and remaining are normal images. The images automatically divided into two groups with 20 images for testing purposes and the other 20 images for training purposes. Those images captured using a canon CR5 nonmydriatic 3eco camera with a 45-degree field of view to get high clarity fundus images.

3.1.2 MESSIDOR dataset

MESSIDOR Dataset [12] consists of two sets of images containing 1200 images. One set used for retinopathy grade, and another set is for the risk of macular edema. French Ministers of research and defence capture the images by ophthalmological department. The captured images stored in the TIFF format. The nonmydriatic retinopathy with a 45-degree field of view is used to capture the images.

3.1.3 ORIGA dataset

ORIGA [13] dataset mainly used for Glaucoma analysis and research purposes. This dataset consists of 650 images. Out of 650 images, 160 images were glaucomatous, and 482 were non-glaucomatous images.

3.1.4 REFUGE dataset

The REFUGE [14] dataset is a part of the Retinal Fundus Glaucoma Challenge (REFUGE), which is in conjunction with MICCAI 2018. This dataset contains 1200 fundus images, and it is the current largest publicly available fundus image database. Here, the ground truth segmented images and the fundus images clinical values are also available in the database.

3.1.5 DRISHTI-GS dataset

The DRISHTI-GS [15] dataset consists of 101 fundus images, including 50 training images and 51 testing images. The images include OD and OC masks with their CDR values. This dataset is collected by joint association of Arvind Eye hospital located in Mumbai and researchers of IIIT Allahabad. It consists of all age group images and is useful only for research purposes.

4 Parameter analysis

The image classification methods help to differentiate the images from glaucoma and healthy images based on some parameters. Some of the parameter metrics are CDR, ISNT rule, DDLS (Disk Damage Likelihood Scale), GRI (Glaucoma Risk Index), etc.

4.1 CDR

Finding horizontal, vertical, and area ratio between the cup to disk is called CDR (Cup to Disk Ratio) [16]. If the ratio is less than or equal to 0.3, then it is considered as healthy eye. Once the ratio increases by more than 0.3, then it is treated as an abnormal eye. Based on CDR value, we can quickly identify whether the person is having glaucoma or not. HCDR (Horizontal Cup to Disk Ratio) is used to calculate the horizontal ratio and calculated using the below Eq. (1).

$${\text{H}}_{{{\text{CDR}}}} = {\text{ H}}_{{{\text{CUP}}}} /{\text{ H}}_{{{\text{DISK}}}}$$
(1)

HCUP, HDISK is the horizontal length of the optic cup and optic cup respectively.

To calculate the vertical ratio, VCDR (Vertical Cup to Disk Ratio) is used and Eq. (2) gives the formula to calculate VCDR,

$${\text{V}}_{{{\text{CDR}}}} = {\text{ V}}_{{{\text{CUP}}}} /{\text{ V}}_{{{\text{DISK}}}}$$
(2)

VCUP, VDISK is the vertical length of the cup and disk respectively.

To calculate Area, ACDR (A rea of Cup to Disk Ratio) is used with the Eq. (3).

$${\text{A}}_{{{\text{CDR}}}} = {\text{ A}}_{{{\text{CUP}}}} /{\text{ A}}_{{{\text{DISK}}}}$$
(3)

ACUP is an Area of the optic cup. ADISK is an Area of the optic disk.

4.2 ISNT rule

The inner layer of the optic disk contains neuroretinal rim. The rim consists regions of inferior, superior, temporal, and nasal. All these regions are ordered based on the ISNT rule. The below-mentioned order is the standard ISNT rule form for the normal eye.

$${\text{I }} > {\text{ S }} > {\text{ N }} > {\text{ T}}$$

here I is inferior, S is superior, N is nasal, and T is temporal.

4.3 DDLS (Disk damage likelihood scale)

The scale which measures the disk damage likelihood is called DDLS [2], and also it calculates the severity of the disease.

$${\text{DDLS }} = {\text{ MinRim}}_{{{\text{width}}}} /{\text{ DD}}$$
(4)

here DD is the Disk Diameter, MinRimwidth is the minimum width of rim and is calculated using the Eq. (4).

4.4 GRI (Glaucoma risk index)

Using various Principal Components, GRI is Calculated. Based on the range of PCA (Principal Component Analysis), eye can be classified as normal or abnormal. The principal component PC1 to PC5 is calculated. Equation (5) used to calculate the GRI value.

$${\text{GRI}} = 6.8375 - 1.1325 \, \left( {{\text{PC}}1} \right) \, + 1.6500 \, \left( {{\text{PC}}2} \right) \, + 2.7225 \, \left( {{\text{PC}}3} \right) \, + 0.6750 \, \left( {{\text{PC}}4} \right) \, + 0.6650 \, \left( {{\text{PC}}5} \right)$$
(5)

If the GRI range is (8.68 ± 1.67), then the eye is treated as a healthy eye and if the GRI range is (4.84 ± 2.08), then the eye is treated as the abnormal eye.

5 Literature survey

In recent years, medical imaging is growing very fast for medical diagnostics by using digital imaging systems. Many techniques like image processing, machine learning, deep learning, etc., are applied to identify glaucoma. The glaucoma is mainly identified on ONH (optic nerve head). So, to detect ONH many localization and segmentation methods are used. After the localization of optic nerve head, locating the boundary of optic disc and optic cup is the challenging task here. In the existing system, many methods were applied, but to increase the parameters like accuracy, sensitivity, and specificity, new methods has to be identified. As glaucoma leads to vision loss in severe cases, detection in the early stages is the key to avoid vision loss.

The literature survey on various segmentation and classification approaches over retinal fundus images are discussed in the below Tables 1 and 2 respectively. Table 3 explains the Literature survey based on some of the performance metrics.

Table 1 Summary of various segmentation approaches for the detection of optic disc and optic cup
Table 2 Summary of various classification approaches
Table 3 Literature survey based on some of the performance metrics

By comparing all the segmentation approaches from Table 1, it is clear that all the above captured methods have both advantages and disadvantages. The Level set-based approach [36, 37] is mainly used for handling sharp corners and it is an efficient and versatile approach. It is a very time-consuming method and it results in under segmentation or over-segmentation. The threshold-based approach [38, 39] is fast and simple. This method does not give good results with a flat and broad range of pixels. The clustering-based approach [40] is easy to eliminate noise and works well with differentiating homogeneous and heterogeneous regions. According to the survey, the segmentation of images with a clustering-based approach is better than other approaches.

The KNN is very effective for a large number of training data, but the computation cost is very high. It is not a parametric methodology for data arrangement. The information comprises of k models. In SVM, the searching capability is very high. But the disadvantage is, it is very inefficient for binary image classification. It is a supervised learning technique of data analysis and an administered learning technique for information investigation. In Naïve Bayes classification, images are trained quickly, but it assumes that the extracted features are independent. It is a straight forward classifier, in which it is dependent on Bayes’ hypothesis. Random forest works well with broad number dataset classification, but it is not best fit for the dataset that contains noise. In ANN, less time is required for training model with training the data but the computation cost is high. ANN is a computational model, dependent on the working of neurons in the organic cerebrum with an enormous gathering of straightforward unit associations called axons. Its associations convey actuation signals with shifting quality. If the approaching sign is solid, neurons get enacted and travel to another associated neuron. Hence, the SVM classifier is the most commonly used classifier in which it gives maximum accuracy compared to all classification approaches. However, every method has its advantages and disadvantages, but improved methods need to be proposed for the detection of the optic disc and optic cups to diagnose glaucoma.

We have many segmentation approaches for the detection of the optic disc and optic cup. In a Level set-based approach, it tracks interfaces of moving articles by taking care of the issue of bend and surfaces in an understood way by utilizing advancing shape. It utilizes the idea of sign capacity whose zero compares to a unique curve. Active contour modeling based approach depicts the layout of the limit by limiting the energy-dependent on forces which apply weight toward shapes of the item and inner powers that oppose the deformation. Active shape demonstrating based approach iteratively disfigures to recognize the state of the article in the new picture. Here, the state of the model is obliged by the distribution of focuses on the object. It utilizes Mahalanobis separation dependent on standard deviation and intends to search for solid edges in the picture. The clustering-based approach is an iterative methodology of collecting a bunch of objects having comparable conduct lie on one gathering while lying on another gathering which dependent on likenesses. It depends on the estimation of the functioning of density, the total number of clusters, threshold get formed, and distance function. A hybrid approach is used for the segmentation of an object, which is the combination of many segmentation approaches. To extract the ROI (Region of Interest), this technique will be mainly used.

In the existing systems, there is a manual detection process, in that it requires manual input from the ophthalmologist to proceed for the diagnosis of glaucoma. This process requires more time; also, there is no quality in recognition. Hence, it's essential to develop a faster and automatic system. The machine learning and deep learning techniques help in all the computer vision tasks, especially in the medical field. This deep learning technique also plays a major role in the segmentation and classification of images. In the existing papers, the researcher applied different types of architecture using deep learning techniques and achieved good results. This technique helps the system to train and test a large number of images in a limited amount of time. It helps to extract the hierarchical information from the images and to distinguish from glaucoma and non-glaucomatous images.

The understandings of the existing system methods applied for the detection of glaucoma discussed below,

  • Compared to image processing techniques, machine learning and deep learning techniques give good accuracy for the detection of glaucoma.

  • The survey suggests that Pre-Processing is an essential initial step to be concentrated.

  • The optic disc is more visible on the green channel of the RGB image. In the green channel, the image background and the blood vessels will be easily differentiated. It helps for the removal of blood vessels in the detection of optic disc.

  • Finding optic disc and central bright pixel of optic disc are used for the detection of the optic cup.

  • Identifying morphological technique for detecting the optic disc and optic cup boundary to calculate cup-to-disc ratio.

6 Performance metrics

The performance of the methodologies applied for the detection of optic disc and optic cup can be estimated by using some parameters. The few metrics used for the performance analysis is discussed below,

6.1 CDR acceptability

The CDR acceptability is the difference between the CDR which is calculated manually and the clinical CDR. If the difference between the two is less than 0.2, then it is normal; otherwise, it is abnormal. The CDR acceptability measured by using below Eq. (6),

$${\text{CDRacc }} = {\text{CDRclinical }} - {\text{ CDRcal }} \le \, 0.2$$
(6)

6.2 Mean error

The closeness between the observed outcome and the actual result is called a mean error. If the mean error increases, the performance decreases.

6.3 Standard deviation

The difference between the cluster of objects and the mean error is the standard deviation. If the mean error increases, then the performance decreases.

6.4 F-score

F-score is the metric used to measure the accuracy in which the value is between 0–1. If the resultant value close to 1, then it gives better performance.

6.5 Correlation coefficient

The correlation coefficient is used to find the relationship between the direction and strength of two variables that are in the range of 0–1.

6.6 Sensitivity, specificity and accuracy

Based on the diagnostic examinations, the test will be analysed on the view of accuracy, sensitivity, and specificity [17] characteristics. The test which is used for the detection of positive infection is sensitivity. How likely the patients without sickness will be effectively eliminated with the help of specificity. The correctness of the test is measured by accuracy. The below mentioned Eqs. (7), (8), (9) gives the formula to calculate Accuracy, Specificity, and Sensitivity respectively.

$${\text{Accuracy }} = \, \left( {{\text{TN}} + {\text{TP}}} \right)/\left( {{\text{TN}} + {\text{TP}} + {\text{FN}} + {\text{FP}}} \right)$$
(7)
$${\text{Specificity }} = {\text{ TN}}/\left( {{\text{TN}} + {\text{FP}}} \right)$$
(8)
$${\text{Sensitivity }} = {\text{ TP}}/\left( {{\text{TP}} + {\text{FN}}} \right)$$
(9)

TN = True Negative FN = False Negative TP = True Positive FP = False Positive

7 Research gap

The retinal image analysis is a very difficult task because of its structural feature variations of the patient. According to the survey, the diagnosis of glaucoma is based on the proper detection of the optic cup and optic disc. The difficulties faced during the detection of glaucoma is listed below,

  1. a

    Over segmentation or under segmentation occurs due to the low contrast of an image and invisible borders between the optic cup and disc.

  2. b

    The presence of peripapillary atrophy and blood vessels on the retina decreases the performance of the segmentation. Hence, the pre-processing of an image is a very important step to remove the blood vessels and to avoid the peripapillary region on the retina as a disc region. So, by applying many filters and improved morphological approaches during pre-processing will help to segment the optic region easily.

  3. c

    Comparatively the features of OD and many other parts of the retina are same. Because of the entire brightness and the lesion around the OD, it is very difficult to locate. Hence extracting more features helps to increase the performance in the detection of OD.

  4. d

    Increasing the number of datasets for image classification will decrease the performance of the model. Hence, improving the classification approaches helps to classify the normal and glaucoma image.

8 Findings

  • The usage of more filters and morphological operations to remove blood vessels during image pre-processing may lead to the problem during the segmentation process.

  • The red channel is more suitable for its clear appearance during optic disc segmentation as compared to the other channels.

  • The green channel is more suitable for optic cup segmentation due to its high contrast in the channel compared to other channels.

9 Conclusion

The paper includes many segmentation and classification methodologies applied till date for the diagnosis of glaucoma. Here we summarise many challenges that have to be taken for consideration to overcome the problems of segmentation and classification techniques. In the existing papers, the researchers considered many features for classification purposes. To increase the classification performance, still more features can be extracted. The main challenge is to avoid under segmentation or over-segmentation of optic disc and cup boundary due to the presence of more number of blood vessels on this part. This problem can be overcome by segmenting the disc on the red channel due to the highest inequality between the disc and non-disc region and many challenges in optic disc segmentation due to the presence of blood vessels can also be avoided by applying morphological operations in the pre-processing stage. Compared to the segmentation of optic disc, the optic cup segmentation is very tedious due to its interlink with many surrounding tissues and blood vessels. Hence, due to the less visibility of blood vessels in the green channel, the optic cup segmentation can be done on this channel. From the study of the existing technique, it shows that the deep learning techniques applied during the segmentation and classification of fundus images give more accurate result compared to image processing techniques. But, it shows that the techniques applied can be improved for getting more accuracy in locating the boundary of the optic disc and the optic cup. Finally, the paper concludes that the improvement in the segmentation and classification approaches helps for the early diagnosis of glaucoma.