Fundus leopard image segmentation method, computer and storage medium

Through multi-stage training, the method of combining leopard print features, skeleton features and edge features solves the problem of low fundus leopard print segmentation accuracy in the existing technology, achieves higher structural integrity and edge accuracy, and improves the robustness of the algorithm. Great sex.

CN114529535BActive Publication Date: 2024-09-27PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210163662.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-22
Publication Date
2024-09-27
Estimated Expiration
2042-02-22

AI Technical Summary

Technical Problem

The existing computer-aided leopard print segmentation method is subjective in the training data classification standards. The data labels are prone to noise, and it is difficult to quantify the leopard print area. The segmentation accuracy is poor, especially when the leopard print distribution position in the fundus is not fixed and the shape is irregular. When the imaging color style is inconsistent, it is difficult to completely segment the leopard pattern structure.

Method used

Using a multi-stage training method, the target neural network module is first generated through the leopard pattern feature module and the skeleton edge feature module, and then combined with the target leopard pattern features, skeleton features and edge features, the fundus image is segmented to improve the structural integrity and integrity of the segmentation results. Edge accuracy.

Benefits of technology

It significantly improves the structural integrity and edge accuracy of fundus leopard pattern image segmentation, enhances the robustness of the algorithm model, reduces dependence on imaging quality and image color style, and improves segmentation accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114529535B
    Figure CN114529535B
Patent Text Reader

Abstract

The invention relates to artificial intelligence technology, and an embodiment thereof provides a method for segmenting fundus leopard print images, a computer and a storage medium. The method comprises the following steps: obtaining preprocessed fundus image data; inputting the fundus image data into a leopard print feature module for first-stage training to obtain a target leopard print feature module; inputting the fundus image data into a fusion network module for second-stage training to obtain a target skeleton feature module and a target edge feature module, wherein the fusion network module comprises a target leopard print feature module, a skeleton feature module and an edge feature module; generating a target neural network module from the target leopard print feature module, the target skeleton feature module and the target edge feature module; inputting the fundus image data into a target neural network module for segmentation processing to obtain a target leopard print image output by the target neural network module; and the structural integrity and edge accuracy of the segmentation result can be significantly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to but are not limited to the field of artificial intelligence technology, and in particular to a fundus leopard print image segmentation method, a computer and a storage medium. Background Art

[0002] Fundus color photography is often used to diagnose the health of the retina. Leopard-like fundus is a characteristic manifestation of high myopia. As the degree of myopia increases, the eye axis elongates, and the retina becomes thinner, the blood vessels under the retina can be seen in the fundus, which appears as reddish-brown leopard-like patterns on the fundus color photography images. As the degree of leopard pattern increases, retinal diseases such as macular degeneration may occur in the fundus, causing serious visual impairment. Therefore, accurate segmentation of fundus leopard pattern is of great significance for monitoring the progression of myopia and preventing and controlling pathological myopia.

[0003] Among the existing computer-assisted leopard print segmentation methods, most studies use supervised image classification networks to directly classify fundus leopard prints into several levels according to severity. This type of segmentation method has certain limitations. On the one hand, the classification standards of training data are relatively subjective, and data labels are prone to noise. On the other hand, when the classification network is used for inference and prediction, the leopard print fundus can only be roughly graded, and the leopard print area cannot be quantified. In addition, due to the reasons such as the non-fixed distribution position, irregular morphology, and inconsistent imaging color style of the fundus leopard print, traditional segmentation algorithms are difficult to completely segment the structure of leopard prints, and the segmentation accuracy is poor. Summary of the invention

[0004] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.

[0005] The main purpose of the embodiments of the present invention is to provide a method, computer and storage medium for segmenting fundus leopard print images, which can significantly improve the structural integrity and edge accuracy of the segmentation results and improve the segmentation accuracy.

[0006] In a first aspect, an embodiment of the present invention provides a method for segmenting a fundus leopard print image, comprising:

[0007] Acquire preprocessed fundus image data, wherein the fundus image data is a fusion image of a fundus leopard print area and a non-fundus leopard print area;

[0008] Inputting the fundus image data into a leopard print feature module for first-stage training to obtain a target leopard print feature module;

[0009] Inputting the fundus image data into a fusion network module for second-stage training to obtain a target skeleton feature module and a target edge feature module, wherein the fusion network module includes a target leopard feature module, a skeleton feature module and an edge feature module;

[0010] Generate a target neural network module by using the target leopard print feature module, the target skeleton feature module and the target edge feature module;

[0011] The fundus image data is input into the target neural network module for leopard print segmentation processing to obtain a target leopard print image output by the target neural network module.

[0012] In one embodiment, the step of inputting the fundus image data into a leopard print feature module for first-stage training to obtain a target leopard print feature module includes:

[0013] Inputting the fundus image data into a leopard print feature module for segmentation processing to obtain leopard print area loss image data;

[0014] Obtaining a first loss function value by comparing the leopard print area loss image data with the leopard print annotation generated by the fundus image data;

[0015] The leopard print feature module is iteratively trained according to the first loss function value to obtain a target leopard print feature module.

[0016] In one embodiment, the iterative training of the leopard print feature module according to the first loss function value to obtain a target leopard print feature module includes:

[0017] Compare the first loss function value with a first preset threshold. If the first loss function value is less than the first preset threshold, iteratively adjust the parameters of the leopard print feature module until the first loss function is greater than or equal to the first preset threshold, and determine that the leopard print feature module corresponding to the current parameters is the target leopard print feature module.

[0018] In one embodiment, the inputting of the fundus image data into the fusion network module for the second stage training to obtain the target skeleton feature module and the target edge feature module includes:

[0019] Inputting the fundus image data into a skeleton feature module and an edge feature module for segmentation processing respectively, to obtain skeleton structure loss image data and edge structure loss image data;

[0020] Compare the skeleton structure loss image data and the edge structure loss image data with the skeleton annotation and the edge annotation generated by the fundus image data, respectively, to obtain a second loss function value and a third loss function value;

[0021] Performing weighted processing on the first loss function value, the second loss function and the third loss function to obtain a fourth loss function value;

[0022] The skeleton feature module and the edge feature module are iteratively trained according to the fourth loss function value to obtain a target skeleton feature module and a target edge feature module.

[0023] In one embodiment, the iterative training of the skeleton feature module and the edge feature module according to the fourth loss function value to obtain a target skeleton feature module and a target edge feature module includes:

[0024] The fourth loss function value is compared with the second preset threshold. If the fourth loss function value is less than the second preset threshold, the parameters of the skeleton feature module and the parameters of the edge feature module are iteratively adjusted until the fourth loss function is greater than or equal to the second preset threshold, and the skeleton feature module corresponding to the current parameters is determined to be the target skeleton feature module, and the edge feature module corresponding to the current parameters is the target edge feature module.

[0025] In one embodiment, the step of inputting the fundus image data into a leopard print feature module for segmentation processing to obtain leopard print area loss image data includes:

[0026] Inputting the fundus image data into a leopard feature module based on a pixel-level classification network for downsampling and segmentation processing to obtain downsampling features;

[0027] Upsampling and fusion processing is performed according to the downsampling features to obtain leopard print area loss image data.

[0028] In one embodiment, before obtaining the preprocessed fundus image data, the method further includes:

[0029] The fundus image data of the preset color in the original fundus image data is enhanced to obtain preprocessed fundus image data.

[0030] In one embodiment, the enhancing process of the fundus image data of a preset color in the original fundus image to obtain the preprocessed fundus image data includes:

[0031] Performing enhancement adjustment on a preset color channel in the first RGB channel to obtain a second RGB channel;

[0032] Separating and processing the fundus image data through the second RGB channel to obtain enhanced fundus image data of a preset color and fundus image data of a non-preset color;

[0033] The enhanced fundus image data of the preset color and the fundus image data of the non-preset color are fused to obtain preprocessed fundus image data.

[0034] In a second aspect, an embodiment of the present invention provides a fundus leopard print image segmentation device, comprising:

[0035] An acquisition module, used for acquiring preprocessed fundus image data, wherein the fundus image data is a fusion image of a fundus leopard print area and a non-fundus leopard print area;

[0036] A first training module, used for inputting the fundus image data into a leopard print feature module for first stage training to obtain a target leopard print feature module;

[0037] A second training module is used to input the fundus image data into a fusion network module for second-stage training to obtain a target skeleton feature module and a target edge feature module, wherein the fusion network module includes a target leopard feature module, a skeleton feature module and an edge feature module;

[0038] A generating module, used for generating a target neural network module from the target leopard feature module, the target skeleton feature module and the target edge feature module;

[0039] The segmentation module is used to input the fundus image data into the target neural network module for leopard print segmentation processing to obtain a target leopard print image output by the target neural network module.

[0040] In one embodiment, the first training module is also used to input the fundus image data into a leopard print feature module for segmentation processing to obtain leopard print area loss image data; compare the leopard print area loss image data with the leopard print annotation generated by the fundus image data to obtain a first loss function value; and iteratively train the leopard print feature module according to the first loss function value to obtain a target leopard print feature module.

[0041] In one embodiment, the first training module is also used to compare the first loss function value with a first preset threshold. If the first loss function value is less than the first preset threshold, the parameters of the leopard print feature module are iteratively adjusted until the first loss function is greater than or equal to the first preset threshold, and the leopard print feature module corresponding to the current parameters is determined to be the target leopard print feature module.

[0042] In one embodiment, the second training module is also used to input the fundus image data into the skeleton feature module and the edge feature module respectively for segmentation processing to obtain skeleton structure loss image data and edge structure loss image data; compare the skeleton structure loss image data with the skeleton annotation generated by the fundus image data to obtain a second loss function value, and compare the edge structure loss image data with the edge annotation generated by the fundus image data to obtain a third loss function value; weight the first loss function value, the second loss function and the third loss function to obtain a fourth loss function value; iteratively train the skeleton feature module and the edge feature module according to the fourth loss function value to obtain a target skeleton feature module and a target edge feature module.

[0043] In one embodiment, the second training module is further used to compare the fourth loss function value with a second preset threshold value. If the fourth loss function value is less than the second preset threshold value, the parameters of the skeleton feature module and the parameters of the edge feature module are adjusted iteratively until the fourth loss function is greater than or equal to the second preset threshold value, and the skeleton feature module corresponding to the current parameters is determined to be the target skeleton feature module, and the edge feature module corresponding to the current parameters is determined to be the target edge feature module.

[0044] In one embodiment, the first training module is also used to input the fundus image data into a leopard feature module based on a pixel-level classification network for downsampling and segmentation processing to obtain downsampling features; and perform upsampling and fusion processing based on the downsampling features to obtain leopard area loss image data.

[0045] In one embodiment, a preprocessing module is further included, and the preprocessing module is used to perform enhancement processing on the fundus image data of a preset color in the original fundus image data to obtain preprocessed fundus image data.

[0046] In one embodiment, the preprocessing module is also used to enhance and adjust the preset color channel in the first RGB channel to obtain a second RGB channel; separate the fundus image data through the second RGB channel to obtain enhanced fundus image data of the preset color and fundus image data of the non-preset color; fuse the enhanced fundus image data of the preset color and the fundus image data of the non-preset color to obtain preprocessed fundus image data.

[0047] In a third aspect, an embodiment of the present invention provides a computer, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the fundus leopard image segmentation method as described in the first aspect is implemented.

[0048] In a fourth aspect, a computer-readable storage medium stores computer-executable instructions, wherein the computer-executable instructions are used to execute the fundus leopard print image segmentation method described in the first aspect.

[0049] The embodiment of the present invention includes: a fundus leopard print image segmentation method includes the following steps: obtaining preprocessed fundus image data, the fundus image data being a fusion image of a fundus leopard print area and a non-fundus leopard print area; inputting the fundus image data into a leopard print feature module for first-stage training to obtain a target leopard print feature module; inputting the fundus image data into a fusion network module for second-stage training to obtain a target skeleton feature module and a target edge feature module, the fusion network module including a target leopard print feature module, a skeleton feature module and an edge feature module; generating a target neural network module from the target leopard print feature module, the target skeleton feature module and the target edge feature module; inputting the fundus image data into the target neural network module for leopard print segmentation processing to obtain a target leopard print image output by the target neural network module. In the technical solution of this embodiment, information from three levels, namely, the target leopard feature module, the target skeleton feature module, and the target edge feature module, are integrated, and the multi-level structure is input into the target neural network module for training. This can significantly improve the structural integrity and edge accuracy of the segmentation results, improve the segmentation accuracy, and refer to multi-dimensional structural features when segmenting the image. It no longer relies too much on local pixel values, and is less affected by the imaging quality of the fundus image and the differences in image color style, thereby effectively improving the robustness of the algorithm model.

[0050] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 is a schematic diagram of a system architecture platform for executing a method for segmenting fundus leopard print images provided by an embodiment of the present invention;

[0052] Figure 2 is a flow chart of a method for segmenting fundus leopard print images provided by an embodiment of the present invention;

[0053] Figure 3 It is a flowchart of the first stage training in the fundus leopard image segmentation method provided by an embodiment of the present invention;

[0054] Figure 4 It is a flowchart of the second stage training in the fundus leopard image segmentation method provided by one embodiment of the present invention;

[0055] Figure 5 It is a schematic diagram of a fundus leopard print image segmentation device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0057] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims or the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0058] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0059] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0060] Fundus color photography is often used to diagnose the health of the retina. Leopard-like fundus is a characteristic manifestation of high myopia. As the degree of myopia increases, the eye axis elongates, and the retina becomes thinner, the blood vessels under the retina can be seen in the fundus, which appears as reddish-brown leopard-like patterns on the fundus color photography images. As the degree of leopard pattern increases, retinal diseases such as macular degeneration may occur in the fundus, causing serious visual impairment. Therefore, accurate segmentation of fundus leopard pattern is of great significance for monitoring the progression of myopia and preventing and controlling pathological myopia.

[0061] Among the existing computer-assisted leopard print segmentation methods, most studies use supervised image classification networks to directly classify fundus leopard prints into several levels according to severity. This type of segmentation method has certain limitations. On the one hand, the classification standards of training data are relatively subjective, and data labels are prone to noise. On the other hand, when the classification network is used for inference and prediction, the leopard print fundus can only be roughly graded, and the leopard print area cannot be quantified. In addition, due to the reasons such as the non-fixed distribution position, irregular morphology, and inconsistent imaging color style of the fundus leopard print, traditional segmentation algorithms are difficult to completely segment the structure of leopard prints, and the segmentation accuracy is poor.

[0062] To solve the above problems, an embodiment of the present invention provides a fundus leopard print image segmentation method, which includes the following steps: obtaining preprocessed fundus image data, the fundus image data being a fusion image of a fundus leopard print area and a non-fundus leopard print area; inputting the fundus image data into a leopard print feature module for first-stage training to obtain a target leopard print feature module; inputting the fundus image data into a fusion network module for second-stage training to obtain a target skeleton feature module and a target edge feature module, the fusion network module including a target leopard print feature module, a skeleton feature module and an edge feature module; generating a target neural network module from the target leopard print feature module, the target skeleton feature module and the target edge feature module; inputting the fundus image data into the target neural network module for leopard print segmentation processing to obtain a target leopard print image output by the target neural network module. In the technical solution of this embodiment, information from three levels, namely, the target leopard feature module, the target skeleton feature module, and the target edge feature module, are integrated, and the multi-level structure is input into the target neural network module for training. This can significantly improve the structural integrity and edge accuracy of the segmentation results, improve the segmentation accuracy, and refer to multi-dimensional structural features when segmenting the image. It no longer relies too much on local pixel values, and is less affected by the imaging quality of the fundus image and the differences in image color style, thereby effectively improving the robustness of the algorithm model.

[0063] The embodiments of the present invention are further described below in conjunction with the accompanying drawings.

[0064] like Figure 1 As shown, Figure 1 Schematic diagram of a system architecture platform 100 for executing a method for segmenting fundus leopard print images provided by an embodiment of the present invention.

[0065] exist Figure 1 In the example of FIG. 1 , the system architecture platform 100 is provided with a processor 110 and a memory 120, wherein the processor 110 and the memory 120 can be connected via a bus or other means. Figure 1 The example of connecting through bus is taken in the following.

[0066] The memory 120, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer executable programs. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 120 may optionally include a memory remotely disposed relative to the processor 110, and these remote memories may be connected to the system architecture platform via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0067] Those skilled in the art will appreciate that the system architecture platform can be applied to existing communication network systems and subsequently evolved mobile communication network systems, etc., and this embodiment does not specifically limit this.

[0068] It can be understood by those skilled in the art that Figure 1 The system architecture platform shown in the figure does not constitute a limitation on the embodiments of the present invention, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0069] The system architecture platform 100 can be an independent system architecture platform, or it can be a cloud system architecture platform 100 that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.

[0070] Based on the above system architecture platform, various embodiments of the fundus leopard print image segmentation method of the present invention are proposed below.

[0071] like Figure 2 As shown, Figure 2 It is a flowchart of a fundus leopard image segmentation method provided by an embodiment of the present invention. The fundus leopard image segmentation method is applied to the above-mentioned architecture platform, and the fundus leopard image segmentation method includes but is not limited to step S100, step S200, step S300, step S400 and step S500.

[0072] Step S100, obtaining preprocessed fundus image data, where the fundus image data is a fusion image of a fundus leopard print area and a non-fundus leopard print area;

[0073] Step S200, inputting the fundus image data into the leopard print feature module for first stage training to obtain a target leopard print feature module;

[0074] Step S300, inputting the fundus image data into the fusion network module for second-stage training to obtain a target skeleton feature module and a target edge feature module, wherein the fusion network module includes a target leopard feature module, a skeleton feature module and an edge feature module;

[0075] Step S400, generating a target neural network module from a target leopard feature module, a target skeleton feature module and a target edge feature module;

[0076] Step S500, inputting the fundus image data into the target neural network module for leopard print segmentation processing, and obtaining a target leopard print image output by the target neural network module.

[0077] In one embodiment, fundus image data that needs to be segmented is received, and the fundus image data is a fusion image of a fundus leopard print area and a non-fundus leopard print area. The purpose of the technical solution is to segment the fundus leopard print area in the fusion image, so firstly, the fundus image data can be preprocessed, and the preprocessed fundus image data, the fundus image data is a fusion image of the fundus leopard print area and the non-fundus leopard print area, then the fundus image data is input into a leopard print feature module for a first stage training to obtain a target leopard print feature module, then the fundus image data is input into a fusion network module for a second stage training to obtain a target skeleton feature module and a target edge feature module, the fusion network module includes a target leopard print feature module, a skeleton feature module and an edge feature module, then the target leopard print feature module, the target skeleton feature module and the target edge feature module are used to generate a target neural network module, finally the fundus image data is input into the target neural network module for leopard print segmentation processing to obtain a target leopard print image output by the target neural network module. In the technical solution of this embodiment, information from three levels, namely, the target leopard feature module, the target skeleton feature module, and the target edge feature module, are integrated, and the multi-level structure is input into the target neural network module for training. This can significantly improve the structural integrity and edge accuracy of the segmentation results, improve the segmentation accuracy, and refer to multi-dimensional structural features when segmenting the image. It no longer relies too much on local pixel values, and is less affected by the imaging quality of the fundus image and the differences in image color style, thereby effectively improving the robustness of the algorithm model.

[0078] It should be noted that the step of preprocessing the original fundus image data is mainly to enhance the fundus image data of the preset color in the original fundus image data to obtain the preprocessed fundus image data. It can be that the preset color channel in the first RGB channel is enhanced and adjusted to obtain the second RGB channel; the fundus image data is separated through the second RGB channel to obtain the enhanced fundus image data of the preset color and the fundus image data of the non-preset color; the enhanced fundus image data of the preset color and the fundus image data of the non-preset color are fused to obtain the preprocessed fundus image data. The above steps can be understood as enhancing the fundus image data of the preset color in the original fundus image to obtain the preprocessed fundus image data. In image preprocessing, in order to better distinguish the fundus leopard print and non-leopard print areas, this embodiment separates the image into RGB channels, enhances the channels corresponding to the preset colors in the leopard print set, and then obtains the model input image through channel fusion. For example, in one embodiment, the preset color is red, so the red channel in the first RGB channel is first enhanced and adjusted to obtain the second RGB channel; then the fundus image data is separated and processed through the second RGB channel to obtain enhanced red fundus image data, blue fundus image data and green fundus image data; finally, the enhanced red fundus image data, blue fundus image data and green fundus image data are fused to obtain preprocessed fundus image data.

[0079] It should be noted that the preset color may be red, blue or green, and this embodiment does not specifically limit it and can be set according to the requirements of the image actually processed.

[0080] Reference Figure 4 In one embodiment, step S300 includes but is not limited to step S310, step S320 and step S330.

[0081] Step S310, inputting the fundus image data into a leopard print feature module for segmentation processing to obtain leopard print area loss image data;

[0082] Step S320, obtaining a first loss function value by comparing the leopard print region loss image data with the leopard print annotation generated from the fundus image data;

[0083] Step S330, iteratively training the leopard print feature module according to the first loss function value to obtain a target leopard print feature module.

[0084] Specifically, in order to better segment the leopard print area, the fundus image data is input into a leopard print feature module based on a pixel-level classification network for down-sampling segmentation processing to obtain down-sampling features, and then up-sampling fusion processing is performed based on the down-sampling features to obtain leopard print area loss image data. For example, the conventional neural network model can be modified to a pixel-level classification network of ResNet34, and then the fundus image data is segmented through the pixel-level classification network of ResNet34 to obtain down-sampling features, and then the down-sampling features are fused to obtain relatively rough leopard print area data, and the relatively rough leopard print area data is compared with the leopard print annotation generated by the fundus image data to obtain a first loss function, and the fundus image data is segmented through the first loss function to obtain leopard print area loss data. The above steps are repeated for several rounds to update the first loss function, so that the approximate structure of the fundus leopard print can be preliminarily segmented to prepare basic data for subsequent training. In the technical solution of this embodiment, information from three levels, namely, the target leopard feature module, the target skeleton feature module, and the target edge feature module, are integrated, and the multi-level structure is input into the target neural network module for training. This can significantly improve the structural integrity and edge accuracy of the segmentation results, improve the segmentation accuracy, and refer to multi-dimensional structural features when segmenting the image. It no longer relies too much on local pixel values, and is less affected by the imaging quality of the fundus image and the differences in image color style, thereby effectively improving the robustness of the algorithm model.

[0085] In one embodiment, the method for leopard print image segmentation of the fundus is mainly to improve the Unet network and perform two-stage training. The above steps are the steps of the first stage. First, the backbone in Unet is modified to ResNet34, and then downsampling feature segmentation is performed in the improved Unet framework, and then upsampling feature fusion is performed to obtain leopard print segmentation parameters for training, and then the leopard print area loss (loss1) is used alone as the first loss function, and loss1 is the intersection-over-union loss (Dice loss); then the first loss function is used to perform several rounds of iterative training on the leopard print area data, which can preliminarily segment the general structure of the fundus leopard print, that is, the leopard print area loss data, to prepare basic data for the second stage of training.

[0086] The Unet network is a U-shaped symmetrical structure, with a convolutional layer on the left and an upsampling layer on the right. The Unet structure contains 4 convolutional layers and corresponding 4 up sampling layers. When implementing, you can either implement the network from scratch and initialize the weights, and then train the model; you can also borrow the convolutional layer structure and the corresponding trained weight files of some existing networks, and add the subsequent up sampling layer for training calculations, such as resnet vgg, etc. In the model training of deep learning, the ability to use existing weight model files can greatly speed up the training. The Unet network is suitable for the segmentation of medical images. Since the number of medical images is smaller than that of natural images, it is more difficult to obtain clinically significant labels. Therefore, the network model structure used for medical images should not be too complex / parameters should not be too many, which can easily cause overfitting and affect the applicability of the model. The model parameters of Unet can be reduced by adjusting the number of model layers and the number of channels per layer, making it lightweight compared to other models. Moreover, in clinical use, medical images require information from the entire image to help doctors judge global information such as location and comparison between lesions and normal locations, as well as local information of certain characteristic areas or locations. Therefore, for medical images, information at each scale is very important and helpful for diagnosis. Therefore, effective information at multiple scales should be considered as much as possible. Unet can combine high-level and low-level features to increase the amount of information.

[0087] It should be noted that the intersection-over-union ratio is a concept used in target detection, which is the overlap ratio of the generated candidate bounding box (candidate bounding box) and the original marked bounding box (ground truth bounding box), that is, the ratio of the intersection and the union of the two. The most ideal situation is complete overlap, that is, the situation where the ratio is 1.

[0088] Reference Figure 4 In one embodiment, step S300 includes but is not limited to step S410, step S420, step S430 and step S440.

[0089] Step S410, inputting the fundus image data into the skeleton feature module and the edge feature module for segmentation processing, to obtain skeleton structure loss image data and edge structure loss image data;

[0090] Step S420, comparing the skeleton structure loss image data with the skeleton annotation generated by the fundus image data to obtain a second loss function value, and comparing the edge structure loss image data with the edge annotation generated by the fundus image data to obtain a third loss function value;

[0091] Step S430, performing weighted processing on the first loss function value, the second loss function and the third loss function to obtain a fourth loss function value;

[0092] Step S440, iteratively training the skeleton feature module and the edge feature module according to the fourth loss function value to obtain a target skeleton feature module and a target edge feature module.

[0093] Specifically, the above-mentioned step flow is the flow of the second stage of the fundus leopard image segmentation method, maintaining the network structure of the first stage, and loading the model parameters (target leopard feature module) obtained by the first stage training, and inputting the fundus image data into the skeleton feature module and the edge feature module for segmentation processing respectively, to obtain skeleton structure loss image data and edge structure loss image data, and then compare the skeleton structure loss image data with the skeleton annotation generated by the fundus image data to obtain the second loss function value, and compare the edge structure loss image data with the edge annotation generated by the fundus image data to obtain the third loss function value, and then weight the first loss function value, the second loss function and the third loss function to obtain the fourth loss function value, and finally iteratively train the skeleton feature module and the edge feature module according to the fourth loss function value to obtain the target skeleton feature module and the target edge feature module.

[0094] For step S440, the fourth loss function value can be compared with the second preset threshold. If the fourth loss function value is less than the second preset threshold, the parameters of the skeleton feature module and the parameters of the edge feature module are iteratively adjusted until the fourth loss function is greater than or equal to the second preset threshold, and the skeleton feature module corresponding to the current parameters is determined to be the target skeleton feature module, and the edge feature module corresponding to the current parameters is the target edge feature module.

[0095] It should be noted that the fourth loss function value can be compared with the second preset threshold value, or can be compared with multiple preset indicator conditions, which is not specifically limited in this embodiment.

[0096] In one embodiment, in the process of the second stage, the network structure of the first stage is maintained, and the model parameters (target leopard feature module) obtained by the first stage training are loaded, and then the first loss function (loss1) of the leopard area, the second loss function (loss2) of the skeleton structure and the third loss function (loss3) of the edge structure are combined as the loss function of the second stage, and the fusion mode is weighted fusion; wherein loss2 performs skeleton segmentation on the input skeleton annotation generated by the fundus image data and the output feature map, and calculates the intersection-over-union loss for both, and loss3 respectively segments the edge annotation generated by the fundus image data and the edge of the output feature map, and calculates the intersection-over-union loss; skeleton structure loss data and edge structure loss data are obtained through the above steps, and then the skeleton structure loss data and edge structure loss data are input into the pixel-level classification network for training and updating the model parameters, and the skeleton structure loss data and edge structure loss data are corrected through the model parameters to obtain the target leopard skeleton structure image and the target leopard edge structure image. That is, the model parameters are updated through several rounds of iterations through the above steps, thereby correcting the skeleton structure and edge structure of the leopard segmentation result. Three levels of information are set up to fuse the target leopard feature module, the target skeleton feature module and the target edge feature module. The multi-level structure is input into the supervised neural network training, which can significantly improve the structural integrity and edge accuracy of the segmentation results, improve the segmentation accuracy, and refer to the multi-dimensional structural features when segmenting the image. It is no longer overly dependent on local pixel values. Therefore, it is less affected by the imaging quality of the fundus image and the color style differences of the image, effectively improving the robustness of the algorithm model.

[0097] Based on the above-mentioned fundus leopard print image segmentation method, various embodiments of the fundus leopard print image segmentation device, controller and computer-readable storage medium of the present invention are respectively proposed below.

[0098] Reference Figure 5 One embodiment of the present invention further provides a fundus leopard print image segmentation device, comprising:

[0099] An acquisition module 510 is used to acquire preprocessed fundus image data, where the fundus image data is a fusion image of a fundus leopard print area and a non-fundus leopard print area;

[0100] A first training module 520, for inputting fundus image data into a leopard print feature module for first stage training to obtain a target leopard print feature module;

[0101] The second training module 530 is used to input the fundus image data into the fusion network module for second-stage training to obtain a target skeleton feature module and a target edge feature module, wherein the fusion network module includes a target leopard feature module, a skeleton feature module and an edge feature module;

[0102] A generating module 540, used for generating a target neural network module from a target leopard feature module, a target skeleton feature module and a target edge feature module;

[0103] The segmentation module 550 is used to input the fundus image data into the target neural network module for leopard print segmentation processing, and obtain a target leopard print image output by the target neural network module.

[0104] In one embodiment, the first training module 520 is also used to input the fundus image data into the leopard print feature module for segmentation processing to obtain leopard print area loss image data; compare the leopard print area loss image data with the leopard print annotation generated by the fundus image data to obtain a first loss function value; iteratively train the leopard print feature module according to the first loss function value to obtain a target leopard print feature module.

[0105] In one embodiment, the first training module 520 is also used to compare the first loss function value with the first preset threshold. If the first loss function value is less than the first preset threshold, the parameters of the leopard print feature module are iteratively adjusted until the first loss function is greater than or equal to the first preset threshold, and the leopard print feature module corresponding to the current parameters is determined to be the target leopard print feature module.

[0106] In one embodiment, the second training module 530 is also used to input the fundus image data into the skeleton feature module and the edge feature module for segmentation processing, respectively, to obtain skeleton structure loss image data and edge structure loss image data; compare the skeleton structure loss image data with the skeleton annotation generated by the fundus image data to obtain a second loss function value, and compare the edge structure loss image data with the edge annotation generated by the fundus image data to obtain a third loss function value; weight the first loss function value, the second loss function and the third loss function to obtain a fourth loss function value; iteratively train the skeleton feature module and the edge feature module according to the fourth loss function value to obtain a target skeleton feature module and a target edge feature module.

[0107] In one embodiment, the second training module 530 is further used to compare the fourth loss function value with the second preset threshold value. If the fourth loss function value is less than the second preset threshold value, the parameters of the skeleton feature module and the parameters of the edge feature module are adjusted iteratively until the fourth loss function is greater than or equal to the second preset threshold value, and the skeleton feature module corresponding to the current parameter is determined to be the target skeleton feature module, and the edge feature module corresponding to the current parameter is determined to be the target edge feature module.

[0108] In one embodiment, the first training module 520 is also used to input the fundus image data into a leopard feature module based on a pixel-level classification network for downsampling and segmentation processing to obtain downsampling features; and perform upsampling and fusion processing based on the downsampling features to obtain leopard area loss image data.

[0109] In one embodiment, a preprocessing module is further included, and the preprocessing module is used to perform enhancement processing on the fundus image data of a preset color in the original fundus image data to obtain preprocessed fundus image data.

[0110] In one embodiment, the preprocessing module is also used to enhance and adjust the preset color channel in the first RGB channel to obtain a second RGB channel; separate the fundus image data through the second RGB channel to obtain enhanced fundus image data of the preset color and fundus image data of non-preset color; fuse the enhanced fundus image data of the preset color and the fundus image data of non-preset color to obtain preprocessed fundus image data.

[0111] It should be noted that the various embodiments of the above-mentioned posture-guided pedestrian re-segmentation device are consistent with the technical means used, the technical problems solved and the technical effects achieved in the embodiments of the fundus leopard image segmentation method, and are not described in detail here. For details, please refer to the embodiments of the fundus leopard image segmentation method.

[0112] In addition, an embodiment of the present invention provides a computer, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor.

[0113] The processor and the memory may be connected via a bus or other means.

[0114] It should be noted that the computer in this embodiment may correspond to include: Figure 1 The memory and processor in the embodiment shown can constitute Figure 1 Part of the system architecture platform in the illustrated embodiment, both belong to the same inventive concept, so both have the same implementation principles and beneficial effects, and will not be described in detail here.

[0115] The non-transient software program and instructions required to implement the fundus leopard image segmentation method on the device side of the above embodiment are stored in the memory. When executed by the processor, the fundus leopard image segmentation method of the above embodiment is executed, for example, the above described Figure 2 The method steps S100 to S500, Figure 3 Method steps S310 to S330 and Figure 4 Method steps S410 to S440 in.

[0116] The computer includes components such as a radio frequency (RF) circuit, a memory, an input unit, a display unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a processor, and a power supply. Those skilled in the art will appreciate that this embodiment does not limit the structure of the computer exclusively, and may include more or fewer components than in this embodiment, or combine certain components, or arrange components differently.

[0117] RF circuits can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is processed by the processor; in addition, the designed uplink data is sent to the base station. Usually, the RF circuit includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, referred to as LNA), a duplexer, etc. In addition, the RF circuit can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.

[0118] The memory can be used to store software programs and modules. The processor executes various functional applications and data processing of the computer by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the computer (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0119] The input unit can be used to receive input digital or character information, and to generate key signal input related to the setting and function control of the computer. Specifically, the input unit may include a touch panel and other input devices. The touch panel, also known as a touch screen, can collect touch operations on or near it (such as using any suitable object or accessory such as a finger, stylus, etc. on the touch panel or near the touch panel), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the contact coordinates, and then sends it to the processor, and can receive and execute the command sent by the processor. In addition, the touch panel can be implemented in various categories such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch panel, the input unit may also include other input devices. Specifically, other input devices may include but are not limited to one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, etc.

[0120] The display unit may be used to display input information or provided information and various menus of the computer. The display unit may include a display panel, and optionally, the display panel may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), etc. Further, the touch panel may cover the display panel, and when the touch panel detects a touch operation on or near it, it is transmitted to the processor to determine the category of the touch event, and then the processor provides a corresponding visual output on the display panel according to the category of the touch event. Although the touch panel and the display panel are used as two independent components to realize the input and output functions of the computer, in some embodiments, the touch panel and the display panel can be integrated to realize the input and output functions of the computer.

[0121] The computer may also include at least one sensor, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and / or backlight when the computer is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that segment computer postures (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration segmentation related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured on the computer, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0122] The audio circuit, the speaker, and the microphone can provide an audio interface. The audio circuit can transmit the received audio data to the speaker after converting the electrical signal, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit and converted into audio data, and then the audio data is output to the processor for processing, and then sent to another computer through the RF circuit, or the audio data is output to the memory for further processing.

[0123] WiFi is a short-range wireless transmission technology. Computers can send and receive emails, browse web pages, and access streaming media through WiFi modules. It provides wireless broadband Internet access. WiFi modules are not a necessary component of computers and can be omitted as needed without changing the essence of the invention.

[0124] The processor is the control center of the computer. It uses various interfaces and lines to connect the various parts of the entire computer. It executes various functions of the computer and processes data by running or executing software programs and / or modules stored in the memory, and calling data stored in the memory, so as to monitor the computer as a whole. Optionally, the processor may include one or more processing units; preferably, the processor may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, operating interface and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor.

[0125] The computer also includes a power source (such as a battery) for supplying power to various components. Preferably, the power source can be logically connected to the processor through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.

[0126] Although not shown, the computer may also include a camera, a Bluetooth module, etc., which will not be described in detail here.

[0127] In this embodiment, the processor included in the terminal device can execute the pedestrian re-segmentation method of the previous embodiment.

[0128] In addition, an embodiment of the present invention further provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are used to execute the fundus leopard image segmentation method on the terminal side, for example, executing the above-described Figure 2 The method steps S100 to S500, Figure 3 Method steps S310 to S330 and Figure 4 Method steps S410 to S440 in.

[0129] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0130] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions under the shared conditions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.

Claims

1. A method for segmenting fundus leopard print images, characterized in that: include: Acquire preprocessed fundus image data, wherein the fundus image data is a fusion image of a fundus leopard print area and a non-fundus leopard print area; Inputting the fundus image data into a leopard print feature module for first-stage training to obtain a target leopard print feature module; Inputting the fundus image data into a fusion network module for second-stage training to obtain a target skeleton feature module and a target edge feature module, wherein the fusion network module includes a target leopard feature module, a skeleton feature module and an edge feature module; Generate a target neural network module by using the target leopard print feature module, the target skeleton feature module and the target edge feature module; Inputting the fundus image data into the target neural network module for leopard print segmentation processing to obtain a target leopard print image output by the target neural network module; The step of inputting the fundus image data into a leopard print feature module for first-stage training to obtain a target leopard print feature module includes: inputting the fundus image data into a leopard print feature module for segmentation processing to obtain leopard print area loss image data; performing a comparison process based on the leopard print area loss image data and a leopard print annotation generated by the fundus image data to obtain a first loss function value; and iteratively training the leopard print feature module based on the first loss function value to obtain a target leopard print feature module. The step of inputting the fundus image data into a fusion network module for second-stage training to obtain a target skeleton feature module and a target edge feature module includes: Inputting the fundus image data into a skeleton feature module and an edge feature module for segmentation processing respectively, to obtain skeleton structure loss image data and edge structure loss image data; Compare the skeleton structure loss image data with the skeleton annotation generated by the fundus image data to obtain a second loss function value, and compare the edge structure loss image data with the edge annotation generated by the fundus image data to obtain a third loss function value; Performing weighted processing on the first loss function value, the second loss function value, and the third loss function value to obtain a fourth loss function value; Iteratively training the skeleton feature module and the edge feature module according to the fourth loss function value to obtain a target skeleton feature module and a target edge feature module; The iterative training of the skeleton feature module and the edge feature module according to the fourth loss function value to obtain a target skeleton feature module and a target edge feature module includes: Compare the fourth loss function value with the second preset threshold value, and if the fourth loss function value is less than the second preset threshold value, iteratively adjust the parameters of the skeleton feature module and the parameters of the edge feature module until the fourth loss function value is greater than or equal to the second preset threshold value, and determine that the skeleton feature module corresponding to the current parameters is the target skeleton feature module, and the edge feature module corresponding to the current parameters is the target edge feature module; Among them, the loss function corresponding to the second loss function value respectively performs skeleton segmentation on the input skeleton annotation generated by the fundus image data and the output feature map, and calculates the intersection-over-union loss for the two; the loss function corresponding to the third loss function value respectively segments the edge annotation generated by the input fundus image data and the edge of the output feature map, and calculates the intersection-over-union loss.

2. The method for segmenting fundus leopard images according to claim 1, characterized in that: The iterative training of the leopard print feature module according to the first loss function value to obtain a target leopard print feature module includes: Compare the first loss function value with a first preset threshold. If the first loss function value is less than the first preset threshold, iteratively adjust the parameters of the leopard print feature module until the first loss function value is greater than or equal to the first preset threshold, and determine that the leopard print feature module corresponding to the current parameters is the target leopard print feature module.

3. The method for segmenting fundus leopard images according to claim 1, characterized in that: The step of inputting the fundus image data into a leopard print feature module for segmentation processing to obtain leopard print area loss image data comprises: Inputting the fundus image data into a leopard feature module based on a pixel-level classification network for downsampling and segmentation processing to obtain downsampling features; Upsampling and fusion processing is performed according to the downsampling features to obtain leopard print area loss image data.

4. The method for segmenting fundus leopard images according to claim 1, characterized in that: Before obtaining the preprocessed fundus image data, the method further includes: The fundus image data of the preset color in the original fundus image data is enhanced to obtain preprocessed fundus image data.

5. The method for segmenting fundus leopard images according to claim 4, characterized in that: The step of performing enhancement processing on the fundus image data of a preset color in the original fundus image data to obtain preprocessed fundus image data includes: Performing enhancement adjustment on a preset color channel in the first RGB channel to obtain a second RGB channel; Separating and processing the fundus image data through the second RGB channel to obtain enhanced fundus image data of a preset color and fundus image data of a non-preset color; The enhanced fundus image data of the preset color and the fundus image data of the non-preset color are fused to obtain preprocessed fundus image data.

6. A computer, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the fundus leopard print image segmentation method as described in any one of claims 1 to 5 when executing the computer program.

7. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the fundus leopard print image segmentation method according to any one of claims 1 to 5.