A multimodal retinal fundus image classification method
Through the combination of the dual-stage loss function and the multi-modal classification network, the group enhancement transformer and the cross-modal mask interactive distillation loss function are used to solve the problem of the insufficient fusion ability of the convolutional neural network in multi-modal retinal fundus image features. Achieved higher classification accuracy and feature extraction effect.
Patent Information
- Application Number
- CN202310580568.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-22
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2043-05-22
AI Technical Summary
Existing convolutional neural networks have insufficient feature fusion and extraction capabilities in multi-modal retinal fundus images, resulting in a bottleneck in classification accuracy.
It uses a dual-stage loss function and a multi-modal classification network, combines the complementary and consistent feature extraction stage networks, uses group-enhanced cross-transformers and group-enhanced auto-transformers for feature fusion, and uses cross-modal mask interactive distillation loss Functions adjust feature extraction to achieve feature fusion between different modalities.
It improves the classification accuracy of multi-modal retinal fundus images, can more effectively fuse deep features from different modalities, reduces the differences in features in category perception areas, and improves the generalization ability of the model.
Smart Images

Figure CN116824217B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer image processing, and in particular to a multi-modal retinal fundus image classification method. Background Art
[0002] The automatic classification algorithm of retinal fundus images is an important step in the diagnosis of retinal diseases. Accurate automatic classification algorithms for retinal diseases can save a lot of time and labor costs, and provide important application value for the prevention and early diagnosis of fundus diseases. Early automatic classification algorithms for retinal images mainly used single-modality fundus imaging such as fundus color photography, indocyanine green angiography, optical coherence tomography (OCT), optical coherence tomography angiography (OCT-A) as research objects, and used machine learning methods such as random forests, support vector machines, and logistic regression or deep learning methods based on convolutional neural networks for automatic classification of retinal diseases. However, these methods usually only consider single-modality retinal fundus images, resulting in a bottleneck in the accuracy of the classification algorithm that cannot be broken through.
[0003] Convolutional neural networks have excellent feature extraction capabilities in natural image classification, so they are widely used in the field of medical images, but they cannot fully integrate features from different modalities. MobileNet introduced a depth-wise separable convolution consisting of depth-wise convolution and point-wise convolution into the convolutional neural network. This method can maintain the same accuracy as the original convolutional neural network while reducing the number of parameters and computational cost. However, although MobileNet can be well applied to natural image classification, it cannot be well applied to medical image classification tasks. VGG is a large-scale deep convolutional neural network that uses the maximum pooling layer and small convolution kernel convolution to expand the traditional convolutional neural network, which enables the network to better learn the complex features of the input image. ResNet introduces residual connections based on convolutional neural networks. This structure transfers the shallow features of the network to the deep features, alleviating the gradient vanishing problem in deep neural networks, but the ability to extract features is limited, and it cannot fully extract complementary and consistent features from different modalities. Summary of the invention
[0004] To this end, the technical problem to be solved by the present invention is to overcome the problem of insufficient feature fusion and feature extraction capabilities of convolutional neural networks in the prior art for multimodal retinal fundus images.
[0005] In order to solve the above technical problems, the present invention provides a multimodal retinal fundus image classification method, which is characterized by comprising:
[0006] S1: Acquire retinal fundus OCT-A and OCT images to be classified;
[0007] S2: Extract and fuse the features of the acquired retinal fundus OCT-A and OCT images by constructing a multimodal classification network including a two-stage loss function, including:
[0008] S21: Use the complementary feature extraction phase network in the multimodal classification network to extract complementary features of OCT-A and OCT images, including:
[0009] The two feature extraction benchmark networks in the complementary feature extraction stage network are used to extract complementary two-dimensional deep features of OCT-A and OCT images respectively;
[0010] The constructed serialization module is used to convert the obtained complementary two-dimensional deep features of OCT-A and OCT images into complementary one-dimensional deep feature sequences of OCT-A and OCT images;
[0011] The constructed fusion transformer is used to fuse the complementary one-dimensional deep feature sequences of OCT-A and OCT images to obtain complementary features of different modalities and store them in the complementary inner
[0012] Store in the pool;
[0013] S22: Utilize the consistency feature extraction phase network in the multimodal classification network to extract the consistency features of OCT-A and OCT images and fuse them with the complementary features in the complementary memory pool, including:
[0014] The constructed cross-modal mask interaction distillation loss function is used to adjust the perception area of the two feature extraction benchmark networks in the consistency feature extraction stage network for OCT-A and OCT image feature extraction, thereby reducing the difference in the perception area of the two feature extraction benchmark networks in the consistency feature extraction stage network for OCT-A and OCT images;
[0015] The two feature extraction benchmark networks in the adjusted consistency feature extraction stage network are used to extract the two-dimensional deep features of OCT-A and OCT images respectively;
[0016] The constructed serialization module is used to convert the obtained consistent two-dimensional deep features of OCT-A and OCT images into consistent one-dimensional deep feature sequences of OCT-A and OCT images as consistent features of OCT-A and OCT images;
[0017] The constructed fusion transformer is used to fuse the obtained consistent features of OCT-A and OCT images with the complementary features in the complementary pool of the network in the complementary feature extraction stage;
[0018] S3: The fused features are classified and output through the classification head.
[0019] Furthermore, the serialization module includes a serialization function and a forward linear transformation layer, which converts the obtained two-dimensional deep features into a one-dimensional sequence for use in subsequent layers.
[0020] Furthermore, the fusion transformer includes a group-enhanced cross transformer module and a group-enhanced self-transformer module. The group-enhanced cross transformer module is used to extract the difference features of semantic information between different modalities, and the group-enhanced self-transformer module is used to further extract the spatial information correlation of different modal features.
[0021] Furthermore, the group of enhanced cross transformer modules is used to extract the difference features of semantic information between different modalities:
[0022] Construct a cross-modal normalization function to calculate the mean and variance between multi-modal features, and use the obtained mean and variance to normalize the features between different modalities to a similar distribution. The cross-modal normalization function is:
[0023]
[0024]
[0025]
[0026] Among them, e a and e o Represent the deep features from OCT-A and OCT modalities, N is the number of hidden units, μ cross is the cross-modal mean, σ cross is the cross-modal variance, is the layer feature after modality normalization, α is a learnable scaling factor, and β is a learnable additive bias.
[0027] Furthermore, the group enhanced cross transformer module further includes a group convolution enhancement unit, which is used to further fuse the features of different modes, specifically:
[0028] The features of different modalities processed by the cross-modal normalization function are input into the linear projection layer to obtain the multimodal embedding feature vector pairs, including the query vector pair (Q a ,Q o ), key vector pair (K a ,K o ) and value vector pair (V a,V o ), the feature F after interactive fusion between different modalities o→a and F a→o It can be expressed as:
[0029]
[0030]
[0031] in, is a weight-sharing group mixing module consisting of group convolution and multiplier cascade, d represents the number of channels of the embedded feature vector, and then F o→a and F a→o The residual feedforward layers are respectively fed into the layer normalization layer and the multi-layer perceptron, and the labels are spliced in the channel direction. The semantic labels are passed through multiple group enhancement cross transformer modules to obtain the final cross fusion embedding features.
[0032]
[0033] Concat means channel concatenation.
[0034] Furthermore, the group of enhanced self-transformer modules is used to further extract the spatial information correlation of different modal features:
[0035] Cross-fusion embedding features First, the linear projection layer is input, and the self-embedded feature vector obtained includes the query vector Key vector pair Sum value vector pair Then, the features after self-attention fusion It can be expressed as:
[0036]
[0037] The group-enhanced self-transformer module cross-integrates features Further autocorrelation fusion is performed.
[0038] Furthermore, the features of the output of the group enhanced self-transformer module are input into a multi-layer perception mechanism unit, and the multi-layer perception mechanism unit is used to further amplify the channel of the classification model.
[0039] Furthermore, the cross-modal mask interaction distillation loss function adjusts the perception areas of the two feature extraction benchmark networks ResNet34 for OCT-A and OCT image feature extraction as follows:
[0040] A category-aware fully connected layer is set up to extract potential category-aware descriptors;
[0041] Perform random masking on the extracted class-aware descriptors;
[0042] Perform outer product of category-aware descriptors of the same modality to obtain a global category-aware map;
[0043] Interactive distillation is performed on the global category perception map between different modalities, so that the two modalities can learn from each other and complement each other's areas that are more sensitive to category perception, thereby achieving the purpose of reducing the differences in the category perception areas of different modal features.
[0044] Furthermore, the two-stage loss function includes:
[0045] The loss function in the network during the complementary feature extraction phase consists of three parts: multimodal fusion classification loss L fusion , OCT-A modality classification loss L a and OCT modality classification loss L o ;
[0046] The network loss function in the consistency feature extraction stage consists of four parts: cross-modal mask distillation loss γL MCD , multimodal fusion classification loss L fusion , OCT-A modality classification loss L a and OCT modality classification loss L o ;
[0047] The two-stage loss function of the two-layer network in the multimodal classification network is obtained as:
[0048]
[0049] Furthermore, the multimodal fusion classification loss L fusion , OCT-A modality classification loss La and OCT modality classification loss L o Specifically:
[0050]
[0051]
[0052]
[0053] Among them, B represents the total number of samples in a batch, C represents the number of categories, and y represents the gold standard of the sample. They represent the output probability after fusion, the output probability of the OCT-A branch, and the output probability of the OCT branch respectively.
[0054] The above technical solution of the present invention has the following advantages compared with the prior art:
[0055] A multimodal retinal fundus image classification method described in the present invention uses a fusion transformer module for feature fusion, and efficiently fuses deep features from different modalities through a group-enhanced cross transformer module and a group-enhanced self-transformer. The present invention uses a cross-modal mask interactive distillation loss function to extract consistent features, and fully extracts complementary and consistent features from different modalities through a two-stage loss function. At the same time, the multimodal classification network proposed in the present invention constructs a network architecture based on complementarity and consistency, and efficiently obtains and fuses complementary and consistent features from different modalities. In the retinal fundus image classification task based on multimodal fusion of optical coherence tomography angiography (OCT-A) and optical coherence tomography (OCT), the classification accuracy can be effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein
[0057] Figure 1 is a flow chart of a multimodal retinal fundus image classification method according to an embodiment of the present invention;
[0058] Figure 2 It is the network structure CCFF-MMCNet of the retinal fundus image classification method of an embodiment of the present invention;
[0059] Figure 3 It is a fusion converter structure according to an embodiment of the present invention;
[0060] Figure 4 is a schematic diagram of cross-modal interactive distillation according to an embodiment of the present invention;
[0061] Figure 5 are examples of different disease images in the OCTA-500 dataset of the present invention;
[0062] Figure 6 It is a visualization of class activation maps of different branches in the network of the retinal fundus image classification method of the present invention;
[0063] Description of the accompanying drawings in the specification: (a), OCT-A image; (b), OCT image; (c), OCT-A feature extraction branch output class activation map; (d), OCT feature extraction branch output class activation map; (e), fusion transformer output class activation map; (f), fusion transformer output class activation map after interactive distillation; DETAILED DESCRIPTION
[0064] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
[0065] Example 1: Reference Figure 1 As shown, the steps of the first embodiment of the present invention are as follows:
[0066] S1: Acquire retinal fundus OCT-A and OCT images to be classified;
[0067] S2: Extract and fuse the features of the acquired retinal fundus OCT-A and OCT images by constructing a multimodal classification network including a two-stage loss function, including:
[0068] S21: Use the complementary feature extraction phase network in the multimodal classification network to extract complementary features of OCT-A and OCT images, including:
[0069] The two feature extraction benchmark networks in the complementary feature extraction stage network are used to extract complementary two-dimensional deep features of OCT-A and OCT images respectively;
[0070] The constructed serialization module is used to convert the obtained complementary two-dimensional deep features of OCT-A and OCT images into complementary one-dimensional deep feature sequences of OCT-A and OCT images;
[0071] The constructed fusion transformer is used to fuse the complementary one-dimensional deep feature sequences of OCT-A and OCT images to obtain complementary features of different modalities and store them in a complementary memory pool;
[0072] This embodiment uses a fusion transformer module to perform feature fusion. By fusing the group-enhanced cross transformer module and the group-enhanced self-transformer in the transformer module, deep features from different modalities can be efficiently fused.
[0073] S22: Utilize the consistency feature extraction phase network in the multimodal classification network to extract the consistency features of OCT-A and OCT images and fuse them with the complementary features in the complementary memory pool, including:
[0074] The constructed cross-modal mask interaction distillation loss function is used to adjust the perception area of the two feature extraction benchmark networks in the consistency feature extraction stage network for OCT-A and OCT image feature extraction, thereby reducing the difference in the perception area of the two feature extraction benchmark networks in the consistency feature extraction stage network for OCT-A and OCT images;
[0075] This embodiment uses a cross-modal mask interaction distillation loss function to extract consistent features, which can more accurately extract consistent features of images of two modalities.
[0076] The two feature extraction benchmark networks in the adjusted consistency feature extraction stage network are used to extract the two-dimensional deep features of OCT-A and OCT images respectively;
[0077] The constructed serialization module is used to convert the obtained consistent two-dimensional deep features of OCT-A and OCT images into consistent one-dimensional deep feature sequences of OCT-A and OCT images as consistent features of OCT-A and OCT images;
[0078] The constructed fusion transformer is used to combine the obtained consistency features of OCT-A and OCT images with
[0079] In the complementary feature extraction stage, the complementary features in the complementary pool of the network are fused;
[0080] S3: The fused features are classified and output through the classification head.
[0081] The retinal fundus image classification method constructed by this embodiment can fully integrate the cross-modal features between OCT-A and OCT images, and further improve the classification accuracy of five types of fundus retinal images, including diabetic retinopathy, age-related macular degeneration, choroidal neovascularization, central serous chorioretinopathy, and retinal vein occlusion.
[0082] Embodiment 2: Figure 2 As shown, the multimodal classification network structure CCFF-MMCNet of the retinal fundus image classification method of this embodiment includes:
[0083] Complementary feature extraction stage: Complementary feature extraction is performed on the input retinal fundus OCT-A and OCT images, including:
[0084] The feature extraction module consists of two independent feature extraction baseline networks ResNet34, which are used to extract deep features from OCT-A and OCT images respectively.
[0085] The serialization module, which consists of a serialization function and a forward linear transformation layer, is used to convert the obtained two-dimensional deep features into a one-dimensional sequence for use in subsequent layers.
[0086] The fusion transformer module, which consists of a Group Enhance Cross Transformer (GECT) module and a Group Enhance Self-Transformer (GEST) module, is used to fuse features from different modalities.
[0087] The overall structure of the fusion converter FT module is as follows: Figure 3 As shown,
[0088] It mainly consists of two parts, the left part is the group enhanced cross converter GECT module, and the right part is the group enhanced self converter GEST module.
[0089] The main function of the group enhanced cross transformer GECT module on the left is to extract the difference features of semantic information between different modalities. It enables the single-modal features to be adaptively aligned in semantic direction according to the multi-modal features, thus serving as a supplement to the single-modal semantic information. The core of the group enhanced cross transformer GECT module lies in cross-modal normalization (CrossModal Layer Normalization, CM-LN) and group enhanced cross attention (Group Enhance CrossAttention, GECA). Formulas (1), (2) and (3) show the cross-modal normalization function:
[0090]
[0091]
[0092]
[0093] Among them, e a and e o Represent the deep features from OCT-A and OCT modalities, N is the number of hidden units, μ cross is the cross-modal mean, σ cross is the cross-modal variance, is the layer feature after modality normalization. α is a learnable scaling factor, and β is a learnable additive bias. Cross-modal normalization calculates the mean and variance between multimodal features and normalizes the features between different modalities to a similar distribution, thereby reducing the modal differences between different modal features and promoting the interaction of information between modalities.
[0094] Group Enhanced Cross Attention adds a group convolution enhancement unit to the cross attention for additional group convolution enhancement, further fusing the sequential features of different modalities and progressively adjusting the single modal features according to the multimodal features. Features from different modalities are first input into the linear projection layer, and the resulting multimodal embedding feature vector pairs include the query vector pair (Q a ,Q o ), key vector pair (K a ,K o ) and value vector pair (V a ,V o ). The feature F after interactive fusion between different modalitieso→a and F a→o It can be expressed as:
[0095]
[0096]
[0097] in, is a weight-sharing group mixing module composed of group convolution and multiplier cascade. The purpose is to use weight-sharing group convolution to constrain the feature distribution between different modalities, and at the same time perform additional fusion of features between different modalities in the channel direction to improve the expression ability of the model. d represents the number of channels of the embedded feature vector. Subsequently, F o→a and F a→o The semantic tags are fed into the residual feedforward layer composed of layer normalization layer and multi-layer perceptron respectively, and the tags are concatenated in the channel direction. The semantic tags are passed through multiple group enhanced cross transformer GECT modules to obtain the final cross fusion embedding feature.
[0098]
[0099] Concat means channel concatenation.
[0100] The main function of the group-enhanced self-transformer GEST module on the right is to further extract the spatial information correlation of different modal features. Similar to the group-enhanced cross-transformer GECT module, the core of the group-enhanced self-transformer GEST module is the group-enhanced self-attention mechanism. Cross-fusion embedding features First, the linear projection layer is input, and the self-embedded feature vector obtained includes the query vector Key vector pair Sum value vector pair Then, the features after self-attention fusion Can represent:
[0101]
[0102] Similarly, the group enhanced self-transformer GEST module cross-integrates features Further autocorrelation fusion is performed.
[0103] The output of the group enhanced self-transformer GEST module then passes through a multi-layer perception mechanism unit for further channel amplification to improve the expressiveness of the model.
[0104] The complementary features extracted in the complementary feature extraction phase are stored in the complementary memory pool.
[0105] Consistent feature extraction stage: The extracted consistent features are integrated with complementary features, including:
[0106] A cross-modal mask interaction distillation loss function is constructed to adjust the perception areas of the two feature extraction baseline networks ResNet34 for OCT-A and OCT image feature extraction, reducing the differences in the perception areas of the two feature extraction baseline networks ResNet34 for OCT-A and OCT images.
[0107] In multimodal learning, each modality usually focuses on the spatial region that is unique to its own modality. For example, when using OCT-A images for unimodal disease classification, the network tends to learn the features of the retinal vascular region in the OCT-A image. When using OCT images for unimodal disease classification, the network tends to learn the features of the foveal region in the OCT image. Therefore, in multimodal fusion, how to make OCT-A and OCT images pay additional attention to the foveal region and retinal blood vessels respectively, extract consistent features between different modalities, and enable unimodal features to further extract spatial feature information based on multimodal features is a key issue. The cross-modal mask interactive distillation loss function proposed in the present invention aims to additionally extract consistent features between different modalities and promote multimodal feature fusion.
[0108] The schematic diagram of the cross-modal interactive distillation method proposed in the present invention is as follows: Figure 4 As shown:
[0109] Directly distill the features of the two modes {f a ,f o} will cause the modality to lose its unique features, and the logistic output layer features {logits a ,logits o ,} Distillation will result in insufficient supervision signals due to the limited output categories.
[0110] Therefore, the present invention obtains the corresponding class-aware descriptors by global average pooling and class-aware fully connected layers on the deep features from OCT-A and OCT respectively. The corresponding class-aware descriptors are subjected to random masking and outer product to obtain the corresponding global category-aware maps, and interactive distillation is performed on the global category-aware maps of different modalities.
[0111] A category-aware fully connected layer is set between the feature layer and the output layer to extract potential category-aware descriptors {A,O}. At the same time, in order to explore the relationship between categories and improve the robustness of the classifier, this paper performs random masking on the category-aware descriptors and performs outer product of the category-aware descriptors of the same modality to obtain the global category-aware map {M a ,M o}, then interactive distillation is performed on the global category perception map between different modalities to facilitate modeling of inter-category correlations. In this paper, L1 loss is used as the loss function for interactive distillation, and the upper right triangular random mask matrix is used to randomly mask the global category perception map to reduce the computational burden. The overall process can be expressed as:
[0112] A=θ(f a ),O=θ(f o )
[0113] M a =AA T ,M o =OO T
[0114]
[0115]
[0116] Among them, θ represents the category-aware fully connected layer, ⊙ represents the element-wise multiplication, B represents the total number of samples in a batch, and L represents the total number of category-aware descriptors. In this paper, L is set to 32. Through cross-modal interactive mask distillation, the two modalities can learn from each other to complement each other's areas that are more sensitive to category perception, thereby reducing the differences in features of different modalities in category-aware areas and promoting consistent feature extraction between different modalities.
[0117] Two adjusted feature extraction benchmark networks ResNet34 were used to extract the two-dimensional deep features of OCT-A and OCT images respectively;
[0118] The constructed serialization module is used to convert the obtained two-dimensional deep features of OCT-A and OCT images into one-dimensional deep feature sequences of OCT-A and OCT images as the consistency features of OCT-A and OCT images;
[0119] The constructed fusion transformer is used to fuse the obtained consistent features of OCT-A and OCT images with the complementary features in the complementary pool in the complementary feature extraction stage;
[0120] The fused features are classified and output by the classification head.
[0121] like Figure 2 As shown in FIG. 1 , the network structure of the retinal fundus image classification method proposed in the present invention is a two-stage network. At the same time, the network is designed as a two-stage network at the loss function level. The loss function of the network is mainly composed of the loss functions of the two stages. In the complementary feature extraction stage, the loss function is mainly composed of three parts, namely, the multimodal fusion classification loss L fusion , OCT-A modality classification loss L aand OCT modality classification loss L o , the total loss is the weighted sum of these three losses:
[0122]
[0123]
[0124]
[0125] L=L fusion +αL a +βL o
[0126] Among them, B represents the total number of samples in a batch, C represents the number of categories, and y represents the gold standard of the sample. They represent the output probability after fusion, the output probability of the OCT-A branch, and the output probability of the OCT branch respectively.
[0127] When L a With L o When convergence occurs, it means that the network has completed the extraction of complementary features and the network enters the stage of consistent feature extraction. In this stage, this paper adds cross-modal mask distillation loss on the basis of the loss function of the complementary feature extraction stage to extract consistent features between different modalities. Therefore, the loss function of the consistent feature extraction stage can be expressed as:
[0128] L=L fusion +αL a +βL o +γL MCD
[0129] By integrating the loss functions of the two stages, we can get the two-stage loss function:
[0130]
[0131] Among them, α, β and γ are the weights between different losses, which are uniformly set to 1 in this paper.
[0132] Under the action of the two-stage loss function, the CCFF-MMCNet network can effectively learn complementary and consistent features, make full use of information between different modalities, and promote the fusion of multimodal features. The two-stage loss function can guide the network to effectively learn features at each stage and effectively adjust the extraction of class perception areas, so that multimodal features can be effectively fused, which helps to improve the generalization ability of the network and makes the network more robust when processing multimodal data.
[0133] The present invention conducts experiments on the multimodal OCT-OCTA dataset OCTA-500:
[0134] Some OCT and OCTA images in this dataset are shown below: Figure 5 As shown in the figure, the data set was collected using a commercial 70kHz spectral domain OCT system (RTVue-XR, Optovue, CA) with a central wavelength of 840nm. The data were projected between different retinal layers including the inner limiting membrane layer, the outer plexiform layer and the Bruch's membrane layer, and 500 pairs of full projection images, projection images between the inner limiting membrane layer and the outer plexiform layer, and projection images between the outer plexiform layer and the Bruch's membrane layer were collected. The data set includes 251 disease-free control group image pairs, 64 diabetic retinopathy (DR) image pairs, 49 age-related macular degeneration (AMD) image pairs, 16 choroidal neovascularization (CNV) image pairs, 14 central serous chorioretinopathy (CSC) image pairs, 10 retinal vein occlusion (RVO) image pairs, and 96 other disease image pairs. This embodiment adopts a five-fold cross-validation strategy, and performs a six-classification experiment on 404 image pairs except other disease images to ensure that the disease distribution in each fold of data is similar to the disease distribution in the original data. The full projection image, the projection image between the inner limiting membrane layer and the outer plexiform layer, and the projection image between the outer plexiform layer and the Bruch's membrane layer in the OCTA-500 data set are spliced to form a three-channel image input network. To ensure the consistency of the input image size, the present invention performs bilinear interpolation on the 404 image pairs to unify them to a resolution of 224×224. At the same time, data enhancement methods such as random left-right flipping, up-down flipping, random contrast, random Gaussian blurring and random rotation are used to reduce network overfitting. The data resampling method is used to reduce the experimental error caused by category imbalance. In order to objectively evaluate the performance of the method of the present invention, three evaluation indicators, including Kappa coefficient, accuracy (Accuracy, ACC) and average F1 coefficient (F1-Score, F1), are used. The experimental results are as follows:
[0135] Appendix 1 shows a comparative experiment of the classification results of different methods. The comparative experiment compares the multimodal fusion method proposed in the present invention with a variety of multimodal fusion methods including element addition and channel splicing.
[0136] Appendix 1 Comparison of classification results of different methods
[0137]
[0138] Appendix 2 F1 coefficient for each sub-category
[0139]
[0140] Comparative experiments show that compared with other classification methods, the present invention obtains the highest results in all evaluation indicators. Appendix 2 shows the F1 coefficient indicators of the above method for normal and 5 types of diseases. As shown in the table, the present invention obtains the best F1 coefficient in AMD, CNV, RVO and CSC, and the second best F1 coefficient in normal and DR. Combining Appendix 1 and Appendix 2, it can be seen that the CCFF-MMCNet proposed by the present invention obtains the best Kappa coefficient and obtains the best balance in the classification of various diseases, and has great potential. Compared with the baseline network using single-modal images, CCFF-MMCNet has improved by 5.26%, 1.59% and 1.53% in the Kappa coefficient, accuracy and F1 coefficient indicators, respectively, indicating that this method can effectively integrate features from OCT-A and OCT multimodal images, and effectively improve the accuracy of retinal disease classification.
[0141] Appendix 3 shows the experimental results of the CCFF-MMCNet network using different benchmark networks.
[0142] Appendix 3 Comparison of classification results of different benchmark networks
[0143]
[0144] As shown in Appendix 3, as a commonly used lightweight network, MobileNet performs poorly in various indicators due to its limited feature extraction capabilities. The VGG-based network lacks residual connections and is prone to overfitting, resulting in a lack of generalization ability of the network, so it performs poorly in most indicators. Using ResNet18 as the baseline network can better overcome the overfitting phenomenon, but because its feature expression ability is lower than that of ResNet34, its performance is somewhat lower than that of ResNet34. When using ResNet50 as the baseline network, most evaluation indicators are slightly lower than ResNet34. The possible reason is that due to data volume limitations, the use of the deeper ResNet50 as the baseline network has overfitting in the training set, resulting in a decrease in generalization performance during the test. Therefore, considering the performance and network scale, using ResNet34 as the baseline network is the best choice.
[0145] like Figure 6 As shown, in order to more intuitively represent the role of each part of CCFF-MMCNet, the present invention uses the Grad-CAM algorithm to visualize the class activation map of the features of different parts. The light gray area in the visualization result of the algorithm indicates that the features of the area are more important for the prediction of the category. Figure 6The visualization results of class activation maps under four different input conditions are shown. It can be seen from the figure that the OCT-A feature extraction branch tends to focus more on the retinal blood vessels and choroidal blood vessels, and pays less attention to the foveal area. The OCT feature extraction branch mainly focuses on the retinal fovea and its surrounding areas. When the features of the foveal area are blurred, the OCT feature extraction branch will focus on other areas to help prediction. When the fusion transformer is used for feature fusion, the network's focus area is no longer limited to the fovea or blood vessel area, but the fusion area of the two, thereby increasing the comprehensive coverage of classification information in the image. In addition, when the interactive distillation loss is added, the network further extracts consistent features between different modalities and reduces the difference between the two modalities. Therefore, the focus area is further expanded on the basis of the fusion transformer, helping the network to extract more classification features. In summary, the different branches of CCFF-MMCNet have their own characteristics. The application of fusion transformers and interactive distillation losses helps to extract more comprehensive classification features, thereby improving the classification performance of retinal diseases.
[0146] The present application is described with reference to the flowcharts and computer program products according to the embodiments of the present application. It should be understood that each process in the flowchart can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A device that specifies functions in a process or multiple processes.
[0147] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A function specified in a process or multiple processes.
[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 The steps of a specified function in a process or multiple processes.
Claims
1. A multimodal retinal fundus image classification method, Features: include: S1: Acquire retinal fundus OCT-A and OCT images to be classified; S2: Extract and fuse the features of the acquired retinal fundus OCT-A and OCT images by constructing a multimodal classification network including a two-stage loss function, including: S21: Use the complementary feature extraction phase network in the multimodal classification network to extract complementary features of OCT-A and OCT images, including: The two feature extraction benchmark networks in the complementary feature extraction stage network are used to extract complementary two-dimensional deep features of OCT-A and OCT images respectively; The constructed serialization module is used to convert the obtained complementary two-dimensional deep features of OCT-A and OCT images into complementary one-dimensional deep feature sequences of OCT-A and OCT images; The constructed fusion transformer is used to fuse the complementary one-dimensional deep feature sequences of OCT-A and OCT images to obtain complementary features of different modalities and store them in a complementary memory pool; S22: Utilize the consistency feature extraction phase network in the multimodal classification network to extract the consistency features of OCT-A and OCT images and fuse them with the complementary features in the complementary memory pool, including: The constructed cross-modal mask interaction distillation loss function is used to adjust the perception area of the two feature extraction benchmark networks in the consistency feature extraction stage network for OCT-A and OCT image feature extraction, thereby reducing the difference in the perception area of the two feature extraction benchmark networks in the consistency feature extraction stage network for OCT-A and OCT images; The two feature extraction benchmark networks in the adjusted consistency feature extraction phase network are used to extract consistent two-dimensional deep features of OCT-A and OCT images respectively; The constructed serialization module is used to convert the obtained consistent two-dimensional deep features of OCT-A and OCT images into consistent one-dimensional deep feature sequences of OCT-A and OCT images as consistent features of OCT-A and OCT images; The constructed fusion transformer is used to fuse the obtained consistent features of OCT-A and OCT images with the complementary features in the complementary pool of the network in the complementary feature extraction stage; S3: The fused features are classified and output through the classification head.
2. A multimodal retinal fundus image classification method according to claim 1, Features: The serialization module includes a serialization function and a forward linear transformation layer, which converts the obtained two-dimensional deep features into a one-dimensional sequence for use in subsequent layers.
3. A multimodal retinal fundus image classification method according to claim 1, Features: The fusion transformer includes a group-enhanced cross transformer module and a group-enhanced self-transformer module. The group-enhanced cross transformer module is used to extract the difference features of semantic information between different modalities, and the group-enhanced self-transformer module is used to further extract the spatial information correlation of different modal features.
4. A multimodal retinal fundus image classification method according to claim 3, Features: The group of enhanced cross transformer modules is used to extract the difference features of semantic information between different modalities: Construct a cross-modal normalization function to calculate the mean and variance between multi-modal features, and use the obtained mean and variance to normalize the features between different modalities to a similar distribution. The cross-modal normalization function is: Among them, e a and e o Represent the deep features from OCT-A and OCT modalities, N is the number of hidden units, μ cross is the cross-modal mean, σ cross is the cross-modal variance, is the layer feature after modality normalization, α is a learnable scaling factor, and β is a learnable additive bias.
5. A multimodal retinal fundus image classification method according to claim 4, Features: The group enhanced cross transformer module also includes a group convolution enhancement unit, which is used to further fuse the features of different modes, specifically: The features of different modalities processed by the cross-modal normalization function are input into the linear projection layer to obtain the multimodal embedding feature vector pairs, including the query vector pair (Q a ,Q o ), key vector pair (K a ,K o ) and value vector pair (V a ,V o ), the feature F after interactive fusion between different modalities o→a and F a→o It can be expressed as: in, is a weight-sharing group mixing module consisting of group convolution and multiplier cascade, d represents the number of channels of the embedded feature vector, and then F o→a and F a→o The residual feedforward layers are respectively fed into the layer normalization layer and the multi-layer perceptron, and the labels are spliced in the channel direction. The semantic labels are passed through multiple group enhancement cross transformer modules to obtain the final cross fusion embedding features. Concat means channel concatenation.
6. A multimodal retinal fundus image classification method according to claim 5, Features: The group of enhanced self-transformer modules is used to further extract the spatial information correlation of different modal features: Cross-fusion embedding features First, the linear projection layer is input, and the self-embedded feature vector obtained includes the query vector Key Vector Sum value vector Then, the features after self-attention fusion It can be expressed as: The group-enhanced self-transformer module cross-integrates features Further autocorrelation fusion is performed.
7. A multimodal retinal fundus image classification method according to claim 6, Features: The output features of the group-enhanced self-transformer module are input into a multi-layer perception mechanism unit, and the multi-layer perception mechanism unit is used to further amplify the channels of the classification model.
8. The multimodal retinal fundus image classification method according to claim 1, Features: The cross-modal mask interaction distillation loss function adjusts the perception areas of the two feature extraction baseline networks for OCT-A and OCT image feature extraction as follows: A category-aware fully connected layer is set up to extract potential category-aware descriptors; Perform random masking on the extracted class-aware descriptors; Perform outer product of category-aware descriptors of the same modality to obtain a global category-aware map; Interactive distillation is performed on the global category perception map between different modalities, so that the two modalities can learn from each other and complement each other's areas that are more sensitive to category perception, thereby reducing the differences in the category perception areas of different modal features; Among them, the two feature extraction benchmark networks are ResNet34.
9. The multimodal retinal fundus image classification method according to claim 1, Features: The two-stage loss function includes: The loss function in the network during the complementary feature extraction phase consists of three parts: multimodal fusion classification loss L fusion , OCT-A modality classification loss L a and OCT modality classification loss L o ; The network loss function in the consistency feature extraction stage consists of four parts: cross-modal mask distillation loss γL MCD , multimodal fusion classification loss L fusion , OCT-A modality classification loss L a and OCT modality classification loss L o ; The two-stage loss function of the two-layer network in the multimodal classification network is obtained as:
10. A multimodal retinal fundus image classification method according to claim 9, Features: Multimodal fusion classification loss L fusion , OCT-A modality classification loss L a and OCT modality classification loss L o Specifically: Among them, B represents the total number of samples in a batch, C represents the number of categories, and y represents the gold standard of the sample. They represent the output probability after fusion, the output probability of the OCT-A branch, and the output probability of the OCT branch respectively.
