Power transmission line external force damage detection method based on stepped feature fusion
By using the stepped feature fusion method in the detection of external force damage to transmission lines, the problem of complex backgrounds and changing mechanical forms is solved, the detection accuracy and robustness are improved, and real-time detection is achieved on the edge computing platform.
Patent Information
- Application Number
- CN202410892133.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-09-24
AI Technical Summary
The existing technology has problems in detecting external force damage to transmission lines, such as complex backgrounds, changing mechanical forms, insufficient data sets, and large amounts of model parameters, resulting in missed detections and false detections and difficulty in real-time detection.
A detection method based on stepped feature fusion is adopted, including obtaining a transmission line data set, constructing an external damage data set, training a detection model that fuses the deformable cascaded small convolution kernel attention module and the stepped feature fusion network, and using lightweight detection Head and boundary regression loss functions to optimize detection results.
It improves the accuracy and robustness of external force damage detection of transmission lines, reduces the number of model parameters, enables detection to be performed in real time on the edge computing platform, and reduces the occurrence of false detections and missed detections.
Smart Images

Figure CN118691995A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power transmission line detection, and in particular to a method for detecting external force damage to a power transmission line based on step-by-step feature fusion. Background Art
[0002] The power industry is an important pillar industry for national economic and social development, and transmission corridors play an important role in the reliable and efficient distribution of electric energy. These corridors are composed of overhead transmission lines and underground cables, and are key infrastructure for transmitting electricity from power generation facilities to end users. With the rapid development of the national power grid project, the number of overhead transmission lines has increased significantly. With the development of the national economy, urban construction has been frequent, and a large number of construction activities are inevitable near the corridors. During the construction activities near the corridors, working pile drivers, long-arm excavators, agricultural machinery and other machinery have brought safety hazards to the transmission lines due to their variable heights and lengths. It poses a huge threat to the safety of transmission lines. Therefore, line inspections in transmission corridors are of great significance to the safe operation, maintenance and management of power grids. Good line inspections can identify areas with dangerous external force damage risks, which can reduce and prevent the impact of human activities.
[0003] In recent years, my country has conducted some research on external force damage detection. In the field of power transmission line inspection, human inspection is usually adopted. In recent years, drone inspection equipment has become more mature, and there have been many attempts to use deep learning models for intelligent detection. Therefore, we can arrange drone inspections near the power transmission lines, equipped with trained deep learning target detection models, to accurately identify these construction machines, so as to issue early warnings and prevent the occurrence of faults in time. Due to changes in construction scenes, different resolutions of monitoring equipment, and different shapes and sizes of construction machinery, previous deep learning detection models are prone to problems such as missed detections and false detections.
[0004] In addition, the image information collected by drone inspections has varying angles, complex image background information, and different working postures of the equipment at work, which can easily lead to false detections and incorrect detections.
[0005] In summary, there are the following problems when directly using existing target detection models to process transmission corridor images: (1) Complex background problem. Transmission corridors are widely distributed and the construction background is complex, so there are problems such as complex background and excessive noise that are difficult to process; (2) The shape of machinery with robotic arms varies under different construction conditions, and the original target detection algorithm is prone to missed detection and false detection; (3) There are few corresponding data sets, and research on this is not sufficient. The current model is not sufficient for sufficient training, and it is impossible to accurately and real-timely warn of external force damage to transmission lines; (4) The number of parameters of the model with higher detection accuracy is too large, and it cannot be successfully installed on a computer with less computing power for real-time monitoring.
[0006] Therefore, it is necessary to design a transmission line external force damage detection method based on step-by-step feature fusion. Summary of the invention
[0007] In order to overcome the deficiencies of the prior art, an object of the present invention is to provide a method for detecting external force damage to a transmission line based on step-by-step feature fusion.
[0008] To achieve the above object, the present invention provides the following solutions:
[0009] A first aspect of the present invention provides a method for detecting external force damage to a power transmission line based on step-by-step feature fusion, comprising:
[0010] Get the transmission line dataset;
[0011] Construct a transmission line external damage dataset based on the transmission line dataset;
[0012] Construct a transmission line external force damage detection model;
[0013] The transmission line external force damage detection model is trained based on the transmission line external damage dataset;
[0014] Transmission line external force damage detection is performed based on the trained transmission line external force damage detection model.
[0015] Preferably, the transmission line data set is obtained, specifically:
[0016] Transmission line images are collected based on drone inspections or shooting equipment installed on transmission towers to generate transmission line datasets.
[0017] Preferably, a transmission line external damage dataset is constructed based on the transmission line dataset, specifically:
[0018] The images in the transmission line dataset are obtained, and the images are processed to filter out the images without dangerous construction machinery in the transmission corridor. The dangerous construction machinery in the retained images are labeled through labelimg to generate the transmission line external damage dataset.
[0019] Preferably, a transmission line external force damage detection model is constructed, specifically:
[0020] The transmission line external force damage detection model includes a feature extraction network that integrates a deformable cascade small convolution kernel attention module, a step-by-step feature fusion network, a lightweight detection head and a boundary regression loss function. The feature extraction network that integrates a deformable cascade small convolution kernel attention module is used to extract features from an input image; the step-by-step feature fusion network is used to fuse the extracted features; the lightweight detection head is used to detect the fused features; and the boundary regression loss function is used to optimize the detection results to obtain prediction results.
[0021] Preferably, the feature extraction network that integrates the deformable cascaded small convolution kernel attention module is a fusion of the feature extraction parts of P4 and P5 of the basic structure of the traditional Darknet-53 feature extraction network with an improved deformable cascaded small convolution kernel attention module, wherein the improved deformable cascaded small convolution kernel attention module changes the large convolution in the traditional deformable convolution attention module into a cascaded small convolution.
[0022] Preferably, the feature fusion process of the step-by-step feature fusion network is:
[0023] The P3 and P5 ends of the feature extraction network fused with the deformable cascade small convolution kernel attention module are respectively input into the MSFF module through the CBS module and the P4 end to perform multi-scale sequence feature fusion to generate comprehensive features. The comprehensive features are passed through the C2F module and the CBS module to generate large-scale sequence features. The P1 end is convoluted and adjusted through the CBS module to generate small-scale sequence features. The P2 end outputs medium-scale sequence features and large-scale sequence features. The small-scale sequence features, medium-scale sequence features and large-scale sequence features are input into the MSFF module for multi-scale sequence feature fusion to obtain multi-scale sequence features. The multi-scale sequence features are output from the new P3 output terminal to the lightweight detection head through the C2F module. The comprehensive features are input into the Concat module through the C2F layer and the multi-scale sequence features through the C2F module and the CBS module for feature fusion. The sequence features fused through the Concat module are output from the new P4 output terminal to the lightweight detection head through the C2F module. The sequence features fused through the Concat module are input into the Concat module through the C2F module, the CBS module and the P5 terminal, and are output from the new P5 output terminal to the lightweight detection head through the C2F module.
[0024] Preferably, the lightweight detection head includes a regression task and a target classification task. In the regression task, the input features are integrated through a convolution module Conv_1, and the nonlinearity of the model is increased through channel shuffling, and the information after channel shuffling is integrated through another convolution module Conv_2; in the classification task, the input features are passed through a depth-separable convolution module, and then integrated through two ordinary convolution modules Conv_2, wherein the Conv_1 and Conv_2 convolution modules both perform a 3×3 convolution operation on the input tensor, send it to the BatchNorm layer for normalization, and then activate the obtained data through the ReLu activation function.
[0025] Preferably, the boundary regression loss function adopts the GCIoU NMS loss function, and the calculation formula is:
[0026]
[0027] In the formula, b and b gt represents the center point of the two rectangular boxes, ρ represents the Euclidean distance between the two rectangular boxes, c represents the distance between the diagonals of the closure area of the two rectangular boxes, v is used to measure the consistency of the relative proportions of the two rectangular boxes, α is the weight coefficient, and c h and c w are the height and width of the minimum bounding box, h and h gt Represents the height of the two rectangular boxes, w and w gt Indicates the width of the two rectangles.
[0028] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0029] The present invention provides a method for detecting external force damage to a power transmission line based on step-by-step feature fusion. The method comprises acquiring a power transmission line data set, constructing a power transmission line external damage data set based on the power transmission line data set, constructing a power transmission line external force damage detection model, training the power transmission line external force damage detection model based on the power transmission line external damage data set, and performing power transmission line external force damage detection based on the trained power transmission line external force damage detection model. The method constructs a power transmission line external damage data set, which can assist in judging whether a construction machine poses a threat to a power transmission line. The method integrates a deformable large convolution kernel attention module for feature extraction, focuses on solving the detection of medium and large targets, and uses a deformable convolution used in the field of medical images to operate on the deformation problem of images at the angle of a drone and the deformation problem of arm-mounted machines in different working states, which is easy to use. The method adopts a lightweight detection head to lightweight the model so as to facilitate its construction on an edge computing platform. The method adopts a GCIoU NMS loss function to optimize the algorithm, and further optimizes the accuracy of the algorithm. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0031] Figure 1 A flow chart of a method provided by an embodiment of the present invention;
[0032] Figure 2 It is a schematic diagram of the structure of the external force damage detection model for power transmission lines of the present invention;
[0033] Figure 3 It is a schematic diagram of the feature fusion process of the step-by-step feature fusion network of the present invention;
[0034] Figure 4 This is a schematic diagram of a lightweight detection head of the present invention. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] The purpose of the present invention is to provide a method for detecting external force damage to a power transmission line based on step-by-step feature fusion, which can improve the accuracy of external force damage detection for a power transmission line.
[0037] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0038] Figure 1 A flow chart of a method provided by an embodiment of the present invention, such as Figure 1 As shown, the present invention provides a method for detecting external force damage to a power transmission line based on step-by-step feature fusion, comprising:
[0039] Step 100: Obtain a transmission line data set;
[0040] Step 200: constructing a transmission line external damage dataset based on the transmission line dataset;
[0041] Step 300: constructing a transmission line external force damage detection model;
[0042] Step 400: training a transmission line external force damage detection model based on a transmission line external damage dataset;
[0043] Step 500: Perform transmission line external force damage detection based on the trained transmission line external force damage detection model.
[0044] In step 100, a transmission line data set is obtained, specifically:
[0045] Transmission line images are collected based on drone inspections or shooting equipment installed on transmission towers to generate transmission line datasets.
[0046] In step 200, a transmission line external damage dataset is constructed based on the transmission line dataset, specifically:
[0047] The images in the transmission line dataset are obtained and processed. The images without dangerous construction machinery in the transmission corridor are screened out. The dangerous construction machinery (typical construction machinery long-arm excavators, tower cranes, and agricultural machinery) in the retained images are labeled through labelimg to generate a transmission line external damage dataset.
[0048] In step 300, a transmission line external force damage detection model is constructed, specifically:
[0049] The structural diagram of the transmission line external force damage detection model is as follows: Figure 2 As shown, it includes a feature extraction network fused with a deformable cascade small convolution kernel attention module, a step-by-step feature fusion network, a lightweight detection head and a boundary regression loss function. The feature extraction network fused with a deformable cascade small convolution kernel attention module is used to extract features from an input image; the step-by-step feature fusion network is used to fuse the extracted features; the lightweight detection head is used to detect the fused features; and the boundary regression loss function is used to optimize the detection results to obtain prediction results.
[0050] The feature extraction network fused with the deformable cascade small convolution kernel attention module is a feature extraction network in which the feature extraction parts of P4 and P5 of the basic structure of the traditional Darknet-53 feature extraction network are fused with the improved deformable cascade small convolution kernel attention module to extract features from the image of external force damage to the power transmission line. The deformable convolution is mainly used to extract more accurate features from the arm machines with different shapes under different construction states in the picture, as well as the construction machines with physical deformation when photographed by drones or fixed positions. The use of the deformable large convolution kernel attention is to better process the local feature information, process the local feature information, and ignore the complex background noise.
[0051] The original deformable large kernel attention is used for medical image segmentation, mainly to solve the problem of detecting small targets and irregular shaped targets under complex backgrounds. Due to the fusion of large convolution kernels and attention mechanisms, the original structure has a large number of parameters. The present invention is aimed at large construction machinery, mainly drawing on the application of deformable convolution in the original algorithm and the simplified extraction of the attention mechanism. The large convolution in the original deformable convolution attention module is changed into cascaded small convolutions. Under the premise of not affecting the receptive field, the discrimination ability is increased, the amount of calculation and the amount of parameters are reduced, and the architecture of the present invention is further optimized. While increasing the detection ability of irregular shaped machinery, the amount of parameters is reduced;
[0052] The deformable large convolution kernel attention module of the feature extraction part is introduced: The deformable large convolution kernel attention module performs feature transformation on the input feature x through a 1×1 convolution layer to obtain the tensor xproj=Conv1×1(x). Then, the GELU activation function is applied to activate it to obtain xact=GELU(xproj). Next, the activated feature xact is sent to the deformable convolution kernel attention module, and a simplified spatial attention operation is performed on the input feature to obtain the output feature attn=DeformableLKA(xact). Subsequently, the output attnattn of the deformable convolution spatial attention module is transformed through another 1×1 convolution layer to obtain x′=Conv1×1(attn). Finally, the input feature x and the feature x′ are added element by element to realize the residual connection and obtain the output feature: output=x+x′. The formula of the GELU activation function is as follows:
[0053]
[0054] Considering that the detection of transmission line external force damage targets needs to detect large targets and medium targets, the present invention creatively embeds this module into the feature extraction part of P4 and P5, and performs more rigorous feature extraction specifically for large targets and medium targets.
[0055] For the feature fusion part after feature extraction, the existing common operation is to use the Feature Pyramid Network (FPN) feature pyramid to fuse the features. FPN can improve the detection accuracy of small targets to a certain extent, but the construction machinery targets in the transmission line images do not have the problem of being too small to become small targets. Therefore, the present invention creatively uses a step-by-step feature fusion method to perform multi-scale sequence feature fusion on three features at the same time, perform multi-scale sequence feature fusion twice, and further fuse all the features extracted in the feature extraction stage before outputting them. The flow chart is as follows Figure 3 As shown;
[0056] according to Figure 3, the feature fusion process of the step-by-step feature fusion network is introduced in detail as follows:
[0057] The P3 and P5 ends of the feature extraction network fused with the deformable cascade small convolution kernel attention module are respectively input into the MSFF module through the CBS module and the P4 end to perform multi-scale sequence feature fusion to generate comprehensive features. The comprehensive features are passed through the C2F module and the CBS module to generate large-scale sequence features. The P1 end is convoluted and adjusted through the CBS module to generate small-scale sequence features. The P2 end outputs medium-scale sequence features and large-scale sequence features. The small-scale sequence features, medium-scale sequence features and large-scale sequence features are input into the MSFF module for multi-scale sequence feature fusion to obtain multi-scale sequence features. The multi-scale sequence features are output from the new P3 output terminal to the lightweight detection head through the C2F module. The comprehensive features are input into the Concat module through the C2F layer and the multi-scale sequence features through the C2F module and the CBS module for feature fusion. The sequence features fused through the Concat module are output from the new P4 output terminal to the lightweight detection head through the C2F module. The sequence features fused through the Concat module are input into the Concat module through the C2F module, the CBS module and the P5 terminal, and are output from the new P5 output terminal to the lightweight detection head through the C2F module.
[0058] Unlike traditional feature fusion, the present invention creatively uses a multi-scale sequence feature fusion module. Traditional feature fusion only integrates feature information through matrix multiplication or matrix addition, while the present invention uses a multi-scale sequence feature fusion module (MSSF), which can fuse the global image information from three different scale sequences, thereby enhancing the model's ability to extract and grasp information. The multi-scale sequence feature fusion module divides the input feature map into three scale sequences: large, medium, and small according to the size of the scale sequence. The large-scale sequence feature map is adjusted by adaptive maximum pooling and average pooling operations, and the small-scale sequence feature map is adjusted using bilinear interpolation. The adjusted feature map is similar to the medium-scale sequence feature in terms of scale. Figure 1 To.
[0059] The adjusted large-scale sequence feature map, medium-scale sequence feature map and small-scale sequence feature map are spliced in the channel dimension to form a comprehensive feature. The final fusion feature is passed to the subsequent network layer for further processing and analysis.
[0060] Through this process, the feature information of sequences at different scales is effectively fused together, providing the network with more comprehensive and rich semantic information, thereby enhancing the accuracy and robustness of the model in detecting external force damage to transmission lines.
[0061] The structural schematic diagram of the lightweight detection head is as follows Figure 4 As shown in the figure, it includes regression tasks and target classification tasks. In the regression task, a convolution module Conv_1 is used to integrate the input features, and then the nonlinearity of the model is increased by channel shuffling, and then another convolution module Conv_2 is used to integrate the information after channel shuffling;
[0062] In the classification task, the use of deep separable convolution effectively reduces the number of parameters and the amount of calculation, improves the efficiency of the model, and completes the work of the lightweight detection head. The input features pass through the deep separable convolution module and then through two ordinary convolution modules Conv_2 for integration. Among them, the Conv_1 and Conv_2 convolution modules both perform a 3×3 convolution operation on the input tensor, send it to the BatchNorm layer for normalization, and then activate the obtained data through the ReLu activation function.
[0063] The CIoU and EIoU loss functions are introduced. CIoU Loss reflects the difference in height and width, rather than the actual difference between height and width and their confidence. Therefore, it sometimes hinders the model from effectively optimizing similarity. Its calculation formula is as follows:
[0064]
[0065] Among them, b and b gt represents the center points of the two rectangular boxes, ρ represents the Euclidean distance between the two rectangular boxes, c represents the distance between the diagonals of the closure areas of the two rectangular boxes, v is used to measure the consistency of the relative proportions of the two rectangular boxes, and α is the weight coefficient.
[0066] EIoU Loss splits the vertical and horizontal contrast influencing factors based on CIoU Loss, calculates the length and width of the predicted frame and the real frame, and can solve the problem of CIoU Loss to a certain extent. The calculation formula is as follows:
[0067]
[0068] In the formula, h c and w c are the height and width of the minimum bounding box, h and h gt Represents the height of the two rectangular boxes, w and w gt Indicates the width of the two rectangles.
[0069] However, when there are very far edges, the calculation of EIoU Loss will slow down and cannot converge in advance. Therefore, the present invention proposes a new enhanced loss function Gradual Complete IoU (GCIoU), which can increase the prediction frame adjustment and speed up the frame regression rate. The calculation formula is:
[0070]
[0071] In the formula, b and b gt represents the center point of the two rectangular boxes, ρ represents the Euclidean distance between the two rectangular boxes, c represents the distance between the diagonals of the closure area of the two rectangular boxes, v is used to measure the consistency of the relative proportions of the two rectangular boxes, α is the weight coefficient, and c h and c w are the height and width of the minimum bounding box, h and h gt Represents the height of the two rectangular boxes, w and w gt Indicates the width of the two rectangles.
[0072] GCIoU combines CIoU and EIoU. First, it uses the predicted frame aspect ratio of CIoU until it converges to a suitable range, and then adjusts each edge with the help of the EIoU function until it converges to the correct value.
[0073] In the pictures of power transmission line damage taken by drones, the mechanical arms of various arm machines have different shapes, which easily generates a large number of candidate frames, many of which may be detection results of the same target. In order to select the best one from these overlapping candidate frames, thereby eliminating overlapping detection results and ensuring that each target is detected only once, the present invention integrates non-maximum suppression in the loss function;
[0074] First, the candidate boxes are sorted in descending order according to their confidence scores, and then the GCIoU metric is used to calculate the degree of overlap between the candidate boxes. According to the pre-set IoU threshold, the candidate boxes with too high overlap are screened, and only the candidate boxes with the highest confidence and no overlap are retained as the final detection results.
[0075] In step 400, the transmission line external force damage detection model is trained based on the transmission line external damage data set, specifically:
[0076] The labeled images in the transmission line external damage dataset are used as input and input into the transmission line external force damage detection model. The transmission line external force damage detection model is trained, and the obtained weight file is saved after the training is completed.
[0077] In step 500, the transmission line external force damage detection is performed based on the trained transmission line external force damage detection model, specifically:
[0078] Use the saved weight file to detect the real-time image input into the transmission line external force damage detection model.
[0079] In order to verify the effectiveness of the method proposed in the present invention, the present invention compares the proposed method with other representative target detection methods, and uses two evaluation indicators to judge the performance of the model. The two indicators are mean average precision (mAP) and parameter quantity. The closer the mAP is to 1, the better the model performance is, and the smaller the parameter quantity is, the lighter the model is. The training and testing experiments are carried out on NVIDIA GeForce RTX 4090 GPU, and the PyTorch framework is used to implement the method proposed in the present invention. The data set contains 8939 transmission line images, including 5614 training sets, 2406 validation sets, and 892 test sets. Table 1 shows the performance of the proposed method and the classic target detection algorithm on the data set.
[0080] Table 1 Schematic diagram of comparison results
[0081]
[0082] As shown in Table 1, the mAP values of all objectives of the method proposed in the present invention are higher than those of other classic methods, and when the mAP values are similar, the number of parameters reaches the optimal value, which proves the effectiveness of the method.
[0083] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0084] The present invention uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only used to help understand the method and core ideas of the present invention. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for detecting external force damage to a power transmission line based on step-by-step feature fusion, characterized in that: include: Get the transmission line dataset; Construct a transmission line external damage dataset based on the transmission line dataset; Construct a transmission line external force damage detection model; The transmission line external force damage detection model is trained based on the transmission line external damage dataset; Transmission line external force damage detection is performed based on the trained transmission line external force damage detection model.
2. The method according to claim 1, characterized in that Get the transmission line dataset, specifically: Transmission line images are collected based on drone inspections or shooting equipment installed on transmission towers to generate transmission line datasets.
3. The method according to claim 1, characterized in that Based on the transmission line dataset, a transmission line external damage dataset is constructed, specifically: The images in the transmission line dataset are obtained, and the images are processed to filter out the images without dangerous construction machinery in the transmission corridor. The dangerous construction machinery in the retained images are labeled through labelimg to generate the transmission line external damage dataset.
4. The method according to claim 1, characterized in that: Construct a transmission line external force damage detection model, specifically: The transmission line external force damage detection model includes a feature extraction network that integrates a deformable cascade small convolution kernel attention module, a step-by-step feature fusion network, a lightweight detection head and a boundary regression loss function. The feature extraction network that integrates a deformable cascade small convolution kernel attention module is used to extract features from an input image; the step-by-step feature fusion network is used to fuse the extracted features; the lightweight detection head is used to detect the fused features; and the boundary regression loss function is used to optimize the detection results to obtain prediction results.
5. The method according to claim 4, characterized in that The feature extraction network that integrates the deformable cascaded small convolution kernel attention module is a fusion of the feature extraction parts of P4 and P5 of the basic structure of the traditional Darknet-53 feature extraction network with the improved deformable cascaded small convolution kernel attention module, wherein the improved deformable cascaded small convolution kernel attention module changes the large convolution in the traditional deformable convolution attention module into a cascaded small convolution.
6. The method according to claim 4 or 5, characterized in that: The feature fusion process of the step-by-step feature fusion network is as follows: The P3 and P5 ends of the feature extraction network fused with the deformable cascade small convolution kernel attention module are respectively input into the MSFF module through the CBS module and the P4 end to perform multi-scale sequence feature fusion to generate comprehensive features. The comprehensive features are passed through the C2F module and the CBS module to generate large-scale sequence features. The P1 end is convoluted and adjusted through the CBS module to generate small-scale sequence features. The P2 end outputs medium-scale sequence features and large-scale sequence features. The small-scale sequence features, medium-scale sequence features and large-scale sequence features are input into the MSFF module for multi-scale sequence feature fusion to obtain multi-scale sequence features. The multi-scale sequence features are output from the new P3 output terminal to the lightweight detection head through the C2F module. The comprehensive features are input into the Concat module through the C2F layer and the multi-scale sequence features through the C2F module and the CBS module for feature fusion. The sequence features fused through the Concat module are output from the new P4 output terminal to the lightweight detection head through the C2F module. The sequence features fused through the Concat module are input into the Concat module through the C2F module, the CBS module and the P5 terminal, and are output from the new P5 output terminal to the lightweight detection head through the C2F module.
7. The method according to any one of claims 4, 5 and 6, characterized in that: The lightweight detection head includes regression tasks and target classification tasks. In the regression task, the input features are integrated through a convolution module Conv_1, and the nonlinearity of the model is increased through channel shuffling, and then the information after channel shuffling is integrated through another convolution module Conv_2; in the classification task, the input features are passed through a depth-separable convolution module, and then integrated through two ordinary convolution modules Conv_2, where both the Conv_1 and Conv_2 convolution modules perform a 3×3 convolution operation on the input tensor, send it to the BatchNorm layer for normalization, and then activate the obtained data through the ReLu activation function.
8. The method according to any one of claims 4, 5, 6 and 7, characterized in that: The boundary regression loss function adopts the GCIoU NMS loss function, and the calculation formula is: In the formula, b and b gt represents the center point of the two rectangular boxes, ρ represents the Euclidean distance between the two rectangular boxes, c represents the distance between the diagonals of the closure area of the two rectangular boxes, v is used to measure the consistency of the relative proportions of the two rectangular boxes, α is the weight coefficient, and c h and c w are the height and width of the minimum bounding box, h and h gt Represents the height of the two rectangular boxes, w and w gt Indicates the width of the two rectangles.
