Retina image blood vessel part identification method based on multi-layer sampling
Through multi-layer sampling and Laplacian pyramid decomposition technology, the retinal image is decomposed into multiple edge samples, and a multi-input multi-output model is used for identification, which solves the problem of inaccurate identification of a single sample and improves the vascular location of the retinal image. Recognition accuracy and speed.
Patent Information
- Application Number
- CN202410837432.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-29
AI Technical Summary
Existing methods for identifying blood vessel parts in retinal images based on multi-layer sampling are prone to inaccurate recognition results in a single retinal image sample.
Using a multi-layer sampling method, the retinal image is decomposed into multiple edge retinal image samples through edge detection and Laplacian pyramid decomposition, and a multi-input and multi-output blood vessel part recognition model is used to identify multiple samples and compare and identify them. results to determine the final outcome.
It improves the accuracy of identifying blood vessel parts in retinal images, speeds up the identification process, and can process multiple edge retinal image samples at the same time.
Smart Images

Figure CN118864359A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of image processing, and in particular relates to a method for identifying blood vessel parts in retinal images based on multi-layer sampling. Background Art
[0002] In the field of medical research and diagnosis and treatment, blood vessels occupy a very important position. Changes in their structure can reflect the health status of various organs, such as retinal blood vessels, heart blood vessels, and lung blood vessels.
[0003] Retinal blood vessels are the only blood vessels in the human body that can be observed in a non-invasive way. Changes in their morphology and structure can directly reflect diseases such as cataracts, diabetes, hypertension and arteriosclerosis.
[0004] Scientific research shows that the use of periodic fundus screening followed by early diagnosis can significantly reduce the risk of cardiovascular disease.
[0005] Due to the accuracy, objectivity and large-scale requirements of fundus screening results, there is an urgent need for retinal vascular identification and fundus analysis in clinical practice.
[0006] Chinese Patent No. 202311201414.6 discloses a method and system for identifying vascular sites in retinal images based on multi-layer sampling, and specifically discloses the following contents: collecting retinal images of the person to be identified, performing image correction on the retinal images to obtain corrected retinal images, and performing edge monitoring on the corrected retinal images to obtain edge retinal images; identifying feature points of the edge retinal images, and flattening the edge retinal images according to the feature points to obtain flat retinal images; nodeizing the flattened retinal images to obtain node retinal images, and calculating the node weights of the nodes corresponding to the node retinal images; marking the node retinal images. The starting point and the ending point of the image are determined, and the node path of the starting point and the ending point is constructed, and the path nodes corresponding to the node path are marked, and the path weight of the node path is calculated according to the node weight; the path with the lowest weight of the node path is screened out according to the path weight, and the node retinal image is layered according to the path with the lowest weight to obtain a layered retinal image; the layered retinal image is filtered to obtain a detail enhanced image, the vascular structure coordinates of the detail enhanced image are located, the vascular texture features of the coordinate blood vessel corresponding to the vascular structure coordinates are extracted, the topological structure of the coordinate blood vessel is analyzed according to the vascular texture features, and the vascular category of the coordinate blood vessel is identified according to the topological structure.
[0007] The inventors of the present application have discovered that the above-mentioned method for identifying vascular sites in retinal images based on multi-layer sampling has only one retinal image sample when identifying vascular sites in retinal images. The small number of samples may easily lead to inaccurate identification results. Summary of the invention
[0008] To solve the problems raised in the above background technology. The present invention provides a retinal image vascular part recognition method based on multi-layer sampling, which has the characteristics of being able to improve the accuracy of retinal image vascular part recognition, and at the same time, the retinal image vascular part recognition model is a multi-input multi-output model, which can simultaneously recognize multiple edge retinal image samples and improve the recognition speed.
[0009] To achieve the above object, the present invention provides the following technical solution: a method for identifying blood vessel parts in retinal images based on multi-layer sampling, comprising the following steps:
[0010] S1: Collect retinal images of the person to be identified;
[0011] S2: preprocessing the retinal image of the person to be identified to obtain a preprocessed retinal image;
[0012] S3: detecting the edge of the preprocessed retinal image based on an edge detection algorithm and performing binarization processing based on a preset binarization processing rule to obtain an edge retinal image;
[0013] S4: Preprocessing of peripheral retinal images;
[0014] S5: Decompose the edge retinal image based on the Laplace pyramid to obtain a multi-layer edge retinal image;
[0015] S6: Identify the vascular parts of the multi-layer edge retinal images based on the retinal image vascular part recognition model, and compare the vascular part recognition results of the multi-layer edge retinal images. If the vascular part recognition results of the multi-layer edge retinal images are the same, the result is the retinal image vascular part recognition result. Otherwise, repeat steps S1-S6 until the vascular part recognition results of the multi-layer edge retinal images are the same.
[0016] Furthermore, in step S2, the preprocessing of the retinal image of the person to be identified includes denoising through a filter.
[0017] Furthermore, in step S3, the edge detection algorithm is the Canny edge detection algorithm, and the preset binarization processing rule is to set the image edge pixels to black and the non-edge pixels to white, so that only the edge line exists in the edge retinal image.
[0018] Furthermore, in step S4, the preprocessing of the edge retinal image includes artificially removing edge lines of the edge retinal image to remove the edge of the blood vessels.
[0019] Furthermore, in step S5, the specific steps of decomposing the edge retinal image by the Laplacian pyramid include:
[0020] S51: Gaussian blurring the peripheral retinal image to obtain a Gaussian blurred peripheral retinal image;
[0021] S52: Downsample the edge retinal Gaussian blurred image to obtain the second layer of the Gaussian pyramid.
[0022] The resulting image is the peripheral retinal image A1;
[0023] S53: down-sampling the edge retinal image A1 to obtain the third layer of the Gaussian pyramid, and the obtained image is the edge retinal image A2;
[0024] S54: This is done by analogy until the preset layer of the Gaussian pyramid is obtained, and the obtained image is the edge retinal image A. N ;
[0025] S55: The edge retinal image A N Up-sampling is performed to obtain the edge retinal image B1, and the edge retinal image A N-1 Subtracting it from the peripheral retinal image B1, the first layer of the Laplacian pyramid is obtained, and the obtained image is the peripheral retinal image C1;
[0026] S56: The edge retinal image A N-1 Up-sample to obtain the edge retinal image B2, and convert the edge retinal image A N-2 Subtracting the edge retinal image B2 from the edge retinal image to obtain the first layer of the Laplacian pyramid, and the obtained image is the edge retinal image C2;
[0027] S57: This is done by analogy until the preset layer of the Laplace pyramid is obtained, and the obtained image is the edge retinal image C N ;
[0028] The image is the edge retinal image C x is the decomposed edge retinal image, where x=1, 2, ..., N.
[0029] Furthermore, in step S6, the specific steps of the retinal image blood vessel part recognition model recognizing the blood vessel parts of the multi-layer edge retinal image include:
[0030] S61: constructing a retinal image blood vessel location recognition model, which is a multi-input multi-output model;
[0031] S62: Collect historical retinal images and divide them into training and testing sets;
[0032] S63: training and testing the constructed retinal image blood vessel location recognition model based on the training set and the test set to obtain the optimal retinal image blood vessel location recognition model;
[0033] S64: Inputting the multi-layer edge retinal images into the retinal image blood vessel location recognition model respectively, and the retinal image blood vessel location recognition model simultaneously outputs the recognition results of the multi-layer edge retinal images.
[0034] Compared with the prior art, the present invention has the following beneficial effects:
[0035] The present invention first collects retinal image samples, then performs edge processing on the retinal image samples to obtain edge retinal image samples, then decomposes the edge retinal image samples into multiple edge retinal image samples through a Laplace pyramid, and then inputs the multiple edge retinal image samples into a retinal image blood vessel part recognition model for recognition, and determines the blood vessel part in the retinal image sample based on the recognition results of the multiple edge retinal image samples. Compared with the prior art, this method can improve the accuracy of retinal image blood vessel part recognition, and the retinal image blood vessel part recognition model is a multi-input and multi-output model, which can simultaneously recognize multiple edge retinal image samples and improve the recognition speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 The flowchart of the method for identifying blood vessel parts in retinal images based on multi-layer sampling of the present invention is shown. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0038] See also Figure 1 The present invention provides the following technical solution: a method for identifying blood vessel parts in retinal images based on multi-layer sampling, comprising the following steps:
[0039] S1: Collect retinal images of the person to be identified;
[0040] S2: preprocessing the retinal image of the person to be identified to obtain a preprocessed retinal image;
[0041] Preprocessing of the retinal images of the person to be identified includes denoising through filters;
[0042] S3: detecting the edge of the preprocessed retinal image based on an edge detection algorithm and performing binarization processing based on a preset binarization processing rule to obtain an edge retinal image;
[0043] The edge detection algorithm is the Canny edge detection algorithm, and the preset binarization processing rule is to set the image edge pixels to black and the non-edge pixels to white, so that only the edge line exists in the edge retinal image;
[0044] S4: Preprocessing of peripheral retinal images;
[0045] The preprocessing of the edge retinal image includes artificially removing the edge line of the edge retinal image to remove the edge of the blood vessels;
[0046] S5: Decompose the edge retinal image based on the Laplace pyramid to obtain a multi-layer edge retinal image;
[0047] The specific steps of decomposing the edge retinal image by the Laplacian pyramid include:
[0048] S51: Gaussian blurring the peripheral retinal image to obtain a Gaussian blurred peripheral retinal image;
[0049] S52: Downsample the edge retinal Gaussian blurred image to obtain the second layer of the Gaussian pyramid.
[0050] The resulting image is the peripheral retinal image A1;
[0051] S53: down-sampling the edge retinal image A1 to obtain the third layer of the Gaussian pyramid, and the obtained image is the edge retinal image A2;
[0052] S54: This is done by analogy until the preset layer of the Gaussian pyramid is obtained, and the obtained image is the edge retinal image A. N ;
[0053] S55: The edge retinal image A N Up-sampling is performed to obtain the edge retinal image B1, and the edge retinal image A N-1 Subtracting it from the peripheral retinal image B1, the first layer of the Laplacian pyramid is obtained, and the obtained image is the peripheral retinal image C1;
[0054] S56: The edge retinal image A N-1 Up-sample to obtain the edge retinal image B2, and convert the edge retinal image A N-2 Subtracting the edge retinal image B2 from the edge retinal image to obtain the first layer of the Laplacian pyramid, and the obtained image is the edge retinal image C2;
[0055] S57: This is done by analogy until the preset layer of the Laplace pyramid is obtained, and the obtained image is the edge retinal image C N ;
[0056] The image is the edge retinal image C x is the decomposed edge retinal image, where x=1, 2, ..., N;
[0057] S6: identifying the blood vessel parts of the multi-layer edge retinal images based on the retinal image blood vessel part recognition model, and comparing the blood vessel part recognition results of the multi-layer edge retinal images. If the blood vessel part recognition results of the multi-layer edge retinal images are the same, the result is the retinal image blood vessel part recognition result. Otherwise, repeat steps S1-S6 until the blood vessel part recognition results of the multi-layer edge retinal images are the same.
[0058] The specific steps of the retinal image blood vessel part recognition model for recognizing the blood vessel parts of the multi-layer edge retinal image include:
[0059] S61: constructing a retinal image blood vessel location recognition model, which is a multi-input multi-output model;
[0060] S62: Collect historical retinal images and divide them into training and testing sets;
[0061] S63: training and testing the constructed retinal image blood vessel location recognition model based on the training set and the test set to obtain the optimal retinal image blood vessel location recognition model;
[0062] S64: inputting the multi-layer edge retinal images into the retinal image blood vessel location recognition model respectively, and the retinal image blood vessel location recognition model simultaneously outputs the recognition results of the multi-layer edge retinal images;
[0063] During the training process of the retinal image vascular location recognition model, the hyperparameters are optimized using the sparrow optimization algorithm, which specifically includes the following steps:
[0064] S631: parameter initialization;
[0065] S632: Divide the input model hyperparameters into discoverers, joiners and scouts, and calculate the fitness value of the initial population;
[0066] S633: Update weight;
[0067] S634: updating the positions of the discoverer, joiner, and scout according to the update formula;
[0068] S635: Calculate new fitness values and update the positions of the discoverer, joiner, and scout;
[0069] S636: repeat steps S633-S635 until the set conditions are met and then stop and output;
[0070] Among them, the update formula of the discoverer is:
[0071]
[0072] Where: is the position of the i-th sparrow, θ is the maximum number of iterations, R 2 is the warning value, S safe is a safe value, Q is a normally distributed random number, and L is a spatial unit column vector;
[0073] The update formula for the joiner is:
[0074]
[0075] Where: is the worst hyperparameter position of the tth generation, is the optimal position of the finder, A is the matrix of random assignments of hyperparameters;
[0076] The update formula of the scout is:
[0077]
[0078] Where: is the optimal hyperparameter position of the tth generation, β is a random number from a standard normal distribution, and f i is the adaptability value of each hyperparameter, f g is the optimal adaptability value of each hyperparameter, K is a uniform random number, f w is the worst fitness value of each hyperparameter, is a minimum value.
[0079] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for identifying blood vessel locations in retinal images based on multi-layer sampling, characterized in that: The following steps are involved: S1: Collect retinal images of the person to be identified; S2: preprocessing the retinal image of the person to be identified to obtain a preprocessed retinal image; S3: detecting the edge of the preprocessed retinal image based on an edge detection algorithm and performing binarization processing based on a preset binarization processing rule to obtain an edge retinal image; S4: Preprocessing of peripheral retinal images; S5: Decompose the edge retinal image based on the Laplace pyramid to obtain a multi-layer edge retinal image; S6: Identify the vascular parts of the multi-layer edge retinal images based on the retinal image vascular part recognition model, and compare the vascular part recognition results of the multi-layer edge retinal images. If the vascular part recognition results of the multi-layer edge retinal images are the same, the result is the retinal image vascular part recognition result. Otherwise, repeat steps S1-S6 until the vascular part recognition results of the multi-layer edge retinal images are the same.
2. The method for identifying blood vessel locations in retinal images based on multi-layer sampling according to claim 1, characterized in that: In step S2, the preprocessing of the retinal image of the person to be identified includes denoising through a filter.
3. The method for identifying retinal image blood vessel locations based on multi-layer sampling according to claim 1, characterized in that: In step S3, the edge detection algorithm is the Canny edge detection algorithm, and the preset binarization processing rule is to set the image edge pixels to black and the non-edge pixels to white, so that only the edge line exists in the edge retinal image.
4. The method for identifying blood vessel parts in retinal images based on multi-layer sampling according to claim 1, characterized in that: In step S4, the preprocessing of the edge retinal image includes artificially removing the edge line of the edge of the blood vessel in the edge retinal image.
5. The method for identifying blood vessel parts in retinal images based on multi-layer sampling according to claim 1, characterized in that: In step S5, the specific steps of decomposing the edge retinal image using the Laplacian pyramid include: S51: Gaussian blurring the peripheral retinal image to obtain a Gaussian blurred peripheral retinal image; S52: down-sampling the peripheral retinal Gaussian blurred image to obtain the second layer of the Gaussian pyramid, and the obtained image is the peripheral retinal image A1; S53: down-sampling the edge retinal image A1 to obtain the third layer of the Gaussian pyramid, and the obtained image is the edge retinal image A2; S54: This is done by analogy until the preset layer of the Gaussian pyramid is obtained, and the obtained image is the edge retinal image A. N ; S55: The edge retinal image A N Up-sampling is performed to obtain the edge retinal image B1, and the edge retinal image A N-1 Subtracting it from the peripheral retinal image B1, the first layer of the Laplacian pyramid is obtained, and the obtained image is the peripheral retinal image C1; S56: The edge retinal image A N-1 Up-sample to obtain the edge retinal image B2, and convert the edge retinal image A N-2 Subtracting the edge retinal image B2 from the edge retinal image to obtain the first layer of the Laplacian pyramid, and the obtained image is the edge retinal image C2; S57: This is done by analogy until the preset layer of the Laplace pyramid is obtained, and the obtained image is the edge retinal image C N ; The image is the edge retinal image C x is the decomposed edge retinal image, where x = 1, 2,...,N。 6. The method for recognizing blood vessels in retinal images based on multi-layer sampling according to claim 1, characterized in that: In step S6, the specific steps of the retinal image blood vessel part recognition model recognizing the blood vessel parts of the multi-layer edge retinal image include: S61: constructing a retinal image blood vessel location recognition model, which is a multi-input multi-output model; S62: Collect historical retinal images and divide them into training and testing sets; S63: training and testing the constructed retinal image blood vessel location recognition model based on the training set and the test set to obtain the optimal retinal image blood vessel location recognition model; S64: Inputting the multi-layer edge retinal images into the retinal image blood vessel location recognition model respectively, and the retinal image blood vessel location recognition model simultaneously outputs the recognition results of the multi-layer edge retinal images.
