Semi-supervised camouflaged target detection method based on dual rotation local inconsistency learning
Through dual-rotation local inconsistency learning and teacher-student paradigm, the pseudo-label contribution is adaptively adjusted to solve the problems of high labeling cost and pseudo-label noise in camouflage target detection, and achieve efficient performance improvement of the camouflage target detection model.
Patent Information
- Application Number
- CN202410658185.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-05-27
AI Technical Summary
Existing camouflage target detection methods rely heavily on large-scale data sets with pixel-level annotations, resulting in high annotation costs, and semi-supervised learning faces the problem of false label noise in camouflage target detection, which damages model performance.
A semi-supervised disguised target detection method based on dual-rotation local inconsistency learning is adopted, combined with the teacher-student paradigm, to generate pseudo labels through weak data enhancement and rotated views, calculate the local inconsistency weight, adaptively adjust the contribution of the pseudo labels, and combine Supervised and unsupervised loss optimization models.
It effectively saves the cost of labeling camouflage target detection data, improves model performance, significantly improves the performance of camouflage target detection models, and even exceeds the fully supervised setting under limited labeled data.
Smart Images

Figure CN118247607B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of semi-supervised learning in machine learning and the technical field of image detection in computer vision, and in particular to a semi-supervised camouflage target detection method based on dual-rotation local inconsistency learning. Background Art
[0002] The purpose of camouflaged target detection is to detect objects with a lower contrast than the surrounding environment, including animals or artificial objects with protective coloring, hidden targets, etc. They often have characteristics such as textures that are very similar to the background, blurred edges, and background interference, which are more challenging than general target detection. As an emerging task in the field of computer vision, camouflaged target detection based on deep learning can not only further supplement and improve target detection technology, but also help promote the intelligent development of multiple real-world fields such as medicine (polyp segmentation and lung infection segmentation), industry (defect detection), military (camouflage detection), agriculture (pest detection), and art.
[0003] Existing camouflaged target detection methods rely heavily on large-scale datasets with pixel-level annotations. However, large-scale labeled data requires a lot of human resources, which greatly limits the development of camouflaged target detection. Especially compared to general targets, due to the camouflaged characteristics of camouflaged targets, it is difficult for humans to distinguish the target boundaries and background environment. Pixel-by-pixel annotation of camouflaged objects is more time-consuming and laborious. For example, the construction of the COD10K dataset takes about 60 minutes to annotate each image. Semi-supervised learning provides a potential solution to this problem. By combining supervised learning with unsupervised learning, labeled data and unlabeled data are effectively used during the training process to improve model performance.
[0004] Due to the camouflage characteristics of camouflaged targets compared to general targets, there are many challenges in directly migrating the successful paradigm of semi-supervised learning to camouflaged target detection. The most significant problem is that there is a lot of local noise in the pseudo-labels, and directly using the noisy pseudo-labels for supervision will damage the model performance. Summary of the invention
[0005] The purpose of the present invention is to provide a semi-supervised disguised target detection method based on dual-rotation local inconsistency learning, to solve the problems existing in the prior art, to improve the performance of the disguised target detection model, and to save the labeling cost of the disguised target detection data.
[0006] In order to achieve the above object, the solution of the present invention is:
[0007] A semi-supervised camouflaged target detection method based on dual rotation local inconsistency learning, combined with the teacher-student paradigm in semi-supervised learning, is characterized by:
[0008] Given a camouflaged target detection dataset for training ,have The labeled data subset with labeled data is represented as ,have The unlabeled data subset of unlabeled data is represented as ,in and represents the input image, Represents the true mask label corresponding to the labeled data; including the following steps:
[0009] Step 1: Randomly sample the labeled data and unlabeled data in a 1:1 ratio to form a training batch;
[0010] Step 2: After weak data enhancement, the labeled data is sent to the student model to obtain the corresponding prediction results, and then the BCE Loss is calculated with the real mask label corresponding to the labeled data to obtain the supervised loss. , and its calculation formula is expressed as:
[0011] ;
[0012] in represents weak data augmentation, including random flipping and random scaling; represents the student model, represents the parameters of the student model, then Represents the prediction results of the student model; Indicates the calculation of binary cross entropy loss;
[0013] Step 3: The unlabeled data is weakly enhanced and then rotated twice at random angles to obtain two rotated views at different angles. and , and its calculation formula is expressed as:
[0014] ;
[0015] ;
[0016] in Indicates that the input is rotated by the corresponding angle, and Indicates different rotation angles;
[0017] Then the two rotated views and Send to Teacher Model Get the corresponding two pseudo labels and , the parameters of the teacher model are , and its calculation formula is expressed as:
[0018] ;
[0019] ;
[0020] Then the two pseudo labels and Reverse rotation to the horizontal direction to obtain two horizontal predictions and , and its calculation formula is expressed as:
[0021] ;
[0022] ;
[0023] Pixel-wise subtraction to obtain local inconsistency of pseudo labels under different rotation views , and its calculation formula is expressed as:
[0024] ;
[0025] Calculate the mean of the horizontal forecasts , and then compare it with The L2 distance is used as a weight, thereby obtaining the local inconsistency weight , and its calculation formula is expressed as:
[0026] ;
[0027] in represents the hyperparameter, Indicates calculation of average value;
[0028] Step 4: Rotate the view obtained in step 3 Perform strong data enhancement and then send it to the student model to get the corresponding prediction results , and its calculation formula is expressed as:
[0029] ;
[0030] in Indicates strong data augmentation;
[0031] Then with the corresponding pseudo label Calculate BCE Loss, combine local inconsistency weights, and calculate unsupervised loss , and its calculation formula is expressed as:
[0032]
[0033] ;
[0034] in and Represents the height and width of the image respectively. Indicated in In the picture The local inconsistency weight of the pixel position, Represents pseudo labels In the The pixel value at the pixel position, Represents the prediction results In the The pixel value at the pixel position;
[0035] Step 5: There will be supervised loss With weighted unsupervised loss Add up to get the final total loss , and its calculation formula is expressed as:
[0036] ;
[0037] in represents the unsupervised loss The weight of
[0038] Step 6: Based on the total loss Update the parameters of the student model using stochastic gradient descent optimizer , and then the student model updates the parameters of the teacher model through the exponential moving average strategy , and its calculation formula is expressed as:
[0039] ;
[0040] in represents the parameters of the updated teacher model, represents the update coefficient.
[0041] After adopting the above technical solution, the present invention has the following technical effects:
[0042] The present invention realizes end-to-end semi-supervised camouflaged target detection by utilizing labeled data and unlabeled data, which can save manpower and material resources for labeling camouflaged target data. The present invention combines the teacher-student paradigm in semi-supervised learning, and designs a dual-rotation local inconsistency learning method to address the problem of a large amount of local noise in pseudo-labels. The method adaptively adjusts the contribution of different pseudo-label pixels, so that the model can efficiently utilize the unlabeled camouflaged target data information, while avoiding the confirmation bias problem caused by pseudo-label noise, greatly improving the performance of the camouflaged target detection model. The present invention conducts extensive experiments on the CamoTeacher model on a camouflaged target detection benchmark dataset, and achieves significant improvement compared to the full supervision setting. Specifically, the learning process of the present invention alleviates the local noise problem by assigning different weights to different areas of the same pseudo-label through the inconsistency of local predictions of different rotation views, helping the model to adaptively adjust the contribution of pseudo-labels of different qualities, so that the camouflaged target detection model obtains sufficient supervision while avoiding confirmation bias. It comprehensively exceeds the performance of full supervision when using extremely limited labeled data (30%). BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 The overall framework diagram of the CamoTeacher model of a specific embodiment of the present invention;
[0044] Figure 2 It is a flowchart of double rotation local inconsistency learning of a specific embodiment of the present invention;
[0045] Figure 3 A visualization diagram of model predictions for different proportions of labeled data;
[0046] Figure 4 Schematic diagram for visualizing local inconsistency of pseudo labels of dual-rotation views under different numbers of training rounds;
[0047] Figure 5 Performance comparison of supervised models, semi-supervised baselines, and CamoTeacher under different proportions of labeled data;
[0048] Figure 6 The following is a comparison chart of the detection results of four camouflaged targets on the detection datasets CHAMELEON, CAMO, COD10K and NC4K. DETAILED DESCRIPTION
[0049] In order to further explain the technical solution of the present invention, the present invention is described in detail below through specific embodiments.
[0050] The present invention discloses a semi-supervised camouflage target detection method based on dual rotation local inconsistency learning, combined with the teacher-student paradigm in semi-supervised learning. The overall preview of its model framework is as follows: Figure 1 As shown in the figure, it is called the CamoTeacher model, which defines the semi-supervised camouflage target detection task as follows:
[0051] Given a camouflaged target detection dataset for training ,have The labeled data subset with labeled data is represented as ,have The unlabeled data subset of unlabeled data is represented as ,in and represents the input image, Indicates the true mask label corresponding to the labeled data; usually, yes A relatively small subset of ; For the semi-supervised camouflage target detection setting, the goal of the present invention is to combine and Build data-efficient deep learning models with performance equal to the best models trained on fully supervised datasets.
[0052] The specific process of the method is as follows:
[0053] Step 1: Randomly sample the labeled data and unlabeled data in a 1:1 ratio to form a training batch.
[0054] Step 2: After weak data enhancement, the labeled data is sent to the student model to obtain the corresponding prediction results, and then the BCE Loss (Binary Cross-Entropy Loss) corresponding to the real mask label of the labeled data is calculated to obtain the supervised loss , and its calculation formula is expressed as:
[0055] ;
[0056] in represents weak data augmentation, including random flipping and random scaling; represents the student model, represents the parameters of the student model, then Represents the prediction results of the student model; Represents the calculation of binary cross entropy loss.
[0057] Step 3: The unlabeled data is weakly enhanced and then rotated twice at random angles to obtain two rotated views at different angles. and , and its calculation formula is expressed as:
[0058] ;
[0059] ;
[0060] in Indicates that the input is rotated by the corresponding angle, and Indicates different rotation angles;
[0061] Then the two rotated views and Send to Teacher Model Get the corresponding two pseudo labels and , the parameters of the teacher model are , and its calculation formula is expressed as:
[0062] ;
[0063] ;
[0064] Then the two pseudo labels and Reverse rotation to the horizontal direction to obtain two horizontal predictions and , and its calculation formula is expressed as:
[0065] ;
[0066] ;
[0067] Pixel-wise subtraction to obtain local inconsistency of pseudo labels under different rotation views , and its calculation formula is expressed as:
[0068] ;
[0069] Local inconsistency of pseudo-labels under different rotations It can reflect the reliability of different pixels of the pseudo-label, but when both prediction results are around 0.5 These predictions show high uncertainty, i.e. they cannot be clearly classified as foreground or background and are more likely to represent noise labels, so it is necessary to reduce the contribution of these pixels by reducing their weights. Here, we calculate the average of the horizontal predictions , and then compare it with The L2 distance is used as a weight, thereby obtaining the local inconsistency weight , and its calculation formula is expressed as:
[0070] ;
[0071] in represents a hyperparameter, which is set to 0.25 in the experiment; Indicates calculation of average value;
[0072] Since the local inconsistency weights are dynamic, regions with consistent predictions under different rotation views have larger weights, while inconsistent regions have smaller weights.
[0073] The flowchart of double rotation local inconsistency learning is as follows Figure 2 shown.
[0074] Step 4: Rotate the view obtained in step 3 Perform strong data enhancement and then send it to the student model to get the corresponding prediction results , and its calculation formula is expressed as:
[0075] ;
[0076] in Indicates strong data enhancement, including changes in color space, such as brightness and contrast changes;
[0077] It should be noted that usually in a semi-supervised algorithm process, within a training batch, an unlabeled image only undergoes weak and strong data augmentation once before being sent to the student model. In order to align with conventional practices, only one rotated view is calculated here, and either of the two rotated views is acceptable.
[0078] Then with the corresponding pseudo label Calculate BCE Loss, combine local inconsistency weights, and calculate unsupervised loss , and its calculation formula is expressed as:
[0079]
[0080] .
[0081] in and Represents the height and width of the image respectively. Indicated in In the picture The local inconsistency weight of the pixel position, Represents pseudo labels In the The pixel value at the pixel position, Represents the prediction results In the The pixel value at the pixel position;
[0082] Step 5: There will be supervised loss With weighted unsupervised loss Add up to get the final total loss , and its calculation formula is expressed as:
[0083] ;
[0084] in represents the unsupervised loss The weight of
[0085] Step 6: Based on the total loss Update the parameters of the student model using the Stochastic Gradient Descent (SGD) optimizer , and then the student model updates the parameters of the teacher model through the exponential moving average (EMA) strategy , and its calculation formula is expressed as:
[0086] ;
[0087] in represents the parameters of the updated teacher model, represents the update coefficient.
[0088] Through the above scheme, the key point of the present invention is to realize end-to-end semi-supervised camouflaged target detection by utilizing labeled data and unlabeled data, which can save manpower and material resources for labeling camouflaged target data; the present invention combines the teacher-student paradigm in semi-supervised learning, and at the same time, aims at the problem that there is a large amount of local noise in the pseudo-labels generated by the teacher model for unlabeled data, designs a dual-rotation local inconsistency learning method, adaptively adjusts the contribution / weight of different pseudo-label pixels, so that the model can efficiently utilize the unlabeled camouflaged target data information, while avoiding the confirmation bias problem caused by pseudo-label noise, greatly improving the performance of the camouflaged target detection model; the present invention conducts extensive experiments on the CamoTeacher model on the camouflaged target detection benchmark dataset, and has achieved significant improvement compared with the full supervision setting. Specifically, the learning process of the present invention alleviates the local noise problem by assigning different weights to different areas of the same pseudo-label through the inconsistency of local predictions of different rotation views, helping the model to adaptively adjust the contribution of pseudo-labels of different qualities, so that the camouflaged target detection model obtains sufficient supervision while avoiding confirmation bias, and comprehensively exceeds the performance of full supervision when using extremely limited labeled data (30%).
[0089] The present invention conducts experiments on four camouflaged target detection benchmark datasets: CAMO, CHAMELEON, COD10K, and NC4K. CAMO contains 250 images, specifically 1250 camouflaged images and 1250 non-camouflaged images; CHAMELEON contains 76 manually annotated images; COD10K consists of 5066 camouflaged images, 3000 background images, and 1934 non-camouflaged images; NC4K is another large-scale COD test dataset, containing 4121 images collected from the Internet. Based on the data partitioning in the camouflaged target detection work, we use 3040 images from COD10K and 1000 images from CAMO as the training set for our experiment, and the remaining images in the two datasets are used as test sets. During the training process, we follow the semi-supervised segmentation data partitioning method, extracting 1%, 5%, 10%, 20%, and 30% of the training set as labeled data, and the rest as unlabeled data.
[0090] Referring to previous work, this paper uses six common evaluation indicators in camouflaged target detection to evaluate the CamoTeacher model of this invention, including S-measure ( )、weight F-measure( )、mean E-measure( )、max E-measure( )、mean F-measure( ) and mean absolute error ( ).
[0091] Qualitative analysis:
[0092] We visualized the results of CamoTeacher with different proportions of labeled data. We used 1%, 5%, 10%, 20%, and 30% of the labeled data for model training, and then compared the masks predicted by the model with those predicted by SINet under full supervision. The results are shown in Figure 2. Figure 3 As shown in the figure, when CamoTeacher is trained with only 10% labeled data, the mask predicted by the model is basically similar to the mask predicted by SINet under 100% full supervision, and even outperforms the prediction of SINet under full supervision in some details. We visualized the local inconsistency results of different rounds, Figure 4It can be seen that local inconsistency mainly appears in the boundary area of the camouflaged target, and it can be observed that with the increase of training rounds, the highlight area gradually decreases, which shows that local inconsistency can be gradually reduced with the increase of training rounds. This shows the effectiveness of dual rotation local inconsistency learning.
[0093] Quantitative analysis:
[0094] See also Figure 5 and Figure 6 , this paper compares CamoTeacher with supervised and Mean Teacher. We find that because Mean Teacher treats all regions of all pseudo-labels equally, but because of the noise problem of pseudo-labels, the semi-supervised baseline Mean Teacher cannot gain any gain compared to supervised. For example, on the NC4K dataset, under the 1% setting, Mean Teacher has a 1% gain compared to supervised. The indicator dropped by 9.7%. Compared with MeanTeacher, CamoTeacher, which combines dual-rotation local inconsistency learning, has well alleviated the pseudo-label noise problem and efficiently utilized pseudo-label information, which is much better than supervised and Mean Teacher. CamoTeacher can achieve gains at different proportions of labeled data, especially when there is very limited labeled data. For example, on the NC4K dataset, under the 1% setting, CamoTeacher is better than supervised. The indicator has significantly increased by 28.6%. The indicator improved by 12.3%, and compared with Mean Teacher, the improvement was more significant, at 38.6% and 17.7% respectively.
[0095] The above embodiments and drawings do not limit the product form and style of the present invention. Any appropriate changes or modifications made by ordinary technicians in the relevant technical field should be deemed to be within the patent scope of the present invention.
Claims
1. A semi-supervised camouflaged target detection method based on dual-rotation local inconsistency learning, combined with the teacher-student paradigm in semi-supervised learning, characterized by: Given a camouflaged target detection dataset for training ,have The labeled data subset with labeled data is represented as ,have The unlabeled data subset of unlabeled data is represented as ,in and represents the input image, Represents the true mask label corresponding to the labeled data; including the following steps: Step 1: Randomly sample the labeled data and unlabeled data in a 1:1 ratio to form a training batch; Step 2: After weak data enhancement, the labeled data is sent to the student model to obtain the corresponding prediction results, and then the BCE Loss is calculated with the real mask label corresponding to the labeled data to obtain the supervised loss. , and its calculation formula is expressed as: ; in represents weak data augmentation, including random flipping and random scaling; represents the student model, represents the parameters of the student model, then Represents the prediction results of the student model; Indicates the calculation of binary cross entropy loss; Step 3: The unlabeled data is weakly enhanced and then rotated twice at random angles to obtain two rotated views at different angles. and , and its calculation formula is expressed as: ; ; in Indicates that the input is rotated by the corresponding angle, and Indicates different rotation angles; Then the two rotated views and Send to Teacher Model Get the corresponding two pseudo labels and , the parameters of the teacher model are , and its calculation formula is expressed as: ; ; Then the two pseudo labels and Reverse rotation to the horizontal direction to obtain two horizontal predictions and , and its calculation formula is expressed as: ; ; Pixel-wise subtraction to obtain local inconsistency of pseudo labels under different rotation views , and its calculation formula is expressed as: ; Calculate the mean of the horizontal forecasts , and then compare it with The L2 distance is used as a weight, thereby obtaining the local inconsistency weight , and its calculation formula is expressed as: ; in represents the hyperparameter, Indicates calculation of average value; Step 4: Rotate the view obtained in step 3 Perform strong data enhancement and then send it to the student model to get the corresponding prediction results , and its calculation formula is expressed as: ; in Indicates strong data augmentation; Then with the corresponding pseudo label Calculate BCE Loss, combine local inconsistency weights, and calculate unsupervised loss , and its calculation formula is expressed as: ; in and Represents the height and width of the image respectively. Indicated in In the picture The local inconsistency weight of the pixel position, Represents pseudo labels In the The pixel value at the pixel position, Represents the prediction results In the The pixel value at the pixel position; Step 5: There will be supervised loss With weighted unsupervised loss Add up to get the final total loss , and its calculation formula is expressed as: ; in represents the unsupervised loss The weight of Step 6: Based on the total loss Update the parameters of the student model using a stochastic gradient descent optimizer , and then the student model updates the parameters of the teacher model through the exponential moving average strategy , and its calculation formula is expressed as: ; in represents the parameters of the updated teacher model, represents the update coefficient.
