Improved deformable-detr blade defect detection method
By introducing fractional Fourier transform and branch feature pyramid structure into the Deformable-DETR network, the problem of small-scale defect detection in wind turbine blade defect detection is solved, and the detection accuracy and robustness are improved.
Patent Information
- Application Number
- CN202611156796.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-31
- Publication Date
- 2026-11-24
AI Technical Summary
Existing methods for detecting defects in wind turbine blades are ineffective in detecting small-scale defects in complex environments, and the lack of multi-scale feature fusion results in insufficient detection accuracy and robustness.
Fractional Fourier transform is introduced in the feature downsampling stage of the Deformable-DETR network, combined with the branch feature pyramid structure, to enhance the frequency domain representation capability and achieve multi-scale feature fusion.
It improves the accuracy and robustness of wind turbine blade defect detection, effectively detects small-scale defects such as microcracks, and adapts to complex environments.
Smart Images

Figure CN123160440A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of deep learning and intelligent technology, specifically involving an improved Deformable-DETR blade defect detection method. Background Technology
[0002] In recent years, with the rapid growth of installed wind power capacity, the operational safety and reliability of wind turbine blades, as key components of wind turbine generators, have received increasing attention. During long-term operation, wind turbine blades are susceptible to fatigue loads, environmental corrosion, lightning strikes, and manufacturing defects, leading to various defects such as cracks, corrosion, and spalling. If these defects are not detected and addressed in a timely manner, they may cause blade structural failure or even serious safety accidents. Therefore, high-precision automatic detection of defects in wind turbine blades has significant engineering application value and economic importance.
[0003] Traditional methods for detecting defects in wind turbine blades mainly rely on manual inspections and non-destructive testing (NDT) equipment. Manual inspections are inefficient and highly subjective, making them unsuitable for the real-time monitoring needs of large-scale wind farms. Methods based on NDT equipment such as ultrasound and infrared sensors are costly and difficult to implement on a large scale under complex operating conditions. With the development of computer vision technology, image-based wind turbine blade defect detection methods have gradually gained attention and become an important direction for intelligent operation and maintenance.
[0004] In recent years, wind turbine blade defect detection methods can be divided into the following three categories: 1. Defect detection based on traditional image processing methods; 2. Defect identification methods based on feature engineering and machine learning; 3. Deep learning-based object detection methods.
[0005] Traditional image processing-based methods for wind turbine blade defect detection primarily employ edge detection, threshold segmentation, and texture analysis to extract features from defect areas. However, these methods typically rely on manually designed features and have limited adaptability to complex backgrounds and varying lighting conditions, making them ineffective for processing wind turbine blade images in complex environments. Furthermore, traditional image processing methods often focus on local pixel information, failing to capture global structural features, thus leading to instability in the detection results.
[0006] Defect detection methods based on feature engineering and machine learning typically extract texture, shape, and statistical features manually and then use classification models such as support vector machines and random forests for defect identification. While these methods improve detection accuracy to some extent, their performance is highly dependent on the quality of feature design and struggles to adapt to the complex morphological variations of defects in different types of wind turbine blades. Furthermore, feature engineering methods have limited adaptability to defects at different scales, making it difficult to simultaneously address multi-scale defect features such as micro-cracks and large-area spalling.
[0007] Deep learning-based methods for wind turbine blade defect detection have made significant progress in the field of object detection by automatically learning image features through models such as convolutional neural networks. For example, defect detection methods based on two-stage or single-stage object detection networks can achieve end-to-end defect localization and classification. However, existing deep learning methods still face several challenges in wind turbine blade defect detection. First, wind turbine blade defects typically exhibit large scale variations, complex morphologies, and strong background interference, causing traditional downsampling operations to easily lose high-frequency detail information, thus affecting the detection performance of defects such as small cracks. Second, the inconsistent expression distribution of features at different scales in the frequency and spatial domains during multi-scale feature fusion may reduce feature fusion efficiency, thereby affecting the model's feature representation ability and detection accuracy. Third, the complex textures and lighting variations on the surface of wind turbine blades interfere with the model's ability to focus on defect areas, thus affecting the robustness of detection.
[0008] In summary, existing methods for detecting defects in wind turbine blades still face the following major technical challenges: 1. Due to the large differences in the size of defects in wind turbine blades, traditional downsampling methods are prone to losing information on small-scale defects. Second, the existing models have a relatively simple multi-scale feature fusion method, which makes it difficult to effectively represent the defect features at different scales, resulting in a decrease in detection accuracy in scenarios with complex scale changes. Third, existing models lack robustness in feature representation under complex environments, affecting the stability and accuracy of defect identification.
[0009] In recent years, Transformer-based target detection methods have demonstrated superior performance in complex scenarios. Among them, Deformable-DETR, by introducing a deformable attention mechanism, effectively alleviates the problems of slow convergence speed and high computational complexity of traditional DETR, showing significant advantages in multi-scale feature modeling. However, in wind turbine blade defect detection tasks, this method still has certain limitations: on the one hand, its feature representation mainly relies on spatial domain information, and its ability to model frequency domain features is insufficient, making it difficult to fully characterize small-scale defect features such as cracks and corrosion; on the other hand, existing multi-scale feature fusion strategies mostly adopt a serial structure, with limited interaction and collaborative modeling capabilities between features of different scales, especially under conditions of small target detection and complex background interference, where there is still room for further improvement in detection performance.
[0010] Therefore, it is necessary to propose a novel wind turbine blade defect detection method to fully utilize multi-scale features and frequency domain information, and improve the model's ability to model complex defect morphologies, thereby achieving high-precision and robust automatic detection of wind turbine blade defects. This invention improves the backbone network downsampling stage based on the Deformable-DETR framework by introducing a fractional Fourier transform (FrFT) to enhance frequency domain representation capabilities, setting the fractional order to 0.25, 0.5, and 0.75 respectively. In the corresponding frequency domain representation, hierarchical spectrum pruning is introduced, with pruning ratios set to 1 / 2, 1 / 3, and 1 / 4 respectively, to selectively retain frequency information at different scales. Subsequently, the pruned frequency domain features are subjected to an inverse fractional Fourier transform (FrFT). - ¹), to obtain downsampled features. Finally, a three-branch parallel feature pyramid is used for multi-scale feature fusion. Summary of the Invention
[0011] The purpose of this invention is to provide an improved Deformable-DETR blade defect detection method. By introducing fractional Fourier downsampling and a branch feature pyramid structure in the multi-scale feature construction stage, it effectively solves the problems of high-frequency defect information loss and insufficient multi-scale feature representation in the prior art.
[0012] The technical solution adopted in this invention is an improved Deformable-DETR blade defect detection method, characterized by the following steps: Step 1: Construct a wind turbine blade defect dataset; including the wind turbine blade image dataset WTBs2025 and self-collected wind turbine blade surface image data; Step 2: Perform data preprocessing and data augmentation on the wind turbine blade defect dataset; Step 3: Improve the Deformable-DETR network structure by introducing a fractional Fourier transform downsampling module in the feature downsampling stage to enhance the ability to preserve feature details; and improve the network's ability to detect defects at different scales by constructing a parallel branch feature pyramid structure to achieve multi-scale feature fusion.
[0013] Step 4: Use the data augmented dataset obtained in Step 2 to train the improved Deformable-DETR network structure to obtain the trained wind turbine blade defect detection model. Step 5: Input the image of the wind turbine blade to be detected into the defect detection model, and output the wind turbine blade defect detection result through detection and identification.
[0014] The invention is further characterized in that, Step 1 is implemented in the following steps: Based on the publicly available wind turbine blade image dataset WTBs2025, this dataset incorporates independently collected wind turbine blade surface image data to construct a more diverse wind turbine blade inspection dataset. The independently collected data was acquired using an industrial camera with a resolution of 2560×1440 and drone aerial photography equipment under actual operating conditions in a wind farm, covering different environmental backgrounds and surface states. The wind turbine blade defects in the dataset are classified into nine categories: cracks, protective film damage, lightning strikes, coating peeling, erosion, oil leaks, porosity, localized damage, and surface stains. Subsequently, the labeling tool LabelImg was used to label the wind turbine blade defect images in the dataset. The labeling included assigning category labels to defects and marking defect areas with rectangular boxes. The labeling information was saved one-to-one with the images. Finally, the labeled dataset was divided into training, validation, and test sets in a 7:2:1 ratio. The training set was used for model training, the validation set for model parameter tuning, and the test set for model performance evaluation.
[0015] Step 2 is implemented in the following steps: The labeled dataset was preprocessed by adjusting the collected wind turbine blade images to a fixed resolution of 1024×1024 pixels to ensure consistent input model size and retain effective image information containing the target area of the blade. Gaussian noise in the wind turbine blade images was smoothed using Gaussian filtering to reduce the impact of random noise. Salt-and-pepper noise caused by sensor anomalies or environmental interference was removed using median filtering to effectively preserve image edge details while suppressing noise.
[0016] In step 2, to improve the generalization ability of the model, data augmentation and enhancement processing is performed on the wind turbine blade images in the training set. Specifically, this includes scaling, rotation, mirroring, and brightness and contrast adjustment operations to enhance the model's adaptability to complex environments and different shooting conditions. Specifically, the image is scaled as a whole, with a scaling ratio ranging from 0.8 to 1.2 times. The image is rotated, clockwise or counterclockwise by ±15° and ±30°, respectively. The image brightness and contrast are adjusted, with coefficients randomly varying within the range of 0.8 to 1.2.
[0017] Step 3 is implemented in the following steps: Step 3.1: Extract features from the input wind turbine blade image using the Deformable-DETR backbone network to obtain three types of basic feature maps: Low-level feature map C2: The output resolution is set to 256×256, and the size is 1 / 4 of the original image. It has high spatial resolution, rich details, and a lot of texture information, making it suitable for capturing small cracks, minor corrosion, and tiny defects with a size of 0.05m to 0.3m. Mid-layer feature maps C3 / C4: The output resolution is set to 64×64, and the size is 1 / 16 of the original image. It balances spatial and semantic information and can capture medium-sized defects with a size of 0.3m to 1m, such as local coating peeling and edge damage. High-level feature map C5: The output resolution is set to 32×32, and the size is 1 / 32 of the original image. It has low spatial resolution but strong semantic information, making it suitable for detecting large-area defects with a size of more than 1m, such as large cracks or lightning strike damage traces. Each layer of feature map has different spatial resolution and semantic information, providing complete input for multi-scale defect detection; This scale division is based on empirical settings of the effective receptive field range of typical wind turbine blade structural dimensions and multi-layer feature maps.
[0018] Step 3.2: In the above feature extraction process, the downsampling structure of the backbone network is improved. In the downsampling stage of the backbone network, a fractional Fourier downsampling module is introduced to replace the traditional stride convolution downsampling operation, so as to enhance the ability to preserve feature details. Step 3.3: Perform spectrum clipping on the frequency domain features to achieve downsampling. In the shallow, middle, and deep downsampling stages, retain the center 1 / 2, 1 / 3, and 1 / 4 of the spectrum, respectively, and set the remaining frequency components to zero. The formula is:
[0019] in This is the result after downsampling; This represents the spectrum clipping operator, used to retain the center frequency region while setting the rest to zero; Represents the horizontal coordinates in the fractional frequency domain; Represents the vertical coordinates in the fractional frequency domain; Indicates the order of the fractional Fourier transform; The downsampled frequency domain features are then subjected to a fractional-order inverse Fourier transform to obtain the downsampled features, as shown in the formula:
[0020] in For downsampling features; It is a fractional-order inverse Fourier transform; This represents the horizontal coordinates of the image after the inverse fractional Fourier transform in the spatial domain. This represents the coordinates of the image in the vertical direction of the inverse fractional Fourier transform in the spatial domain. Step 3.4: Input the downsampled feature map into three parallel feature branches. Branches This is a high-resolution branch that processes shallow features while maintaining high spatial resolution, making it suitable for detecting small-scale defects such as microcracks; This is the medium-resolution branch, used to process medium-scale features and achieve effective characterization of medium-scale defects; branch This is the low-resolution branch, which processes deep semantic features and is suitable for detecting large-scale defects. The formula is:
[0021] Where i is the branch index, used to represent the i-th branch in the parallel feature extraction structure. In this paper, i=1,2,3, which correspond to three feature extraction paths at different scales. This represents the feature extraction module for the i-th branch. This represents the feature map output by the corresponding branch.
[0022] Align the dimensions of each branch feature to unify the spatial resolution for fusion, using the following formula:
[0023] in Features after fusion; For size adjustment operation; To perform this operation on all branches i; Multi-branch features are fused into the final pyramid feature:
[0024] in A 1×1 convolution can be used, and the fused pyramid features simultaneously contain small, medium, and large-scale defect information, improving the network's ability to represent minute defects and detailed features, and providing multi-scale input for subsequent detection heads.
[0025] Step 3.2 is implemented according to the following steps: To achieve progressive modeling of features between the spatial and frequency domains, fractional-order parameters are set at different downsampling stages. The values are 0.25, 0.5, and 0.75, taken during the shallow downsampling stage. =0.25, so that the features mainly retain spatial domain information, thus effectively preserving the detailed structure of the wind turbine blade surface; the intermediate layer takes =0.5, achieving a balanced representation of spatial and frequency domain information, which is beneficial for simultaneously modeling the structural and textural features of defects; the deep downsampling stage takes =0.75, which makes the features more biased towards the frequency domain, thereby enhancing the ability to perceive high-frequency texture features; The fractional Fourier transform of the input feature map is expressed as follows:
[0026] in, Indicates the input image In fractional order The transform domain representation obtained by Fourier transform Essentially, it is an intermediate representation between the time domain and the frequency domain; It is the fractional order; It is a fractional Fourier kernel function; Represents the x-coordinate in the spatial domain. Represents the ordinate in the spatial domain. Represents the x-coordinate in the frequency domain. Represents the ordinate in the frequency domain. Let x represent the infinitesimal element when integrating with respect to the variable x. Represents the variable The infinitesimal element used for integration.
[0027] Step 4 is implemented in the following steps: Step 4.1: Prepare training data. The dataset is organized in COCO format. First, create a main directory to store all images and annotation files. Create an "images" folder in the main directory to store wind turbine blade images. In the "images" folder, further subdivide it into three subfolders: "train", "val", and "test". Create an "annotations" folder in the main directory to store annotation information. According to the dataset division, save the annotation information as JSON files, named as follows: "train.json", "val.json", and "test.json". Each image must have corresponding annotation information recorded in the JSON file in the image folder. The annotation content includes the category of each defect and the coordinates of the bounding box. Step 4.2: Set the training iteration period, batch size, initial learning rate, loss function, and optimizer. Input the wind turbine blade image after data augmentation in Step 2 into the improved Deformable-DETR network structure in Step 3 to train and learn the image features of wind turbine blade defects. After training, obtain the trained wind turbine blade defect detection model and save the best weight file best.pt. The training iteration cycle was set to 150, the batch size to 4, the initial learning rate to 1e-4~2e-4, the loss function to be L1 Loss + GIoU Loss, and the optimizer to be the AdamW optimizer based on gradient descent.
[0028] Step 5 is implemented in the following steps: Applying the optimal weights (best.pt) to the test set yields the following evaluation metrics: Average Precision (AP) and Average Precision (AP) with an IoU threshold of 50%. 50 Average accuracy (AP) when IoU threshold is 75% 75 Average accuracy (AP) for small objects S Average accuracy (AP) for medium-sized objects M and average accuracy (AP) for large objects L Then, the image of the wind turbine blade defect to be detected is input into the trained model, and the wind turbine blade defect detection result is output through detection and recognition.
[0029] The beneficial effects of this invention are that it improves the Deformable-DETR blade defect detection method. Based on the Deformable-DETR architecture, an improved target detection model is designed and constructed; the model is trained; and the trained model is used for defect detection. In the feature downsampling and multi-scale feature generation process of the Deformable-DETR network, this invention introduces a downsampling mechanism based on fractional Fourier transform, effectively preserving high-frequency information and reducing aliasing. Simultaneously, a branch feature pyramid structure is introduced to achieve multi-scale feature fusion, thereby enhancing the characterization ability of small-scale defects such as cracks, corrosion, and spalling, as well as their detailed features. Compared with existing technologies, this invention can effectively improve the accuracy of wind turbine blade defect detection and has good engineering application value. Attached Figure Description
[0030] Figure 1 This is a diagram of the fractional Fourier downsampling structure in this invention; Figure 2 This is a diagram of the branch feature pyramid structure in this invention; Figure 3 This is a diagram of the improved Deformable-DETR backbone network structure in this invention. Detailed Implementation
[0031] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments.
[0032] Example 1 This invention improves the Deformable-DETR blade defect detection method, which is implemented according to the following steps: Step 1: Construct a wind turbine blade defect dataset; including the wind turbine blade image dataset WTBs2025 and self-collected wind turbine blade surface image data; Step 2: Perform data preprocessing and data augmentation on the wind turbine blade defect dataset; Step 3: Improve the Deformable-DETR network structure by introducing a fractional Fourier transform downsampling module in the feature downsampling stage to enhance the ability to preserve feature details; and improve the network's ability to detect defects at different scales by constructing a parallel branch feature pyramid structure to achieve multi-scale feature fusion.
[0033] Step 4: Use the data augmented dataset obtained in Step 2 to train the improved Deformable-DETR network structure to obtain the trained wind turbine blade defect detection model. Step 5: Input the image of the wind turbine blade to be detected into the defect detection model, and output the wind turbine blade defect detection result through detection and identification.
[0034] Example 2 This invention improves the Deformable-DETR blade defect detection method, which is implemented according to the following steps: Step 1: Construct a wind turbine blade defect dataset; including the wind turbine blade image dataset WTBs2025 and self-collected wind turbine blade surface image data; Step 1 is implemented in the following steps: Based on the publicly available wind turbine blade image dataset WTBs2025, this dataset incorporates independently collected wind turbine blade surface image data to construct a more diverse wind turbine blade inspection dataset. The independently collected data was acquired using an industrial camera with a resolution of 2560×1440 and drone aerial photography equipment under actual operating conditions in a wind farm, covering different environmental backgrounds and surface states. The wind turbine blade defects in the dataset are classified into nine categories: cracks, protective film damage, lightning strikes, coating peeling, erosion, oil leaks, porosity, localized damage, and surface stains. Subsequently, the labeling tool LabelImg was used to label the wind turbine blade defect images in the dataset. The labeling included assigning category labels to defects and marking defect areas with rectangular boxes. The labeling information was saved one-to-one with the images. Finally, the labeled dataset was divided into training, validation, and test sets in a 7:2:1 ratio. The training set was used for model training, the validation set for model parameter tuning, and the test set for model performance evaluation.
[0035] Step 2: Perform data preprocessing and data augmentation on the wind turbine blade defect dataset; Step 3: Improve the Deformable-DETR network structure by introducing a fractional Fourier transform downsampling module in the feature downsampling stage to enhance the ability to preserve feature details; and improve the network's ability to detect defects at different scales by constructing a parallel branch feature pyramid structure to achieve multi-scale feature fusion.
[0036] Step 4: Use the data augmented dataset obtained in Step 2 to train the improved Deformable-DETR network structure to obtain the trained wind turbine blade defect detection model. Step 5: Input the image of the wind turbine blade to be detected into the defect detection model, and output the wind turbine blade defect detection result through detection and identification.
[0037] Example 3 This invention improves the Deformable-DETR blade defect detection method, combining Figures 1-3 The specific steps are as follows: Step 1: Construct a wind turbine blade defect dataset; including the wind turbine blade image dataset WTBs2025 and self-collected wind turbine blade surface image data; Step 1 is implemented in the following steps: Based on the publicly available wind turbine blade image dataset WTBs2025, this dataset incorporates independently collected wind turbine blade surface image data to construct a more diverse wind turbine blade inspection dataset. The independently collected data was acquired using an industrial camera with a resolution of 2560×1440 and drone aerial photography equipment under actual operating conditions in a wind farm, covering different environmental backgrounds and surface states. The wind turbine blade defects in the dataset are classified into nine categories: cracks, protective film damage, lightning strikes, coating peeling, erosion, oil leaks, porosity, localized damage, and surface stains. Subsequently, the labeling tool LabelImg was used to label the wind turbine blade defect images in the dataset. The labeling included assigning category labels to defects and marking defect areas with rectangular boxes. The labeling information was saved one-to-one with the images. Finally, the labeled dataset was divided into training, validation, and test sets in a 7:2:1 ratio. The training set was used for model training, the validation set for model parameter tuning, and the test set for model performance evaluation.
[0038] Step 2: Perform data preprocessing and data augmentation on the wind turbine blade defect dataset; Step 2 is implemented in the following steps: The labeled dataset was preprocessed by adjusting the collected wind turbine blade images to a fixed resolution of 1024×1024 pixels to ensure consistent input model size and retain effective image information containing the target area of the blade. Gaussian noise (manifested as uniformly distributed fine particles) in the wind turbine blade images was smoothed using Gaussian filtering to reduce the impact of random noise. Salt-and-pepper noise (manifested as random black and white pixels) caused by sensor anomalies or environmental interference was removed using median filtering to effectively preserve image edge details while suppressing noise.
[0039] In step 2, to improve the generalization ability of the model, data augmentation and enhancement processing is performed on the wind turbine blade images in the training set. Specifically, this includes scaling, rotation, mirroring, and brightness and contrast adjustment operations to enhance the model's adaptability to complex environments and different shooting conditions. Specifically, the image is scaled as a whole, with a scaling ratio ranging from 0.8 to 1.2 times. The image is rotated, clockwise or counterclockwise by ±15° and ±30°, respectively. The image brightness and contrast are adjusted, with coefficients randomly varying within the range of 0.8 to 1.2.
[0040] Step 3: Improve the Deformable-DETR network structure by introducing a fractional Fourier transform downsampling module in the feature downsampling stage to enhance the ability to preserve feature details; and improve the network's ability to detect defects at different scales by constructing a parallel branch feature pyramid structure to achieve multi-scale feature fusion.
[0041] Step 4: Use the data augmented dataset obtained in Step 2 to train the improved Deformable-DETR network structure to obtain the trained wind turbine blade defect detection model. Step 5: Input the image of the wind turbine blade to be detected into the defect detection model, and output the wind turbine blade defect detection result through detection and identification.
[0042] Example 4 This invention improves the Deformable-DETR blade defect detection method, which is implemented according to the following steps: Step 1: Construct a wind turbine blade defect dataset; including the wind turbine blade image dataset WTBs2025 and self-collected wind turbine blade surface image data; Step 1 is implemented in the following steps: Based on the publicly available wind turbine blade image dataset WTBs2025, this dataset incorporates independently collected wind turbine blade surface image data to construct a more diverse wind turbine blade inspection dataset. The independently collected data was acquired using an industrial camera with a resolution of 2560×1440 and drone aerial photography equipment under actual operating conditions in a wind farm, covering different environmental backgrounds and surface states. The wind turbine blade defects in the dataset are classified into nine categories: cracks, protective film damage, lightning strikes, coating peeling, erosion, oil leaks, porosity, localized damage, and surface stains. Subsequently, the labeling tool LabelImg was used to label the wind turbine blade defect images in the dataset. The labeling included assigning category labels to defects and marking defect areas with rectangular boxes. The labeling information was saved one-to-one with the images. Finally, the labeled dataset was divided into training, validation, and test sets in a 7:2:1 ratio. The training set was used for model training, the validation set for model parameter tuning, and the test set for model performance evaluation.
[0043] Step 2: Perform data preprocessing and data augmentation on the wind turbine blade defect dataset; Step 2 is implemented in the following steps: The labeled dataset was preprocessed by adjusting the collected wind turbine blade images to a fixed resolution of 1024×1024 pixels to ensure consistent input model size and retain effective image information containing the target area of the blade. Gaussian noise (manifested as uniformly distributed fine particles) in the wind turbine blade images was smoothed using Gaussian filtering to reduce the impact of random noise. Salt-and-pepper noise (manifested as random black and white pixels) caused by sensor anomalies or environmental interference was removed using median filtering to effectively preserve image edge details while suppressing noise.
[0044] In step 2, to improve the generalization ability of the model, data augmentation and enhancement processing is performed on the wind turbine blade images in the training set. Specifically, this includes scaling, rotation, mirroring, and brightness and contrast adjustment operations to enhance the model's adaptability to complex environments and different shooting conditions. Specifically, the image is scaled as a whole, with a scaling ratio ranging from 0.8 to 1.2 times. The image is rotated, clockwise or counterclockwise by ±15° and ±30°, respectively. The image brightness and contrast are adjusted, with coefficients randomly varying within the range of 0.8 to 1.2.
[0045] Step 3: Improve the Deformable-DETR network structure by introducing a fractional Fourier transform downsampling module in the feature downsampling stage to enhance the ability to preserve feature details; and improve the network's ability to detect defects at different scales by constructing a parallel branch feature pyramid structure to achieve multi-scale feature fusion.
[0046] Combination Figures 1-3 Step 3 is implemented in the following steps: Step 3.1: Extract features from the input wind turbine blade image using the Deformable-DETR backbone network to obtain three types of basic feature maps: Low-level feature map C2: The output resolution is set to 256×256, and the size is 1 / 4 of the original image. It has high spatial resolution, rich details, and a lot of texture information, making it suitable for capturing small cracks, minor corrosion, and tiny defects with a size of 0.05m to 0.3m. Mid-layer feature maps C3 / C4: The output resolution is set to 64×64, and the size is 1 / 16 of the original image. It balances spatial and semantic information and can capture medium-sized defects with a size of 0.3m to 1m, such as local coating peeling and edge damage. High-level feature map C5: The output resolution is set to 32×32, and the size is 1 / 32 of the original image. It has low spatial resolution but strong semantic information, making it suitable for detecting large-area defects with a size of more than 1m, such as large cracks or lightning strike damage traces. Each layer of feature map has different spatial resolution and semantic information, providing complete input for multi-scale defect detection; This scale division is based on empirical settings of the effective receptive field range of typical wind turbine blade structural dimensions and multi-layer feature maps.
[0047] Step 3.2: In the above feature extraction process, the downsampling structure of the backbone network is improved. In the downsampling stage of the backbone network, a fractional Fourier downsampling module is introduced to replace the traditional stride convolution downsampling operation, so as to enhance the ability to preserve feature details. Step 3.2 is implemented according to the following steps: The Fourier Transform is a mathematical method that transforms a signal from the time / space domain to the frequency domain, decomposing the signal into sine waves of different frequencies to facilitate the analysis of the signal's frequency characteristics. The Fractional Fourier Transform (FrFT) is a generalization of the Fourier Transform, introducing a fractional parameter. This invention enables continuous transformation of signals between the time and frequency domains. To achieve progressive modeling of features between the spatial and frequency domains, fractional-order parameters are set at different downsampling stages. The values are 0.25, 0.5, and 0.75, taken during the shallow downsampling stage. =0.25, so that the features mainly retain spatial domain information, thus effectively preserving the detailed structure of the wind turbine blade surface; the intermediate layer takes =0.5, achieving a balanced representation of spatial and frequency domain information, which is beneficial for simultaneously modeling the structural and textural features of defects; the deep downsampling stage takes =0.75, which makes the features more biased towards the frequency domain, thereby enhancing the ability to perceive high-frequency texture features; The fractional Fourier transform of the input feature map is expressed as follows:
[0048] in, Indicates the input image In fractional order The transform domain representation obtained by Fourier transform Essentially, it is an intermediate representation between the time domain and the frequency domain; It is the fractional order; It is a fractional Fourier kernel function; Represents the x-coordinate in the spatial domain. Represents the ordinate in the spatial domain. Represents the x-coordinate in the frequency domain. Represents the ordinate in the frequency domain. Let x represent the infinitesimal element when integrating with respect to the variable x. Represents the variable The infinitesimal element used for integration.
[0049] Step 3.3: Perform spectrum clipping on the frequency domain features to achieve downsampling. In the shallow, middle, and deep downsampling stages, retain the center 1 / 2, 1 / 3, and 1 / 4 of the spectrum, respectively, and set the remaining frequency components to zero. The formula is:
[0050] in This is the result after downsampling; This represents the spectrum clipping operator, used to retain the center frequency region while setting the rest to zero; Represents the horizontal coordinates in the fractional frequency domain; Represents the vertical coordinates in the fractional frequency domain; Indicates the order of the fractional Fourier transform; The downsampled frequency domain features are then subjected to a fractional-order inverse Fourier transform to obtain the downsampled features, as shown in the formula:
[0051] in For downsampling features; It is a fractional-order inverse Fourier transform; This represents the horizontal coordinates of the image after the inverse fractional Fourier transform in the spatial domain. This represents the coordinates of the image in the vertical direction of the inverse fractional Fourier transform in the spatial domain. Step 3.4: Input the downsampled feature map into three parallel feature branches. Branches This is a high-resolution branch that processes shallow features while maintaining high spatial resolution, making it suitable for detecting small-scale defects such as microcracks; This is the medium-resolution branch, used to process medium-scale features and achieve effective characterization of medium-scale defects; branch This is the low-resolution branch, which processes deep semantic features and is suitable for detecting large-scale defects. The formula is:
[0052] Where i is the branch index, used to represent the i-th branch in the parallel feature extraction structure. In this paper, i=1,2,3, which correspond to three feature extraction paths at different scales. This represents the feature extraction module for the i-th branch. This represents the feature map output by the corresponding branch.
[0053] Align the dimensions of each branch feature to unify the spatial resolution for fusion, using the following formula:
[0054] in Features after fusion; For size adjustment operation; To perform this operation on all branches i; Multi-branch features are fused into the final pyramid feature:
[0055] in A 1×1 convolution can be used, and the fused pyramid features simultaneously contain small, medium, and large-scale defect information, improving the network's ability to represent minute defects and detailed features, and providing multi-scale input for subsequent detection heads.
[0056] Step 4: Use the data augmented dataset obtained in Step 2 to train the improved Deformable-DETR network structure to obtain the trained wind turbine blade defect detection model. Step 5: Input the image of the wind turbine blade to be detected into the defect detection model, and output the wind turbine blade defect detection result through detection and identification.
[0057] This invention improves the Deformable-DETR blade defect detection method, which is implemented according to the following steps: Step 1: Construct a wind turbine blade defect dataset; including the wind turbine blade image dataset WTBs2025 and self-collected wind turbine blade surface image data; Step 1 is implemented in the following steps: Based on the publicly available wind turbine blade image dataset WTBs2025, this dataset incorporates independently collected wind turbine blade surface image data to construct a more diverse wind turbine blade inspection dataset. The independently collected data was acquired using an industrial camera with a resolution of 2560×1440 and drone aerial photography equipment under actual operating conditions in a wind farm, covering different environmental backgrounds and surface states. The wind turbine blade defects in the dataset are classified into nine categories: cracks, protective film damage, lightning strikes, coating peeling, erosion, oil leaks, porosity, localized damage, and surface stains. Subsequently, the labeling tool LabelImg was used to label the wind turbine blade defect images in the dataset. The labeling included assigning category labels to defects and marking defect areas with rectangular boxes. The labeling information was saved one-to-one with the images. Finally, the labeled dataset was divided into training, validation, and test sets in a 7:2:1 ratio. The training set was used for model training, the validation set for model parameter tuning, and the test set for model performance evaluation.
[0058] Step 2: Perform data preprocessing and data augmentation on the wind turbine blade defect dataset; Step 2 is implemented in the following steps: The labeled dataset was preprocessed by adjusting the collected wind turbine blade images to a fixed resolution of 1024×1024 pixels to ensure consistent input model size and retain effective image information containing the target area of the blade. Gaussian noise (manifested as uniformly distributed fine particles) in the wind turbine blade images was smoothed using Gaussian filtering to reduce the impact of random noise. Salt-and-pepper noise (manifested as random black and white pixels) caused by sensor anomalies or environmental interference was removed using median filtering to effectively preserve image edge details while suppressing noise.
[0059] In step 2, to improve the generalization ability of the model, data augmentation and enhancement processing is performed on the wind turbine blade images in the training set. Specifically, this includes scaling, rotation, mirroring, and brightness and contrast adjustment operations to enhance the model's adaptability to complex environments and different shooting conditions. Specifically, the image is scaled as a whole, with a scaling ratio ranging from 0.8 to 1.2 times. The image is rotated, clockwise or counterclockwise by ±15° and ±30°, respectively. The image brightness and contrast are adjusted, with coefficients randomly varying within the range of 0.8 to 1.2.
[0060] Step 3: Improve the Deformable-DETR network structure by introducing a fractional Fourier transform downsampling module in the feature downsampling stage to enhance the ability to preserve feature details; and improve the network's ability to detect defects at different scales by constructing a parallel branch feature pyramid structure to achieve multi-scale feature fusion.
[0061] Step 3 is implemented in the following steps: Step 3.1: Extract features from the input wind turbine blade image based on the backbone network to obtain three types of basic feature maps: Low-level feature map C2: The output resolution is set to 256×256, and the size is 1 / 4 of the original image. It has high spatial resolution, rich details, and a lot of texture information, making it suitable for capturing small cracks, minor corrosion, and tiny defects with a size of 0.05m to 0.3m. Mid-layer feature maps C3 / C4: The output resolution is set to 64×64, and the size is 1 / 16 of the original image. It balances spatial and semantic information and can capture medium-sized defects with a size of 0.3m to 1m, such as local coating peeling and edge damage. High-level feature map C5: The output resolution is set to 32×32, and the size is 1 / 32 of the original image. It has low spatial resolution but strong semantic information, making it suitable for detecting large-area defects with a size of more than 1m, such as large cracks or lightning strike damage traces. Each layer of feature map has different spatial resolution and semantic information, providing complete input for multi-scale defect detection; This scale division is based on empirical settings of the effective receptive field range of typical wind turbine blade structural dimensions and multi-layer feature maps.
[0062] Step 3.2: In the above feature extraction process, the downsampling structure of the backbone network is improved. In the downsampling stage of the backbone network, a fractional Fourier downsampling module is introduced to replace the traditional stride convolution downsampling operation. Step 3.2 is implemented according to the following steps: The Fourier Transform is a mathematical method that transforms a signal from the time / space domain to the frequency domain, decomposing the signal into sine waves of different frequencies to facilitate the analysis of the signal's frequency characteristics. The Fractional Fourier Transform (FrFT) is a generalization of the Fourier Transform, introducing a fractional parameter. This invention enables continuous transformation of signals between the time and frequency domains. To achieve progressive modeling of features between the spatial and frequency domains, fractional-order parameters are set at different downsampling stages. The values are 0.25, 0.5, and 0.75, taken during the shallow downsampling stage. =0.25, so that the features mainly retain spatial domain information, thus effectively preserving the detailed structure of the wind turbine blade surface; the intermediate layer takes =0.5, achieving a balanced representation of spatial and frequency domain information, which is beneficial for simultaneously modeling the structural and textural features of defects; the deep downsampling stage takes =0.75, which makes the features more biased towards the frequency domain, thereby enhancing the ability to perceive high-frequency texture features; The fractional Fourier transform of the input feature map is expressed as follows:
[0063] in, Indicates the input image In fractional order The transform domain representation obtained by Fourier transform Essentially, it is an intermediate representation between the time domain and the frequency domain; It is the fractional order; It is a fractional Fourier kernel function; Represents the x-coordinate in the spatial domain. Represents the ordinate in the spatial domain. Represents the x-coordinate in the frequency domain. Represents the ordinate in the frequency domain. Let x represent the infinitesimal element when integrating with respect to the variable x. Represents the variable The infinitesimal element used for integration.
[0064] Step 3.3: Perform spectrum clipping on the frequency domain features to achieve downsampling. In the shallow, middle, and deep downsampling stages, retain the center 1 / 2, 1 / 3, and 1 / 4 of the spectrum, respectively, and set the remaining frequency components to zero. The formula is:
[0065] in This is the result after downsampling; This represents the spectrum clipping operator, used to retain the center frequency region while setting the rest to zero; Represents the horizontal coordinates in the fractional frequency domain; Represents the vertical coordinates in the fractional frequency domain; Indicates the order of the fractional Fourier transform; The downsampled frequency domain features are then subjected to a fractional-order inverse Fourier transform to obtain the downsampled features, as shown in the formula:
[0066] in For downsampling features; It is a fractional-order inverse Fourier transform; This represents the horizontal coordinates of the image after the inverse fractional Fourier transform in the spatial domain. This represents the coordinates of the image in the vertical direction of the inverse fractional Fourier transform in the spatial domain. Step 3.4: Input the downsampled feature map into three parallel feature branches. Branches This is a high-resolution branch that processes shallow features while maintaining high spatial resolution, making it suitable for detecting small-scale defects such as microcracks; This is the medium-resolution branch, used to process medium-scale features and achieve effective characterization of medium-scale defects; branch This is the low-resolution branch, which processes deep semantic features and is suitable for detecting large-scale defects. The formula is:
[0067] Where i is the branch index, used to represent the i-th branch in the parallel feature extraction structure. In this paper, i=1,2,3, which correspond to three feature extraction paths at different scales. This represents the feature extraction module for the i-th branch. This represents the feature map output by the corresponding branch.
[0068] Align the dimensions of each branch feature to unify the spatial resolution for fusion, using the following formula:
[0069] in Features after fusion; For size adjustment operation; To perform this operation on all branches i; Multi-branch features are fused into the final pyramid feature:
[0070] in A 1×1 convolution can be used, and the fused pyramid features simultaneously contain small, medium, and large-scale defect information, improving the network's ability to represent minute defects and detailed features, and providing multi-scale input for subsequent detection heads.
[0071] Step 4: Use the data augmented dataset obtained in Step 2 to train the improved Deformable-DETR network structure to obtain the trained wind turbine blade defect detection model. Step 4 is implemented in the following steps: Step 4.1: Prepare training data. The dataset is organized in COCO format. First, create a main directory to store all images and annotation files. Create an "images" folder in the main directory to store wind turbine blade images. In the "images" folder, further subdivide it into three subfolders: "train", "val", and "test". Create an "annotations" folder in the main directory to store annotation information. According to the dataset division, save the annotation information as JSON files, named as follows: "train.json", "val.json", and "test.json". Each image must have corresponding annotation information recorded in the JSON file in the image folder. The annotation content includes the category of each defect and the coordinates of the bounding box. Step 4.2: Set the training iteration period, batch size, initial learning rate, loss function, and optimizer. Input the wind turbine blade image after data augmentation in Step 2 into the improved Deformable-DETR network structure in Step 3 to train and learn the image features of wind turbine blade defects. After training, obtain the trained wind turbine blade defect detection model and save the best weight file best.pt. The training iteration cycle was set to 150, the batch size to 4, the initial learning rate to 1e-4~2e-4, the loss function to be L1 Loss + GIoU Loss, and the optimizer to be the AdamW optimizer based on gradient descent.
[0072] Step 5: Input the image of the wind turbine blade to be detected into the defect detection model, and output the wind turbine blade defect detection result through detection and identification.
[0073] Step 5 is implemented in the following steps: Applying the optimal weights (best.pt) to the test set yields the following evaluation metrics: Average Precision (AP) and Average Precision (AP) with an IoU threshold of 50%. 50 Average accuracy (AP) when IoU threshold is 75% 75 Average accuracy (AP) for small objects S Average accuracy (AP) for medium-sized objects M and average accuracy (AP) for large objects L Then, the image of the wind turbine blade defect to be detected is input into the trained model, and the wind turbine blade defect detection result is output through detection and recognition.
[0074] Example 6 Table 1: Experimental Environment
[0075] Compared with the prior art, the present invention has the following technical effects: Table 2: Comparative Experiments
[0076] As shown in Table 2, our proposed method achieves a comprehensive improvement in detection performance based on the Deformable DETR baseline model. Specifically, the AP (Average Per Detection Ratio) increased from 48.3% to 49.5%. 50 The percentage increased from 67.3% to 68.1%, AP 75 It increased from 51.2% to 54.6%. Especially AP 75 The improvement of 3.4 percentage points indicates that the improved model has more accurate target localization capabilities at high IoU thresholds. In target detection at different scales, AP... S AP M and AP L The improvements were 3.0, 2.6, and 1.7 percentage points respectively, with the most significant improvement in small target detection performance. This indicates that the designed improved module effectively enhances fine-grained feature extraction capabilities and improves the model's ability to identify minute defects. Overall, this method significantly improves detection accuracy, validating the effectiveness of the proposed improvement strategy.
[0077] This invention combines wind turbine blade defect detection with an improved Deformable-DETR target detection framework. A fractional Fourier downsampling module is introduced in the multi-scale feature construction stage to enhance the network's ability to preserve high-frequency structural features of the defect region. The fractional Fourier transform, through adjustable mapping of the signal spectrum distribution in the joint time-frequency domain, enables the model to more effectively capture the high-frequency structural features of the defect region while reducing redundant computation, thereby improving the discriminative power of feature representation and detection accuracy.
[0078] To address the distribution characteristics of surface defects on wind turbine blades across different spatial scales, this invention constructs a multi-branch feature pyramid structure, enabling parallel modeling and fusion of multi-scale features. This feature pyramid structure can preserve the detailed information of low-level features while fusing semantic information from high-level features, thereby enhancing the model's comprehensive representation capability of multi-scale defects such as cracks, corrosion, and spalling, and effectively alleviating the problem of insufficient detection accuracy for small-target defects.
[0079] In summary, this invention fully utilizes the advantages of the improved Deformable-DETR framework in multi-scale modeling, combines the fractional Fourier transform's ability to finely model frequency domain features with the multi-scale information fusion mechanism of the feature pyramid structure, and enables the model to achieve high-precision, high-robustness, and high-efficiency detection performance in wind turbine blade defect detection tasks, showing good prospects for engineering applications.
Claims
1. An improved Deformable-DETR blade defect detection method, characterized in that, The specific steps are as follows: Step 1: Construct a dataset of wind turbine blade defects; Step 2: Perform data preprocessing and data augmentation on the wind turbine blade defect dataset; Step 3: Improve the Deformable-DETR network structure by introducing a fractional Fourier downsampling module and using a parallel branch feature pyramid structure to generate multi-scale features; Step 4: Train the improved Deformable-DETR network structure to obtain the trained wind turbine blade defect detection model; Step 5: Input the image of the wind turbine blade to be detected into the defect detection model, and output the defect detection results of the wind turbine blade through detection and recognition.
2. The improved Deformable-DETR blade defect detection method according to claim 1, wherein, Step 1 is implemented in the following steps: Based on the publicly available wind turbine blade image dataset WTBs2025, this dataset incorporates independently collected wind turbine blade surface image data to construct a more diverse wind turbine blade inspection dataset. The independently collected data was acquired using an industrial camera with a resolution of 2560×1440 and drone aerial photography equipment under actual operating conditions in a wind farm, covering different environmental backgrounds and surface states. The wind turbine blade defects in the dataset are classified into nine categories: cracks, protective film damage, lightning strikes, coating peeling, erosion, oil leaks, porosity, localized damage, and surface stains. Subsequently, the labeling tool LabelImg was used to label the wind turbine blade defect images in the dataset. The labeling included assigning category labels to defects and marking defect areas with rectangular boxes. The labeling information was saved one-to-one with the images. Finally, the labeled dataset was divided into training, validation, and test sets in a 7:2:1 ratio. The training set was used for model training, the validation set for model parameter tuning, and the test set for model performance evaluation.
3. The improved Deformable-DETR blade defect detection method according to claim 1, wherein, Step 2 is implemented in the following steps: The labeled dataset was preprocessed by adjusting the collected wind turbine blade images to a fixed resolution of 1024×1024 pixels to ensure consistent input model size and retain effective image information containing the target area of the blade. Gaussian noise in the wind turbine blade images was smoothed using Gaussian filtering to reduce the impact of random noise. Salt-and-pepper noise caused by sensor anomalies or environmental interference was removed using median filtering to effectively preserve image edge details while suppressing noise.
4. The improved Deformable-DETR blade defect detection method according to claim 1, wherein, In step 2, to improve the generalization ability of the model, data augmentation and enhancement processing is performed on the wind turbine blade images in the training set. Specifically, this includes scaling, rotation, mirror flipping, and brightness and contrast adjustment operations to enhance the model's adaptability to complex environments and different shooting conditions. Specifically, the image is scaled as a whole, with a scaling ratio ranging from 0.8 to 1.2 times. The image is rotated, clockwise or counterclockwise by ±15° or ±30°. The image brightness and contrast are adjusted, with coefficients randomly varying within the range of 0.8 to 1.
2.
5. The improved Deformable-DETR blade defect detection method according to claim 1, wherein, Step 3 is implemented in the following steps: Step 3.1: Extract features from the input wind turbine blade image using the Deformable-DETR backbone network to obtain three types of basic feature maps: Low-level feature map C2: The output resolution is set to 256×256, and the size is 1 / 4 of the original image. It has high spatial resolution, rich details, and a lot of texture information, making it suitable for capturing small cracks, minor corrosion, and tiny defects with a size of 0.05m to 0.3m. Mid-layer feature maps C3 / C4: The output resolution is set to 64×64, and the size is 1 / 16 of the original image. It balances spatial and semantic information and can capture medium-sized defects with a size of 0.3m to 1m, such as local coating peeling and edge damage. High-level feature map C5: The output resolution is set to 32×32, and the size is 1 / 32 of the original image. It has low spatial resolution and strong semantic information, making it suitable for detecting large-area defects with a size of more than 1m, such as large cracks or lightning damage traces. Each layer of feature map has different spatial resolution and semantic information, providing complete input for multi-scale defect detection. This scale division is based on empirical settings of the effective receptive field range of typical wind turbine blade structural dimensions and multi-layer feature maps. Step 3.2: In the above feature extraction process, the downsampling structure of the backbone network is improved. In the downsampling stage of the backbone network, a fractional Fourier downsampling module is introduced to replace the traditional stride convolution downsampling operation. Step 3.3: Perform spectrum clipping on the frequency domain features to achieve downsampling. In the shallow, middle, and deep downsampling stages, retain the center 1 / 2, 1 / 3, and 1 / 4 of the spectrum, respectively, and set the remaining frequency components to zero. The formula is: wherein is the result of the downsampling; denotes a spectral clipping operator that retains the central frequency region and zeros the rest; denotes the coordinate in the horizontal direction in the fractional frequency domain; denotes the coordinate in the vertical direction in the fractional frequency domain; denotes the order of the fractional Fourier transform; The downsampled frequency domain features are then subjected to a fractional-order inverse Fourier transform to obtain the downsampled features, as shown in the formula: wherein is a down-sampled feature; is an inverse fractional Fourier transform; denotes the coordinate of the image in the spatial domain horizontal direction after the inverse fractional Fourier transform; denotes the coordinate of the image in the spatial domain vertical direction after the inverse fractional Fourier transform Step 3.4, input the down-sampled feature map into three parallel feature branches , branch is a high-resolution branch, which processes shallow features, maintains high spatial resolution, and is suitable for detecting small-scale defects such as micro-cracks; branch is a medium-resolution branch, which is used to process medium-scale features and realize effective characterization of medium-scale defects; branch is a low-resolution branch, which processes deep semantic features and is suitable for detecting large-scale defects, and the formula is: Where i is the branch index, used to represent the i-th branch in the parallel feature extraction structure. In this paper, i=1,2,3, which correspond to three feature extraction paths at different scales. This represents the feature extraction module for the i-th branch. This represents the feature map output by the corresponding branch; Align the dimensions of each branch feature to unify the spatial resolution for fusion, using the following formula: in Features after fusion; For size adjustment operation; To perform this operation on all branches i; Multi-branch features are fused into the final pyramid feature: in A 1×1 convolution can be used, and the fused pyramid features simultaneously contain small, medium, and large-scale defect information, improving the network's ability to represent minute defects and detailed features, and providing multi-scale input for subsequent detection heads.
6. The improved Deformable-DETR blade defect detection method according to claim 5, characterized in that, Step 3.2 is implemented in the following steps: To achieve progressive modeling of features between the spatial and frequency domains, fractional-order parameters are set at different downsampling stages. The values are 0.25, 0.5, and 0.75, taken during the shallow downsampling stage. =0.25, so that the features mainly retain spatial domain information, thus effectively preserving the detailed structure of the wind turbine blade surface; the intermediate layer takes =0.5, achieving a balanced expression of spatial and frequency domain information, which is beneficial for simultaneously modeling the structural and textural features of defects; Deep downsampling stage =0.75, which makes the features more biased towards the frequency domain, thereby enhancing the ability to perceive high-frequency texture features; The fractional Fourier transform of the input feature map is expressed as follows: in, Indicates the input image In fractional order The transform domain representation obtained by Fourier transform Essentially, it is an intermediate representation between the time domain and the frequency domain; It is the fractional order; It is a fractional Fourier kernel function; Represents the x-coordinate in the spatial domain. Represents the ordinate in the spatial domain. Represents the x-coordinate in the frequency domain. Represents the ordinate in the frequency domain. Let x represent the infinitesimal element when integrating with respect to the variable x. Represents the variable The infinitesimal element used for integration.
7. The improved Deformable-DETR blade defect detection method according to claim 1, characterized in that, Step 4 is implemented in the following steps: Step 4.1: Prepare training data. The dataset is organized in COCO format. First, create a main directory to store all images and annotation files. Create an "images" folder in the main directory to store wind turbine blade images. In the "images" folder, further subdivide it into three subfolders: "train", "val", and "test". Create an "annotations" folder in the main directory to store annotation information. According to the dataset division, save the annotation information as JSON files, named as follows: "train.json", "val.json", and "test.json". Each image must have corresponding annotation information recorded in the JSON file in the image folder. The annotation content includes the category of each defect and the coordinates of the bounding box. Step 4.2: Set the training iteration period, batch size, initial learning rate, loss function, and optimizer. Input the wind turbine blade image after data augmentation in Step 2 into the improved Deformable-DETR network structure in Step 3 to train and learn the image features of wind turbine blade defects. After training, obtain the trained wind turbine blade defect detection model and save the best weight file best.pt. The training iteration cycle was set to 150, the batch size to 4, the initial learning rate to 1e-4~2e-4, the loss function to be L1 Loss + GIoU Loss, and the optimizer to be the AdamW optimizer based on gradient descent.
8. The improved Deformable-DETR blade defect detection method according to claim 7, characterized in that, Step 5 is implemented in the following steps: The best weight best.pt is applied to the test set to obtain the following evaluation indexes: average precision AP, average precision AP when the IoU threshold is 50% 50 , average precision AP when the IoU threshold is 75% 75 , average precision AP for small objects S , average precision AP for medium objects M , and average precision AP for large objects L , and then input the wind turbine blade defect image to be detected into the trained model, and output the wind turbine blade defect detection result through detection and recognition.
