Weakly supervised object detection method based on bounding box regression

By constructing a weakly supervised target detection network model based on bounding box regression, and using iterative training and pseudo label generation to improve detection accuracy and efficiency, the problems of low target detection accuracy and cumbersome processes in the existing technology are solved.

CN114882340BActive Publication Date: 2024-09-24XIDIAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210398499.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-15
Publication Date
2024-09-24
Estimated Expiration
2042-04-15

AI Technical Summary

Technical Problem

Weakly supervised target detection methods in the existing technology have problems such as low target detection accuracy and cumbersome detection process. In particular, the lack of instance-level annotation information leads to inaccurate bounding box scoring, and transfer learning requires multiple data set matching, which leads to the training process. complex.

Method used

Construct a weakly supervised object detection network model based on bounding box regression that includes a feature extraction network, a multi-instance detection network and a bounding box regression network. It improves the accuracy of bounding box regression and simplifies the detection process through iterative training and pseudo label generation.

Benefits of technology

It improves the accuracy and efficiency of target detection, generates more accurate pseudo-labels through the merging operation of the bounding box regression network, improves the regression positioning ability of the model, simplifies the detection process, and avoids the cumbersome steps of transfer learning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114882340B
    Figure CN114882340B
Patent Text Reader

Abstract

The present invention proposes a weakly supervised target detection method based on bounding box regression, which is used to solve the technical problems of low target detection accuracy and complicated detection process in the prior art. The specific steps are as follows: (1) obtaining a training sample set and a test sample set; (2) constructing a weakly supervised target detection network model H based on bounding box regression; (3) iteratively training the weakly supervised target detection network model H based on bounding box regression; (4) obtaining weakly supervised target detection results. The present invention constructs a weakly supervised target detection network model including a bounding box regression network. In the process of training the model, the merging operation of the bounding boxes is realized by using the fact that two bounding boxes detecting the same target have a larger intersection-over-union ratio, which provides a more accurate pseudo-label for the bounding box regression and effectively improves the accuracy of target detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of image processing technology, and further relates to a weakly supervised target detection method adding bounding box regression in the field of pattern recognition and computer vision technology, which can be used for target detection in images in the absence of target position labels. Background Art

[0002] In order to solve the problem of detection accuracy in complex scenes, target detection under strong supervision learning usually uses a large amount of data to improve the generalization ability of the algorithm, which inevitably requires a lot of labeling work. The target detection under weak supervision learning is to solve the problem of large labeling workload. The traditional target detection algorithm, that is, the target detection algorithm under strong supervision learning, uses a training data set that contains training data and corresponding labeling information. The labeling information includes two parts: target category label and target location label, that is, image-level labeling information and instance-level labeling information. Weakly supervised learning target detection abandons the most time-consuming and labor-intensive instance-level labeling information, and attempts to use only image-level labeling information for target detection, which will save a lot of time and economic costs for data labeling.

[0003] Due to the lack of instance-level annotation information, in order to obtain a more accurate detection box, it is necessary to apply a multi-instance learning network to score the bounding box. Multi-instance learning is a non-convex optimization problem, and its results will change with the change of the initial value of the parameters. During the iteration of the network parameters, the final result is likely to be an extreme point rather than a minimum point. Specifically, the multi-instance learning network will give priority to more recognizable bounding boxes rather than bounding boxes that wrap the target more tightly when scoring, which will result in the final detected bounding box only covering part of the target, making it impossible to further improve the detection accuracy of the entire network. Therefore, how to build a network to improve the model's target detection accuracy is an urgent problem that needs to be solved.

[0004] The patent application with the application publication number CN113989558A and the name of “Weakly supervised target detection method based on transfer learning and bounding box adjustment” discloses a weakly supervised target detection method based on transfer learning and bounding box adjustment. The specific steps of the method are: constructing a target weakly supervised target detection network module f, an auxiliary weakly supervised target detection network module f aux and a learnable bounding box adjustment network module g; using a multi-stage transfer learning method and an auxiliary weakly supervised target detection network module f auxTrain the learnable bounding box adjustment network module g to obtain the trained learnable bounding box adjustment network module g'; use the trained learnable bounding box adjustment network module g' obtained in the previous step to train the target weakly supervised target detection network module f to obtain the trained target weakly supervised target detection network module f'; use the trained target weakly supervised target detection network module f' to perform target detection on the image to be detected, thereby obtaining the target detection result, thereby completing the target detection. The shortcomings of this method are: the matching degree between the source data set and the target data set has a great influence on the migration effect, resulting in low accuracy of target detection, and the transfer learning adopted by the invention needs to first be trained on the source data set to obtain an initial model, and then trained on the target data set based on the initial model to obtain the final model, resulting in cumbersome entire training process. Summary of the invention

[0005] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and propose a weakly supervised target detection method based on bounding box regression to solve the technical problems of low target detection accuracy and cumbersome target detection process in the prior art.

[0006] The idea of ​​achieving the purpose of the present invention is to obtain a training sample set and a test sample set, and build a weakly supervised target detection network model H based on bounding box regression, which includes a feature extraction network, a multi-instance detection network, a self-training network, and a bounding box regression network. The weakly supervised target detection network model H based on bounding box regression is trained using the training sample set to obtain a trained weakly supervised target detection network model H* based on bounding box regression. The test sample set is used as the input of the trained weakly supervised target detection network model H* based on bounding box regression to detect the target prediction category and target prediction bounding box of each test sample.

[0007] According to the above technical ideas, the technical solution adopted to achieve the purpose of the present invention includes the following steps:

[0008] (1) Obtain training sample set and test sample set:

[0009] Obtain N RGB images including C target categories, and label the target category in each image, then normalize each image after the target category labeling, and finally form a training sample set with more than half of the N normalized RGB images and their target category labels, and form a test sample set with the remaining images and their target category labels, where C ≥ 2 and N ≥ 5000;

[0010] (2) Construct a weakly supervised target detection network model H based on bounding box regression:

[0011] Construct a weakly supervised object detection network model H including a feature extraction network and a multi-instance detection network, a self-training network, and a bounding box regression network connected to its output end, where:

[0012] The feature extraction network includes multiple convolutional layers, multiple maximum pooling layers, and multiple first fully connected layers;

[0013] The multi-instance detection network includes two network layers arranged in parallel, each of which includes a second fully connected layer and a Softmax layer connected in sequence, and the outputs of the two network layers are cascaded;

[0014] The self-training network includes three network layers arranged in parallel, each of which includes a third fully connected layer and a Softmax layer connected in sequence;

[0015] The bounding box regression network includes two network layers arranged in parallel, one of which includes the fourth fully connected layer and the Softmax layer connected in sequence to achieve target classification, and the other network layer uses the fifth fully connected layer to achieve target positioning;

[0016] (3) Iteratively train the weakly supervised object detection network model H based on bounding box regression:

[0017] (3a) Initialize the number of iterations to w, the maximum number of iterations to W, W ≥ 20000, and set w = 1;

[0018] (3b) The training sample set is used as the input of the weakly supervised target detection network model H based on bounding box regression. The feature extraction network extracts features from each training sample. The multi-instance detection network uses the extracted feature map to perform bounding box classification on the corresponding training sample to obtain the bounding box score matrix x 0 ; The kth network layer in the self-training network uses the extracted feature maps to classify the corresponding training samples into bounding boxes, and obtains the bounding box score matrix x k ; The bounding box regression network uses the extracted feature map to perform target classification and target positioning on the corresponding training samples, and obtains the target prediction category and target prediction bounding box of each training sample, where k∈{1,2,3};

[0019] (3c) Update the weight parameters of the four sub-networks contained in the weakly supervised target detection network model to obtain the weakly supervised target detection network model H of this iteration. w , where the loss values ​​of the two network layers in the bounding box regression network are calculated during the update process using the bounding box score matrix x obtained from the third network layer in the self-training network 3 Generated pseudo labels;

[0020] (3d) Determine whether w=W. If so, obtain the trained weakly supervised target detection network model H* based on bounding box regression. Otherwise, set w=w+1 and execute step (3b).

[0021] (4) Obtain weakly supervised target detection results:

[0022] The test sample set is used as the input of the trained weakly supervised target detection network model H* based on bounding box regression. The bounding box regression network uses the feature map extracted by the feature extraction network to perform target classification and target positioning on the corresponding test samples, and obtains the target prediction category and target prediction bounding box for each test sample.

[0023] Compared with the prior art, the present invention has the following advantages:

[0024] 1. The weakly supervised target detection network model constructed by the present invention includes a bounding box regression network. In the process of training the model, the merging operation of the bounding boxes is realized by utilizing the larger intersection-over-union ratio (IOU) of two bounding boxes detecting the same target, which provides a more accurate pseudo-label for the bounding box regression, thereby improving the regression positioning capability of the entire network model. Compared with the prior art, the accuracy of target detection is effectively improved.

[0025] 2. The present invention completes target detection using only one network model, thus avoiding the defect of cumbersome entire detection process caused by the transfer learning adopted by the prior art, which requires first training on the source data set to obtain an initial model, and then training on the target data set based on the initial model to obtain the final model, thereby effectively improving the target detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a flow chart of the implementation of the present invention;

[0027] Figure 2 It is a structural diagram of the weakly supervised target detection network model constructed by the present invention. DETAILED DESCRIPTION

[0028] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments:

[0029] Reference Figure 1 , the present invention comprises the following steps:

[0030] Step 1) Obtain training sample set and test sample set:

[0031] Obtain N RGB images including C target categories, and label the target category in each image, then normalize each image after the target category labeling, and finally form a training sample set with more than half of the N normalized RGB images and their target category labels, and form a test sample set with the remaining images and their target category labels, where C ≥ 2 and N ≥ 5000;

[0032] In this embodiment, C=20, N=9963;

[0033] Step 2) Construct a weakly supervised target detection network model H based on bounding box regression, whose structure is as follows: Figure 2 As shown:

[0034] The accompanying drawings are denoted as follows:

[0035] FC1-first fully connected layer; FC2-second fully connected layer; FC3-third fully connected layer; FC4-fourth fully connected layer; FC5-fifth fully connected layer; SPP-spatial pyramid pooling layer; bounding box score matrix 0-bounding box score matrix x 0 ; Bounding box score matrix 1 - bounding box score matrix x 1 ; Bounding box score matrix 2 - bounding box score matrix x 2 ; Bounding box score matrix 3 - bounding box score matrix x 3 ;

[0036] Construct a weakly supervised object detection network model H including a feature extraction network and a multi-instance detection network, a self-training network, and a bounding box regression network connected to its output end, where:

[0037] The feature extraction network includes multiple convolutional layers, multiple maximum pooling layers, and multiple first fully connected layers;

[0038] The multi-instance detection network includes two network layers arranged in parallel, each of which includes a second fully connected layer and a Softmax layer connected in sequence, and the outputs of the two network layers are cascaded;

[0039] The self-training network includes three network layers arranged in parallel, each of which includes a third fully connected layer and a Softmax layer connected in sequence;

[0040] The bounding box regression network includes two network layers arranged in parallel, one of which includes the fourth fully connected layer and the Softmax layer connected in sequence to achieve target classification, and the other network layer uses the fifth fully connected layer to achieve target positioning;

[0041] The feature extraction network includes 13 convolutional layers, 3 maximum pooling layers, and 2 first fully connected layers. The specific structure of the feature extraction network is: first to second convolutional layers → maximum pooling layers → third to fourth convolutional layers → maximum pooling layers → fifth to seventh convolutional layers → maximum pooling layers → eighth to thirteenth convolutional layers → first fully connected layer → first fully connected layer; the convolution kernel size of all convolutional layers is 3×3, the moving step size is 1, the number of convolution kernels of the first to second convolutional layers is 64, the number of convolution kernels of the third to fourth convolutional layers is 128, the number of convolution kernels of the fifth to seventh convolutional layers is 256, and the number of convolution kernels of the eighth to thirteenth convolutional layers is 512; the pooling kernel size of all maximum pooling layers is 2×2, and the moving step size is 2; the number of hidden units of all first fully connected layers is 4096;

[0042] Reference Figure 2 ,The feature extraction network is based on VGG16, replacing the last maximum pooling layer of VGG16 with a spatial pyramid pooling layer, and replacing the last fully connected layer and the Softmax layer of VGG16 with the two first fully connected layers;

[0043] A multiple instance detection network, where the number of hidden units in the second fully connected layer included in the two network layers is equal to the number C of target categories;

[0044] Self-training network, where the number of hidden units in the third fully connected layer included in the three network layers is C+1;

[0045] The reason for designing a self-training network is that the non-convex nature of multi-instance learning causes the multi-instance detection network to give priority to more recognizable bounding boxes when scoring, that is, the bounding box only covers a part of the object. By adding a self-training network to refine the bounding box score matrix obtained by the multi-instance detection network, the problem of giving priority to more recognizable bounding boxes when scoring can be effectively solved;

[0046] A bounding box regression network, where the number of hidden units in the fourth fully connected layer is C+1, and the number of hidden units in the fifth fully connected layer is 4×(C+1);

[0047] The reason for designing the bounding box regression network is that weakly supervised object detection lacks instance-level annotation information, and only image-level annotation information can be used during network training, resulting in low object detection accuracy. By adding a bounding box regression network and using the generated pseudo labels for training, the accuracy of object detection can be effectively improved.

[0048] Step 3) Iteratively train the weakly supervised object detection network model H based on bounding box regression:

[0049] (3a) Initialize the number of iterations to w, the maximum number of iterations to W, W ≥ 20000, and set w = 1;

[0050] In this embodiment, W=70000. The purpose of designing W=70000 is to allow the network training to be more sufficient.

[0051] (3b) The training sample set is used as the input of the weakly supervised target detection network model H based on bounding box regression. The feature extraction network extracts features from each training sample. The multi-instance detection network uses the extracted feature map to perform bounding box classification on the corresponding training sample to obtain the bounding box score matrix x 0 ; The kth network layer in the self-training network uses the extracted feature maps to classify the corresponding training samples into bounding boxes, and obtains the bounding box score matrix x k ; The bounding box regression network uses the extracted feature map to perform target classification and target positioning on the corresponding training samples, and obtains the target prediction category and target prediction bounding box of each training sample, where k∈{1,2,3};

[0052] The feature extraction network described in step (3b) extracts features from each training sample, and the implementation steps are as follows:

[0053] Each training sample uses selective search and VGG16 to generate a corresponding candidate region set and convolution feature map respectively. The candidate region set and convolution feature map of each training sample jointly use the spatial pyramid pooling layer to generate a candidate region feature map corresponding to each training sample. The candidate region feature map corresponding to each training sample uses two first fully connected layers to generate a candidate region feature vector corresponding to each training sample, that is, the feature map finally extracted by the feature extraction network, where each candidate region in the candidate region set corresponds to a bounding box;

[0054] The multi-instance detection network described in step (3b) uses the extracted feature map to perform bounding box classification on the corresponding training samples to obtain the bounding box score matrix x 0 , the implementation steps are:

[0055] (3b1) The two network layers of the multi-instance detection network are respectively passed through the second fully connected layer to obtain two feature matrices x c and x d , the two are equal in size, both C×|R|;

[0056] (3b2) Two feature matrices x c and x d After the Softmax layer performs operations on different dimensions, two new matrices σ(x c ) and σ(x d );

[0057] (3b3) The two matrices are multiplied by matrix elements to obtain the bounding box score matrix x of the multi-instance detection network 0 =σ(x c )⊙σ(x d );

[0058] Where |R| represents the number of bounding boxes, and ⊙ represents the matrix element multiplication operation;

[0059] (3c) Update the weight parameters of the four sub-networks contained in the weakly supervised target detection network model to obtain the weakly supervised target detection network model H of this iteration. w , where the loss values ​​of the two network layers in the bounding box regression network are calculated during the update process using the bounding box score matrix x obtained from the third network layer in the self-training network 3 Generated pseudo labels;

[0060] The weight parameters of the four sub-networks included in the weakly supervised target detection network model described in step (3c) are updated by:

[0061] (3c1) The multi-instance detection network uses a cross entropy loss function and passes the bounding box score matrix x 0 and the target category label Y = {y 1 ,y 2 ,...,y C} Calculate the classification loss value L of the bounding box m :

[0062]

[0063]

[0064] Among them, y c represents the c-th target category label of each training sample, Represents the bounding box score matrix x 0 The score of the rth bounding box under the cth target category in;

[0065] (3c2) The kth network layer of the self-training network uses the bounding box score matrix x k-1 The generated bounding box supervision information matrix s k , and adopt the cross entropy loss function, through the bounding box score matrix x k and k Calculate bounding box classification loss

[0066]

[0067] Among them, x k-1When k-1=0, it represents the bounding box score matrix x generated by the multi-instance detection network 0 , when k-1≥1, it represents the bounding box score matrix of the k-1th network layer of the self-training network, Represents the supervisory information matrix s of the kth network layer of the self-training network k The supervision information of the rth bounding box under the cth target category in, Represents the bounding box score matrix x generated by the kth network layer of the self-training network k The score of the rth bounding box under the cth target category in;

[0068] The kth network layer of the self-training network described in step (3c2) uses the bounding box score matrix x k-1 The generated bounding box supervision information matrix s k , the implementation steps are:

[0069] (3c2-1) For the kth network layer of the self-training network, create a set I = {I 1 ,I 2 ,...,I R}, and set the values ​​of all elements in set I to negative infinity;

[0070] (3c2-2) Setup

[0071] (3c2-3) For each training sample, the target category label Y = {y 1 ,y 2 ,...,y C}, if y c =1, select The bounding box a with the highest score in

[0072] (3c2-4) Calculate the IOU of the remaining bounding boxes with bounding box a. If the IOUI of the rth bounding box with bounding box a r 'Greater than I r , then let I r =I r ', and set

[0073] in, Represents the bounding box score matrix x k-1 The score vector for the cth target category, I r represents the value of the rth position of I;

[0074] (3c3) The network layer used to achieve target classification in the bounding box regression network adopts the cross entropy loss function and uses the predicted category probability of the target and the x 3 The generated pseudo-label calculates the classification loss value L of the targetcls ; The network layer used to achieve target positioning uses the SmoothL1 loss function and uses the predicted bounding box of the target and the x 3 The generated pseudo-label calculates the target location loss function L reg , L cls , L reg Add together to get the total loss function L of the bounding box regression network b :

[0075]

[0076]

[0077]

[0078] in, represents the rth bounding box in the pseudo label, t r represents the rth predicted bounding box, p r Represents the category prediction probability vector of the rth bounding box, p cr represents the predicted probability of the rth bounding box under the cth target category, Represents the category label vector of the rth bounding box in the pseudo label. If the category of the rth bounding box is c, then The position of 1 in the category label vector The cth position of for The value of the cth position of ;

[0079] Step (3c3) described in the use of x 3 The pseudo labels are generated by:

[0080] (3c3-1) Create a set G = {G 1 ,G 2 ,...,G C+1}, all elements in set G are bounding box sets, and all elements in set G are set to empty sets;

[0081] (3c3-2) For each training sample, the target category label Y = {y 1 ,y 2 ,...,y C}, if y c =1, select The bounding box j with the highest score in , and set the score of bounding box j to zero;

[0082] (3c3-3) Calculate the IOU of bounding box j with other bounding boxes, set the scores of all bounding boxes whose IOU with bounding box j is greater than the threshold T to zero, then merge these bounding boxes into a larger bounding box g, and add bounding box g to the set G c ;

[0083] (3c3-4) Judgment Are all bounding box scores in zero? If so, execute (3c3-5), otherwise, execute (3c3-2);

[0084] (3c3-5) The set G c All bounding boxes in are used as pseudo labels for the target category c;

[0085] in, Represents the bounding box score matrix x 3 The score vector for the cth target category, G c Represents the set of bounding boxes for the cth target category;

[0086] In this embodiment, T = 0.8;

[0087] (3c4) uses stochastic gradient descent and passes L m , With L b of The convolution kernel weight parameter ω in the feature extraction network w The connection weight parameter θ between the fully connected layer nodes in the feature extraction network, the multiple instance detection network, the self-training network, and the bounding box regression network w To update, the update formulas are:

[0088]

[0089]

[0090] Where η represents the learning rate, 0.00001≤η≤0.1, ω w+1 and θ w+1 Respectively represent ω w and θ w The updated results, represents partial derivative calculation;

[0091] In this embodiment, the initial learning rate η=0.001, and when the iteration reaches the 40,000th time, the learning rate η=0.0001. The learning rate is decayed when the network iterates to a certain number of times in order to prevent the loss function from falling into a local minimum.

[0092] (3d) Determine whether w=W. If so, obtain the trained weakly supervised target detection network model H* based on bounding box regression. Otherwise, set w=w+1 and execute step (3b).

[0093] Step 4) Obtain weakly supervised target detection results:

[0094] The test sample set is used as the input of the trained weakly supervised target detection network model H* based on bounding box regression. The bounding box regression network uses the feature map extracted by the feature extraction network to perform target classification and target positioning on the corresponding test samples, and obtains the target prediction category and target prediction bounding box for each test sample.

[0095] The effect of the present invention is further described below in conjunction with simulation experiments:

[0096] 1. Simulation experiment conditions:

[0097] The data used in the simulation experiment of the present invention is the VOC 2007 data set in the public Pascal VOC Challenge, which contains 20 different categories of targets and a total of 9963 images, of which the training set contains 5011 images and the test set contains 4952 images. The simulation experiment hardware platform is Intel Core i7 8700K@3.7GHz CPU, 64GB RAM, NVIDIA GeforceGTX1080 Ti GPU, and the simulation experiment software platform is Python3.6 and PyTorch 1.6.

[0098] 2. Simulation experiment content and result analysis:

[0099] The simulation experiment of the present invention is to use the method of the present invention and the method that currently obtains the best results to detect the target on the image under the same data set, and calculate the detection accuracy of each method respectively. In the method of the present invention, the training sample set is used to train the neural network to obtain a trained network model. Then, the test sample set is used to test on the trained network model to obtain the detection accuracy of the present invention.

[0100] The detection accuracy results of various methods after training are shown in Table 1.

[0101] Table 1 Comparison of detection accuracy of VOC 2007 dataset

[0102] Simulation Experiment Method Wetectron WSOD2 C-MIDN C-MIL Method of the present invention Detection accuracy 54.9% 53.6% 52.6% 50.5% 56.2%

[0103] It can be seen from Table 1 that the weakly supervised target detection method based on bounding box regression proposed in the present invention performs well in detection accuracy compared with the current method that achieves the best results. This shows that the method of generating pseudo labels by merging bounding boxes in the present invention can improve the accuracy of target detection, is highly competitive in this research problem, and has important practical significance.

Claims

1. A weakly supervised object detection method based on bounding box regression, characterized in that: The detection accuracy of the network model is improved by adding a bounding box regression network to weakly supervised target detection, including the following steps: (1) Obtain training sample set and test sample set: Obtain N RGB images including C target categories, and label the target category in each image, then normalize each image after the target category labeling, and finally form a training sample set with more than half of the N normalized RGB images and their target category labels, and form a test sample set with the remaining images and their target category labels, where C ≥ 2 and N ≥ 5000; (2) Construct a weakly supervised target detection network model H based on bounding box regression: Construct a weakly supervised object detection network model H including a feature extraction network and a multi-instance detection network, a self-training network, and a bounding box regression network connected to its output end, where: The feature extraction network includes multiple convolutional layers, multiple maximum pooling layers, and multiple first fully connected layers; The multi-instance detection network includes two network layers arranged in parallel, each of which includes a second fully connected layer and a Softmax layer connected in sequence, and the outputs of the two network layers are cascaded; The self-training network includes three network layers arranged in parallel, each of which includes a third fully connected layer and a Softmax layer connected in sequence; The bounding box regression network includes two network layers arranged in parallel, one of which includes the fourth fully connected layer and the Softmax layer connected in sequence to achieve target classification, and the other network layer uses the fifth fully connected layer to achieve target positioning; (3) Iteratively train the weakly supervised object detection network model H based on bounding box regression: (3a) Initialize the number of iterations to w, the maximum number of iterations to W, W ≥ 20000, and set w = 1; (3b) The training sample set is used as the input of the weakly supervised target detection network model H based on bounding box regression. The feature extraction network extracts features from each training sample. The multi-instance detection network uses the extracted feature map to perform bounding box classification on the corresponding training sample to obtain the bounding box score matrix x 0 ; The kth network layer in the self-training network uses the extracted feature maps to classify the corresponding training samples into bounding boxes, and obtains the bounding box score matrix x k ; The bounding box regression network uses the extracted feature map to perform target classification and target positioning on the corresponding training samples, and obtains the target prediction category and target prediction bounding box of each training sample, where k∈{1,2,3}; (3c) Update the weight parameters of the four sub-networks contained in the weakly supervised target detection network model to obtain the weakly supervised target detection network model H of this iteration. w , where the loss values ​​of the two network layers in the bounding box regression network are calculated during the update process using the bounding box score matrix x obtained from the third network layer in the self-training network 3 Generated pseudo labels; (3d) Determine whether w=W. If so, obtain the trained weakly supervised target detection network model H* based on bounding box regression. Otherwise, set w=w+1 and execute step (3b). (4) Obtain weakly supervised target detection results: The test sample set is used as the input of the trained weakly supervised target detection network model H* based on bounding box regression. The bounding box regression network uses the feature map extracted by the feature extraction network to perform target classification and target positioning on the corresponding test samples, and obtains the target prediction category and target prediction bounding box for each test sample.

2. The weakly supervised target detection method based on bounding box regression according to claim 1, characterized in that: The weakly supervised object detection network model H based on bounding box regression described in step (2), wherein: The feature extraction network includes 13 convolutional layers, 3 maximum pooling layers, and 2 first fully connected layers. The specific structure of the feature extraction network is: first to second convolutional layers → maximum pooling layers → third to fourth convolutional layers → maximum pooling layers → fifth to seventh convolutional layers → maximum pooling layers → eighth to thirteenth convolutional layers → first fully connected layer → first fully connected layer; the convolution kernel size of all convolutional layers is 3×3, the moving step size is 1, the number of convolution kernels of the first to second convolutional layers is 64, the number of convolution kernels of the third to fourth convolutional layers is 128, the number of convolution kernels of the fifth to seventh convolutional layers is 256, and the number of convolution kernels of the eighth to thirteenth convolutional layers is 512; the pooling kernel size of all maximum pooling layers is 2×2, and the moving step size is 2; the number of hidden units of all first fully connected layers is 4096; A multiple instance detection network, where the number of hidden units in the second fully connected layer included in the two network layers is equal to the number C of target categories; Self-training network, where the number of hidden units in the third fully connected layer included in the three network layers is C+1; Bounding box regression network, in which the number of hidden units in the fourth fully connected layer is C+1, and the number of hidden units in the fifth fully connected layer is 4×(C+1).

3. The weakly supervised target detection method based on bounding box regression according to claim 1, characterized in that: The weight parameters of the four sub-networks included in the weakly supervised target detection network model described in step (3c) are updated by: (3c1) The multi-instance detection network uses a cross entropy loss function and passes the bounding box score matrix x 0 And the target category label of each training sample calculates the classification loss value L of the bounding box m : Among them, y c represents the c-th target category label of each training sample, Represents the bounding box score matrix x 0 The score of the rth bounding box under the cth target category in , where |R| represents the number of bounding boxes; (3c2) The kth network layer of the self-training network uses the bounding box score matrix x k-1 The generated bounding box supervision information matrix s k , and adopt the cross entropy loss function, through the bounding box score matrix x k and k Calculate bounding box classification loss Among them, x k-1 When k-1=0, it represents the bounding box score matrix x generated by the multi-instance detection network 0 , when k-1≥1, it represents the bounding box score matrix of the k-1th network layer of the self-training network, Represents the supervisory information matrix s of the kth network layer of the self-training network k The supervision information of the rth bounding box under the cth target category in, Represents the bounding box score matrix x generated by the kth network layer of the self-training network k The score of the rth bounding box under the cth target category in; (3c3) The network layer used to achieve target classification in the bounding box regression network adopts the cross entropy loss function and uses the predicted category probability of the target and the x 3 The generated pseudo-label calculates the classification loss value L of the target cls ; The network layer used to achieve target positioning uses the SmoothL1 loss function and uses the predicted bounding box of the target and the x 3 The generated pseudo-label calculates the target position loss value L reg , then through L cls and L reg Calculate the total loss value L of the bounding box regression network b : in, represents the rth bounding box in the pseudo label, t r represents the rth predicted bounding box, p r Represents the category prediction probability vector of the rth bounding box, p cr represents the predicted probability of the rth bounding box under the cth target category, Represents the category label vector of the rth bounding box in the pseudo label. If the category of the rth bounding box is c, then The position of 1 in the category label vector The cth position of for The value of the cth position of ; (3c4) uses stochastic gradient descent and passes L m , With L b of The convolution kernel weight parameter ω in the feature extraction network w , and the connection weight parameters θ between the fully connected layer nodes in the feature extraction network, the multiple instance detection network, the self-training network, and the bounding box regression network w To update, the update formulas are: Where η represents the learning rate, 1e-6≤η≤0.1, ω w+1 and θ w+1 Respectively represent ω w and θ w The updated results, Represents partial derivative calculation.