Online detection and quantification method of fan surface defects based on drone and deep learning
By constructing a target detection and semantic segmentation network, combined with deep learning and drone technology, the real-time and multi-scale feature extraction problems of wind turbine surface defect detection are solved, achieving efficient identification and damage assessment of wind turbine surface defects, and providing more detailed information defect information.
Patent Information
- Application Number
- CN202410331439.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-22
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-03-22
AI Technical Summary
Existing wind turbine surface defect detection methods based on drones and deep learning are difficult to achieve real-time detection, and traditional algorithms can only output a single classification and positioning result, which cannot meet the needs of operation and maintenance engineers for obtaining defect damage risk information.
An online wind turbine surface defect detection and quantification method based on deep learning is adopted. By constructing a target detection and semantic segmentation network, the micro-scale defect feature detection head is used to fuse shallower and deeper features, combined with the shift window self-attention operation and lightweight Semantic segmentation realizes multi-scale feature extraction and real-time detection of surface defects of wind turbines, and further uses the camera imaging principle to perform defect size conversion and grade classification.
It achieves highly automated, low-cost, fast and accurate identification and damage assessment of wind turbine surface defects, provides more defect damage information, improves the ability to detect multi-scale features and multi-task network structure design, and satisfies the needs of operation and maintenance engineers. The need for real-time damage assessment.
Smart Images

Figure CN118196041B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer vision and wind turbines, and specifically relates to an online detection and quantification method for wind turbine surface defects based on unmanned aerial vehicles and deep learning. Background Art
[0002] Wind energy is one of the important sustainable and renewable energy sources. It has been developing continuously in recent years, and the frequency of wind turbine accidents has also increased year by year. Early detection of possible blade damage and timely healthy operation and maintenance in the early stage of failure can greatly reduce labor costs, minimize downtime, and improve the wind energy collection capacity of wind turbine plants, which is of great significance to the long-term reliable operation of wind power plants.
[0003] At present, the wind turbine surface defect detection method using drones and deep learning has been widely studied because of its advantages of high efficiency, convenience, high degree of automation and low cost. This technology uses a large amount of wind turbine surface image data to train the constructed deep learning model, so that the model learns the key features of the image. The trained model can automatically identify and classify surface defects of wind turbines. This automated method not only greatly improves the speed and efficiency of detection, but also reduces the common problems of missed detection and false detection in manual inspection through continuous learning and optimization.
[0004] In the existing technology, the surface defect detection methods of wind turbines based on visual algorithms are all based on offline detection based on images collected by drones, which makes it difficult to provide real-time detection results. Traditional surface defect detection algorithms for wind turbines can only output a single classification and positioning result, which is difficult to meet the needs of operation and maintenance engineers for obtaining defect damage risk information. Summary of the invention
[0005] In order to solve the shortcomings of the prior art and achieve the purpose of high automation, low cost, fast and accurate wind turbine surface target feature recognition and damage assessment, the present invention adopts the following technical solutions:
[0006] A method for online detection and quantification of fan surface defects based on deep learning, comprising the following steps:
[0007] Step S1: Obtain a fan surface defect image and its corresponding category label to generate a fan surface defect image data set;
[0008] Step S2: construct a target detection and semantic segmentation network weight model, select a single-stage target detection network as the basic network for target detection, fuse shallower features with deeper features through a micro-scale defect feature detection head, increase the network's sensitivity to micro-scale defect features, avoid missing micro-scale features, and solve the problem of reduced accuracy caused by a large scale range of defect features in wind turbine surface defect detection based on drones. Extract global feature information based on global feature fusion of shifted window self-attention operation, perform lightweight semantic segmentation of multi-scale feature fusion on the global feature information, and obtain semantic segmentation results; train the network weight model based on a dataset of fan surface defect images;
[0009] Step S3: using the trained network weight model to detect and segment the surface of the fan, and obtaining defect detection results and defect feature semantic segmentation results of the fan surface defect image;
[0010] Step S4: utilizing the camera imaging principle, based on the image acquisition parameters and the semantic segmentation result of the defect features, converting the defect from pixel size to real size, and classifying the defect level based on the real size of the defect.
[0011] Furthermore, in step S2, a global feature fusion module based on a shifted window self-attention operation is used to replace the C3 module of the basic network for feature extraction. For an input X with m features, each feature length is n, it is mapped to three different spaces through a fully connected layer, namely, a query matrix Q, a value matrix V, and a key matrix K. The correlation between each row vector in the matrix is calculated, and each row vector is weighted averaged according to the result, and the result is used to replace the original vector of each row.
[0012]
[0013] A sliding window is used to slide the segmentation on the feature map, and self-attention calculations are continuously performed within and between windows. By continuously covering the boundary area of the original window, the model is helped to capture the features existing in two adjacent windows, thereby avoiding the problem of small and fixed receptive field and ignoring the extraction of global information of the entire image.
[0014] Furthermore, the lightweight semantic segmentation in step S2 first splices the acquired global feature information, and then performs multi-scale parallel pooling to obtain multi-scale features containing local hierarchical relationships. After the multi-scale features are spliced in the channel dimension, the pooling layer is used to reduce the spatial dimension, the fused features are pooled into a feature vector, and a weight vector representing the importance of each channel is calculated, and the weight vector is weightedly superimposed on the spliced feature map to emphasize the target features and retain the original feature information. Finally, an accurate semantic segmentation map is obtained by upsampling.
[0015] Furthermore, in step S3, a boundary point set is extracted based on the semantic segmentation map to obtain a minimum convex polygon covering all boundary points of the semantic segmentation map. For each foreground pixel of the minimum convex polygon, pixel information of other points in its connected neighborhood is obtained. Based on the number of non-zero pixels of other points, the change between zero and non-zero between pixels, and whether the pixels as corner points of the connected neighborhood are zero, part of the foreground pixels are converted into background pixels to obtain skeleton pixels of surface defects of the fan, and the surface defect information of the fan is obtained based on the skeleton pixels.
[0016] Furthermore, the connected neighborhood is an 8-connected neighborhood around the foreground pixel, and the following two-stage iterative processing is performed on each foreground pixel:
[0017] Phase 1:
[0018] 2≤B(P1)≤6
[0019] A(P1)=1
[0020] P2×P4×P6=0
[0021] P4×P6×P8=0
[0022] Where P1 represents a foreground pixel, P2 to P9 represent the adjacent pixels marked clockwise starting from the point directly above P1, B(P1) represents the number of non-zero pixels in the 8 adjacent pixels, and A(P1) represents the number of times the pixel value changes from zero to non-zero in the 8 adjacent pixels from P2 to P9; all foreground pixels that meet the conditions of stage 1 are converted to background pixels, and the remaining foreground pixels are then judged for the conditions of stage 2;
[0023] Phase 2:
[0024] 2≤B(P1)≤6
[0025] A(P1)=1
[0026] P2×P4×P8=0
[0027] P2×P6×P8=0
[0028] Convert all foreground pixels that meet the conditions of stage 2 to background pixels, and continue the next round of iterations consisting of stage 1 and stage 2. The algorithm needs to be used to continuously iterate on the image until no new pixels are deleted after a certain iteration. The algorithm ends and the structure composed of the remaining foreground pixels is used as the skeleton of the fan surface defect.
[0029] Furthermore, in the step S1, the fan surface defect images collected by the drone are classified, the defect category labels include cracks, each defect category is labeled through target detection and target segmentation, and a data set of fan surface defect images is generated for subsequent training; in the step S3, the obtained skeleton result is counted by pixel count to represent the length information of the crack defect:
[0030] l s =N l a
[0031] Where a represents the length of a single pixel in the camera; N l Indicates the pixel length of the skeleton, l s Indicates the pixel length of the defect; in step S4, the length information is converted from pixel size to real size:
[0032]
[0033] Among them, l r represents the actual length of the defect, f represents the focal length of the camera during shooting, and d represents the distance between the drone camera and the surface of the wind turbine.
[0034] Furthermore, in the step S1, the fan surface defect images collected by the drone are classified, and the defect category labels include leading edge erosion and / or paint peeling. Each defect category is labeled through target detection and target segmentation to generate a data set of fan surface defect images for subsequent training; in the step S3, the number of defect pixels in the semantic segmentation map is counted to represent the leading edge erosion and / or paint peeling defect area information:
[0035] s s =N s a 2
[0036] Where a represents the length of a single pixel in the camera; Ns represents the pixel area in the semantic segmentation map output by RDSS-YOLO NN, and s s The pixel area representing the defect;
[0037] In step S4, the area information is converted from pixel size to real size:
[0038]
[0039] Among them, s r represents the actual area of the defect, f represents the focal length of the camera during shooting, and d represents the distance between the drone and the surface of the wind turbine.
[0040] A method for online detection and quantification of fan surface defects based on unmanned aerial vehicles and deep learning is disclosed. A streaming media server is built to connect with the unmanned aerial vehicle and a network weight model respectively. The network weight model is a network weight model trained according to the method for online detection and quantification of fan surface defects based on deep learning. Based on the streaming media server, the image is transmitted back in real time by the unmanned aerial vehicle camera and input into the network weight model to obtain real-time damage assessment of fan surface defects.
[0041] A device for online detection and quantification of fan surface defects based on deep learning, comprising a data set construction module, a target detection and semantic segmentation module, and a defect assessment module;
[0042] The data set construction module obtains the fan surface defect images and their corresponding category labels to generate a data set of fan surface defect images;
[0043] The target detection and semantic segmentation module is used to construct a network weight model, select a single-stage target detection network as the basic network for target detection, fuse shallower features with deeper features through a micro-scale defect feature detection head, increase the network's sensitivity to micro-scale defect features, avoid missing micro-scale features, and solve the problem of reduced accuracy caused by the large scale range of defect features in fan surface defect detection based on drones. Global feature fusion based on the shifted window self-attention operation extracts global feature information, performs lightweight semantic segmentation of multi-scale feature fusion on the global feature information, and obtains semantic segmentation results; trains a network weight model based on a data set of fan surface defect images; uses the trained network weight model to detect and segment the fan surface, and obtains defect detection results and defect feature semantic segmentation results of the fan surface defect image;
[0044] The defect assessment module utilizes the camera imaging principle, based on image acquisition parameters and the defect feature semantic segmentation result, to convert the defect from pixel size to real size, and classifies the defect based on the real size of the defect.
[0045] An online detection and quantification system for fan surface defects based on drones and deep learning, comprising a streaming media server and a drone and a defect online detection and quantification device respectively connected thereto;
[0046] The drone takes images of the surface of the wind turbine through a camera;
[0047] The streaming media server is used to realize the real-time transmission of the images shot by the drone;
[0048] The defect online detection and quantification device is the fan surface defect online detection and quantification device based on deep learning, which performs damage assessment of fan defects based on real-time feedback images.
[0049] The advantages and beneficial effects of the present invention are:
[0050] (1) Compared with the existing target detection network, the RDSS-YOLO NN of the present invention addresses the multi-scale problem of surface defect images of wind turbines taken by drones, adopts a global feature fusion module to enhance the network feature extraction capability, and adds a smaller-scale detection module, thereby improving the detection capability of multi-scale features.
[0051] (2) The present invention designs a lightweight semantic segmentation module based on a sparse structure pyramid and a feature fusion module, and integrates the segmentation module into the detection network, thereby enhancing the network's understanding of image semantic information, improving the effect of multi-scale defect detection, and realizing multi-task network structure design.
[0052] (3) Compared with the existing wind turbine surface defect detection technology, the present invention uses the semantic segmentation map output by the improved network to quantify the defect size and determine the degree of damage, providing more defect damage information for operation and maintenance engineers. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 It is an overall flow chart of the method in the embodiment of the present invention.
[0054] Figure 2 It is a flow chart of making a wind turbine surface defect image data set in an embodiment of the present invention.
[0055] Figure 3 Schematic diagram of the overall structure of RDSS-YOLO NN in an embodiment of the present invention.
[0056] Figure 4a Schematic diagram of the structure of the lightweight semantic segmentation module in the embodiment of the present invention
[0057] Figure 4b It is a structural diagram of a feature fusion module in an embodiment of the present invention.
[0058] Figure 5 It is a schematic diagram of convex hull fitting and skeleton extraction in an embodiment of the present invention.
[0059] Figure 6 1 is a schematic diagram of camera imaging principle in an embodiment of the present invention.
[0060] Figure 7 It is a schematic diagram of the results of the wind turbine surface defect damage assessment in an embodiment of the present invention. DETAILED DESCRIPTION
[0061] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.
[0062] like Figure 1 As shown in the figure, the online detection and quantification method of fan surface defects based on drone and deep learning includes the following steps:
[0063] Step S1: Obtain the fan surface defect image and its corresponding category label to generate a data set of the fan surface defect image.
[0064] Specifically, the images of wind turbine surface defects collected by drones are classified, screened and cropped. The category labels include cracks, leading edge erosion, and paint peeling. Each defect category is labeled through target detection and target segmentation to generate a data set of wind turbine surface defect images for subsequent training.
[0065] In the embodiment of the present invention, Figure 2 As shown in the figure, the surface defect images of the wind turbine collected by the drone were screened to obtain three types of surface defect data of the wind turbine: cracks, leading edge erosion, and paint peeling. The original image was then cropped to 1000×1000 pixels to highlight the defect features and improve the efficiency of subsequent network training. The three categories were annotated in target detection format and target segmentation format. The target detection format used a rectangular box to select the target, and stored the target category, the x coordinate of the center point of the rectangular box, the y coordinate of the center point of the rectangular box, the height h of the rectangular box, and the width w of the rectangular box in text format; the target segmentation format used polygons to depict the outer contour of the target feature, and the results were saved in png format. The image pixels surrounded by the polygons were the category codes, and the remaining pixels were 0, completing the annotation and preparation of the data set.
[0066] Step S2: Construct a target detection and semantic segmentation network weight model, select a single-stage target detection network as the basic network for target detection, fuse shallower features with deeper features through a micro-scale defect feature detection head, extract global feature information based on global feature fusion of shifted window self-attention operation, use lightweight semantic segmentation to perform multi-scale feature fusion on the global feature information and obtain a semantic segmentation map; train the network weight model based on a dataset of defect images on the surface of the wind turbine.
[0067] Specifically, the single-stage target detection network YOLOV5 is selected as the improved basic network, and the network feature extraction structure and output structure are optimized and enhanced by a global feature fusion module based on the shifted self-attention operation and by adding a new detection head. The designed lightweight segmentation module is fused with the detection output structure to obtain a real-time target detection and semantic segmentation network (Real-time Detection and Sematic Segmentation–YOLO NN, referred to as RDSS-YOLO NN) with an output structure of target detection and segmentation. Subsequently, the RDSS-YOLO NN is trained using the fan surface defect dataset generated in step S1 to obtain the RDSS-YOLO NN weight model after parameter optimization.
[0068] In the embodiment of the present invention, Figure 3 As shown in the figure, firstly, a global feature fusion module is designed based on the shift window self-attention operation. The core of this module is the self-attention mechanism. For example, for an input X with m features, each feature length is n, the process of feature extraction using the self-attention mechanism is as follows: First, the input X will be mapped to three different spaces through the fully connected layer, namely the query matrix (Query, Q), the value matrix (Value, V) and the key matrix (Key, K). The correlation between each row vector in the matrix is calculated, and each row vector is weighted averaged according to the result, and the result is used to replace the original vector of each row.
[0069]
[0070] Then, a sliding window is used to slide the segmentation on the feature map, and self-attention calculations are continuously performed within and between windows. By continuously covering the boundary area of the original window, the model is helped to capture the features existing in two adjacent windows. The global feature fusion module replaces the original C3 module to avoid the problem of small and fixed receptive field and ignoring the extraction of global information of the entire image.
[0071] Secondly, the YOLOv5s neck FPN module was deepened, and a new micro-scale defect feature detection head was added. The input features of this feature detection head come from the combination of the 2nd layer features and the 19th layer features of the network. The 2nd layer of the network downsamples the image by 4 times, retaining more feature detail information in the image, while the features of the 19th layer of the network contain more feature abstract semantic information. By fusing shallower features with deeper features, the network's sensitivity to micro-scale defect features is increased. Through such an operation, the network can output four scale detection frames of 1 / 8, 1 / 16, 1 / 32, and 1 / 64 of the input image size, avoiding the omission of micro-scale features and solving the problem of reduced accuracy caused by the large scale range of defect features in the surface defect detection of wind turbines based on drones.
[0072] In the embodiment of the present invention, Figure 4a , Figure 4b As shown in the figure, a lightweight semantic segmentation module is designed using the Pyramid Pooling Module (PPM) and the Feature Fusion Module (FFM). The output of the global feature fusion module after the 24th, 27th and 30th layers in the optimized target detection network is used as the input of the segmentation module. After splicing, 1×1, 2×2, 3×3 and 6×6 parallel pooling is performed to obtain a multi-scale feature map containing local hierarchical relationships. The multi-scale features are then spliced in the channel dimension, and then the spatial dimension is reduced using the pooling layer. The fused features are pooled into feature vectors, and the weight vectors representing the importance of each channel are calculated. The weight vectors are weighted and superimposed with the original feature map to emphasize the target features and retain the original feature information. Finally, accurate semantic segmentation results are obtained through upsampling.
[0073] Step S3: using the trained network weight model to detect and segment the surface of the fan, and obtaining defect detection results and defect feature semantic segmentation results of the fan surface defect image;
[0074] Specifically, the convex hull fitting algorithm and thinning algorithm are used for the crack semantic segmentation results to complete the extraction of crack length information; for the semantic segmentation results of front edge erosion and paint peeling, the number of pixels in the defective part is counted to complete the extraction of front edge erosion and paint peeling area information.
[0075] In the embodiment of the present invention, Figure 5 As shown in the figure, the minimum convex polygon covering all boundary points of the semantic segmentation map is obtained by Graham scanning. Each foreground pixel of the minimum convex polygon is then marked as P1, and the other points of its 8-connected neighborhood are marked as "P2" to "P9" in clockwise order starting from the point directly above "P1". The following two-stage iterative processing is performed for each foreground pixel:
[0076] Phase 1:
[0077] 2≤B(P1)≤6
[0078] A(P1)=1
[0079] P2×P4×P6=0
[0080] P4×P6×P8=0
[0081] Among them, B(P1) represents the number of non-zero pixels among eight adjacent pixels, and A(P1) represents the number of times the pixel value changes from 0 to 1 in a clockwise direction from "P2" to "P9" among eight adjacent pixels.
[0082] "P1" that meets the stage 1 condition will be marked. When all foreground pixels have been judged by the stage 1 condition, the marked foreground pixels will be converted to background pixels. Then the remaining foreground pixels will be judged by the stage 2 condition:
[0083] 2≤B(P1)≤6
[0084] A(P1)=1
[0085] P2×P4×P8=0
[0086] P2×P6×P8=0
[0087] "P1" that meets the conditions of stage 2 will be marked. When all foreground pixels are judged by the conditions of stage 2, the marked foreground pixels will be converted to background pixels. Stages 1 and 2 constitute a round of iterations, and the algorithm needs to be used to continuously iterate on the image until no new pixels are deleted after a certain iteration. The algorithm ends, and the structure composed of the remaining pixels is the skeleton of the surface defect of the fan. The number of pixels of the skeleton result is counted to represent the length information of the crack defect; the number of defect pixels in the semantic segmentation map is counted to represent the area information of the leading edge erosion and paint peeling defects, as shown below:
[0088] l s =N l a
[0089] s s =N s a 2
[0090] Where a represents the length of a single pixel in the camera; N l Represents the pixel length of the skeleton; Ns represents the pixel area in the semantic segmentation map output by RDSS-YOLONN.
[0091] Step S4: Using the camera imaging principle, based on the image acquisition parameters and the length and area information obtained in step S3, the crack defect length, leading edge erosion defect area and paint peeling defect area are converted from pixel size to real size, and defect levels are divided based on the real size of the defects. Different thresholds are set for different defects, and the calculated actual size of the fan surface defects are divided into three damage risks: low risk, medium risk and high risk.
[0092] In the embodiment of the present invention, Figure 6 As shown in the figure, based on the imaging principle of UAV, the camera focal length, shooting distance and camera parameters during the acquisition process are used to calculate the crack defect length, leading edge erosion defect area and paint peeling defect area from pixel size to actual size. The formula is as follows:
[0093]
[0094]
[0095] Among them, l s and s Represent the pixel length and area of the defect respectively; l r and r Represent the actual length and area of the defect respectively; f represents the focal length of the camera during shooting; d represents the distance between the drone and the surface of the wind turbine. For crack defects, length is used as the evaluation indicator; for leading edge erosion and paint peeling defects, area is used as the evaluation indicator. According to the threshold settings of cracks: low risk <0.3m≤medium risk≤0.5m<high risk; leading edge erosion: low risk <0.1m2≤medium risk≤0.25m2<high risk; paint peeling: low risk <0.1m2≤medium risk≤0.5m2<high risk, the calculated true size of the wind turbine surface defects are divided into three damage risks: low risk, medium risk, and high risk. The results are as follows Figure 7 shown.
[0096] Step S5: Building a streaming media server to connect to the drone and the trained target detection and semantic segmentation network weight model respectively, and transmitting the image back in real time through the drone's camera and inputting it into the network weight model to obtain a real-time damage assessment of the wind turbine surface defects.
[0097] In the embodiment of the present invention, NGINX is used to build an RTMP streaming media server. After the construction is completed and NGINX is started, the drone's customized live broadcast function is used to connect to the built RTMP streaming media server to achieve real-time image transmission of the drone. The built RTMP server is connected to the detection network with trained weight parameters, and the real-time image of the drone is used as the network input to detect and segment the image defect features. The semantic segmentation image is used to perform convex hull fitting and skeleton extraction, and real-time blade surface defect detection, segmentation and quantification are performed to evaluate the damage of the fan surface defects.
[0098] Specifically, NGINX builds an RTMP server, connects the drone image acquisition module, algorithm input module and risk assessment module. The algorithm analyzes the input signal to achieve real-time detection and assessment of wind turbine surface defects.
[0099] An online detection and quantification system for fan surface defects based on drones and deep learning, comprising a streaming media server and drones respectively connected thereto and a fan surface defect online detection and quantification device based on deep learning, the device comprising a data set construction module, a target detection and semantic segmentation module, and a defect assessment module;
[0100] Drones, which use cameras to capture images of the wind turbine surface;
[0101] Streaming media server, used to achieve real-time transmission of drone footage;
[0102] A data set construction module obtains the fan surface defect images and their corresponding category labels to generate a data set of fan surface defect images;
[0103] The target detection and semantic segmentation module is used to build a network weight model, select a single-stage target detection network as the basic network for target detection, and fuse shallower features with deeper features through a micro-scale defect feature detection head to increase the network's sensitivity to micro-scale defect features, avoid missing micro-scale features, and solve the problem of reduced accuracy caused by the large scale range of defect features in fan surface defect detection based on drones. The global feature fusion based on the shifted window self-attention operation extracts global feature information, and performs lightweight semantic segmentation of multi-scale feature fusion on the global feature information to obtain semantic segmentation results; the network weight model is trained based on a data set of fan surface defect images; the fan surface is detected and segmented using the trained network weight model to obtain defect detection results and defect feature semantic segmentation results of the fan surface defect image;
[0104] The defect assessment module utilizes the camera imaging principle, based on the image acquisition parameters and the semantic segmentation results of the defect features, to convert the defect from pixel size to real size, and classifies the defect based on the real size of the defect.
[0105] The implementation method of this part is similar to that of the above method embodiment and will not be repeated here.
[0106] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some or all of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for online detection and quantification of fan surface defects based on deep learning. Features The steps include: Step S1: Obtain a fan surface defect image and its corresponding category label to generate a fan surface defect image data set; Step S2: Construct a target detection and semantic segmentation network weight model, select a single-stage target detection network as the basic network for target detection, fuse shallow features with deep features through a micro-scale defect feature detection head, extract global feature information based on global feature fusion of shifted window self-attention operation, perform lightweight semantic segmentation of multi-scale feature fusion on the global feature information, and obtain semantic segmentation results; train the network weight model based on a dataset of defect images on the surface of the wind turbine; A global feature fusion module based on shifted window self-attention operation is used for feature extraction. For an input X with m features, each with a feature length of n, it is mapped to three different spaces through a fully connected layer, namely the query matrix Q, the value matrix V, and the key matrix K. The correlation between each row vector in the matrix is calculated, and each row vector is weighted averaged according to the result, and the result is used to replace the original vector of each row. Use sliding windows to perform segmentation on the feature map, and continuously perform self-attention calculations within and between windows. By continuously covering the boundary area of the original window, the features existing in two adjacent windows are captured. The lightweight semantic segmentation first splices the acquired global feature information, then performs multi-scale parallel pooling to obtain multi-scale features containing local hierarchical relationships. After the multi-scale features are spliced in the channel dimension, the pooling layer is used to reduce the spatial dimension, the fused features are pooled into feature vectors, and the weight vector representing the importance of each channel is calculated. The weight vector is weightedly superimposed with the spliced feature map, and finally a semantic segmentation map is obtained by upsampling; Step S3: using the trained network weight model to detect and segment the surface of the fan, and obtaining defect detection results and defect feature semantic segmentation results of the fan surface defect image; Based on the semantic segmentation map, a boundary point set is extracted to obtain the minimum convex polygon covering all boundary points of the semantic segmentation map. For each foreground pixel of the minimum convex polygon, pixel information of other points in its connected neighborhood is obtained. Based on the number of non-zero pixels of other points, the change between zero and non-zero between pixels, and whether the pixels as corner points of the connected neighborhood are zero, part of the foreground pixels are converted into background pixels to obtain skeleton pixels of defects on the surface of the wind turbine, and the defect information of the wind turbine is obtained according to the skeleton pixels. Step S4: using the camera imaging principle, based on the image acquisition parameters and the semantic segmentation result of the defect features, converting the defect from the pixel size to the real size, and classifying the defect level based on the real size of the defect; A streaming media server is built to connect with the drone and the network weight model respectively. The network weight model is a trained network weight model. Based on the streaming media server, the image is transmitted back in real time by the drone camera and input into the network weight model to obtain real-time damage assessment of wind turbine surface defects.
2. According to the deep learning-based online detection and quantification method for fan surface defects in claim 1, Features: The connected neighborhood is an 8-connected neighborhood around the foreground pixel, and the following two-stage iterative processing is performed on each foreground pixel: Phase 1: 2≤B(P 1 )≤6 A(P 1 )=1 P 2 ×P 4 ×P 6 =0 P 4 ×P 6 ×P 8 =0 Among them, P1 represents the foreground pixel, P2 to P9 represent the adjacent pixels marked clockwise starting from the point directly above P1, and B(P 1 ) represents the number of non-zero pixels among the eight adjacent pixels, A(P 1 ) indicates that the pixel value among the 8 adjacent pixels is from P 2 To P 9 The number of changes from zero to non-zero; convert all foreground pixels that meet the conditions of stage one to background pixels, and then judge the remaining foreground pixels for the conditions of stage two; Phase 2: 2≤B(P 1 )≤6 A(P 1 )=1 P 2 ×P 4 ×P 8 =0 P 2 ×P 6 ×P 8 =0 All foreground pixels that meet the conditions of stage 2 are converted into background pixels, and the next round of iterations consisting of stage 1 and stage 2 is continued, and the structure composed of the remaining foreground pixels is used as the skeleton of the surface defects of the wind turbine.
3. According to claim 1, the method for online detection and quantification of fan surface defects based on deep learning, Features: In the step S1, the collected fan surface defect images are classified, the defect category labels include cracks, each defect category is labeled, and a data set of fan surface defect images is generated; in the step S3, the obtained skeleton result is counted by the number of pixels to represent the length information of the crack defect: l s =N l a Where a represents the length of a single pixel in the camera; N l Indicates the pixel length of the skeleton, l s Represents the pixel length of the defect; In step S4, the length information is converted from pixel size to real size: Among them, l r represents the actual length of the defect, f represents the focal length of the camera during shooting, and d represents the distance between the camera and the surface of the wind turbine.
4. According to claim 1, the method for online detection and quantification of fan surface defects based on deep learning, Features: In the step S1, the fan surface defect images collected by the drone are classified, and the defect category labels include leading edge erosion and / or paint peeling. Each defect category is labeled to generate a data set of fan surface defect images; in the step S3, the number of defect pixels in the semantic segmentation map is counted to represent the leading edge erosion and / or paint peeling defect area information: s s =N s a 2 Among them, a represents the length of a single pixel in the camera; Ns represents the pixel area in the semantic segmentation map, and s s The pixel area representing the defect; In step S4, the area information is converted from pixel size to real size: Among them, s r represents the actual area of the defect, f represents the focal length of the camera during shooting, and d represents the distance from the surface of the wind turbine.
5. An online detection and quantification device for the online detection and quantification method of fan surface defects based on deep learning according to claim 1, comprising a data set construction module, a target detection and semantic segmentation module, and a defect assessment module. Features: The data set construction module obtains the fan surface defect images and their corresponding category labels to generate a data set of fan surface defect images; The target detection and semantic segmentation module is used to construct a network weight model, select a single-stage target detection network as a basic network for target detection, fuse shallow features and deep features through a micro-scale defect feature detection head, extract global feature information based on global feature fusion of a shifted window self-attention operation, perform lightweight semantic segmentation of multi-scale feature fusion on the global feature information, and obtain semantic segmentation results; train a network weight model based on a data set of defect images on the surface of a fan; use the trained network weight model to detect and segment the surface of the fan, and obtain defect detection results and defect feature semantic segmentation results of the defect images on the surface of the fan; The defect assessment module utilizes the camera imaging principle, based on image acquisition parameters and the defect feature semantic segmentation result, to convert the defect from pixel size to real size, and classifies the defect based on the real size of the defect.
6. A wind turbine surface defect online detection and quantification system based on drones and deep learning, comprising a streaming media server and drones and defect online detection and quantification devices respectively connected thereto, Features: The drone takes images of the surface of the wind turbine through a camera; The streaming media server is used to realize the real-time transmission of the images shot by the drone; The defect online detection and quantification device is the online detection and quantification device according to claim 5, which performs damage assessment of fan defects based on the real-time returned images.
Citation Information
Patent Citations
Fan surface defect online detection and segmentation method based on unmanned aerial vehicle and deep learning
CN116030050A
Cross-scale defect detection method based on deep learning
US20230306577A1
