Convolutional neural network eye fundus image disease classification method based on partial weight sharing and multi-loss fusion
By adding a branched convolution layer to the Inception v3 module and adopting partial weight sharing and multi-loss fusion methods, the problem of insufficient classification performance of multiple lesions in fundus images in the existing technology has been solved, and the model's feature extraction capabilities and various features have been significantly improved. The correlation of lesion features improves the accuracy of multi-label classification.
Patent Information
- Application Number
- CN202410702344.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-02
- Publication Date
- 2024-08-23
AI Technical Summary
The existing technology still has room for improvement in the classification performance of multiple lesions in fundus images, especially in improving the feature extraction capabilities of the model and the correlation of features of multiple lesions in the same fundus, and fails to make full use of pre-training weight transfer and multi-loss fusion. method.
By adding a new branched convolution layer in the Inception v3 module, using a partial weight sharing strategy for pre-training parameter migration, and combining the multi-loss fusion method of BCELoss and multiple CELoss, the neural network architecture is improved to improve the model's multi-dimensional performance on fundus images. Lesion classification performance.
It significantly improves the classification performance of multiple lesions in fundus images, improves the convergence speed and generalization ability of the model, enhances the correlation of features of multiple lesions in the same fundus, and improves the accuracy of multi-label classification.
Smart Images

Figure CN118537649A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of image classification and is a convolutional neural network fundus image disease classification method based on partial weight sharing and multi-loss fusion. Background Art
[0002] The eyes are very important visual organs for humans. Once an abnormality occurs in the eyes, such as vascular disorder, macular degeneration, and retinal detachment, it will cause varying degrees of visual impairment, such as diabetic retinopathy, glaucoma, cataracts, etc. The existence of these diseases will undoubtedly have a negative impact on the patient's life. A report published by the World Health Organization (WHO) in 2022 stated that approximately 2.2 billion people have visual impairment, and half of them can be prevented through timely detection and treatment, so for patients, early diagnosis and treatment of eye diseases is very critical.
[0003] In recent years, the research on artificial intelligence in the medical field has developed rapidly, making intelligent medical technology a hot topic. At present, the application research of artificial intelligence in the medical field includes nine categories, and disease diagnosis and prediction, and medical imaging are two of them. In the field of artificial intelligence, deep learning is an important branch of machine learning and an important technical means. Combining it with clinical medicine can realize an intelligent medical technology, which provides strong support for the early diagnosis of eye diseases.
[0004] Deep learning is a machine learning technology based on deep neural networks. Its principle is to construct a multi-layer neural network, extract features from training samples, and update network weight parameters to achieve accurate classification or prediction on new sample data. Transfer learning, as an important technical means of deep learning, can accelerate the convergence of the model and improve the generalization ability of the model.
[0005] At present, deep learning has been studied in ophthalmic diseases. For example, by combining multi-branch models with multi-task learning methods, the consideration of other eye lesions or abnormal types is omitted, the SE attention module and multi-model fusion are added, and BCELoss is used to perform multi-disease multi-label classification tasks; CNN is used as a feature extractor, grayscale features and RGB features are fused, and BCELoss is used to classify multi-label eye diseases. Multiple groups of comparative experiments show that EfficientNetB3 has the best effect in improving classification performance; Inception v3 is used as a feature extractor, and multi-label eye disease classification is performed through data set expansion and screening. Although the above studies have achieved good experimental results, they did not consider improving the model feature extraction ability based on pre-training weight transfer, and the correlation of multiple lesion features of the same fundus, so there is still a lot of room for improvement in improving the classification performance of multiple lesions in fundus images.
[0006] By adding a new branch convolutional layer to the Inception v3 module, the model's ability to extract fundus image lesion features is improved, and then a partial weight sharing strategy is adopted to realize pre-training parameter migration to improve the model convergence speed and generalization. Finally, a multi-loss fusion method is used to improve the correlation of multiple lesion features of the same fundus, which can have a good improvement effect on the classification performance of various lesions in fundus images. Summary of the invention
[0007] The present invention aims to improve the model's ability to extract eye image disease features and the correlation between eye disease positive sample labels, thereby improving the accuracy of multi-label classification of eye diseases. A convolutional neural network fundus image disease classification method based on partial weight sharing and multi-loss fusion is proposed. The specific steps are as follows:
[0008] (1) Preprocess the multi-label retinal fundus lesion image (ODIR-2019) dataset;
[0009] (2) Improve the Inception v3 module and implement a partial weight sharing strategy;
[0010] (3) Fusion of one BCELoss and multiple CELoss;
[0011] (4) Improving neural network architecture based on partial weight sharing and multi-loss fusion;
[0012] (5) Partial weight sharing and multi-loss fusion methods are used for model training and testing on the ODIR-2019 dataset.
[0013] The specific steps of preprocessing the multi-label retinal fundus lesion image (ODIR-2019) dataset in step (1) are as follows:
[0014] (1.1) Import the ODIR-2019 multi-label dataset for data cleaning, remove noise image data such as "external eye image", "no fundus image", "lens stain", "invisible optic disc", "poor image quality" and "image deviation", and remove image data with different background colors;
[0015] (1.2) Divide the cleaned data set into a binocular multi-label training set, a binocular multi-label validation set, and a binocular multi-label test set according to the ratio of 8:1:1;
[0016] (1.3) Separate the binocular multi-label dataset to obtain a monocular multi-label dataset;
[0017] (1.4) Perform multi-label splitting on the monocular multi-label training set to obtain a monocular single-label training set.
[0018] The specific steps of improving the Inception v3 module in step (2) and implementing the partial weight sharing strategy are as follows:
[0019] (2.1) The original Inception v3 module 1’s one pooling output to a 1×1 convolution is changed to two different pooling (Max Pooling and Avg Pooling) output to two 1×1 convolutions with different weight parameters;
[0020] (2.2) Add a 3×3 convolution branch in module 1;
[0021] (2.3) Merge the newly added branches in module 1 through the Add operation;
[0022] (2.4) Output the two different pooling methods, Max Pooling and Avg Pooling, in the original Inception v3 modules 2 and 3 to two 1×1 convolutions with different weight parameters;
[0023] (2.5) Merge the newly added branches in modules 2 and 3 through the Add operation;
[0024] (2.6) The original Inception v3 structure is used as the weight-sharing part, and the newly added branch structure is used as the non-weight-sharing part.
[0025] The specific steps of step (3) for fusing one BCELoss and multiple CELoss are as follows:
[0026] (3.1) Let the results of model classification pass through two CELoss loss functions. The CELoss loss function formula is as follows:
[0027]
[0028] Among them, y is the prediction result, c represents the true single-label type value of the sample, represented by an integer, and M represents the number of label categories for each sample;
[0029] (3.2) Let the results of model classification pass through a BCELoss loss function. The BCELoss loss function formula is as follows:
[0030]
[0031] Among them, y is the prediction result; represents the real multi-label set, represented by a column vector; K is the number of label categories for each sample;
[0032] (3.3) The results obtained by adding and averaging the outputs of 2 CELoss and 1 BCELoss are as follows:
[0033]
[0034] Among them, y1 is the predicted value of classifier 1, y2 is the predicted value of classifier 2, c1 represents the true single label set 1 type value, c2 represents the true single label set 2 type value, represents the true multi-label set, and N represents the batch size.
[0035] The specific steps of step (4) to improve the neural network architecture according to partial weight sharing and multi-loss fusion are as follows:
[0036] (4.1) Perform global average pooling after the improved Inception v3 feature extraction;
[0037] (4.2) Two Dropouts are used for random dropout processing, and the dropout rate of each Dropout is set to 0.8;
[0038] (4.3) Create two new classifiers for the classification of eye diseases;
[0039] (4.4) The two new classifiers are added and fused to improve the correlation between labels and realize the classification of multiple lesions.
[0040] The specific steps of step (5) using partial weight sharing and multi-loss fusion method to train and test the model on the ODIR-2019 dataset are as follows:
[0041] (5.1) Load the preprocessed ODIR-2019 dataset;
[0042] (5.2) Construct partial weight sharing and multi-loss fusion model;
[0043] (5.3) Migrate the weight parameters of the source backbone network Inception v3 pre-trained on the large dataset ImageNet to the weight sharing part of this model;
[0044] (5.4) Set the training cycle to 36, the image input size to 224×224, the batch size to 26, the initial learning rate to 0.001, the optimizer to SGD, and use ReduceLROnPlateau to automatically adjust the learning rate according to the verification accuracy;
[0045] (5.5) Model training on the monocular dataset of ODIR-2019;
[0046] (5.6) The optimal model weights are saved in each cycle. When the training cycle is 36, the model training ends;
[0047] (5.7) The best trained model will be saved for testing on the ODIR-2019 monocular and binocular datasets. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 A flowchart for preprocessing the multi-label retinal fundus lesion image (ODIR-2019) dataset described in the present invention.
[0049] Figure 2 This is a flowchart of the partial weight sharing strategy implemented by improving the Inception v3 module according to the present invention.
[0050] Figure 3 This is the improved Inception v3 module 1 described in the present invention.
[0051] Figure 4 This is the improved Inception v3 module 2 described in the present invention.
[0052] Figure 5 This is the improved Inception v3 module 3 described in the present invention.
[0053] Figure 6 This is a flowchart of the fusion of one BCELoss and multiple CELoss as described in the present invention.
[0054] Figure 7 Flowchart of the improved neural network architecture described in the present invention.
[0055] Figure 8 This is a diagram of the improved neural network architecture described in the present invention.
[0056] Fig. 9 This is a flowchart of the model training and testing using partial weight sharing and multi-loss fusion methods on the ODIR-2019 dataset described in the present invention.
[0057] Fig.10 This is a summary diagram of the present invention. DETAILED DESCRIPTION
[0058] The technical solution of the present invention is described in detail below in conjunction with the accompanying drawings:
[0059] like Figure 1 As shown, the multi-label retinal fundus lesion image (ODIR-2019) dataset is preprocessed from step 101 to step 104:
[0060] Step 101: Import the ODIR-2019 multi-label dataset for data cleaning, remove noise image data such as "external eye image", "no fundus image", "lens stain", "optical disc invisible", "poor image quality" and "image deviation", and remove image data with different background colors;
[0061] Step 102: Divide the cleaned data set into a binocular multi-label training set, a binocular multi-label validation set, and a binocular multi-label test set according to an 8:1:1 ratio;
[0062] Step 103: Separate the binocular multi-label dataset to obtain a monocular multi-label dataset;
[0063] Step 104: performing multi-label splitting processing on the monocular multi-label training set to obtain a monocular single-label training set.
[0064] like Figure 2-6 As shown: The partial weight sharing strategy is implemented from step 201 to step 206 by improving the Inception v3 module:
[0065] Step 201: Change the original Inception v3 module 1's one pooling output to a 1×1 convolution into two different pooling (Max Pooling and Avg Pooling) outputs to two 1×1 convolutions with different weight parameters;
[0066] Step 202: Add a 3×3 convolution branch in module 1;
[0067] Step 203: merge the newly added branches in module 1 through the Add operation;
[0068] Step 204: Output the two different pooling methods, Max Pooling and Avg Pooling in the original Inception v3 modules 2 and 3, to two 1×1 convolutions with different weight parameters;
[0069] Step 205: merge the newly added branches in module 2 and module 3 through the Add operation;
[0070] Step 206: The original Inception v3 structure is used as the weight-sharing part, and the newly added branch structure is used as the non-weight-sharing part.
[0071] like Figure 6 As shown: the process of fusing one BCELoss and multiple CELoss from step 301 to step 303:
[0072] Step 301: let the model classification result pass through two CELoss loss functions;
[0073] Step 302: let the model classification result pass through a BCELoss loss function;
[0074] Step 303: average the results obtained by outputting two CELoss and one BCELoss.
[0075] like Figure 7-8 As shown: Neural network architecture improvement based on partial weight sharing and multi-loss fusion from step 401 to step 404:
[0076] Step 401: Perform global average pooling after the improved Inception v3 feature extraction;
[0077] Step 402: Two Dropouts are used for random dropout processing, and the dropout rate of each Dropout is set to 0.8;
[0078] Step 403: Create two new classifiers for classifying eye diseases;
[0079] Step 404: Add and fuse the two new classifiers to improve the correlation between labels and achieve classification of multiple lesions.
[0080] like Figure 6 As shown: Partial weight sharing and multi-loss fusion methods are used to train and test the model on the ODIR-2019 dataset from step 501 to step 507:
[0081] Step 501: Load the preprocessed ODIR-2019 dataset;
[0082] Step 502: construct a partial weight sharing and multi-loss fusion model;
[0083] Step 503: Migrate the weight parameters of the source backbone network Inception v3 pre-trained on the large dataset ImageNet to the weight sharing part of the current model;
[0084] Step 504: Set the training cycle to 36, the image input size to 224×224, the batch size to 26, the initial learning rate to 0.001, the optimizer to SGD, and use ReduceLROnPlateau to automatically adjust the learning rate according to the verification accuracy;
[0085] Step 505: Perform model training on the monocular dataset of ODIR-2019;
[0086] Step 506: The optimal model weight is saved in each cycle. When the training cycle is 36, the model training ends;
[0087] Step 507: The best trained model is saved for testing on the ODIR-2019 monocular and binocular datasets.
Claims
1. A convolutional neural network fundus image disease classification method based on partial weight sharing and multi-loss fusion, characterized in that: The specific steps are as follows: (1) Preprocess the multi-label retinal fundus lesion image (ODIR-2019) dataset; (2) Improve the Inception v3 module and implement a partial weight sharing strategy; (3) Fusion of one BCELoss and multiple CELoss; (4) Improve the neural network architecture based on partial weight sharing and multi-loss fusion; (5) Partial weight sharing and multi-loss fusion methods are used for model training and testing on the ODIR-2019 dataset.
2. The method according to claim 1, characterized in that The specific steps of preprocessing the multi-label retinal fundus lesion image (ODIR-2019) dataset in step (1) are as follows: (1.1) Import the ODIR-2019 multi-label dataset for data cleaning, remove noise image data such as "external eye image", "no fundus image", "lens stain", "invisible optic disc", "poor image quality" and "image deviation", and remove image data with different background colors; (1.2) Divide the cleaned data set into a binocular multi-label training set, a binocular multi-label validation set, and a binocular multi-label test set according to an 8:1:1 ratio; (1.3) Separate the binocular multi-label dataset to obtain a monocular multi-label dataset; (1.4) Perform multi-label splitting on the monocular multi-label training set to obtain a monocular single-label training set.
3. The method according to claim 1, characterized in that: The specific steps of improving the Inception v3 module in step (2) and implementing the partial weight sharing strategy are as follows: (2.1) The original Inception v3 module 1’s one pooling output to a 1×1 convolution is changed to two different pooling (Max Pooling and Avg Pooling) outputs to two 1×1 convolutions with different weight parameters; (2.2) Add a 3×3 convolution branch in module 1; (2.3) The newly added branches in module 1 are merged through the Add operation; (2.4) Output the two different pooling methods, Max Pooling and Avg Pooling, in the original Inception v3 modules 2 and 3 to two 1×1 convolutions with different weight parameters; (2.5) Merge the newly added branches in module 2 and module 3 through the Add operation; (2.6) The original Inception v3 structure is used as the weight-sharing part, and the newly added branch structure is used as the non-weight-sharing part.
4. The method according to claim 1, characterized in that The specific steps of step (3) for fusing one BCELoss and multiple CELoss are as follows: (3.1) Let the results of model classification pass through two CELoss loss functions. The CELoss loss function formula is as follows: Among them, y is the prediction result, c represents the true single-label type value of the sample, represented by an integer, and M represents the number of label categories for each sample; (3.2) Let the model classification result pass through a BCELoss loss function. The BCELoss loss function formula is as follows: Among them, y is the prediction result; represents the true multi-label set, represented by a column vector; K is the number of label categories for each sample; (3.3) The results obtained by adding and averaging the outputs of two CELoss and one BCELoss are as follows: Among them, y1 is the predicted value of classifier 1, y2 is the predicted value of classifier 2, c1 represents the true single label set 1 type value, c2 represents the true single label set 2 type value, represents the true multi-label set, and N represents the batch size.
5. The method according to claim 1, characterized in that The specific steps of step (4) to improve the neural network architecture according to partial weight sharing and multi-loss fusion are as follows: (4.1) Perform global average pooling after the improved Inception v3 feature extraction; (4.2) Two Dropouts are used for random dropout processing, and the dropout rate of each Dropout is set to 0.8; (4.3) Create two new classifiers for the classification of eye diseases; (4.4) The two new classifiers are added and fused to improve the correlation between labels and realize the classification of multiple lesions.
6. The method according to claim 1, characterized in that The specific steps of step (5) using partial weight sharing and multi-loss fusion method to train and test the model on the ODIR-2019 dataset are as follows: (5.1) Load the preprocessed ODIR-2019 dataset; (5.2) Construct partial weight sharing and multi-loss fusion model; (5.3) Migrate the weight parameters of the source backbone network Inception v3 pre-trained on the large dataset ImageNet to the weight sharing part of this model; (5.4) Set the training cycle to 36, the image input size to 224×224, the batch size to 26, the initial learning rate to 0.001, the optimizer to SGD, and use ReduceLROnPlateau to automatically adjust the learning rate according to the verification accuracy; (5.5) Model training is performed on the monocular dataset of ODIR-2019; (5.6) The optimal model weights are saved in each cycle. When the training cycle is 36, the model training ends; (5.7) The best trained model will be saved for testing on the ODIR-2019 monocular and binocular datasets.
Citation Information
Patent Citations
Disease classification method based on fundus images
CN111462093A
Image classification method, system and device based on convolutional neural network, and medium
CN112906808A
Pseudo-label-based point cloud 3D target detection method for automatic driving
CN115953660A
Vehicle logo identification method based on target detection and convolutional neural network
CN116434155A
Fan blade damage identification method and system based on multi-task association
CN116503612A
Cited By
Multi-mode dual-path fusion network structure based on data level fusion
CN119785169A
