Long-tail image recognition method based on deep learning multi-branch logic adjustment integration

By improving the multi-branch logic adjustment comprehensive method of the SADE network, the problem of insufficient recognition ability of the model for minority categories under the long-tail distribution is solved, achieving higher recognition accuracy and generalization ability, reducing the risk of over-fitting, and improving Overall performance of long-tail image recognition.

CN118711028APending Publication Date: 2024-09-27SOUTH CHINA UNIV OF TECH

Patent Information

Application Number
CN202410853737.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

When the existing technology handles multi-category classification tasks with long-tail distribution, it is difficult to effectively improve the model's recognition ability for minority categories while maintaining the recognition accuracy for most categories, resulting in limited model performance and generalization capabilities.

Method used

Using a multi-branch logic adjustment comprehensive method based on deep learning, by improving the SADE network, using a shared backbone network and three parallel expert branch networks, combined with the residual convolution module and logic adjustment prior, the logic output is transformed into a probability distribution vector and Perform normalized fusion to improve the network's ability to identify minority categories.

Benefits of technology

It significantly improves the adaptability and overall recognition performance of the network under long-tail data distribution, improves the recognition accuracy of minority categories, reduces the risk of over-fitting, and improves the overall precision and recall rate of long-tail image recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118711028A
    Figure CN118711028A
Patent Text Reader

Abstract

The invention discloses a long-tail image recognition method based on deep learning multi-branch logic adjustment synthesis, and the method achieves the effective recognition of a long-tail image based on an improved SADE network, and the improved SADE network is a multi-branch feature extraction network, and comprises a shared backbone network and three parallel expert branch networks. A designed multi-branch logic fusion strategy is used, the shared backbone network comprises a residual error convolution module, the expert branch network comprises two residual error convolution modules, and the multi-branch logic fusion strategy is used for converting logic output into a probability distribution vector, normalizing the compatibility probability distribution vector, and obtaining a fusion result; a more reliable logic output is provided by synthesizing a multi-branch logic output. According to the method, the characteristics of long-tail data are considered, the recognition rate of the network on minority class samples is improved by differentiating the branch network and adjusting the logic output of the multi-expert branch network, and meanwhile, the logic output of different experts is integrated into a final decision, so that the overall performance of the network is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of pattern recognition and computer vision, and in particular to a long-tail image recognition method based on deep learning multi-branch logic adjustment synthesis. Background Art

[0002] In the field of modern computer vision and machine learning, especially in tasks such as image classification, speech recognition, and natural language processing, the problem of long-tail distribution is a common challenge in dealing with multi-class classification tasks. The so-called long-tail recognition problem refers to the fact that in practical applications, the number of samples of some categories is much larger than that of other categories. This imbalance causes the learning model to prefer those categories with a large number of samples during training, while ignoring the categories with fewer samples, which affects the overall performance and generalization ability of the model.

[0003] Traditional machine learning methods usually face the challenge of sample imbalance when dealing with such problems. The core difficulty lies in how to improve the model's ability to recognize the minority class without sacrificing the recognition accuracy of the majority class. To solve this problem, researchers have proposed a variety of methods, such as resampling techniques, cost-sensitive learning, and synthetic minority class oversampling techniques. Traditional methods include adjusting the distribution of samples to balance the class ratio by oversampling the minority class or undersampling the majority class. Although these methods are effective in some scenarios, they usually cannot completely solve the performance degradation caused by class imbalance.

[0004] In recent years, deep learning technology has shown superior performance in dealing with complex classification tasks due to its powerful feature extraction and expression capabilities. The development of deep learning also provides new perspectives and methods for dealing with long-tail problems. For example, by designing a specific loss function to strengthen the learning of minority classes, or using a multi-task learning framework to simultaneously optimize the recognition capabilities of majority and minority classes. In addition, some studies focus on the application of generative adversarial networks to enhance the diversity and balance of data sets by synthesizing samples of minority classes. Multi-expert systems have also been proven to be an extremely effective method in multi-task learning and complex decision-making scenarios, which integrates multiple models or networks to improve overall performance. However, in the field of long-tail recognition, how to effectively integrate multiple expert networks in an integrated learning framework, and effectively identify minority classes in the long-tail distribution while maintaining the overall classification performance, and improve the recognition accuracy of minority classes is still a challenge. Summary of the invention

[0005] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a long-tail image recognition method based on deep learning multi-branch logic adjustment synthesis, which can effectively improve the adaptability of the network under various long-tail data distribution conditions and improve the overall recognition performance of deep neural networks, especially the recognition performance of minority images.

[0006] To achieve the above-mentioned purpose, the technical solution provided by the present invention is: a long-tail image recognition method based on deep learning multi-branch logic adjustment synthesis, the method is based on the improved SADE network to achieve effective recognition of long-tail images, the improved SADE network is a multi-branch feature extraction network, including a shared backbone network and three parallel expert branch networks, and uses a designed multi-branch logic fusion strategy, wherein the shared backbone network includes a residual convolution module, the expert branch network includes two residual convolution modules, the multi-branch logic fusion strategy is to convert the logic output into a probability distribution vector, and then normalize the compatible probability distribution vector, and provide a more reliable logic output by synthesizing the multi-branch logic output;

[0007] The specific implementation of the long-tail image recognition method based on deep learning multi-branch logic adjustment synthesis includes:

[0008] Input the acquired long-tail image into the trained improved SADE network and perform the following operations:

[0009] The long-tail image is first input into the shared backbone network, which convolves the long-tail image and outputs a shallow feature map. The shallow feature map is then input into three expert branch networks in parallel. Each expert branch network extracts more advanced and abstract features from the shallow feature map and outputs a deep feature map. The deep feature map is finally processed by the fully connected layer to obtain a logical output.

[0010] The logic outputs of the three expert branch networks are adjusted respectively. The logic output of the first expert branch network is not adjusted to simulate the normal long-tail distribution. A logic adjustment prior is added to the logic output of the second expert branch network to simulate the balanced distribution of categories. A reverse logic adjustment prior is added to the logic output of the third expert branch network to simulate the inverse long-tail distribution of categories.

[0011] The adjusted logical outputs of the three expert branch networks are integrated. First, the adjusted logical outputs of the three expert branch networks are converted into probability distribution vectors. Then, the probability distribution vectors of the three expert branch networks are fused, and the final probability distribution vector is synthesized by normalizing the compatible probability distribution vectors, that is, the final prediction result of the long-tail image category of the network.

[0012] Furthermore, the parameters of the residual convolution module in the shared backbone network are expressed as θ1, and the parameters of the two residual convolution modules of each expert branch network in the three expert branch networks are expressed as θ 2_1 and θ 3_1 ,θ 2_2 and θ 3_2 and θ 2_3 and θ 3_3 ;

[0013] The processing process of the feature extraction network is expressed as:

[0014] p1=FC[θ 3_1 (θ 2_1 (θ1(x)))]

[0015] p2=FC[θ 3_2 (θ 2_2 (θ1(x)))]

[0016] p3=FC[θ 3_3 (θ 2_3 (θ1(x)))]

[0017] Where x represents the input long-tail image, p1, p2, and p3 represent the logical outputs of the three expert branch networks, respectively, and FC represents the fully connected layer, which is used to transform the feature map into the logical output.

[0018] Furthermore, the logic adjustment prior is calculated by the label frequency of the image to simulate the balanced distribution of categories; the reverse logic adjustment prior is calculated by reversing the distribution of the number of image categories to simulate the inverse long-tail distribution of categories;

[0019] The adjustment process of the logic outputs of the three expert branch networks is expressed as:

[0020]

[0021] In the formula, and They represent the logical outputs of the three expert branch networks after adjustment, n c represents the number of long-tail images of category c, N represents the total number of long-tail images, Represents the number of long-tail images of category c after the distribution of the number of image categories is reversed.

[0022] Furthermore, the generation process of the final probability distribution vector is expressed as:

[0023]

[0024] o f =o1×o2×o3

[0025] K = sum(o f )

[0026] output=o f / K

[0027] In the formula, o1, o2 and o3 represent the probability distribution vectors of the three expert branch networks respectively, softmax represents the function that transforms the logical output into the probability distribution vector, o f It represents the fused probability distribution vector after the dot product of the three probability distribution vectors element by element. sum represents the function of summing all elements in the vector. K is the sum of the elements inside the fused probability distribution vector. output represents the final probability distribution vector.

[0028] Furthermore, the loss function of the improved SADE network is composed of the prediction loss of the logical output of the three expert branch networks and the final prediction loss of the network for the long-tail image category. The network parameters in training are automatically updated through the gradient backpropagation of the loss function. The loss function is expressed as follows:

[0029]

[0030] Where x and y represent the input long-tail image and label respectively, log is the logarithmic function, D represents the long-tail image training dataset, λ represents the hyperparameter, and L represents the loss function.

[0031] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0032] 1. Enhance the recognition ability of minority images. By introducing multiple expert branch networks and adjusting the logical output of the multi-expert branch network, the adaptability of the network in various long-tail data distribution situations is improved. Through multi-angle analysis and learning, the recognition rate of the network for minority images is significantly improved.

[0033] 2. Improve the overall precision and recall of long-tail image recognition. Through the method of logical adjustment and fusion, the advantages of different expert branch networks are integrated into the final decision, which not only improves the recall rate of minority class images, but also improves the recognition precision of majority class images, achieving overall performance optimization.

[0034] 3. Reduce the risk of overfitting. In traditional single models, in order to adapt to minority image data, the model may overfit to the characteristics of these image data, resulting in reduced performance on more extensive or unseen data. The multi-expert branch network has better generalization capabilities and can reduce the occurrence of overfitting problems by integrating multiple logical outputs. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1To improve the structure of the SADE network; in the figure, ResBlock represents the residual convolution module, Δ balance represents the logistic adjustment prior, Δ reverse represents the reverse logistic adjustment prior, p1, p2 and p3 represent the logistic outputs of the three expert branch networks, logit fusion represents the processing of the adjusted logistic outputs of the three expert branch networks, and output represents the final prediction result of the network for the long-tail image category. DETAILED DESCRIPTION

[0036] The present invention will be further described below in conjunction with specific embodiments.

[0037] The present embodiment discloses a long-tail image recognition method based on deep learning multi-branch logic adjustment synthesis. The method is based on an improved SADE network to achieve effective recognition of long-tail images. The improved SADE network is a multi-branch feature extraction network, which includes a shared backbone network and three parallel expert branch networks, and uses a designed multi-branch logic fusion strategy; the shared backbone network includes a residual convolution module (ResBlock), whose parameters are represented by θ1, and the residual convolution module (ResBlock) is composed of a stack of basic neural network structures such as a convolution layer, a normalization layer, an activation function, and an identity mapping. Each expert branch network includes two residual convolution modules (ResBlock), so the parameters of the two residual convolution modules of each expert branch network in the three expert branch networks are respectively represented by θ 2_1 and θ 3_1 ,θ 2_2 and θ 3_2 , and θ 2_3 and θ 3_3 , wherein the second residual convolution module (ResBlock) of each expert branch network can differentiate each branch network, thereby reducing network variance and overfitting; the multi-branch logic fusion strategy is to transform the logic output into a probability distribution vector, and then normalize the compatible probability distribution vector, and provide a more reliable logic output by synthesizing the multi-branch logic output; the specific implementation of this method includes:

[0038] First, in order to study the problem of class imbalance, it is necessary to obtain a long-tail image dataset. Common image datasets used for such research include iNaturalist, ImageNet-LT, CIFAR10-LT and CIFAR100-LT. The characteristics of these image datasets are that their head categories contain a large number of samples, while most of the tail categories have only a few samples, resulting in an obvious long-tail distribution; the present invention selects datasets with imbalance rates of 50 and 100 in the CIFAR100-LT dataset.

[0039] The feature extraction of the long-tail image data set requires the use of a deep learning network model. The present invention uses ResNet32 as the basic feature extraction network, and the expert branch network is 3; the model is trained using the SGD optimizer, where the momentum is set to 0.9, the weight decay is set to 0.0005, and the basic learning rate is 0.1; the number of training epochs is set to 200, and the learning rate decays to 10% of the original at the 160th and 180th epochs.

[0040] After completing the preparation of data and models, the acquired long-tail image is input into the trained improved SADE network for the following operations:

[0041] a. The long-tail image is input into a multi-branch feature extraction network based on ResNet32, and the multi-branch feature extraction network is processed to obtain a logical output. First, the shared backbone network convolves the long-tail image and outputs a shallow feature map. Then, the shallow feature map is input into the expert branch network in parallel. The expert branch network extracts more advanced and abstract features from the shallow feature map and outputs a deep feature map. The deep feature map is finally processed by the fully connected layer to obtain a logical output.

[0042] The processing process of the multi-branch feature extraction network is expressed as:

[0043] p1=FC[θ 3_1 (θ 2_1 (θ1(x)))]

[0044] p2=FC[θ 3_2 (θ 2_2 (θ1(x)))]

[0045] p3=FC[θ 3_3 (θ 2_3 (θ1(x)))]

[0046] Where x represents the input long-tail image, p1, p2, and p3 represent the logical outputs of the three expert branch networks, respectively, and FC represents the fully connected layer, which is used to transform the feature map into the logical output.

[0047] b. Adjust the logic outputs of the three expert branch networks respectively. The logic output of the first expert branch network is not adjusted to simulate the normal long-tail distribution. Add a logic adjustment prior (Δ balance ), the logistic adjustment prior is calculated by the label frequency of the image to simulate the balanced distribution of categories; add the reverse logistic adjustment prior (Δ reverse ), the reverse logistic adjustment prior is calculated by reversing the distribution of the number of image categories, simulating the inverse long-tail distribution of categories;

[0048] The adjustment process of the logic outputs of the three expert branch networks is expressed as:

[0049]

[0050] In the formula, and They represent the logical outputs of the three expert branch networks after adjustment, n c represents the number of long-tail images of category c, N represents the total number of long-tail images, Represents the number of long-tail images of category c after the distribution of the number of image categories is reversed.

[0051] c. Combining the adjusted logistic outputs of the three expert branch networks (logit fusion), first convert the logistic outputs of the three expert branch networks into probability distribution vectors, then fuse the probability distribution vectors of the three branch networks, and synthesize the final probability distribution vector by normalizing the compatible probability distribution vectors, that is, the final prediction result of the network for the long-tail image category;

[0052] The generation process of the final probability distribution vector is expressed as:

[0053]

[0054] o f =o1×o2×o3

[0055] K = sum(o f )

[0056] output=o f / K

[0057] In the formula, o1, o2 and o3 represent the probability distribution vectors of the three expert branch networks respectively, softmax represents the function that transforms the logical output into the probability distribution vector, o f It represents the fused probability distribution vector after the dot product of the three probability distribution vectors element by element. sum represents the function of summing all elements in the vector. K is the sum of the elements inside the fused probability distribution vector. output represents the final probability distribution vector.

[0058] Specifically, the loss function of the improved SADE network consists of the prediction loss of the logical output of the three expert branch networks and the final prediction loss of the network for the long-tail image category. The network parameters in training are automatically updated through the gradient backpropagation of the loss function. The loss function is expressed as follows:

[0059]

[0060] Where x, y represent the input long-tail image and label respectively, log is the logarithmic function, D represents the long-tail image training dataset, λ represents the hyperparameter, and L represents the loss function.

[0061] The above-described embodiments are only preferred embodiments of the present invention and are not intended to limit the scope of implementation of the present invention. Therefore, all changes made according to the shape and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A long-tail image recognition method based on deep learning multi-branch logic adjustment synthesis, characterized in that: The method is based on an improved SADE network to achieve effective recognition of long-tail images. The improved SADE network is a multi-branch feature extraction network, which includes a shared backbone network and three parallel expert branch networks, and uses a designed multi-branch logic fusion strategy, wherein the shared backbone network includes a residual convolution module, and the expert branch network includes two residual convolution modules. The multi-branch logic fusion strategy is to transform the logic output into a probability distribution vector, and then normalize the compatible probability distribution vector, and provide a more reliable logic output by synthesizing the multi-branch logic output; The specific implementation of the long-tail image recognition method based on deep learning multi-branch logic adjustment synthesis includes: The acquired long-tail image is input into the trained improved SADE network for the following operations: The long-tail image is first input into the shared backbone network, which convolves the long-tail image and outputs a shallow feature map. The shallow feature map is then input into three expert branch networks in parallel. Each expert branch network extracts more advanced and abstract features from the shallow feature map and outputs a deep feature map. The deep feature map is finally processed by the fully connected layer to obtain a logical output. The logic outputs of the three expert branch networks are adjusted respectively. The logic output of the first expert branch network is not adjusted to simulate the normal long-tail distribution. A logic adjustment prior is added to the logic output of the second expert branch network to simulate the balanced distribution of categories. A reverse logic adjustment prior is added to the logic output of the third expert branch network to simulate the inverse long-tail distribution of categories. The adjusted logical outputs of the three expert branch networks are integrated. First, the adjusted logical outputs of the three expert branch networks are converted into probability distribution vectors. Then, the probability distribution vectors of the three expert branch networks are fused, and the final probability distribution vector is synthesized by normalizing the compatible probability distribution vectors, that is, the final prediction result of the long-tail image category of the network.

2. The long-tail image recognition method based on deep learning multi-branch logic adjustment synthesis according to claim 1 is characterized in that: The parameters of the residual convolution module in the shared backbone network are denoted as θ1, and the parameters of the two residual convolution modules of each expert branch network in the three expert branch networks are denoted as θ 2_1 and θ 3_1 ,θ 2_2 and θ 3_2 and θ 2_3 and θ 3_3 ; The processing process of the feature extraction network is expressed as: p1=FC[θ 3_1 (i 2_1 (θ1(x)))] p2=FC[θ 3_2 (i 2_2 (θ1(x)))] p3=FC[θ 3_3 (i 2_3 (θ1(x)))] Where x represents the input long-tail image, p1, p2, and p3 represent the logical outputs of the three expert branch networks, respectively, and FC represents the fully connected layer, which is used to transform the feature map into the logical output.

3. The long-tail image recognition method based on deep learning multi-branch logic adjustment synthesis according to claim 2 is characterized in that: The logistic adjustment prior is calculated by the label frequency of the image to simulate the balanced distribution of categories; the reverse logistic adjustment prior is calculated by reversing the distribution of the number of image categories to simulate the inverse long-tail distribution of categories; The adjustment process of the logic outputs of the three expert branch networks is expressed as: In the formula, and They represent the logical outputs of the three expert branch networks after adjustment, n c represents the number of long-tail images of category c, N represents the total number of long-tail images, Represents the number of long-tail images of category c after the distribution of the number of image categories is reversed.

4. The long-tail image recognition method based on deep learning multi-branch logic adjustment synthesis according to claim 3 is characterized in that: The generation process of the final probability distribution vector is expressed as: the f =o1×o2×o3 K=sum(o f ) output=o f / K In the formula, o1, o2 and o3 represent the probability distribution vectors of the three expert branch networks respectively, softmax represents the function that transforms the logical output into the probability distribution vector, o f It represents the fused probability distribution vector after the dot product of the three probability distribution vectors element by element. sum represents the function of summing all elements in the vector. K is the sum of the elements inside the fused probability distribution vector. output represents the final probability distribution vector.

5. The long-tail image recognition method based on deep learning multi-branch logic adjustment synthesis according to claim 4 is characterized in that: The loss function of the improved SADE network consists of the prediction loss of the logical output of the three expert branch networks and the final prediction loss of the network for the long-tail image category. The network parameters in training are automatically updated through the gradient backpropagation of the loss function. The loss function is expressed as follows: Where x and y represent the input long-tail image and label respectively, log is the logarithmic function, D represents the long-tail image training dataset, λ represents the hyperparameter, and L represents the loss function.

Citation Information

Patent Citations

  • A high-confidence multi-selection learning method based on a deep neural network

    CN109558898A

  • training method of endoscope image classification model, image classification method and device

    CN113486990A

  • Model training method, image classification method, server and storage medium

    CN114170425A

  • Double-branch portrait automatic matting model based on lightweight visual self-attention network

    CN117252892A

  • Training method and apparatus of endoscope image classification model, and image classification method

    WO2023030520A1

Cited By

  • Long-tail image recognition method based on deep learning branch feature map fusion

    CN118711027A

  • Long-tail image recognition method based on deep learning branch feature map fusion

    CN118711027B

  • Long-tail image recognition method based on hierarchical expert logarithm probability fusion

    CN121582740A

  • Long tail image recognition method based on hierarchical expert logit fusion

    CN121582740B

  • Dual-tree genetic programming method for processing long-tail image classification problem

    CN121884003A