Light-weight wind generating set surface defect detection method

By replacing specific modules in the YOLOv8n model and introducing a lightweight detection structure, combined with an improved border regression loss function, the problem of improved detection accuracy but unresolved lightweight issues in the existing technology is solved, and wind power generation suitable for edge deployment is realized. Unit surface defect detection.

CN118735900APending Publication Date: 2024-10-01CHANGZHOU UNIV
View PDF 0 Cites 12 Cited by

Patent Information

Application Number
CN202410944293.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing wind turbine surface defect detection methods ignore the lightweight problem of network models when improving detection accuracy, resulting in deployment equipment that is not friendly to edge deployment and lacks suitable lightweight models.

Method used

By replacing specific modules in the backbone network and neck network of the YOLOv8n model, using the C2f_Star module and SlimNeck structure, combined with the Powerful-IoUv2 border regression loss function, the model calculation burden and parameter volume are reduced, and the network deployment capability is improved.

Benefits of technology

It achieves a reduction in computational burden and parameter volume while maintaining detection accuracy, reduces device memory and processor requirements for deployment, and adapts to image detection tasks in edge deployment and generalization environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735900A_ABST
    Figure CN118735900A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of defect detection, in particular to a lightweight wind generating set surface defect detection method, which comprises the following steps: acquiring a wind generating set surface defect data set, and preprocessing and labeling the data set; replacing C2f modules of a third layer, a fifth layer, a seventh layer and a ninth layer of a backbone network of the YOLOv8n with C2fStar modules; a SlimNeck structure is introduced into a neck network of YOLOv8n, the reasoning time is shortened, and the detection precision is kept; and performing target positioning on the YOLOv8n model by using a frame regression loss function. The method solves the problem that when an existing YOLO model is improved, detection precision is mainly considered, but light weight is ignored.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of defect detection, and in particular to a method for detecting surface defects of a lightweight wind turbine generator set. Background Art

[0002] In the early stages of wind turbine defects, most of them are minor defects distributed on the surface of the unit, with a small hazard factor and low difficulty in repair. Timely discovery and repair of these defects can effectively prevent their further expansion. Taking effective detection measures to discover defects on the surface of wind turbines as early as possible and repair them in time is the most effective way to reduce accident risks and reduce economic losses.

[0003] Hao Shuai et al. proposed replacing the pyramid attention network (FPN+PANet) structure in the neck network of the original YOLOv5 detection framework with a weighted bidirectional feature pyramid network (BiFPN) structure, so that the multi-scale features of the target can be effectively integrated and the detection network's ability to detect faulty targets under occlusion can be enhanced; Qiu et al. combined the YOLO and CNN models, applied the inverse convolutional neural network to the high-level features of the feature pyramid, used the middle layer of CNN to enrich the feature expression of small targets, and trained the extracted multi-scale convolutional features in the classification model, thereby improving the average accuracy of detecting multiple defects on the surface of the fan.

[0004] The above method is limited to considering the improvement of algorithm accuracy, but does not take into account the actual deployment of the network model. At this stage, there is still a great demand for network models that deploy equipment to detect surface defects of wind turbines, and there is a lack of lightweight models that are friendly to edge-deployed equipment. Summary of the invention

[0005] In view of the shortcomings of the existing methods, the present invention solves the problem that the existing YOLO model is improved by mainly considering the detection accuracy but ignoring the lightweight problem.

[0006] The technical solution adopted by the present invention is: a method for detecting surface defects of a lightweight wind turbine generator set comprises the following steps:

[0007] Step 1: Collect surface defect data sets of wind turbine generator sets, and preprocess and annotate the data sets;

[0008] As a preferred embodiment of the present invention, the types of defects include dirt and damage.

[0009] Step 2: Replace the C2f modules of the third, fifth, seventh, and ninth layers of the YOLOv8n backbone network with C2f_Star modules;

[0010] As a preferred implementation of the present invention, the C2f_Star module replaces the Bottleneck module in the C2f module with the StarNet_Blocks module.

[0011] As a preferred implementation of the present invention, the StarNet_Blocks module includes: adopting a 4-level hierarchical architecture, the original feature map passes through two FC modules after DWConv, and then passes through the star operation, FC module and DWConv in sequence, and finally performs feature fusion with the original feature map.

[0012] Step 3: Introduce the SlimNeck structure into the neck network of YOLOv8n to reduce the inference time and maintain the detection accuracy;

[0013] As a preferred embodiment of the present invention, the SlimNeck structure replaces the C2f modules of the 13th, 16th, 19th and 22nd layers in the neck network of YOLOv8n with VoVGSCSP modules; and replaces the Conv modules of the 17th and 20th layers with GSConv modules.

[0014] As a preferred implementation of the present invention, the VoVGSCSP module performs a first Conv on the input feature map, and then concatenates the input feature map with the output of the first Conv after two GSConvs, and then performs a second Conv.

[0015] Step 4: Use the bounding box regression loss function to locate the target of the YOLOv8n model.

[0016] As a preferred implementation of the present invention, the border regression loss function includes: a Powerful-IoU loss function.

[0017] As a preferred implementation of the present invention, the border regression loss function also includes: a Powerful-IoUv2 loss function.

[0018] As a preferred embodiment of the present invention, a lightweight wind turbine surface defect detection system includes: a memory for storing instructions executable by a processor; and a processor for executing the instructions to implement a lightweight wind turbine surface defect detection method.

[0019] As a preferred embodiment of the present invention, a computer readable medium stores computer program codes, and when the computer program codes are executed by a processor, a method for detecting surface defects of a lightweight wind turbine generator set is implemented.

[0020] Beneficial effects of the present invention:

[0021] 1. Replace the C2f module in the YOLOv8n backbone feature extraction module with the C2f_Star module to lighten the model while maintaining accuracy;

[0022] 2. The lightweight detection structure SlimNeck is used in the neck feature fusion part to maintain the model detection accuracy while reducing the calculation burden and parameter amount;

[0023] 3. Use Powerful-IoUv2 to replace the original border regression loss function, improve the original loss function affected by unreasonable penalty factors, and improve the convergence speed of the network;

[0024] 4. Compared with the standard YOLOv8n network, the improved network of the present invention reduces the demand for device memory and processor required for deployment, has better edge deployment capabilities, and can better adapt to image data detection tasks in a generalized environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a flow chart of the surface defect detection method of a lightweight wind turbine generator set of the present invention;

[0026] Figure 2 To improve the YOLOv8n network structure diagram;

[0027] Figure 3 This is a schematic diagram of the StarNet network structure;

[0028] Figure 4 Schematic diagram of the GSConv module structure;

[0029] Figure 5 It is a schematic diagram of the VoVGSCSP module structure;

[0030] Figure 6 A schematic diagram of the training results of the surface defect detection method for lightweight wind turbines;

[0031] Figure 7 Schematic diagram of the detection results of the surface defect detection method for lightweight wind turbines. DETAILED DESCRIPTION

[0032] The present invention is further described below in conjunction with the accompanying drawings and embodiments. This figure is a simplified schematic diagram, which only illustrates the basic structure of the present invention in a schematic manner, and therefore it only shows the components related to the present invention.

[0033] like Figure 1 As shown, a method for detecting surface defects of a lightweight wind turbine generator set comprises the following steps:

[0034] Step 1: Collect surface defect data sets of wind turbine generator sets, and preprocess and annotate the data sets;

[0035] Firstly, the public wind turbine surface defect dataset was downloaded from the Mendeley Data network platform. Then the initial defect images were cropped and the images without defects were deleted. Finally, LabelImg was used to annotate the surface defects of wind turbines. The wind turbine surface defect dataset has a total of 2995 images. The dataset is divided into training set and test set in a ratio of 8:2. The defect types are dirt and damage.

[0036] Step 2: Replace the C2f module in the YOLOv8n backbone feature extraction module with the C2f_Star module;

[0037] The main function of the YOLOv8n backbone network in the detection model is to extract features from the input image. The schematic diagram of the backbone network structure is as follows: Figure 2 As shown in the Backbone part; the C2f modules of the third, fifth, seventh and ninth layers of the backbone network are replaced by C2f_Star modules, and the C2f_Star module replaces the Bottleneck in the original C2f module with the StarNet_Blocks module.

[0038] The first layer is the Conv module, with 64 channels and a convolution kernel size of 3*3. The input image is convolved, the number of channels becomes 64, and the feature map is reduced to half of the original;

[0039] The second layer is the Conv module, with 128 channels and a convolution kernel size of 3*3. The convolution operation is continued on the feature map, the number of channels becomes 128, and the feature map is reduced to half of the original size.

[0040] The third layer is the C2f_Star module, which has 128 channels and fuses feature maps of different scales.

[0041] The fourth layer is the Conv module, with 256 channels and a convolution kernel size of 3*3. The feature map is convolved again, with the number of channels becoming 256 and the feature map reduced to half of its original size.

[0042] The fifth layer is the C2f_Star module with 256 channels, which further fuses the feature maps;

[0043] The sixth layer is the Conv module, with 512 channels and a convolution kernel size of 3*3. The convolution operation is continued on the feature map, the number of channels becomes 512, and the feature map is reduced to half of the original size.

[0044] The seventh layer is the C2f_Star module with 512 channels, which further fuses the feature maps;

[0045] The eighth layer is the Conv module, with 1024 channels and a convolution kernel size of 3*3. The feature map is convolved again, with the number of channels becoming 1024 and the feature map reduced to half of its original size.

[0046] The ninth layer is the C2f_Star module with 1024 channels, which further fuses the feature maps;

[0047] The tenth layer is the SPPF module with 1024 channels and a pooling kernel size of 5. It performs spatial pyramid pooling operations to extract features at different scales, thereby capturing detailed information of the target object at different scales.

[0048] The C2f_Star module replaces the Bottleneck module in the C2f module with the StarNet_Blocks module; the StarNet layer structure is as follows Figure 3 As shown in Figure 1, StarNet is a layered network that directly uses convolutional layers to downsample the resolution and repeats four StarNet_Blocks modules to extract features. StarNet networks of different widths and depths are shown in Table 1:

[0049] Table 1 StarNet network

[0050]

[0051]

[0052] StarNet_Blocks module such as Figure 3 As shown in the right half of the figure, StarNet_Blocks adopts a 4-level hierarchical architecture. First, the feature map is divided into two paths. One path passes through DWConv, and then the results after passing through one FC module are star-operated; the result after the star operation passes through an FC module and a DWConv; and then the feature fusion is performed with the other original feature map; the FC module consists of a Conv2d, a BatchNorm2d and a ReLU6 activation function.

[0053] The StarNet_Blocks module replaces the sum operation in the traditional network with the element-wise multiplication (star) operation, assuming that the number of multiple output channels in a single-layer neural network is w1,w2∈R (d+1)×(d′+1) , the multi-element input is x∈R (d+1)×n , where d is the number of input channels, d' is the hidden layer dimension, and n is the input data length, then the star operation can be written as:

[0054]

[0055] Among them, i, j are channel labels, and a is the coefficient of each sub-item.

[0056] It represents the fusion of two linear features into a new feature. Each item in the final result represents the coefficient of the nonlinear combination of x, and there are a total of (d+1)(d+2) / 2 items. Therefore, by using the computationally efficient star operation in the d-dimensional space, we can obtain an implicit dimensional feature space of (d+1)(d+2) / 2. This significantly amplifies the feature dimension without incurring any additional computational overhead in a single layer, thereby increasing the expressive power of the model.

[0057] Step 3: Introduce the lightweight detection structure SlimNeck into the neck feature fusion module of YOLOv8n;

[0058] The neck network of YOLOv8n is the part that connects the backbone network and the head network and is responsible for feature fusion and processing. The neck network structure diagram is as follows Figure 2 As shown in the Neck part; for surface defect detection of wind turbines, huge models are difficult to meet the requirements of real-time detection; moreover, the lightweight model constructed by a large number of deep convolutional layers cannot achieve sufficient accuracy; therefore, a hybrid lightweight convolution GSConv is introduced, and the neck structure SlimNeck is designed to replace the Neck part in the original YOLOv8n.

[0059] All C2f modules in the Neck part are replaced with the cross-stage partial network module VoVGSCSP designed by the one-time aggregation method, and all Conv convolutions in the Neck part are replaced with hybrid lightweight convolutions GSConv; the hybrid lightweight convolution GSConv uses shuffling technology to infiltrate the information generated by the channel dense convolution operation into all parts of all information generated by the depth-separable convolution. The time complexity of GSConv convolution and Conv convolution calculation is defined as:

[0060] Time Conv ~O(W·H·K1·K2·C1·C2), (2)

[0061]

[0062] Among them, W is the width of the output feature map; H is the height of the output feature map; K1·K2 is the size of the convolution kernel; C1 is the number of channels of each convolution kernel, which is also the number of channels of the input feature map; C2 is the number of channels of the output feature map.

[0063] The Neck network includes:

[0064] The eleventh layer is the Upsample layer, which performs upsampling and increases the resolution of the feature map by two times;

[0065] The twelfth layer is the Concat layer, which connects the seventh-layer feature map of the backbone network with the feature map processed by the eleventh layer;

[0066] The thirteenth layer is the VoVGSCSP layer, with 512 channels, which processes the feature map;

[0067] The fourteenth layer is the Upsample layer, which performs upsampling and increases the resolution of the feature map by two times;

[0068] The fifteenth layer is the Concat layer, which connects the fifth-layer feature map of the backbone network with the feature map processed by the fourteenth layer;

[0069] The sixteenth layer is the VoVGSCSP layer, which has 256 channels and processes the feature map;

[0070] The seventeenth layer is the GSConv layer, with 256 channels and a convolution kernel size of 3x3. The GSConv operation is performed to preserve the connections between channels.

[0071] The eighteenth layer is the Concat layer, which connects the thirteenth layer feature map of the neck network with the feature map processed by the seventeenth layer;

[0072] The nineteenth layer is the VoVGSCSP layer, with 512 channels, which processes the feature map;

[0073] The 20th layer is the GSConv layer, with 512 channels and a convolution kernel size of 3x3. The GSConv operation is performed to preserve the connections between channels.

[0074] The 21st layer is the Concat layer, which connects the tenth layer feature map of the backbone network with the feature map processed by the 20th layer;

[0075] The 22nd layer is the VoVGSCSP layer, with 1024 channels, which processes the feature map;

[0076] The 23rd layer is the Detect layer, which is used for target detection and generates the final output.

[0077] In order to speed up the calculation process of the final prediction in the network, the image fed to the network almost always needs to undergo the gradual transmission of spatial information to the channel in the backbone network; but each spatial (width and height) compression and channel expansion of the feature map will lead to partial loss of semantic information; the ordinary convolution Conv calculation retains the hidden connections between each channel to the greatest extent, but the deep convolution DWConv completely cuts off these connections; the hybrid lightweight convolution GSConv retains these connections as much as possible with lower time complexity; the GSConv module structure is as follows Figure 4 As shown in the figure, GSConv first performs a normal convolution Conv on the input feature map, then passes through the deep convolution DWConv on one path, and directly splices the result after the deep convolution DWConv on the other path. Finally, a shuffle operation is performed to penetrate the information generated by the ordinary convolution into every part of the information generated by the deep convolution, so that the output of the deep convolution is as close to the ordinary convolution as possible. The GSConv method can make the convolution calculation achieve sufficient accuracy while reducing the computational cost.

[0078] Based on GSConv, a one-time aggregation method is used to design a cross-stage partial network GSCSP module VoVGSCSP. The structure of the VoVGSCSP module is as follows: Figure 5 As shown in the figure, the input feature map is first downsampled by a normal convolution, then passes through two GSConvs, and then concatenated with the result of only one normal convolution, and finally passes through another normal convolution; GSConv in the new neck structure SlimNeck reduces the computational complexity, and VoVGSCSP reduces the inference time and maintains accuracy.

[0079] Step 4: Use Powerful-IoUv2 to replace the original border regression loss function and build a target detection model based on improved YOLOv8n;

[0080] Since the surface defect images of wind turbines are noisy and low in contrast, the model is difficult to locate. Therefore, a powerful loss function Powerful-IoU that combines the target size adaptive penalty factor and the gradient adjustment function based on the anchor box quality is used. A non-monotonic attention layer is introduced on the basis of Powerful-IoU, and it is combined with Powerful-IoU to obtain a new loss function Powerful-IoUv2. Powerful-IoUv2 replaces the original CIoU border regression loss function of YOLOv8n, which improves the problem that the original loss function is affected by unreasonable penalty factors, causing the anchor box to expand during the regression process, significantly slowing down the convergence speed.

[0081] The Powerful-IoU loss function is as follows:

[0082]

[0083] Among them, B is the anchor box, B gt is the real frame, L IoU is the bounding box loss function; L PIoU is the Powerful-IoU bounding box loss function; dw1, dw2, dh1, dh2 are the absolute values ​​of the distances between the corresponding edges of the anchor box and the true box, w gt 、h gt Represents the width and height of the ground truth box.

[0084] The Powerful-IoUv2 loss function is as follows:

[0085] q=ep,q∈(0,1],

[0086]

[0087] The penalty factors p and q are used in Formula 5 to measure the quality of the anchor box. The range of q is from 0 to 1. When q = 1, p = 0, indicating that the anchor box and the true box are completely aligned. u(x) represents the attention function, and λ is a hyperparameter that controls the behavior of the attention function. L PIoU_v2 is the Powerful-IoUv2 bounding box loss function.

[0088] The dataset is trained on the improved YOLOv8n network, the batch size is set to 16, the total number of iterations is 350 rounds, and the training platform parameters are shown in Table 2.

[0089] Table 2 Experimental hardware and software platform

[0090]

[0091] The detection accuracy and edge application capability of the improved algorithm are evaluated. The parameter size (Params) and the operator point size (GFLOPs) determine the demand for device memory channels and the pressure of the processor to process image parameters when the network model is deployed. The detection accuracy determines the ability and practicality of the model of the present invention to perform edge detection. This dataset is trained on the standard YOLOv8n and compared in the above three aspects. The average precision mean mAP@0.5 when IoU=0.5 is selected as the detection accuracy. The ablation experiment results are shown in Table 3.

[0092] Table 3 Ablation experiment

[0093]

[0094]

[0095] The second to fifth rows in Table 3 are the experimental data comparison after the backbone network of YOLOv8n is replaced with StarNet networks of different widths and depths. The sixth row is the experimental data after YOLOv8n is replaced with the C2f_Star module. Comparing the experimental data from the second to sixth rows, after YOLOv8n is replaced with the C2f_Star module, the detection accuracy, parameter amount and calculation amount are significantly better than those of the StarNet network. The lightweight detection structure SlimNeck reduces the parameter amount and calculation amount while maintaining the accuracy, and the Powerful-IoUv2 loss function improves the average accuracy of the detection of various defects on the fan surface.

[0096] Compared with the standard YOLOv8n, the improved YOLOv8n network model of the present invention has improved mAP@0.5 by 1%, reduced the number of parameters by 16%, and reduced GFLOPs by 20%, greatly reducing the pressure requirements on the memory and processor of edge deployment devices; Figure 6 The curve graph in shows the performance of the model of the present invention during the training process; Figure 7 A schematic diagram of the wind turbine surface defect detection results is shown.

[0097] Based on the above ideal embodiments of the present invention, the relevant staff can make various changes and modifications without departing from the technical concept of the present invention through the above description. The technical scope of the present invention is not limited to the contents of the specification, and its technical scope must be determined according to the scope of the claims.

Claims

1. A method for detecting surface defects of a lightweight wind turbine generator set, characterized in that: The following steps are involved: Step 1: Collect surface defect data sets of wind turbine generator sets, and preprocess and annotate the data sets; Step 2: Replace the C2f modules of the third, fifth, seventh, and ninth layers of the YOLOv8n backbone network with C2f_Star modules; Step 3: Introduce the SlimNeck structure into the neck network of YOLOv8n to reduce the inference time and maintain the detection accuracy; Step 4: Use the bounding box regression loss function to locate the target of the YOLOv8n model.

2. The method for detecting surface defects of a lightweight wind turbine generator set according to claim 1, characterized in that: The C2f_Star module replaces the Bottleneck module in the C2f module with the StarNet_Blocks module.

3. The method for detecting surface defects of a lightweight wind turbine generator set according to claim 2, characterized in that: The StarNet_Blocks module adopts a 4-level hierarchical architecture. The original feature map passes through two FC modules after DWConv, and then passes through the star operation, FC module and DWConv in sequence, and finally performs feature fusion with the original feature map.

4. The method for detecting surface defects of a lightweight wind turbine generator set according to claim 1, characterized in that: The SlimNeck structure replaces the C2f modules of the 13th, 16th, 19th, and 22nd layers in the neck network of YOLOv8n with VoVGSCSP modules; and replaces the Conv modules of the 17th and 20th layers with GSConv modules.

5. The method for detecting surface defects of a lightweight wind turbine generator set according to claim 4, characterized in that: The VoVGSCSP module performs the first Conv on the input feature map, then concatenates it with the output of the first Conv after two GSConvs, and then performs the second Conv.

6. The method for detecting surface defects of a lightweight wind turbine generator set according to claim 1, characterized in that: The bounding box regression loss function includes: Powerful-IoU loss function.

7. The method for detecting surface defects of a lightweight wind turbine generator set according to claim 1, characterized in that: The border regression loss function also includes: Powerful-IoUv2 loss function.

8. The method for detecting surface defects of a lightweight wind turbine generator set according to claim 1, characterized in that: Types of defects include dirt and damage.

9. Lightweight wind turbine surface defect detection system, characterized in that: include: a memory for storing instructions executable by a processor; A processor, used to execute instructions to implement the lightweight wind turbine surface defect detection method as described in any one of claims 1-8.

10. A computer readable medium storing computer program code, characterized in that: When the computer program code is executed by a processor, the computer program code implements the method for detecting surface defects of a lightweight wind turbine generator set as described in any one of claims 1 to 8.

Citation Information

Cited By

  • PCB surface defect detection method based on improved YOLOv8

    CN119251199A

  • PCB surface defect detection method, system and equipment based on improved YOLOv8 and medium

    CN119399140A

  • Eye fundus image classification method and system

    CN119399546A

  • Fundus Image Classification Method and System

    CN119399546B

  • Fan blade surface defect detection method based on improved YOLOv8n

    CN119478491A