1 Introduction

Worlds human population is increasing rapidly, with the increasing population the many people are getting affected by eye disease. Many researchers have identified that the major source of the blindness amongst the world population is because of glaucoma. It affects the optic nerve in the human eye by causing loss of vision. It is identified that glaucoma will be severe for the people aged above 40 years and will be very severe for the people aged above 60 years. If the glaucoma is identified at the later stages curing it will become a difficult task. So, the glaucoma is needed to be identified at the earlier stages to control the vision loss. The people will be seen with no symptoms until the human vision get affected which make the detection of eye disease more challenging. The glaucoma can be diagnosed by determining the damage in optic nerve head or by assessing the visual field. Optic disc is a part in the human eye, from where all the optic nerves connect to. It is vertically oval and the dimensions ranging from the average of 1.92 mm vertical dimension and 1.76 mm horizontal dimension [1]. Figure 1 represent the structure of fundus eye image.

Fig. 1
figure 1

Structure of fundus image

The optic disc detection is a vital part of glaucoma diagnosis. In detection of optic disc, the portion of it need to be segmented for glaucoma diagnosis. Optic disc will be varying in sizes and looks bright yellowish color with the blood vessels around it. Cup disc ratio are crucial for diagnosis of disease. The optic disc shall have normal cupping or sometimes they may be flat. Determining the cup disc ratio is an essential part in glaucoma diagnosis. Glaucoma or any other pathology is confirmed if the cup disc ratio is high. If a person is normal and not affected by glaucoma then his vertical cup disc ratio will be lesser than horizontal cup disc ratio. Determining the cup disc ratio is a tedious and laborious process which are done only by the professionals. Automating the optic disc detection may help the diagnosis better, faster and reduce the manual process of detection by experts. In automatic optic disc detection, major parts in retina like blood vessels, optic disc and optic cup looks similar which make the optic disc detection more challenging.

Clustering is an unsupervised method which partitions an image into number of clusters. Agglomerative, Divisive, DBSCAN, OPTICS, Fuzzy C Mean and K-means are some of the clustering methods that can be used for segmenting the optic disc. The need for localization of optic disc from fundus image is mandatory as they are mostly used by ophthalmologists for human eye diagnosis [2]. Many machine learning techniques were applied in segmentation and localization of optic disc [3]. Also many researchers have experimented the optic disc detection using Evolutionary approaches [4] and deep learning techniques [5, 6]. Partition-based clustering, Density based clustering and Hierarchical based clustering are few unsupervised learning methods, which were used in optic disc localization of fundus image [7, 8].

The objective of this chapter is to determine and localize the optic disc from the fundus image using appropriate clustering methods like DB Scan clustering, Fuzzy C Mean clustering, Hierarchical clustering and K-Means clustering. These clustering methods were applied on the following dataset namely DRIONS DB dataset, DIARETDB1 dataset and High-Resolution Fundus (HRF) dataset. The suitable dataset for the above clustering methods was determined and the performance was analyzed using various performance measures.

The remainder chapter are organized as, the related work is discussed in Sect. 2, followed by discussion about the clustering methods in Sect. 3, Methodology deployed in detecting optic disc in Sect. 4 and Sect. 5 discuss about the results obtained from the clustering algorithms and Sect. 6 about the conclusion.

2 Related Work

Many researches are been carried out in the field of optic disc segmenting in the fundus image. Table 1 summarizes the various approaches in optic disc segmenting of fundus eye image. Lupascu et al. [9] applied a technique for optic disc detection by identifying the finest corresponding circles. In this technique hundreds of circles were generated by providing the initial points and point of interest. The best fitting circles in the optic disc regions are determined using the regression methods and texture descriptors. Based on optimum properties hundreds of circles were reduced to less than twenty circles and the best optic disc circle is determined by selecting the circle in which the correlation coefficient is maximum. This algorithm was tested on the DRIVE dataset containing 40 images and obtained 95% success rate on optic disc localization and 70% for identifying optic disc. Since the images with low quality were not properly detected this technique could be improved.

Table 1 Methods for optic disc segmentation

Youssif et al. [10] applied a matched filter based algorithm for optic disc segmentation called vessels direction matched filter which uses adaptive histogram and illumination equalization for segmenting the retinal blood vessels. In this algorithm, optic disc vessels direction is roughly matched by using the matched filter and the retinal vessels are segmented using 2-D Gaussian matched filter. The optic disc center candidates are then determined by applying low intensity filters to the segmented retinal vessels. The evaluate of proposed algorithm is done by considering the STARE dataset having 81 images and DRIVE dataset containing 40 images and it is determined that the proposed algorithm has correctly identified optic disc center in 80 fundus images (98.77%) in STARE dataset and 40 images (100%) in DRIVE dataset. The future work of the algorithm aims in applying pre-processing techniques in blood vessel segmentation.

Zhu and Rangayyan [11] applied a method using Hough transform for segmenting the optic disc automatically from fundus image, where the detection of edges is done through sobel operators and canny edge detection followed by detection of circles through Hough transform. Color component of the image was normalized as a pre-processing step and morphological erosion to remove the artifacts. The outliers are removed using median filter. Convolving the pre-processed image with specified operators, vertical gradient and horizontal gradient components of the Sobel operator are attained. Canny operators were applied to determine the edges based on optimization procedures, multiscale analysis and multidirectional derivatives. Once the edges were detected the center and radius of the circle was determined by applying Hough transform. DRIVE dataset and STARE dataset are used in testing the algorithm. The algorithm for sobel method achieved a success rate of 40.24% in STARE dataset and 92.5% in DRIVE dataset and a success rate of 80% in DRIVE dataset and 21.95% in STARE dataset for canny method. By applying additional characteristics of optic disc this algorithm can be improved.

Lu [12] proposed a circular transformation technique to determine and segment the optic disc which detects the color variants and circular boundary. In pre-processing the image intensity is determined from the green component and red components which provides more structural information on optic disc. The image was resized to one third and median filter applied to remove noise on blood vessels. Circular transformation is designed by determined the varying distance within the boundary area points and circular area which reaches minimum when the point lies on centroid region. Maximum variation pixels were filtered and by converting the image optic disc map is determined. The maximum values that are present in the optic disc map will represent the optic disc center. MESSIDOR dataset, ARIA dataset, STARE dataset containing 1200, 120, 81 images respectively are considered for evaluating the proposed technique. The optic disc detection accuracy of this technique was found to be 98.77% for MESSIDOR dataset, 99.75 for STARE dataset and 97.5% for ARIA dataset and the accuracy of optic disc segmentation of 93.4% for STARE dataset and 91.7% for ARIA datasets.

Welfer et al. [13] applied an adaptive method to optic disc segmenting the using mathematical morphology, which is robust for the images acquired from varying illumination and acquisition conditions. This methodology has two stages of optic disc detection. Initially the location of optic disc is detected from the vessels arcade information by determining the background and foreground of green channel image using RMIN operator. Next stage the boundary of optic disc is determined using watershed transform. The evaluation was done on DRIVE data set containing 40 images and DIARETDB1 dataset containing 89 images. It achieves a success rate in optic disc localization of DIARETDB1 dataset is 97.75% and DRIVE dataset is 100%. The future works of this work shall consider retina structures like fovea for optic disc detection.

Yin et al. [14] applied a technique which uses circular statistical deformable model, Hough transform and edge detection to determine the optic disc. In pre-processing the effect of blood vessels are reduced by carrying out voting scheme-based heuristics for selection of optimal channel. The optic disc center is determined using Hough transform, while the optic disc boundary is determined using statistical deformable model. Subsequently optic disc circle is approximated using Hough transform and the optic disc center and diameter are determined. Finally, boundaries of image texture are fine-tuned by applying statistical deformable model and optic disc boundary is smoothed by direct least squared ellipse fitting method. The evaluation of the applied technique was determined using ORIGA dataset having 650 images. The result states that this technique have 11.3% average error in the overlapping area and 10.8% average absolute area error.

Cheng et al. [15] applied an elimination method called peripapillary atrophy (PPA) elimination for optic disc segmentation. This proposed method has three stages of implementation include edge filtering, Hough transform and β-PPA detection. In the initial stage the noise is removed by applying low pass filter and the optic disc edges and region of interest are extracted. In edge filtering α and β -PPA was eliminated. α-PPA includes the epithelial cells which are duskier than the optic disc and β-PPA is similar to the color of optic disc with region of chorioretinal atrophy. α-PPA is determined by comparing the threshold value with the region of interest. Hough transform is applied as the second stage of PPA elimination. In the final stage PPA elimination is to detect β-PPA, due to its similar color as optic disc make the detection difficult when compared to α-PPA. The ring area of optic disc boundary was determined and was segmented into quarters. The feature point is detected by considering the local maxima and minima. The feature points are compared with the threshold, If the feature points are higher than the threshold means than β-PPA is present. The edge points are removed which present along the disc boundary that is detected. The new optic disc boundary is determined by reapplying the constrained elliptical Hough transform. The proposed method is evaluating by considering ORIGA dataset consisting of fundus images. The results infer that the method has 10% average overlapping error, 7.4% average absolute area error and 4.9% average error of vertical disc diameter.

Tjandrasa et al. [16] applied a technique that is initiated by converting the image into grayscale followed by image enhancement using homomorphic filtering to remove the uneven illumination, once the image is enhanced the blood vessels are removed to simplify segmentation task. The low pixel values are determined and the blood vessels are blurred using median filter. The next stage in optic disc segmentation is to perform Hough transform to determine the matched optic disc location. Subsequent optic disc boundaries are determined by performing active contour model. The DRIVE dataset is used for evaluation the experimental results and it found that the optic nerve is segmented with an accuracy of 75.56%.

Fraga et al. [17] applied a model with faster localization and segmentation. This technique uses multiscale retinx algorithm for pre-processing. Fuzzy Hough transform and fuzzy convergence of the blood vessels are used to identify the optic disc location. Optic disc segmentation is then carried out by applying canny filters. Finally, the accuracy of segmentation was determined using histogram information. VARIA dataset containing 120 images is considered for evaluation. The result found that the success rate of proposed algorithm is 100% for optic disc localization and 93.36% for optic disc segmentation.

Zhang et al. [18] used a technique in which the localization is done through 1D projection to determine the optic disc with its appearance characteristic of optic disc in vertical location and vessel distribution of optic disc in horizontal location. The horizontal location of optic disc is determined using vascular degree and with the edge gradients around the optic disc, the vertical location was obtained. In pre-processing the region of interest was identified using mask operation. Once the pre-processing is complete optic disc horizontal location is computed based on vascular degree, then the vascular scatter degree is determined by defining vertical window and sliding over the vessel map. The optic disc vertical location is computed using 1D vertical projection signal which is obtained by defining the rectangular window centered at optic disc horizontal location and sliding over Gabor filter map. Evaluation of proposed algorithm was done by considering the DRIVE dataset containing 40 images, STARE dataset containing 81 images, DIARETDB0 dataset containing 130 images and DIARETDB1 dataset containing 89 images. The outcomes infer that the success rate of DRIVE dataset is 100%, STARE dataset is 91.4%, DIARETDB0 dataset is 95.5% and DIARETDB1 dataset is 92.1%.

3 Clustering Methods

Clustering is broadly used in the area of image segmentation. This clustering methods forms a variety of separate clusters by partitioning the images [19]. The clustering is generally classified as Density based clustering method, Hierarchical based clustering method and Partition based clustering method. Figure 2 represent the complete classification of clustering methods.

Fig. 2
figure 2

Classification of clustering methods

Partition method:

It divides the data into number of partitions based on their characteristics and similarity. Once the user specifies the number of partitions to be made the algorithm divides the data into as many partitions, where every partition represents a cluster. Partition clustering methods may include K-Means, K-medoids, CLARA, FCM, etc.

Hierarchical method:

It involves formation of clusters in a planned order, which will be grouping into tree of clusters. Initially it will identify and merge the two comparable clusters which are close to each other and will be continued until all the comparable clusters are combined each other. The major aim of hierarchical clustering method is to generate a hierarchical series of nested cluster. The basic methods of hierarchical clustering include Agglomerative and Divisive clustering methods. Agglomerative clustering method uses an approach which is bottom up while the Divisive which uses the top down approach.

Density based method:

It is a clustering method where the clusters are determined by forming a distinctive cluster one for high density data and another for low density data. Typically, the low-density data are considered as outlier or noise. The different types of density-based methods may include DBScan, Optics, etc.

3.1 Agglomerative Clustering

Agglomerative clustering is a bottom up method of hierarchical clustering in which individual clusters are considered form initial data point. The comparable clusters are joined to other clusters in each iteration until the formation of a cluster.

  • Agglomerative clustering Algorithm

  •   Determine Matrix

  •   Let the unique Cluster be a Data Point

  •   Repeat until formation of N clusters

  •     Merge the Two Neighboring Clusters.

  •     Update Matrix.

3.2 K-Means Clustering

Most extensively used iterative techniques are K Means clustering that partition the data into discrete non-overlapping clusters with individual data fit into the group. It ensures individual cluster are different by making similar inter-cluster data points. Sum of squared distance between data points are assigned as a cluster to data points [20].

  • K-Means clustering Algorithm

  •   Input No of cluster (N)

  •   Initialize Centroids by shuffling the dataset

  •   Repeat until centroid does not have any change

  •     Compute data points sum of squared distance

  •     Assign data point to each of the nearby cluster

  •     Determine mean and compute cluster centroids.

3.3 Fuzzy C Mean Clustering

It is an iterative clustering technique where as in fuzzy logic, each point has a grade off fitting to a cluster, rather entirely fitting to a single cluster. Thus, the degree of points on the centre of the cluster will be superior the points on the edge of a cluster. Fuzzy c-means tries partition of a partial group of elements into group of fuzzy clusters with specified condition. It is built on minimization of succeeding objective function [21].

$${\text{J}}\left( {{\text{X}},{\text{Y}}} \right)\, = \,\mathop \sum \limits_{{\varvec{i} = 1}}^{\varvec{n}} \mathop \sum \limits_{{\varvec{q} = 1}}^{\varvec{a}} \left( {\varvec{X}_{{\varvec{p},\varvec{q}}} } \right)^{\varvec{r}} \left| {\left| {\varvec{w}_{{\varvec{p} }} - \varvec{y}_{{\varvec{q} }} } \right|} \right|^{2}$$

Here,

  • r—Real nos > 1.

  • a—No of clusters.

  • n—No of data.

  • || wp − yq ||—distance between data point p and present cluster centre q.

  • Xpq—Membership value.

  • Fuzzy C Mean Clustering Algorithm

  •   Each cluster are assigned with a random centroid

  •   Repeat until centroid does not have any change.

  •     Determine centroid based on the distance between the cluster center and datapoint.

  •     Centroid is updated based on new member function

  •   If new and original centroid distance is lower than threshold

  •     then stop because it is an Epsilon.

  •   else

  •     Continue until the condition becomes true.

3.4 DBSCAN Clustering

Most common density-based clustering is a DBSCAN method. It determines samples of high density and low density, then develops the cluster with samples of high density that are more suitable for data with similar density [22].

  • DBSCAN Clustering Algorithm

  •   Select a point randomly (P)

  •   Identify all the point (P) reachable Point Density

  •       Continue till the points are processed

  •       If Central Point are P

  •       Cluster are formed.

  •     else boundary point is P

  •       density reachable points are Zero.

4 Methodology

The methodology deployed to detect the optic disc is represented in the block diagram below Fig. 3. The fundus eye image is provided as an input which is resized to reduce computational power and preprocessed by selecting the green color band and smoothing. Once the preprocessing is complete clustering technique is applied to it and optic disc region are masked and the portion of optic disc alone is segmented.

Fig. 3
figure 3

Process to detecting optic disc

4.1 Retinal Image Pre-processing

The fundus images are given as an input for optic disc detection. The fundus images shall contain different type of noise and may consume more computational capability. To effectively handle those noises and process it effectively the images need to be enhanced by the pre-processing techniques like Resizing, Color band selection and Smoothing [23].

4.1.1 Resizing

The fundus images may be of varying sizes and shall require enormous computational facility and sometimes the images may be too large to fit onto the screen. Thus, the original image is be resized as per the requirement without removing or altering any of its properties. The fundus images in all the dataset are resized to width of 350 and height of 233 (i.e., 350 × 233).

4.1.2 Color Band Selection

Every pixel is represented either using Red, Green or Blue color with their numeric values ranging from 0 to 255. The colored images may require high computational capability and sometimes does not have pathological structure facts. So, the processing of color image is not a good idea. To overcome this color bands can be separated from the fundus image. The color band which have good contrast is selected for processing the optic disc. In this work it’s found that green color band is good and more suitable than blue and red color band.

4.1.3 Smoothing

The green color band fundus image obtained shall comprises of noises and blood vessels. These noises are removed by applying a morphological operator called dilation, which will make improve the images visibility and even fills the small holes that are present in the image then, the high frequency components are removed and the image is made ready for processing by applying gaussian blur operations.

4.1.4 Clustering Methods to Segment Optic Disc

Once the pre-processing of the fundus image is complete, the clustering techniques are applied to determine the optic disc in the fundus image. Clustering method forms a group of clusters by dividing the image into pixels based on their similarities. The region of optic disc will be having the similar property, so they lie on the single cluster. The optic disc is then segmented from the formed cluster.

4.1.5 Masking

The brightest pixels in the clustered image contains the optic disc. Masking the brightest pixels is needed to determine the optic disc region while the other regions are masked out. A circle of fixed radius is drawn by determining the centroid. The pictorial representation of optic disc segmentation is shown in the Fig. 4.

Fig. 4
figure 4

Pictorial representation of optic disc segmentation in fundus eye image using clustering

5 Results and Discussion

5.1 Dataset Description

The algorithm is realized using Open Source Computer Vision Library and is implemented on Intel (R) core i3 processor with a RAM of 4 Giga Bytes. The algorithm was verified with the following publicly available databases like DIARETDB1 dataset, DRIONS dataset and High-Resolution Fundus dataset. The detailed description of the three datasets are show in the below Table 2.

Table 2 Dataset description

5.1.1 High Resolution Fundus Dataset

High Resolution Fundus dataset are available to public usage, which consist of 45 images with an equal spread of 15 fundus images of patients who are healthy, 15 fundus images of patients having diabetic retinopathy and 15 fundus images of patients having glaucomatous. These images are shot on Canon CR-1 fundus camera with 45° view with a resolution of 3304 × 2336 [24].

5.1.2 DIARETDB1 Dataset

DIARETDB1 dataset consist of 89 images with 5 images are considered healthy images and 84 images encompasses mild non-proliferative symptoms considered as unhealthy images. The digital fundus camera was used to shot images with 50° view with a resolution of 1500 × 1152 [25].

5.1.3 DRIONS-DB Dataset

DRIONS-DB is a publicly available dataset consist of 110 images with 6 Healthy images and 104 unhealthy images. These images in this dataset are captured on color analogical fundus camera with a resolution of 600 × 400. [26].

5.2 Result Analysis

Clustering methods K-means clustering, Agglomerative clustering, DBSCAN clustering and Fuzzy C-means clustering techniques performance and accuracy determined and compared on the datasets like HRF, DIARETDB1 and DRIONS datasets. The optic disc localization by K Means clustering in Figs. 5 and 6, Fuzzy C Means clustering in Figs. 7 and 8, Agglomerative clustering in Figs. 9 and 10 and DBSCAN clustering in Figs. 11 and 12 are shown below. The detected optic disc portion are represented by a green circle.

Fig. 5
figure 5

Input fundus image for DBSCAN clustering

Fig. 6
figure 6

Localized optic disc by DBSCAN clustering

Fig. 7
figure 7

Input fundus image for Hierarchical clustering

Fig. 8
figure 8

Localized optic disc by Hierarchical clustering

Fig. 9
figure 9

Input fundus image for FCM clustering

Fig. 10
figure 10

Localized optic disc by FCM clustering

Fig. 11
figure 11

Input fundus image for K-Means clustering

Fig. 12
figure 12

Localized optic disc by K-Means clustering

Figure 13 shows the various stages of optic disc segmenting in fundus image on HRF dataset, DIARETDB1 dataset and DRIONSDB dataset, where the fundus images are given as an input which is been pre-processed by resizing, green channel selection and smoothening. Then the clustering techniques is applied to the processed image by determining and segmenting the optic disc region with a circle.

Fig. 13
figure 13

Stages in segmenting optic disc from fundus image. (i) Input fundus image of HRF dataset, (ii) input fundus image of DIARETDB1 dataset, (iii) input fundus image of DRIONS dataset, (iv) pre-processing of HRF dataset, (v) pre-processing of DIARETDB1 dataset, (vi) pre-processing of DRIONS dataset, (vii) applying clustering technique for HRF dataset, (viii) applying clustering technique for DIARETDB1 dataset, (ix) applying clustering technique for DRIONS dataset, (x) segmented optic disc region of HRF dataset, (xii) segmented optic disc region of DIARETDB1 dataset, (xii) segmented optic disc region of DRIONS dataset, (xiii) output of fundus image in HRF dataset, (xiv) output of fundus image in DIARETDB1 dataset, (xv) output of fundus image in DRIONS dataset

Figure 14 shows the optic disc segmentation by DBSCAN clustering, Hierarchical clustering, FCM clustering and K Means clustering methods on publicly available databases HRF dataset. The circle in the image represent the optic disc region that is been fittingly segmented by the clustering techniques.

Fig. 14
figure 14

Examples of correct detection of optic disc on HRF dataset circle represent the segmented region of optic disc. a and b DBSCAN clustering on HRF dataset, c and d hierarchical clustering on HRF dataset, e and f FCM clustering on HRF dataset, g and h K Means clustering on HRF dataset

The optic disc segmentation is done by making a circle on the optic disc region on DIARETDB1 dataset by DBSCAN clustering, Hierarchical clustering, FCM clustering and K Means clustering methods is shown in the below Fig. 15.

Fig. 15
figure 15

Examples of correct detection of optic disc on DIARET DB1 dataset circle represent the segmented region of optic disc. a and b DBSCAN clustering on DIARETDB1 dataset, c and d hierarchical clustering on DIARETDB1dataset, e and f FCM clustering on DIARETDB1dataset, g and h K Means clustering on DIARETDB1dataset

Fig. 16
figure 16

Examples of correct detection of optic disc on DRIONS dataset circle represent the segmented region of optic disc. a and b DBSCAN clustering on DRIONS dataset, c and d hierarchical clustering on DRIONS dataset, e and f FCM clustering on DRIONS dataset, g and h K Means clustering on DRIONS dataset

Figure 16 shows the sample images of DRIONS dataset where the optic disc is detection and segmentation using DBSCAN, Hierarchical, FCM and K Means clustering techniques. The sample images are taken randomly and be evaluated and displayed in the below figure.

Optic disc segmentation in HRF, DIARETDB1 and DRIONS dataset were done by K Means, Fuzzy C Mean, Hierarchical and DBSCAN clustering techniques. Yet segmentation was non proper in few images because of the image quality. Figure 17 shows some difficult cases in each dataset and in each clustering techniques where the segmentation of optic disc failed.

Fig. 17
figure 17

Incorrect optic disc segmentation in difficult cases. a K Means clustering on HRF dataset, b K Means clustering on DIARETDB1 dataset, c K Means clustering on DRIONS dataset, d FCM clustering on HRF dataset, e FCM clustering on DIARETDB1 dataset, f FCM clustering on DRIONS dataset, g hierarchical clustering on HRF dataset, h hierarchical clustering on DIARETDB1 dataset, i hierarchical clustering on DRIONS dataset, j DBSCAN clustering on HRF dataset, k DBSCAN clustering on DIARETDB1 dataset, l DBSCAN clustering on DRIONS dataset

5.3 Optic Disc Detection

The region of optic disc in the fundus image are determined by comparing ground truth centre of the optic disc and manually determined optic disc centre. The detection of optic disc is said to be done (i.e., Hit) if the below equation [19] is fulfilled [4].

$$\sqrt {\left( {\varvec{A}_{\varvec{m}} - \varvec{A}_{d} } \right)^{2} + \left( {\varvec{B}_{\varvec{m}} - \varvec{B}_{\varvec{d}} } \right)^{2} } < \varvec{X}_{{\varvec{mean}}}$$

Here, Am and Bm is manually labelled, Ad and Bd are detected coordinates, X mean denotes the datasets standard average radii. The process is said to be Hit if the equation is satisfied and vice versa if it is a Miss. Table 3 represent the Hit rate determined by applying the clustering algorithms. Figure 18a, b shows the Graphical representation of the clustering techniques on datasets for 10 and 20 iterations.

Table 3 Clustering techniques accuracy
Fig. 18
figure 18

a Hit rate for 10 clusters. b Hit rate for 20 clusters

5.4 Performance Evaluation

The performance measure of detecting optic disc in fundus eye image are determined using various parameters like Positive Predicted Value, False Discovery Rate, Accuracy, F1 Score, Error Rate, Precision and Recall [27], the description of the measure is shown in Table 4. The outcome values of segmented fundus images are determined by evaluating True Positive (TP), False Negative (FN), False Positive (FP) and True Negative (TN) as shown in Fig. 19.

Table 4 Description of performance measure
Fig. 19
figure 19

Determining TP, TN, FP, FN in fundus image

5.5 Discussion

The performance parameters like Positive Predicted Value, False Discovery Rate, Accuracy, Error Rate, Precision and Recall are determined by applying clustering algorithms and identifying True Positive (TP), False Negative (FN), False Positive (FP) and True Negative (FN). The observed result for 10 and 20 iterations are tabulated in the below Table 5 and 6 respectively.

Table 5 Performance measure analysis for 10 iterations
Table 6 Performance measure analysis for 20 iterations

The performance parameters like Positive Predicted Value, False Discovery Rate, Accuracy, Error Rate, Precision and Recall are determined by analyzing clustering techniques for 10 and 20 iterations on HRF dataset and the average values obtained by the techniques on the various performance measures is shown in the below Table 7.

Table 7 HRF dataset on clustering techniques

The performance of the clustering techniques is determined by analysing clustering technique for 10 and 20 iterations on DIARETDB1 dataset and the average values obtained by the techniques on the various performance measures is shown in the below Table 8.

Table 8 DIARETDB1 dataset on clustering techniques

Table 9 represents the result obtained on the DRIONS datasets for 10 iterations and 20 iterations along with the average iteration values by the clustering techniques. Similar to the above results hierarchical clustering technique outperforms others in most of the cases.

Table 9 DRIONS dataset on clustering techniques

The K-Means clustering method was applied on the DRIONS, DIARETDB1 and HRF dataset for 10 iterations and the results are tabulated in Fig. 20. It is observed from the results that the accuracy of K-Means clustering method on HRF dataset is 91%, which is greater than the other two DIARETDB1 and DRIONS dataset which are have an accuracy of 66% and 67% respectively. Similarly, the K-Means clustering was applied on the DRIONS, DIARETDB1 and HRF dataset for 20 iterations and the obtained results are tabulated in Fig. 21. The result infers that the accuracy of HRF dataset is much better than the other dataset set with HRF dataset having an accuracy of 96% compared to 67% and 69% of DIARETDB1 and DRIONS dataset respectively.

Fig. 20
figure 20

Performance of K-Means clustering techniques with 10 iterations

Fig. 21
figure 21

Performance of K-Means clustering techniques with 20 iterations

The Performance of hierarchical clustering was determined by applying it on DRIONS, DIARETDB1 and HRF dataset for 10 iteration and the results are tabulated in Fig. 22. With the observation from the results it is inferred that accuracy of hierarchical clustering on HRF dataset is 98% which is greater when compared to the other dataset DIARETDB1 and DRIONS having an accuracy of 70% and 95% respectively. Similarly, Fig. 23 represent the results obtained by performing hierarchical clustering on dataset for 20 iterations and the result infer that 98% accuracy on HRF dataset is better than 95% accuracy on DRIONS dataset while the DIARET DB1 dataset have an accuracy of 70% which is less compared to the others datasets.

Fig. 22
figure 22

Performance of hierarchical clustering techniques with 10 iterations

Fig. 23
figure 23

Performance of hierarchical clustering techniques with 20 iterations

Fuzzy C Mean clustering was applied on DRIONS, DIARETDB1 and HRF dataset for 10 iteration and 20 iterations respectively. The results obtained from FCM clustering method with 10 iterations is represented in Fig. 24 and for 20 iterations in Fig. 25. The results infer that the performance of HRF data set in both 10 and 20 iterations are better than the other two datasets. The accuracy of HRF dataset for 10 iteration is 98% with comparison to DIARETDB1 and DRIONS with 66% and 64% respectively. While for 20 iterations the 93% accuracy of HRF dataset is better when compared to 67% for DIARETDB1 and 60% for DRIONS dataset.

Fig. 24
figure 24

Performance of FCM clustering techniques with 10 iterations

Fig. 25
figure 25

Performance of FCM clustering techniques with 20 iterations

The Performance of DBSCAN clustering method was determined by applying it on DRIONS, DIARETDB1 and HRF dataset for 10 and 20 iterations. Figure 26 represent the result obtained from DBSCAN clustering method for 10 iterations. It is observed that the accuracy of HRF dataset is 93% which is way better when compared to other DIARETDB1 dataset with 47% and DRIONS dataset with 67%. Similarly, Fig. 27 represent the results obtained by performing DBSCAN clustering on dataset for 20 iterations and the result infer that 91% accuracy on HRF dataset is better than 47% accuracy on DIARETDB1 dataset and 68% accuracy on DRIONS dataset.

Fig. 26
figure 26

Performance of DBSCAN clustering techniques with 10 iterations

Fig. 27
figure 27

Performance of DBSCAN clustering techniques with 20 iterations

The positive predicted values of the clustering algorithms on all the three datasets are determined and is tabulated below. Figures 28 and 29 illustrate that the probability of positively predicted values of hierarchical clustering is better HRF and DIARETDB1 database, while DBSCAN clustering is better in DRIONS dataset for 10 iterations. For 20 iterations the positively predicted values of hierarchical clustering are greater for HRF dataset while DBSCAN clustering is better for DIARETDB1 and DRIONS datasets.

Fig. 28
figure 28

Positive predicted values of clustering techniques on DRIONS, DIARETDB1 and HRF dataset for 10 iterations

Fig. 29
figure 29

Positive predicted values of clustering techniques on DRIONS, DIARETDB1 and HRF dataset for 20 iterations

The False Discovery Rate of the clustering algorithms on all the three datasets are determined and is tabulated below. Figures 30 and 31 illustrate that the probability of negatively predicted values is healthier in hierarchical clustering on HRF dataset and DBSCAN clustering for DIARETDB1 and DRIONS dataset by considering it for both 10 and 20 iterations respectively.

Fig. 30
figure 30

False discovery rate of clustering techniques on DRIONS, DIARETDB1 and HRF dataset for 10 iterations

Fig. 31
figure 31

False discovery rate of clustering techniques on DRIONS, DIARETDB1 and HRF dataset for 20 iterations

6 Conclusion

In this chapter the localization of optic disc is performed on the fundus images obtained from three dataset namely High-Resolution Fundus, DIARETDB1 and DRIONSDB for the iterations 10 and iteration 20 using the unsupervised learning clustering methods like DB Scan clustering, Hierarchical clustering, Fuzzy C Means clustering and K-Means clustering. The results implied that the accuracy of clustering techniques is higher on HRF dataset. Also, it is determined that Precision, Recall, F1 Score of clustering techniques on HRF dataset is better than DIARETDB1 dataset and DRIONSDB dataset for both 10 iterations and 20 iteration. The Positive Predicted Value and False Discovery Rate obtained are also found that the performance of HRF dataset is better than other two datasets. The experimentation results inferred that the clustering techniques on HRF dataset is better when compared to DIARETDB1 and DRIONS dataset. In the future work, the localization of optic disc can also be carried out in a much more efficient way with the help of metaheuristic optimization techniques like Firefly Algorithm, Ant Colony optimization, Genetic algorithms, Differential evolution, etc.,