Optic disc extraction method for ultra-wide-angle fundus images based on target localization and semantic segmentation
By combining target positioning and semantic segmentation technology, YOLOv4 and Snake algorithms are used to perform rough positioning and precise segmentation of the optic disc area in ultra-wide-angle fundus images, solving the problem of low extraction accuracy of the optic disc area and achieving higher extraction accuracy and label data. Built to outperform other models.
Patent Information
- Application Number
- CN202210521293.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-13
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-05-13
AI Technical Summary
The small size of the optic disc area target, lack of label data, uneven illumination, and serious noise interference in ultra-wide-angle fundus images result in low optic disc area extraction accuracy and cannot be directly used to train the optic disc segmentation model.
Using a method that combines target positioning and semantic segmentation, first use the YOLOv4 model to perform rough positioning of the optic disc area, use the Snake algorithm to interactively segment the optic disc area, build the label data set required for U2-Net model training, and use the U2-Net model Perform precise extraction.
It improves the detection accuracy of the optic disc area, solves the problem of lack of labels, improves the model training effect, and achieves higher optic disc area extraction accuracy, which is better than other common models such as PCNN, U-Net, DeepLabV3 and SegNet.
Smart Images

Figure CN114897831B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of ultra-wide-angle fundus imaging, and in particular to an ultra-wide-angle fundus image optic disc extraction method combining target positioning with semantic segmentation. Background Art
[0002] Glaucoma is very harmful and can irreversibly damage a person's vision and even cause blindness. Changes in the size and shape of the optic disc and other structures are closely related to the severity of glaucoma in patients. Glaucoma can be detected in a timely manner by testing the optic disc and optic cup. See reference [1] Amsa Shabbir, Aqsa Rasheed, Huma Shehraz, et al. Detection of glaucoma using retinal fundus images: A comprehensive review. Mathematical Biosciences and Engineering, 2021, 18(3): 2033-2076.
[0003] There are a large number of glaucoma patients in my country, but there is a serious shortage of professional ophthalmologists. Moreover, manual extraction of the optic disc area of the fundus is time-consuming and inefficient, and it is difficult to meet clinical needs. Therefore, using AI technology to automatically extract the optic disc area of the fundus is an effective solution to solve the shortage of ophthalmologists and increase the participation of glaucoma patients in early screening, and has received widespread attention from domestic and foreign researchers. Reference [2] Chinese patent "A method for retinal optic disc segmentation based on deep learning" (CN113240677A) introduces a dilated convolution into the U-Net model to segment the optic disc, and introduces an element-by-element subtraction operation in the jump connection. The features obtained by upsampling each layer are subtracted from the corresponding low-level features and the feature map of the same size after the 4x4 maximum pooling operation on the previous layer.
[0004] Reference [3] Fu Huazhu, Cheng Jun, Xu Yanwu, et al. Joint optic disc and cup segmentation based on multi-label deep network and polar transformation. IEEE transactions on medical imaging, 2018, 37(7): 1597-1605. A deep learning model called M-Net is proposed to solve the segmentation problem of optic disc and cup using multi-label. The network mainly consists of a multi-scale input layer, a U-shaped convolutional network, a side output layer and a multi-label loss function. The multi-scale input layer constructs an image pyramid to achieve multi-scale receptive field size. The U-Net model is used as the main network structure to learn multi-scale vascular feature information, while the side output layer is used as an early classifier to generate corresponding local prediction maps for different scale layers. Finally, a multi-label loss function is used to generate the final segmentation map.
[0005] Reference [4] Chinese patent "A method for optic cup and optic disc segmentation based on transfer learning of fundus image dataset" (CN112541923B) proposes a method for optic cup and optic disc segmentation based on transfer learning to address the problem of low generalization of the model segmentation of optic disc caused by large feature differences between different fundus image datasets. This method extracts common features between fundus image datasets through adversarial training of backbone segmentation network, feature domain discriminator and attention domain discriminator, and uses attention module to weight the features, effectively alleviating the problem of blurred boundary between optic cup and optic disc.
[0006] Compared with traditional fundus imaging, as shown in Figure 1(a), ultra-wide-angle fundus imaging technology has the advantages of large field of view, fast imaging, no mydriasis, and good patient compliance, as shown in Figure 1(b). However, since the brightness and clarity of the image are not as good as traditional fundus images and the resolution is large, the research on automatic interpretation is still in the early stages.
[0007] In the field of optic disc extraction from ultra-wide-angle fundus images, there are few special research reports. Reference [5] Li Zhongwen, Guo Chong, Nie Danyao, et al. A deep learning system for identifying lattice degeneration and retinal breaks using ultra-widefield fundus images. Annals of translational medicine, 2019, 7 (22): 618. In order to extract the standard 7-field fundus image for detecting diabetic retinopathy from ultra-wide-angle fundus images, the approximate position of the optic disc center is obtained by binarization using the characteristics of the presence of bright spots in the optic disc area. Then, after a certain amount of preprocessing, it is sent to the U-Net model trained based on the traditional fundus image dataset to realize the extraction of the optic disc. The reason for this is that there is a lack of annotated data for the optic disc area of ultra-wide-angle fundus images, which also affects the accuracy. Summary of the invention
[0008] The problem that the optic disc area extraction accuracy in ultra-wide-angle fundus images is low due to the small optic disc target, lack of label data, uneven illumination, severe noise interference and other reasons, and it cannot be directly used to train the optic disc segmentation model. The present invention proposes an optic disc extraction method for ultra-wide-angle fundus images that combines target positioning with semantic segmentation. First, the visual target detection network YOLOv4 is trained to achieve coarse positioning of the optic disc area, and the small target positioning problem of optic disc detection in ultra-wide-angle fundus images is converted into a larger target detection problem containing a candidate area of the optic disc. The difficulty of the problem is simplified and the detection accuracy is improved; then, the Snake algorithm in the active contour activity curve model is used to interactively segment the optic disc area recognized by the human eye, and obtain the labels used for subsequent neural network training; finally, the U 2 -Net model accurately extracts the optic disc in the candidate area.
[0009] The technical solution adopted by the present invention is:
[0010] The method for extracting optic disc from ultra-wide-angle fundus images by combining target positioning with semantic segmentation includes the following steps:
[0011] Step 1: Establish a YOLOv4 model to perform rough positioning of the optic disc area;
[0012] Step 2: According to the rough positioning result of the optic disc area, extract the area including the optic disc and remove the periocular area;
[0013] Step 3: Interactively segment the optic disc area using the active contour model Snake model to construct the U 2-Dataset with optic disc labels required for Net model training;
[0014] Step 4: Use U 2 -Net model for optic disc area extraction.
[0015] In step 2, according to the optic disc positioning result of the YOLOv4 model, the region of interest including the optic disc is extracted, the periocular area that interferes with the extraction of the optic disc area is removed, the center of the optic disc is placed to the left or right of the captured image, two 256×256 regions of interest are captured, and a mask is applied.
[0016] The step 3 comprises the following steps:
[0017] First, the ultra-wide-angle fundus image is grayscale normalized and Gaussian filtered to remove noise. Then, the coordinate points of the initial contour curve are manually selected, and the closed contour curve is obtained by interpolation. Then, the energy function E is calculated, and its gradient F and the five-diagonal band matrix A are obtained by using the energy function E, and then the position of each point on the curve is updated. Finally, the blank area in the closed curve is filled to obtain the optic disc label.
[0018] As shown in formulas (1)-(6):
[0019] E snake =∫E(v(s))ds=E int (v(s))+E ext (v(s)) (1);
[0020] Where: v(s) represents the curve function, E snake Represents the Snake curve energy, E int Represents internal energy, E ext Represents external energy;
[0021] E int (v(s))=∫(|v′(s)| 2 +|v″(s)| 2 )ds (2);
[0022] Where: v′(s) is the first-order derivative of the curve function, v″(s) is the second-order derivative of the curve function,
[0023] E ext (v(s))=E img (v(s))+E constaint (v(s)) (3);
[0024] Where: E img (v(s)), E constaint (v(s)) denote image energy and constraint energy, respectively;
[0025]
[0026] Where: I is the input image, I x with I y Respectively represent the partial derivatives of the image with respect to the x-axis and the y-axis, where x and y are coordinate values;
[0027] Represents the inverse of the image, I xx ,I xy ,I yy They respectively represent: the second-order partial derivative of the image on the x-axis, the second-order partial derivative derived once on the x and y axes, and the second-order partial derivative on the y-axis.
[0028]
[0029] Where: x ss With x ssss Represent the first and second order partial derivatives of v(s) with respect to the x-axis, y ss With y ssss They represent the first-order and second-order partial derivatives of v(s) with respect to the y-axis respectively; α and β are weights.
[0030]
[0031] Where: f x With f y Represents E snake The partial derivative of the x-axis and y-axis, t represents the number of iterations;
[0032] x t ,y t are the coordinates of each point of this iteration curve;
[0033] x t-1 ,y t-1 are the coordinates of each point of the last iteration curve, A is a five-diagonal band matrix, and γ is the weight coefficient;
[0034] In step 3, in U 2 Before training the -Net model, the contrast between the optic disc and the background is enhanced through the contrast limited histogram equalization technology CLAHE to improve the model training effect.
[0035] The step 4 comprises the following steps:
[0036] S4.1: Input the enhanced image into U 2 -Net model, extracting the optic disc area;
[0037] S4.2: For U 2 -Net model output results are binarized to obtain a binary optic disc area image.
[0038] The present invention provides an ultra-wide-angle fundus image optic disc extraction method combining target positioning and semantic segmentation, and the technical effects are as follows:
[0039] 1) The present invention first uses the YOLOv4 network model with both speed and detection accuracy to locate the region of interest including the optic disc, which can effectively reduce the difficulty of subsequent segmentation caused by the small proportion of the optic disc area in the entire ultra-wide-angle fundus image.
[0040] 2) The present invention then extracts the located region of interest and uses the Snake algorithm in the active contour activity curve model to interactively segment the optic disc area recognized by the human eye as a label for subsequent neural network training. This solves the problem of lack of optic disc area labels in ultra-wide-angle fundus image sets.
[0041] 3) After the present invention obtains the video disc area label data, 2 -Net is trained. Before training, the contrast between the optic disc and the background is enhanced by contrast limited histogram equalization (CLAHE) to improve the model training effect. Finally, U 2 -Net results are binarized to obtain the segmented optic disc area. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1(a) is a traditional fundus image;
[0043] Figure 1(b) is an ultra-wide-angle fundus image.
[0044] Figure 2 Schematic diagram of the optic disc extraction process for ultra-wide-angle eye images.
[0045] Figure 3 This is the YOLOv4 model structure diagram.
[0046] Figure 4(a) shows the first result of YOLOv4 localization of the video disk;
[0047] Figure 4(b) shows the second result of YOLOv4 localization of the video disk.
[0048] Figure 5 Schematic diagram for extracting the region of interest containing the optic disc.
[0049] Figure 6 Flowchart for segmenting the video disc for the Snake model.
[0050] Figure 7(a) is the original image before image enhancement using the CLAHE method;
[0051] Figure 7(b) shows the image after image enhancement using the CLAHE method.
[0052] Figure 8 For U 2-Net network structure diagram.
[0053] Fig. 9 Extraction flow chart for the optic disc region.
[0054] Fig.10 This is a comparison chart of the optic disc area extraction results of ultra-wide-angle fundus images, where:
[0055] a The unit images contained in the column represent the original images;
[0056] b The cell graphs contained in the column represent label graphs;
[0057] The cell graphs contained in column c represent the optic disc area extraction result graphs of the PCNN model;
[0058] The unit graph contained in column d represents the optic disc area extraction result graph of the U-Net model;
[0059] The unit graph contained in column e represents the optic disc area extraction result graph of the DeepLabv3 model;
[0060] The unit graph contained in the f column represents the result graph of the optic disc area extraction of the SegNet model;
[0061] The unit graphs contained in column g represent the result graphs of optic disc area extraction by the method of the present invention.
[0062] Fig.11 This is a quantitative comparison chart of the optic disc area extraction results of the method proposed in the present invention and other methods.
[0063] Fig.12 This is the Snake evolution diagram. DETAILED DESCRIPTION
[0064] The problem that the optic disc area in ultra-wide-angle fundus images is small and lacks annotation information, and the extraction accuracy of the optic disc area is low due to uneven illumination and severe noise interference, and it cannot be directly used to train the optic disc segmentation model. The present invention proposes an optic disc area extraction algorithm for ultra-wide-angle fundus images that combines a target detection model with a semantic segmentation model. Since the optic disc area is a relatively small target relative to the entire ultra-wide-angle fundus image, it cannot be directly sent to the semantic segmentation network for extraction. The method first uses the YOLOv4 network to roughly locate the optic disc area with a positioning accuracy of 99.7%, and extracts the optic disc region of interest; then, in view of the lack of standard optic disc information in ultra-wide-angle fundus images, the active contour model Snake algorithm is used to interactively segment the optic disc area, and a data set with optic disc labels required for subsequent neural network training is constructed; finally, in view of the low accuracy of optic disc area extraction in ultra-wide-angle fundus images, the U 2 -Net model accurately extracts the optic disc area. The ultra-wide-angle fundus image optic disc area extraction performance of the present invention is better than other current optic disc extraction methods, such as:
[0065] References [8] Xu Guangzhu, Wang Yawen, Hu Song, et al. Retinal vessel segmentation based on PCNN combined with morphological matching enhancement. Optoelectronic Engineering, 2019, 46(04): 74-85. The scheme described in this paper;
[0066] Reference [9] Ronneberger Olaf, Fischer Philipp, Brox Thomas. U-net: Convolutional networks for biomedical image segmentation. International Conference on Medical image computing and computer-assisted intervention, 2015: 234-241. Recorded scheme;
[0067] Reference
[10] Chen Liang-Chieh, Papandreou George, Schroff Florian, et al. Rethinking atrous convolution for semantic image segmentation. arXiv preprint arXiv:1706.05587, 2017. The scheme recorded;
[0068] Reference
[11] Badrinarayanan Vijay, Kendall Alex, Cipolla Roberto. Segnet: A deep convolutional encoder-decoder architecture for image segmentation. IEEE transactions on pattern analysis and machine intelligence, 2017, 39(12): 2481-2495.
[0069] The method for extracting optic disc from ultra-wide-angle fundus images by combining target positioning with semantic segmentation includes the following steps:
[0070] Step 1: Since the optic disc area is a relatively small target relative to the entire ultra-wide-angle fundus image, it cannot be directly sent to the semantic segmentation network for extraction. In addition, the ultra-wide-angle fundus image has poor quality and contains eyelids, eyelashes and other periocular areas that are not conducive to the extraction of the optic disc area. To address this problem, the present invention uses a single-stage target detection model YOLOv4 to perform coarse positioning of the optic disc area. Its structure is as follows: Figure 3 Shown
[0071] YOLOv4 performs rough positioning of the optic disc area as follows:
[0072] The YOLOv4 model uses the CSPDarknet53 module as the backbone network to extract the deep semantic features of the optic disc in ultra-wide-angle fundus images, and then uses spatial pyramid pooling and path aggregation networks to fuse the multi-scale features of the optic disc, and finally uses a multi-scale output module to obtain the optic disc position information. It can be seen from Figure 4 (a) and Figure 4 (b) that the YOLOv4 model can accurately locate the optic disc position with a confidence level of over 90%.
[0073] Step 2: Based on the optic disc positioning results of the YOLOv4 model, extract the region of interest including the optic disc and remove the periocular area that interferes with the extraction of the optic disc area. Figure 5 As shown, the center of the optic disc is placed to the left or right of the captured image, two regions of interest with a size of 256×256 are captured, and are covered with a mask.
[0074] Step 3: To address the problem of lack of optic disc area labels in ultra-wide-angle fundus images, the present invention uses the active contour model Snake model to interactively segment the optic disc area as the pixel-level label required for subsequent deep learning model training. The process is as follows: Figure 6 As shown in the figure, the ultra-wide-angle fundus image is first grayscale normalized and Gaussian filtered to remove noise, and then the coordinate points of the initial contour curve are manually selected, and the closed contour curve is obtained by interpolation. Then the energy function E is calculated, and its gradient F and the five-diagonal band matrix A are obtained by using the energy function, and then the position of each point on the curve is updated, and finally the blank area in the closed curve is filled to obtain the optic disc label.
[0075] As shown in formulas (1)-(6):
[0076] E snake =∫E(v(s))ds=E int (v(s))+E ext (v(s)) (1);
[0077] Where: v(s) represents the curve function, E snake Represents the Snake curve energy, E int Represents internal energy, E ext Represents external energy;
[0078] E int (v(s))=∫(|v(s)| 2 +|v″(s)| 2 ds (2);
[0079] Where: v′(s) is the first-order derivative of the curve function, v″(s) is the second-order derivative of the curve function,
[0080] E ext (v(s))=E img (v(s))+E constaint (v(s)) (3);
[0081] Where: E img (v(s)), E constaint (v(s)) denote image energy and constraint energy, respectively;
[0082]
[0083] Where: I is the input image, I x with I y Respectively represent the partial derivatives of the image with respect to the x-axis and the y-axis, where x and y are coordinate values;
[0084] Indicates the inverse of the image;
[0085] I xx ,I xy ,I yy They represent: the second-order partial derivative of the image on the x-axis, the second-order partial derivative derived once on the x-axis and the y-axis, and the second-order partial derivative on the y-axis;
[0086]
[0087] Where: x ss With x ssss Represent the first and second order partial derivatives of v(s) with respect to the x-axis, y ss With y ssss They represent the first-order and second-order partial derivatives of v(s) with respect to the y-axis respectively; α and β are weights.
[0088]
[0089] Where: f x With f y Represents E snake The partial derivative of the x-axis and y-axis, t represents the number of iterations;
[0090] x t ,y t are the coordinates of each point of this iteration curve;
[0091] x t-1 ,y t-1 are the coordinates of each point of the last iteration curve;
[0092] A is a five-diagonal band matrix, and γ is a weight coefficient.
[0093] Step 4: In order to solve the problem of insufficient data volume and poor quality of ultra-wide-angle fundus images, the present invention uses image augmentation and image contrast enhancement to increase the data volume and enhance the image. The present invention increases the number of images in the data set to 4 times the original number by rotation and flipping. Then the optic disc image is grayscale normalized, and then the CLAHE method is used to reduce noise and increase the contrast between the optic disc and the background. As shown in Figure 7(a) and Figure 7(b).
[0094] Step 5: The present invention aims at the low precision problem of optic disc area extraction in ultra-wide-angle fundus image, using U 2 -Net model to extract the optic disc area. Figure 8 As shown, U 2 -Net model obtains powerful global and local feature extraction capabilities through RSU modules that can capture contextual information of different scales and skip connections that can fuse shallow spatial position information with deep semantic information. 2 -Net model for video disc extraction training.
[0095] The present invention provides an optic disc region extraction algorithm for ultra-wide-angle fundus images that combines visual target positioning with semantic segmentation. In order to solve the problem that the optic disc region occupies a small area in the ultra-wide-angle fundus image and cannot be directly and effectively extracted, and there is a lack of optic disc annotation information, the present invention first divides the precise extraction of the optic disc region into two stages: optic disc target detection and optic disc region segmentation. In the first stage, the optic disc positioning problem, which is a small target detection problem, is converted into a larger target detection problem by locating a larger image area containing the optic disc, and its precise positioning is achieved by training the YOLOv3 network model. Then, the Snake algorithm in the main contour activity curve model is used to interactively segment the optic disc in the detected area, and a training image set with optic disc annotation information required for subsequent segmentation model training is constructed. In the second stage, the U 2 -Net, to achieve accurate extraction of the optic disc area. The proposed two-stage optic disc extraction method and interactive optic disc annotation method not only effectively improves the optic disc extraction accuracy, but also obtains the optic disc annotation data required for the supervised learning segmentation method. The optic disc positioning accuracy of the entire method reaches 99.7%, providing a stable and reliable input for the subsequent segmentation process; the segmentation accuracy is higher than that of the widely used PCNN, U-Net, DeepLabV3 and SegNet models, and has great application value.
[0096] Depend on Fig.10It can be seen that compared with the PCNN, U-Net, DeepLabV3 and SegNet models that are widely used in optic disc extraction, the algorithm of the present invention can extract a more complete optic disc area, which is particularly obvious in the lesion image with blurred optic disc boundaries.
[0097] Depend on Fig.11 It can be seen that, except for sensitivity, the algorithm of the present invention has the best results in four quantitative indicators, namely specificity, precision, accuracy and Dice coefficient, compared with PCNN, U-Net, DeepLabV3 and SegNet models, and has a strong ability to extract the optic disc area.
Claims
1. The method for extracting optic disc from ultra-wide-angle fundus images by combining target positioning with semantic segmentation is characterized by The following steps are involved: Step 1: Establish a YOLOv4 model to perform rough positioning of the optic disc area; Step 2: According to the rough positioning result of the optic disc area, extract the area including the optic disc and remove the periocular area; Step 3: Interactively segment the optic disc area using the active contour model Snake model to construct the U 2 -Dataset with optic disc labels required for Net model training; Step 4: Use U 2 -Net model for optic disc area extraction; The step 3 comprises the following steps: First, the ultra-wide-angle fundus image is grayscale normalized and Gaussian filtered to remove noise. Then, the coordinate points of the initial contour curve are manually selected, and the closed contour curve is obtained by interpolation. Then, the energy function E is calculated, and its gradient F and the five-diagonal band matrix A are obtained by using the energy function E, and then the position of each point on the curve is updated. Finally, the blank area in the closed curve is filled to obtain the optic disc label. As shown in formulas (1)-(6): E snake =∫E(v(s))ds=E int (v(s))+E ext (in(s)) (1); Where: v(s) represents the curve function, E snake Represents the Snake curve energy, E int Represents internal energy, E ext Represents external energy; E int (v(s))=∫(|v′(s)| 2 +|v″(s)| 2 )ds (2); Where: v′(s) is the first-order derivative of the curve function, v″(s) is the second-order derivative of the curve function; E ext (v(s))=E img (v(s))+E constaint (v(s)) (3); Where: E img (v(s)), E constaint (v(s)) denote image energy and constraint energy, respectively; Where: I is the input image, I x with I y Respectively represent the partial derivatives of the image with respect to the x-axis and the y-axis, where x and y are coordinate values; Represents the inverse of the image, I xx ,I xy ,I yy They represent respectively: the second-order partial derivative of the image on the x-axis, the second-order partial derivative derived once on the x-axis and the y-axis, and the second-order partial derivative on the y-axis; Where: x ss With x ssss Represent the first and second order partial derivatives of v(s) with respect to the x-axis, y ss With y ssss They represent the first and second order partial derivatives of v(s) with respect to the y-axis respectively; α and β are weights; Where: f x With f y Represents E snake The partial derivative of the x-axis and y-axis, t represents the number of iterations; x t ,y t are the coordinates of each point of this iteration curve; x t-1 ,y t-1 are the coordinates of each point on the last iteration curve, A is a five-diagonal band matrix, and γ is the weight coefficient.
2. The method for extracting optic disc from ultra-wide-angle fundus images by combining target positioning with semantic segmentation according to claim 1, characterized in that: In step 2, according to the optic disc positioning result of the YOLOv4 model, the region of interest including the optic disc is extracted, the periocular area that interferes with the extraction of the optic disc area is removed, the center of the optic disc is placed to the left or right of the captured image, two 256×256 regions of interest are captured, and a mask is applied.
3. The method for extracting optic disc from ultra-wide-angle fundus images by combining target positioning with semantic segmentation according to claim 1, characterized in that: In step 3, in U 2 Before training the -Net model, the contrast between the optic disc and the background is enhanced through the contrast limited histogram equalization technology CLAHE to improve the model training effect.
4. The method for extracting optic disc from ultra-wide-angle fundus images by combining target positioning with semantic segmentation according to claim 1, characterized in that: The step 4 comprises the following steps: S4.1: Input the enhanced image into U 2 -Net model, extracting the optic disc area; S4.2: For U 2 -Net model output results are binarized to obtain a binary optic disc area image.
