Recognition model training, fundus feature recognition method, device, equipment and medium

By extracting the red channel of the fundus color photo image and combining it with a convolutional neural network to train the recognition model, the accuracy and efficiency problems of leopard-like fundus feature recognition in the existing technology are solved, and fast and accurate leopard-like fundus feature recognition is achieved.

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

Patent Information

Application Number
CN201910882247.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-18
Publication Date
2024-09-17
Estimated Expiration
2039-09-18

AI Technical Summary

Technical Problem

The existing technology lacks a fast and accurate method for identifying leopard-like fundus features, especially the method for identifying leopard-like fundus features related to high myopia, which is difficult to effectively identify.

Method used

By extracting the red channel image of the fundus color photograph and inputting it into the first convolutional neural network to obtain the feature map, and then combining it with the original image and inputting it into the second convolutional neural network, the total loss function is used to train the recognition model to achieve automatic Identify leopard-like fundus features.

Benefits of technology

The accuracy and efficiency of the recognition model are improved, and leopard-like fundus features in fundus color photos can be quickly and accurately identified.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110796161B
    Figure CN110796161B
Patent Text Reader

Abstract

The present application discloses a method, device, computer equipment and storage medium for recognizing model training and fundus features, the method comprising: obtaining a fundus color photo image sample associated with a label value and inputting it into a preset recognition model, the preset recognition model comprising an input layer unit, a first convolutional neural network and a second convolutional neural network; extracting a red channel image from the fundus color photo image sample and inputting it into the first convolutional neural network, obtaining a first recognition result and a feature map of the red channel image; combining the fundus color photo image sample with the feature map, generating a combined image and inputting it into the second convolutional neural network, obtaining a second recognition result; obtaining a total loss value through a preset loss function; and completing the training when the total loss value is less than or equal to a preset loss threshold. In this way, the leopard-like fundus features of the fundus color photo image are automatically recognized, the accuracy of the recognition model is improved, and the efficiency and reliability of the recognition model are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing, and in particular to a method, device, computer equipment and storage medium for recognizing model training and fundus features. Background Art

[0002] Generally, due to the less pigment in the retinal pigment epithelium, the choroidal capillary space is blocked and the pigment increases, and the choroidal blood vessel transparency is reduced, the capillaries are becoming more and more sparse, and the choroidal large and medium blood vessel structure and the pigment area of ​​the blood vessel space can be seen through the retina, forming a texture similar to leopard skin, so it is called leopard-like fundus, or textured fundus. Leopard-like fundus is common in high myopia in young and middle-aged people. Since related eye diseases such as myopia are more and more common, and in the prior art, there is no recognition method for the leopard-like fundus features closely related to high myopia, therefore, a fast and accurate leopard-like fundus feature recognition method is urgently needed. Summary of the invention

[0003] The present application provides a method, apparatus, computer equipment and storage medium for recognizing fundus features by training a recognition model, extracting an image of the red channel of a fundus color photograph image, combining a feature map output by a first convolutional neural network with an original image and inputting the combination into a second convolutional neural network, and training a recognition model according to a total loss value output by a total loss function, thereby realizing automatic recognition of leopard-like fundus features of fundus color photograph images, improving the accuracy of the recognition model, and enhancing the efficiency and reliability of the recognition model.

[0004] A recognition model training method, comprising:

[0005] Acquire a fundus color photo image sample associated with the label value, and input the fundus color photo image sample into a preset recognition model containing initial parameters; the preset recognition model includes an input unit, a first convolutional neural network, and a second convolutional neural network connected in sequence;

[0006] Extracting a red channel image from a red channel in the fundus color photograph image sample in the input unit;

[0007] Inputting the red channel image into the first convolutional neural network to obtain a first recognition result and a feature map of the red channel image;

[0008] Combining the fundus color photograph image sample with the feature map to generate a combined image, and inputting the combined image into the second convolutional neural network to obtain a second recognition result;

[0009] Inputting the label value, the first recognition result, and the second recognition result into a preset loss function to obtain a total loss value; wherein the loss function includes a first loss weight of the first convolutional neural network and a second loss weight of the second convolutional neural network;

[0010] When the total loss value is less than or equal to a preset loss threshold, the training of the preset recognition model is completed.

[0011] A method for identifying fundus features, comprising:

[0012] Receiving a color fundus image to be detected;

[0013] The color fundus photograph image to be detected is input into a preset recognition model to obtain a recognition result of the leopard-like fundus features of the color fundus photograph image to be detected output by the preset recognition model; the preset recognition model is the above-mentioned preset recognition model that has been trained.

[0014] A recognition model training device, comprising:

[0015] An acquisition module is used to acquire a fundus color photo image sample associated with a tag value, and input the fundus color photo image sample into a preset recognition model containing initial parameters; the preset recognition model includes an input unit, a first convolutional neural network, and a second convolutional neural network connected in sequence;

[0016] An extraction module, used for extracting a red channel image in a red channel of the fundus color photograph image sample in the input unit;

[0017] A first convolution module, used for inputting the red channel image into the first convolutional neural network to obtain a first recognition result and a feature map of the red channel image;

[0018] a second convolution module, used for combining the fundus color photograph image sample with the feature map to generate a combined image, and inputting the combined image into the second convolution neural network to obtain a second recognition result;

[0019] A calculation module, configured to input the label value, the first recognition result, and the second recognition result into a preset loss function to obtain a total loss value; wherein the loss function includes a first loss weight of the first convolutional neural network and a second loss weight of the second convolutional neural network;

[0020] The completion module is used to complete the training of the preset recognition model when the total loss value is less than or equal to the preset loss threshold.

[0021] A device for identifying fundus features, comprising:

[0022] A receiving module, used for receiving a color fundus photograph image to be detected;

[0023] The recognition module is used to input the color fundus photograph image to be detected into a preset recognition model to obtain the recognition result of the leopard-like fundus features of the color fundus photograph image to be detected output by the preset recognition model; the preset recognition model is the above-mentioned preset recognition model that has been trained.

[0024] The recognition model training method, device, computer equipment and storage medium provided in the present application obtain fundus color photo image samples associated with label values ​​and input them into a preset recognition model, wherein the preset recognition model includes an input layer unit, a first convolutional neural network and a second convolutional neural network connected in sequence; extract the red channel image in the red channel of the fundus color photo image sample through the input unit; input the red channel image into the first convolutional neural network to obtain a first recognition result and a feature map of the red channel image; combine the fundus color photo image sample with the feature map to generate a combined image, and input the combined image into the second convolutional neural network to obtain a second recognition result; input the label value, the first recognition result and the second recognition result into a preset loss function to obtain a total loss value; when the total loss value is less than or equal to a preset loss threshold, the preset recognition model training is completed. In this way, by extracting the image of the red channel of the fundus color photo image, combining the feature map output by the first convolutional neural network with the original image and inputting them into the second convolutional neural network, and training the recognition model according to the total loss value output by the total loss function, the leopard-like fundus features of the fundus color photo image can be automatically recognized, the accuracy of the recognition model can be improved, and the efficiency and reliability of the recognition model can be improved.

[0025] The method, device, equipment and medium for identifying fundus features provided by the present application receive a color fundus photo image to be detected; input the color fundus photo image to be detected into a preset recognition model, and obtain the recognition result of the leopard-like fundus features of the color fundus photo image to be detected output by the preset recognition model; the preset recognition model is the above-mentioned preset recognition model that has been trained. In this way, the leopard-like fundus features of the color fundus photo image can be automatically identified, and the leopard-like fundus features of the color fundus photo image can be quickly and accurately identified. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0027] Figure 1This is a schematic diagram of the application environment of the recognition model training method in one embodiment of the present application;

[0028] Figure 2 is a flow chart of a recognition model training method in one embodiment of the present application;

[0029] Figure 3 is a flowchart of step S20 of the recognition model training method in one embodiment of the present application;

[0030] Figure 4 is a flowchart of step S40 of the recognition model training method in one embodiment of the present application;

[0031] Figure 5 is a flowchart of step S40 of the recognition model training method in another embodiment of the present application;

[0032] Figure 6 is a flow chart of a method for identifying fundus features in one embodiment of the present application;

[0033] Figure 7 This is a principle block diagram of a recognition model training device in one embodiment of the present application;

[0034] Figure 8 is a principle block diagram of a device for identifying fundus features in one embodiment of the present application;

[0035] Fig. 9 It is a schematic diagram of a computer device in one embodiment of the present application. DETAILED DESCRIPTION

[0036] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0037] The recognition model training method provided in this application can be applied to Figure 1 In an application environment, a client (computer device) communicates with a server via a network. The client (computer device) includes but is not limited to various personal computers, laptops, smart phones, tablet computers, cameras, and portable wearable devices. The server can be implemented as an independent server or a server cluster consisting of multiple servers.

[0038] In one embodiment, if Figure 2 As shown, a recognition model training method is provided, and its technical solution mainly includes the following steps S10-S60:

[0039] S10, obtaining a fundus color photo image sample associated with a label value, and inputting the fundus color photo image sample into a preset recognition model containing initial parameters; the preset recognition model includes an input unit, a first convolutional neural network, and a second convolutional neural network connected in sequence.

[0040] Among them, the fundus color photo image samples are all associated with their corresponding label values, for example: a fundus color photo image sample with leopard-like fundus features is associated with a label value with leopard-like fundus features (p=10000), and a fundus color photo image sample without leopard-like fundus features is associated with a label value without leopard-like fundus features (p=20000). The size of the fundus color photo image sample is set according to demand, preferably, the size of the fundus color photo image sample is 512×512 (a square of 512 pixels).

[0041] It is understandable that the preset recognition model contains initial parameters and includes the input unit, the first convolutional neural network and the second convolutional neural network, the input unit is connected to the first convolutional neural network, and the first convolutional neural network is connected to the second convolutional neural network.

[0042] S20, extracting a red channel image from a red channel in the fundus color photograph image sample in the input unit.

[0043] It can be understood that the fundus color photograph image sample includes an RGB (Red Green Blue) three-channel image, and the image of the red channel in the fundus color photograph image sample is extracted and determined as the red channel image.

[0044] In one embodiment, if Figure 3 As shown, in the step S20, extracting the red channel image in the red channel of the fundus color photograph image sample in the input unit includes:

[0045] S201 : Separate the fundus color photograph image sample into three images corresponding to a red channel, a green channel, and a blue channel in the input unit.

[0046] It can be understood that the fundus color photograph image sample is separated into an image of a red channel, an image of a green channel and an image of a blue channel through the input unit.

[0047] S202: Determine the separated image corresponding to the red channel as the red channel image of the fundus color photograph image sample.

[0048] Understandably, the separated red channel image is determined as the red channel image of the fundus color photograph image sample. Since the leopard-like fundus is a red leopard skin texture formed by vascular structures, the leopard-like fundus feature is obvious on the red channel of the image.

[0049] In this way, since the leopard-like fundus features are mainly concentrated in the red channel of the fundus color photo image, the red channel image of the fundus color photo image sample is extracted for identification, which reduces the interference of the non-red channel image on the identification of leopard-like fundus features and improves the accuracy of the recognition model.

[0050] S30, inputting the red channel image into the first convolutional neural network to obtain a first recognition result and a feature map of the red channel image.

[0051] It is understandable that the size of the red channel image is the same as the size of the fundus color photo image sample. Preferably, the size of the red channel image is 512×512. The red channel image is input into the first convolutional neural network. The first convolutional neural network extracts the leopard-like fundus features of the fundus color photo image sample to obtain the first recognition result and obtain the feature map of the red channel image. The first convolutional neural network includes a merged convolution, which is a convolution of a 1×1 convolution kernel. The merged convolution converts the feature maps of multiple channels input through a convolution of a 1×1 convolution kernel to output a feature map with only one channel, and marks the feature map of one channel as the feature map of the red channel image, wherein the size of the feature maps of the multiple channel inputs is the same as the size of the feature map of the red channel image.

[0052] Among them, the network structure of the first convolutional neural network can be adjusted according to different data sets or different tasks, and the merged convolution will be added. That is, the network structure of the first convolutional neural network is not limited to the network structure of a convolutional neural network including several layers including multiple 1×1 convolution kernels, the Resnet50 network structure, the DenseNet121 network structure, the VGGnet network structure, etc., and the merged convolution will be added to obtain the feature map of the red channel image.

[0053] In one embodiment, preferably, the network structure of the first convolutional neural network includes a Resnet50 network structure, and a merged convolution is added after the last layer of convolution of the Resnet50 network structure, that is, the red channel image (size is 512×512) is input into the first convolutional neural network, and after five layers of deep convolution in the first convolutional neural network including the Resnet50 network structure, feature maps of 2048 channels (size is 16×16) are obtained, and then the feature maps of the 512 channels are input into the synthetic convolution and feature maps of the red channel image (size is 16×16) are obtained, and the first convolutional neural network including the Resnet50 network structure extracts the leopard-like fundus features of the fundus color photo image sample, and the recognition result obtained by the first convolutional neural network is marked as the first recognition result.

[0054] In another embodiment, preferably, the network structure of the first convolutional neural network includes a network structure of a convolutional neural network with five layers, each of which has 64 1×1 convolution kernels, and a merged convolution is added after the last layer of convolution, that is, the red channel image (size is 512×512) is input into the first convolutional neural network, and after five layers of deep convolution in the first convolutional neural network including the network structure of the convolutional neural network including five layers, each of which has 64 1×1 convolution kernels, feature maps of 64 channels (size is 512×512) are obtained, and then the feature maps of the 64 channels are input into the synthetic convolution to obtain feature maps of the red channel image (size is 512×512), and the first convolutional neural network including the network structure of the convolutional neural network including five layers, each of which has 64 1×1 convolution kernels extracts the leopard-like fundus features of the fundus color photo image sample, and the recognition result obtained by the first convolutional neural network is marked as the first recognition result.

[0055] In this way, the multi-channel feature map can be converted into a feature map of one channel through the merged convolution, the extracted leopard-like fundus features are summarized, the leopard-like fundus features are strengthened, and the feature map of the red channel image is provided.

[0056] S40, combining the fundus color photograph image sample with the feature map to generate a combined image, and inputting the combined image into the second convolutional neural network to obtain a second recognition result.

[0057] Understandably, the fundus color photograph image sample including the RGB three-channel is combined with the feature map (one channel) of the red channel image to generate the combined image of four channels, and the combined image is input into the second convolutional neural network, and the second convolutional neural network extracts the leopard-like fundus features of the combined image to obtain the second recognition result, wherein the network structure of the second convolutional neural network can be adjusted according to different data sets or different tasks, that is, the network structure of the second convolutional neural network is not limited to Resnet50 network structure, DenseNet121 network structure, VGGnet network structure, etc. Among them, the way of combining the fundus color photograph image sample with the feature map includes two ways: splicing and superposition. In this embodiment, preferably, the way of combining the fundus color photograph image sample with the feature map is superposition combination.

[0058] In this way, superimposing and combining the feature map of the red channel image with the fundus color photograph image sample can strengthen and highlight the leopard-like fundus features, improve the efficiency and reliability of the recognition model, and improve the accuracy of the recognition model.

[0059] In one embodiment, if Figure 4 As shown, in the step S40, the fundus color photograph image sample is combined with the feature map to generate a combined image, including:

[0060] S401, obtaining the original image size of the fundus color photograph image sample and the feature image size of the feature image.

[0061] Understandably, the original image size of the fundus color photograph image sample is obtained, for example, the original image size of the fundus color photograph image sample is 512×512, and the feature image size of the feature image is obtained, for example, the feature image size of the red channel image is 16×16.

[0062] S402, when the size of the feature map is smaller than the size of the original image, the feature map is interpolated and filled by using the nearest neighbor interpolation method until the size of the feature map is equal to that of the original image, and the feature map having the same size as that of the original image is marked as a feature-filled map.

[0063] It can be understood that when the size of the feature map is smaller than the size of the original image, for example, the feature map size of the red channel image is 16×16, which is smaller than the original image size of the fundus color photograph image sample of 512×512, the feature map is interpolated and filled by the nearest neighbor interpolation method until it is equal to the size of the original image, that is, interpolated and filled to a feature map of size 512×512, and marked as a feature filling map, so that the value of each pixel point can be used as the value of the pixel points adjacent to the pixel point after rapid filling and expansion without calculation, wherein the values ​​of the pixel points adjacent to the corresponding pixel point after each pixel point is filled and expanded will not overlap and interfere with each other.

[0064] S403, combining the fundus color photograph image sample with the feature filling map to generate a combined image.

[0065] It can be understood that the combined image includes the fundus color photograph image sample and the feature filling map, that is, the combined image includes the image in the red channel of the fundus color photograph image sample, the red channel image in the green channel of the fundus color photograph image sample, the red channel image in the blue channel of the fundus color photograph image sample and the feature filling map, and the size of the combined image is the same as the size of the fundus color photograph image sample.

[0066] In another embodiment, if Figure 5 As shown, after the step S401, that is, after obtaining the original image size of the fundus color photograph image sample and the feature image size of the feature image, it also includes:

[0067] S404, when the size of the original image is equal to the size of the feature map, combining the fundus color photograph image sample with the feature map to generate a combined image.

[0068] In this embodiment, the original image size of the fundus color photograph image sample is obtained, for example, the original image size of the fundus color photograph image sample is 512×512, and the feature map size of the feature map is obtained, for example, the feature map size of the red channel image is 512×512. When the original image size is equal to the feature map size, the fundus color photograph image sample and the feature map are directly combined in an overlay combination manner to generate the combined image, that is, the combined image includes the image in the red channel of the fundus color photograph image sample, the red channel image in the green channel of the fundus color photograph image sample, the red channel image in the blue channel of the fundus color photograph image sample and the feature map, and the size of the combined image is the same as the size of the fundus color photograph image sample.

[0069] S50, inputting the label value, the first recognition result, and the second recognition result into a preset loss function to obtain a total loss value; wherein the loss function includes a first loss weight of the first convolutional neural network and a second loss weight of the second convolutional neural network.

[0070] It can be understood that by setting the first loss weight of the first convolutional neural network and the second loss weight of the second convolutional neural network, and by inputting the label value, the first recognition result, and the second recognition result into the preset loss function, the total loss value of the preset recognition model is obtained.

[0071] In one embodiment, in step S50, the preset loss function is:

[0072] L=w 1 ×∑p log q 1 +w 2 ×∑p log q 2

[0073] in:

[0074] p is the label value of the fundus color photo image;

[0075] q 1 is the first recognition result;

[0076] q 2 is the second recognition result;

[0077] w 1 is the loss function weight of the first convolutional neural network;

[0078] w 2 is the loss function weight of the second convolutional neural network.

[0079] It can be understood that the loss function weight of the first convolutional neural network and the loss function weight of the second convolutional neural network are in the range of 0 to 1, and the sum of the loss function weight of the first convolutional neural network and the loss function weight of the second convolutional neural network is 1. Preferably, the loss function weight of the second convolutional neural network can be set to 0.6, and the loss function weight of the first convolutional neural network is set to 0.4, which means that the recognition result of the second convolutional neural network accounts for the main weight, and the recognition result of the first convolutional neural network accounts for the secondary weight.

[0080] S60, when the total loss value is less than or equal to the preset loss threshold, the preset recognition model training is completed.

[0081] That is, when the total loss value calculated by the preset loss function is less than or equal to the preset loss threshold, for example, the preset loss threshold is set to 0.001, then when the total loss value is less than or equal to 0.001, it means that the training of the preset recognition model is completed, and the initial parameters of the preset recognition model do not need to be iteratively updated.

[0082] The present application obtains a fundus color photo image sample associated with a label value and inputs it into a preset recognition model, wherein the preset recognition model includes an input layer unit, a first convolutional neural network, and a second convolutional neural network connected in sequence; extracts a red channel image in a red channel in the fundus color photo image sample through the input unit; inputs the red channel image into the first convolutional neural network to obtain a first recognition result and a feature map of the red channel image; combines the fundus color photo image sample with the feature map to generate a combined image, and inputs the combined image into the second convolutional neural network to obtain a second recognition result; inputs the label value, the first recognition result, and the second recognition result into a preset loss function to obtain a total loss value; when the total loss value is less than or equal to a preset loss threshold, the preset recognition model training is completed. In this way, by extracting the image of the red channel of the fundus color photo image, combining the feature map output by the first convolutional neural network with the original image and inputting it into the second convolutional neural network, and training the recognition model according to the total loss value output by the total loss function, the accuracy of the recognition model is improved, and the efficiency and reliability of the recognition model are improved.

[0083] In another embodiment, after step S50, that is, after inputting the label value, the first recognition result, and the second recognition result into a preset loss function to obtain a total loss value, the method further includes:

[0084] S70, when the total loss value is greater than the preset loss threshold, iteratively update the initial parameters of the preset recognition model until the total loss value is less than or equal to the preset loss threshold, and the training of the preset recognition model is completed.

[0085] Among them, the iterative update of the initial parameters of the preset recognition model refers to calculating parameter values ​​according to different total loss function optimization algorithms matching different ranges of the total loss value to update the initial parameters of the preset recognition model. In this way, the initial parameters of the preset recognition model are iteratively updated through the total loss function optimization algorithm, thereby improving the efficiency of the recognition model.

[0086] The present application also provides a method for identifying fundus features, which can be applied in Figure 1In an application environment, a client (computer device) communicates with a server via a network. The client (computer device) includes but is not limited to various personal computers, laptops, smart phones, tablet computers, cameras, and portable wearable devices. The server can be implemented as an independent server or a server cluster consisting of multiple servers.

[0087] In one embodiment, a method for identifying fundus features is provided, such as Figure 6 As shown, the following steps are included:

[0088] S100, receiving a color fundus image to be detected.

[0089] For example, if the original image size of the fundus color photograph image sample is 512×512, then the size of the fundus color photograph image to be detected is preferably 512×512, and the fundus color photograph image to be detected includes an image of RGB three channels.

[0090] S200, inputting the color fundus photograph image to be detected into a preset recognition model, and obtaining a recognition result of the leopard-like fundus features of the color fundus photograph image to be detected output by the preset recognition model; the preset recognition model is the above-mentioned preset recognition model that has been trained.

[0091] Understandably, by inputting the fundus color photograph image to be detected into the preset recognition model that has been trained, the recognition result of the leopard-like fundus feature of the image can be output, and the recognition result is set according to the demand, for example, the expression of the recognition result can be displayed in text and probability at the same time, for example, the recognition result output is that the probability of the leopard-like fundus feature is 95.5%. In this way, the leopard-like fundus feature of the fundus color photograph image is automatically recognized, and the leopard-like fundus feature of the fundus color photograph image can be recognized quickly and accurately.

[0092] In one embodiment, a recognition model training device is provided, which corresponds one-to-one to the recognition model training method in the above embodiment. Figure 7 As shown, the recognition model training device includes an acquisition module 11, an extraction module 12, a first convolution module 13, a second convolution module 14, a calculation module 15 and a completion module 16. The functional modules are described in detail as follows:

[0093] An acquisition module 11 is used to acquire a fundus color photo image sample associated with a tag value, and input the fundus color photo image sample into a preset recognition model containing initial parameters; the preset recognition model includes an input unit, a first convolutional neural network, and a second convolutional neural network connected in sequence;

[0094] An extraction module 12, configured to extract a red channel image from a red channel in the fundus color photograph image sample in the input unit;

[0095] A first convolution module 13, used for inputting the red channel image into the first convolution neural network to obtain a first recognition result and a feature map of the red channel image;

[0096] A second convolution module 14 is used to combine the fundus color photo image sample with the feature map to generate a combined image, and input the combined image into the second convolution neural network to obtain a second recognition result;

[0097] A calculation module 15, configured to input the label value, the first recognition result, and the second recognition result into a preset loss function to obtain a total loss value; wherein the loss function includes a first loss weight of the first convolutional neural network and a second loss weight of the second convolutional neural network;

[0098] The completion module 16 is used to complete the training of the preset recognition model when the total loss value is less than or equal to the preset loss threshold.

[0099] For the specific definition of the recognition model training device, please refer to the definition of the recognition model training method above, which will not be repeated here. Each module in the above-mentioned recognition model training device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0100] In one embodiment, a device for identifying fundus features is provided, and the device for identifying fundus features corresponds one-to-one to the device for identifying fundus features in the above-mentioned embodiment. Figure 8 As shown, the fundus feature recognition device includes a receiving module 21 and a recognition module 22. Each functional module is described in detail as follows:

[0101] A receiving module 21, used for receiving a color fundus image to be detected;

[0102] The recognition module 22 is used to input the color fundus photograph image to be detected into a preset recognition model to obtain the recognition result of the leopard-like fundus features of the color fundus photograph image to be detected output by the preset recognition model; the preset recognition model is the above-mentioned preset recognition model that has been trained.

[0103] The specific definition of the fundus feature recognition device can be found in the definition of the fundus feature recognition method above, which will not be repeated here. Each module in the above fundus feature recognition device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0104] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a recognition model training method is implemented, or when the computer program is executed by the processor, a method for identifying fundus features is implemented.

[0105] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the recognition model training method in the above embodiment is implemented, or when the processor executes the computer program, the fundus feature recognition method in the above embodiment is implemented.

[0106] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the recognition model training method in the above embodiment is implemented, or when the computer program is executed by a processor, the fundus feature recognition method in the above embodiment is implemented.

[0107] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0108] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0109] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A recognition model training method, characterized in that: include: Acquire a fundus color photograph image sample associated with the tag value, and input the fundus color photograph image sample into a preset recognition model including initial parameters; The preset recognition model includes an input unit, a first convolutional neural network and a second convolutional neural network connected in sequence; Extracting a red channel image from a red channel in the fundus color photograph image sample in the input unit; Inputting the red channel image into the first convolutional neural network to obtain a first recognition result and a feature map of the red channel image; Combining the fundus color photograph image sample with the feature map to generate a combined image, and inputting the combined image into the second convolutional neural network to obtain a second recognition result; Inputting the label value, the first recognition result, and the second recognition result into a preset loss function to obtain a total loss value; wherein the loss function includes a first loss weight of the first convolutional neural network and a second loss weight of the second convolutional neural network; When the total loss value is less than or equal to a preset loss threshold, the preset recognition model training is completed; The preset loss function is: L=w1×∑p log q1+w2×∑p log q2 in: p is the label value of the fundus color photo image; q1 is the first recognition result; q2 is the second recognition result; w1 is the loss function weight of the first convolutional neural network; w2 is the loss function weight of the second convolutional neural network.

2. The recognition model training method according to claim 1, characterized in that: After inputting the label value, the first recognition result, and the second recognition result into a preset loss function to obtain a total loss value, the method further comprises: When the total loss value is greater than the preset loss threshold, the initial parameters of the preset recognition model are iteratively updated until the total loss value is less than or equal to the preset loss threshold, and the training of the preset recognition model is completed.

3. The recognition model training method according to claim 1, characterized in that: Extracting the red channel image in the red channel of the fundus color photograph image sample in the input unit includes: Separating the fundus color photograph image sample into three images corresponding to a red channel, a green channel and a blue channel in an input unit; The separated image corresponding to the red channel is determined as the red channel image of the fundus color photograph image sample.

4. The recognition model training method according to claim 1, characterized in that: The step of combining the fundus color photograph image sample with the feature map to generate a combined image includes: Obtaining the original image size of the fundus color photograph image sample and the feature image size of the feature image; When the size of the feature map is smaller than the size of the original image, the feature map is interpolated and filled by the nearest neighbor interpolation method until the size of the feature map is equal to that of the original image, and the feature map having the same size as that of the original image is marked as a feature filling map; Combining the fundus color photograph image sample with the feature filling map to generate a combined image; When the size of the original image is equal to the size of the feature map, the fundus color photograph image sample is combined with the feature map to generate a combined image.

5. A method for identifying fundus features, characterized in that: include: Receiving a color fundus image to be detected; The color fundus photograph image to be detected is input into a preset recognition model to obtain the recognition result of the leopard-like fundus features of the color fundus photograph image to be detected output by the preset recognition model; the preset recognition model is the preset recognition model that has been trained in the recognition model training method as described in any one of claims 1 to 4.

6. A recognition model training device, characterized in that: include: An acquisition module, used for acquiring a fundus color photograph image sample associated with a tag value, and inputting the fundus color photograph image sample into a preset recognition model including initial parameters; The preset recognition model includes an input unit, a first convolutional neural network and a second convolutional neural network connected in sequence; An extraction module, used for extracting a red channel image in a red channel of the fundus color photograph image sample in the input unit; A first convolution module, used for inputting the red channel image into the first convolutional neural network to obtain a first recognition result and a feature map of the red channel image; a second convolution module, used for combining the fundus color photograph image sample with the feature map to generate a combined image, and inputting the combined image into the second convolution neural network to obtain a second recognition result; A calculation module, configured to input the label value, the first recognition result, and the second recognition result into a preset loss function to obtain a total loss value; wherein the loss function includes a first loss weight of the first convolutional neural network and a second loss weight of the second convolutional neural network; A completion module, used for completing the training of the preset recognition model when the total loss value is less than or equal to a preset loss threshold; The preset loss function is: L=w1×∑p log q1+w2×∑p log q2 in: p is the label value of the fundus color photo image; q1 is the first recognition result; q2 is the second recognition result; w1 is the loss function weight of the first convolutional neural network; w2 is the loss function weight of the second convolutional neural network.

7. A device for identifying fundus features, characterized in that: include: A receiving module, used for receiving a color fundus photograph image to be detected; A recognition module is used to input the color fundus photograph image to be detected into a preset recognition model to obtain the recognition result of the leopard-like fundus features of the color fundus photograph image to be detected output by the preset recognition model; the preset recognition model is a preset recognition model that has been trained in the recognition model training method as described in any one of claims 1 to 4.

8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the recognition model training method as described in any one of claims 1 to 4 is implemented, or when the processor executes the computer program, the fundus feature recognition method as described in claim 5 is implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, it implements the recognition model training method as described in any one of claims 1 to 4, or when the computer program is executed by a processor, it implements the fundus feature recognition method as described in claim 5.