Aerial photography personnel detection method based on lightweight distillation network

Through the aerial photography personnel detection method based on lightweight distillation network, combined with the teacher-assisted distillation detection network and robust detection module, the problem of low detection accuracy and efficiency of small targets in aerial photography data is solved, and high-precision and high-efficiency detection results are achieved. .

CN118587619AActive Publication Date: 2024-09-03NORTHWESTERN POLYTECHNICAL UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410735949.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-03
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

Existing aerial personnel detection methods have low accuracy and low efficiency in detecting small targets in high-resolution aerial images. Especially in search and rescue scenarios, the detection accuracy and efficiency of the detector are reduced due to unclear target features and background occlusion.

Method used

A detection method based on lightweight distillation network is adopted, through the combination of teacher-assisted distillation detection network and robust detection module, a low-precision quantization module is used to convert floating point numbers into integers, reducing computational complexity, and filtering the final detection results through IoU values. , improve detection accuracy and efficiency.

Benefits of technology

It achieves high accuracy and efficiency in detecting small target persons in aerial photography data. By reducing model parameters and computational complexity, detection accuracy and efficiency are improved, and detection results with high accuracy are effectively screened out.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587619A
    Figure CN118587619A
Patent Text Reader

Abstract

The invention relates to an aerial photography personnel detection method based on a lightweight distillation network. The aerial photography personnel detection method comprises the following steps: firstly, inputting collected aerial photography data containing personnel targets into a trained response-based teacher-assisted distillation detection network containing a plurality of low-precision quantification modules; inputting a first detection result of the personnel target output by the teacher-assisted distillation detection network into a robustness detection module to obtain a second detection result; and respectively calculating the IoU of the first detection result and the second detection result with a previous frame label, if the IoU of the first detection result and the previous frame label is greater than the IoU of the second detection result and the previous frame label, taking the first detection result as a final detection result, otherwise, taking the second detection result as the final detection result. According to the method, the personnel target is detected by adopting the lightweight network model, so that the parameters of the network model are reduced, the floating point operation times of the network model are reduced, and the method has relatively high detection precision and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of small target detection, and in particular to an aerial photography personnel detection method based on a lightweight distillation network. Background Art

[0002] Aerial Person Detection (APD) is crucial for information acquisition and search and rescue (SaR) missions, which aims to detect the exact location of people from images captured by unmanned aerial vehicles (UAVs) and the like. In order to effectively detect people, various detection methods have been developed in the prior art, including online detection methods based on deep learning, people detection methods in aerial images, and lightweight detection methods using model acceleration, aiming to improve the accuracy and computational efficiency of the detection system. However, due to the unique features of high-resolution aerial images, such as a wide field of view, significant angle changes, and target pixels smaller than 20x20, these unique features result in low detection accuracy and low detection efficiency for aerial person targets belonging to the small target class.

[0003] With the rise of deep convolutional neural networks, visual target detection methods have made unprecedented progress, which can improve the accuracy and efficiency of target detection in natural images. However, most visual target detection methods are developed for medium and large targets in natural images. In terms of detecting people who are small targets in aerial data, the feature information of human targets in search and rescue scenes is not obvious and is easily blocked by the background, resulting in the detector being unable to effectively detect and find human targets, and the detection accuracy and efficiency of the detector are reduced. Summary of the invention

[0004] Based on this, it is necessary to provide an aerial photography personnel detection method based on a lightweight distillation network to address the above technical problems. A lightweight network model is used to detect personnel targets, which reduces the parameters of the network model and the number of floating-point operations of the network model, and has higher detection accuracy and efficiency.

[0005] The present invention provides an aerial photography personnel detection method based on a lightweight distillation network, comprising:

[0006] The collected aerial data containing human targets is input into a trained response-based teacher-assisted distillation detection network containing multiple low-precision quantization modules;

[0007] Inputting the first detection result of the person target output by the teacher-assisted distillation detection network into the robustness detection module to obtain a second detection result;

[0008] Calculate the IoU between the first detection result and the second detection result and the previous frame label respectively. If the IoU between the first detection result and the previous frame label is greater than the IoU between the second detection result and the previous frame label, take the first detection result as the final detection result; otherwise, take the second detection result as the final detection result.

[0009] Among them, the teacher-assisted distillation detection network includes parallel teacher modules and student modules. Each network layer of the teacher module and the student module is connected to a low-precision quantization module. The low-precision quantization module is used to convert the 32-bit floating-point numbers output by each network layer into 8-bit integers.

[0010] In one embodiment, the teacher module or the student module is one of Yolov5s, Yolov5m, Yolov5l, and Yolov5x.

[0011] In one of the embodiments, the low-precision quantization module uses a tree structure dynamically constructed by a binary tree to convert floating-point numbers into integers.

[0012] In one embodiment, the robustness detection module is a plug-and-play tracking network.

[0013] In one embodiment, the total loss of the teacher-assisted distillation detection network is

[0014] L Total =L cls +L obj +L bbox +L KD (1)

[0015] Where, L cLs represents the classification loss, L obj represents the confidence loss, L bbox represents the bounding box regression loss, L KD represents the response-based distillation loss.

[0016] In one embodiment, the distillation loss based on the response is

[0017] L KD =αL soft +βL hard (2)

[0018] Where, L soft represents the indicator to measure the consistency between the soft labels generated by the teacher module and the student module, L hard Represents a metric that measures the consistency between the student module prediction and the previous frame label.

[0019] In one embodiment, the aerial photography data is a plurality of picture sequences or videos.

[0020] In one of the embodiments, the first detection result and the second detection result both include detection confidence, coordinate information and classification results.

[0021] Beneficial effects of the present invention:

[0022] (1) Each network layer of the teacher module and the student module of the present invention includes a low-precision quantization module. The low-precision quantization module can convert the 32-bit floating-point number output by each network layer into an 8-bit integer, which can effectively accelerate the inference speed and improve the detection efficiency.

[0023] (2) The teacher-assisted distillation detection network enables the student module to learn and transfer logical reasoning capabilities similar to those of the teacher module, which can effectively reduce the computational complexity of the model and improve detection efficiency.

[0024] (3) The larger the IoU value, the closer the detection result is to the true value. The voting mechanism is used to take the detection result with a large IoU value as the final detection result, which can screen out the detection result with high accuracy and improve the accuracy of the final detection result. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 is a flow chart of a method for detecting personnel in aerial photography based on a lightweight distillation network provided in an embodiment of the present invention;

[0026] Figure 2 It is one of the structural diagrams of the teacher-assisted distillation detection network provided in this embodiment;

[0027] Figure 3 It is a structural schematic diagram of a low-precision quantization module provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. 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.

[0029] In one embodiment, Figure 1 As shown, Figure 1 This is one of the flow charts of the method for detecting personnel in aerial photography based on a lightweight distillation network provided by an embodiment of the present invention. The method is applied to a computer device, and includes the following steps:

[0030] S101, inputting the collected aerial photography data containing human targets into a trained response-based teacher-assisted distillation detection network containing multiple low-precision quantization modules.

[0031] Specifically, the aerial photography data is a plurality of picture sequences or videos, which are multi-frame data and can be taken by a device such as a drone.

[0032] like Figure 2 As shown, Figure 2 This is one of the structural diagrams of the teacher-assisted distillation detection network provided in this embodiment. The teacher-assisted distillation detection network in this embodiment includes a parallel teacher module and a student module, and both the teacher module and the student module are Yolov5 structures. The upper network represents the teacher module, and the lower module represents the student network. P3-P7 obtains rich feature information of the object from the trunk and neck parts, and transfers knowledge from the teacher module to the student module.

[0033] The teacher-assisted distillation detection network endows the student module with the ability to learn and transfer logical reasoning similar to that of the teacher module, which can effectively reduce the computational complexity of the model and improve detection efficiency.

[0034] In this embodiment, each network layer of the teacher module and the student module is connected to a low-precision quantization module. The low-precision quantization module is used to convert the 32-bit floating point number output by each network layer into an 8-bit integer, which can effectively accelerate the inference speed of the teacher-assisted distillation detection network.

[0035] S102: Input the first detection result of the person target output by the teacher-assisted distillation detection network into the robustness detection module to obtain a second detection result. Both the first detection result and the second detection result include detection confidence, coordinate information and classification results.

[0036] S103, respectively calculating the IoU between the first detection result and the second detection result and the previous frame label, if the IoU between the first detection result and the previous frame label is greater than the IoU between the second detection result and the previous frame label, the first detection result is used as the final detection result, otherwise the second detection result is used as the final detection result.

[0037] It should be noted that the previous frame label is composed of the detection confidence, coordinate information and classification results generated by the previous frame.

[0038] In this step, the final prediction result of the first frame of the aerial photography data takes the second detection result output by the robustness detection module as the final detection result.

[0039] Specifically, the previous frame label is manually annotated. The larger the IoU value, the closer the detection result is to the true value and the higher the detection accuracy. Comparing the first detection result and the second detection result with the IoU of the previous frame label to determine the total detection result is a voting mechanism. This mechanism can screen out detection results with high accuracy and improve the accuracy of the final detection result.

[0040] In one embodiment, the teacher module or the student module is one of Yolov5s, Yolov5m, Yolov5l, and Yolov5x. The training data is divided into a training set, a validation set, and a test set. The relevant parameters used in the training, such as learning rate, batch size, optimizer, loss function, etc., are consistent with the Yolov5 framework. The training is carried out in an iterative manner, and the model and parameters can be adjusted in time according to the performance of the validation set to achieve better results. Finally, the test set is used to evaluate the performance of the trained model, including accuracy, recall, precision, etc.

[0041] In this embodiment, the overall network training including the teacher-assisted distillation detection network and the robustness detection module can be performed on a computer running the Ubuntu 22.04.1LTS (64-bit) operating system, which is equipped with an Intel Core i9-13900KF processor (6 cores, 32GB memory, and a clock speed of 5.80GHz). The GPU server also assists an NVIDIA GeForce RTX 4090 GPU with 24GB memory.

[0042] The dataset used for training preferably contains aerial photography data of a series of diverse scenes, including but not limited to urban areas, oceans, coasts, and jungles.

[0043] During the training process, the stochastic gradient descent (SGD) optimizer was used for 100 epochs, with momentum set to 0.9 and weight decay set to 0.0001. The initial learning rate was 0.01 and decayed at the 10th epoch.

[0044] Furthermore, this embodiment selects some training accuracy indicators, including Precision, Recall, mAP@0.5 and mAP@0.95, and some inference speed indicators, including parameters, GFLOPs, Latency and FPS as evaluation criteria. Among them, Precision measures the ratio between correctly detected objects and total detected objects. Recall measures the ratio between correctly detected objects and total actual objects. mAP@0.5 represents the average accuracy when the IoU threshold is greater than 0.5. mAP@0.95 represents the average accuracy with a step size of 0.05 between the IoU thresholds from 0.5 to 0.95. Parameters correspond to the number of trainable parameters in the network, usually including weights (W) and biases (b). GFLOPs represents the number of floating-point operations in the network.

[0045] In one embodiment, the low-precision quantization module uses a tree structure dynamically constructed by a binary tree to convert floating point numbers to integers. Figure 3 As shown, Figure 3It is a structural schematic diagram of a low-precision quantization module provided by an embodiment of the present invention.

[0046] By setting upper (u) and lower (l) thresholds for the quantization grid, truncation error and rounding error (zp x ), truncation errors often occur when data are truncated to fit within predefined grid boundaries, resulting in loss of information and reduced accuracy of the resulting quantized representation. In contrast, rounding errors arise from inherent inaccuracies introduced during the rounding process.

[0047] Specifically, the quantizer Q(x|b) of the low-precision quantization module in this embodiment is defined as:

[0048]

[0049] It is a function that maps a floating point number x∈R to the nearest quantization interval. The calculation process introduces quantization parameters (scaling, s x ) and (zero point, zp x ). The calculation formula is as follows:

[0050]

[0051] Where b represents the quantization bit width. The symbols u (upper bound) and l (lower bound) are used to specify the limits of the quantization grid.

[0052] The method of converting floating point numbers to integers using a tree structure dynamically constructed by a binary tree can improve absolute and relative errors, and quantize the weights and biases of the backbone network, neck network, and head network in the teacher module or student module. By selectively quantizing non-uniformly distributed parameters and isolating outliers (usually represented by maximum and minimum values), information loss is minimized during activation quantization, thereby ensuring accurate target detection results for the teacher-assisted distillation detection network.

[0053] Specifically, floating-point data is divided into four components: a dynamic exponent and a mantissa, such as Figure 3 As shown, the binary tree dynamic tree quantization module is used for processing. The sign bit is assigned to the first bit, and the number of bits that follow, which is variable, indicates the size of the exponent. By default, the fourth bit is set to 1, and the remaining bits are processed by linear quantization. High-precision floating-point values ​​are successfully quantized to 8-bit integers by continuously shifting the block indicator bits. All tensors are normalized to the range of [-1,1]. The quantizer is applied to each weight part of the convolutional layer of the teacher module and the student module separately to ensure reasonable truncation of the floating-point bits, and the quantizer is also applied to the activation layer to make the output weight / bias tail as low as possible.

[0054] The method of converting floating-point numbers to integers using a tree structure dynamically constructed using a binary tree can map the floating-point values ​​of weights and activation functions to a dynamically adjusted range, thereby effectively reducing the computational complexity of the teacher-assisted distillation detection network.

[0055] In one embodiment, the robustness detection module is a plug-and-play tracking network, such as DeepSort, Sort, and ByteTrack.

[0056] The pluggable tracking module can use the target motion information of each frame sequence of aerial photography data to estimate the potential position of the target, and continuously update the position and feature information of the object in each frame of data, that is, the detection confidence of the robust detection module, the coordinate information of the target detection personnel and the classification result.

[0057] In one embodiment, the total loss of the teacher-assisted distillation detection network is

[0058] L Total =L cls +L obj +L bbox +L KD (1)

[0059] Where, L cLs represents the classification loss, L obj represents the confidence loss, L bbox represents the bounding box regression loss, L KD represents the response-based distillation loss.

[0060] Specifically, the classification loss (L cLs ) is calculated using the binary cross entropy function, defined as follows:

[0061]

[0062] In the formula, y represents the label of the input sample, a y value of 1 represents a positive sample, and a y value of 0 represents a negative sample. In addition, p represents the predicted probability that the model classifies the input sample as a positive sample.

[0063] Confidence loss (L obj ) is calculated using a binary cross entropy function and includes weight coefficients based on the detection layer scale. The confidence loss is calculated in the same way as the classification loss. These coefficients are assigned from large to small based on the detection layer scale, with default values ​​of 4.0, 1.0, and 0.4. Therefore, small objects will receive higher weight coefficients in the loss on multi-scale feature maps, emphasizing the training focus on small objects.

[0064] Bounding box regression loss (L bbox) handles the difference between the predicted bounding box and the true value. CloU also takes into account other factors such as aspect ratio. The specific calculation formula is as follows:

[0065]

[0066] Where B = (x, y, w, h) represents the bounding box predicted by the teacher-assisted distillation detection network, and B gt =(x gt ,y gt , w gt ,h gt ) represents the target box, and the parameter v represents the normalized difference in aspect ratio between the predicted value and the true value. The parameter α ranges from 0 to π / 4 and is then multiplied by π / 4 to ensure that it falls within the range of 0 to 1. In addition, the parameter α acts as a balancing factor to weigh the relationship between the following losses: the aspect ratio difference and the loss caused by the intersection over union (IoU).

[0067] In one embodiment, the distillation loss based on the response is

[0068] L KD =αL soft +βL hard (2)

[0069] Where α and β are soft thresholds according to the training stages of different depth models.

[0070] L soft It represents the indicator to measure the consistency between the soft labels generated by the teacher module and the student module, which can be expressed as:

[0071]

[0072] Among them, v i and v k is the teacher's logits, z i and z k L is the student's logits and N is the number of input instances. hard represents an indicator to measure the consistency between the student module prediction and the previous frame label, which can be expressed as:

[0073]

[0074] Here, c j represents the previous frame label of instance j, where c j ∈0,1 (positive label is 1, negative label is 0), z j are the logits of the student.

[0075] In the method for detecting aerial photography personnel based on a lightweight distillation network of the present invention, the student model in the teacher-assisted distillation detection network can learn and transfer logical reasoning capabilities similar to the teacher model, which can effectively reduce the computational complexity of the teacher-assisted distillation detection network and achieve lightweight computing. In addition, the low-precision quantization module maps data to a dynamically constructed tree structure, and uses 8-bit integers to represent 32-bit floating-point numbers, which can effectively accelerate the inference speed. Finally, by constructing a robust detection module module, it is possible to utilize the position and motion information of objects in continuous frames. The present invention can effectively improve the accuracy of personnel positions.

[0076] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the attached claims.

Claims

1. A method for detecting people in aerial photography based on a lightweight distillation network, characterized in that: include: The collected aerial data containing human targets is input into a trained response-based teacher-assisted distillation detection network containing multiple low-precision quantization modules; Inputting the first detection result of the person target output by the teacher-assisted distillation detection network into the robustness detection module to obtain a second detection result; Calculate the IoU between the first detection result and the second detection result and the previous frame label respectively. If the IoU between the first detection result and the previous frame label is greater than the IoU between the second detection result and the previous frame label, take the first detection result as the final detection result; otherwise, take the second detection result as the final detection result. Among them, the teacher-assisted distillation detection network includes parallel teacher modules and student modules, and each network layer of the teacher module and the student module is connected to a low-precision quantization module, and the low-precision quantization module is used to convert the 32-bit floating-point number output by each network layer into an 8-bit integer.

2. The method for detecting people in aerial photography based on a lightweight distillation network according to claim 1, characterized in that: The teacher module or student module is one of Yolov5s, Yolov5m, Yolov5l, and Yolov5x.

3. The method for detecting people in aerial photography based on a lightweight distillation network according to claim 2, characterized in that: The low-precision quantization module uses a tree structure dynamically constructed by a binary tree to convert floating-point numbers into integers.

4. The method for detecting people in aerial photography based on a lightweight distillation network according to claim 1, characterized in that: The robustness detection module is a plug-and-play tracking network.

5. The method for detecting people in aerial photography based on a lightweight distillation network according to claim 2, characterized in that: The total loss of the teacher-assisted distillation detection network is L Total =L cls +L obj +L bbox +L KD (1) Where, L cLs represents the classification loss, L obj represents the confidence loss, L bbox represents the bounding box regression loss, L KD represents the response-based distillation loss.

6. The method for detecting people in aerial photography based on a lightweight distillation network according to claim 5, characterized in that: The response-based distillation loss is L KD =αL soft +βL hard (2) Where, L soft represents the indicator to measure the consistency between the soft labels generated by the teacher module and the student module, L hard Represents a metric that measures the consistency between the student module prediction and the previous frame label.

7. The method for detecting people in aerial photography based on a lightweight distillation network according to claim 1, characterized in that: The aerial photography data is a plurality of picture sequences or videos.

8. The method for detecting people in aerial photography based on a lightweight distillation network according to claim 1, characterized in that: The first detection result and the second detection result both include detection confidence, coordinate information and classification results.

Citation Information

Patent Citations

  • Construction method of target detection model for driving scene and related device

    CN116311169A

  • Aerial image target detection method based on category mask distillation

    CN116486285A

  • Underwater target identification method based on quantitative distillation

    CN116524341A