A method for multi-target detection based on drone aerial video

By adding target identification number instructions and improving the use of YOLO model in the multi-target tracking algorithm, the problem of low target detection accuracy in UAV aerial photography data is solved, and higher detection accuracy and tracking speed are achieved.

CN115082551BActive Publication Date: 2024-10-18INST OF COMPUTING TECH CHINESE ACAD OF SCI
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210571926.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-24
Publication Date
2024-10-18
Estimated Expiration
2042-05-24

AI Technical Summary

Technical Problem

Existing multi-target tracking algorithms are difficult to apply to UAV aerial photography data, resulting in low detection accuracy and poor real-time tracking results, mainly due to the large number of targets to be detected, too small targets, and insufficient apparent feature extraction capabilities.

Method used

By adding instructions for the target identification number in the training set, using the improved YOLO model, adding convolution kernels related to detecting the target identification number, and through various proportions of detection frames and image data enhancement processing, the model improves the accuracy of UAV aerial photography. Detection accuracy and tracking accuracy of data.

Benefits of technology

It improves the detection accuracy and tracking accuracy of the multi-target detection model, improves the target detection and tracking performance in drone aerial videos, and achieves higher detection accuracy and speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115082551B_ABST
    Figure CN115082551B_ABST
Patent Text Reader

Abstract

The present invention provides a method for multi-target detection based on unmanned aerial vehicle aerial video, comprising: obtaining unmanned aerial vehicle aerial video, extracting images corresponding to each video frame therein; sequentially inputting the images corresponding to each video frame into a multi-target detection model trained by a training method for a multi-target detection model for unmanned aerial vehicle aerial images according to the present invention, and obtaining target detection results corresponding to continuous video frames; thereby, the accuracy of target detection performed by the multi-target detection model can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of multi-target tracking, and more specifically to the technical field of multi-target tracking based on images in videos shot by unmanned aerial vehicles, and more specifically to a method for multi-target detection based on unmanned aerial vehicle aerial videos. Background Art

[0002] Multiple Object Tracking (MOT) refers to locating several interesting targets in a video and keeping the target ID unchanged between different frames, so as to record the trajectory of each target. The types of these targets can be specifically set and the corresponding models can be trained as needed. For example, the types of targets can be pedestrians on the street, vehicles on the road, athletes on the court, or a group of animals (birds, bats, ants, fish, etc.).

[0003] With the development of science and technology, drones have been widely used in smart cities, aerial photography, agriculture, scientific research and other fields due to their advantages of obtaining large-scale, multi-angle, high-resolution data and their characteristics of not being restricted by time and region. In the field of virtual reality research, the data collected by drones can be used as a data source for instance-based simulation modeling algorithms and as a basis for evaluating simulation results.

[0004] In recent years, deep learning has made great progress in the fields of image classification, object detection, and target tracking, but these algorithms cannot be directly applied to drone data. Because drones fly dynamically at high altitudes, their captured images are unstable and the viewpoint changes dynamically, which leads to dynamic changes in the aspect ratio, movement speed, scale, etc. of the targets in the video, as well as target occlusion and loss. This poses a great challenge to multi-target tracking based on drone aerial data. In addition, due to the complexity of the multi-target tracking problem, most existing algorithms cannot achieve real-time tracking effects. However, in many drone-related application scenarios, real-time multi-target tracking is necessary. Therefore, research on real-time multi-target tracking algorithms for drone aerial data has high research value and application prospects.

[0005] Compared with conventional multi-target tracking tasks (such as MOT Challenge), multi-target tracking tasks based on UAV data have the following difficulties:

[0006] 1. There are many targets to be detected: Different from conventional target detection or tracking datasets, each image in a drone-photographed dataset may contain hundreds of targets to be detected, and the resolution of a single image is very high. Therefore, if a model that consumes a lot of computing resources is used, there may be insufficient resources. This can easily cause the multi-target tracking system based on drone aerial videos to run at a low speed.

[0007] 2. Some targets are too small: Because the perspective of the drone-photographed dataset is high and relatively far from the ground, the annotation boxes of some objects in the image may be very small, which poses certain challenges to the model's detection capabilities. How to process high-resolution spatial information to generate high-quality candidate areas is a big challenge; when training network models, a common method is to use models that have been pre-trained with third-party datasets. Commonly used pre-trained datasets include COCO, OBJ365, etc. Using pre-trained models to fine-tune other datasets can speed up the convergence of the network and shorten the training time. However, due to the shooting angle and shooting environment, the distribution of the drone-photographed dataset is quite different from that of the widely used image dataset, so the effect of pre-training may not be as expected;

[0008] 3. The ability to extract the apparent features of the target is not strong: Since the existing multi-target detection model only detects the location and classification of the target, in fact, even targets of the same classification have many different attributes. For example, there are differences in the apparent features between two different cars, such as: differences in external forms such as shape, contour, and proportion, and the existing model does not pay enough attention to this during training.

[0009] The above problems easily lead to the situation that the model has low detection accuracy for drone aerial photography data. Therefore, it is necessary to improve the existing technology. Summary of the invention

[0010] Therefore, the purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide a method for multi-target detection based on drone aerial video.

[0011] The objective of the present invention is achieved through the following technical solutions:

[0012] According to a first aspect of the present invention, there is provided a method for training a multi-target detection model for unmanned aerial vehicle aerial images, comprising: obtaining a training set, comprising a plurality of training samples constructed based on the aerial images, each training sample comprising a sample image and a corresponding label, wherein the label comprises an indication of a target position, a target category and a target identification number in the corresponding sample image, and the target identification number represents an identity of the target in the training set; using the training set to train a multi-target detection model to detect the target position, the target category and the target identification number, wherein the parameters of the multi-target detection model are updated according to loss values ​​for the target position, the target category and the target identification number calculated based on the detection results and the corresponding labels.

[0013] In some embodiments of the present invention, the multi-target detection model includes a convolution kernel corresponding to the location of the detection target, a convolution kernel corresponding to the category to which the detection target belongs, and a convolution kernel related to the detection target identification number.

[0014] In some embodiments of the present invention, the target location is determined in the multi-target detection model by using detection frames of multiple proportions, wherein the proportions of the detection frames of multiple proportions are obtained by aggregating the proportions of the detection frames indicating the target location in all labels of a training set or a data set corresponding to the training set.

[0015] In some embodiments of the present invention, the multi-target detection model adopts an improved YOLO model, and the improved YOLO model is improved based on the YOLO v1, v2, v3, v4 or v5 model, wherein the improved YOLO model adds a convolution kernel related to the detection target identification number in the prediction layer compared to the original YOLO model.

[0016] In some embodiments of the present invention, the improved YOLO model determines the location of the target through detection frames of multiple proportions, wherein the proportions of the detection frames of multiple proportions are obtained by aggregating the proportions of the detection frames indicating the location of the target in all labels of a training set.

[0017] In some embodiments of the present invention, the improved YOLO model is improved based on the YOLO v3 model, the prediction layer of the improved YOLO v3 model adds a third type of convolution kernel, and the proportions of the 9 types of detection boxes included in the improved YOLO v3 model are obtained by aggregating the proportions of the detection boxes indicating the location of the target in all labels of the training set or the data set corresponding to the training set.

[0018] In some embodiments of the present invention, the training set is obtained through image data enhancement processing, which includes shifting, rotating, color changing, flipping, cropping, splicing or a combination of enhancement processing of the original image to obtain a new image and adding labels corresponding to the new image.

[0019] According to a second aspect of the present invention, a method for multi-target detection based on drone aerial video is provided, comprising: obtaining drone aerial video, and extracting images corresponding to each video frame therein; sequentially inputting the images corresponding to each video frame into a multi-target detection model trained according to the method described in the first aspect, and obtaining target detection results corresponding to consecutive video frames.

[0020] According to a third aspect of the present invention, a multi-target detection and tracking method is provided, comprising: obtaining target detection results corresponding to continuous video frames obtained according to the method described in the second aspect; based on the target detection results corresponding to the continuous video frames, tracking multiple targets in the drone aerial video according to a multi-target tracking algorithm.

[0021] According to a fourth aspect of the present invention, an electronic device is provided, comprising: one or more processors; and a memory, wherein the memory is used to store executable instructions; the one or more processors are configured to implement the steps of the method described in the first aspect, the second aspect and / or the third aspect by executing the executable instructions.

[0022] Compared with the prior art, the advantages of the present invention are:

[0023] The present invention adds an additional indication of the target identification number in the label of the training set, and the target identification number represents the identity of the target in the training set. Therefore, during training, the parameters of the multi-target detection model are updated using the loss values ​​of the target location, the target category, and the target identification number calculated according to the detection results and the corresponding labels to improve the model accuracy of the multi-target detection model. Therefore, the accuracy of multi-target detection and tracking based on the detection results of the multi-target detection model obtained by the training method can also be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The embodiments of the present invention are further described below with reference to the accompanying drawings, in which:

[0025] Figure 1 Schematic diagram of the output of the original YOLO v3 model and the output of the improved YOLO v3 model according to an embodiment of the present invention;

[0026] Figure 2 Schematic diagram of the detection box;

[0027] Figure 3 A schematic diagram showing the differences between different aerial images;

[0028] Figure 4 is a schematic diagram of multiple images after the image of a data set is enhanced according to an embodiment of the present invention;

[0029] Figure 5 The figure is a flow chart of a method for training a multi-target detection model for drone aerial images according to an embodiment of the present invention. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below through specific embodiments in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0031] As mentioned in the background technology section, the existing multi-target detection model only detects the location and classification of the target, but in fact, even the targets of the same classification have many different attributes. For example, there are differences in the appearance characteristics between two different cars, such as: differences in external forms such as shape, outline, and proportion, and the existing model does not pay enough attention to this during training. In order to solve this problem and improve the accuracy of the model, the present invention adds an indication of the target identification number in the label of the training set. The target identification number represents the identity of the target in the training set. Therefore, during training, the parameters of the multi-target detection model are updated using the loss values ​​of the target location, the target category, and the target identification number calculated according to the detection results and the corresponding labels to improve the model accuracy of the multi-target detection model. Therefore, the accuracy of multi-target detection and tracking based on the detection results of the multi-target detection model obtained by the training method can also be improved.

[0032] According to one embodiment of the present invention, the multi-target detection model adopts an improved YOLO model, and the improved YOLO model includes: a backbone layer (Backbone), a neck layer (Neck) and a prediction layer (Prediction), wherein the prediction layer includes: a convolution kernel corresponding to the location of the detection target, a convolution kernel corresponding to the category to which the detection target belongs, and a convolution kernel related to the detection target identification number. The original YOLO model also has a backbone layer (Backbone), a neck layer (Neck) and a prediction layer (Prediction), but its prediction layer contains a convolution kernel corresponding to the location of the detection target, a convolution kernel corresponding to the category to which the detection target belongs, and does not contain a convolution kernel related to the detection target identification number; because its purpose is to detect the location and classification of the target. In order to improve the model's ability to extract apparent features, the present invention adds a convolution kernel related to the detection target identification number. Furthermore, the improved YOLO model can be improved based on the YOLO v1, v2, v3, v4 or v5 model, or any other multi-target detection model to which the technical solution of the present invention can be applied, and the present invention does not impose any limitation on this; the subsequent introduction of the present invention mainly takes the YOLO v3 model as an example to illustrate the technical solution of the present invention.

[0033] According to one embodiment of the present invention, in the prediction layer of the improved YOLO v3 model, the convolution kernels related to the detection target identification number are set in the Conv 3x3 convolution module and the Conv 1x1 convolution module, wherein the scale of the convolution kernel added in each convolution module is determined according to the total number of target identification numbers. For example: if the total number of target identification numbers is 100, the Conv 3x3 convolution module and the Conv 1x1 convolution module of the prediction layer respectively add corresponding convolution kernels so that the number of channels of the output predicted feature map increases by 100, and each added channel corresponds to the corresponding target identification number; it should be understood that this is only for illustration, and in specific applications, the implementer can add corresponding convolution kernels in the prediction layer as needed according to the total number of target identification numbers marked in the adopted data set. Schematically, the detection result of the original YOLOv3 prediction layer input is as follows. Figure 1 As shown in a, there are three scale feature maps (13×13, 26×26, 52×52). For each scale of the three detection boxes, there are corresponding feature maps, which are distinguished by Box1, Box2, and Box3. Taking the feature corresponding to Box2 as an example, it only includes t x ,t y ,t w ,t h 、p 0 、p 1 ,…,p c Among them, t x Indicates the offset of the center of the detection box predicted by the model in direction x, t y Indicates the offset of the center of the detection box predicted by the model in the direction y, t w represents the width scaling factor, t h represents the height scaling factor, p 0 represents the object confidence (i.e., the possibility of the existence of a target at this location), p 1 ,…,p c Indicates the classification score (Class Scores) of 1-c classification. In the improved YOLO v3 model, due to the addition of convolution kernels related to the detection target identification number, in addition to the features output by the original YOLO v3, an additional output P 1 , P 2 ,…,P ID, representing the apparent features of the target, respectively corresponding to the target identification number score of the target identification number 1-ID. Therefore, this embodiment uses the improved YOLO v3 model to implement a multi-target detection model including a convolution kernel corresponding to the location of the detection target, a convolution kernel corresponding to the category to which the detection target belongs, and a convolution kernel related to the detection target identification number. The technical solution of this embodiment can at least achieve the following beneficial technical effects: the present invention sets a convolution kernel related to the detection target identification number in the model to use the external feature distinction of targets with different target identification numbers to train the model's ability to recognize the apparent features of the target, thereby improving the accuracy of the model.

[0034] Furthermore, the original detection frame ratio of the multi-target detection model is not well suited for target recognition in aerial images. In order to enable the model to better detect aerial targets, according to an embodiment of the present invention, the multi-target detection model uses detection frames of multiple ratios to determine the target location, wherein the ratios of the detection frames of multiple ratios are obtained by aggregating the ratios of the detection frames indicating the target location in all labels of the training set. The detection frame is shown in the figure below. Figure 2As shown, according to one embodiment of the present invention, the improved YOLO v3 model can adopt the ratio of the detection frame of the original YOLO v3 model. Or, optionally, the ratio of the detection frames of the 9 ratios contained in the improved YOLO v3 model is obtained by aggregating the ratios of the detection frames indicating the location of the target in all labels of the training set or the data set corresponding to the training set. The training set is a subset of the data set. For example, the implementer can set the data set to be divided into a training set and a validation set, training set: validation set = 8:2. It should be understood that how to divide the training set and the validation set (or divide it into a training set, a validation set, and a test set) can be set according to the needs of the implementer, and the present invention does not impose any restrictions on this. The data set can adopt the corresponding aerial image data set, and clustering can be implemented using the corresponding clustering algorithm. For example, assuming that the VisDrone2019 dataset is used and clustering is performed using the K-means clustering algorithm, the number of clusters is set to 9, and nine detection frames of different proportions are obtained, namely (6,10), (6,14), (9,18), (19,8), (24,10), (12,25), (17,34), (30,27), and (50,18). Compared with the original YOLO v3 model, the detection frame replacement ratios corresponding to the smallest-scale feature map (the feature map with a size of 1 / 32 of the input image) in the prediction layer of the improved YOLO v3 model are the detection frames of (6,10), (6,14), and (9,18) obtained by clustering, the detection frame replacement ratios corresponding to the feature map of the intermediate scale (the feature map with a size of 1 / 16 of the input image) are the detection frames of (19,8), (24,10), and (12,25) obtained by clustering, and the detection frame of the largest-scale feature map (the feature map with a size of 1 / 8 of the input image) is replaced by the detection frame of The corresponding detection frame replacement ratios are the detection frames of (17, 34), (30, 27), and (50, 18) obtained by clustering. The technical solution of this embodiment can at least achieve the following beneficial technical effects: Since the aspect ratio of objects in aerial videos is different from that of ordinary data sets, objects in aerial videos have relatively specific aspect ratios. Therefore, the present invention can cluster the target detection frames (Anchors) indicating the location of the target in the labels of the training set or data set, and use the default detection frame ratio obtained by clustering to replace the fixed ratio in the original model (such as the YOLO v3 model) to better detect the aerial target. It should be understood that the number of clusters and the distribution method of the clustered detection frames here are only schematic. For the actual situation of the detection frames set in different models, the number of clusters and the distribution method of the clustered detection frames can be adjusted according to the needs of the implementer, and the present invention does not impose any restrictions on this.

[0035] According to one embodiment of the present invention, the data set used in the present invention is an aerial image data set (for example, based on the VisDrone2019 data set). However, since the labels of the existing aerial image data sets do not indicate the target identification number. Therefore, the indication of the target identification number can be added to the label of the existing aerial image data set (for example, the indication of the target identification number can be added to the label of the VisDrone2019 data set); or, the implementer can also shoot the aerial image data and then make a self-made aerial image data set, so that the aerial image data set includes a plurality of training samples constructed based on the aerial image, each training sample includes a sample image and a corresponding label, wherein the label includes an indication of the location of the target in the corresponding sample image, the category to which the target belongs, and the target identification number, and the target identification number represents the identity of the target in the training set. For example, a video or image of the ground is taken with a camera of a drone, and the image frame or image in the video is used as a sample image, and then the labeling software is used to annotate based on the sample image. It should be understood that the sample image in each training sample of the present invention may have one or more corresponding labels to indicate the location of the target, the category to which the target belongs, and the target identification number corresponding to one or more targets in the sample image.

[0036] like Figure 3 a. Figure 3 b. Figure 3 c. Figure 3d, the data attributes in different videos or images vary greatly, such as brightness, color, etc. Further, in order to improve the accuracy of the model, according to an embodiment of the present invention, the training set or the data set corresponding to the training set is obtained by image data enhancement processing, which includes shifting, rotating, changing colors, flipping, cropping, splicing or a combination of the original image to obtain a new image and adding a label corresponding to the new image. According to an embodiment of the present invention, the enhancement processing method corresponding to the shift includes, for example, changing the position of a part of the original image; or, the enhancement processing method corresponding to the shift includes, for example, scaling the original image or placing a part of the original image in a new solid color background (such as a gray background), and the target pixel position after the shift is offset from the target pixel position in the original image. According to an embodiment of the present invention, the enhancement processing method corresponding to the angle rotation includes, for example, rotating the original image according to a preset angle, such as rotating 10°, 30°, 45°, 60° or a combination thereof. According to an embodiment of the present invention, the enhancement processing method corresponding to the color transformation includes, for example, converting an image in RGB space into an image in HSV color space. According to one embodiment of the present invention, the enhancement processing method corresponding to flipping includes, for example, flipping the original image left to right and / or up to down. According to one embodiment of the present invention, the enhancement processing method corresponding to cropping includes, for example, cropping a part of the original image. According to one embodiment of the present invention, the enhancement processing method corresponding to splicing includes, for example, splicing a part of the original one or more images or the whole area into a new image. It should be understood that the above enhancement processing methods are only for illustration, and the implementer can improve or combine them according to the specific situation, and the present invention does not impose any restrictions on this. Some sample images after enhancement processing are shown in FIG. Figure 4 a. Figure 4 b. Figure 4 c. Figure 4 d. Figure 4 e. Figure 4 f. Figure 4 g. Figure 4 h.

[0037] According to one embodiment of the present invention, Figure 5As shown, a training method for a multi-target detection model for drone aerial images is provided, including: obtaining a training set, which includes multiple training samples constructed from images extracted from aerial videos, each training sample includes a sample image and a corresponding label, wherein the label includes an indication of the location of the target in the corresponding sample image, the category to which the target belongs, and the target identification number, and the target identification number represents the identity of the target in the training set; using the training set to train the multi-target detection model to detect the location of the target, the category to which the target belongs, and the target identification number, and updating the parameters of the multi-target detection model according to the loss value of the location of the target, the category to which the target belongs, and the target identification number calculated according to the detection result and the corresponding label. According to one embodiment of the present invention, the total loss is determined according to the loss value of the location of the target, the category to which the target belongs, and the target identification number calculated according to the detection result and the corresponding label, and the parameters of the multi-target detection model are updated by back propagation after the gradient is calculated according to the total loss. The total loss is the weighted sum of the loss value of the location of the target, the loss value of the category to which the target belongs, and the loss value of the target identification number. The loss value of the target identification number can be a cross entropy loss. For example, the calculation method of the loss value for the category to which the target belongs in the prior art can be referred to. It should be understood that the present invention updates the parameters of the multi-target detection model according to the loss values ​​of the target location, the target category and the target identification number calculated according to the detection results and the corresponding labels, which means that the parameters of the multi-target detection model are updated at least according to the loss values ​​of the target location, the target category and the target identification number calculated according to the detection results and the corresponding labels. In some cases or models, other loss values ​​may be added in addition to these three losses, such as the object confidence loss value (such as in the YOLO v3 model), and the present invention does not impose any restrictions on this.

[0038] According to one embodiment of the present invention, the multi-target detection model adopts an improved YOLO v3 model, and the improved YOLO v3 model is trained using the enhanced training set. Preferably, during training, the total loss is calculated as follows: L = (1-λ) L yolov3 +λL emb , where L yolov3 represents the original loss of the YOLO v3 model, L emb represents the loss value of the target identification number, λ represents L emb It should be understood that the model is trained in batches using the data in the training set. In a batch, the total loss is equal to the sum of the losses of all sample images in this batch of data. Moreover, in each sample image, the loss is calculated separately for different detection boxes, and then the loss of the sample image is summed up. Schematically, the loss value L of the target identification number of a detection box is emb It is calculated as follows:

[0039]

[0040] Where crossentropy(·) represents the cross entropy loss, exp(·) represents the exponential function, embedding represents the feature vector corresponding to the target identification number, whose total length is ID, embedding[Id] represents the Id-th component in the feature vector corresponding to the target identification number, embedding[id] represents the feature vector of a target identification number iterated to, and ID represents the total number of target identification numbers.

[0041] According to one embodiment of the present invention, the multi-target detection model may be trained directly using a training set whose labels include the location of the target in the corresponding sample image, the category to which the target belongs, and the target identification number instead of using the enhanced training set for training.

[0042] According to one embodiment of the present invention, before training the multi-target detection model, the parameters of the model can be randomly initialized; or, before training the multi-target detection model, the parameters of the model can adopt parameters pre-trained with other data sets (such as aerial image data sets that have not been enhanced and have not had target identification numbers added), and then fine-tune the training set using labels including the location of the target in the corresponding sample image, the category to which the target belongs, and the target identification number through transfer learning.

[0043] According to one embodiment of the present invention, a method for multi-target detection based on drone aerial video is provided, which is characterized by comprising: acquiring drone aerial video, and extracting images corresponding to each video frame therein; sequentially inputting the images corresponding to each video frame into a multi-target detection model obtained by the training method of the multi-target detection model for drone aerial images described in the aforementioned embodiment, to obtain target detection results corresponding to consecutive video frames.

[0044] According to one embodiment of the present invention, a multi-target detection and tracking method based on drone aerial video is provided, including: obtaining drone aerial video, extracting images corresponding to each video frame therein; sequentially inputting the images corresponding to each video frame into a multi-target detection model trained according to the method described in the aforementioned embodiment to obtain detection results; based on the detection results corresponding to continuous video frames, tracking multiple targets in the drone aerial video according to a multi-target tracking algorithm. Preferably, the multi-target tracking algorithm can utilize any existing or future multi-target tracking algorithm. For example, a target tracking algorithm with a Kalman filter algorithm for target trajectory prediction and a Hungarian algorithm for target matching is utilized.

[0045] In order to verify the effect of the present invention, the inventors conducted experiments with the improved YOLO v3 model, added an indication of the target identification number to the label of the dataset VisDrone2019, and enhanced the dataset for training the improved YOLO v3 model. The experimental results show that the trained improved YOLO v3 model has an average detection accuracy index mAP of about 7.4% in all categories, and the tracking speed is about 75% faster than the DeepSort model. In addition, if the clustered detection box is used to replace the detection box of the original YOLO v3 model, the average precision rate can be increased by about 38%.

[0046] It should be noted that although the above describes the various steps in a specific order, it does not mean that the various steps must be executed in the above specific order. In fact, some of these steps can be executed concurrently or even in a different order as long as the required functions can be achieved.

[0047] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.

[0048] Computer readable storage medium can be a tangible device that holds and stores instructions used by an instruction execution device. Computer readable storage medium can include, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a protruding structure in a groove on which instructions are stored, and any suitable combination thereof.

[0049] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A training method for a multi-target detection model for drone aerial images, characterized in that: include: Obtaining a training set, which includes a plurality of training samples constructed based on aerial images, each training sample includes a sample image and a corresponding label, wherein the label includes an indication of a location of a target in the corresponding sample image, a category to which the target belongs, and a target identification number, wherein the target identification number indicates an identity of the target in the training set; A multi-target detection model is trained using a training set to detect the target location, the target category and the target identification number, wherein the total loss is determined by calculating the loss value of the target location, the target category and the target identification number based on the detection result and the corresponding label, and the gradient is calculated based on the total loss and then the parameters of the multi-target detection model are updated by back propagation. The multi-target detection model adopts an improved YOLO model. Compared with the original YOLO model, the improved YOLO model adds a convolution kernel related to the detection target identification number in the prediction layer.

2. The method according to claim 1, characterized in that The multi-target detection model includes a convolution kernel corresponding to the location of the detection target, a convolution kernel corresponding to the category to which the detection target belongs, and a convolution kernel related to the detection target identification number.

3. The method according to claim 2, characterized in that In the multi-target detection model, the target location is determined by detection frames of multiple proportions, wherein the proportions of the detection frames of multiple proportions are obtained by aggregating the proportions of the detection frames indicating the target location in all labels of a training set or a data set corresponding to the training set.

4. The method according to claim 2, characterized in that: The improved YOLO model is improved based on the YOLO v1, v2, v3, v4 or v5 model.

5. The method according to claim 4, characterized in that In the improved YOLO model, the target location is determined by detection frames of multiple proportions, wherein the proportions of the detection frames of multiple proportions are aggregated according to the proportions of the detection frames indicating the target location in all labels of the training set.

6. The method according to claim 4, characterized in that The improved YOLO model is improved based on the YOLO v3 model. The prediction layer of the improved YOLO v3 model adds a third type of convolution kernel, and the proportions of the 9 proportions of the detection frames included in the improved YOLO v3 model are obtained by aggregating the proportions of the detection frames indicating the target locations in all labels of the training set or the data set corresponding to the training set.

7. The method according to any one of claims 1 to 6, characterized in that: The training set is obtained through image data enhancement processing, which includes shifting, rotating, color changing, flipping, cropping, splicing or a combination of enhancement processing on the original image to obtain a new image and adding a label corresponding to the new image.

8. A method for multi-target detection based on drone aerial video, characterized in that: include: Obtain drone aerial video and extract the image corresponding to each video frame; The images corresponding to each video frame are sequentially input into the multi-target detection model trained by the method according to any one of claims 1 to 7 to obtain target detection results corresponding to continuous video frames.

9. A multi-target detection and tracking method, characterized in that: include: Obtain target detection results corresponding to consecutive video frames obtained according to the method of claim 8; Based on the target detection results corresponding to continuous video frames, multiple targets in the UAV aerial video are tracked according to the multi-target tracking algorithm.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program can be executed by a processor to implement the steps of the method according to any one of claims 1 to 9.

11. An electronic device, characterized in that: include: one or more processors; as well as A memory, wherein the memory is used to store executable instructions; The one or more processors are configured to implement the steps of the method of any one of claims 1-9 by executing the executable instructions.

Citation Information

Patent Citations

  • Multi-label object detection method, system and device based on target detection network

    CN109858569A

  • Multi-vehicle target identification method based on improved YOLOv2 model

    CN112270252A

  • Unmanned aerial vehicle aerial image target detection method based on improved YOLO V5

    CN113807464A

  • Method, system and device for multi-label object detection based on an object detection network

    US20210224609A1