Wind power blade surface damage detection method and device, electronic equipment and storage medium

By combining the PaDiM unsupervised detection model with ConvNeXt and self-attention mechanisms, the problems of damage type diversity and high-resolution image processing in wind turbine blade surface damage detection are solved, achieving high accuracy in outdoor uncontrolled environments. Damage detection.

CN118587167APending Publication Date: 2024-09-03HENAN POLYTECHNIC UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410643541.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing wind turbine blade surface damage detection methods have challenges in dealing with the diversity of damage types and insufficient samples. Especially in outdoor uncontrolled environments, it is difficult to accurately locate the damage area, and the existing algorithm has limited high-resolution image processing capabilities. insufficient.

Method used

The PaDiM unsupervised detection model is used, the ConvNeXt model is used as the feature extraction backbone of the embedded vector, combined with the anti-aliasing technology's learnable fuzzy kernel downsampling layer and self-attention mechanism, and through the slicing processing and anomaly positioning optimization module, the wind turbine blades are realized Highly accurate detection of surface damage.

Benefits of technology

It significantly improves the accuracy and robustness of wind turbine blade damage detection, can process higher-resolution images, weakens the influence of outdoor uncontrolled environments, accurately locates damage areas, and improves the accuracy of blade damage detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587167A
    Figure CN118587167A
Patent Text Reader

Abstract

The embodiment of the invention discloses a wind power blade surface damage detection method and device, electronic equipment and a storage medium. The method comprises the following steps: establishing a PaDiM unsupervised detection model; the PaDiM unsupervised detection model adopts a ConvNeXt model as a feature extraction trunk of an embedded vector, a down-sampling layer of the ConvNeXt model comprises a core component of an anti-aliasing technology, and the core component adopts a learnable fuzzy kernel to perform down-sampling; performing slice preprocessing on the wind power blade image to obtain a to-be-detected image; and inputting a to-be-detected image into the PaDiM unsupervised detection model, and positioning a damaged area on the surface of the wind power blade. According to the embodiment of the invention, the accuracy and robustness of damage detection are excellent, and compared with an original PaDiM algorithm, the accuracy in blade damage detection is remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of wind turbine blade surface damage detection, and specifically to a wind turbine blade surface damage detection method, device, electronic equipment and storage medium. Background Art

[0002] As the global demand for clean energy continues to grow, wind power generation has been widely used as an environmentally friendly and renewable energy form. As one of the key components of wind power generation equipment, wind turbine blades are easily damaged by the external environment due to long-term exposure to harsh climate conditions. With the rapid development of image processing, machine learning and other methods in the industrial field, the method of damage detection of wind turbine blades based on computer vision algorithms has been actively and widely explored by scholars. Chao Zhang et al. proposed a deep neural network model based on Mask R-CNN and MRNet. The model first extracts the mask of the fault area from the blade image, and then uses the MinReact algorithm to crop the low-noise specific fault image and input it into the classification model. Finally, the model can output information such as the mask, bounding box and type of the blade fault. Li Zou et al. proposed an improved convolutional neural network ED Net, which aims to identify two types of damage on wind turbine blades: cracks and surface shedding. The network introduces an improved asymmetric convolution EAC block to enhance the feature extraction capability, and adds a DPCI_SC block to enhance the model's ability to locate damage. In the process of improving the Cascade R-CNN model, Yulin Mao et al. adopted a variety of techniques, including transfer learning, Deformable Convolution, Deformable RoIAlign, and context information fusion. The introduction of these improvement strategies helps to improve the detection accuracy and efficiency of the model. Wanrun Li et al. proposed a refined, multi-scale method for defect detection of large wind turbine blades. First, they used an image stitching algorithm to stitch segmented images into complete blade images. Then, they improved the Unet network, including using the convolution layer and kernel arrangement of VGG16, introducing batch normalization technology, and using the dice loss function. These improvements help to improve the accuracy and robustness of the model. In their study, Chen Zhang et al. proposed a method for wind turbine blade defect image recognition based on an attention mechanism, which combines the ideas of MobileNetv1-YOLOv4 and transfer learning. In addition, the researchers also tested the impact of different training set sizes on model performance. In the study of PMDiaz et al., deep separable convolution was used instead of standard convolution to reduce the computational complexity of the model, and transfer learning and data augmentation techniques were applied to alleviate the problem of insufficient training set samples. Zhu Xiaoxun et al. improved the YOLOv5 model in their research and proposed the MI-YOLO model for surface crack detection of wind turbine blades. The model uses multiple feature extraction modules and C3TR modules to improve the detection capability of low-definition shallow cracks.

[0003] These supervised deep learning-based methods have provided state-of-the-art results for wind turbine blade defect detection, but researchers have always faced an important challenge: the complexity and diversity of damage types. Different damage types have different effects on blades, and because the probability of some defects (such as lightning damage) is low, the number of samples that can be collected is relatively limited, making it difficult to support the training of a fully supervised large model.

[0004] Traditional supervised deep learning algorithms have provided advanced results in the field of wind turbine blade surface damage detection. However, the diversity of damage types and the scarcity of damage samples make comprehensive detection of blade damage challenging. To address this problem, the focus is placed on unsupervised anomaly detection. Compared with fully supervised learning, unsupervised learning does not require the use of labeled damage samples for training, and can detect a wide variety of anomalies without being restricted by pre-labeled defect types. This gives unsupervised methods a unique advantage in dealing with a variety of defect types and insufficient samples.

[0005] In recent years, unsupervised anomaly detection and localization techniques have been widely studied and applied in defect detection of various industrial products. Existing methods can be divided into two categories. The first method counts outliers as anomalies. This method embeds regular features into a compressed space and then distinguishes anomalies based on the distance between the features to be tested and the normal cluster. Defard et al. used pre-trained CNN for patch embedding and used multivariate Gaussian distribution to obtain the probabilistic representation of normal categories. Deng et al. introduced a novel teacher-student (TS) model to gradually distill knowledge from high-level to low-level through the reverse distillation paradigm to solve the problem of similarity between teacher and student models in unsupervised anomaly detection. At the same time, a trainable one-class bottleneck embedding (OCBE) module was introduced into the TS model to effectively retain the key information of normal patterns through compact embedding. Karsten et al. used a memory bank containing the most representative normal sample features and then used the Mahalanobis distance or the maximum feature distance to score the input features at test time. Rudolph et al. achieved efficient detection of image-level defects by processing multiple feature maps of different scales, combining global and local image contexts, and flexibly estimating density. The second category is to reconstruct the image according to the normal mode, and then compare it with the input image for anomaly detection. Some reconstruction-based methods are implemented using generative models. This method has a premise that the abnormal area of ​​the image cannot be reconstructed correctly. But in reality, due to the strong generalization ability of the model, the abnormal area of ​​the image can sometimes be reconstructed well, resulting in the abnormal area being missed. In order to alleviate this shortcoming, Gong D et al. proposed an improved autoencoder that combines an autoencoder with a memory module to enhance the reconstruction error of the model in abnormal areas. Bergmann et al. let the autoencoder reconstruct the image in the feature space of the pre-trained network. In addition, they also trained an additional branch network to predict the output of the autoencoder, thereby predicting the systematic reconstruction error on normal images. Other methods regard the anomaly detection problem as an image restoration problem, restoring the information that was randomly erased in the image.

[0006] These methods mainly rely on datasets taken in indoor controlled environments such as MVTecAD and VisA. These datasets are collected in indoor controlled environments, and images of the same category are roughly aligned at the pixel level with a clean background. Zhang et al. found that the existing IAD datasets mainly focus on the diversity of data categories, but ignore the diversity of different fields within the same data category. However, the inspection images of wind turbine blades are acquired by drones in outdoor uncontrolled environments, and there are cluttered backgrounds. At the same time, the positions of wind turbine blades in the image are irregularly distributed and change with the camera's viewing angle. The combination of these uncontrolled factors makes it very challenging for existing anomaly detection algorithms to handle wind turbine blade damage detection tasks. Therefore, in order to promptly detect and repair damage to the blade surface and improve the reliability and efficiency of wind power systems, it is urgent to develop a timely and effective method for detecting wind turbine blade surface damage. Summary of the invention

[0007] In order to overcome the shortcomings of the prior art, the purpose of the embodiments of the present invention is to provide a method, device, electronic device and storage medium for detecting surface damage of wind turbine blades, which allows processing of higher resolution wind turbine blade images, greatly weakens the adverse effects of outdoor uncontrolled environments on wind turbine blade damage detection, and achieves accurate positioning of damaged areas.

[0008] To solve the above problems, a first aspect of an embodiment of the present invention discloses a method for detecting surface damage of a wind turbine blade, which comprises the following steps:

[0009] Establishing a PaDiM unsupervised detection model; wherein the PaDiM unsupervised detection model uses a ConvNeXt model as a feature extraction backbone for embedding vectors, and the downsampling layer of the ConvNeXt model includes a core component of anti-aliasing technology, and the core component uses a learnable blur kernel for downsampling;

[0010] Acquire a captured wind turbine blade image, and perform slice preprocessing on the wind turbine blade image to obtain an image to be inspected;

[0011] The image to be inspected is input into the PaDiM unsupervised detection model to obtain an abnormality prediction map, and the damaged area on the surface of the wind turbine blade is located according to the abnormality prediction map.

[0012] As an optional scheme, in the first aspect of the embodiment of the present invention, it also includes: correcting the feature map by capturing context feature dependencies, thereby correcting the abnormality prediction map to obtain a corrected abnormality prediction map, and locating the damaged area on the surface of the wind turbine blade through the corrected abnormality prediction map.

[0013] As an optional scheme, in a first aspect of an embodiment of the present invention, the core component uses a learnable blur kernel for downsampling, including: the core component includes a BlurPool convolution layer, for each pixel position (i, j) of the output feature map, a local area centered on (i×s+m, j×s+n) in the input feature map is considered, and the downsampled feature map is a weighted sum of pixel values ​​of the local area and the learnable blur kernel.

[0014] As an optional solution, in the first aspect of the embodiment of the present invention, the core component samples every s pixels, and the output value Y of the down-sampled feature map is i,j Satisfies the following formula:

[0015]

[0016] Among them, Y i,j is the element of the downsampled feature map, X i,j is the element of the input feature map, F m,n is the element of the blur kernel, the downsampling stride s is the resolution of the output feature map, i and j are the horizontal and vertical coordinates of the pixel position of the output feature map, respectively, and m and n are both between 0 and k-1.

[0017] As an optional solution, in the first aspect of the embodiment of the present invention, the feature map is corrected by capturing the context feature dependency to achieve the correction of the anomaly prediction map, and the corrected anomaly prediction map is obtained, including: correcting the feature map by an anomaly positioning optimization module, removing the residual connection, and the anomaly positioning optimization module calculates the current pixel x by performing an inner product operation in the feature space. i With other pixels x j The affinity between the pixels is determined by using the cosine distance to evaluate the feature similarity between the pixels, and the anomaly detection image is corrected based on the feature similarity.

[0018] As an optional solution, in the first aspect of the embodiment of the present invention, the modified abnormal prediction map satisfies the following formula:

[0019]

[0020] Among them, y′ represents the original anomaly prediction map, y represents the corrected anomaly prediction map, ReLU is the activation function, and x i Represents the current pixel, x j represents other pixels, C(x i ) represents the normalization factor, i and j represent the horizontal and vertical coordinates of the pixel space position, θ(x i ) and θ(x j ) are all embedded functions.

[0021] As an optional scheme, in a first aspect of an embodiment of the present invention, the wind turbine blade image is sliced ​​and preprocessed to obtain an image to be inspected; the image to be inspected is input into the PaDiM unsupervised detection model to obtain an abnormality prediction map, including: dividing the input image into multiple slices by means of a sliding window, inputting each slice into the PaDiM unsupervised detection model to obtain an abnormality detection result corresponding to each slice, the abnormality detection results form an abnormality map set for each slice, and all the abnormality map sets are spliced ​​through a connector to obtain an abnormality prediction map.

[0022] The second aspect of the embodiment of the present invention discloses a wind turbine blade surface damage detection device, which includes: a model unit, used to establish a PaDiM unsupervised detection model; wherein the PaDiM unsupervised detection model uses a ConvNeXt model as a feature extraction backbone of an embedded vector, and the downsampling layer of the ConvNeXt model includes a core component of an anti-aliasing technology, and the core component uses a learnable blur kernel for downsampling;

[0023] A preprocessing unit, used to obtain a photographed wind turbine blade image, and perform slice preprocessing on the wind turbine blade image to obtain an image to be inspected;

[0024] The output unit is used to input the image to be inspected into the PaDiM unsupervised detection model to obtain an abnormality prediction map, and locate the damaged area on the surface of the wind turbine blade according to the abnormality prediction map.

[0025] A third aspect of an embodiment of the present invention discloses an electronic device, comprising: a memory storing executable program code; a processor coupled to the memory; the processor calls the executable program code stored in the memory to execute a wind turbine blade surface damage detection method disclosed in the first aspect of the embodiment of the present invention.

[0026] A fourth aspect of an embodiment of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute a method for detecting surface damage of a wind turbine blade disclosed in the first aspect of an embodiment of the present invention.

[0027] A fifth aspect of an embodiment of the present invention discloses a computer program product. When the computer program product is run on a computer, the computer executes a method for detecting surface damage of a wind turbine blade disclosed in the first aspect of an embodiment of the present invention.

[0028] A sixth aspect of an embodiment of the present invention discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes a wind turbine blade surface damage detection method disclosed in the first aspect of an embodiment of the present invention.

[0029] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0030] 1. The present invention is based on the classic anomaly detection algorithm PaDiM, and performs preprocessing through slicing processing to balance the input size and memory consumption of the network, thereby allowing the network to process drone images with higher resolution; at the same time, the backbone of generating embedded vectors is adopted to greatly weaken the adverse effects of outdoor uncontrolled environments on wind turbine blade damage detection. Combined with the normal data distribution learned in the training phase and the Mahalanobis distance output anomaly prediction map in the test phase, the accuracy in blade damage detection is significantly improved compared with the original PaDiM algorithm.

[0031] 2. The method of the present invention utilizes the principle of the self-attention mechanism and corrects the feature map by capturing the context feature dependency, thereby realizing the correction of the abnormal prediction map and obtaining the corrected abnormal prediction map. The damaged area on the surface of the wind turbine blade is located through the corrected abnormal prediction map, thereby further improving the accuracy of locating the damaged area. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a flow chart of a method for detecting surface damage of a wind turbine blade provided by an embodiment of the present invention;

[0033] Figure 2 It is a schematic diagram of a process of slicing preprocessing of a wind turbine blade image provided by an embodiment of the present invention;

[0034] Figure 3 is a schematic diagram of a ConvNeXt downsampling structure provided by an embodiment of the present invention;

[0035] Figure 4 It is a structural diagram of an abnormality positioning optimization module provided by an embodiment of the present invention;

[0036] Figure 5 It is a schematic diagram of the test results of the method of the present invention provided by one embodiment of the present invention on a wind turbine blade data set;

[0037] Figure 6 It is a schematic diagram of a specific example of each anomaly detection method provided by an embodiment of the present invention in a test MIAD data set;

[0038] Figure 7It is a structural schematic diagram of a wind turbine blade surface damage detection device disclosed in one embodiment of the present invention;

[0039] Figure 8 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0040] This specific implementation manner is merely an explanation of an embodiment of the present invention, and it is not a limitation of the embodiment of the present invention. After reading this specification, a person skilled in the art may make non-creative modifications to the embodiment as needed, but as long as it is within the scope of the claims of the embodiment of the present invention, it is protected by the patent law.

[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments in 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 embodiments of the present invention.

[0042] The term "comprise" and any variations thereof in the specification and claims of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.

[0043] In the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0044] The method of the present invention adopts unsupervised anomaly detection, based on the classic anomaly detection algorithm PaDiM, and pre-processes the input image through slicing operation, so that the network can process higher resolution drone images; secondly, ConvNeXt integrated with BlurPool convolution layer is used as the backbone for generating embedded vectors in PaDiM, which greatly weakens the adverse effects of outdoor uncontrolled environment on wind turbine blade damage detection; then, the positive sample data distribution learned in the training phase is combined with the Mahalanobis distance in the test phase to output the anomaly prediction map; the proposed model is rigorously evaluated using publicly available benchmark datasets, and performs well in terms of accuracy and robustness of damage detection, which well solves the problem that the fully supervised detection model cannot detect damage types with low probability of occurrence and small number of samples, and significantly improves the accuracy in blade damage detection compared with the original PaDiM algorithm.

[0045] The method of the present invention uses a relatively comprehensive anomaly detection MIAD dataset, which contains more than 100,000 high-resolution color images taken in various outdoor industrial scenes, to conduct a large number of verifications, significantly improving the accuracy in blade damage detection.

[0046] Embodiment 1

[0047] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a method for detecting surface damage of a wind turbine blade disclosed in an embodiment of the present invention. Figure 1 As shown, the wind turbine blade surface damage detection method includes the following steps:

[0048] Step S110: Establishing a PaDiM unsupervised detection model; wherein the PaDiM unsupervised detection model uses a ConvNeXt model as a feature extraction backbone for embedding vectors, and the downsampling layer of the ConvNeXt model includes a core component of anti-aliasing technology, and the core component uses a learnable blur kernel for downsampling;

[0049] In this embodiment, the PaDiM unsupervised detection model adopts an embedding extraction method commonly used in the field of anomaly detection, that is, using a pre-trained CNN to generate patch embedding vectors of images. By using a pre-trained CNN to generate patch embedding vectors of images, the complex neural network optimization process can be avoided, while effectively obtaining features related to anomaly detection.

[0050] First, the model associates each patch of the input image with the activation vector of the corresponding spatial position in the pre-trained CNN activation map. For the input sequence X = (x 1 ,x 2 ,...,x n ), where each x iRepresents a patch of the image, and the model associates it to an activation vector through the mapping function f:

[0051] f(x i )=W f ·x i (1)

[0052] In order to obtain features at different semantic levels, the model concatenates the activation vectors of the three intermediate layers to form an embedding vector:

[0053] Embedding(X)=concat(W f ·x 1 ,W f ·x 2 ,…,W f ·x n ) (2)

[0054] Since the activation map has a low resolution, many pixels share the same embedding. Therefore, the model divides the input image into a grid where each position (i, j) is associated with a corresponding embedding vector x ij The size of this grid is determined by the resolution of the largest activation map that produced the embedding:

[0055] (i,j)∈[1,W]×[1,H] (3)

[0056] The main task of model training is to learn the features of positive sample images, that is, the normal state of the detected object. The process of model learning the normal state involves modeling the normal image features at each possible patch position (i, j).

[0057] For each patch location (i, j), the model computes a set of patch embedding vectors from N normal training images These vectors capture the characteristics of the normal image at that location. Assume that the patch embedding vector set X i,j From a multivariate Gaussian distribution N(μ i,j ,Σ i,j ) is generated, where μ i,j For X i,j The sample mean of i,j The formula is used to estimate the feature relationship at the patch position (i, j):

[0058]

[0059] Among them, ∈I is to ensure that the sample covariance matrix Σ i,j It has complete rank and is reversible.

[0060] Each possible patch position (i, j) is associated with a multivariate Gaussian distribution N(μi,j ,Σ i,j ), forming a matrix that contains the Gaussian distribution parameters of all possible positions. At this point, the model can statistically model the feature distribution of normal images at different patch positions, providing a basis for subsequent anomaly detection.

[0061] In the inference phase of the model, the Mahalanobis distance is used to calculate the anomaly prediction map. For each patch position (i, j) in the test image, the model uses the Mahalanobis distance M(x i,j ) computes the anomaly score of the patch. This represents the embedding x of the test patch i,j Compared with the previously learned distribution N(μ i,j ,Σ i,j ):

[0062]

[0063] A Mahalanobis distance matrix M is constructed, which contains the Mahalanobis distances at all possible locations (i, j). This matrix forms an anomaly map, where high scores represent abnormal regions. Then, the final anomaly score for the entire image is calculated, which is the maximum value of the anomaly map M. This reflects the most significant abnormal regions present in the image.

[0064] In this embodiment, the inspection image of the wind turbine blades is acquired by a drone in an outdoor uncontrolled environment, and there are usually cluttered backgrounds and uncontrollable lighting conditions in the images. In addition, due to changes in the camera's viewing angle, the position and distribution of the wind turbine blades in the image will also change. Therefore, the PaDiM model uses a statistical method to model the distribution of normal images at different patch positions. However, since the distribution learned by this method is affected by the patch position, the model needs to be invariant to geometric transformations such as rotation and translation of the image. Previous studies have shown that anti-aliasing can make CNN have better shift invariance.

[0065] In this embodiment, it is considered that the traditional pooling or stride convolution method is used for downsampling in the ConvNeXt model, and this method may introduce a certain degree of blur or offset when processing translation changes, thereby reducing the model performance. The method of the present invention introduces anti-aliasing technology in the downsampling layer of ConvNeXt, and uses the learnable blur kernel for downsampling through the core component of the anti-aliasing technology BlurPool, and reduces the artifacts that may be introduced in the sampling process, thereby enhancing the adaptability of the model to translation changes.

[0066] The core component uses a learnable blur kernel for downsampling, including: for each pixel position (i, j) of the output feature map, consider the local area centered at (i×s+m, j×s+n) in the input feature map, where m and n vary in the range of 0 to k-1. BlurPool then performs a weighted summation of the pixel values ​​of this local area with the learnable blur kernel to obtain the output value Y i,j :

[0067]

[0068] Among them, Y i,j is the element of the downsampled feature map, X i,j is the element of the input feature map, F m,n is the element of the blur kernel, and the downsampling step s determines the resolution of the output feature map, that is, sampling is performed every s pixels.

[0069] Step S120: acquiring a captured wind turbine blade image, and performing slice preprocessing on the wind turbine blade image to obtain an image to be inspected;

[0070] In specific implementation, since drone aerial images usually have high resolution, and the damaged area on the surface of wind turbine blades often only occupies a small part of the entire image. Therefore, there are a large number of small targets in wind turbine blade images. In the field of anomaly detection, improving the resolution of the input image can allow the model to extract more refined features, thereby improving detection performance. However, the PaDiM model is a model based on feature representation. As the scale of the input image increases, the memory consumption of the model will increase significantly, which is prone to cause insufficient memory resources.

[0071] Specifically, it includes: dividing the input image into multiple slices by means of a sliding window, inputting each slice into the PaDiM unsupervised detection model, obtaining an anomaly detection result corresponding to each slice, the anomaly detection result forms an anomaly map set for each slice, and splicing all the anomaly map sets through a connector to obtain an anomaly prediction map.

[0072] In this example, we introduce slice-assisted technology into the model to more effectively process high-resolution images. For the specific process, refer to Figure 2 As shown, assuming that the input image is I∈R C×H×W , where C is the number of channels, H is the height, and W is the width. First, the input image I is divided into multiple slices using a sliding window to form a slice set B = {b 1 ,b 2 ,...,b N}, these slices can overlap. Then, each slice b iThe anomaly detection results corresponding to each slice form an anomaly graph set M = {m 1 ,m 2 ,…m N}. In the anomaly map, the location with a larger anomaly score has a brighter color.

[0073] In order to present the prediction results on a complete image at the same time, a connector is used to concatenate the anomaly map collection into an anomaly map containing all the prediction results. Finally, the anomaly map is post-processed, including normalization and thresholding.

[0074] Step S130: input the image to be inspected into the PaDiM unsupervised detection model to obtain an abnormality prediction map, and locate the damaged area on the surface of the wind turbine blade according to the abnormality prediction map.

[0075] It should be noted that unsupervised learning does not rely on labeled data. The model attempts to discover hidden structures or patterns from the data without knowing the relationship between input and output in advance. Unsupervised learning tasks include clustering, dimensionality reduction, and anomaly detection. The core of unsupervised learning is clustering, which is to divide the data set into multiple classes consisting of similar objects. The advantage of unsupervised learning is that it can discover the potential patterns and patterns of data through the intrinsic structure of the data without explicit labels.

[0076] As a preferred embodiment of the present invention, the core component uses a learnable blur kernel for downsampling, including: the core component includes a BlurPool convolution layer, for each pixel position (i, j) of the output feature map, a local area centered on (i×s+m, j×s+n) in the input feature map is considered, and the downsampled feature map is a weighted sum of the pixel values ​​of the local area and the learnable blur kernel.

[0077] Specifically, the ConvNeXt downsampling structure is as follows Figure 3 As shown in Figure 1, for each pixel position (i, j) of the output feature map, BlurPool considers the local area centered at (i×s+m, j×s+n) in the input feature map, where m and n vary in the range of 0 to k-1. BlurPool then performs a weighted summation of the pixel values ​​in this local area with the learnable blur kernel to obtain the output value Y i,j ;

[0078]

[0079] Among them, Y i,j is the element of the downsampled feature map, X i,j is the element of the input feature map, F m,nis the element of the blur kernel, and the downsampling step s determines the resolution of the output feature map, that is, sampling is performed every s pixels.

[0080] It should be noted that downsampling is actually reducing the size of the image. The main purpose is to make the image fit the size of the display area and generate a thumbnail of the corresponding image. For example, the pooling layer or convolution layer in CNN is downsampling. However, the image becomes smaller due to the convolution process in order to extract features, and the pooling downsampling is to reduce the dimension of the features. The downsampling layer has two functions: one is to reduce the amount of calculation and prevent overfitting; the other is to increase the receptive field so that the subsequent convolution kernel can learn more global information.

[0081] As a preferred embodiment of the present invention, the method of the present invention also includes:

[0082] Step S140: Correcting the feature map by capturing the context feature dependency, thereby correcting the abnormality prediction map and obtaining a corrected abnormality prediction map, and locating the damaged area on the surface of the wind turbine blade through the corrected abnormality prediction map.

[0083] Specifically, it includes: correcting the feature map by an abnormality positioning optimization module, removing the residual connection, and the abnormality positioning optimization module calculates the current pixel x by performing an inner product operation in the feature space. i With other pixels x j The affinity between the pixels is determined by using the cosine distance to evaluate the feature similarity between the pixels, and the anomaly detection image is corrected based on the feature similarity.

[0084] In the specific implementation, in the inference phase of the model, the output of the anomaly prediction map is achieved by calculating the Mahalanobis distance between each patch embedding and the Gaussian distribution learned in the training phase. Since the Gaussian distribution is only a unimodal distribution, calculating the anomaly prediction map by this method will cause the model to locate the anomaly in an insufficiently precise manner and it will be difficult to capture subtle damage in the image. In order to further optimize the original anomaly map, the method of the present invention introduces a self-attention mechanism to capture the contextual dependencies between features, thereby correcting the feature map. The general self-attention mechanism can be defined as:

[0085]

[0086]

[0087] Among them, θ(x i )=W θ x i ,φ(x j )=W φ x j and g(x j )=W g xj are three embedding functions, W represents the weight matrix, C(x i ) represents the normalization factor, x and y represent the input and output features respectively, and i and j represent the spatial positions. The function g(x j ) gives the input signal x at each position j and aggregate them all to position i, with similarity weights given by f(x i ,x j ), which computes the dot product pixel affinity in the embedding space.

[0088] Based on the idea of ​​self-attention mechanism, the method of the present invention proposes an abnormality location optimization module, whose structure is as follows: Figure 4 As shown. Different from the self-attention mechanism, the method of the present invention uses cosine distance to evaluate the feature similarity between pixels:

[0089]

[0090] Among them, x i represents the current pixel, and xj represents other pixels. The current pixel x is calculated by performing an inner product operation in the feature space. i With other pixels x j In order to better focus on similar information, the ReLU activation function is used to suppress negative values. In addition, in order to more accurately reflect the importance of each pixel in the original anomaly prediction map, the present invention removes the residual connection to avoid introducing additional information interference. Finally, the anomaly detection map corrected based on pixel similarity is obtained:

[0091]

[0092] Where y′ represents the original anomaly prediction map, and y represents the corrected anomaly prediction map.

[0093] like Figure 4 As shown in FIG. 1 , the multi-scale features of the image to be tested extracted in the previous stage are used to calculate pixel similarity, and the final anomaly prediction map is obtained by the weighted sum of the original anomaly prediction map and the anomaly detection map corrected based on pixel similarity.

[0094] In the above implementation process, the method of the present invention is based on the classic anomaly detection algorithm PaDiM, and preprocesses through slicing processing to balance the input size and memory consumption of the network, thereby allowing the network to process higher resolution drone images. Secondly, ConvNeXt integrated with the BlurPool convolutional layer is used as the backbone for generating embedded vectors in PaDiM, which greatly weakens the adverse effects of outdoor uncontrolled environments on wind turbine blade damage detection. Then, the abnormal prediction map is output by combining the normal data distribution learned in the training phase and the Mahalanobis distance in the test phase, and the abnormal prediction map is corrected through the principle of the self-attention mechanism to accurately locate the damaged area. Compared with the original PaDiM algorithm, the accuracy in blade damage detection is significantly improved.

[0095] The method of the present invention is described below with specific embodiments:

[0096] 1. Dataset and Experimental Configuration

[0097] MVTecAD is a widely used unsupervised anomaly detection dataset, which contains 5354 high-resolution images covering 15 different industrial real-world products. Most unsupervised anomaly detection methods are proposed based on this dataset. In order to be able to compare the proposed method with the existing advanced methods extensively and reasonably, comparative experiments related to the public dataset MVTecAD are added.

[0098] The MIAD dataset contains seven outdoor maintenance inspection scenes, including photovoltaic panels, wind turbine blades, nuts and bolts, electrical insulators, metal welds, position markers, and catenary droppers. The production of this dataset highlights the problems of different camera viewpoints, cluttered backgrounds, and surface degradation (such as dust or rust) in outdoor inspection images, which can well test the effect of the algorithm model on outdoor inspection images. Therefore, a comparative experiment on a subset of wind turbine blades in this dataset was also added.

[0099] The experimental software environment of the model is Windows 10 system, the programming language is Python 3.8.0, the deep learning framework is Pytorch 1.12.1, and the CUDA version is 11.6.

[0100] 2. Evaluation indicators

[0101] In order to evaluate the performance of abnormal classification at the image level, F1-Score is used as the evaluation indicator. The image-level F1-Score is an indicator that comprehensively considers the accuracy and recall rate of image classification. The calculation method of F1-Score is as follows:

[0102]

[0103] In the formula, Precision represents accuracy and Recall represents recall. F1-Score is the harmonic mean of precision and recall. The calculation methods of Precision and Recall are as follows:

[0104]

[0105]

[0106] Where TP represents the number of true positive samples, TN represents the number of true negative samples, FN represents the number of false negative samples, and FP represents the number of false positive samples.

[0107] In order to evaluate the performance of pixel-level anomaly localization, AU-PRO is used as an evaluation indicator. AU-PRO measures the overlap between the anomaly region predicted by the model and the actual anomaly region, quantifies the degree of match between the anomaly region detected by the model and the actual anomaly region, and can reveal the performance of the model at the pixel level. AU-PRO first calculates the overlap of each predicted region, then plots the curve of the overlap and the actual anomaly region, and finally calculates the area under the curve.

[0108] 3. Experimental results analysis

[0109] PaDiM essentially uses Gaussian distribution to model the correlation of intermediate features of pre-trained feature extraction backbones. Using different feature extraction backbones may affect model performance. First, we use different feature extraction backbones in the PaDiM model to explore their impact on model performance. The comparison of feature extraction backbones uses several classic feature extraction backbones as well as Wide-ResNet50 and EfficientNet B4 used in the original model. These backbone networks all use weights pre-trained on ImageNet.

[0110] For the original PaDiM model, increasing the input image scale may lead to insufficient memory resources in the experimental platform. Therefore, in order to maintain consistency, the present invention uses an input image size of 256×256 for each PaDiM variant using different feature extraction backbones. In addition, considering that in the surface anomaly detection of wind turbine blades, anomalies may occur in the edge area, the present invention disables the processing of cropping the input image in the center area in the official algorithm implementation. The experimental results are shown in Table 1 below:

[0111] Table 1: PaDiM models using different feature extraction backbones

[0112]

[0113] The results show that in the wind turbine blade dataset MIAD, the PaDiM model using ConvNeXt as the feature extraction backbone showed better average performance than several other methods, followed by Wide-ResNet50. Different from the results obtained in the literature

[23] , the PaDiM model using EfficientNetB4 as the feature extraction backbone did not show better performance than Wide-ResNet50. In addition, although MobileNetv3 uses deep separable convolution and still shows obvious advantages in model lightweighting, MobileNetv3 is not the best choice if higher detection performance is desired.

[0114] In order to evaluate the effect of each improved strategy, rigorous ablation experiments were conducted. All models used the same hyperparameters, and the experimental results are shown in Table 2 below:

[0115] Table 2: Ablation experiments

[0116]

[0117] As can be seen from Table 2, Model 1 is the original PaDiM model with an input image size of 256×256, while Model 2 adds the slicing processing technology proposed in Section 2.2 to the original PaDiM model and increases the input image size to 512×512. During the experiment, when the original PaDiM model was directly used with an input image size of 512×512, there was a serious problem of insufficient memory resources. However, after using the slicing processing technology, it can be seen from the table that the memory consumption generated by using an input image size of 512×512 only increased by 33.3% compared with 256×256. This result shows that the slicing processing method proposed in the present invention well solves the contradiction between the significant increase in memory consumption of the PaDiM model as the input image scale increases and the need to process large-resolution images for the wind turbine blade surface anomaly detection task. Models 3, 4, 5, and 6 all use slicing processing technology and set the input image size to 512×512. On this basis, Model 3 replaces the feature extraction backbone from Wide-ResNet50 to ConvNeXt, Model 4 uses the proposed optimized ConvNeXt as the feature extraction backbone, and Model 5 adds an anomaly localization optimization module based on Model 2. Model 6 is the final improved model proposed by the present invention, which integrates all the improved methods. Model 4 introduces BlurPool into the downsampling of ConvNeXt, and effectively alleviates the adverse effects of changes in position, light and noise in wind turbine blade images on unsupervised detection results by reducing the sensitivity of the network to the input. Compared with using the original ConvNeXt as the feature extraction backbone, the model improves the accuracy of anomaly classification by 2.63% and the accuracy of anomaly localization by 1.03%. Compared with Model 2, Model 5 has a significant improvement in the localization accuracy of anomalies on the surface of wind turbine blades, which is 8.01% higher. This shows that the use of the anomaly localization optimization module proposed by the present invention to capture context feature dependencies to correct the anomaly prediction map has a significant improvement in the pixel-level segmentation effect of the unsupervised anomaly detection model. Finally, compared with Model 2, Model 6, which integrates these improvements, improves the accuracy of anomaly classification by 2.85% and the accuracy of anomaly localization by 9.95%, which is a significant improvement.

[0118] In order to more intuitively feel the improvement of anomaly localization effect after model improvement, 3 samples were randomly selected from the test set and processed using the PaDiM model before and after improvement. The heat map was normalized according to the pixel-by-pixel anomaly score of the test image to obtain the anomaly prediction heat map. On the heat map, yellow indicates a high anomaly score. A uniform thresholding operation was performed on the anomaly prediction heat map to obtain a prediction mask, in which white indicates the abnormal area. The schematic diagram of the improvement of anomaly detection and localization effect is shown in Figure 2. Figure 5 As shown by Figure 5It can be seen that the improved PaDiM model can detect and locate the damaged area on the wind turbine blade more accurately than the original model.

[0119] In order to make a comprehensive comparison with the current mainstream advanced methods, Reverse Distillation (RD), PatchCore, DRAEM, FastFlow and Efficient-ad are selected as representatives. These methods cover a variety of types such as reconstruction, feature representation, reconstruction and feature representation combined, normalized flow and teacher-student network. Multiple datasets are used to conduct a detailed and comprehensive evaluation of these methods under the same conditions. For PatchCore, FastFlow and the original PaDiM, three network models with independent feature extraction backbones, their feature extraction backbones all use Wide-ResNet50. When conducting comparative experiments on the dataset MIAD, since the abnormal area accounts for a small proportion of pixels in the image, the general anomaly detection model may perform poorly. Therefore, the input image size of the model is set to 512×512. For the MVTecAD dataset, the input image size is set to 256×256 in the conventional way. In addition, for consistency, the processing of center area cropping of the input image in the official algorithm implementation is disabled.

[0120] First, each model is trained and tested using the wind turbine blade dataset MIAD. The overall damage detection performance comparison experiment of each method on the wind turbine blade dataset MIAD and the comparison table of the inference speed of each method are shown in Table 3 and Table 4 respectively:

[0121] Table 3 MIAD comparative experiment of wind turbine blade dataset

[0122]

[0123] Table 4 Comparison of inference speed of various methods

[0124]

[0125] As can be seen from Tables 3 and 4, PatchCore and PaDiM based on feature representation perform best, followed by the DRAEM model based on feature representation and reconstruction. PatchCore based on feature representation uses a feature extractor pre-trained on ImageNet to extract features from the input image, obtain multi-scale features, and aggregate its intermediate layers. During training, the learned normal state feature data is stored in the memory bank. During inference, the anomaly score is calculated by calculating the distance between the test data and the normal state feature space. This method can better learn the normal state of the sample than other methods when the amount of data is not large enough, so that anomalies can be better distinguished from the image level. However, since PatchCore saves the features in the local area captured by CNN, this local attention design limits its performance in the task of anomaly localization in complex images. Therefore, as shown in the table, PatchCore's image-level anomaly classification accuracy is higher than other advanced methods, but its pixel-level anomaly localization accuracy lags behind PaDiM and DRAEM.

[0126] Some specific examples of each anomaly detection method in the test MIAD dataset are as follows Figure 6 It can be clearly seen that the method proposed in the present invention can more accurately identify abnormal areas and give higher abnormality scores than other methods.

[0127] In order to make a more comprehensive and reasonable comparison between the method proposed in the present invention and the existing advanced methods, the present invention adds the test of each model on the MVTecAD dataset. The detection results of each model on each type of the MVTecAD dataset are shown in Table 6 below:

[0128] Table 6: Comparative experiment on MVTecAD dataset (%)

[0129]

[0130] In Table 6, the numbers above each cell represent the anomaly classification accuracy, and the numbers below represent the anomaly localization accuracy. The MVTecAD dataset contains 15 industrial real-world products, which can be divided into two categories: textures and objects. The texture categories include Carpet, Grid, Leather, Tile, and Wood, while the object categories include Bottle, Cable, Capsule, Hazelnut, MetalNut, Pill, Screw, Toothbrush, Transistor, and Zipper.

[0131] It can be clearly seen from Table 6 that the method proposed in the present invention has a more significant advantage in texture-related anomaly detection than other methods. It is worth noting that the texture of the damaged area of ​​the wind turbine blade is much more complex than that of the normal area, which is consistent with the above results.

[0132] In the implementation of the above specific embodiment, an unsupervised anomaly detection method is introduced for damage types with low probability of occurrence and small number of samples. First, the wind turbine blade dataset B is used to explore the influence of different feature extraction backbones on model performance. On this basis, a feature extraction backbone that is more suitable for wind turbine blade detection tasks is selected for PaDiM. Then, the input image size is successfully increased from 256x256 to 512x512 on the existing experimental platform through the slicing method, while the memory consumption is only increased by 33.3%. The effectiveness of the improved strategy is proved by a series of ablation experiments. Compared with the original ConvNeXt, the model after introducing BlurPool into the downsampling of ConvNeXt improves the accuracy of anomaly classification by 2.63% and the accuracy of anomaly positioning by 1.03%, which effectively alleviates the adverse effects of changes in position, light and noise in wind turbine blade images on unsupervised detection results. In addition, the use of self-attention mechanism to capture context feature dependencies to correct the anomaly prediction map greatly improves the anomaly positioning accuracy of the model by 9.95%. Finally, the accuracy of anomaly classification of the model on the wind turbine blade dataset MIAD was improved by 2.85%, and the accuracy of anomaly location was improved by 9.95%. Finally, the proposed method was comprehensively compared with several mainstream anomaly detection methods on the public dataset MVTecAD. The experiment proved that the proposed method performed well in terms of accuracy and robustness of damage detection, and well solved the problem that the fully supervised detection model could not detect damage of small sample types such as lightning strikes.

[0133] Embodiment 2

[0134] See also Figure 7 , Figure 7 Schematic diagram of the structure of a wind turbine blade surface damage detection device disclosed in an embodiment of the present invention. Figure 7 As shown, the wind turbine blade surface damage detection device may include:

[0135] A model unit 210 is used to establish a PaDiM unsupervised detection model; wherein the PaDiM unsupervised detection model uses a ConvNeXt model as a feature extraction backbone for embedding vectors, and the downsampling layer of the ConvNeXt model includes a core component of an anti-aliasing technology, and the core component uses a learnable blur kernel for downsampling;

[0136] The preprocessing unit 220 is used to obtain the captured wind turbine blade image, and perform slice preprocessing on the wind turbine blade image to obtain an image to be inspected;

[0137] The output unit 230 is used to input the image to be inspected into the PaDiM unsupervised detection model to obtain an abnormality prediction map, and locate the damaged area on the surface of the wind turbine blade according to the abnormality prediction map.

[0138] As an optional solution, the device of the present invention also includes:

[0139] The correction unit 240 is used to correct the abnormality prediction map by capturing the context feature dependency to correct the feature map, thereby obtaining a corrected abnormality prediction map, and locating the damaged area on the surface of the wind turbine blade through the corrected abnormality prediction map.

[0140] Embodiment 3

[0141] See also Figure 8 , Figure 8 Schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention. Figure 8 As shown, the electronic device may include:

[0142] A memory 310 storing executable program codes;

[0143] a processor 320 coupled to the memory 310;

[0144] The processor 320 calls the executable program code stored in the memory 310 to execute part or all of the steps in the method for detecting surface damage of a wind turbine blade in the first embodiment.

[0145] An embodiment of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute part or all of the steps in a method for detecting surface damage of a wind turbine blade in Embodiment 1.

[0146] The embodiment of the present invention further discloses a computer program product, wherein when the computer program product is run on a computer, the computer is enabled to execute part or all of the steps in a method for detecting surface damage of a wind turbine blade in the first embodiment.

[0147] An embodiment of the present invention further discloses an application publishing platform, wherein the application publishing platform is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes part or all of the steps in a method for detecting surface damage of a wind turbine blade in embodiment one.

[0148] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0149] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place or distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0150] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0151] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the method described in each embodiment of the present invention.

[0152] In the embodiments provided by the present invention, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.

[0153] A person of ordinary skill in the art can understand that some or all of the steps in the various methods of the embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0154] The above is a detailed introduction to a wind turbine blade surface damage detection method, device, electronic device and storage medium disclosed in an embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for detecting surface damage of a wind turbine blade, characterized in that: It includes the following steps: Establishing a PaDiM unsupervised detection model; wherein the PaDiM unsupervised detection model uses a ConvNeXt model as a feature extraction backbone for embedding vectors, and the downsampling layer of the ConvNeXt model includes a core component of anti-aliasing technology, and the core component uses a learnable blur kernel for downsampling; Acquire a captured wind turbine blade image, and perform slice preprocessing on the wind turbine blade image to obtain an image to be inspected; The image to be inspected is input into the PaDiM unsupervised detection model to obtain an abnormality prediction map, and the damaged area on the surface of the wind turbine blade is located according to the abnormality prediction map.

2. The method for detecting surface damage of a wind turbine blade according to claim 1, characterized in that: Also includes: By capturing the context feature dependency and correcting the feature map, the abnormal prediction map is corrected to obtain a corrected abnormal prediction map, and the damaged area on the surface of the wind turbine blade is located through the corrected abnormal prediction map.

3. The method for detecting surface damage of a wind turbine blade according to claim 1, characterized in that: The core component uses a learnable blur kernel for downsampling, including: the core component includes a BlurPool convolution layer, for each pixel position (i, j) of the output feature map, a local area centered at (i×s+m, j×s+n) in the input feature map is considered, and the downsampled feature map is a weighted sum of the pixel value of the local area and the learnable blur kernel.

4. The method for detecting surface damage of a wind turbine blade according to claim 3, characterized in that: The core component samples every s pixels, and the output value Y of the feature map after downsampling i,j Satisfies the following formula: Among them, Y i,j is the element of the downsampled feature map, X i,j is the element of the input feature map, F m,n is the element of the blur kernel, the downsampling stride s is the resolution of the output feature map, i and j are the horizontal and vertical coordinates of the pixel position of the output feature map, respectively, and m and n are both between 0 and k-1.

5. The wind turbine blade surface damage detection method according to claim 2, characterized in that: The method of modifying the feature map by capturing the context feature dependency to modify the anomaly prediction map to obtain the modified anomaly prediction map includes: modifying the feature map by an anomaly positioning optimization module, removing the residual connection, and the anomaly positioning optimization module calculating the current pixel x by performing an inner product operation in the feature space. i With other pixels x j The affinity between the pixels is determined by using the cosine distance to evaluate the feature similarity between the pixels, and the anomaly detection image is corrected based on the feature similarity.

6. The method for detecting surface damage of a wind turbine blade according to claim 5, characterized in that: The modified anomaly prediction graph satisfies the following formula: Among them, y′ represents the original anomaly prediction map, y represents the corrected anomaly prediction map, ReLU is the activation function, and x i Represents the current pixel, x j represents other pixels, C(x i ) represents the normalization factor, i and j represent the horizontal and vertical coordinates of the pixel space position, θ(x i ) and θ(x j ) are all embedded functions.

7. The wind turbine blade surface damage detection method according to claim 1, characterized in that: The wind turbine blade image is sliced ​​and preprocessed to obtain an image to be inspected; The image to be inspected is input into the PaDiM unsupervised detection model to obtain an anomaly prediction map, including: dividing the input image into multiple slices by means of a sliding window, inputting each slice into the PaDiM unsupervised detection model, obtaining an anomaly detection result corresponding to each slice, the anomaly detection results forming an anomaly map set for each slice, and splicing all the anomaly map sets through a connector to obtain an anomaly prediction map.

8. A wind turbine blade surface damage detection device, characterized in that: It includes: A model unit, used to establish a PaDiM unsupervised detection model; wherein the PaDiM unsupervised detection model uses a ConvNeXt model as a feature extraction backbone for embedding vectors, and the downsampling layer of the ConvNeXt model includes a core component of an anti-aliasing technology, and the core component uses a learnable blur kernel for downsampling; A preprocessing unit, used to obtain a photographed wind turbine blade image, and perform slice preprocessing on the wind turbine blade image to obtain an image to be inspected; The output unit is used to input the image to be inspected into the PaDiM unsupervised detection model to obtain an abnormality prediction map, and locate the damaged area on the surface of the wind turbine blade according to the abnormality prediction map.

9. An electronic device, characterized in that: It includes: a memory storing executable program code; a processor coupled to the memory; the processor calls the executable program code stored in the memory to execute the wind turbine blade surface damage detection method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: It stores a computer program, wherein the computer program enables a computer to execute the wind turbine blade surface damage detection method according to any one of claims 1-7.

Citation Information

Cited By

  • Railway equipment facility state monitoring method and system based on GSM-R

    CN122718673A

  • Railway equipment facility state monitoring method and system based on gsm-r

    CN122718673B