Low-resolution small target detection method and system based on improved YOLO model

By improving the YOLO model, using CSHM and AIoU calculation methods, combined with the IEDH structure, the accuracy and real-time problems in low-resolution small target detection are solved, and efficient recognition and detection in complex scenes are achieved.

CN118736205AActive Publication Date: 2024-10-01NANJING UNIV OF POSTS & TELECOMM
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411028539.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-10-01
Estimated Expiration
2044-07-30

AI Technical Summary

Technical Problem

The existing technology has problems with low detection accuracy and low detection frame rate in low-resolution small target detection, especially in complex scenes where it is difficult to effectively identify and detect in real time.

Method used

The improved YOLO model is used to improve detection accuracy and real-time performance by constructing a channel space hybrid feature highlighting module (CSHM) and an adaptive intersection-over-union ratio calculation method (AIoU), combined with the implicit efficient decoupling head structure (IEDH).

Benefits of technology

It effectively improves the recognition accuracy and detection speed of low-resolution small targets, reduces false detections and missed detections, and meets the needs of real-time detection in complex scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736205A_ABST
    Figure CN118736205A_ABST
Patent Text Reader

Abstract

The invention discloses a low-resolution small target detection method and system based on an improved YOLO model. The method comprises the steps of collecting low-resolution small target images and constructing a data set; a channel space mixed feature highlighting module CSHM is constructed by using the low-resolution characteristic of a data set image, and a channel space mixed feature enhancement module is applied to the joint of a backbone network and a neck network of YOLOv7tiny; a self-adaptive intersection-to-parallel ratio calculation method AIOU is further proposed according to small target characteristics in the image, an implicit efficient decoupling head structure IEDH is constructed, the AIOU is used as the intersection-to-parallel ratio calculation method in YOLOv7tin, and the IEDH is used for decoupling an output feature map of the AIOU; and finally, inputting the low-resolution small target image into the improved network to obtain a low-resolution small target detection result. According to the invention, low-resolution small targets can be detected in real time with high precision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of target detection and recognition of computer vision, and in particular relates to a low-resolution small target detection method and system based on an improved YOLO model. Background Art

[0002] In recent years, target detection has played an important role in industrial vision, video surveillance, military reconnaissance and other fields. However, in the target detection task, low-resolution small target detection has always been a severe challenge. Compared with normal-sized targets, low-resolution small targets lack sufficient appearance information and are difficult to separate from the background and similar areas. In addition, real scenes are extremely complex, and there are usually problems such as high target density, large-area target overlap, illumination changes, and target scale changes. These factors have a more severe impact on low-resolution small targets, which will cause a large number of false detections and missed detections in practical applications.

[0003] In order to avoid false detection and missed detection of low-resolution small objects in complex scenes, low-resolution small object detection based on computer vision has attracted people's attention. Most of the detection of low-resolution small objects uses various convolutional neural networks, such as a lightweight small object detection method based on improved SSD, a small object detection method based on SRCNN and SSD networks, etc. They all use large-scale networks to extract features of low-resolution small objects, but this not only wastes too much computing resources, is not suitable for scenes with simple equipment, but also only improves the detection accuracy to a small extent.

[0004] Later, scholars realized that the underlying features and attention mechanisms are also crucial for the recognition of low-resolution small targets during feature extraction. Therefore, feature fusion and attention mechanisms were added to the original convolutional neural network, such as a method for small target detection in aerial images based on feature fusion and upsampling, and research on low-resolution image target detection technology based on attention mechanism. They focused on the fusion of underlying features and high-level features and the processing of feature maps by the attention mechanism, which not only alleviated the problem that the underlying features are easy to disappear in deep networks, but also alleviated the problem of gradient disappearance, and reconstructed the feature weights of the detected target and background information, reducing the convergence time of the neural network and improving the efficiency of the neural network.

[0005] In recent years, various low-resolution small target detection methods based on YOLO and other network-based methods have emerged, and have achieved good results in terms of detection accuracy and speed for general small targets. However, when applied to low-resolution small target scenes or complex background application scenes, existing problems have been exposed one after another, such as too many misjudgments, low frame rates, difficulty in detecting small targets, and partial frame loss. Therefore, a method that can detect low-resolution small targets in real time is needed. Summary of the invention

[0006] Technical problem to be solved by the present invention: In order to overcome the shortcomings of the prior art, the detection accuracy and detection frame rate of low-resolution small target detection in computer vision are low, and its application is limited in complex scenes. The present invention proposes a low-resolution small target detection method and system based on an improved YOLO model. The method aims to improve the recognition accuracy of low-resolution small targets, increase the detection speed, and apply it to complex scenes.

[0007] In order to solve the above technical problems, the present invention proposes a low-resolution small target detection method based on an improved YOLO model, comprising the following steps:

[0008] S1. Build a low-resolution small target dataset with annotations;

[0009] S2, construct channel space hybrid feature highlighting module CSHM;

[0010] S3. Use the CSHM module at the connection between the YOLOv7tiny backbone network and the neck network;

[0011] S4. Propose an adaptive intersection-over-union (IoU) calculation method and construct an implicit and efficient decoupling head structure IEDH.

[0012] S5. AIoU is used as the intersection-over-union ratio calculation method in YOLOv7tiny, and its output feature map is decoupled using the implicit efficient decoupling head IEDH.

[0013] S6. Use the improved low-resolution small target detection model to detect low-resolution small target images.

[0014] The specific steps of step S1 are as follows:

[0015] Step S11, collecting low-resolution small target images in real scenes;

[0016] Step S12: Use labelme to label the image to obtain a label;

[0017] Step S13: randomly divide the images into a low-resolution small object dataset according to the ratio of 6:3:1 among the training set, test set and validation set.

[0018] In step S12, the data set is labeled and divided into an image data set file and a corresponding txt label file.

[0019] The specific steps of step S2 are:

[0020] Step S21, construct a CSHM channel feature highlighting module: consisting of adaptive average pooling, one-dimensional convolution with convolution kernels of 3, 5, 7, and 9 respectively, and a sigmoid function;

[0021] Step S22: construct a CSHM spatial feature highlighting module: it consists of three branches, the first branch includes average pooling, maximum pooling, two-dimensional convolution with a convolution kernel of 7 and a sigmoid function; the second branch includes a binary function F(x); the third branch is similar to the first branch, only the size of the two-dimensional convolution kernel is changed to 3;

[0022] Step S23, connecting the CSHM channel and the spatial feature highlighting module to form a channel-space hybrid feature highlighting module CSHM.

[0023] Step S3 is specifically as follows: the CSHM module is used at the connection between the YOLOv7tiny backbone network and the neck network; the CSHM module does not change the feature map size and the number of channels, but only highlights the edge detail features to avoid the underlying detail features being submerged during feature fusion, and also facilitates the subsequent further extraction of features.

[0024] Step S4 is specifically as follows:

[0025] S41. Propose an adaptive intersection-over-union (AIoU) calculation method: using SCYLLA-IoU (SIoU) and NWD (Normalized Gaussian Wasserstein Distanc e , normalized Gaussian Wasserstein distance) to calculate the intersection-over-union score, and use this to calculate the trade-off coefficient ω; use ω to calculate the final intersection-over-union score, and use it to weigh the bounding box loss function;

[0026] S42. Construct an implicit efficient decoupled head structure IEDH: It consists of a series of 1×1 convolutions and 3×3 convolutions.

[0027] Step S5 is specifically as follows: AIoU is used as the intersection-over-union calculation method in YOLOv7tiny to accurately calculate the true intersection-over-union of the anchor frame, alleviating the problem that small targets are more sensitive to offsets; and the implicit efficient decoupling head IEDH is used to decouple the output feature map, accelerate the convergence speed, and improve the detection accuracy and real-time performance;

[0028] In step S5, in view of the problem that a large number of small targets are difficult to detect in low-resolution small target images, an adaptive intersection-over-union calculation method is used to alleviate the phenomenon of false detection and missed detection of small targets; the formula is expressed as:

[0029]

[0030] AIoU=ω×NWDscore +(1-ω)×SIoU score

[0031] Among them, AIoU represents the final intersection-over-union score, SIoU score and NWD score They represent the intersection-over-union scores of the two methods respectively, pred represents the predicted box, true represents the real box, x1y1x2y2 represent the coordinates of the upper left corner and lower right corner of the box respectively, and ω represents the trade-off coefficient.

[0032] In addition, in order to make the training process stable and easy to converge, ω is used to weigh the bounding box loss function:

[0033] loss box =ω×(1-NWD score )+

[0034] (1-ω)×(1-SIoU score ).

[0035] The specific steps of step S6 are as follows:

[0036] Configure environment variables during training, set epoch to 300, batch size to 16, and resize input image to 640*640;

[0037] The improved YOLOv7tiny model is used for training; the evaluation indicators involved are mean average accuracy mAP@0.5 and real-time frame rate FPS.

[0038] Furthermore, the present invention also proposes a low-resolution small target detection system based on an improved YOLO model, including

[0039] The dataset storage module is used to collect low-resolution small target images in real scenes and store them in the dataset.

[0040] The data set annotation module is used to annotate the image data set in the data set storage module.

[0041] The low-resolution small target detection network building module is used to build a low-resolution small target detection network and is configured to perform the following actions: construct a channel space hybrid feature highlighting module CSHM, and use the CSHM module at the connection between the YOLOv7tiny backbone network and the neck network; use the Silas intersection-over-union ratio SIoU and the normalized Gaussian Wasserstein distance NWD to calculate the intersection-over-union score, and use this to calculate the trade-off coefficient ω; use ω to calculate the final intersection-over-union score AIoU, and use it to weigh the bounding box loss function; a series of 1×1 convolutions and 3×3 convolutions form an implicit and efficient decoupling head structure IEDH; use the final intersection-over-union score AIoU as the intersection-over-union calculation method in YOLOv7tiny, and use the implicit and efficient decoupling head IEDH to decouple its output feature map to obtain an improved low-resolution small target detection model.

[0042] The small target prediction module is used to input the image dataset in the dataset annotation module into the low-resolution small target detection network, predict the learned features through training, and output the location and category information of small targets in the image.

[0043] Furthermore, the present invention also proposes an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the low-resolution small target detection method based on the improved YOLO model described above when executing the computer program.

[0044] Furthermore, the present invention also proposes a computer-readable storage medium, which stores a computer program. When the computer program is run by a processor, it executes the low-resolution small target detection method based on the improved YOLO model described above.

[0045] Finally, the present invention also proposes a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the low-resolution small target detection method based on the improved YOLO model described in the present invention.

[0046] Compared with the prior art, the present invention has the following technical effects:

[0047] (1) To address the problem that low-resolution small target images generally have low resolution and a large amount of target detail edge features are lost, making it difficult to extract features, the present invention introduces a channel space hybrid feature highlighting module (CSHM) to highlight edge detail features, thereby avoiding the submergence of detail features during feature fusion and effectively improving detection accuracy.

[0048] (2) To address the problem that low-resolution small targets are small in size, numerous in number, and their pre-anchor frames are sensitive to offsets, the present invention introduces an adaptive intersection-over-union (AIoU) calculation method, which comprehensively considers SIoU and NWD as the final intersection-over-union score through a weighting coefficient, comprehensively evaluates the position difference and shape similarity between the target and the predicted frame, and effectively improves the detection accuracy of small targets.

[0049] (3) In order to solve the problem that most target detection models occupy high computing resources, have low detection frame rate, poor real-time performance, and cannot meet the needs of actual scenarios, the present invention introduces an implicit efficient decoupling head (IEDH). By constructing a lightweight structure and embedding an implicit knowledge learning module, the detection accuracy and real-time performance are greatly improved, which can meet the needs of actual scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It is a schematic diagram of the overall implementation process of the present invention.

[0051] Figure 2 Schematic diagram of the CSHM channel feature highlighting module structure.

[0052] Figure 3 Schematic diagram of the CSHM spatial feature highlighting module structure.

[0053] Figure 4 Schematic diagram of AIoU calculation process.

[0054] Figure 5 Schematic diagram of the IEDH structure.

[0055] Figure 6 Schematic diagram of the improved network structure.

[0056] Figure 7 This is a comparison chart of the detection performance of the present invention and other methods under the same environment. DETAILED DESCRIPTION

[0057] The present invention will be further described in detail below in conjunction with the accompanying drawings.

[0058] Embodiment 1: The low-resolution small target detection method and system based on the improved YOLO model of this embodiment, such as Figure 1 As shown, the method comprises the following steps:

[0059] S1. Build a low-resolution small target dataset with annotations;

[0060] S2, construct channel space hybrid feature highlighting module CSHM;

[0061] S3. Use the CSHM module at the connection between the YOLOv7tiny backbone network and the neck network;

[0062] S4. Propose an adaptive intersection-over-union (IoU) calculation method and construct an implicit and efficient decoupling head structure IEDH.

[0063] S5. AIoU is used as the intersection-over-union ratio calculation method in YOLOv7tiny, and its output feature map is decoupled using the implicit efficient decoupling head IEDH.

[0064] S6. Use the improved low-resolution small target detection model to detect low-resolution small target images.

[0065] The specific steps of step S1 are as follows:

[0066] Step S11, collecting low-resolution small target images in real scenes;

[0067] Step S12: Use labelme to label the image to obtain a label;

[0068] Step S13: randomly divide the images into a low-resolution small object dataset according to the ratio of 6:3:1 among the training set, test set and validation set.

[0069] In step S12, the data set is labeled and divided into an image data set file and a corresponding txt label file.

[0070] The specific steps of step S2 are:

[0071] Step S21, construct a CSHM channel feature highlighting module: consisting of adaptive average pooling, one-dimensional convolution with convolution kernel sizes of 3, 5, 7, and 9 respectively, and a sigmoid function;

[0072] Step S22: construct a CSHM spatial feature highlighting module: it consists of three branches, the first branch includes average pooling, maximum pooling, two-dimensional convolution with a convolution kernel of 7 and a sigmoid function; the second branch includes a binary function F(x); the third branch is similar to the first branch, only the size of the two-dimensional convolution kernel is changed to 3;

[0073] Step S23, connecting the CSHM channel and the spatial feature highlighting module to form a channel-space hybrid feature highlighting module CSHM;

[0074] Step S2 constructs the CSHM channel space hybrid feature highlighting module as Figure 2 , Figure 3 As shown in the figure, considering that the target image resolution is generally low, the edge features are largely lost, there are few useful features, and it is difficult to extract detail information. Therefore, by constructing a channel space hybrid feature highlighting module, the area containing rich detail information can be effectively highlighted, and then invalid interference information can be filtered out, and features can be extracted more effectively, so that the effective features can be further processed later. The specific process is as follows:

[0075] First, channel feature highlighting aims to focus on channels that are useful for the current task and reduce noise information. In this module, adaptive average pooling is first used to reduce the input feature map X∈C×H×W to X1∈C×1×1 to aggregate global information, enhance channel differentiation, and reduce the number of parameters and computational complexity, where C represents the number of feature map channels, and H and W represent the height and width of the feature map, respectively. Then it is divided into 4 groups according to the channel, and the grouped features X2∈C / 4×1×1 are subjected to one-dimensional convolution with kernel sizes of 3, 5, 7, and 9 to obtain information at different levels and scales while capturing fine-grained local features and a wider range of contextual information. Then the one-dimensional convolution output is spliced ​​along the channel dimension and passed through the sigmoid activation function to obtain the channel weight matrix H1∈C×1×1. The calculation of the channel weight matrix H1 is shown in formula (1):

[0076] H1=Sigmoid([C 1d3 (X 21 );C 1d5 (X 22 );C 1d7 (X 23 );C 1d9 (X 24 )])

[0077] Among them, X 2i represents the i-th group of channel grouping features, C 1dk represents k×k one-dimensional convolution, [;;;] represents the channel dimension splicing operation, and Sigmoid represents the activation function.

[0078] Finally, the weight matrix H1 is multiplied element by element with the original feature map X to obtain the feature map X3∈C×H×W after the channel features are highlighted.

[0079] Secondly, spatial feature highlighting aims to effectively model the spatial structure by assigning weights to each position so that it pays more attention to the information of different regions in the input image. In this module, spatial feature highlighting is divided into three stages.

[0080] In the first stage, the input feature map X4∈C×H×W is firstly subjected to maximum pooling and average pooling to obtain X 5.1 ∈1×H×W,X 5.2 ∈1×H×W, and concatenate them along the channel dimension. Secondly, use 7×7 two-dimensional convolution to extract local features from the concatenated feature map, and fully learn the feature area information that needs to be highlighted in the input feature map X4. Then, pass it through the Sigmoid activation function to obtain the spatial weight matrix H2∈1×H×W, as shown in formula (2):

[0081] H2=Sigmoid(C 2d7 ([AP(X4);MP(X4)]))

[0082] Among them, AP and MP represent average pooling and maximum pooling respectively, [;] represents the channel dimension concatenation operation, and C 2d7 represents a 7×7 two-dimensional convolution, and Sigmoid represents the activation function.

[0083] Finally, the spatial weight matrix H2 is multiplied element-by-element by the original feature map X4 to obtain the output feature map X5∈C×H×W after the rough spatial features are highlighted in the first stage.

[0084] In the second stage, the spatial weight matrix H2 in the first stage is firstly passed through a binary function F(x) binary , retain the more important parts for the task and ignore the relatively unimportant parts. The specific implementation process is to retain the values ​​in the weight matrix that are greater than the threshold r = 0.5 and set the others to 0. Then multiply the weight matrix after the binary function by the original feature map X5 element by element to obtain the third stage input feature map X mid ∈C×H×W. Binary function F(x) binary The calculation formula is shown in (3):

[0085]

[0086] Among them, x∈[0,1] represents the value in the spatial weight matrix H2, and 0.5 represents the threshold r.

[0087] The third stage is similar to the first stage. First, X mid Perform average pooling and maximum pooling to get X 7.1 ∈1×H×W,X 7.2 ∈1×H×W, and concatenate them along the channel dimension. Next, use 3×3 two-dimensional convolution to further learn the spatial features roughly highlighted in the first stage, and highlight the required feature area information more carefully. Secondly, the convolved feature map is passed through the Sigmoid function to obtain the spatial weight matrix H3∈1×H×W. Then, the spatial weight matrix is ​​combined with X mid By multiplying each element, we can get the output feature map X8∈C×H×W after the detailed spatial features are highlighted in the third stage. The calculation of the spatial weight matrix H3 is shown in formula (4):

[0088] H3=Sigmoid(C 2d3 ([AP(X mid );MP(X mid )]))

[0089] Among them, AP and MP represent average pooling and maximum pooling respectively, [;] represents the channel dimension concatenation operation, and C 2d3 represents a 3×3 two-dimensional convolution, and Sigmoid represents the activation function.

[0090] Finally, the output feature maps X6 and X8 of the first and third stages are added element by element to obtain the output feature map X after the detailed spatial features are highlighted. out ∈C×H×W.

[0091] Step S3 is specifically as follows: the CSHM module is used at the connection between the YOLOv7tiny backbone network and the neck network; the CSHM module does not change the feature map size and the number of channels, but only highlights the edge detail features to avoid the underlying detail features being submerged during feature fusion, and also facilitates the subsequent further extraction of features.

[0092] Step S4 is specifically as follows:

[0093] S41. An adaptive intersection-over-union (IoU) calculation method AIoU is proposed: SIoU and NWD are used to calculate the IoU score respectively, and the trade-off coefficient ω is calculated accordingly; the final IoU score is calculated using ω;

[0094] S42. Construct an implicit efficient decoupled head structure IEDH: It consists of a series of 1×1 convolutions and 3×3 convolutions.

[0095] Step S41 proposes an adaptive intersection-over-union calculation method AIoU such as Figure 5 As shown in the figure, considering that there are a large number of small targets in the target image due to perspective problems, and there is a certain degree of occlusion, and small targets are more sensitive to the predicted anchor frame offset due to scale problems, in this case, the traditional intersection-over-union calculation method leads to misjudgment due to inaccurate calculation, and the wrong prediction frame is selected as the target real frame, thereby reducing the detection accuracy of small targets. Therefore, the intersection-over-union calculation method in the network is replaced with AIoU to alleviate the problem that small targets are more sensitive to offsets and improve the adaptability to object size changes to a certain extent. The specific process is as follows:

[0096] First, the intersection-over-union (SIoU) and NWD calculation methods are used to calculate the intersection-over-union (IoU) scores of the predicted box and the true box:

[0097]

[0098]

[0099] ikB score and NWD score They represent the intersection-over-union scores of the two methods respectively, pred represents the predicted box, true represents the real box, and x1y1x2y2 represent the coordinates of the upper left corner and lower right corner of the box respectively.

[0100] Then, the adaptive trade-off coefficient ω is obtained according to the intersection-combination ratio score:

[0101]

[0102] The final intersection-combination score is:

[0103] AIoU=ω×NWD score +(1-ω)×SIoU score

[0104] By introducing the adaptive weight coefficient ω to comprehensively consider NWD and SIoU as the final intersection-over-union score, the position difference and shape similarity between the target and the prediction box can be comprehensively evaluated, reducing the misscreening of small target prediction boxes.

[0105] In addition, in order to make the training process stable and easy to converge, ω is used to weigh the bounding box loss function:

[0106] loss box =ω×(1-NWD score )+

[0107] (1-ω)×(1-SIoU score ).

[0108] NWD and SIoU measure the position difference and shape similarity between target boxes respectively. Based on this, the bounding box loss function can more comprehensively evaluate the differences between target boxes, thereby better guiding the training of the target detection model. In addition, the accuracy and robustness of the bounding box loss function are improved to a certain extent.

[0109] Step S42 constructs an implicit efficient decoupling head structure IEDH such as Figure 6 As shown in the figure, considering that most current target detection models occupy high computing resources and have low real-time detection frame rates, they cannot meet the real-time requirements in actual scenarios. Therefore, the coupling head in the network is replaced with an implicit efficient decoupling head IEDH, which improves the model speed and the accuracy to a certain extent. The specific process is as follows:

[0110] Two different paths are used to complete the corresponding decoupled tasks, so that they focus on their respective contents without interfering with each other. For the regression task, three 3×3 convolutions are first used to expand the task receptive field, and the features of each convolution layer are compressed along the channel dimension, which reduces the number of parameters while improving the reasoning speed, and can reduce the feature loss in the forward propagation process. Then, the implicit knowledge learning modules Implicit A and Implicit M are applied to learn the potential implicit knowledge, preventing the loss of neuronal implicit knowledge while improving the convergence speed. Finally, the two subtasks of foreground and position are distinguished by 1×1 convolution to reduce the number of parameters.

[0111] F1=C3(FPN feature )

[0112] F2=C3(F1)

[0113] F3=C3(F2)

[0114] Reg=IM(C1(IA(F3)))

[0115] IoU=IM(C1(IA(F3)))

[0116] Among them C i represents a two-dimensional convolution with convolution kernel i, F i Represents the features after the i-th 3×3 convolution, FPN feature Table 2 shows the input features. IA and IM represent implicit knowledge learning modules ImplicitA and ImplicitM.

[0117] For classification tasks, the feature maps of each stage of the regression process are first fused to enhance the features learned by different feature maps and make full use of features at different levels. Then, in order to prevent the loss of neuron hidden knowledge and speed up the convergence, the implicit knowledge learning module is used to fully learn the potential hidden knowledge. Finally, the representation of the task is completed by fusing explicit knowledge and implicit knowledge.

[0118] F cat =Cat(F1, F2, F3)

[0119] Cls=IM(c1(IA(C1(F cat ))))

[0120] Among them, F cat represents the features after cat along the channel dimension, C1 represents the two-dimensional convolution with the convolution kernel of 1, IA and IM represent the implicit knowledge learning modules ImplicitA and ImplicitM.

[0121] Step S5 is specifically as follows: replacing the intersection-over-union calculation in YOLOv7tiny with AIoU to accurately calculate the true intersection-over-union of the anchor frame and alleviate the problem that small targets are more sensitive to offsets; replacing the coupling head in YOLOv7tiny with an implicit efficient decoupling head to speed up convergence and improve detection accuracy.

[0122] Step S6 is specifically as follows: input the image data set obtained in S1 into the improved YOLOv7tiny network, predict through the features learned through training, and output the position and category of the low-resolution small target in the image. The specific content is as follows:

[0123] In this example, in order to verify the effectiveness of the solution of the present invention, YOLOv7tiny is used as the baseline network, and ablation experiments are performed on each key improved module. In the following table, model A represents the baseline network. Model B represents the result after the CSHM module is embedded. Model C represents the result of adding AIoU on the basis of B. Model D is used to verify the final detection result of the present invention by adding IEDH on the basis of model C, and its test results are shown in the following table:

[0124] Model Baseline CSHM AIoU IEDH map@0.5(%) FPS A √ ┈ ┈ ┈ 73.7 119 B √ √ ┈ ┈ 75.6 115 C √ √ √ ┈ 78.1 113 D √ √ √ √ 79.8 110

[0125] Figure 7 The visualization results of low-resolution small target detection of the model before and after improvement are shown. For targets with smaller volumes, YOLOv7tiny missed detections, and due to the low resolution, false detections also occurred. This is mainly because YOLOv7tiny cannot fully extract the edge detail features of low-resolution small targets. Due to this feature, its detection accuracy is affected to a certain extent, and it cannot accurately locate and identify, which in turn affects the performance of the model. For occluded objects, YOLOv7tiny also missed detections to a certain extent. This phenomenon mainly stems from the weak feature extraction capability of the model before optimization. In addition, the use of a coupling head rather than a decoupling head will cause mutual interference between classification and regression tasks, thereby reducing detection accuracy. In response to these problems, the present invention makes targeted key improvements. It can be clearly seen from the detailed comparison of the detection results that the improved model shows excellent detection performance.

[0126] The embodiment of the present invention also proposes a defect detection system based on a two-stage lightweight network of hybrid supervision, including a data set storage module, a data set annotation module, a two-stage defect detection network construction module, a defect prediction module and a computer program that can be run on a processor. It should be noted that each module in the above system corresponds to the specific steps of the method provided in the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided in the embodiment of the present invention.

[0127] The embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. It should be noted that when the processor executes the computer program, the specific steps of the method provided in the embodiment of the present invention are corresponding to the specific steps of the method provided in the embodiment of the present invention, and the processor has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided in the embodiment of the present invention.

[0128] The embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. It should be noted that when the computer program is executed by the processor, it corresponds to the specific steps of the method provided in the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided in the embodiment of the present invention.

[0129] Finally, the present invention also proposes a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the low-resolution small target detection method based on the improved YOLO model described in the present invention.

[0130] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A low-resolution small target detection method based on an improved YOLO model, characterized in that: include: S1. Build a low-resolution small target dataset with annotations; S2, construct channel space hybrid feature highlighting module CSHM; S3. Use the CSHM module at the connection between the YOLOv7tiny backbone network and the neck network; S4. The intersection-over-union (IoU) and normalized Gaussian Wasserstein distance (NWD) are used to calculate the intersection-over-union (IoU) score, and the trade-off coefficient ω is calculated from it. The final IoU score AIoU is calculated using ω, and the bounding box loss function is weighed using it. The implicit efficient decoupling head structure IEDH is composed of a series of 1×1 convolutions and 3×3 convolutions. S5. The final intersection-over-union (IoU) score AIoU is used as the IoU calculation method in YOLOv7tiny, and the implicit efficient decoupling head IEDH is used to decouple its output feature map to obtain an improved low-resolution small target detection model. S6. Use the improved low-resolution small target detection model to detect low-resolution small target images.

2. The low-resolution small target detection method based on the improved YOLO model according to claim 1, characterized in that: The specific steps of step S1 are as follows: Step S11, collecting low-resolution small target images in real scenes; Step S12: Use labelme to label the image to obtain a label; Step S13: randomly divide the images into a low-resolution small object dataset according to the ratio of 6:3:1 among the training set, test set and validation set.

3. The low-resolution small target detection method based on the improved YOLO model according to claim 1, characterized in that: The specific steps of step S2 are: Step S21, construct a CSHM channel feature highlighting module: consisting of adaptive average pooling, one-dimensional convolution with convolution kernels of 3, 5, 7, and 9 respectively, and a sigmoid function; Step S22, constructing a CSHM spatial feature highlighting module: consisting of three branches, the first branch includes average pooling, maximum pooling, two-dimensional convolution with a convolution kernel of 7, and a sigmoid function; the second branch includes a binary function F(x); the third branch differs from the first branch in that only the size of the two-dimensional convolution kernel is changed to 3; Step S23, connecting the CSHM channel feature highlighting module and the CSHM space feature highlighting module in sequence to form a channel space hybrid feature highlighting module CSHM.

4. The low-resolution small target detection method based on the improved YOLO model according to claim 1, characterized in that: Step S3 is specifically as follows: the CSHM module is used at the connection between the YOLOv7tiny backbone network and the neck network, wherein the CSHM module does not change the feature map size and the number of channels, and only highlights the edge detail features.

5. The low-resolution small target detection method based on the improved YOLO model according to claim 1, characterized in that: Step S5 uses an adaptive intersection-over-union calculation method to alleviate the phenomenon of false detection and missed detection of small targets; it can be expressed as: AIoU=ω×NWD score +(1-ω)×SIoU score Among them, AIoU represents the final intersection-over-union score, SIoU score and NWD score Represent the intersection-over-union scores of SIoU and NWD respectively, pred represents the predicted box, true represents the real box, x1y1x2y2 represents the coordinates of the upper left corner and lower right corner of the box, and the weight coefficient ω is used to weigh the bounding box loss function: loss box =ω×(1-NWD score )+(1−ω)×(1−SIoU score )。 6. The low-resolution small target detection method based on the improved YOLO model according to claim 1, characterized in that: The specific steps of step S6 are as follows: Configure environment variables during training, set epoch to 300, batch size to 16, and resize input image to 640*640; The improved YOLOv7tiny model is used for training; the evaluation indicators involved are mean average accuracy mAP@0.5 and real-time frame rate FPS.

7. Low-resolution small target detection system based on improved YOLO model, characterized by: include The data set storage module is used to collect low-resolution small target images in real scenes and store them in the data set; A data set annotation module, used to annotate the image data set in the data set storage module; The low-resolution small target detection network building module is used to build a low-resolution small target detection network, and is configured to perform the following actions: construct a channel space hybrid feature highlighting module CSHM, and use the CSHM module at the connection between the YOLOv7tiny backbone network and the neck network; The intersection-over-union (IoU) and normalized Gaussian Wasserstein distance (NWD) are used to calculate the intersection-over-union (IoU) score, and the trade-off coefficient ω is calculated from it; the final IoU score AIoU is calculated using ω, and the bounding box loss function is weighed using it; an implicit efficient decoupling head structure IEDH is constructed by a series of 1×1 convolutions and 3×3 convolutions; the final IoU score AIoU is used as the IoU calculation method in YOLOv7tiny, and the output feature map is decoupled using the implicit efficient decoupling head IEDH to obtain an improved low-resolution small target detection model; The small target prediction module is used to input the image dataset in the dataset annotation module into the low-resolution small target detection network, predict the learned features through training, and output the location and category information of small targets in the image.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Satellite remote sensing image small target detection method based on high-resolution characteristic self-attention

    CN117036980A

  • Small target detection method based on multilayer attention fusion

    CN118314335A