An adaptive data enhancement method for object detection

Through adaptive region removal, object selection and labeling filtering algorithms, an enhanced data set is formed, which solves the problems of difficulty in detecting small objects, high training sensitivity and imbalanced classification in target detection, and improves the learning efficiency and quality of the model.

CN113936133BActive Publication Date: 2024-09-03SHANGHAI NORMAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111119987.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-24
Publication Date
2024-09-03
Estimated Expiration
2041-09-24

AI Technical Summary

Technical Problem

Existing target detection algorithms have low accuracy in small object detection, high training batch sensitivity, and imbalanced data set classification, resulting in unstable model learning.

Method used

Adaptive region removal, object selection and annotation filtering algorithms are used to traverse the image, remove unbalanced aspect ratios and small areas, select objects with high classification fit, and filter unsuitable annotations to form an enhanced data set.

Benefits of technology

It improves the content richness of the data set, reduces the difficulty of small target detection, reduces the impact of training batches on the model, alleviates the problem of classification imbalance, and improves model learning efficiency and quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113936133B
    Figure CN113936133B
Patent Text Reader

Abstract

The present invention relates to an adaptive data enhancement method for target detection, including executing the following algorithms on a picture to be enhanced: an adaptive region removal algorithm: obtaining a picture to be enhanced from a data set, traversing the regions in the picture to be enhanced, and removing regions with unbalanced aspect ratios and areas smaller than a preset area threshold; an adaptive object selection algorithm: selecting object regions from a data set to fill in the removed regions in the picture to be enhanced based on the classification quantity information of a single object and the relationship between the objects; an adaptive annotation filtering algorithm: filtering out objects that are not suitable as model learning targets based on the bounding box information of the original object in the picture to be enhanced. Compared with the prior art, the present invention can effectively improve the richness of data set content, and the network trained based on the enhanced target detection data set of the present invention has model improvements in small target detection, reducing batch sensitivity, alleviating classification imbalance, and other issues.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data enhancement, and in particular to an adaptive data enhancement method for target detection. Background Art

[0002] Object detection is an image processing technology that has a wide range of applications in reality. However, the current object detection algorithm still has the following problems in actual use: first, it is difficult to detect small objects, that is, the trained model has low recognition accuracy for small objects; second, it is highly sensitive to the training batch, that is, the effect of the model training process changes significantly with the change of batch size, which will cause instability in model learning; finally, the data set used for object detection model training often has the problem of classification imbalance, that is, the number of objects in different categories varies significantly. Summary of the invention

[0003] The purpose of the present invention is to provide an adaptive data enhancement method for target detection in order to overcome the defects of the above-mentioned prior art, such as difficulty in detecting small objects, high sensitivity of training batches, and imbalanced classification.

[0004] The purpose of the present invention can be achieved by the following technical solutions:

[0005] An adaptive data enhancement method for target detection includes the following steps:

[0006] Traverse each image in the data set, execute the adaptive region removal algorithm, the adaptive object selection algorithm and the adaptive annotation filtering algorithm to obtain the enhanced data set;

[0007] The adaptive region removal algorithm comprises: obtaining a picture to be enhanced from a data set, traversing regions in the picture to be enhanced, and removing regions with unbalanced aspect ratios and areas smaller than a preset area threshold;

[0008] The adaptive object selection algorithm includes: selecting object areas from the data set to fill in the removed areas of the image to be enhanced according to the classification quantity information of the single object and the relationship between the objects;

[0009] The adaptive annotation filtering algorithm includes: filtering out objects that are not suitable as model learning targets according to the bounding box information of the original objects in the image to be enhanced.

[0010] Furthermore, the regions in the picture to be enhanced are traversed, specifically: in the picture to be enhanced, each region is traversed from top to bottom and from left to right.

[0011] Furthermore, the traversed area is an area outside the original object area marked by the bounding box in the image to be enhanced.

[0012] Furthermore, the area with an unbalanced aspect ratio is an area with an aspect ratio greater than 10.

[0013] Furthermore, the region whose area is smaller than a preset area threshold is a region whose area is smaller than 20 pixels.

[0014] Furthermore, the classification quantity information of the single object is the number of objects in the classification to which the single object belongs in the entire data set.

[0015] Furthermore, the relationship between the objects is calculated based on the classification fit between the objects, and the calculation expression of the classification fit is:

[0016]

[0017] In the formula, C (mn|I) is the classification fit, IoU(m,n) is the ratio of the intersection and union of the areas of object m and object n;

[0018] The classification of the objects in the data set is calculated based on the classification fit.

[0019] Furthermore, the calculation expression of IoU(m,n) is:

[0020]

[0021] In the formula, S A is the intersection area between object m and object n, S B is the union area between object m and object n.

[0022] Furthermore, the objects that are not suitable as model learning targets are determined specifically as follows: the IoS value is calculated based on the bounding box information of the original object in the image to be enhanced. If the IoS value is less than a preset IoS threshold, the original object is not suitable as a model learning target, and the bounding box information of the original object is filtered; otherwise, the bounding box information of the original object is retained.

[0023] Furthermore, the calculation expression of the IoS value is:

[0024]

[0025] In the formula, I (m,M) is the area of ​​the intersection of object m and object M, object M is the original object in the image to be enhanced, object M is the standard object corresponding to object M, S m is the area of ​​object m.

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

[0027] The present invention generally improves the data set in the following three aspects:

[0028] First, the present invention proposes an adaptive region removal algorithm, which can adaptively select a region suitable for removal from the image to be enhanced. The algorithm is characterized in that it can ensure that the removed region does not include the object to be identified in the image, thereby ensuring the integrity of the original important information of the image;

[0029] Second, the present invention proposes an adaptive object selection algorithm, which can adaptively select suitable objects from the entire data set that can be used to fill in the current image removal area to be identified. The algorithm is characterized in that the selection of objects not only considers the classification quantity information of a single object, but also comprehensively considers the relationship between objects. Therefore, the adaptive object selection algorithm invented can ensure the compatibility of the selected object with the object to be identified.

[0030] Third, the present invention proposes an adaptive annotation filtering algorithm, which can adaptively filter out objects in the enhanced data that are not suitable as model learning targets. The algorithm is characterized by improving the efficiency and quality of the entire model learning by filtering out some non-learning targets. Considering that the target detection technology is widely used, the present invention has certain practical value.

[0031] The target detection dataset of the present invention can effectively improve the richness of the data set content. The network trained based on the enhanced target detection dataset of the present invention has model improvements in small target detection, reducing batch sensitivity, alleviating classification imbalance, etc. Considering that the target detection task is a widely used visual technology, the present invention has certain social value and practical significance. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of the overall process of an adaptive data enhancement method for target detection provided in an embodiment of the present invention;

[0033] Figure 2 A comparison diagram of a data set training process using an R-FCN network provided in an embodiment of the present invention;

[0034] Figure 3 A comparison diagram of a data set training process using a Faster R-CNN network provided in an embodiment of the present invention;

[0035] Figure 4 A comparison diagram of a data set training process using an EfficientDent network provided in an embodiment of the present invention;

[0036] Figure 5 A comparison diagram of a data set training process using an SSD network provided in an embodiment of the present invention;

[0037] In the figure, SADA is an enhanced data set obtained by using the adaptive data enhancement method for target detection in this embodiment, Steps is the number of iterations, Loss is the loss, train without SADA is training without using the SADA data set, and train with SADA is training with the SADA data set; x and y are pixel coordinates, aero, bike and bird are object names, and object is an item. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0039] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] Example 1

[0041] like Figure 1 As shown, this embodiment provides an adaptive data enhancement method for target detection, comprising the following steps:

[0042] Traverse each image in the data set, execute the adaptive region removal algorithm, the adaptive object selection algorithm and the adaptive annotation filtering algorithm to obtain the enhanced data set;

[0043] The adaptive region removal algorithm includes: obtaining a picture to be enhanced from a data set, traversing regions in the picture to be enhanced, and removing regions with unbalanced aspect ratios and areas smaller than a preset area threshold;

[0044] The adaptive object selection algorithm includes: selecting object areas from the data set to fill in the removed areas of the image to be enhanced based on the classification quantity information of a single object and the relationship between the objects;

[0045] The adaptive annotation filtering algorithm includes: filtering out objects that are not suitable as model learning targets based on the bounding box information of the original objects in the image to be enhanced.

[0046] As a preferred implementation, the traversed area is the area outside the original object area marked by the bounding box in the image to be enhanced, which can ensure that the removed area does not include the object to be identified in the image, thereby ensuring the integrity of the original important information of the image.

[0047] As a preferred implementation, the regions in the picture to be enhanced are traversed, specifically: in the picture to be enhanced, each region is traversed from top to bottom and from left to right.

[0048] As a preferred implementation, the region with an unbalanced aspect ratio is a region with an aspect ratio greater than 10.

[0049] As a preferred implementation, the region whose area is smaller than the preset area threshold is a region whose area is smaller than 20 pixels.

[0050] As a preferred implementation, the classification quantity information of a single object is the number of objects in the classification to which the single object belongs in the entire data set.

[0051] As a preferred implementation, the relationship between objects is calculated based on the classification fit between the objects. The calculation expression of the classification fit is:

[0052]

[0053] In the formula, C (mn|I) is the classification fit, IoU(m,n) is the ratio of the intersection and union of the areas of object m and object n; the classification of objects in the dataset is calculated based on the classification fit.

[0054] The calculation expression of IoU(m,n) is:

[0055]

[0056] In the formula, S A is the intersection area between object m and object n, S B is the union area between object m and object n.

[0057] The objects selected by the adaptive object selection algorithm not only consider the classification quantity information of a single object, but also comprehensively consider the relationship between the objects. Therefore, the adaptive object selection scheme of this embodiment can ensure the compatibility of the selected object with the object to be identified.

[0058] As a preferred implementation, determining an object that is not suitable as a model learning target is specifically as follows: calculating an IoS value based on the bounding box information of the original object; if the IoS value is less than a preset IoS threshold, the original object is an object that is not suitable as a model learning target, and filtering the bounding box information of the original object; otherwise, retaining the bounding box information of the original object.

[0059] The calculation expression of IoS value is:

[0060]

[0061] In the formula, I (m,M) is the area of ​​the intersection of object m and object M, object M is the original object in the image to be enhanced, object M is the standard object corresponding to object M, S m is the area of ​​object m.

[0062] In this embodiment, the IoS threshold is 0.3.

[0063] The adaptive annotation filtering algorithm can adaptively filter out objects in the enhanced data that are not suitable as model learning targets. Its characteristic is that it improves the efficiency and quality of the entire model learning by filtering out some non-learning targets.

[0064] like Figure 2-5 As shown, under various network models, the training comparison between the data set obtained based on the most preferred adaptive data enhancement method for target detection in this embodiment and the original data set is shown. It can be seen that the target detection training using this solution is faster.

[0065] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.

Claims

1. An adaptive data enhancement method for target detection, characterized in that: The following steps are involved: Traverse each image in the data set, execute the adaptive region removal algorithm, the adaptive object selection algorithm and the adaptive annotation filtering algorithm to obtain the enhanced data set; The adaptive region removal algorithm comprises: obtaining a picture to be enhanced from a data set, traversing regions in the picture to be enhanced, and removing regions with unbalanced aspect ratios and areas smaller than a preset area threshold; The adaptive object selection algorithm includes: selecting object areas from the data set to fill in the removed areas of the image to be enhanced according to the classification quantity information of the single object and the relationship between the objects; The adaptive annotation filtering algorithm includes: filtering out objects that are not suitable as model learning targets according to the bounding box information of the original objects in the image to be enhanced; The traversed area is an area outside the original object area marked by the bounding box in the image to be enhanced; The classification quantity information of the single object is the number of objects in the classification to which the single object belongs in the entire data set; The relationship between the objects is calculated based on the classification fit between the objects. The calculation expression of the classification fit is: In the formula, C (mn|I) is the classification fit, IoU(m,n) is the ratio of the intersection and union of the areas of object m and object n; Calculating the classification of objects in the data set according to the classification fit; Determining an object that is not suitable as a model learning target is specifically as follows: calculating an IoS value according to the bounding box information of the original object in the image to be enhanced; if the IoS value is less than a preset IoS threshold, the original object is not suitable as a model learning target, and the bounding box information of the original object is filtered; otherwise, the bounding box information of the original object is retained; The calculation expression of the IoS value is: In the formula, I (m,M) is the area of ​​the intersection of object m and object M, object M is the original object in the image to be enhanced, object M is the standard object corresponding to object M, S m is the area of ​​object m.

2. The adaptive data enhancement method for target detection according to claim 1, characterized in that: The regions in the to-be-enhanced picture are traversed, specifically: in the to-be-enhanced picture, each region is traversed from top to bottom and from left to right.

3. The method for adaptive data enhancement for target detection according to claim 1, characterized in that: The area with an unbalanced aspect ratio is an area with an aspect ratio greater than 10.

4. The method for adaptive data enhancement for target detection according to claim 1, characterized in that: The region whose area is smaller than the preset area threshold is a region whose area is smaller than 20 pixels.

5. The method for adaptive data enhancement for target detection according to claim 1, characterized in that: The calculation expression of IoU(m,n) is: In the formula, S A is the intersection area between object m and object n, S B is the union area between object m and object n.