A fundus image completion and classification method and system
By combining noise detection and blood vessel direction feature completion to improve the convolutional residual network, the problem of noise influence and subtle blood vessel feature identification in fundus image classification is solved, efficient and accurate fundus image classification is achieved, and diagnostic support is improved.
Patent Information
- Application Number
- CN202011644263.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-31
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-12-31
AI Technical Summary
Existing fundus image classification methods are affected by noise and rely on doctor experience, resulting in inaccurate and inefficient classification. It is difficult for traditional machine learning to identify the characteristics of fine blood vessels, affecting the reference significance of diagnostic results.
The fundus image is completed through noise detection and blood vessel direction feature extraction, and an improved convolutional residual network is used to train the fundus image classification model to improve the accuracy of recognition and classification.
It effectively repairs noise areas and improves the efficiency and accuracy of fundus image classification. It is especially suitable for extraction and differential differentiation of fine blood vessel features, and enhances diagnostic support for fundus diseases.
Smart Images

Figure CN112700420B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing, and in particular to a fundus image completion and classification method and system. Background Art
[0002] Fundus images contain abundant vascular features. However, due to the external environment of image acquisition or the presence of dirt in the eye, the acquired fundus images may contain noise. These noise areas will affect the extraction of vascular features, resulting in inaccurate fundus image classification and a lack of reference significance for the fundus classification results.
[0003] In addition, there are two main existing fundus image classification methods:
[0004] One is that doctors manually classify fundus images based on their experience. The classification results of this fundus image classification method are usually more accurate, but the classification process is heavily dependent on the doctor's personal experience and cannot be widely popularized. In addition, this classification method is inefficient. When a large number of fundus images need to be diagnosed, it will bring a huge workload to doctors.
[0005] The second is to use machine learning technology for automatic identification and classification. This method realizes the automation of fundus image recognition and classification, but because the blood vessels in fundus images are usually very fine, traditional machine learning recognition methods cannot accurately identify blood vessel features, and it is difficult to identify the differences between blood vessel features for different fundus images, so the fundus image classification results produced by them are of little reference value. Summary of the invention
[0006] The present invention aims to complete fundus images and automatically identify and classify the completed fundus images to improve fundus image recognition efficiency and recognition accuracy, and provides a fundus image completion and classification method and system.
[0007] In order to achieve the above technical purpose, the technical solution of the present invention is:
[0008] A fundus image completion and classification method comprises the following steps:
[0009] Step S1, performing noise detection on the fundus image and marking the noise area;
[0010] Step S2, extracting a blood vessel direction feature representing the direction of the blood vessels in the fundus image;
[0011] Step S3, completing the noise area using the extracted blood vessel direction features as constraints;
[0012] Step S4, classifying the completed fundus image through a pre-trained fundus image classification model, and outputting the recognition and classification results of the fundus image.
[0013] The method described, step S3 comprises:
[0014] According to the vascular direction feature map in the neighborhood window of the pixel to be repaired, i.e. the noise area, the main directional features of the blood vessels are extracted as a reference sequence, and the average grayscale value of all normal pixels in the reference sequence is calculated as a reference value for noise repair;
[0015] Calculate the distance weights between all normal pixels in the neighborhood window and the points to be repaired;
[0016] The product of the distance weight between all normal pixels in the neighborhood window and the point to be repaired and the reference value is calculated and accumulated, and the accumulated value is used as the pixel value of the point to be repaired.
[0017] In the method, in step S4, the method of pre-training the fundus image classification model includes:
[0018] Step S41, obtaining a fundus image from a fundus image database as a sample image for model training;
[0019] Step S42, cutting the sample image into image blocks to increase the number of samples;
[0020] Step S43, performing image preprocessing on the image block to enhance blood vessel features;
[0021] Step S44, training an initial fundus image classification model by using an improved convolutional residual network and taking the enhanced image block and the original sample image as training samples;
[0022] Step S45, performing a performance evaluation on the initial model for fundus image classification, and adjusting the model training parameters according to the evaluation results;
[0023] Step S46, update and train the fundus image classification initial model according to the adjusted model training parameters and detect the model prediction success rate. When the success rate reaches a preset value, the fundus image classification model training is completed, otherwise return to step S41 for loop execution.
[0024] In the method, in step S43, performing image preprocessing on the image block includes performing morphological high-low hat transformation on the green channel image of the image block to enhance the image contrast of the image block;
[0025] The method of performing morphological high and low hat transformation on the image block is:
[0026] A high-hat transformation and a low-hat transformation are performed on the image block, and then the image after the high-hat transformation is subtracted from the image after the low-hat transformation to enhance the contrast of the image block.
[0027] In the method, in step S43, performing image preprocessing on the image block includes performing image enhancement on the image block using a contrast-limited adaptive histogram equalization method.
[0028] In the method, in step S44, the convolutional residual network includes five sequentially connected residual structure blocks, each of which includes three 3×3 convolutional layers and one 1×1 convolutional layer, and after the input image is input into the residual structure block, it is sequentially subjected to feature convolution extraction by three 3×3 convolutional layers and one 1×1 convolutional layer and then output;
[0029] The input of the next convolutional layer in each residual structure block is the cumulative result of the output of the previous convolutional layer and the input of the residual structure block;
[0030] The first residual structure block in the convolutional residual network inputs the fundus image, the output of the first residual structure block is connected to the input of the second residual structure block after downsampling, the output of the second residual structure block is connected to the input of the third residual structure block after downsampling, the output of the third residual structure block is connected to the input of the fourth residual structure block after upsampling, the output of the fourth residual structure block is connected to the input of the fifth residual structure block after upsampling, and the output of the fifth residual structure block is output as a classification prediction result of the input fundus image through classification prediction of a softmax classifier.
[0031] In the method, each of the residual structure blocks also includes a batch normalization layer and a PReLU function activation layer connected to the batch normalization layer. The image input to the residual structure block is first subjected to batch normalization processing by the batch normalization layer, then subjected to nonlinear activation of the PReLU function of the PReLU function activation layer, and finally output after feature convolution extraction by three 3×3 convolution layers and one 1×1 convolution layer.
[0032] In the method described, in step S45, the evaluation index for evaluating the performance of the initial model for fundus image classification includes at least one of an accuracy index for evaluating the prediction accuracy of the model, a sensitivity index for evaluating the prediction sensitivity of the model, a specificity index for evaluating the specificity of the model in predicting fundus images, and an AUC index for evaluating the segmentation performance of the model.
[0033] The method described above, wherein the accuracy index is calculated by the following formula:
[0034]
[0035] Wherein, A represents the accuracy index;
[0036] M represents the blood vessel points on the fundus image that are correctly classified by the image classification initial model;
[0037] N represents background points on the fundus image that are misclassified by the image classification initial model;
[0038] The sensitivity index is calculated by the following formula:
[0039]
[0040] Wherein, B represents the sensitivity index;
[0041] P represents the background points on the fundus image that are correctly classified by the image classification initial model;
[0042] Q represents a blood vessel point on the fundus image that is misclassified by the image classification initial model;
[0043] The specificity index is calculated by the following formula:
[0044]
[0045] Wherein, C represents the specificity index.
[0046] A fundus image completion and classification system, used to implement the above method, comprising:
[0047] A noise region detection module, used to detect image noise on the fundus image and mark the noise region;
[0048] A blood vessel direction feature extraction module, used to extract blood vessel direction features in the fundus image;
[0049] An image completion module, used to complete the noise area using the extracted blood vessel direction features as constraints;
[0050] The image classification module is used to classify the completed fundus image through a pre-trained fundus image classification model and output the image classification result.
[0051] The system, the image classification module comprises:
[0052] A training sample acquisition unit, used to acquire fundus images from a fundus image database as sample images for model training;
[0053] A sample amplification unit, connected to the training sample acquisition unit, used for cutting the sample image into image blocks to increase the number of samples;
[0054] An image preprocessing unit, connected to the sample amplification unit, and configured to perform image preprocessing on the image block to enhance the blood vessel features on the sample image;
[0055] A fundus image classification model training unit, connected to the image preprocessing unit and the training sample acquisition unit, for training and forming an initial fundus image classification model by using an improved convolutional residual network and taking the enhanced image blocks and the original sample images as training samples;
[0056] A model performance evaluation unit, connected to the fundus image classification model training unit, is used to perform performance evaluation on the fundus image classification initial model to obtain a model performance evaluation result;
[0057] A model training parameter adjustment unit, connected to the model performance evaluation unit, and configured to adjust the model training parameters according to the evaluation result;
[0058] The fundus image classification model training unit is connected to the model training parameter adjustment unit, and is also used to update and train the fundus image classification initial model according to the adjusted model training parameters, and finally train to form the fundus image classification model.
[0059] The technical effect of the present invention is that:
[0060] 1. By extracting the vascular direction features and using the vascular direction features as constraints to complete the noise area on the fundus image, the damaged fundus image is well restored;
[0061] 2. The fundus image classification model is formed by training the improved convolutional residual network to identify and classify fundus images. It can quickly and accurately extract the vascular features on the fundus images, and perform feature comparison with the corresponding fundus diseases based on the extracted vascular features, thereby improving the efficiency and accuracy of fundus image classification. It is particularly suitable for the effective extraction of subtle vascular features and can effectively distinguish the differences in vascular features of different fundus images. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0063] Figure 1 is a step diagram of a fundus image completion and classification method provided by an embodiment of the present invention;
[0064] Figure 2 is a diagram of the steps of the method for training the fundus image classification model of the present invention;
[0065] Figure 3 is a network structure diagram of a convolutional residual network for training the fundus image classification model;
[0066] Figure 4 is a schematic diagram of the internal structure of the structural block;
[0067] Figure 5 is a schematic diagram of the internal structure of the optimized structural block;
[0068] Figure 6 is a structural schematic diagram of a fundus image completion and classification system provided by an embodiment of the present invention;
[0069] Figure 7 It is a schematic diagram of the internal structure of the image classification module in the fundus image completion and classification system. DETAILED DESCRIPTION
[0070] The technical solution of the present invention is further described below with reference to the accompanying drawings and through specific implementation methods.
[0071] Among them, the drawings are only used for illustrative explanations, and they only represent schematic diagrams rather than actual pictures, and should not be understood as limitations on this patent; in order to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product; for those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.
[0072] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right", "inner", "outer", etc. appear, the orientation or position relationship indicated is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as a limitation on this patent. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0073] In the description of the present invention, unless otherwise clearly specified and limited, if the term "connection" or the like appears to indicate the connection relationship between components, the term should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two components or the interaction relationship between two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0074] An embodiment of the present invention provides a fundus image completion and classification method, such as Figure 1 As shown, the following steps are included:
[0075] Step S1, noise detection is performed on the fundus image, and the noise area is marked. This step can be implemented by common image noise detection methods, such as mean filter, wavelet denoising, etc., which can be selected according to actual conditions.
[0076] Step S2, extracting the vascular direction feature representing the direction of the blood vessels in the fundus image. There are many existing methods for extracting vascular direction features, such as using the NMRT (Neighborhood Matching Radon Transform) algorithm to extract vascular direction features, which can be selected according to specific needs.
[0077] Step S3, using the extracted blood vessel direction features as constraints to complete the noise region. The method of using the blood vessel direction features as constraints to complete the noise region is briefly described as follows:
[0078] Firstly, the main directional features of the blood vessels (features that characterize the direction of the blood vessels) are extracted as a reference sequence based on the vascular directional feature map in the neighborhood window of the point (pixel) to be repaired, and the average grayscale value of all normal pixels in the reference sequence is calculated as the reference value for noise repair.
[0079] Then, the distance weights between all normal pixels in the neighborhood window and the point to be repaired are calculated. In this embodiment, the sum of the distance weights between all normal pixels in the neighborhood window and the point to be repaired is equal to 1. In general, the closer the distance between pixels, the closer the color information of the two pixels, such as contrast, brightness, intensity, etc., is. The main direction feature of the blood vessel has a certain length. The pixel distance between the fractured part and each pixel in the neighborhood window is inconsistent. Therefore, it is necessary to assign corresponding weights to each pixel in the neighborhood window whose distance is inconsistent with the pixel to be repaired. The sum of the distance weights in this embodiment is taken as 1. According to the actual situation, the sum can also be 100 or 1000.
[0080] Finally, the product of the distance weights between all normal pixels in the neighborhood window and the point to be repaired and the reference value is calculated and accumulated, and the accumulated value is used as the pixel value of the point to be repaired.
[0081] Step S4, classifying the completed fundus image using a pre-trained fundus image classification model, and the obtained image classification result is used as a basis for doctors to judge fundus diseases.
[0082] The present invention uses an improved convolutional residual network to train a fundus image classification model. The network structure of the convolutional residual network is as follows: Figure 3As shown in , it includes five residual structure blocks connected in sequence. Figure 4 As shown in the figure, each residual structure block includes three 3×3 convolutional layers and one 1×1 convolutional layer. After the input image is input into the residual structure block, it passes through three 3×3 convolutional layers and one 1×1 convolutional layer in sequence, and then the feature convolution is extracted and output.
[0083] The first residual structure block in the convolutional residual network inputs the fundus image, the output of the first residual structure block is connected to the input of the second residual structure block after downsampling (maximum pooling operation), the output of the second residual structure block is connected to the input of the third residual structure block after downsampling, the output of the third residual structure block is connected to the input of the fourth residual structure block after upsampling, the output of the fourth residual structure block is connected to the input of the fifth residual structure block after upsampling, and the output of the fifth residual structure block is classified and predicted by the softmax classifier to output the classification prediction result of the input fundus image.
[0084] In order to improve the model performance of image classification models, such as Figure 3 As shown, preferably, the input of the next convolutional layer in each residual structure block is the cumulative result of the output of the previous convolutional layer and the input of its own residual structure block.
[0085] In order to improve the model training speed and improve the accuracy of the model in fundus image classification, such as Figure 5 As shown, preferably, each residual structure block also includes a batch normalization layer BN and a PReLU function activation layer connected to the batch normalization layer, and the batch normalization layer is used to perform batch normalization processing on the feature map input to each residual structure block to improve the classification speed of the model. The PReLU function activation layer is used to improve the model's ability to map the input image to a nonlinear feature map to improve the prediction performance of the model. After the image input to the residual structure block is batch normalized by the batch normalization layer, it is nonlinearly activated by the PReLU function of the PReLU function activation layer, and then output after feature convolution extraction by three 3×3 convolution layers and a 1×1 convolution layer.
[0086] The specific method and process of training the fundus image classification model of the present invention is described below:
[0087] like Figure 2 As shown, the method for training the fundus image classification model of the present invention specifically includes:
[0088] Step S41, obtaining a fundus image from a fundus image database as a sample image for model training.
[0089] Step S42, cropping the sample image into image blocks to expand the number of samples. This step is to take into account that the number of samples of incomplete fundus images may be limited. When the number is insufficient, the trained model is often not accurate. To solve this problem, the sample image is cropped into image blocks. For example, a palm image is cropped into 5 finger images. The overall image features of the palm image can represent a specific person, and the finger vein features of the 5 fingers can also represent this specific person. In this way, when a palm image is expanded to 5 images, the trained model has higher recognition performance.
[0090] Step S43, performing image preprocessing on the image block to enhance the contrast of the sample image, thereby enhancing the blood vessel features on the image.
[0091] Step S44, through the improved convolution residual network, the enhanced image blocks and the original sample images are used as training samples to train and form an initial model for fundus image classification.
[0092] Step S45, the performance of the initial model for fundus image classification is evaluated, and the model training parameters are adjusted according to the evaluation results. Here, the model prediction results are compared with the actual results, the loss is estimated, and the model parameters are adjusted according to the loss. The specific adjustment can be made according to the actual situation, as long as the adjusted model parameters can make the prediction results closer to the actual results.
[0093] Step S46, update the initial model for fundus image classification according to the adjusted model training parameters, and finally train to form a fundus image classification model. In this embodiment, the training is considered completed when the model output reaches a preset success rate of 90%, and the actual operation can also be adjusted to a specific success rate as required.
[0094] In step S43, image preprocessing of the image block includes performing morphological high-low hat transformation on the green channel image of the image block to enhance the image contrast of the image block and highlight the vascular features. The method of performing morphological high-low hat transformation on the image block is:
[0095] Perform high-hat transformation and low-hat transformation on the image block, and then subtract the high-hat transformed image from the low-hat transformed image to enhance the contrast of the image block.
[0096] In order to highlight the blood vessel features more clearly, more preferably, in step S43, performing image preprocessing on the image block further includes performing image enhancement on the image block using a contrast-limited adaptive histogram equalization method.
[0097] In step S45, the evaluation indicators for evaluating the performance of the initial model for fundus image classification include an accuracy indicator for evaluating the prediction accuracy of the model, a sensitivity indicator for evaluating the prediction sensitivity of the model, a specificity indicator for evaluating the specificity of the model in predicting fundus images, and an AUC (area under the ROC curve) indicator for evaluating the segmentation performance of the model.
[0098] The accuracy index is calculated by the following formula (1):
[0099]
[0100] In formula (1), A represents the accuracy index.
[0101] M represents the blood vessel points on the fundus image that are correctly classified by the image classification initial model.
[0102] N represents background points on the fundus image that are misclassified by the initial image classification model.
[0103] The sensitivity index is calculated by the following formula (2):
[0104]
[0105] In formula (2), B represents the sensitivity index.
[0106] P represents the background points on the fundus image that are correctly classified by the initial image classification model.
[0107] Q represents the blood vessel points on the fundus image that are misclassified by the initial image classification model.
[0108] The specificity index is calculated by the following formula (3):
[0109]
[0110] In formula (3), C represents the specificity index.
[0111] The AUC indicator is a commonly used indicator for model evaluation, so the calculation process of the AUC indicator and the drawing process of the ROC curve will not be explained here.
[0112] The present invention also provides a fundus image completion and classification system, which can implement the above fundus image completion and classification method, such as Figure 6 As shown, the system includes:
[0113] The noise area detection module is used to detect image noise on the fundus image and mark the noise area.
[0114] The blood vessel direction feature extraction module is used to extract the blood vessel direction features in the fundus image.
[0115] The image completion module is used to complete the noise area based on the extracted blood vessel direction features as constraints.
[0116] The image classification module is used to classify the completed fundus image through a pre-trained fundus image classification model and output the image classification result.
[0117] like Figure 7 As shown, the image classification module specifically includes:
[0118] The training sample acquisition unit is used to acquire fundus images from a fundus image database as sample images for model training.
[0119] The sample amplification unit is connected to the training sample acquisition unit and is used to crop the sample image into image blocks to increase the number of samples.
[0120] The image preprocessing unit is connected to the sample amplification unit and is used for performing image preprocessing on the image block to enhance the blood vessel features on the sample image.
[0121] The fundus image classification model training unit is connected to the image preprocessing unit and the training sample acquisition unit, and is used to train and form an initial fundus image classification model through an improved convolutional residual network with enhanced image blocks and original sample images as training samples.
[0122] The model performance evaluation unit is connected to the fundus image classification model training unit and is used to perform performance evaluation on the initial fundus image classification model to obtain a model performance evaluation result.
[0123] The model training parameter adjustment unit is connected to the model performance evaluation unit and is used to adjust the model training parameters according to the evaluation results.
[0124] The fundus image classification model training unit is also connected to the model training parameter adjustment unit, and is also used to update the training fundus image classification initial model according to the adjusted model training parameters, and finally train to form the fundus image classification model.
[0125] The present invention realizes the image completion of damaged fundus images, and the fundus image classification model obtained by training the improved convolutional residual network has higher image classification speed and classification accuracy, and is more suitable for the recognition, extraction and classification of subtle vascular features.
[0126] It should be noted that the above specific implementations are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art should understand that various modifications, equivalent substitutions, changes, etc. can be made to the present invention. However, as long as these changes do not deviate from the spirit of the present invention, they should be within the scope of protection of the present invention. In addition, some terms used in the specification and claims of this application are not restrictive, but are only for the convenience of description.
Claims
1. A fundus image completion and classification method, characterized in that: The steps include: Step S1, performing noise detection on the fundus image and marking the noise area; Step S2, extracting a blood vessel direction feature representing the direction of the blood vessels in the fundus image; Step S3, completing the noise area using the extracted blood vessel direction features as constraints; Step S4, classifying the completed fundus image using a pre-trained fundus image classification model, and outputting recognition and classification results of the fundus image; The step S3 comprises: According to the vascular direction feature map in the neighborhood window of the pixel to be repaired, i.e. the noise area, the main directional features of the blood vessels are extracted as a reference sequence, and the average grayscale value of all normal pixels in the reference sequence is calculated as a reference value for noise repair; Calculate the distance weights between all normal pixels in the neighborhood window and the points to be repaired; Calculate the product of the distance weights and the reference value between all normal pixels in the neighborhood window and the point to be repaired and add them up, and the accumulated value is used as the pixel value of the point to be repaired; In step S4, the method for pre-training the fundus image classification model includes: Step S41, obtaining a fundus image from a fundus image database as a sample image for model training; Step S42, cutting the sample image into image blocks to increase the number of samples; Step S43, performing image preprocessing on the image block to enhance blood vessel features; Step S44, training an initial fundus image classification model by using an improved convolutional residual network and taking the enhanced image block and the original sample image as training samples; Step S45, performing a performance evaluation on the initial model for fundus image classification, and adjusting the model training parameters according to the evaluation results; Step S46, updating and training the fundus image classification initial model according to the adjusted model training parameters and detecting the model prediction success rate, when the success rate reaches a preset value, the fundus image classification model training is completed, otherwise, returning to step S41 for loop execution; In step S44, the convolutional residual network includes five sequentially connected residual structure blocks, each of which includes three 3×3 convolutional layers and one 1×1 convolutional layer. After the input image is input into the residual structure block, it is sequentially subjected to feature convolution extraction by three 3×3 convolutional layers and one 1×1 convolutional layer and then output; The input of the next convolutional layer in each residual structure block is the cumulative result of the output of the previous convolutional layer and the input of the residual structure block; The first residual structure block in the convolutional residual network inputs the fundus image, the output of the first residual structure block is connected to the input of the second residual structure block after downsampling, the output of the second residual structure block is connected to the input of the third residual structure block after downsampling, the output of the third residual structure block is connected to the input of the fourth residual structure block after upsampling, the output of the fourth residual structure block is connected to the input of the fifth residual structure block after upsampling, and the output of the fifth residual structure block is output as a classification prediction result of the input fundus image through classification prediction of a softmax classifier; Each of the residual structure blocks also includes a batch normalization layer and a PReLU function activation layer connected to the batch normalization layer. The image input to the residual structure block is first subjected to batch normalization processing by the batch normalization layer, then subjected to nonlinear activation of the PReLU function by the PReLU function activation layer, and finally output after feature convolution extraction by three 3×3 convolution layers and one 1×1 convolution layer.
2. The method according to claim 1, characterized in that: In the step S43, performing image preprocessing on the image block includes performing morphological high-low hat transformation on the green channel image of the image block to enhance the image contrast of the image block; The method of performing morphological high and low hat transformation on the image block is: A high-hat transformation and a low-hat transformation are performed on the image block, and then the image after the high-hat transformation is subtracted from the image after the low-hat transformation to enhance the contrast of the image block.
3. The method according to claim 1 or 2, characterized in that: In the step S43, performing image preprocessing on the image block includes performing image enhancement on the image block using a contrast-limited adaptive histogram equalization method.
4. The method according to claim 1, characterized in that: In step S45, the evaluation index for evaluating the performance of the initial model for fundus image classification includes at least one of an accuracy index for evaluating the prediction accuracy of the model, a sensitivity index for evaluating the prediction sensitivity of the model, a specificity index for evaluating the specificity of the model in predicting fundus images, and an AUC index for evaluating the segmentation performance of the model.
5. The method according to claim 4, characterized in that The accuracy index is calculated by the following formula: Wherein, A represents the accuracy index; M represents the blood vessel points on the fundus image that are correctly classified by the image classification initial model; N represents background points on the fundus image that are misclassified by the image classification initial model; The sensitivity index is calculated by the following formula: Wherein, B represents the sensitivity index; P represents the background points on the fundus image that are correctly classified by the image classification initial model; Q represents a blood vessel point on the fundus image that is misclassified by the image classification initial model; The specificity index is calculated by the following formula: Wherein, C represents the specificity index.
6. A fundus image completion and classification system, used to implement the method according to any one of claims 1 to 5, characterized in that: include: A noise region detection module, used to detect image noise on the fundus image and mark the noise region; A blood vessel direction feature extraction module, used to extract blood vessel direction features in the fundus image; An image completion module, used to complete the noise area using the extracted blood vessel direction features as constraints; The image classification module is used to classify the completed fundus image through a pre-trained fundus image classification model and output the image classification result.
7. The system according to claim 6, characterized in that The image classification module includes: A training sample acquisition unit, used to acquire fundus images from a fundus image database as sample images for model training; A sample amplification unit, connected to the training sample acquisition unit, used for cutting the sample image into image blocks to increase the number of samples; An image preprocessing unit, connected to the sample amplification unit, and configured to perform image preprocessing on the image block to enhance the blood vessel features on the sample image; A fundus image classification model training unit, connected to the image preprocessing unit and the training sample acquisition unit, for training and forming an initial fundus image classification model by using an improved convolutional residual network and taking the enhanced image blocks and the original sample images as training samples; A model performance evaluation unit, connected to the fundus image classification model training unit, is used to perform performance evaluation on the fundus image classification initial model to obtain a model performance evaluation result; A model training parameter adjustment unit, connected to the model performance evaluation unit, and configured to adjust the model training parameters according to the evaluation result; The fundus image classification model training unit is connected to the model training parameter adjustment unit, and is also used to update and train the fundus image classification initial model according to the adjusted model training parameters, and finally train to form the fundus image classification model.
