Next Article in Journal
A Distance Increment Smoothing Method and Its Application on the Detection of NLOS in the Cooperative Positioning
Next Article in Special Issue
Decision Trees for Glaucoma Screening Based on the Asymmetry of the Retinal Nerve Fiber Layer in Optical Coherence Tomography
Previous Article in Journal
Integration and Application of Multimodal Measurement Techniques: Relevance of Photogrammetry to Orthodontics
Previous Article in Special Issue
Bluetooth Low Energy Beacon Sensors to Document Handheld Magnifier Use at Home by People with Low Vision
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Automatic Segmentation of the Retinal Nerve Fiber Layer by Means of Mathematical Morphology and Deformable Models in 2D Optical Coherence Tomography Imaging

by
Rafael Berenguer-Vidal
1,
Rafael Verdú-Monedero
2,*,
Juan Morales-Sánchez
2,
Inmaculada Sellés-Navarro
3,
Rocío del Amor
4,
Gabriel García
4 and
Valery Naranjo
4
1
Departamento de Ciencias Politécnicas, Campus de los Jerónimos, Universidad Católica de Murcia UCAM, 30107 Murcia, Spain
2
Departamento de Tecnologías de la Información y Comunicaciones, Campus Muralla del Mar, Universidad Politécnica de Cartagena, 30202 Cartagena, Spain
3
Servicio de Oftalmología, Hospital General Universitario Reina Sofía, 30003 Murcia, Spain
4
Instituto de Investigación e Innovación en Bioingeniería, Universitat Politècnica de València, 46022 Valencia, Spain
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(23), 8027; https://doi.org/10.3390/s21238027
Submission received: 29 September 2021 / Revised: 17 November 2021 / Accepted: 25 November 2021 / Published: 1 December 2021
(This article belongs to the Special Issue Sensors in Vision Research and Ophthalmic Instrumentation)

Abstract

:
Glaucoma is a neurodegenerative disease process that leads to progressive damage of the optic nerve to produce visual impairment and blindness. Spectral-domain OCT technology enables peripapillary circular scans of the retina and the measurement of the thickness of the retinal nerve fiber layer (RNFL) for the assessment of the disease status or progression in glaucoma patients. This paper describes a new approach to segment and measure the retinal nerve fiber layer in peripapillary OCT images. The proposed method consists of two stages. In the first one, morphological operators robustly detect the coarse location of the layer boundaries, despite the speckle noise and diverse artifacts in the OCT image. In the second stage, deformable models are initialized with the results of the previous stage to perform a fine segmentation of the boundaries, providing an accurate measurement of the entire RNFL. The results of the RNFL segmentation were qualitatively assessed by ophthalmologists, and the measurements of the thickness of the RNFL were quantitatively compared with those provided by the OCT inbuilt software as well as the state-of-the-art methods.

1. Introduction

Glaucoma is one of the leading causes of irreversible blindness worldwide [1]. The global prevalence of glaucoma for the population aged 40–80 years is 3.54%. In 2013, the number of people (aged 40–80 years) with glaucoma worldwide was estimated to be 64.3 million, increasing to 76.0 million in 2020 and 111.8 million in 2040 [2]. This silent ocular disease of the optic nerve head is usually caused by a high intraocular pressure due to poor drainage of ocular fluid [3], producing a progressive and irreversible deterioration of the visual field that progresses to a total loss of vision [4].
Optical coherence tomography (OCT) has become an important tool in ophthalmology for eye diagnostics, especially for the anterior segment or the retina [5]. The OCT is based on the estimation of the depth at which a specific backscatter is originated by measuring its time of flight through interferometry [6]. These backscatters are caused by differences in the refractive index between adjacent tissues and enable 2D- and 3D-imaging with resolution on the micrometer scale [7]. Spectral-domain OCT technology provides 2D and 3D scans of the retina allowing for monitoring eye diseases such as glaucoma [8], since it allows for analyzing and quantifying regions such as the retinal nerve fiber layer (RNFL) and ganglion cell inner plexiform layer (GCIPL). Among the retinal OCT imaging modalities, there are 3D or volumetric OCTs (usually centered on the macula); 2D peripapillary (or circumpapillary) B-scan OCTs centered on the optic disc; and 2D radial (non peripapillary) B-scan OCT crossing the macula or crossing the optic disc (or optic nerve head). To assess the glaucomatous status or progression, the OCT of the papillary circle (2D peripapillary B-scan OCT centered at the optic nerve head) allows for the determination of the thickness of the peripapillary nerve fiber layer. The thickness of the RNFL measured in peripapillary circular OCT scans is an indirect way of assessing the generalized damage that glaucoma produces in the retinal ganglion cells [9], since the narrowing of the RNFL precedes visual field loss and optic nerve head defects [10,11]. Some of the most popular (and publicly available) databases that can be found are, e.g., Duke SD-OCT [12,13], with 110 OCT B-scans centered at the macula; the dataset described in [14,15], which collects 12 radial OCT B-scans for 61 different subjects; the annotated retinal OCT images (AROI) database [16,17], which is composed of OCT volumes centered on the macula to study the neovascular age-related macular degeneration (nAMD); the OCTID database [18,19], containing retinal fovea-centered 2D OCT images with different pathological conditions; and the dataset contained in [20,21], with volumetric OCTs centered on the macula of left and right eyes of 50 healthy persons. Most of those references are devoted to providing the thickness map of retinal layers, including the RNFL. However, none of the above works contain 2D peripapillary B-scan OCTs, imaging modality used in the proposed approach.
In recent years, the segmentation and analysis of retinal layers in OCT images and their clinical implications have focused the efforts of many researchers [22]. Besides the RNFL, researchers particularize their methods to detect and segment in OCT images some retinal abnormalities such as exudate-associated derangements [23], drusen volume [24,25], neovascularizations [26], intraretinal cysts [27], or to assess the presence and quantity of intraretinal and subretinal fluids [28] and image-guided treatment management [29,30]. Focusing on the RFNL, it was initially differentiated from other retinal layers in OCT imaging using a thresholding algorithm that detected the anterior edge of retinal pigment epithelium and determined the photoreceptor layer position. For each column of the image, the posterior edge was determined to be the first occurrence of the signal above the threshold anterior to the RNFL. Then, in the OCT image, the nerve fiber layer thickness at each column was defined as the number of pixels between the anterior and posterior edges of the RNFL. To achieve this objective, different approaches were followed to segment the RNFL, some of them providing methods that allowed (or required) the interaction with the expert, and other approaches that turn out to be automatic methods.
Regarding manual and interactive methods, the usual procedure to delineate the fiber layer or different lesions in the OCT images is to apply an initial preprocessing and then, after manual or interactive initialization, to carry out an automatic process. For example, in [31], this scheme is followed using anisotropic diffusion to reduce the speckle noise while at the same time preserving the edges and deformable models with a manual initialization to calculate the retinal thickness and delineate fluid-filled regions. Following the same plan, in [32], the semiautomatic segmentation of the retinal layers is performed from the contours interactively specified and refined by a clinician using a support vector machine (SVM) to handle OCT noise, considering statistical characteristics at multiple levels of resolution.
The quantitative evaluation of representative features of the retina with a fully automatic segmentation can be addressed from many perspectives with very different methods, as those based on, e.g., dynamic programming [33], Markov models [34,35], deformable models [36,37], graph search algorithm [38,39], level sets [35,40], fuzzy histogram hyperbolization [41] or geodesic distance [42]. Approaches based on machine learning were also used to automatically segment and analyze the retinal layers in OCT images. For example, a surrogate-assisted method based on the convolutional neural networks was proposed in [43] to classify retinal OCT images; in [44], tailored prototypical neural networks were developed for glaucoma grading using raw circumpapillary B-scans; the effective features of the boundaries were extracted in [45] with a convolutional neural network to obtain the final retinal boundaries using a graph-based search on the probability maps; in [46], the characteristics of retinal layers were learned with a deep neural network in a multiscale approach performing the segmentation with an encoder-decoder module; layers and fluid in 3-D OCT retinal images of subjects suffering from central serous retinopathy were simultaneously segmented in [47] with random forest classifiers; the most significant retinal layers in rodent OCT images were detected in [48] with a encoder-decoder fully convolutional network (FCN) architecture. Recently, in [49], the order of the layers was included explicitly in their deep learning method, since most of previous approaches did not consider it and this could lead to topological errors.
After this introduction, the following sections of this paper describe the proposed novel approach. The first part of the method, detailed in Section 2.2, is based on mathematical morphology, with it being used to clean the OCT image and robustly detect the RNFL boundaries; the second part of the method is described in Section 2.3 and details the implementation of deformable models to accurately delineate the contours and then provide the measurements of the RNFL thickness. Section 3 contains the results provided by this method, which have been qualitatively supervised and validated by ophthalmologists and quantitatively compared with those provided by the OCT device as well as other state-of-the-art methods based on deep learning. The upper boundary of the RNFL is perfectly delineated by the proposed method, similar to the segmentation of the OCT inbuild software, while the method based on deep learning generates some contours with certain disparities due to speckle noise. The lower contour provided by the three methods does differ due to artifacts and shadows produced by blood vessels, and each method must impose the constraints of its model. The proposed method incorporates the elasticity and stiffness characteristics of the RNFL in the active contour to segment the boundaries of this retinal layer. As a relevant contribution of this work and as an important aspect that makes the proposed method remarkable is, apart from the quality and precision of the segmentations, the computational efficiency, providing robust results in significantly less time than the method based on deep learning. This efficiency is achieved thanks to the optimal implementation of the morphological filters [50] as well as the formulation and implementation of the deformable models that are carried out in the frequency domain [51,52], using the dynamic parameters able to ensure and optimize the convergence of the model [53,54]. Finally, Section 4 proceeds with the discussion of the results, and Section 5 closes the paper with the conclusions and proposed future work.

2. Materials and Methods

This section details the materials used in this work, i.e., 2D peripapillary B-scan optical coherence tomography (OCT) images centered on the optic disc, along with their acquisition procedure, as well as the proposed method for the segmentation of the retinal nerve fiber layer (RNFL) in these OCT images, which relies mainly on mathematical morphology and deformable models. The procedure for the calculation of the layer thickness can be briefly outlined in the following blocks:
  • Preprocessing to reduce the speckle noise and undesired artifacts in peripapillary 2D B-scan OCT images. This filtering is mainly performed by morphological operators.
  • Peak detection on positive and negative part of the vertical gradient. This column-wise process (1D scenario) provides a rough detection of the layer’s boundaries.
  • Reduction of possible discontinuities in previous coarse detection by processing adjacent columns (2D scenario) with a sliding window low-pass filter.
  • Refinement of previous result by the imposition of the physical characteristics of biological tissues. The properties of elasticity and rigidity of the solution are incorporated by using a deformable model (in a 2D scenario).
The novel approach proposed in this paper provides an efficient and robust method for measuring the thickness of the RNFL on peripapillary 2D B-scan OCT images. The efficiency of the method is achieved thanks to the frequency implementation of the active contours and the optimized implementation of the morphological operators.

2.1. Materials: OCT Database

The main imaging modality used in the diagnosis and evolution of glaucoma is the OCT of the papillary circle (2D peripapillary B-scan OCT centered at the optic nerve head), which allows for the determination of the thickness of the peripapillary nerve fiber layer. For that reason, a set of spectral domain-OCT (SD-OCT) image pairs of both the left (162 images) and right eye (167 images) including healthy and unhealthy patients (glaucomatous optic neuropathy) was collected in this work. The images were acquired by the Ophthalmology Service of the Hospital General Universitario Reina Sofía (Murcia, Spain) using a Spectralis OCT S2610-CB (Heidelberg Engineering GmbH, Heidelberg, Germany) from October 2018 to November 2020. All images were anonymized in order to fulfill the criteria of the Human Ethics Committee. Table 1 details the content of the image set. This dataset is a batch of the database used to validate the method. The dataset will be completed and compiled, and it will be published in a publicly accessible database in the future.
The scanning procedure is based on spectral domain optical coherence tomography (SD-OCT) technology, also referred to as Fourier domain OCT (FD-OCT). It uses a beam of a superluminescence diode (SLD) with an average wavelength of 870 nm to take high-resolution cross-sectional imaging of the retina, also known as a B-scan image. This B-scan allows the thickness of the distinctive layers of the retina to be determined. These layers can be observed as a set of fairly flat bands in different grayscale values. Although different scanning patterns are allowed, to assess the glaucoma disease, a circular shape centered on the optic disc is usually used in the B-scan OCT section, as shown in Figure 1.
Note that this cylindrical section is projected from polar to Cartesian coordinates for easier processing and analysis. This projection together with its corresponding x- and z-scaling is displayed in the top right of Figure 2. The correspondence between the sectors of the analysis circumference and the x-coordinate of the peripapillary OCT images is gathered in Table 2 and illustrated in Figure 3.
The OCT images used in this work have a resolution of 768 × 496 pixels with a z-scaling of 3.87 µm/pixel and a bit depth of 8 bits/pixel in grayscale. The diameter of the peripapillary OCT circumference can be adjusted according to the size of the patient’s eye, varying the horizontal resolution of the OCT accordingly. For instance, a circumference diameter of 3.7 mm corresponds to a x-scaling of 15.21 µm/pixel. Note that only the z-scaling was used for this work, since the main goal is to determine the vertical thickness of the RNFL in the OCT image. The top left of Figure 2 shows the circular tracing of the SLD beam on the retinal fundus image of the eye. This analysis circumference is positioned over the center of the optic nerve (or papilla) as depicted in the figure.
In order to obtain the thickness of the RNFL layer, it is first necessary to accurately segment it. The automatic segmentation of this layer can be very challenging due to the characteristics of the image in general and of the RNFL in particular. As depicted in Figure 3, OCT images often show a speckle noise, a low level of contrast, and irregularly shaped morphological features [5,6].
As can be seen in Figure 3 and Figure 4, the RNFL is the innermost layer of the retina. Granular noise and various artifacts appear in the area of the image above the RNFL, which corresponds to the vitreous body. These artifacts have similar grayscale levels to the layer of interest, which leads to a more challenging segmentation process. Moreover, the transition between the RNFL and the CGL, which is located just below the RNFL, shows a low level of contrast, making the separation between these two layers a relevant issue [22].
In addition, because blood vessels are located just above the retina, a shadowing effect appears on the retinal layers. As observed in Figure 5, these vessels cross the circumference of analysis perpendicularly, casting a shadow on the retinal layers at these crossing points. This results in intensity inhomogeneities, boundary artifacts, and darkened areas in the layers to be segmented, as portrayed in Figure 6. This further complicates the segmentation of the RNFL and hence the calculation of its thickness.

2.2. Preprocessing: Mathematical Morphology

In order to minimize the effect of these image artifacts on subsequent segmentation, a mathematical morphology-based preprocessing was first applied to these images. Mathematical morphology is a nonlinear image processing methodology whose formulation and implementation is focused on the shape of the objects in the image [55,56]. The application of morphological filtering to an image consists of the use of so-called morphological operators. These operators imply the application of a structuring element, which is usually designed as a simple binary image with a specific shape and size. Depending on both the structuring element and the morphological operator applied, very different results can be obtained [50]. The main strength of mathematical morphology is the ability to minimize artifacts and uninteresting elements while maintaining the shape as well as the boundaries of the objects of interest.
Four different shapes are used in this work as structuring elements, namely a circle of radius r pixels, r , a rectangle of width a pixels and height b pixels, a × b , and horizontal l c h and vertical l c v lines, where c denotes their length in pixels.
Regarding the morphological operators, opening, closing, dilation, and reconstruction are used in this work. The opening γ , where ⋄ represents the structuring element used, allows bright details smaller than the structuring element to be removed from the image. Similarly, by applying the closing φ , dark elements smaller than ⋄ can be removed from the data. The application of the dilation operation, δ , to a binary image allows the non-zero areas of the image to be expanded by the size and shape of the structuring element ⋄. The morphological reconstruction R g ( f ) restores the original shapes of the objects of the marker f, constrained by the mask g. For a more detailed description of these operators and their potential applications, see [50]. Additionally, the image complement f N is also used in this preprocessing step, which consists of the negative of an image f using unsigned integer format, i.e., f N = 255 f .

2.3. Boundary Segmentation: Active Contours

After preprocessing the image, minimizing artifacts and blood vessel shadows, and highlighting the layer of interest to be analyzed, the RNFL was segmented. To this end, the upper and lower boundaries delimiting the layer must be outlined. It is important to note that since the RNFL is a human tissue, the main features of these boundaries are their smoothness and continuity. For this reason, the application of deformable models to the preprocessed images from the previous stage is of considerable interest.
Deformable models are mathematical curves or surfaces whose shapes is conditioned by internal forces related to the shape of the object itself and external forces from the data set [57]. The internal forces are calculated from the geometry of the model and tend to preserve its smoothness. The external forces allow the model to be adjusted to the boundaries of the objects of interest in the image. This is the main reason why these models have been used for years in segmentation and the tasks of structure tracking in images [58,59,60].
Deformable models can be classified into explicit and implicit ones. In the explicit models [61,62], also known as parametric deformable models, the object to be segmented is represented by meshes (curves, surfaces, or volumes) whose shape evolves under the control of these internal and external forces. By contrast, in the implicit models [63,64], also called geometric deformable models, contours and surfaces are implicitly represented as level-sets of a scalar function of higher dimensions. The evolution of these implicit models is based on the theory of curve evolution, which allows their adaptation even to concave shapes and topology changes [63,65]. Since the retinal layers to be segmented in this work show a smooth shape and no change in topology, one-dimensional parametric models, also called active contours or snakes [61], are used in this work.
Active contours are described by a parametric curve,
v ( s , t ) = [ v x ( s , t ) , v y ( s , t ) ] ,
defined in R 2 , where t denotes the time, s is the parametric variable with s [ 0 , S ] , and v i ( s , t ) represents the coordinate function for coordinate i.
The shape and position of the curve v ( s , t ) was determined from the minimization of an energy functional defined by a second-order partial differential equation system, which incorporates the abovementioned internal and external forces [59]. The internal ones emulate the physical characteristics of the objects in the image, such as the elasticity or stiffness. In this work, the parameters of the deformable model were set so that the contour had topological features similar to those expected in retinal layers, in particular, its smoothness. External forces were used instead to fit the contour to the layer boundary, based on the information provided by the OCT imaging. These external forces were calculated by applying a vertical gradient to the image preprocessed with the morphological operators described in Section 2.2.
An efficient frequency-domain-based implementation [51,52] was used in the proposed approach. To derive this formulation, a finite element discretization was firstly applied to each coordinate function of the curve,
v i ( s , t ) = N ( s ) u i ( t ) ,
where N ( s ) is the shape function and u i ( t ) are the nodal variables of the coordinate i. B-splines are used here as a shape function, due to their controlled smoothness of the resulting active contours [66]. Note that for this work, the x-coordinate of the nodal variables is fixed, and the only variation on the y-coordinate of the node position is allowed. Therefore, the deformable model is applied only to the y-coordinate, and, for the sake of clarity, the subscript i is omitted in the following expressions.
Subsequently, time is discretized t = ξ Δ t , where Δ t is the time step and ξ N the iteration index. The parametric variable s is then translated into the frequency domain, resulting in a iterative equation which rules the adaptation of the curve to the dataset,
U ξ ( ω ) = H ( ω ) a 1 U ξ 1 ( ω ) + a 2 U ξ 2 ( ω ) + Q ξ 1 ( ω ) η F ( ω ) ,
where ω is the frequency counterpart of the parametric variable s and ξ is the iteration index. The terms U ξ ( ω ) and F ( ω ) are the Fourier transforms of nodal variables u and the shape function of the spatial discretization, respectively. Internal forces due to physical features of the curve are imposed by the filter H ( ω ) , which is calculated from the elasticity and stiffness parameters of the model, α and β , respectively. The external forces are computed from the gradient of the preprocessed OCT image and gathered in the term Q ξ 1 ( ω ) . Finally, the first and second order coefficients of the iterative system a 1 and a 2 , depend on the parameters η and γ . These parameters control the inertia of the model in the process of adaptation to the data. The optimal values of all these parameters to accelerate the convergence process of the active contour can be found in [53,54].

2.4. RNFL Layer Segmentation Process

The proposed approach for the segmentation of the RNFL consists of a sequential process for obtaining different layer boundaries. Figure 4 illustrates the three boundaries used in the segmentation of the RNFL layer, namely #1-UB, #2-AB, and #3-LB.
The upper boundary of the RNFL, #1-UB, was outlined first, taking advantage of the high-contrast level between this layer and the upper area of the image. However, morphological preprocessing and the subsequent approximation with active contours are necessary in order to minimize the artifacts present in a large number of OCT images of the database. Section 2.5 describes this process in detail.
Obtaining the lower boundary of the RNFL, #3-LB involves a more challenging process, due to shadowing and artifacts caused by blood vessels as well as the low level of contrast between the RNFL and the lower layer, GCL. For this reason, the lower boundary of the ONL, #2-AB, was outlined and used as an auxiliary boundary which together with #1-UB, allowed us to obtain #3-LB in a third stage. Section 2.6 and Section 2.7 detail the estimation process of #2-AB and #3-LB, respectively, in which the morphological preprocessing and active contour smoothing were used again.

2.5. Segmentation of Boundary #1-UB

To outline #1-UB, a morphological processing was first conducted using a circle of radius 7 as a structuring element. Figure 7 illustrates this procedure. An opening was applied to the OCT in order to suppress bright details smaller than 7 ,
I 1 # 1 = γ 7 ( I ) ,
where I stands for the OCT image to be segmented. As can be seen, the small bright elements of Figure 7a are suppressed in Figure 7b. In addition, most of the speckle noise above the RNFL was significantly reduced.
A vertical gradient was then applied to the image, removing all negative values,
I 2 # 1 = v + ( I 1 # 1 ) = v ( I 1 # 1 ) , 0 v ( I 1 # 1 ) , 0 , v ( I 1 # 1 ) < 0 ,
where v ( I 1 # 1 ) represents the gradient of the image I 1 # 1 along the vertical direction. This allows one to detect the black-to-white transitions in the vertical downward direction as shown in Figure 7c.
We parsed the gradient values in columns in the downward direction, selecting the first value in the column exceeding a specific threshold, which provides the boundary shown in Figure 7d. As can be seen, the estimated contour roughly followed the upper boundary of the RNFL. Nevertheless, some artifacts were visible at some points of the boundary due to remaining granular noise in the area of the image above the layer.
In order to minimize these artifacts, an active contour approach was then applied. We first smoothed the detected points by applying a low-pass filtering with a sliding window with width N = 101 pixels [67]. The smoothed contour, which is shown in Figure 7e, was used as the initialization of the deformable model. An active contour was then applied using the parameters α = 0.5 , β = 1 , γ = 1 , η = 1 , B-splines as shape function, and the image I 1 # 1 as source for the external forces calculation. Figure 7f depicts the resulting contour, which fits the upper boundary of the RNFL.

2.6. Segmentation of Boundary #2-AB

For the delineation of #2-AB, we first applied a set of morphological operators using two circles with radii of 3 and 9 pixels as structure elements. Figure 8 illustrates the operations performed on the OCT image.
Dark details smaller than 9 were eliminated first. This implies the application of the following morphological operators. Initially, we took the complement of the OCT image I,
I 1 # 2 = f N ( I ) .
Next, an opening with a 9 was applied,
I 2 # 2 = γ 9 ( I 1 # 2 ) ,
followed by a image reconstruction of the marker I 2 # 2 with the mask I 1 # 2 ,
I 3 # 2 = R I 1 # 2 ( I 2 # 2 ) ,
and a new image complement,
I 4 # 2 = f N ( I 3 # 2 ) .
As can be clearly seen in Figure 8e, the dark details smaller than the structuring element were eliminated while maintaining the rest of the image areas. The next action was to remove the bright details also smaller than 9 . For this purpose, an opening was applied,
I 5 # 2 = γ 9 ( I 4 # 2 ) ,
followed by an image reconstruction of the marker I 5 # 2 with the mask I 4 # 2 ,
I 6 # 2 = R I 4 # 2 ( I 5 # 2 ) .
Figure 8g shows the result of the application of these operators. Finally, we further refined the image by removing details, both light and dark, smaller than 3 , by applying an opening,
I 7 # 2 = γ 3 ( I 6 # 2 ) ,
and a closing,
I 8 # 2 = φ 3 ( I 7 # 2 ) ,
which is depicted in Figure 8h,i. As can be observed, the application of these morphological operators led to the removal of all artifacts from the ONL layer, and a clear definition of the lower margin of the ONL layer, which is used as the boundary #2-AB. In order to contour this boundary, the positive vertical gradient defined in Equation (5) was calculated,
I 9 # 2 = v + ( I 8 # 2 ) ,
which is shown in Figure 8j. Since this operation allowed us to obtain all black-to-white transitions in the vertical downward direction, several edges appeared in the image. It was therefore necessary to select the boundary of interest. This process was performed again column-wise. Figure 9 plots the value of one such column of pixels. The x-axis represents the vertical position, where values 1 and 496 represent the top and bottom row of pixels in the image, respectively. The y-axis shows the intensity level of the pixels. Since the OCTs of this work have a bit depth of 8 bits/pixel, the pixel values are in the range [0, 255], with the minimum and maximum values corresponding to the black and white tones, respectively. Note that each of the edges depicted in Figure 8j appears in Figure 9 as a local maximum.
We defined the intervals M x = [ ϱ + ρ 1 , ϱ + ρ 2 ] , where ϱ is the vertical position of #1-UB in that column, and M y = [ γ , 255 ] , where γ is a threshold determined from the empirical results. We then applied a selection mask defined as a rectangle of M x × M y . The first value of the curve contained in the mask was selected as the vertical position of the active contour in that pixel column. The values ρ 1 , ρ 2 and γ were empirically set to 8, 260, and 10 pixels, respectively, for optimal performance on the whole dataset. As can be seen in Figure 8k, the resulting boundary accurately follows the bottom boundary of the ONL layer except for the columns with the shading produced by blood vessels. Therefore, a low-pass filtering with a sliding window of N = 101 pixels was applied to the contour. Figure 8l shows the resulting smoothed contour.
As previously mentioned, one of the biggest challenges in the segmentation of the intermediate layers was to isolate the effect of shading due to vessels. To this end, we outlined a mask delimiting the areas of the image where the shading was present. Figure 10 details the process of computing such a vessel mask, I vm .
The first step in the mask construction was a lineal filtering of the image in the frequency domain,
I 1 vm = FT 1 H 1 · FT I ,
where the superscript vm stands for blood vessel mask and H 1 = FT H 1 represents the transfer function, namely the two-dimensional discrete Fourier transform of the point spread function of the filter H 1 . Figure 11 depicts both the point spread function H 1 and its transfer function H 1 . This filter has low-pass and all-pass behavior in the horizontal and vertical directions, respectively. This behavior can be noticed observing the two dark horizontal bars located at the vertical frequency ω y = 0 with a bright gap between them located at the frequencies ω x = ω y = 0 . This leads to the preservation of all parts of the image except those with variation in horizontal direction, that is 0   <   | ω x | , which is removed from the image [68]. Note that the shadows cast by blood vessels are vertical edges, i.e., areas with nonzero horizontal variation, being therefore removed by the filter. Thus, this filter leads to a reduction of the shading effect of the vessels while maintaining the horizontal edges of the image which delimit the layers of interest, as can be seen in Figure 10b.
Once the effect of the shadowing was minimized in I 1 vm , we calculated the modulus of the negative pixels of the difference between these images,
I 2 vm = | I I 1 vm | = ( I I 1 vm ) , I I 1 vm < 0 , 0 , 0 I I 1 vm ,
where the resulting image I 2 vm , shown in Figure 10c, reflects the areas shaded by vessels as well as other areas outside the area of interest. The following morphological operators were then applied to further refine the shaded areas.
The bright details smaller than l 5 h and l 51 v were eliminated firstly by applying two opening operators and one reconstruction,
I 3 vm = γ l 5 h ( I 2 vm ) , I 4 vm = γ l 51 v ( R I 2 vm ( I 3 vm ) ) .
Figure 10e depicts image I 4 vm , where the shaded areas are clearly marked. Since this mask is only be used in the application of the active contours to the layers between the RNFL and the ONL, the pixels outside of these layers are removed, as seen in image I 5 vm shown in Figure 10f.
We then apply an opening with l 51 v to remove the bright elements smaller than the structuring element,
I 6 vm = γ l 51 v ( I 5 vm ) .
Finally, a thresholding considering only pixels with values higher than 10% of the maximum of I 6 vm was applied, which resulted in the binary mask I vm , shown in Figure 10h.
This blood vessel mask I vm was used in the refinement of the #2-AB. In particular, an active contour was applied with the initialization of the contour of Figure 8l, using as external forces I 8 # 2 where the zones bounded by the mask I vm were canceled out. This allowed the contour to conform to the lower boundary of the ONL without the adverse effect of the artifacts in the shaded areas, thus obtaining a smooth contour as expected for retinal layers. Figure 10i depicts the resulting boundary #2-AB. The active contour parameters used were α = 0.5 , β = 1 , γ = 1 , and η = 1 .

2.7. Segmentation of Boundary #3-LB

For the outline of line #3-LB, we proceeded from image I and from boundaries #1-UB and #2-AB. Since contour #3-LB typically features a higher number of concavities and convexities than contour #1-UB and the layer RNFL presents a reduced contrast to layer IPL, a vertical shape rectification was first applied to image I.
This rectification, which was also implemented in the Spectralis software (see Figure 2), was a flattening of the image considering a given boundary as a reference. This boundary was flattened, positioning the rest of the pixels in each column of the image with reference to this boundary. In this work, #2-AB was used as the reference boundary,
I R = R ( I ) ,
where I R is the rectified OCT shown in Figure 12a and R ( · ) denotes the image rectification process with respect to the boundary #2-AB. The same shape rectification was also applied to the blood vessel mask calculated above,
I R vm = R ( I vm ) ,
followed by a morphological dilation with a l 5 h in order to horizontally widen the areas of this mask I R vm ,
I R , d vm = δ l 5 h ( I R vm ) ,
where I R , d vm is the resulting mask shown in Figure 12c, which is used in the further application of an active contour to the image.
We then performed a morphological filtering of the rectified image I R , first removing the dark details smaller than 3 by applying an opening and reconstruction to the image complement,
I 1 # 3 = f N ( I R ) , I 2 # 3 = γ 3 ( I 1 # 3 ) , I 3 # 3 = R I 1 # 3 ( I 2 # 3 ) , I 4 # 3 = f N ( I 3 # 3 ) .
Figure 12d–g shows the resulting images. Subsequently bright details initially smaller than 3 were removed again by the opening and reconstruction operations,
I 5 # 3 = γ 3 ( I 4 # 3 ) , I 6 # 3 = R I 4 # 3 ( I 5 # 3 ) ,
where I 5 # 3 and I 6 # 3 are the depicted in Figure 12h,i.
In order to remove the shaded areas in I 6 # 3 , we first removed the dark elements whose horizontal width was less than 31 pixels, using 3 × 31 as structuring element,
I 7 # 3 = φ 3 × 31 ( I 6 # 3 ) ,
removing then the bright details with a width of less than 11 pixels wide,
I 8 # 3 = γ 3 × 11 ( I 7 # 3 ) .
As can be seen in Figure 12k, the RNFL was now significantly contrasted to the IPL, and in addition, the number of artifacts within the RNFL was substantially reduced. Similar to #1-UB, a vertical gradient was applied to I 8 # 3 , but this time, the positive values were removed to detect white-to-black transitions in the downward direction as shown in Figure 12l,
I 9 # 3 = v ( I 8 # 3 ) = v ( I 8 # 3 ) , v ( I 8 # 3 ) < 0 , 0 , 0 v ( I 8 # 3 ) ,
where v ( I 8 # 3 ) represents the gradient of the image I 8 # 3 along the vertical direction.
To select the boundary of interest from the white-to-black transitions in image I 9 # 3 , we applied a process similar to the one carried out in Section 2.6 sketched in Figure 9. We defined the intervals, M x = [ ϱ + ρ 1 , ϱ + ρ 2 ] , where ϱ is the vertical rectified position of #1-UB in that column, and M y = [ 255 , γ ] , where γ is an empirically determined threshold. The first value of the curve contained in the mask M x × M y was selected as the vertical position of the contour in that column. The values ρ 1 , ρ 2 , and γ were empirically set to 8, 60 and 3, respectively, for the optimal performance on the whole dataset. Note that the pixel intensity levels were negative in I 9 # 3 , although for the sake of better understanding, these values were considered positive in the image representation shown in Figure 12l and left part of Figure 13.
As can be seen in Figure 12m, the resulting boundary accurately follows the bottom boundary of the RNFL layer, though some discontinuities are noticeable at the areas with blood vessel shading.
To remove these artifacts, we slightly smoothed the contour with an averaging window of width N = 15 . The resulting contour, which is depicted in Figure 12n, was next used as an initialization for the application of an active contour. This led to the lower boundary #3-LB of the desired retinal layer, illustrated in Figure 12o. In this active contour, the image I 8 # 3 was taken for the calculation of the external forces, being excluded the zones delimited by the mask I R , d vm . The remaining contour parameters were α = 0.5 , β = 1 , γ = 1 , η = 1 , and B-spline as shape function.

2.8. RNFL Thickness Calculation

As described in Section 1, the thickness of the RNFL and GCL is important for monitoring the progression of ocular diseases such as glaucoma. In order to compare the results provided by the proposed method with the measurements given by the OCT device, the circumpapillary RNFL thickness was averaged by sectors (T, TS, NS, N, NI, and TI), and the global mean value was also calculated (G). The thickness of the RNFL was calculated by simply subtracting the position of contours #1-UB and #3-LB, resulting in a vector w with the thickness of the layer at each x-coordinate of the image I. The correspondence between the x-coordinate and the polar coordinate of the analysis circumference is detailed in Table 2 and depicted in Figure 3. This vector w allowed us to calculate the average value of the RNFL thickness in all the different sectors of the eye. Figure 14 displays the resulting measurements for the OCT image used in the description of the method.

3. Results

In order to evaluate its performance, the proposed approach was applied to the images in the database and compared with two additional methods. First, it was compared with version 6.9.4.0 of the Spectralis OCT software, which offers an inbuilt tool for automatic segmentation as shown in Figure 2. Second, it was compared with a state-of-the-art method based on a deep learning approach, specifically an adaptation of the method described in [69], based on an encoder–decoder convolutional neural network architecture. In addition to this comparison between methods, the results of the proposed approach were further validated by expert ophthalmologists.
For the development of the deep-learning-based segmentation method, the encoder–decoder architecture proposed in [69] for rodent OCTs was used, but, for this work, the model was specifically trained with human peripapillary OCT images to perform this comparison. The new resulting model is called H-DLpNet (where H refers to human, DL to deep learning, p to peripapillary, and Net stands for neural network). This approach was widely applied in other OCT-based state-of-the-art works intended for glaucoma classification (see e.g., [44]). The fully convolutional network (FCN) architecture was composed of three encoder-decoder blocks. The aim of [69] was to detect the boundaries of three retinal layers (ILM, IPL-INL, and IS-OS) in rodent OCT images. It is well-known that human and rodent retinas present significant differences. The main distinctions are that the ganglion cell layer (GCL) in rodents is not visually distinguishable (app. 2 µm) while in humans is around 20–60 µm. In addition, the third innermost layer, the IPL, on the contrary, is relatively thick in the rodent retina (app. 60 µm). To achieve the objective proposed in this paper and to obtain the ILM and GCL boundary layers and, therefore, the RNFL layer in human images, it is necessary to adapt the approach developed in [69] for the human retina characteristics. Following a transductive transfer learning approach, we retrained the deep learning segmentation method with human peripapillary OCT images to create the H-DLpNet model. The retraining was carried out by making use of a private database, coming from the Oftalvist Ophthalmic Clinic, which consists of 249 human B-scans around the ONH of the retina. In particular, 93 samples were diagnosed by expert ophthalmologists as glaucomatous, whereas 156 circumpapillary images were associated with normal eyes. Note that each B-scan, of dimensions M × N = 496 × 768 pixels, was acquired using the Spectralis OCT system, which allows for obtaining an axial resolution of 4–5 µm. The RNFL mask used to retrain the approach was obtained automatically by the Spectralis OCT segmentation. The hyperparameters used to update the segmentation model were the following: stochastic gradient descent (SGD) optimizer using mini-batches of eight samples with a momentum value of 0.9 and a learning rate of 0.001 initially and reduced by one order after every 20 epochs. The retraining was composed of sixty epochs by optimizing a weighted multiclass logistic function. The retrained model was used to predict the database of human OCT images used in this study and never seen before by the approach.
For illustrative purposes, Figure 15 shows a qualitative assessment of the RNFL segmentation provided by the manual delineation of the ophthalmologist, the proposed approach, the H-DLpNet method and the commercial software of the Spectralis OCT device. These three examples of representative OCT images were arbitrarily chosen for this evaluation, namely the right eye of patients 2, 20, and 69 from the database. Note that only the ground truth of these three cases is available since the manual segmentation of the experts is time consuming and cost expensive. As discussed in Section 4, the manual segmentation of the entire database will be carried out as a future work to provide a trustworthy ground truth.
On these three images, the Dice similarity coefficient [70] was calculated to measure the similarity between the manual segmentation and the proposed method, and the manual segmentation and H-DLpNet method. Table 3 shows the results of this coefficient for each of the sectors of the eye as well as for the overall segmented layer. The Dice coefficient compares quantitatively the segmentation along the entire RNFL provided by two methods. The closer the coefficient is to unity, the more similarity there is between the segmented RNFL areas by the methods.
Next, a quantitative comparison of the results generated by the proposed method, the H-DLpNet method, and the Spectralis OCT device was carried out across the entire database. Note that the Spectralis device does not provide the thickness values at each polar coordinate of the scan but only provides the average values of the RNFL thickness in each sector of the eye. Therefore, these average values of the RNFL thickness were used in the comparison between the three methods.
From the mean values of the layer thickness in each sector (TS, T, TI, NS, N, and NI) in each of the images, the mean value and the standard deviation were calculated over all images of the dataset. These values were also calculated for the mean thickness of the whole RNFL (G). These values were calculated for the three methods, being gathered in Table 4 for the statistical values of the RNFL thickness measurements. Note that the dataset includes healthy and glaucoma patients with large differences in the RNFL thickness, causing large standard deviation values.
The mean and standard deviation of the thickness error were also calculated. This parameter was determined as the difference in the mean RNFL thickness in each sector provided by all three methods. Both RNFL thickness and thickness error were measured in µm. Finally, the mean and standard deviation of the relative error, defined as the quotient between the thickness error and the RNFL thickness determined by the proposed approach, were also calculated. Note, that this calculation was performed again for each sector of the eye as well as the whole RNFL. Table 5 shows these results.
In addition, the Dice similarity coefficient [70] was also computed for the segmentation resulting from the proposed method and the H-DLpNet method for all the images in the database. The measurements provided by the Spectralis software were excluded from this comparison since only the mean value at each sector was available. The mean value and standard deviation of the Dice coefficient calculated over all the images in the dataset are shown in Table 6.
Finally, a time analysis was performed on an Intel i7-4710HQ @ 2.50 GHz of 32 GB of RAM without using GPU processing. The average processing time for each image is 1.818 s with a standard deviation of 0.997 s.

4. Discussion

4.1. Robustness against Parameter Variations and Speckle Noise

An important aspect to consider is the robustness of the method against variations in the parameters, in particular the size of the structuring elements. The morphological filters (mainly openings and closings), proposed for the coarse detection of the RNFL boundaries, focus on the shape and size of the objects and their relative intensity (a bright object on a dark background or vice versa). For instance, a circular structuring element with a radius greater than 3, i.e., 3 , is required in Equation (4) to detect the upper boundary #1-UB. Given that 7 is used in the proposed method, there is a wide range of values in which this morphological filtering would provide the desired results. For the sake of clarity, Figure 16 shows the results of the steps of Figure 7b,d, corresponding to the Equations (4) and (5), using circular structuring elements with radii 5 and 9. As can be seen, the effect of the morphological operation is visible in the image, but the desired result, i.e., the delineation of the upper boundary, is practically similar in all cases. Likewise, we analyzed the steps shown in Figure 8h–k, corresponding to Equations (12)–(14), where an opening, a closing, and a thresholding of the positive vertical gradient are performed. Variations are made on the proposed structuring element 3 , using in this case radii 1 and 7, as shown in Figure 17. The only noticeable effect between the images appears in the shaded areas by the vessels, which is subsequently compensated by the application of active contours with suppression of external forces by means of the vein mask. It is important to note that the application of the proposed method to a different dataset might require a readjustment of the parameters used in the filtering. Since morphological operators filter the shape (and size) according to the structuring element, the expected maximum and minimum width of the retinal layer under study, measured in pixels, influences the setting of these parameters.
Regarding the influence of speckle noise on the results of the segmentation, it is negligible for most OCT images of the database due to their correct acquisition and their limited number of artifacts. Nevertheless, the bypassing of these filters could cause problems in OCT images with a higher level of noise or number of artifacts. The proposed filtering suppresses with morphological openings the typical bright spots of speckle noise in Equations (4), (10) and (23); and suppresses with morphological closings the dark spots in Equations (7) and (23). As indicated above, the parameter of this filtering, i.e., the size of the structuring element, is not critical, and there is a wide range of values in which the performance of the filtering is optimum. The mean value of the standard deviation of the speckle noise within the dataset used in this work is estimated using the NOLSE estimator [71], resulting in σ = 0.0088 , within the range of σ = [0.0030–0.0292]. To evaluate the robustness to speckle noise of the proposed method, we tested the method over the OCT images with synthetically added speckle noise with standard deviation from σ = 0.031 to σ = 0.316 (variance from σ 2 = 0.001 to σ 2 = 0.1 ). Figure 18 illustrates the results on an image with a speckle noise estimation of σ = 0.0062 . The performance of the method is appropriate with noise level below σ < 0.316 . As can be seen in Figure 18d, by exceeding this level, the #3-LB was not correctly detected, resulting in an incorrect adjustment to the CGL + IPL layer. It should be noted that given the visual degradation achieved in OCT images, this value should be outside of any realistic practical situation.

4.2. Analysis of the Performance of the Methods

By first applying a qualitative analysis to the results depicted in Figure 15, we can clearly see that the three methods handle the delineation of the upper boundary of the RNFL with adequate reliability. However, it can be noticed that the H-DLpNet method tends to generate excessive smoothing in bumpy areas, with peaks and valleys, causing certain inaccuracies. By contrast, both the proposed method and Spectralis tend to produce a result closer to the manual segmentation as defined by the experts.
The analysis of the accuracy of the lower boundary of the RNFL is, on the other hand, notoriously difficult. As described in Section 2.1, the speckle noise and the artifacts due to the shadows cast by blood vessels generate inaccuracies in all the segmentation algorithms. However, this lack of information in the shaded areas is also a challenge in the manual segmentation carried out by the experts. This makes it unclear which method shows a higher precision in certain images of the database.
Analyzing the manual segmentations in Figure 15, it can be observed that the H-DLpNet method tends to project upward the layer delineation inside the areas shaded by the vessels, while Spectralist tends to project the layer in the downward direction. The proposed method, on the other hand, tends to be a compromised solution by maintaining a greater continuity of the layer in these areas. In manual segmentation, experts maintain or lower the location of the lower edge in the shaded areas, as roughly performed by the proposed method and Spectralis, respectively. Note that although only three OCT images are shown in these figures, similar results can be observed in most of the images in the database. This inaccuracy in the shaded areas, even for the experts, complicates the quantitative analysis whose metrics are detailed in Section 3.
In addition, it is important to determine the highest accuracy in layer thickness measurement allowed by the resolution of the images. Although the proposed method has subpixel precision, the thickness measurement by the neural network in the image is performed in pixels. Considering a minimum error of one pixel in the delineation of each boundary, two boundaries of the RNFL to be delineated, and a vertical resolution of 3.87 µm/pixel, therefore a difference of less than 7.74 µm between the layer thicknesses provided by either method, should not be significant due to the image resolution.
Table 4 shows the mean value of the RNFL thickness in each section of the eye calculated by the three methods. It can be seen that the mean values of the layers are between a minimum of 67.3 µm and a maximum of 136.2 µm, which correspond to 8.7 and 17.6 times the minimum resolution allowed by the image. Therefore, the layer thicknesses measured by each method are very close to each other, considering the limitation of the image resolution. Note that the proposed method tends to provide slightly greater thicknesses than the other two methods in most sectors.
Focusing on Table 5 with the thickness errors, it can be observed that the smallest and the largest mean values correspond to 6.9 and 17.6 µm, respectively, which again, are acceptable values given the resolution provided by the image. Excluding the overall thickness (G), we can notice that the temporal sector T shows the lowest error of all sectors, both in the mean value and in the standard deviation. This is mainly due to the fact that the presence of blood vessels in this segment is reduced, and therefore, the three methods provide similar measurements. By contrast, sectors such as the temporal superior (TS), temporal inferior (TI), and nasal inferior (NI), with a considerable number of artifacts and shadows, show much greater differences. One sector of particular interest is the nasal sector (N). In the comparison between Spectralis and the proposed method, it can be seen that the mean error is quite high in both eyes, about 17 µm. As can be seen in Figure 15, although some vessels appear in this sector, the mean error is relatively high, due in part to the fact that Spectralis tends to lower the upper edge. Thus, Spectralis provides a lower mean thickness than the proposed method, with the error being even higher than in sectors with more artifacts.
The two right-hand columns of Table 5 show the relative error of the proposed method with the other two methods. It can be seen that analogously to the absolute error, the lowest value corresponds to the overall mean (G) with 0.07 for right eye, and the worst case corresponds to the nasal sector (N) with 0.19 also for the right eye. It is also noteworthy that the error between the proposed method and the H-DLpNet method has a smaller magnitude than with the results provided by Spectralis. The similarity between the results of the proposed method and the H-DLpNet method can also be measured with the Dice similarity coefficient detailed in Table 4. As can be seen, the concordance between the segmented layer is high, since in all sectors, the Dice coefficient is higher than 0.893 in all cases.
We emphasize that both the proposed method and the H-DLpNet method use the same set of images provided by the Spectralis device. However, we cannot be sure whether the Spectralis software uses only the information from the OCT images or makes use of other data available to the device software but not available from the image set. The details of this inbuilt software are not available and, generally, the processing is specific for each particular equipment. This fact makes it difficult to compare measurements between equipment from different brands as well as with implementations based on recent research. For example, as addressed in [25], the authors highlight the differences in manual and automated segmentation in drusen volume from a Heidelberg spectral domain (SD-) and a Zeiss swept-source (SS) PlexElite optical coherence tomography (OCT).
At this point, it is important to remark that the main purpose of the segmentation of the RNFL in peripapillary B-scan OCTs is the assessment of the glaucoma status or progression. To this end, the main objective is the automatic measurement of the evolution of the RNFL thickness over time and thus determines its relationship with the progression of the disease. For this reason, although the results provided by these three methods differ slightly, what is really important for its application in glaucoma screening is the consistency of the chosen method over time. Since the image characteristics producing these small differences between methods are constant over time, the methods studied, including the proposed approach, can be expected to provide this consistency over time. Nevertheless, this hypothesis needs to be verified as this method is used in research on the progression in glaucoma patients.
An important distinguishing feature between the proposed method and the H-DLpNet method is the ability to apply constraints in the segmentation process. In the H-DLpNet method, a training is first performed with a set of labeled images, and then the convolutional neural network is applied to automatically predict the segmentation in the target images. By contrast, the proposed method can directly operate on the images in the database, being able to impose certain restrictions in the segmentation process, such as grey levels of the layers, minimum and maximum thicknesses, periodicity, smoothness or maximum curvature, and layer continuity, among others. The application of these constraints is more challenging in neural-network-based methods and allows for greater robustness in layer detection. In particular, the H-DLpNet method has problems in the segmentation of seven images of the database, which are instead correctly segmented with the proposed method.
Although the proposed method has proven to be robust to image artifacts produced by vessels shadowing and speckle noise of usual practical scenarios (variance less than 0.1), some issues may hinder the correct segmentation of the RNFL. Neither the proposed method nor the H-DLpNet method do not provide satisfactory results in four images of the dataset, in which the retinal layers suffer from the lack of continuity at the edges of the image or where part of the RNFL is cut off in the image area, as exemplified in Figure 19. It should be noted, however, that in clinical practice, the expert repeats the acquisition of such images, as they are considered invalid.
In addition, the approaches to segment the retinal layers in OCT images based on machine learning usually require a huge amount of labeled data, which are difficult to obtain, even more so if the data are derived from manual segmentations. Furthermore, the contours provided by expert ophthalmologists possess certain variability due the subjective knowledge which changes between observers. Therefore, an automatic method for the segmentation of the retinal layers based on “classical” image processing is useful since it is usually faster, it can be used as a standalone technique, or it can provide a large amount of label data to be used in deep learning methods under human supervision.
Finally, the computational load between methods was also compared. The proposed method uses an average processing time of 1.818 s per image, which is substantially less than the average time of 5.169 s used by the H-DLpNet method for the segmentation of each image. Note that as indicated above, the latter method additionally requires a network training process prior to the prediction process. Thus, the proposed method shows a higher efficiency in the segmentation process.

5. Conclusions

The automatic segmentation of the retinal nerve fiber layer (RNFL) in peripapillary spectral-domain OCT images is of great relevance in the diagnosis of glaucoma, since the thickness of this retinal layer is a useful biomarker given its relationship to the disease status and progression. In this context, this work proposes a new approach to segment and estimate the thickness of the RNFL from 2D peripapillary B-scan OCT images. The proposed method consists of a set of stages applied sequentially to each OCT image. First, a preprocessing was performed by means of morphological operations in order to reduce speckle noise and unwanted artifacts, followed by a vertical gradient peak detection. According to the result of this detection, a linear low-pass filtering was then applied, followed by a refinement through the application of deformable models. This yielded the boundaries of the RNFL, allowing one to easily determine the RNFL thickness at each angle of the peripapillary OCT scanning. The efficiency of the proposed method is based on the optimized implementation of the morphological operators and on the frequency implementation of the active contours. On the other hand, the establishment of constraints in the segmentation process guarantees the robustness of the estimation even in the case of defective or highly noisy images.
The proposed method was compared with version 6.9.4.0 of the inbuilt software of the Spectralis OCT imaging device as well as with the H-DLpNet method. In addition, the segmentation results were evaluated and validated by ophthalmologists. The three methods analyzed show similar results, except in certain areas of the retina due to artifacts and shadows cast by the blood vessels of the eye. In these areas, the precise positions of the layer boundaries are uncertain even in the manual segmentation conducted by ophthalmologists. Nevertheless, since the key point in determining glaucoma progression is the variation in RNFL thickness over time, the differences in thickness measured by the methods are not significant, as they are consistent over time for each patient. Thus, we can affirm that the proposed method, like the previous ones, is perfectly valid for the study of the evolution of the RNFL thickness. Furthermore, we highlight that the proposed method is computationally more efficient compared to the H-DLpNet method. Together with the greater robustness of the method and the accuracy of the segmentation results, we can state that the proposed method is valid and efficient for the study of the evolution of the RNFL thickness in peripapillary OCT for the assessment of glaucoma.
Being aware of the limited existence of publicly accessible databases with peripapillary OCT images including patient metadata together with prediagnoses of this disease, in order to facilitate future comparisons and validations with the proposed method, the authors will try to publish the dataset used in this work to make it publicly accessible.
Although the proposed method is focused on obtaining the RNFL thickness in peripapillary OCT, the further extension to the case of OCT volumes is a line of future work. In this new context, although it is not critical, the size of the structuring elements should be analyzed to study their relative size in comparison with the retinal layers to be segmented. However, the most important change would occur in the implementation of active contours. In the case of peripapillary OCTs, a closed contour was used since the circular B-scan provides the boundaries of the RNFL as periodic signals. In the case of an OCT volume, the boundaries of the RNFL cannot be considered as periodic signals, and the implementation of the active contours in the frequency domain is not straightforward. It would be necessary to use hidden extensions [51] to satisfy the boundary conditions imposed when using the discrete Fourier transform. The current implementation of the proposed method has been tested on the nonperipapillary OCT volume dataset [20], producing acceptable results in the outermost slices of this volume, where there is enough edge-based information for localizing most of the boundaries. Unlike methods for the 3D segmentation of intraretinal layers based on regional image textures such as, e.g., [21], the proposed method fails in the central slices of the OCT volume since these edge requirements do not occur. At this point, to overcome this situation, the proposed method could be extended to the 3D case to achieve a robust and more efficient implementation than processing 2D slices of a 3D volume, where the deformable model would be a 3D open active mesh with some a priori knowledge incorporated into the deformable model [51,52] to deal with lack of boundaries of the fiber layers.
Future work on the segmentation process will focus on a more accurate positioning of the RNFL boundaries in the shaded areas. For this, it will be necessary to study the effect of shading and deformation caused by blood vessels in order to determine the real position of the RNFL boundaries in these areas. This information can then be applied as constraints in the segmentation process, enhancing its accuracy. Moreover, the efficiency of the process can be improved by optimizing the most computationally expensive steps such as the active contour adaptation in images with the highest number of artifacts. In addition to the technical aspects of the RNFL thickness estimation process, another important line of work will be the application of this method in its main purpose, namely the assessment of glaucoma disease and its evolution, from the data provided by peripapillary OCT images of patients.

Author Contributions

Conceptualization, R.B.-V., R.V.-M. and J.M.-S.; methodology, R.B.-V. and R.V.-M.; software, R.B.-V. and R.V.-M.; validation, R.B.-V., R.V.-M., R.d.A. and G.G.; formal analysis, R.B.-V. and R.V.-M.; investigation, R.B.-V. and R.V.-M.; resources, R.B.-V., R.V.-M. and I.S.-N.; data curation, R.V.-M. and I.S.-N.; writing—original draft preparation, R.B.-V., R.V.-M., J.M.-S., I.S.-N., R.d.A., G.G. and V.N.; writing—review and editing, R.B.-V., R.V.-M., J.M.-S., I.S.-N., R.d.A., G.G. and V.N.; visualization, R.B.-V., R.V.-M., I.S.-N. and V.N.; supervision, R.V.-M., I.S.-N. and V.N.; project administration, R.V.-M., I.S.-N. and V.N.; funding acquisition, R.V.-M., I.S.-N. and V.N. All authors have read and agreed to the published version of the manuscript.

Funding

This work was partially funded through Spanish National projects AES2017-PI17/00771 and AES2017-PI17/00821 (by Instituto de Salud Carlos III and by European Union (ERDF/ESF, “A way to make Europe”/ “Investing in your future”)), PID2019-105142RB-C21 (AI4SKIN) (by Spanish Ministry of Economy and Competitiveness), PTA2017-14610-I (by State Research Spanish Agency), regional project 20901/PI/18 (by Fundación Séneca) and by Polytechnic University of Valencia (PAID-01-20).

Institutional Review Board Statement

The OCT dataset was collected at the Department of Ophthalmology of the Hospital General Universitario Reina Sofía, HGURS, (Murcia, Spain). This study was carried out in accordance with the tenets of the Declaration of Helsinki and with the approval of the hospital’s Ethics Committee.

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Conflicts of Interest

The authors declare no conflict of interest.

Correction Statement

This article has been republished with a minor correction to the Funding statement. This change does not affect the scientific content of the article.

References

  1. Weinreb, R.N.; Khaw, P.T. Primary open-angle glaucoma. Lancet 2004, 363, 1711–1720. [Google Scholar] [CrossRef]
  2. Tham, Y.C.; Li, X.; Wong, T.Y.; Quigley, H.A.; Aung, T.; Cheng, C.Y. Global Prevalence of Glaucoma and Projections of Glaucoma Burden through 2040: A Systematic Review and Meta-Analysis. Ophthalmology 2014, 121, 2081–2090. [Google Scholar] [CrossRef] [PubMed]
  3. Casson, R.J.; Chidlow, G.; Wood, J.P.; Crowston, J.G.; Goldberg, I. Definition of glaucoma: Clinical and experimental concepts. Clin. Exp. Ophthalmol. 2012, 40, 341–349. [Google Scholar] [CrossRef] [PubMed]
  4. Kwon, Y.H.; Fingert, J.H.; Kuehn, M.H.; Alward, W.L. Primary Open-Angle Glaucoma. N. Engl. J. Med. 2009, 360, 1113–1124. [Google Scholar] [CrossRef]
  5. Swanson, E.A.; Fujimoto, J.G. The ecosystem that powered the translation of OCT from fundamental research to clinical and commercial impact. Biomed. Opt. Express 2017, 8, 1638–1664. [Google Scholar] [CrossRef]
  6. Huang, D.; Swanson, E.; Lin, C.; Schuman, J.; Stinson, W.; Chang, W.; Hee, M.; Flotte, T.; Gregory, K.; Puliafito, C.; et al. Optical coherence tomography. Science 1991, 254, 1178–1181. [Google Scholar] [CrossRef]
  7. Kanngiesser, J.; Roth, B. Wavefront Shaping Concepts for Application in Optical Coherence Tomography—A Review. Sensors 2020, 20, 44. [Google Scholar] [CrossRef]
  8. Badalà, F.; Nouri-Mahdavi, K.; Raoof, D.A.; Leeprechanon, N.; Law, S.K.; Caprioli, J. Optic disk and nerve fiber layer imaging to detect glaucoma. Am. J. Ophthalmol. 2007, 144, 724–732. [Google Scholar] [CrossRef]
  9. Alasil, T.; Wang, K.; Keane, P.A.; Lee, H.; Baniasadi, N.; de Boer, J.F.; Chen, T.C. Analysis of normal retinal nerve fiber layer thickness by age, sex, and race using spectral domain optical coherence tomography. J. Glaucoma 2013, 22, 532–541. [Google Scholar] [CrossRef]
  10. Sommer, A.; Miller, N.R.; Pollack, I.; Maumenee, A.E.; George, T. The Nerve Fiber Layer in the Diagnosis of Glaucoma. Arch. Ophthalmol. 1977, 95, 2149–2156. [Google Scholar] [CrossRef]
  11. Sommer, A.; Katz, J.; Quigley, H.A.; Miller, N.R.; Robin, A.L.; Richter, R.C.; Witt, K.A. Clinically Detectable Nerve Fiber Atrophy Precedes the Onset of Glaucomatous Field Loss. Arch. Ophthalmol. 1991, 109, 77–83. [Google Scholar] [CrossRef] [PubMed]
  12. Duke SD-OCT. Available online: https://people.duke.edu/~sf59/RPEDC_Ophth_2013_dataset.htm (accessed on 29 September 2021).
  13. Chiu, S.J.; Allingham, M.J.; Mettu, P.S.; Cousins, S.W.; Izatt, J.A.; Farsiu, S. Kernel regression based segmentation of optical coherence tomography images with diabetic macular edema. Biomed. Opt. Express 2015, 6, 1172–1194. [Google Scholar] [CrossRef] [PubMed]
  14. MGU-Net. Available online: https://github.com/Jiaxuan-Li/MGU-Net (accessed on 29 September 2021).
  15. Li, J.; Jin, P.; Zhu, J.; Zou, H.; Xu, X.; Tang, M.; Zhou, M.; Gan, Y.; He, J.; Ling, Y.; et al. Multi-scale GCN-assisted two-stage network for joint segmentation of retinal layers and discs in peripapillary OCT images. Biomed. Opt. Express 2021, 12, 2204–2220. [Google Scholar] [CrossRef] [PubMed]
  16. The Annotated Retinal OCT Images (AROI) Database. Available online: https://ipg.fer.hr/ipg/resources/oct_image_database (accessed on 29 September 2021).
  17. Melinščak, M.; Radmilović, M.; Vatavuk, Z.; Lončarić, S. Annotated retinal optical coherence tomography images (AROI) database for joint retinal layer and fluid segmentation. Automatika 2021, 62, 375–385. [Google Scholar] [CrossRef]
  18. Optical Coherence Tomography Image Database (OCTID). Available online: https://dataverse.scholarsportal.info/dataverse/OCTID (accessed on 29 September 2021).
  19. Gholami, P.; Roy, P.; Parthasarathy, M.K.; Lakshminarayanan, V. OCTID: Optical Coherence Tomography Image Database. arXiv arXiv:cs.CV/1812.07056, 2019. [CrossRef]
  20. OCT Data & Color Fundus Images of Left & Right Eyes of 50 Healthy Persons. Available online: https://sites.google.com/site/hosseinrabbanikhorasgani/datasets-1/oct-fundus-right-left (accessed on 29 September 2021).
  21. Mahmudi, T.; Kafieh, R.; Rabbani, H.; Mehri, A.; Akhlaghi, M.R. Evaluation of asymmetry in right and left eyes of normal individuals using extracted features from optical coherence tomography and fundus images. J. Med. Signals Sens. 2021, 11, 12–23. [Google Scholar] [CrossRef]
  22. Abràmoff, M.D.; Garvin, M.K.; Sonka, M. Retinal Imaging and Image Analysis. IEEE Rev. Biomed. Eng. 2010, 3, 169–208. [Google Scholar] [CrossRef] [PubMed]
  23. Quellec, G.; Lee, K.; Dolejsi, M.; Garvin, M.K.; Abramoff, M.D.; Sonka, M. Three-Dimensional Analysis of Retinal Layer Texture: Identification of Fluid-Filled Regions in SD-OCT of the Macula. IEEE Trans. Med. Imaging 2010, 29, 1321–1330. [Google Scholar] [CrossRef] [PubMed]
  24. Dufour, P.A.; Ceklic, L.; Abdillahi, H.; Schroder, S.; De Dzanet, S.; Wolf-Schnurrbusch, U.; Kowal, J. Graph-Based Multi-Surface Segmentation of OCT Data Using Trained Hard and Soft Constraints. IEEE Trans. Med. Imaging 2013, 32, 531–543. [Google Scholar] [CrossRef]
  25. Beck, M.; Joshi, D.S.; Berger, L.; Klose, G.; De Zanet, S.; Mosinska, A.; Apostolopoulos, S.; Ebneter, A.; Zinkernagel, M.S.; Wolf, S.; et al. Comparison of Drusen Volume Assessed by Two Different OCT Devices. J. Clin. Med. 2020, 9, 2657. [Google Scholar] [CrossRef]
  26. Xiang, D.; Tian, H.; Yang, X.; Shi, F.; Zhu, W.; Chen, H.; Chen, X. Automatic Segmentation of Retinal Layer in OCT Images with Choroidal Neovascularization. IEEE Trans. Image Process. 2018, 27, 5880–5891. [Google Scholar] [CrossRef] [PubMed]
  27. Girish, G.; Thakur, B.; Chowdhury, S.R.; Kothari, A.R.; Rajan, J. Segmentation of intra-retinal cysts from optical coherence tomography images using a fully convolutional neural network model. IEEE J. Biomed. Health Inform. 2019, 23, 296–304. [Google Scholar] [CrossRef] [PubMed]
  28. Xu, X.; Lee, K.; Zhang, L.; Sonka, M.; Abramoff, M.D. Stratified Sampling Voxel Classification for Segmentation of Intraretinal and Subretinal Fluid in Longitudinal Clinical OCT Data. IEEE Trans. Med. Imaging 2015, 34, 1616–1623. [Google Scholar] [CrossRef]
  29. Bogunović, H.; Venhuizen, F.; Klimscha, S.; Apostolopoulos, S.; Bab-Hadiashar, A.; Bagci, U.; Beg, M.F.; Bekalo, L.; Chen, Q.; Ciller, C.; et al. RETOUCH: The retinal OCT fluid detection and segmentation benchmark and challenge. IEEE Trans. Med. Imaging 2019, 38, 1858–1874. [Google Scholar] [CrossRef] [PubMed]
  30. Schmidt-Erfurth, U.; Klimscha, S.; Waldstein, S.; Bogunović, H. A view of the current and future role of optical coherence tomography in the management of age-related macular degeneration. Eye 2017, 31, 26–44. [Google Scholar] [CrossRef] [PubMed]
  31. Cabrera Fernández, D. Delineating fluid-filled region boundaries in optical coherence tomography images of the retina. IEEE Trans. Med. Imaging 2005, 24, 929–945. [Google Scholar] [CrossRef]
  32. Fuller, A.; Zawadzki, R.; Choi, S.; Wiley, D.; Werner, J.; Hamann, B. Segmentation of Three-dimensional Retinal Image Data. IEEE Trans. Vis. Comput. Graph. 2007, 13, 1719–1726. [Google Scholar] [CrossRef]
  33. Baroni, M.; Fortunato, P.; La Torre, A. Towards quantitative analysis of retinal features in optical coherence tomography. Med. Eng. Phys. 2007, 29, 432–441. [Google Scholar] [CrossRef]
  34. Boyer, K.; Herzog, A.; Roberts, C. Automatic recovery of the optic nervehead geometry in optical coherence tomography. IEEE Trans. Med. Imaging 2006, 25, 553–570. [Google Scholar] [CrossRef] [PubMed]
  35. Wang, C.; Wang, Y.X.; Li, Y. Automatic Choroidal Layer Segmentation Using Markov Random Field and Level Set Method. IEEE J. Biomed. Health Inform. 2017, 21, 1694–1702. [Google Scholar] [CrossRef] [PubMed]
  36. Yazdanpanah, A.; Hamarneh, G.; Smith, B.R.; Sarunic, M.V. Segmentation of Intra-Retinal Layers From Optical Coherence Tomography Images Using an Active Contour Approach. IEEE Trans. Med. Imaging 2011, 30, 484–496. [Google Scholar] [CrossRef]
  37. Rossant, F.; Bloch, I.; Ghorbel, I.; Paques, M. Parallel Double Snakes. Application to the segmentation of retinal layers in 2D-OCT for pathological subjects. Pattern Recognit. 2015, 48, 3857–3870. [Google Scholar] [CrossRef]
  38. Garvin, M.K.; Abramoff, M.D.; Wu, X.; Russell, S.R.; Burns, T.L.; Sonka, M. Automated 3-D Intraretinal Layer Segmentation of Macular Spectral-Domain Optical Coherence Tomography Images. IEEE Trans. Med. Imaging 2009, 28, 1436–1447. [Google Scholar] [CrossRef]
  39. Kafieh, R.; Rabbani, H.; Abramoff, M.D.; Sonka, M. Intra-retinal layer segmentation of 3D optical coherence tomography using coarse grained diffusion map. Med. Image Anal. 2013, 17, 907–928. [Google Scholar] [CrossRef]
  40. Novosel, J.; Thepass, G.; Lemij, H.G.; de Boer, J.F.; Vermeer, K.A.; van Vliet, L.J. Loosely coupled level sets for simultaneous 3D retinal layer segmentation in optical coherence tomography. Med. Image Anal. 2015, 26, 146–158. [Google Scholar] [CrossRef]
  41. Dodo, B.I.; Li, Y.; Eltayef, K.; Liu, X. Automatic annotation of retinal layers in optical coherence tomography images. J. Med. Syst. 2019, 43, 1–10. [Google Scholar] [CrossRef] [PubMed]
  42. Duan, J.; Tench, C.; Gottlob, I.; Proudlock, F.; Bai, L. Automated segmentation of retinal layers from optical coherence tomography images using geodesic distance. Pattern Recognit. 2017, 72, 158–175. [Google Scholar] [CrossRef]
  43. Rong, Y.; Xiang, D.; Zhu, W.; Yu, K.; Shi, F.; Fan, Z.; Chen, X. Surrogate-assisted retinal OCT image classification based on convolutional neural networks. IEEE J. Biomed. Health Inform. 2019, 23, 253–263. [Google Scholar] [CrossRef]
  44. García, G.; del Amor, R.; Colomer, A.; Verdú-Monedero, R.; Morales-Sánchez, J.; Naranjo, V. Circumpapillary OCT-focused hybrid learning for glaucoma grading using tailored prototypical neural networks. Artif. Intell. Med. 2021, 118, 102132. [Google Scholar] [CrossRef]
  45. Fang, L.; Cunefare, D.; Wang, C.; Guymer, R.H.; Li, S.; Farsiu, S. Automatic segmentation of nine retinal layer boundaries in OCT images of non-exudative AMD patients using deep learning and graph search. Biomed. Opt. Express 2017, 8, 2732–2744. [Google Scholar] [CrossRef] [PubMed]
  46. Li, Q.; Li, S.; He, Z.; Guan, H.; Chen, R.; Xu, Y.; Wang, T.; Qi, S.; Mei, J.; Wang, W. DeepRetina: Layer Segmentation of Retina in OCT Images Using Deep Learning. Transl. Vis. Sci. Technol. 2020, 9, 1–17. [Google Scholar] [CrossRef]
  47. Xiang, D.; Chen, G.; Shi, F.; Zhu, W.; Liu, Q.; Yuan, S.; Chen, X. Automatic Retinal Layer Segmentation of OCT Images With Central Serous Retinopathy. IEEE J. Biomed. Health Inform. 2019, 23, 283–295. [Google Scholar] [CrossRef]
  48. Morales, S.; Colomer, A.; Mossi, J.M.; Del Amor, R.; Woldbye, D.; Klemp, K.; Larsen, M.; Naranjo, V. Retinal layer segmentation in rodent OCT images: Local intensity profiles & fully convolutional neural networks. Comput. Methods Programs Biomed. 2021, 198, 105788. [Google Scholar] [CrossRef]
  49. Liu, X.; Cao, J.; Wang, S.; Zhang, Y.; Wang, M. Confidence-Guided Topology-Preserving Layer Segmentation for Optical Coherence Tomography Images With Focus-Column Module. IEEE Trans. Instrum. Meas. 2021, 70, 1–12. [Google Scholar] [CrossRef]
  50. Soille, P. Morphological Image Analysis: Principles and Applications, 2nd ed.; Springer: Berlin/Heidelberg, Germany, 2003. [Google Scholar]
  51. Weruaga, L.; Verdú, R.; Morales, J. Frequency Domain Formulation of Active Parametric Deformable Models. IEEE Trans. Pattern Anal. Mach. Intell. 2004, 26, 1568–1578. [Google Scholar] [CrossRef] [PubMed]
  52. Berenguer-Vidal, R.; Verdú-Monedero, R.; Morales-Sánchez, J. Design of B-spline multidimensional deformable models in the frequency domain. Math. Comput. Model. 2012, 57, 1942–1949. [Google Scholar] [CrossRef]
  53. Verdú-Monedero, R.; Morales-Sánchez, J.; Weruaga, L. Convergence analysis of active contours. Image Vis. Comput. 2008, 26, 1118–1128. [Google Scholar] [CrossRef]
  54. Berenguer-Vidal, R.; Verdú-Monedero, R.; Morales-Sánchez, J. Convergence analysis of multidimensional parametric deformable models. Comput. Vis. Image Underst. 2015, 135, 157–177. [Google Scholar] [CrossRef]
  55. Serra, J. Image Analysis and Mathematical Morphology; Academic Press: London, UK, 1982; Volume I. [Google Scholar]
  56. Serra, J. Image Analysis and Mathematical Morphology: Theoretical Advances; Academic Press: London, UK, 1988; Volume II. [Google Scholar]
  57. Xu, C.; Prince, J.L. Gradient Vector Flow Deformable Models; Handbook of Medical Imaging, Isaac Bankman; Academic Press: Cambridge, MA, USA, 2000. [Google Scholar]
  58. Terzopoulos, D. Deformable models: Classic, topology-adaptive and generalized formulations. In Geometric Level Set Methods in Imaging, Vision and Graphics; Osher, S., Paragios, N., Eds.; Springer: New York, NY, USA, 2003; Chapter 2; pp. 21–40. [Google Scholar]
  59. Liang, J.; McInerney, T.; Terzopoulos, D. United snakes. Med. Image Anal. 2006, 10, 215–233. [Google Scholar] [CrossRef]
  60. Bastida-Jumilla, M.; Menchon-Lara, R.; Morales-Sanchez, J.; Verdu-Monedero, R.; Larrey-Ruiz, J.; Sancho-Gomez, J. Frequency-domain active contours solution to evaluate intima-media thickness of the common carotid artery. Biomed. Signal Process. Control 2015, 16, 68–79. [Google Scholar] [CrossRef]
  61. Kass, M.; Witkin, A.; Terzopoulos, D. Snakes: Active contour models. Int. J. Comput. Vis. 1988, 1, 321–331. [Google Scholar] [CrossRef]
  62. Terzopoulos, D. The computation of visible surface representations. IEEE Trans. Pattern Anal. Mach. Intell. 1988, 10, 417–438. [Google Scholar] [CrossRef]
  63. Malladi, R.; Sethian, J.; Vemuri, B. Shape modeling with front propagation: A level set approach. IEEE Trans. Pattern Anal. Mach. Intell. 1995, 17, 158–175. [Google Scholar] [CrossRef]
  64. Cremers, D.; Schnorr, C.; Weickert, J. Diffusion-snakes: Combining statistical shape knowledge and image information in a variational framework. In Proceedings of the 1st IEEE Workshop on Variational and Level Set Methods in Computer Vision, Vancouver, BC, Canada, 13 July 2001; pp. 137–144. [Google Scholar]
  65. Wei, P.; Wang, W.; Yang, Y.; Wang, M.Y. Level set band method: A combination of density-based and level set methods for the topology optimization of continuums. Front. Mech. Eng. 2020, 15, 390–405. [Google Scholar] [CrossRef]
  66. Unser, M.; Aldroubi, A.; Eden, M. B-spline signal processing: Part I - Theory; Part II - Efficient design and applications. IEEE Trans. Signal Process. 1993, 41, 821–848. [Google Scholar] [CrossRef]
  67. Oppenheim, A.; Schafer, R. Discrete-Time Signal Processing, 2nd ed.; Prentice-Hall: Upper Saddle River, NJ, USA, 1999. [Google Scholar]
  68. Gonzalez, R.C.; Woods, R.E. Digital Image Processing, 3rd ed.; Prentice-Hall, Inc.: Upper Saddle River, NJ, USA, 2006. [Google Scholar]
  69. Amor, R.d.; Morales, S.; Colomer, A.n.; Mossi, J.M.; Woldbye, D.; Klemp, K.; Larsen, M.; Naranjo, V. Towards Automatic Glaucoma Assessment: An Encoder-decoder CNN for Retinal Layer Segmentation in Rodent OCT images. In Proceedings of the 27th European Signal Processing Conference (EUSIPCO), A Coruña, Spain, 2–6 September 2019; pp. 1–5. [Google Scholar] [CrossRef]
  70. Dice, L.R. Measures of the amount of ecologic association between species. Ecology 1945, 26, 297–302. [Google Scholar] [CrossRef]
  71. Laligant, O.; Truchetet, F.; Fauvet, E. Noise estimation from digital step-model signal. IEEE Trans. Image Process. 2013, 22, 5158–5167. [Google Scholar] [CrossRef]
Figure 1. Peripapillary B-scan OCT centered on the optic disc and its relative axial position with respect to a retinal fundus image. Screenshot taken from the Spectralis OCT device. I, S, N, and T stand for inferior, superior, nasal, and temporal, respectively.
Figure 1. Peripapillary B-scan OCT centered on the optic disc and its relative axial position with respect to a retinal fundus image. Screenshot taken from the Spectralis OCT device. I, S, N, and T stand for inferior, superior, nasal, and temporal, respectively.
Sensors 21 08027 g001
Figure 2. Screenshot provided by the Spectralis software version 6.9.4.0. From left to right and top to bottom: Retinal fundus photography centered on the optic disc (the yellow circle indicates the location of the peripapillary B-scan, which is shown on the right with the segmentation of the RNFL); 2D peripapillary B-scan OCT on Cartesian coordinates; estimated mean values for RNFL layer thickness for the temporal (T), temporal superior (TS), nasal superior (NS), nasal (N), nasal inferior (NI), and temporal inferior (TI) sectors, as well as the overall mean (G); rectified outline of the RNFL with estimated thickness and reference values according to the database European Descent (2009).
Figure 2. Screenshot provided by the Spectralis software version 6.9.4.0. From left to right and top to bottom: Retinal fundus photography centered on the optic disc (the yellow circle indicates the location of the peripapillary B-scan, which is shown on the right with the segmentation of the RNFL); 2D peripapillary B-scan OCT on Cartesian coordinates; estimated mean values for RNFL layer thickness for the temporal (T), temporal superior (TS), nasal superior (NS), nasal (N), nasal inferior (NI), and temporal inferior (TI) sectors, as well as the overall mean (G); rectified outline of the RNFL with estimated thickness and reference values according to the database European Descent (2009).
Sensors 21 08027 g002
Figure 3. Example of a peripapillary B-scan OCT image with the manual segmentation of the layer of interest RNFL and description of the sectors: T, TS, NS, N, NI, and TI.
Figure 3. Example of a peripapillary B-scan OCT image with the manual segmentation of the layer of interest RNFL and description of the sectors: T, TS, NS, N, NI, and TI.
Sensors 21 08027 g003
Figure 4. Layers of the retina from top to bottom. RNFL: retinal nerve fiber layer; GCL: ganglion cell layer; IPL: inner plexiform layer; INL: inner nuclear layer; OPL: outer plexiform layer; and ONL: outer nuclear layer. Boundary delineation in the segmentation process. #1-UB: upper boundary of the RNFL; #2-AB: auxiliary boundary corresponding to the lower boundary of the ONL; #3-LB, lower boundary of the RNFL. The dashed boxes exemplify some of the artifacts of the layers.
Figure 4. Layers of the retina from top to bottom. RNFL: retinal nerve fiber layer; GCL: ganglion cell layer; IPL: inner plexiform layer; INL: inner nuclear layer; OPL: outer plexiform layer; and ONL: outer nuclear layer. Boundary delineation in the segmentation process. #1-UB: upper boundary of the RNFL; #2-AB: auxiliary boundary corresponding to the lower boundary of the ONL; #3-LB, lower boundary of the RNFL. The dashed boxes exemplify some of the artifacts of the layers.
Sensors 21 08027 g004
Figure 5. Retinal fundus imaging of the eye under analysis. The green circumference represents the OCT analysis circumference centered on the optic nerve, marked with a +. The numbers represent the vessels crossing this analysis circumference.
Figure 5. Retinal fundus imaging of the eye under analysis. The green circumference represents the OCT analysis circumference centered on the optic nerve, marked with a +. The numbers represent the vessels crossing this analysis circumference.
Sensors 21 08027 g005
Figure 6. Intensity inhomogeneities and boundary artifacts caused by shadows cast by blood vessels. The numbers identify each of the vessels crossing the circular ray tracing depicted in Figure 5.
Figure 6. Intensity inhomogeneities and boundary artifacts caused by shadows cast by blood vessels. The numbers identify each of the vessels crossing the circular ray tracing depicted in Figure 5.
Sensors 21 08027 g006
Figure 7. Steps for the delineation of the #1-UB.
Figure 7. Steps for the delineation of the #1-UB.
Sensors 21 08027 g007
Figure 8. First set of operations applied for #2-AB delineation.
Figure 8. First set of operations applied for #2-AB delineation.
Sensors 21 08027 g008
Figure 9. Selection of the #2-AB vertical position. On the left, the positive vertical gradient image I 9 # 2 . On the right, 1D profile of the dashed column of I 9 # 2 .
Figure 9. Selection of the #2-AB vertical position. On the left, the positive vertical gradient image I 9 # 2 . On the right, 1D profile of the dashed column of I 9 # 2 .
Sensors 21 08027 g009
Figure 10. Computation of the blood vessel mask.
Figure 10. Computation of the blood vessel mask.
Sensors 21 08027 g010
Figure 11. Representation of the filter used in the first stage of blood vessel suppression: (a) space domain representation of the filter or point spread function (PSF), and (b) frequency domain representation or transfer function.
Figure 11. Representation of the filter used in the first stage of blood vessel suppression: (a) space domain representation of the filter or point spread function (PSF), and (b) frequency domain representation or transfer function.
Sensors 21 08027 g011
Figure 12. Delineation of the #3-LB.
Figure 12. Delineation of the #3-LB.
Sensors 21 08027 g012
Figure 13. Selection of the #3-LB vertical position. On the left, the negative vertical gradient image I 9 # 3 . On the right, 1D profile of the dashed column of I 9 # 3 .
Figure 13. Selection of the #3-LB vertical position. On the left, the negative vertical gradient image I 9 # 3 . On the right, 1D profile of the dashed column of I 9 # 3 .
Sensors 21 08027 g013
Figure 14. RNFL thickness measurements for each sector of the peripapillary circumference. On the left, diagram detailing the value of the average thickness of the RNFL in each sector of the eye. On the right side, representation of the borders #1-UB and #3-LB, and the average RNFL thickness in these sectors.
Figure 14. RNFL thickness measurements for each sector of the peripapillary circumference. On the left, diagram detailing the value of the average thickness of the RNFL in each sector of the eye. On the right side, representation of the borders #1-UB and #3-LB, and the average RNFL thickness in these sectors.
Sensors 21 08027 g014
Figure 15. Segmentation results for the right eye of (ad) patient 2, (eh) patient 20, and (il) patient 69.
Figure 15. Segmentation results for the right eye of (ad) patient 2, (eh) patient 20, and (il) patient 69.
Sensors 21 08027 g015
Figure 16. Results of changing the radius of the structuring element from 7 to 5 and 9 , used in the steps illustrated in Figure 7b–d for the delineation of #1-UB.
Figure 16. Results of changing the radius of the structuring element from 7 to 5 and 9 , used in the steps illustrated in Figure 7b–d for the delineation of #1-UB.
Sensors 21 08027 g016
Figure 17. Results of changing the radius of the structuring element from 3 to 1 and 7 , used in the steps illustrated in Figure 8h–k for the delineation of #2-AB.
Figure 17. Results of changing the radius of the structuring element from 3 to 1 and 7 , used in the steps illustrated in Figure 8h–k for the delineation of #2-AB.
Sensors 21 08027 g017
Figure 18. Results of testing the robustness against synthetically incorporated speckle noise from σ 2 = 0.001 to σ 2 = 0.1 ( σ = 0.031 to σ = 0.316 ). The NOLSE estimation [71] of the speckle noise for the raw image is σ 2 = 0.0000381 ( σ = 0.0062 ).
Figure 18. Results of testing the robustness against synthetically incorporated speckle noise from σ 2 = 0.001 to σ 2 = 0.1 ( σ = 0.031 to σ = 0.316 ). The NOLSE estimation [71] of the speckle noise for the raw image is σ 2 = 0.0000381 ( σ = 0.0062 ).
Sensors 21 08027 g018
Figure 19. Examples of challenging images for the application of the proposed method.
Figure 19. Examples of challenging images for the application of the proposed method.
Sensors 21 08027 g019
Table 1. Content of the OCT dataset used to validate the approach.
Table 1. Content of the OCT dataset used to validate the approach.
EyeHealthySuspiciousUnhealthy
Left883143
Right973238
Table 2. Correspondence between the polar and Cartesian coordinates in the OCT projection.
Table 2. Correspondence between the polar and Cartesian coordinates in the OCT projection.
SectorPolar (Degrees)Cartesian (Pixels)
MinMaxMinMax
Temporal (T)45°196
Temporal Superior (TS)45°90°97192
Nasal Superior (NS)90°135°193288
Nasal (N)135°225°289480
Nasal Inferior (NI)225°270°481576
Temporal Inferior (TI)270°315°577672
Temporal (T)315°360°673768
Table 3. Dice similarity coefficient calculated comparing the manual segmentation of the expert with results of the proposed method and H-DLpNet method for each sector of the eye and for the whole layer, G, for the right eye of patients 2, 20, and 69.
Table 3. Dice similarity coefficient calculated comparing the manual segmentation of the expert with results of the proposed method and H-DLpNet method for each sector of the eye and for the whole layer, G, for the right eye of patients 2, 20, and 69.
Dice Similarity Coefficient
Patient 2Patient 20Patient 69
SectorsProposedH-DLpNetProposedH-DLpNetProposedH-DLpNet
MethodMethodMethod
TS 0.974 0.951 0.943 0.927 0.899 0.832
T 0.959 0.927 0.929 0.857 0.927 0.887
TI 0.955 0.954 0.941 0.926 0.947 0.950
NS 0.959 0.912 0.818 0.873 0.851 0.820
N 0.934 0.902 0.896 0.893 0.895 0.850
NI 0.965 0.914 0.943 0.926 0.924 0.886
G 0.956 0.927 0.916 0.901 0.908 0.874
Table 4. RNFL thickness (mean and standard deviation in µm) provided by the proposed method, the H-DLpNet method and Spectralis for each sector of the eye (TS, T, TI, NS, N, and NI) as well as for the whole layer (G).
Table 4. RNFL thickness (mean and standard deviation in µm) provided by the proposed method, the H-DLpNet method and Spectralis for each sector of the eye (TS, T, TI, NS, N, and NI) as well as for the whole layer (G).
SectorsRNFL Thickness Measurement (µm)
ProposedH-DLpNetSpectralis
Left eyeTS122.8 ± 23.6128.5 ± 27.4121.7 ± 30.5
T79.0 ± 11.670.7 ± 13.967.3 ± 13.3
TI136.2 ± 30.2132.7 ± 31.8127.4 ± 34.8
NS116.0 ± 21.4111.4 ± 28.1105.5 ± 30.2
N86.5 ± 15.774.7 ± 16.468.7 ± 19.1
NI114.2 ± 23.6109.1 ± 27.1102.2 ± 28.0
G102.5 ± 13.296.6 ± 17.090.9 ± 17.8
Right eyeTS126.5 ± 24.9129.8 ± 25.5125.2 ± 29.5
T80.9 ± 14.072.7 ± 15.668.6 ± 15.6
TI133.4 ± 26.0131.9 ± 29.9126.0 ± 34.3
NS112.0 ± 23.5106.0 ± 27.698.6 ± 27.4
N90.9 ± 14.979.6 ± 16.372.8 ± 17.9
NI113.4 ± 23.5105.9 ± 25.8102.6 ± 27.3
G103.6 ± 13.697.3 ± 16.792.0 ± 17.8
Table 5. Absolute thickness error (mean and standard deviation in µm) calculated as the difference of the RNFL thickness provided by the proposed approach to both H-DLpNet and Spectralis methods. Relative error (mean and standard deviation) computed for each sector as the absolute error divided by the thickness value determined by the proposed method. These values are calculated for each sector of the eye (TS, T, TI, NS, N, and NI) as well as for the whole layer (G).
Table 5. Absolute thickness error (mean and standard deviation in µm) calculated as the difference of the RNFL thickness provided by the proposed approach to both H-DLpNet and Spectralis methods. Relative error (mean and standard deviation) computed for each sector as the absolute error divided by the thickness value determined by the proposed method. These values are calculated for each sector of the eye (TS, T, TI, NS, N, and NI) as well as for the whole layer (G).
SectorsAbsolute Thickness Errors (µm)Relative Thickness Errors
H-DLpNetSpectralisH-DLpNetSpectralis
Left eyeTS13.1 ± 11.814.5 ± 12.90.12 ± 0.110.13 ± 0.12
T8.3 ± 6.111.8 ± 7.80.11 ± 0.090.15 ± 0.10
TI10.0 ± 18.111.9 ± 10.00.08 ± 0.080.10 ± 0.11
NS12.3 ± 10.914.9 ± 12.60.11 ± 0.100.14 ± 0.12
N11.7 ± 11.017.6 ± 13.30.13 ± 0.120.20 ± 0.14
NI10.3 ± 9.213.5 ± 11.40.10 ± 0.090.13 ± 0.11
G6.9 ± 6.110.8 ± 8.00.07 ± 0.070.11 ± 0.09
Right eyeTS12.1 ± 10.412.8 ± 11.20.10 ± 0.100.11 ± 0.10
T8.3 ± 6.012.1 ± 7.90.11 ± 0.080.15 ± 0.10
TI12.8 ± 11.015.2 ± 12.40.11 ± 0.100.13 ± 0.12
NS10.1 ± 9.515.2 ± 13.50.10 ± 0.090.14 ± 0.12
N11.3 ± 9.317.3 ± 12.90.13 ± 0.100.19 ± 0.14
NI10.9 ± 9.613.0 ± 10.50.10 ± 0.090.12 ± 0.10
G7.4 ± 6.410.4 ± 7.30.08 ± 0.070.11 ± 0.08
Table 6. Dice similarity coefficient (mean and standard deviation) calculated comparing the results of the proposed method and the H-DLpNet method for each sector of the eye and for the whole layer.
Table 6. Dice similarity coefficient (mean and standard deviation) calculated comparing the results of the proposed method and the H-DLpNet method for each sector of the eye and for the whole layer.
SectorsDice Similarity Coefficient
H-DLpNet
Left eyeTS0.895 ± 0.082
T0.918 ± 0.071
TI0.921 ± 0.057
NS0.898 ± 0.059
N0.893 ± 0.078
NI0.917 ± 0.057
G0.908 ± 0.047
Right eyeTS0.906 ± 0.059
T0.919 ± 0.053
TI0.914 ± 0.074
NS0.907 ± 0.054
N0.902 ± 0.063
NI0.917 ± 0.062
G0.911 ± 0.047
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Berenguer-Vidal, R.; Verdú-Monedero, R.; Morales-Sánchez, J.; Sellés-Navarro, I.; del Amor, R.; García, G.; Naranjo, V. Automatic Segmentation of the Retinal Nerve Fiber Layer by Means of Mathematical Morphology and Deformable Models in 2D Optical Coherence Tomography Imaging. Sensors 2021, 21, 8027. https://doi.org/10.3390/s21238027

AMA Style

Berenguer-Vidal R, Verdú-Monedero R, Morales-Sánchez J, Sellés-Navarro I, del Amor R, García G, Naranjo V. Automatic Segmentation of the Retinal Nerve Fiber Layer by Means of Mathematical Morphology and Deformable Models in 2D Optical Coherence Tomography Imaging. Sensors. 2021; 21(23):8027. https://doi.org/10.3390/s21238027

Chicago/Turabian Style

Berenguer-Vidal, Rafael, Rafael Verdú-Monedero, Juan Morales-Sánchez, Inmaculada Sellés-Navarro, Rocío del Amor, Gabriel García, and Valery Naranjo. 2021. "Automatic Segmentation of the Retinal Nerve Fiber Layer by Means of Mathematical Morphology and Deformable Models in 2D Optical Coherence Tomography Imaging" Sensors 21, no. 23: 8027. https://doi.org/10.3390/s21238027

APA Style

Berenguer-Vidal, R., Verdú-Monedero, R., Morales-Sánchez, J., Sellés-Navarro, I., del Amor, R., García, G., & Naranjo, V. (2021). Automatic Segmentation of the Retinal Nerve Fiber Layer by Means of Mathematical Morphology and Deformable Models in 2D Optical Coherence Tomography Imaging. Sensors, 21(23), 8027. https://doi.org/10.3390/s21238027

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop