A fan blade anomaly detection method and system based on a multi-modal large model, a terminal, and a storage medium

By using multimodal large-scale model visual semantic matching and optimization processing, the problems of insufficient accuracy and generalization ability in wind turbine blade anomaly detection have been solved, achieving high-precision image-level detection and pixel-level segmentation, and improving the intelligent inspection capability of wind power equipment.

CN123160940APending Publication Date: 2026-11-24INNER MONGOLIA UNIVERSITY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611246436.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-17
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing wind turbine blade anomaly detection technologies are insufficient in terms of detection accuracy, segmentation quality, and model generalization ability, making it difficult to meet the high precision and high reliability requirements of complex industrial environments.

Method used

A wind turbine blade anomaly detection method based on a multimodal large model is adopted. Multi-layer visual features are extracted by a visual encoder, and a unified representation space is constructed by combining a text encoder. Visual semantic matching relationship is established, and image-level anomaly detection and pixel-level anomaly segmentation are collaboratively optimized. Anomaly response information is also optimized to improve detection accuracy and boundary localization capability.

Benefits of technology

It achieves image-level detection and pixel-level precise segmentation of wind turbine blade anomalies, improves detection capabilities and model generalization performance in complex scenarios, and supports intelligent inspection and health status assessment of wind power equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160940A_ABST
    Figure CN123160940A_ABST
Patent Text Reader

Abstract

The application discloses a fan blade anomaly detection method and system based on a multi-modal large model, a terminal and a storage medium. The method comprises the following steps: obtaining a fan blade image to be detected; pre-processing the input image; constructing a fan blade visual semantic representation; establishing a multi-layer visual semantic matching relationship; constructing a multi-layer anomaly response graph; completing multi-layer anomaly response fusion based on reliability evaluation; establishing an image-level anomaly detection and pixel-level anomaly segmentation joint optimization mechanism; optimizing the anomaly response; and outputting the fan blade image-level anomaly detection result and the pixel-level anomaly segmentation result. The application fully utilizes the cross-modal semantic representation capability of the visual language model, realizes image-level detection and pixel-level accurate segmentation of fan blade anomalies, improves the detection capability of unknown anomalies, the anomaly boundary positioning accuracy and the cross-scene generalization performance of the model in a complex scene, and provides more reliable technical support for intelligent inspection and health status evaluation of fan blades.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of anomaly detection technology, and in particular to a method, system, terminal, and computer-readable storage medium for anomaly detection of wind turbine blades based on a multimodal large model. Background Technology

[0002] Wind power generation, as an important clean energy utilization method, boasts advantages such as being green and environmentally friendly, resource-rich, and sustainable, and has become an important component of global energy structure adjustment in recent years. Wind turbine blades, as key components of wind turbine generators that capture wind energy and complete energy conversion, directly affect the power generation efficiency, operational safety, and service life of the wind turbine generator. Because wind turbine blades operate in a complex high-altitude natural environment for extended periods, they are susceptible to various abnormal defects on their surface due to the combined effects of wind and sand erosion, rain and snow erosion, ultraviolet aging, salt spray corrosion, lightning strikes, and long-term alternating loads. These defects include cracks, leading-edge erosion, gel coat peeling, wear, bubbles, contamination, and lightning strike damage. If these abnormalities are not detected and addressed promptly, they will not only reduce the aerodynamic performance and power generation efficiency of the blades but may also further develop into structural damage, and in severe cases, even lead to safety accidents such as blade breakage. Therefore, establishing an intelligent detection technology capable of automatically detecting wind turbine blade anomalies and accurately segmenting abnormal areas is of great significance for ensuring the safe operation of wind turbine generators, reducing operation and maintenance costs, and improving the level of intelligent operation and maintenance of wind farms.

[0003] Currently, wind turbine blade anomaly detection technology has mainly gone through three development stages: manual inspection, traditional machine vision inspection, and intelligent inspection based on deep learning.

[0004] Early wind turbine blade inspections primarily relied on manual methods. Workers would use telescopes, aerial work platforms, rope climbing, or drones to acquire images of the blades, and then rely on their experience to determine if there were any abnormalities such as cracks, corrosion, or gel coat peeling. While this method was simple to implement, it was inefficient, labor-intensive, and the results were easily influenced by human experience, making it difficult to meet the long-term, continuous, and automated inspection requirements of large-scale wind farms.

[0005] With the development of computer vision technology, researchers have proposed numerous methods for anomaly detection in wind turbine blades based on traditional image processing. These methods typically extract surface features of the blades through algorithms such as image enhancement, edge detection, texture analysis, threshold segmentation, and morphological processing to achieve anomaly detection and localization. Compared to manual detection, these methods offer a degree of automation; however, due to their reliance on manually designed image features, they have limited adaptability to changes in lighting, complex backgrounds, shooting angles, and environmental interference, resulting in insufficient stability and robustness in complex industrial environments.

[0006] In recent years, the development of deep learning has significantly promoted the advancement of industrial visual inspection technology. Object detection, semantic segmentation, and anomaly detection methods based on deep learning models such as Convolutional Neural Networks (CNNs) and Transformers can automatically learn image features and have achieved good detection results in anomaly detection tasks such as wind turbine blade cracks, leading-edge erosion, and gel coat peeling. Among these, object detection methods can determine whether anomalies exist on the blade and pinpoint the location of the abnormal target, while semantic segmentation methods can further obtain pixel-level localization results of the abnormal region, improving the accuracy of anomaly region recognition. Currently, most wind turbine blade anomaly detection methods use supervised learning to train the model, requiring the collection of a large number of anomaly samples and pixel-level labeled data for different anomaly types to establish the corresponding detection model.

[0007] With the development of industrial intelligent inspection technology, reducing reliance on anomalous samples and improving the ability to detect unknown anomalies have gradually become important research directions in the field of industrial vision. In recent years, Vision-Language Models (VLMs) have been pre-trained using massive amounts of image and text data to establish a unified representation space between image information and text semantics, exhibiting good cross-scene transfer capabilities and open-category recognition capabilities. Industrial anomaly detection methods based on VLMs typically utilize pre-trained visual encoders to extract image features, use text encoders to construct normal and anomalous semantic descriptions, and calculate the semantic similarity between image features and text features to achieve image-level anomaly detection and pixel-level anomaly localization. Compared to traditional supervised learning methods, this type of method can reduce reliance on anomalous samples and labeled data, providing a new technical route for anomaly detection and segmentation of wind turbine blades.

[0008] Wind turbine blade anomaly detection technology has evolved from traditional image processing to deep learning and visual language models, achieving continuous improvements in detection efficiency, automation, and accuracy. Simultaneously, anomaly detection technology has progressed from focusing solely on anomaly identification to simultaneously achieving image-level anomaly detection and pixel-level anomaly segmentation. However, with the increasingly complex operating environment of wind turbine blades, the growing number of anomaly types, and the ever-increasing demands on detection accuracy, segmentation quality, and model generalization ability in practical engineering applications, existing wind turbine blade anomaly detection and segmentation technologies still have certain shortcomings and require further improvement and optimization.

[0009] Therefore, existing technologies still need to be improved and developed. Summary of the Invention

[0010] The main objective of this invention is to provide a method, system, terminal, and computer-readable storage medium for anomaly detection of wind turbine blades based on a multimodal large model, aiming to solve the problems of insufficient detection accuracy, segmentation quality, and model generalization ability in the existing technology for anomaly detection of wind turbine blades.

[0011] To achieve the above objectives, the present invention provides a method for detecting anomalies in wind turbine blades based on a multimodal large model. The method includes the following steps: Acquire an image of the wind turbine blade to be inspected, and perform unified preprocessing on the image of the wind turbine blade to be inspected to obtain a preprocessed image of the wind turbine blade; The preprocessed wind turbine blade image is input into a visual encoder to extract multi-layer visual features. At the same time, text prompts describing the normal and abnormal states of the wind turbine blade are constructed, and the corresponding semantic feature representations are obtained using a text encoder to establish a unified representation space between the wind turbine blade image and the text semantics. Establish visual semantic matching relationships between multiple visual feature layers and text semantics, calculate the similarity between image features and normal semantics and abnormal semantics, and generate abnormal response information at the corresponding level. Reliability analysis is performed on multi-layer anomaly response information. Based on the contribution of different layers of anomaly response information to the final detection result, fusion weights are adaptively allocated to fuse the multi-layer anomaly response information and obtain fused anomaly response information. A joint optimization mechanism for image-level anomaly detection and pixel-level anomaly segmentation is constructed. Based on the overall anomaly discrimination information, local anomaly regions are located, while the information of local anomaly regions is used to enhance the overall anomaly judgment capability, so as to achieve the synergistic optimization of image-level detection and pixel-level segmentation. The fused anomaly response information is optimized, the boundary of the anomaly region is refined and the continuity is enhanced to obtain the anomaly region segmentation result, and the image-level anomaly detection result and pixel-level anomaly segmentation result of the wind turbine blade are output. The image-level anomaly detection result is used to determine whether there is an anomaly in the current wind turbine blade, and the pixel-level anomaly segmentation result is used to accurately locate the boundary of the anomaly region.

[0012] Optionally, the wind turbine blade anomaly detection method based on a multimodal large model, wherein the step of uniformly preprocessing the image of the wind turbine blade to be detected to obtain a preprocessed wind turbine blade image specifically includes: Standardize the size of the image of the wind turbine blades to be inspected; Standardize the format of the images of the wind turbine blades to be inspected; The image of the wind turbine blade to be detected is subjected to pixel normalization processing; Generate standard image data that meets the input requirements of the visual language model, and use it as a preprocessed image of the wind turbine blades.

[0013] Optionally, the wind turbine blade anomaly detection method based on a multimodal large model, wherein the step of inputting the preprocessed wind turbine blade image into a visual encoder to extract multi-layer visual features, simultaneously constructing text prompts describing the normal and abnormal states of the wind turbine blade, and using a text encoder to obtain corresponding semantic feature representations, establishing a unified representation space between the wind turbine blade image and the text semantics, specifically includes: A shared basic prompt is established on the text side, and basic prompts for normal and abnormal categories are constructed respectively. Learnable context vectors are introduced as basic prompt parameters. The shared basic prompts are used to learn the common semantic information of the normal and abnormal states of wind turbine blades, providing a unified semantic expression basis for the entire model. For each layer of visual features involved in visual semantic matching, a corresponding hierarchical cue offset parameter is introduced. The cue offset parameters of each layer are superimposed on the shared basic cue to form a hierarchical cue for the corresponding visual feature layer, so that different layers of visual features can learn text representations that conform to their own semantic levels. Keep the parameters of the visual encoder and text encoder frozen, and only update the shared basic cue and hierarchical cue offset parameters, so that the model can inherit the cross-modal knowledge already present in the pre-trained visual language model; A shared textual semantic representation for image-level anomaly detection and a hierarchical textual semantic representation for local visual semantic matching are obtained respectively, which together constitute the visual semantic representation of the wind turbine blade.

[0014] Optionally, the wind turbine blade anomaly detection method based on a multimodal large model, wherein establishing a visual semantic matching relationship between multiple visual feature layers and text semantics, calculating the similarity between image features and normal and abnormal semantics, and generating corresponding level anomaly response information specifically includes: The visual features output by the visual encoder at each layer are normalized. For each layer of visual features, the corresponding layer of text semantic features that have been generated are selected respectively, so that each layer of visual features is independently matched with the corresponding text semantics; After completing the normalization of visual features and text features, cosine similarity is used to calculate the similarity between each layer of visual features and the corresponding text semantics, so as to obtain the visual semantic matching results of each visual feature layer, and establish cross-modal correspondence between different layers of visual features and the corresponding text semantics. For each layer of visual semantic matching results, the visual semantic similarity is remapped to two-dimensional space according to the spatial position relationship corresponding to the visual features, and an anomaly response map of the corresponding layer is generated. Spatial size restoration is performed on the abnormal responses of each layer to maintain a unified spatial representation of the abnormal responses of each layer. Abnormal response maps corresponding to different visual feature layers are obtained, and shallow texture abnormal responses, mid-level structural abnormal responses, and high-level semantic abnormal responses are preserved.

[0015] Optionally, the wind turbine blade anomaly detection method based on a multimodal large model, wherein the reliability analysis of multi-layer anomaly response information, and the adaptive allocation of fusion weights based on the contribution of different layers of anomaly response information to the final detection result, to fuse the multi-layer anomaly response information to obtain fused anomaly response information, specifically includes: The obtained anomaly response maps of each layer are input into the reliability estimation module, and each anomaly response map is evaluated independently to obtain the corresponding reliability score. All reliability scores are normalized to obtain the fusion weights corresponding to the abnormal responses of each layer. The abnormal response maps of all layers are weighted and summed according to the fusion weights to generate the final abnormal response map, which serves as the fused abnormal response information.

[0016] Optionally, the wind turbine blade anomaly detection method based on a multimodal large model, wherein the construction of a joint optimization mechanism for image-level anomaly detection and pixel-level anomaly segmentation, based on overall anomaly discrimination information for local anomaly region localization, and simultaneously utilizing local anomaly region information to enhance overall anomaly judgment capability, thereby achieving synergistic optimization of image-level detection and pixel-level segmentation, includes: Image-level classification results are calculated using global image features output by the visual encoder and shared text semantic features, and cross-entropy loss is used to optimize image-level anomaly detection capabilities. The final anomaly response map and the anomaly response maps of each layer are subjected to pixel-level supervision using focus loss and Dice loss respectively, in order to improve the model's ability to locate anomaly regions. A consistency constraint is constructed, and the consistency loss is calculated based on the image-level anomaly probability and pixel-level anomaly response to guide the model to learn image-level and pixel-level anomaly representations. The image-level classification loss, pixel-level segmentation loss and consistency loss are jointly optimized to achieve overall model training.

[0017] Optionally, the wind turbine blade anomaly detection method based on a multimodal large model, wherein optimizing the fused anomaly response information, refining the boundaries and enhancing the continuity of the anomaly region to obtain anomaly region segmentation results, and outputting image-level anomaly detection results and pixel-level anomaly segmentation results of the wind turbine blade, specifically includes: The fused abnormal response information is optimized by feature similarity blocks. The final abnormal response map is flattened into abnormal scores corresponding to multiple spatial locations, and the feature representations of the corresponding locations are extracted. The features are normalized, the feature similarity matrix between each spatial location is calculated, and several neighborhoods with the highest feature similarity are selected as local optimization objects for each spatial location. Anomaly perception gating coefficients are constructed based on the difference in anomaly scores between the center location and the neighboring locations to suppress the interference of low-confidence neighbors on the current anomaly response. Then, Softmax normalization weights are calculated based on the similarity of neighborhood features to perform weighted aggregation of neighborhood anomaly scores. Finally, residual fusion is used to linearly fuse the aggregated anomaly scores with the original anomaly scores. When the maximum value retention strategy is enabled, the maximum value of the fusion result and the original anomaly score is taken element by element to retain high-confidence anomaly responses; After the feature similarity block optimization is completed, a boundary enhancement strategy is adopted to perform gradient enhancement processing on the optimized anomaly response map, extracting the gradient information of the anomaly response map to strengthen the boundary of the anomaly region. Based on the anomaly probability obtained from image-level anomaly detection, the input wind turbine blade image is judged to be normal or abnormal. Based on the final anomaly response map obtained after structure-preserving inference optimization, the anomaly response is thresholded to generate a binary segmentation result of the anomaly region, which is used to represent the location and range of the anomaly region. The image-level anomaly detection results and pixel-level anomaly segmentation results are output in a unified manner to achieve integrated detection of wind turbine blade anomalies and anomaly localization.

[0018] Furthermore, to achieve the above objectives, the present invention also provides a wind turbine blade anomaly detection system based on a multimodal large model, wherein the wind turbine blade anomaly detection system based on a multimodal large model includes: The image preprocessing module is used to acquire the image of the wind turbine blade to be detected, and to perform unified preprocessing on the image of the wind turbine blade to be detected to obtain the preprocessed image of the wind turbine blade. The semantic representation construction module is used to input the preprocessed wind turbine blade image into the visual encoder to extract multi-layer visual features, and at the same time construct text prompts describing the normal and abnormal states of the wind turbine blades, and use the text encoder to obtain the corresponding semantic feature representations, thereby establishing a unified representation space between the wind turbine blade image and the text semantics. The semantic matching and anomaly construction module is used to establish visual semantic matching relationships between multiple visual feature layers and text semantics, calculate the similarity between image features and normal and abnormal semantics, and generate anomaly response information at the corresponding level. The anomaly response fusion module is used to perform reliability analysis on multi-layer anomaly response information. Based on the contribution of different layers of anomaly response information to the final detection result, it adaptively allocates fusion weights to fuse multi-layer anomaly response information and obtain fused anomaly response information. The collaborative optimization module is used to construct a joint optimization mechanism for image-level anomaly detection and pixel-level anomaly segmentation. It locates local anomaly regions based on overall anomaly discrimination information, and at the same time uses local anomaly region information to enhance the overall anomaly judgment capability, so as to achieve collaborative optimization of image-level detection and pixel-level segmentation. The inference optimization and result output module is used to optimize the fused abnormal response information, refine the boundaries and enhance the continuity of the abnormal region, obtain the abnormal region segmentation result, and output the image-level abnormal detection result and pixel-level abnormal segmentation result of the wind turbine blade. The image-level abnormal detection result is used to determine whether there is an abnormality in the current wind turbine blade, and the pixel-level abnormal segmentation result is used to accurately locate the boundary of the abnormal region.

[0019] In addition, to achieve the above objectives, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and a wind turbine blade anomaly detection program based on a multimodal large model stored in the memory and executable on the processor. When the wind turbine blade anomaly detection program based on a multimodal large model is executed by the processor, it implements the steps of the wind turbine blade anomaly detection method based on a multimodal large model as described above.

[0020] Furthermore, to achieve the above objectives, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a wind turbine blade anomaly detection program based on a multimodal large model, and when the wind turbine blade anomaly detection program based on a multimodal large model is executed by a processor, it implements the steps of the wind turbine blade anomaly detection method based on a multimodal large model as described above.

[0021] In this invention, an image of a wind turbine blade to be detected is acquired, and the image is preprocessed to obtain a preprocessed wind turbine blade image. The preprocessed image is then input into a visual encoder to extract multi-layer visual features. Simultaneously, text prompts describing the normal and abnormal states of the wind turbine blade are constructed, and the corresponding semantic feature representations are obtained using a text encoder, establishing a unified representation space between the wind turbine blade image and the text semantics. Visual semantic matching relationships are established between multiple visual feature layers and text semantics, and the similarity between image features and normal and abnormal semantics is calculated to generate corresponding levels of abnormal response information. Reliability analysis is performed on the multi-layer abnormal response information, and the contribution of different layers of abnormal response information to the final detection result is determined. The invention employs an adaptive allocation of fusion weights to fuse multi-layered anomaly response information, resulting in fused anomaly response information. A joint optimization mechanism for image-level anomaly detection and pixel-level anomaly segmentation is constructed. Based on overall anomaly discrimination information, local anomaly regions are located, while local anomaly region information enhances the overall anomaly judgment capability, achieving synergistic optimization of image-level detection and pixel-level segmentation. The fused anomaly response information is then optimized by refining the boundaries and enhancing the continuity of anomaly regions, yielding anomaly region segmentation results. Image-level anomaly detection results and pixel-level anomaly segmentation results for wind turbine blades are output. The image-level anomaly detection results are used to determine whether anomalies exist on the current wind turbine blade, and the pixel-level anomaly segmentation results are used to accurately locate the boundaries of anomaly regions. This invention fully utilizes the cross-modal semantic representation capabilities of visual language models, achieving image-level detection and pixel-level accurate segmentation of wind turbine blade anomalies while reducing dependence on anomaly samples. This improves the detection capability of unknown anomalies in complex scenarios, the accuracy of anomaly boundary localization, and the model's cross-scenario generalization performance, providing more reliable technical support for intelligent inspection and health status assessment of wind turbine blades. Attached Figure Description

[0022] Figure 1 This is a flowchart of a preferred embodiment of the wind turbine blade anomaly detection method based on a multimodal large model of the present invention; Figure 2 This is a schematic diagram of the wind turbine blade image acquisition process in a preferred embodiment of the wind turbine blade anomaly detection method based on a multimodal large model according to the present invention. Figure 3 This is a schematic diagram of the image preprocessing process in a preferred embodiment of the wind turbine blade anomaly detection method based on a multimodal large model of the present invention; Figure 4 This is a schematic diagram illustrating the process of constructing the visual semantic representation of wind turbine blades in a preferred embodiment of the wind turbine blade anomaly detection method based on a multimodal large model according to the present invention. Figure 5This is a schematic diagram of the multi-layer visual semantic matching process in a preferred embodiment of the wind turbine blade anomaly detection method based on a multimodal large model according to the present invention. Figure 6 This is a schematic diagram of the multi-layer anomaly response construction process in a preferred embodiment of the wind turbine blade anomaly detection method based on a multimodal large model of the present invention. Figure 7 This is a schematic diagram of the reliability-based multi-layer anomaly response fusion process in a preferred embodiment of the wind turbine blade anomaly detection method based on a multimodal large model according to the present invention. Figure 8 This is a schematic diagram of the joint optimization process of image-level anomaly detection and pixel-level anomaly segmentation in a preferred embodiment of the wind turbine blade anomaly detection method based on a multimodal large model of the present invention. Figure 9 This is a schematic diagram of the reasoning and optimization process for abnormal response in a preferred embodiment of the wind turbine blade anomaly detection method based on a multimodal large model of the present invention. Figure 10 This is a schematic diagram of the output detection result process in a preferred embodiment of the wind turbine blade anomaly detection method based on a multimodal large model of the present invention; Figure 11 This is a structural diagram of a preferred embodiment of the wind turbine blade anomaly detection system based on a multimodal large model of the present invention; Figure 12 This is a structural diagram of a preferred embodiment of the terminal of the present invention. Detailed Implementation

[0023] To make the objectives, technical solutions, and advantages of this invention clearer and more explicit, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0024] Although existing wind turbine blade anomaly detection and segmentation technologies have made significant progress and have achieved automatic identification and location of blade anomalies to a certain extent, they still have certain shortcomings in terms of anomaly sample acquisition, detection accuracy, adaptability to complex scenarios, and integration of detection and segmentation for wind turbine blade anomaly detection and segmentation tasks in complex industrial environments. These shortcomings make it difficult to meet the practical application requirements of high precision, high reliability, and high generalization capability for intelligent inspection of wind power equipment. Specifically, these shortcomings include the following aspects.

[0025] 1. It is difficult to obtain abnormal samples and relies heavily on supervised learning.

[0026] Currently, most wind turbine blade anomaly detection and segmentation methods employ supervised learning to build detection models. This requires collecting a large number of anomaly samples and annotating them at the image, target, or pixel level, learning known anomaly features to achieve anomaly identification and localization. However, anomalies such as wind turbine blade cracks, leading edge erosion, gel coat peeling, and lightning damage are typically characterized by low probability of occurrence, diverse types, large morphological variations, and uneven data distribution. In practical engineering, it is difficult to obtain large-scale labeled datasets covering all anomaly types.

[0027] Furthermore, wind turbine blades operate in complex natural environments for extended periods, resulting in significant variations in blade surface anomalies across different wind farms, turbine models, and service stages. When the object of detection, operating environment, or anomaly type changes, existing supervised learning models typically require re-collecting anomaly samples and retraining the model. This leads to high model migration costs, long deployment cycles, and difficulty in adapting to the constantly emerging new and unknown anomalies during actual wind farm inspections.

[0028] Therefore, how to reduce the model's dependence on a large number of abnormal samples and manually labeled data, and improve the model's ability to detect unknown anomalies and anomalies with few samples, is an important technical problem that urgently needs to be solved in the field of wind turbine blade anomaly detection.

[0029] 2. Insufficient accuracy in anomaly detection and inability to locate anomaly boundaries.

[0030] Anomalies on wind turbine blade surfaces are characterized by a large scale range, complex boundaries, significant texture variations, and diverse morphologies. Crack-like anomalies typically appear as thin, elongated strips with relatively small widths and strong continuity; anomalies such as leading-edge erosion, gel coat peeling, and lightning strike damage exhibit irregular boundaries and varying scales. Furthermore, factors such as blade surface coating textures, light reflection, stains, and manufacturing patterns can easily produce similar texture features to genuine anomalies, further increasing the difficulty of anomaly identification.

[0031] Existing anomaly detection methods typically focus on using single-layer visual features or limited-scale features for anomaly identification. These methods have limited ability to represent features in anomaly regions of different scales, easily leading to problems such as missed detection of small anomalies, incomplete localization of large-area anomalies, blurred anomaly boundaries, and local false detections. Furthermore, there is often a lack of significant grayscale difference between anomaly regions and background regions. Under complex background conditions, anomaly responses are easily affected by background texture and noise, resulting in discontinuous responses and inaccurate boundary localization, thus impacting the final anomaly detection and segmentation accuracy.

[0032] Therefore, how to make full use of visual features at different levels to improve the detection capability of multi-scale anomalies in wind turbine blades and accurately restore the true boundaries of the abnormal area is an important problem that still needs to be solved by existing technologies.

[0033] 3. Insufficient model generalization ability in complex scenarios.

[0034] Actual wind turbine blade inspection typically uses drones for image acquisition. However, the images captured during this process are easily affected by factors such as changes in lighting, background sky, cloud cover, shadows, dirt contamination, shooting angle, and varying weather conditions, resulting in significant differences in the acquired images. Furthermore, the surface condition of blades varies considerably between different wind farms, different turbine models, and different stages of service, easily causing data distribution shifts between training data and actual application scenarios.

[0035] Currently, most anomaly detection models are trained on specific datasets, and the features they learn are highly dependent on those datasets. When these models are deployed to new wind farm environments, new wind turbine models, or unfamiliar anomaly types, their detection performance tends to decline significantly, resulting in reduced anomaly recognition accuracy, increased false detection rates, and insufficient generalization ability. This makes it difficult to meet the large-scale intelligent inspection needs of wind farms across regions and equipment.

[0036] Therefore, improving the generalization ability of the model under different scenarios, different equipment, and unknown abnormal conditions, and realizing the stable cross-scenario application of the wind turbine blade anomaly detection model, remains an important research direction in the field of intelligent wind turbine blade detection.

[0037] 4. Insufficient ability to integrate image-level anomaly detection and pixel-level anomaly segmentation.

[0038] Current methods for detecting anomalies in wind turbine blades primarily rely on target detection technology. The results are typically output as rectangular detection frames, providing only a general area of ​​the anomaly and failing to accurately describe the true boundaries and spatial morphology of anomalies such as cracks, leading-edge erosion, and gel coat peeling. For slender anomalies like cracks and scratches, as well as erosion and gel coat peeling anomalies with irregular boundaries, the detection frame often includes a large number of normal areas, failing to accurately reflect the actual size, shape, and boundary information of the anomaly area. This makes it difficult to meet the engineering application needs for anomaly area statistics, crack length measurement, damage assessment, and maintenance decision-making.

[0039] In recent years, although some studies have begun to use image segmentation methods to locate anomalies in wind turbine blades, most methods mainly focus on pixel-level anomaly region extraction. Image-level anomaly detection and pixel-level anomaly segmentation usually employ independent modeling methods, lacking a unified anomaly representation and an effective information exchange mechanism. Overall image anomaly information is difficult to effectively guide the local anomaly region localization, while local anomaly segmentation results cannot improve the overall anomaly judgment ability, leading to inconsistencies between detection and segmentation results.

[0040] Furthermore, in scenarios involving complex backgrounds, multi-scale anomalies, and slender cracks, existing anomaly segmentation methods are still prone to problems such as blurred anomaly boundaries, local fractures, missing details, and insufficient structural continuity. These methods fail to accurately reflect the spatial structure and damage morphology of the anomaly region, affecting the reliability of anomaly detection results and their engineering application value.

[0041] Therefore, how to establish a unified framework for anomaly detection and segmentation, achieve image-level anomaly discrimination while obtaining high-precision pixel-level anomaly segmentation results, and further improve the accuracy of anomaly region boundary positioning and the consistency of detection and segmentation results are important technical problems that urgently need to be solved in the field of anomaly detection and segmentation of wind turbine blades.

[0042] In summary, existing wind turbine blade anomaly detection and segmentation technologies still have significant shortcomings in terms of anomaly sample dependence, detection accuracy, adaptability to complex scenarios, and integrated detection and segmentation capabilities. These shortcomings make it difficult to meet the application requirements of intelligent wind turbine blade inspection in complex industrial environments, which demand high precision, high reliability, high generalization ability, and refined anomaly localization.

[0043] Therefore, it is necessary to propose a method for anomaly detection and segmentation of wind turbine blades based on a visual language model. This method fully utilizes the cross-modal semantic representation capability of the visual language model, reduces the dependence on abnormal samples, and achieves image-level detection and pixel-level accurate segmentation of wind turbine blade anomalies. This improves the detection capability of unknown anomalies in complex scenarios, the accuracy of anomaly boundary localization, and the cross-scenario generalization performance of the model, providing more reliable technical support for intelligent inspection and health status assessment of wind turbine blades.

[0044] To address the shortcomings of existing wind turbine blade anomaly detection and segmentation technologies, such as heavy reliance on anomaly samples, insufficient detection accuracy, limited generalization ability in complex scenarios, and inadequate integration of detection and segmentation, this invention proposes a wind turbine blade anomaly detection and segmentation method based on a visual language model. This invention utilizes a pre-trained visual language model and, combined with the characteristics of wind turbine blade anomaly detection tasks, constructs a unified framework for image-level anomaly detection and pixel-level anomaly segmentation. This achieves high-precision detection and refined segmentation of wind turbine blade anomalies without requiring a large number of anomaly samples or with only anomaly samples from other domains, thereby improving the model's detection performance and engineering application capabilities in complex industrial scenarios.

[0045] The present invention mainly solves the following technical problems: 1. Reduce the reliance on abnormal samples and manual annotations for wind turbine blade anomaly detection.

[0046] To address the issue that existing supervised learning methods require a large number of abnormal samples and manually labeled data, this invention fully leverages the large-scale cross-modal pre-training capabilities of visual language models to establish a correspondence between wind turbine blade images and normal and abnormal semantics, achieving anomaly recognition based on semantic knowledge. By introducing learnable text prompts, the model can automatically learn semantic representations suitable for wind turbine blade detection tasks. This reduces reliance on abnormal samples while improving the model's ability to identify unknown and low-sample anomalies, lowering model training costs, and increasing model deployment efficiency.

[0047] 2. Improve the accuracy of wind turbine blade anomaly detection and the ability to locate anomaly boundaries.

[0048] To address the problem of accurately locating abnormal areas such as large scale, complex boundaries, slender cracks, and irregular erosion areas in wind turbine blades, this invention fully utilizes visual information from different levels of a visual encoder to construct multi-layer visual semantic correspondences and fuses them with multi-layer abnormal response information, enabling shallow visual features, mid-layer structural information, and deep semantic information to collaboratively express abnormal areas.

[0049] By establishing a unified representation of abnormal responses, the model's ability to identify abnormal regions at different scales is improved, enhancing the detection accuracy of different types of anomalies such as cracks, leading edge erosion, gel coat peeling, and lightning damage. At the same time, the ability to locate the boundaries of abnormal regions is improved, enabling abnormal regions to more completely and accurately represent their true spatial morphology.

[0050] 3. Improve the generalization ability of models in complex industrial scenarios.

[0051] To address the issue of insufficient model generalization ability caused by changes in lighting, sky background, different shooting angles, and different wind conditions during drone inspections, this invention fully utilizes the cross-modal semantic representation capabilities of visual language models on large-scale image and text data, enabling the model to learn more general visual semantic features rather than relying on texture information in specific datasets.

[0052] By establishing a unified visual semantic representation space, the adaptability of the model in different wind farms, different wind turbine models, and unknown abnormal scenarios is improved, the impact of data distribution changes on detection performance is reduced, and the model's cross-scenario deployment capability and engineering application stability are enhanced.

[0053] 4. Improve the integrated capability of wind turbine blade anomaly detection and anomaly segmentation.

[0054] To address the problems of existing wind turbine blade anomaly detection methods, which mainly output target detection boxes, have difficulty in achieving accurate segmentation of abnormal regions, and lack collaborative optimization between image-level anomaly detection and pixel-level anomaly segmentation, this invention establishes a unified anomaly detection and anomaly segmentation framework.

[0055] By sharing a unified visual semantic representation, image-level anomaly detection and pixel-level anomaly segmentation are achieved simultaneously. A consistency optimization mechanism is established between image-level anomaly information and pixel-level anomaly regions, enabling overall anomaly judgment to guide local anomaly localization, while local anomaly region information can further enhance the overall anomaly recognition capability.

[0056] Meanwhile, the abnormal response results are further optimized during the inference stage to improve the continuity of the abnormal region boundary and the structural integrity, and to achieve high-precision pixel-level segmentation of the abnormal region of the wind turbine blade, providing more accurate and reliable abnormal information for crack length measurement, abnormal area statistics, damage assessment and maintenance decision-making.

[0057] In summary, this invention addresses the problems of severe reliance on abnormal samples, insufficient detection accuracy, limited generalization ability in complex scenarios, and insufficient integration of detection and segmentation in the process of wind turbine blade anomaly detection and segmentation. It proposes a wind turbine blade anomaly detection and segmentation method based on a visual language model. This method reduces reliance on manual annotation and achieves image-level detection and pixel-level accurate segmentation of wind turbine blade anomalies. This improves the accuracy, stability, and engineering application capabilities of wind turbine blade anomaly detection in complex industrial scenarios, providing reliable technical support for intelligent inspection of wind power equipment.

[0058] This invention first acquires an image of the wind turbine blade to be detected and performs unified preprocessing on the input image to meet the input requirements of the visual language model. Then, the preprocessed image is input into a visual encoder to extract multi-layer visual features. Simultaneously, text prompts describing the normal and abnormal states of the wind turbine blade are constructed, and the corresponding semantic feature representations are obtained using a text encoder, thereby establishing a unified representation space between the wind turbine blade image and the text semantics.

[0059] After obtaining image and text features, this invention establishes visual-semantic matching relationships between multiple visual feature layers and text semantics. By calculating the similarity between image features and normal and abnormal semantics, corresponding levels of abnormal response information are generated. Since different layers of visual features contain local texture information, structural information, and high-level semantic information, this invention further performs reliability analysis on multi-layer abnormal responses. Based on the contribution of different layers of abnormal responses to the final detection result, fusion weights are adaptively allocated to achieve effective fusion of multi-layer abnormal information and improve the model's ability to identify abnormal regions at different scales.

[0060] To further improve the consistency of detection results, this invention constructs a joint optimization mechanism for image-level anomaly detection and pixel-level anomaly segmentation, enabling the overall anomaly discrimination information to effectively guide the local anomaly region location, while utilizing the local anomaly region information to further enhance the overall anomaly judgment capability, thereby achieving synergistic optimization of image-level detection and pixel-level segmentation.

[0061] During the inference phase, this invention further optimizes the fused abnormal response, refines the boundaries and enhances the continuity of the abnormal region, and improves the problems of boundary blurring, local fracture and response dispersion that are prone to occur in abnormal regions such as slender cracks, leading edge erosion and gel coat peeling, thereby obtaining a more accurate and complete abnormal region segmentation result.

[0062] Ultimately, this invention simultaneously outputs image-level anomaly detection results and pixel-level anomaly segmentation results for wind turbine blades. The image-level detection results are used to determine whether any anomalies exist on the current wind turbine blades; the pixel-level segmentation results are used to accurately locate the boundaries of the anomaly region and can be further used for engineering applications such as crack length measurement, anomaly area statistics, damage assessment, and maintenance decision-making.

[0063] The preferred embodiment of the wind turbine blade anomaly detection method based on a multimodal large model described in this invention, such as... Figure 1 As shown, the wind turbine blade anomaly detection method based on a multimodal large model includes the following steps: Step S10: Obtain the image of the wind turbine blade to be detected, and perform unified preprocessing on the image of the wind turbine blade to be detected to obtain the preprocessed wind turbine blade image.

[0064] Specifically, an image of the wind turbine blade to be detected (i.e., the input image) is acquired and used as input data for the wind turbine blade anomaly detection and segmentation method of the present invention, providing basic data support for subsequent image preprocessing, visual feature extraction, and anomaly detection. The present invention does not impose special restrictions on image acquisition equipment or image sources; any information that can acquire the surface state information of the wind turbine blade can be used as input data for the method of the present invention.

[0065] like Figure 2 As shown, wind turbine blade images can be acquired using a drone inspection system, industrial camera, handheld terminal, mobile inspection platform, or other digital image acquisition devices. Preferably, this embodiment uses a drone equipped with a high-definition visible light camera to inspect and photograph the wind turbine blades. The drone follows a preset flight path to acquire images of the windward side, leeward side, and leading edge area of ​​the wind turbine blades, obtaining inspection images containing the complete or partial area of ​​the wind turbine blades. The acquired images can be single static images or keyframes from inspection videos. This invention does not limit the image acquisition method, nor does it limit the image acquisition time or shooting angle.

[0066] The input image can include images of normal wind turbine blades or images of wind turbine blades with abnormalities. The abnormalities include, but are not limited to, one or more of the following types: cracks, leading edge erosion, gel coat peeling, lightning strike damage, scratches, holes, wear, and other wind turbine blade surface abnormalities.

[0067] Furthermore, this invention is applicable to different types of wind turbine blades, blades at different service stages, and different wind farm inspection environments, and is not limited by blade model or anomaly type.

[0068] Let the input image of the fan blades be represented as: ; in: This indicates the input of an RGB image of the wind turbine blades; Indicates the image height; This indicates the image width; the three channels correspond to the red (R), green (G), and blue (B) color channels, respectively.

[0069] The input image can be in common digital image formats such as JPEG, PNG, BMP, TIFF, etc., and this invention does not impose any restrictions on this.

[0070] Since actual wind turbine blade inspections are usually carried out outdoors, the input images typically have the following characteristics: significant variations in lighting conditions; complex backgrounds such as the sky, sea, and mountains; obvious variations in shooting distance and angle; significant variations in blade size; large spans in the size of abnormal areas; and the possibility of slight motion blur, image noise, and shadow occlusion.

[0071] This invention eliminates the need for manual screening of the aforementioned complex environment and allows for the direct use of acquired images to complete subsequent anomaly detection.

[0072] After completing this step, you will obtain the original image of the wind turbine blades to be inspected. The images are then preprocessed to standardize image size, data format, and pixel distribution, providing standardized input for subsequent visual language model feature extraction.

[0073] By collecting image data during the operation of wind turbine blades, a data source for wind turbine blade anomaly detection is established, providing a reliable data foundation for subsequent anomaly detection and segmentation. The system acquires image data including both normal and abnormal blades, covering various typical wind turbine blade anomalies such as cracks, leading-edge erosion, gel coat peeling, and contamination, improving the model's adaptability to different anomaly types. It supports multiple image acquisition methods, including drone inspections, manual inspections, and fixed monitoring equipment, offering good application flexibility and meeting the detection needs of different wind power scenarios. Furthermore, the image acquisition process and subsequent anomaly detection algorithms remain independent, not relying on specific acquisition equipment, demonstrating good versatility and engineering application value.

[0074] Since wind turbine blade inspection images typically originate from drones, industrial cameras, or other image acquisition devices, images acquired by different devices vary in resolution, size, brightness, contrast, and data format. To ensure that the subsequent visual language model can process images from different sources uniformly and improve the model's stability and generalization ability, this invention preprocesses the wind turbine blade images before inputting them into the visual language model. Specifically, this includes: Standardize the size of the image of the wind turbine blades to be inspected; Standardize the format of the images of the wind turbine blades to be inspected; The image of the wind turbine blade to be detected is subjected to pixel normalization processing; Generate standard image data that meets the input requirements of the visual language model, and use it as a preprocessed image of the wind turbine blades.

[0075] like Figure 3 As shown, if the input image of the wind turbine blade is represented as ;in, Indicates the image height; This indicates the image width. Since different inspection devices acquire images of varying sizes, to ensure that the subsequent visual encoder can extract image features uniformly, this invention first adjusts the size of the input image, scaling the original image to a preset input size.

[0076] Preferably, the image size is uniformly adjusted to 518×518 pixels. Of course, in other embodiments, 224×224, 336×336 or other input sizes can be selected according to the structure of the visual language model, and the present invention does not limit this.

[0077] After resizing, the image pixels are normalized to ensure a consistent data distribution across different images. Let the image pixel values ​​be represented as: ; in, Normalized image of the wind turbine blades. Represents the x-coordinate of a pixel; Represents the ordinate of a pixel; Indicates the color channel.

[0078] First, the image pixels are mapped to the [0, 1] interval, and then standardized according to the data distribution parameters used by the visual language model: ; in, Standardized image of the machine blades. This represents the mean; It represents the standard deviation.

[0079] The above processing can reduce the differences in brightness and color distribution between different images, thereby improving the stability of the model training and inference process.

[0080] To meet the data input requirements of deep learning frameworks, this invention further performs format conversion on image data.

[0081] The image is from Convert to The data is arranged in a specific way and converted into floating-point data so that the visual encoder can extract features later.

[0082] Furthermore, during the inference phase, the images are only subjected to size unification and normalization processing, without involving data augmentation operations such as random cropping or random flipping, thereby ensuring the consistency and repeatability of the detection results.

[0083] After completing the above preprocessing, a standardized image that meets the input requirements of the visual language model can be obtained, denoted as . ; yes The image data is obtained after format conversion; among which... The preprocessed image will be used as subsequent input, and the visual encoder will further extract multi-layer visual features of the wind turbine blades and establish a visual semantic representation between the image and the text.

[0084] In other embodiments, to further improve the performance of wind turbine blade anomaly detection in complex environments, image quality enhancement operations can be added during the image preprocessing stage, such as brightness adjustment, contrast adjustment, sharpening, or noise suppression, to improve image quality under low light, shadow occlusion, or slight blurring conditions. The above preprocessing methods can be flexibly selected according to different inspection scenarios.

[0085] By standardizing and converting the input images to the same size, ensuring consistent data format for the visual encoder, the stability of model training and inference is improved. A unified data preprocessing workflow reduces data distribution differences caused by different acquisition devices, shooting angles, and lighting conditions, enhancing the model's adaptability to wind turbine blade images in complex environments. Image preprocessing improves the quality of visual feature extraction, providing more stable and reliable data input for subsequent visual semantic representation construction, multi-layer visual semantic matching, and anomaly response construction. The preprocessing process requires no complex calculations; lightweight data transformation is sufficient for data standardization, ensuring both detection accuracy and inference efficiency, thus meeting the requirements for online intelligent detection of wind turbine blades.

[0086] Step S20: Input the preprocessed wind turbine blade image into a visual encoder to extract multi-layer visual features. At the same time, construct text prompts describing the normal and abnormal states of the wind turbine blades, and use the text encoder to obtain the corresponding semantic feature representations, thus establishing a unified representation space between the wind turbine blade image and the text semantics.

[0087] To address the shortcomings of existing wind turbine blade anomaly detection methods based on visual language models, which typically employ fixed text prompts or uniform prompt learning approaches, making it difficult to fully express the semantic features of anomalies at different scales of wind turbine blades and lacking targeted semantic modeling for visual features at different levels, this invention proposes a method for constructing visual semantic representations of wind turbine blades based on hierarchical dedicated prompt learning.

[0088] Existing visual language models typically employ a unified text prompt for semantic matching of all visual features, meaning that different layers of visual features share the same set of textual semantic representations. However, wind turbine blade anomalies exhibit significant multi-scale characteristics, with substantial differences in the information contained within different layers of visual features. Shallow visual features primarily describe local details such as crack edges and texture variations; mid-level visual features mainly reflect local structural features of the blade; and high-level visual features contain overall semantic information about the wind turbine blade. If a unified prompt is used for semantic matching, it becomes difficult for different layers of visual features to obtain textual representations appropriate to their semantic levels, potentially leading to insufficient response in fine-grained anomaly regions and impacting subsequent anomaly detection and segmentation performance.

[0089] Furthermore, if the complete cue parameters are learned independently for each layer of visual features, the number of training parameters will increase significantly, reducing the training efficiency of the model. At the same time, it is easy to destroy the existing cross-modal semantic representation capabilities of the pre-trained visual language model.

[0090] Therefore, it is necessary to construct a visual semantic representation method that can take into account both global semantic consistency and hierarchical semantic differences. Based on making full use of the existing knowledge of pre-trained visual language models, a more refined text semantic representation should be established for different visual feature layers, providing a unified and accurate cross-modal semantic foundation for subsequent multi-layer visual semantic matching and abnormal response construction.

[0091] To address the aforementioned issues, this invention constructs a prompting learning mechanism that combines shared basic prompts with hierarchical specific prompts based on a pre-trained visual language model.

[0092] First, a shared basic prompt is established at the text level, constructing basic prompts for both normal and abnormal categories, and introducing learnable context vectors as basic prompt parameters. The shared basic prompts are used to learn common semantic information about the normal and abnormal states of wind turbine blades, providing a unified semantic representation foundation for the entire model.

[0093] Furthermore, this invention introduces corresponding hierarchical cue offset parameters for each layer of visual features involved in visual semantic matching. These offset parameters are superimposed on a shared basic cue to form hierarchical cue specific to the corresponding visual feature layer. This allows different layers of visual features to learn text representations that better suit their own semantic levels without needing to reconstruct complete cue parameters, thereby enhancing the local semantic expressive power of different layers of visual features while maintaining global semantic consistency.

[0094] This invention keeps the parameters of the visual encoder and text encoder frozen, and only updates the shared basic prompts and hierarchical prompt offset parameters. This allows the model to fully inherit the cross-modal knowledge already present in the pre-trained visual language model, while reducing the scale of training parameters and improving the model's ability to quickly adapt to the wind turbine blade anomaly detection task.

[0095] Ultimately, this step yields a shared textual semantic representation for image-level anomaly detection and a hierarchical textual semantic representation for local visual semantic matching, which together constitute the visual semantic representation of the wind turbine blades, providing input for subsequent multi-layer visual semantic matching.

[0096] like Figure 4 As shown, after image preprocessing, the standardized wind turbine blade image is input into a frozen visual encoder for feature extraction. Let the input image be represented as: The visual encoder extracts visual features layer by layer, resulting in multiple visual feature layers that participate in anomaly detection: ; in, Indicates the first Layered visual features; This indicates the number of visual feature layers involved in visual semantic matching.

[0097] Subsequently, shared basic hints are initialized on the text side, including basic hints for normal categories and basic hints for abnormal categories, represented as follows: and The basic cue consists of a category identifier and a learnable context vector, which are used as shared cue parameters in model training.

[0098] To establish semantic representations corresponding to different visual feature layers, this invention further sets hierarchical cue offset parameters for each visual feature layer. Let the normal cue offset parameter for layer (i) be represented as: The offset parameter for the anomaly message at level (i) is represented as follows: .

[0099] Then, the normal and abnormal prompts corresponding to the visual features of layer (i) are represented as follows: ; ; in, and Let represent the normal prompt offset parameter and the abnormal prompt offset parameter of layer (i), respectively, which are learnable parameters that are continuously optimized during model training.

[0100] Subsequently, basic tips will be shared. and Input a frozen text encoder to obtain a shared text semantic feature representation. Shared text semantic feature representations are primarily used for image-level anomaly detection tasks.

[0101] Simultaneously, the dedicated prompts for each layer are input into the text encoder for encoding, thereby obtaining the hierarchical text semantic feature representations of the corresponding visual feature layers: ; in, This represents the semantic features of the normal text at level (i). This represents the semantic features of the abnormal text at layer (i).

[0102] Finally, this step yields the multi-layered visual features output by the visual encoder: ; Shared text semantic feature representation: ; And the corresponding hierarchical text semantic feature representations for each visual feature layer: ; Among them, the shared text semantic representation is used for subsequent image-level anomaly detection, and the hierarchical text semantic representation is used for subsequent multi-layer visual semantic matching, together constituting the visual semantic representation of the wind turbine blade.

[0103] A cue learning mechanism combining shared base cues and hierarchical cue offsets is adopted. While maintaining global semantic consistency, corresponding textual semantic representations are established for different visual feature layers, improving the visual language model's ability to express anomalies at different scales of wind turbine blades. By introducing hierarchical cue offset parameters on the shared base cues, instead of learning complete cue parameters separately, the hierarchical semantic expressiveness is enhanced while effectively reducing the model's training parameter scale and improving training efficiency. The parameters of the visual encoder and text encoder are kept frozen, and only the parameters of the cue learning module are optimized. This fully utilizes the existing cross-modal knowledge of the pre-trained visual language model, improving the model's transfer and generalization capabilities for wind turbine blade anomaly detection tasks. At the same time, shared textual semantic representations and hierarchical textual semantic representations are generated, providing a unified, stable, and hierarchically semantic cross-modal representation foundation for subsequent image-level anomaly detection, multi-layer visual semantic matching, multi-layer anomaly response construction, and reliability fusion.

[0104] Step S30: Establish visual semantic matching relationships between multiple visual feature layers and text semantics, calculate the similarity between image features and normal semantics and abnormal semantics, and generate abnormal response information at the corresponding level.

[0105] After constructing the visual semantic representation of the wind turbine blades, the model has obtained multi-layered visual features and corresponding hierarchical textual semantic features. Existing visual language models typically use a single textual semantic representation to perform unified matching with visual features, meaning all visual feature layers share the same set of textual features for cross-modal similarity calculation. Since the information contained in visual features at different layers differs significantly, this unified matching approach easily leads to visual semantic mismatch, reducing the semantic perception capability of fine-grained anomaly regions and thus affecting anomaly detection and segmentation performance.

[0106] Furthermore, anomalies such as wind turbine blade cracks, leading-edge erosion, and gel coat peeling typically exhibit significant scale differences. Shallow visual features mainly contain local texture and edge information, while high-level visual features encompass overall structural semantics. If different layers of visual features are matched using the same textual semantics, it is difficult to fully leverage the expressive power of multi-layered visual features.

[0107] Therefore, it is necessary to establish a multi-layer visual semantic matching method, so that visual features of different layers can be matched with corresponding text semantic features, thereby constructing a more accurate cross-modal semantic correspondence and providing a reliable semantic foundation for the subsequent construction of multi-layer anomaly responses.

[0108] To address the above problems, this invention employs a hierarchical visual semantic matching strategy.

[0109] First, the visual features output by the visual encoder at each layer are normalized to eliminate the influence of different feature scales and improve the stability of cross-modal similarity calculation.

[0110] Subsequently, for each layer of visual features, the corresponding generated text semantic features are selected, so that each layer of visual features is independently matched with its corresponding text semantics, instead of using a unified text semantics for shared matching.

[0111] After normalizing the visual and text features, cosine similarity is used to calculate the similarity between the visual features of each layer and the corresponding text semantics, thereby obtaining the visual semantic matching results of each visual feature layer.

[0112] Using the above method, visual features at different layers can establish cross-modal correspondences with the corresponding text semantics, providing accurate semantic similarity information for the subsequent construction of multi-layered anomaly responses.

[0113] like Figure 5As shown, multiple layers of visual features have been obtained: And the corresponding hierarchical text semantic representation: ,in, Represents the visual features of layer (i). This represents the text semantic features corresponding to the (i)th layer.

[0114] To improve the stability of similarity calculation between different modalities, L2 normalization is first applied to both visual features and text semantic features: ; ; in, This represents the normalized visual features of layer (i). This represents the normalized semantic features of the corresponding layer of text.

[0115] Subsequently, a hierarchical correspondence approach is adopted for visual semantic matching, that is, the visual features of layer (i) are only used to calculate cross-modal similarity with the text semantic features of layer (i), and do not participate in the cross-matching between other layers.

[0116] The degree of matching between visual features and text semantics is calculated using cosine similarity, which can be expressed as: ; in, This represents the visual semantic matching result of the (i)th layer; "·" represents the vector dot product operation.

[0117] Following the above method, the visual semantic similarity of each visual feature layer is calculated separately, and the final multi-layer visual semantic matching result is obtained: ; Where S represents the set of visual semantic matching results corresponding to all visual feature layers.

[0118] The multi-layer visual semantic matching results obtained in this step serve as input for the subsequent construction of multi-layer anomaly responses.

[0119] A hierarchical visual semantic matching strategy is adopted to establish cross-modal correspondences between visual features at different layers and corresponding text semantics, avoiding semantic mismatch problems caused by uniform text semantic matching and improving the accuracy of visual semantic matching. By normalizing visual features and text semantic features, the stability and consistency of cross-modal similarity calculation are improved, enhancing the model's ability to express anomalies at different scales. The constructed hierarchical text semantic representation is fully utilized, enabling shallow texture information, mid-level structural information, and high-level semantic information to obtain text representations consistent with their semantic levels, improving the semantic perception capability of fine-grained anomaly regions. The multi-layer visual semantic matching results are output, providing a reliable semantic similarity foundation for subsequent multi-layer anomaly response construction, further improving the accuracy of wind turbine blade anomaly detection and segmentation.

[0120] After completing multi-layer visual semantic matching, the visual semantic similarity results corresponding to each visual feature layer have been obtained. However, these similarity results are still mainly based on feature space representation and cannot directly reflect the spatial distribution of abnormal areas of wind turbine blades in the original image, making it difficult to meet the needs of subsequent abnormal area localization and pixel-level abnormal segmentation.

[0121] Furthermore, different visual feature layers possess varying spatial resolutions and semantic expressive capabilities. Shallow visual features are better able to describe local details such as crack edges and texture variations, while higher-level visual features have stronger overall semantic expressive capabilities. Directly fusing the visual semantic matching results from different layers can easily lead to interference between anomaly information at different scales, affecting the final anomaly localization accuracy.

[0122] Therefore, it is necessary to construct a multi-layer anomaly response construction method, which maps the visual semantic matching results of each layer to spatial anomaly response maps respectively, and maintains the independent expression of the anomaly response of each layer, so as to provide input for subsequent reliability-based multi-layer anomaly response fusion.

[0123] To address the aforementioned issues, this invention employs a layer-by-layer anomaly response construction strategy.

[0124] First, for each layer of visual semantic matching results, the visual semantic similarity is remapped to two-dimensional space according to the spatial positional relationship corresponding to the visual features, generating the corresponding layer's anomaly response map.

[0125] Since different visual feature layers correspond to different spatial resolutions, this invention restores the spatial size of the abnormal responses of each layer separately, so that the abnormal responses of each layer maintain a unified spatial representation, and retains the abnormal responses of each layer separately without performing premature fusion.

[0126] Through the above processing, the present invention can obtain anomaly response maps corresponding to different visual feature layers, so that shallow texture anomaly response, mid-layer structure anomaly response and high-layer semantic anomaly response can be completely preserved, providing basic data for subsequent reliability assessment and multi-layer anomaly response fusion.

[0127] like Figure 6 As shown, multi-layer visual semantic matching results have been obtained: ; in, This represents the visual semantic matching result of the i-th layer.

[0128] For each layer of visual semantic matching results, this invention maps the visual semantic similarity in the feature space to a two-dimensional space based on the spatial arrangement relationship corresponding to the visual features, thereby obtaining the initial anomaly response map of the corresponding layer: ; in, Indicates the first Layer anomaly response diagram; This represents the mapping process from visual semantic similarity to anomalous responses in two-dimensional space.

[0129] Since different visual feature layers have different spatial resolutions, in order to ensure that the anomaly responses of each layer have a consistent spatial size, this invention further performs spatial scale recovery on the anomaly response maps of each layer, uniformly mapping the anomaly responses of each layer to the corresponding size of the input image, thus obtaining a standardized anomaly response map: ; in, This represents the anomaly response map of the (i)th layer after scaling. This indicates a space size restoration operation.

[0130] Following the above method, anomaly responses are constructed for each visual feature layer, ultimately resulting in a multi-layered set of anomaly responses: ; In this process, abnormal responses from each layer are retained separately and are not merged in advance.

[0131] Finally, this step outputs a multi-layer anomaly response map, which serves as the input for subsequent reliability-based multi-layer anomaly response fusion.

[0132] Visual semantic matching results are mapped to spatial anomaly responses, realizing the conversion of anomaly semantic information to pixel space and providing an intuitive spatial representation for anomaly region localization. Anomaly response maps corresponding to each visual feature layer are constructed separately, fully preserving shallow texture information, mid-level structural information, and high-level semantic information, thereby improving the expressive power of anomaly features at different scales. By unifying the spatial dimensions of the anomaly response maps of each layer, a consistent data representation is established for subsequent multi-layer anomaly response fusion, improving the stability of multi-layer information fusion. The anomaly responses of each layer are kept independent and not fused in advance, providing a reliable data foundation for subsequent reliability-based adaptive weight allocation and anomaly response fusion, further improving the accuracy of wind turbine blade anomaly detection and pixel-level anomaly segmentation.

[0133] Step S40: Perform reliability analysis on the multi-layer anomaly response information. Based on the contribution of different layers of anomaly response information to the final detection result, adaptively allocate fusion weights to fuse the multi-layer anomaly response information and obtain fused anomaly response information.

[0134] After constructing the multi-layer anomaly response, anomaly response maps corresponding to different visual feature layers have been obtained. However, the ability of different layers of anomaly response maps to represent anomaly regions is not consistent. Shallow anomaly responses can reflect crack edges and texture details well, but are easily affected by background noise; high-level anomaly responses have strong semantic expression capabilities, but their localization accuracy for small anomaly regions is relatively insufficient.

[0135] Existing methods typically integrate multi-layer anomaly responses using methods such as average fusion and fixed-weight fusion. Since each layer's anomaly response contributes equally to the final detection result, they cannot adaptively adjust the fusion weights based on the expressive power of different images and visual feature layers. When some layers' anomaly responses contain significant noise or false responses, the fixed fusion method can easily reduce the final anomaly detection and segmentation accuracy.

[0136] Therefore, it is necessary to construct a fusion method that can automatically evaluate the reliability of anomaly responses at each layer, and adaptively allocate fusion weights according to the information quality of anomaly responses at different layers, so as to improve the accuracy and robustness of the final anomaly response map.

[0137] To address the aforementioned problems, this invention proposes a multi-layer anomaly response fusion method based on learnable reliability estimation.

[0138] First, the obtained anomaly response maps of each layer are input into the reliability estimation module to independently evaluate the anomaly response of each layer and obtain the corresponding reliability score.

[0139] Subsequently, all reliability scores are normalized to obtain the fusion weights corresponding to the anomaly responses at each layer. Anomaly response maps with higher reliability have a larger weight in the final fusion process; anomaly response maps with lower reliability have a correspondingly smaller fusion weight. Finally, the anomaly responses at all layers are weighted and summed according to the fusion weights to generate the final anomaly response map.

[0140] This invention employs a learnable reliability estimation network to automatically learn the importance of abnormal responses in different visual layers, rather than using manually set fixed fusion weights. This allows the fusion process to be continuously optimized based on training data, thereby improving the final anomaly detection performance.

[0141] like Figure 7 As shown, a multi-layered anomaly response set has been obtained: ;in, ; Indicates the first Layer anomaly response diagram.

[0142] For each layer of the anomaly response graph, the present invention inputs the data into the reliability estimation module for evaluation: ; in, Represents a reliability estimation network; This represents the reliability score corresponding to the abnormal response at layer i.

[0143] The reliability estimation network first performs global average pooling on the abnormal response map to extract overall response statistics; then it sequentially passes the map through a multilayer perceptron for feature mapping, and finally outputs the reliability score of the abnormal response of the corresponding layer.

[0144] To ensure the comparability of the fusion weights across layers, this invention further employs the Softmax function to normalize all reliability scores: ; in, Indicates the first The fusion weights corresponding to the layer's abnormal response, and satisfying the following: ; Subsequently, the multi-layer anomaly responses are weighted and fused according to the fusion weights of each layer: ; in, This represents the final abnormal response diagram.

[0145] Finally, this step outputs the fused anomaly response map, which serves as the input for subsequent joint optimization of image-level anomaly detection and pixel-level anomaly segmentation.

[0146] This invention employs a learnable reliability estimation network to automatically evaluate anomalous responses at different visual feature layers. It adaptively generates fusion weights based on the quality of the anomalous responses, improving the efficiency of utilizing multi-layer anomalous information. A Softmax normalization mechanism is used to establish a competitive relationship between anomalous responses at each layer, allowing anomalous responses with higher reliability to receive greater fusion weights, thus suppressing the influence of noise and false response layers on the final detection results. Compared to traditional average fusion or fixed-weight fusion methods, this invention eliminates the need for manually setting fusion coefficients. The model can automatically learn the importance of different visual layers through training, improving its adaptability to different types of wind turbine blade anomalies. Through reliability-guided multi-layer anomalous response fusion, it fully combines shallow texture information with high-level semantic information, improving the accuracy of final anomaly detection and pixel-level anomaly segmentation, and providing a more accurate foundation for subsequent joint optimization.

[0147] Step S50: Construct a joint optimization mechanism for image-level anomaly detection and pixel-level anomaly segmentation. Based on the overall anomaly discrimination information, local anomaly regions are located, and the information of local anomaly regions is used to enhance the overall anomaly judgment capability, so as to achieve the collaborative optimization of image-level detection and pixel-level segmentation.

[0148] After fusing multi-layer anomaly responses, the model obtains the fused anomaly response map. However, when optimizing using only image-level classification loss, the model can learn the overall anomaly semantics but struggles to accurately locate anomaly regions. Conversely, when optimizing using only pixel-level segmentation loss, it easily overlooks overall image anomaly information, affecting image-level detection performance. Furthermore, inconsistencies may exist between image-level prediction results and pixel-level anomaly responses. For example, an image might be classified as an anomaly, but the anomaly response map lacks sufficient localization capability, or the anomaly response might be strong while the image-level classification confidence is low, thus impacting the model's overall detection performance.

[0149] Therefore, it is necessary to establish a joint optimization method for image-level anomaly detection and pixel-level anomaly segmentation, so that the model can learn both the overall anomaly semantics of the image and the pixel-level spatial anomaly information at the same time, and further constrain the prediction results of the two to keep them consistent, thereby improving the performance of anomaly detection and anomaly segmentation of wind turbine blades.

[0150] To address the above problems, this invention constructs a joint optimization strategy.

[0151] First, image-level classification results are calculated using global image features output by the visual encoder and shared text semantic features, and cross-entropy loss is used to optimize image-level anomaly detection capabilities.

[0152] Subsequently, for the final anomaly response map and the anomaly response maps of each layer, pixel-level supervision is performed using focus loss and Dice loss respectively to improve the model's ability to locate anomaly regions.

[0153] Furthermore, to improve the consistency between image-level and pixel-level predictions, this invention constructs a consistency constraint. A consistency loss is calculated based on the image-level anomaly probability and the pixel-level anomaly response, guiding the model to learn more consistent image-level and pixel-level anomaly representations. Finally, the image-level classification loss, pixel-level segmentation loss, and consistency loss are jointly optimized to achieve overall model training.

[0154] like Figure 8 As shown, let the image-level classification loss be: The pixel-level segmentation loss is: The consistency loss is: The pixel-level segmentation loss consists of both focus loss and Dice loss. ; The final model training objective is expressed as: ; in: This represents the total loss of the model; This represents the pixel-level segmentation loss weights; This represents the consistency loss weight.

[0155] The model performs backpropagation based on the total loss, updating only the parameters of the cue learning module and the reliability estimation module, while the visual encoder and the text encoder remain frozen.

[0156] The model employs a joint optimization of image-level classification loss and pixel-level segmentation loss to balance overall anomaly recognition and local anomaly localization capabilities. Focus loss and Dice loss are used to jointly optimize the anomaly region, improving the model's segmentation accuracy for fine-grained anomalies such as small cracks and edge erosion. Consistency loss is used to constrain the relationship between image-level and pixel-level predictions, enhancing the overall prediction stability of the model. Only the prompting learning module and reliability estimation module are optimized, significantly reducing training parameters and improving model training efficiency and adaptability to wind turbine blade anomaly detection tasks.

[0157] Step S60: Optimize the fused abnormal response information, refine the boundaries and enhance the continuity of the abnormal region to obtain the abnormal region segmentation result, and output the image-level abnormal detection result and pixel-level abnormal segmentation result of the wind turbine blade. The image-level abnormal detection result is used to determine whether there is an abnormality in the current wind turbine blade, and the pixel-level abnormal segmentation result is used to accurately locate the boundary of the abnormal region.

[0158] After the model is trained, it needs to perform fast and stable anomaly detection and segmentation on the wind turbine blade images to be detected. Although the fused anomaly response map has been obtained above, for slender, weakly textured, and boundary-sensitive anomalies such as wind turbine blade cracks, leading edge erosion, and gel coat peeling, the anomaly response map may still be affected by local noise, isolated high-response points, and boundary burrs, leading to problems such as breakage, false detection, or blurred boundaries in the anomaly area, thereby reducing the stability and interpretability of the anomaly detection results.

[0159] Traditional inference methods typically output the fused anomaly response map directly, lacking further optimization of local structural information within anomaly regions. This makes it difficult to fully utilize the consistency of features within anomaly regions and the correlation of neighborhood spaces. Therefore, it is necessary to construct a structure-preserving inference optimization method that adaptively optimizes the anomaly response map without updating model parameters. This improves the consistency of responses within anomaly regions and further enhances anomaly boundary information, thereby improving the robustness of wind turbine blade anomaly detection and segmentation.

[0160] To address the aforementioned problems, this invention proposes a structure-preserving inference optimization method. This method is executed only during the model inference phase, does not participate in model training, and does not add new training parameters.

[0161] The structure-preserving inference optimization includes two parts: feature similarity block optimization and boundary enhancement.

[0162] Feature similarity block optimization is performed on the fused anomaly response map. Specifically, the final anomaly response map is flattened into anomaly scores corresponding to multiple spatial locations, and feature representations of the corresponding locations are extracted. Then, the features are normalized, the feature similarity matrix between each spatial location is calculated, and several neighborhoods with the highest feature similarity for each spatial location are selected as local optimization objects.

[0163] Furthermore, anomaly perception gating coefficients are constructed based on the difference in anomaly scores between the center location and neighboring locations to suppress interference from low-confidence neighbors on the current anomaly response. Then, Softmax normalized weights are calculated using neighborhood feature similarity to weighted aggregate neighborhood anomaly scores, and a residual fusion method is used to linearly fuse the aggregated anomaly scores with the original anomaly scores. When a maximum value retention strategy is enabled, the maximum value is taken element-wise from the fusion result and the original anomaly score to retain high-confidence anomaly responses, preventing anomaly peaks from being weakened during smoothing, thereby enhancing the consistency of responses within the anomaly region and suppressing isolated noise.

[0164] After completing the feature similarity block optimization, the present invention further adopts a boundary enhancement strategy to perform gradient enhancement processing on the optimized anomaly response map. By extracting the gradient information of the anomaly response map, the boundary of the anomaly region is strengthened, so that slender anomalies such as cracks and leading edge erosion have clearer and more continuous boundary contours, thereby improving the positioning accuracy of the anomaly region.

[0165] By combining feature similarity block optimization and boundary enhancement, the structure-preserving reasoning optimization of the anomaly response map is achieved, thereby improving the stability, spatial continuity, and boundary quality of the final anomaly detection results.

[0166] like Figure 9 As shown, let the initial anomaly score be the model output. Represented as: ; Where B represents the batch size. Indicates the number of spatial locations after flattening; corresponding characteristics of the spatial locations. Represented as: ; Where C represents the feature dimension.

[0167] First, the characteristics of spatial location Normalization is performed: ; in, Features of spatial location after normalization This indicates normalization.

[0168] Then, the feature similarity matrix between any two spatial locations is calculated. : ; in, This indicates transpose.

[0169] For each spatial location, select the top (K) neighboring locations with the highest feature similarity to form a neighborhood set. : ; Let the current location anomaly score be ( ), the neighborhood anomaly score is ( Anomaly detection gating coefficients are constructed based on the difference in anomaly scores between the two. : ; in, Indicates the temperature coefficient. This represents the Sigmoid function. Indicates the first Each patch feature Indicates the first Each patch feature; when the gating strategy is not enabled, take... .

[0170] Subsequently, the neighborhood weights are calculated jointly using feature similarity and gating coefficients. And normalization is performed using the Softmax function: ; in, Indicates the first The patch features and the Feature similarity (cosine similarity) between features in each patch.

[0171] Based on the aforementioned neighborhood weights Weighted aggregation of neighborhood anomaly scores: ; Furthermore, the aggregated outlier scores Residual fusion with the original outlier scores: ; in, Indicates the outlier score after fusion. This represents the fusion coefficient.

[0172] When the maximum value preservation policy is enabled, the final outlier score Further updates to: ; After optimizing the feature similarity blocks, the optimized anomaly response map is further subjected to boundary enhancement processing. Let the optimized anomaly response map be... The final abnormal response diagram Represented as: ; in, This represents the gradient extraction operator. Represents the boundary enhancement coefficient. This represents the anomaly response map used for boundary extraction.

[0173] Finally, the anomaly response map optimized by structure-preserving inference is output and used as the basis for subsequent output detection results.

[0174] By optimizing feature similarity blocks, local adaptive aggregation of abnormal responses is achieved using the feature similarity relationship between spatial locations, effectively suppressing isolated noise and local false responses, and improving the consistency of responses within abnormal regions. An anomaly perception gating mechanism is adopted to dynamically adjust the neighborhood contribution based on the difference in anomaly scores between the center location and neighboring locations, avoiding interference from low-confidence anomaly responses to high-confidence anomaly regions and improving the robustness of anomaly detection. Through Softmax normalization weighting, residual fusion, and maximum value retention strategies, the continuity of abnormal regions is enhanced while retaining anomaly peak information, reducing excessive smoothing of anomaly boundaries, and improving the ability to preserve fine cracks and weak texture anomalies. Boundary enhancement further strengthens the contour information of abnormal regions, improving the boundary clarity and positioning accuracy of slender anomalies such as cracks, leading-edge erosion, and gel coat peeling. The entire inference optimization process is performed only during the inference stage, without increasing model training parameters or affecting the model training process. While maintaining high inference efficiency, it further improves the performance of wind turbine blade anomaly detection and anomaly segmentation, and has good engineering application value.

[0175] After completing the anomaly response inference optimization, the model has obtained the final anomaly response map optimized by structure preservation inference. However, to meet the practical application requirements of intelligent wind turbine blade inspection, it is necessary to convert the model output into inspection results that are easy for engineering applications, including the determination results of whether there are anomalies in the wind turbine blades and the spatial distribution information of the abnormal areas, so as to provide a basis for subsequent blade condition assessment, defect analysis and maintenance decisions.

[0176] Therefore, it is necessary to construct a method for outputting wind turbine blade anomaly detection results to achieve unified output of image-level anomaly detection results and pixel-level anomaly segmentation results.

[0177] To address the aforementioned issues, this invention outputs both the wind turbine blade anomaly detection result and the anomaly region segmentation result based on the image-level anomaly detection result and the final anomaly response map.

[0178] First, based on the anomaly probability obtained from image-level anomaly detection, the input wind turbine blade image is judged to be normal or abnormal.

[0179] Subsequently, based on the obtained final anomaly response map, the anomaly response is thresholded to generate a binary segmentation result of the anomaly region, which is used to represent the location and range of the anomaly region. Finally, the image-level detection result and the pixel-level anomaly segmentation result are output in a unified manner, realizing integrated detection of wind turbine blade anomalies and anomaly localization.

[0180] like Figure 10 As shown, the image-level anomaly detection result is obtained by calculating the cosine similarity between the global features of the image and the shared basic cue.

[0181] Let the image-level anomaly detection result (image-level anomaly detection result = cosine similarity between global image features and shared basic cue) be represented as: ; This represents the predicted probability that the wind turbine blades belong to an anomalous category. When If the condition is abnormal, the fan blades are considered to be in a normal state; otherwise, they are considered to be in a normal state. This represents the threshold for image-level anomaly detection.

[0182] The final anomaly response diagram has been obtained. Based on the set pixel-level threshold, the abnormal response map is converted into a binary segmentation result of the abnormal region: ; in, Indicates pixel position Abnormal response value at the location; This indicates the final abnormal segmentation result; This indicates the threshold for abnormal response.

[0183] The final output includes: (1) Detection results for any abnormalities in the wind turbine blade images; (2) Pixel-level segmentation results of abnormal regions; (3) The location and spatial distribution information of abnormal areas provide a basis for wind turbine blade condition assessment and maintenance decisions.

[0184] This invention achieves unified output of image-level anomaly detection and pixel-level anomaly segmentation results, simultaneously obtaining anomaly category determination results and the spatial location of anomaly regions, improving the completeness of detection results; it generates pixel-level anomaly segmentation results based on the final anomaly response map, enabling precise location of anomaly regions such as wind turbine blade cracks, leading edge erosion, and gel coat peeling, improving the interpretability of detection results; the output results can be directly applied to intelligent inspection of wind turbine blades, health status assessment, and operation and maintenance decisions, providing reliable data support for online monitoring of wind power equipment; and it completes the entire process of wind turbine blade anomaly detection, realizing a complete technical flow from image input, anomaly detection, anomaly location to detection result output.

[0185] Through the above technical solution, the present invention can achieve high-precision detection and fine segmentation of wind turbine blade anomalies in complex industrial scenarios, and has good cross-scenario generalization ability and engineering application value.

[0186] The present invention has the following beneficial effects: (1) This invention proposes a wind turbine blade anomaly detection and segmentation method based on a visual language model. By constructing a visual semantic representation of wind turbine blades, multi-layer visual semantic matching, multi-layer anomaly response construction, reliability-based multi-layer anomaly response fusion, and structure-preserving reasoning optimization, the method realizes integrated processing of wind turbine blade anomaly detection and pixel-level anomaly segmentation, thereby improving the accuracy and positioning capability of wind turbine blade anomaly detection.

[0187] (2) By adopting a prompting learning mechanism combined with a hierarchical prompting offset strategy, the semantics of shared text and hierarchical text are optimized in a coordinated manner. While making full use of the cross-modal knowledge of the pre-trained visual language model, the model’s semantic expression ability for abnormal types such as wind turbine blade cracks, leading edge erosion, and gel coat peeling is improved, and the model’s adaptability to wind turbine blade domain tasks is enhanced.

[0188] (3) By constructing a multi-layer visual semantic matching mechanism and a reliability-guided multi-layer anomaly response fusion method, we can make full use of shallow texture information, mid-layer structural information and high-layer semantic information to achieve the collaborative expression of anomaly features at different scales, thereby improving the detection accuracy and anomaly localization capability of fine-grained anomaly regions.

[0189] (4) Adopting a joint optimization strategy of image-level anomaly detection and pixel-level anomaly segmentation, and combining consistency constraints, the image-level anomaly recognition results and pixel-level anomaly localization results promote each other, thereby improving the overall prediction performance and robustness of the model.

[0190] (5) A structure-preserving inference optimization method is proposed. Without increasing the model training parameters, the spatial continuity and boundary clarity of the anomaly response map are further improved by feature similarity block optimization and boundary enhancement. It takes into account detection accuracy, inference efficiency and engineering application value, and is suitable for application scenarios such as intelligent inspection of wind turbine blades and online status monitoring.

[0191] Furthermore, such as Figure 11 As shown, based on the above-mentioned wind turbine blade anomaly detection method based on a multimodal large model, the present invention also provides a wind turbine blade anomaly detection system based on a multimodal large model, wherein the wind turbine blade anomaly detection system based on a multimodal large model includes: Image preprocessing module 51 is used to acquire the image of the wind turbine blade to be detected, and to perform unified preprocessing on the image of the wind turbine blade to be detected to obtain the preprocessed image of the wind turbine blade. The semantic representation construction module 52 is used to input the preprocessed wind turbine blade image into the visual encoder to extract multi-layer visual features, and at the same time construct text prompts describing the normal and abnormal states of the wind turbine blades, and use the text encoder to obtain the corresponding semantic feature representations, thereby establishing a unified representation space between the wind turbine blade image and the text semantics. The semantic matching and anomaly construction module 53 is used to establish visual semantic matching relationships between multiple visual feature layers and text semantics, calculate the similarity between image features and normal semantics and abnormal semantics, and generate anomaly response information at the corresponding level. The anomaly response fusion module 54 is used to perform reliability analysis on multi-layer anomaly response information. Based on the contribution of different layers of anomaly response information to the final detection result, it adaptively allocates fusion weights to fuse multi-layer anomaly response information and obtain fused anomaly response information. The collaborative optimization module 55 is used to construct a joint optimization mechanism for image-level anomaly detection and pixel-level anomaly segmentation. It locates local anomaly regions based on overall anomaly discrimination information and enhances the overall anomaly judgment capability by utilizing local anomaly region information, so as to achieve collaborative optimization of image-level detection and pixel-level segmentation. The inference optimization and result output module 56 is used to optimize the fused abnormal response information, refine the boundaries and enhance the continuity of the abnormal region, obtain the abnormal region segmentation result, and output the image-level abnormal detection result and pixel-level abnormal segmentation result of the wind turbine blade. The image-level abnormal detection result is used to determine whether there is an abnormality in the current wind turbine blade, and the pixel-level abnormal segmentation result is used to accurately locate the boundary of the abnormal region.

[0192] Furthermore, such as Figure 12 As shown, based on the above-mentioned wind turbine blade anomaly detection method and system based on a multimodal large model, the present invention also provides a terminal, which includes a processor 10, a memory 20 and a display 30. Figure 12 Only some of the terminal components are shown; however, it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0193] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory. In other embodiments, the memory 20 may be an external storage device of the terminal, such as a plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, etc. Further, the memory 20 may include both internal and external storage devices. The memory 20 is used to store application software and various types of data installed on the terminal, such as the program code installed on the terminal. The memory 20 can also be used to temporarily store data that has been output or will be output. In one embodiment, the memory 20 stores a wind turbine blade anomaly detection program 40 based on a multimodal large model, which can be executed by the processor 10 to implement the wind turbine blade anomaly detection method based on a multimodal large model in this application.

[0194] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor, or other data processing chip, used to run program code stored in the memory 20 or process data, such as executing the wind turbine blade anomaly detection method based on a multimodal large model.

[0195] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. The display 30 is used to display information on the terminal and to display a visual user interface. The terminal's processor 10, memory 20, and display 30 communicate with each other via a system bus.

[0196] In one embodiment, when the processor 10 executes the wind turbine blade anomaly detection program 40 based on a multimodal large model in the memory 20, it implements the steps of the wind turbine blade anomaly detection method based on a multimodal large model as described above.

[0197] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a wind turbine blade anomaly detection program based on a multimodal large model, and the wind turbine blade anomaly detection program based on a multimodal large model, when executed by a processor, implements the steps of the wind turbine blade anomaly detection method based on a multimodal large model as described above.

[0198] In summary, this invention provides a method, system, terminal, and computer-readable storage medium for anomaly detection of wind turbine blades based on a multimodal large model. The method includes: acquiring an image of a wind turbine blade to be detected, and performing unified preprocessing on the image to obtain a preprocessed image; inputting the preprocessed image into a visual encoder to extract multi-layer visual features, while constructing text prompts describing the normal and abnormal states of the wind turbine blade, and using the text encoder to obtain corresponding semantic feature representations, establishing a unified representation space between the wind turbine blade image and the text semantics; establishing visual semantic matching relationships between multiple visual feature layers and text semantics, calculating the similarity between image features and normal and abnormal semantics, and generating corresponding hierarchical anomaly response information; and performing reliability analysis on the multi-layer anomaly response information. Based on the contribution of different layers of anomaly response information to the final detection result, adaptive fusion weights are allocated to fuse multi-layer anomaly response information, resulting in fused anomaly response information. A joint optimization mechanism for image-level anomaly detection and pixel-level anomaly segmentation is constructed. Local anomaly regions are located based on overall anomaly discrimination information, while local anomaly region information is used to enhance the overall anomaly judgment capability, achieving synergistic optimization of image-level detection and pixel-level segmentation. The fused anomaly response information is optimized by refining the boundaries and enhancing the continuity of anomaly regions to obtain anomaly region segmentation results. Image-level anomaly detection results and pixel-level anomaly segmentation results for wind turbine blades are output. The image-level anomaly detection results are used to determine whether there is an anomaly on the current wind turbine blade, and the pixel-level anomaly segmentation results are used to accurately locate the boundaries of the anomaly region. This invention fully utilizes the cross-modal semantic representation capability of visual language models, achieving image-level detection and pixel-level accurate segmentation of wind turbine blade anomalies while reducing dependence on anomaly samples. This improves the detection capability of unknown anomalies in complex scenarios, the accuracy of anomaly boundary localization, and the model's cross-scenario generalization performance, providing more reliable technical support for intelligent inspection and health status assessment of wind turbine blades.

[0199] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal that includes that element.

[0200] Of course, those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware (such as a processor, controller, etc.). The program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The computer-readable storage medium can be a memory, magnetic disk, optical disk, etc.

[0201] It should be understood that the application of the present invention is not limited to the examples above. Those skilled in the art can make improvements or modifications based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.

Claims

1. A method for detecting anomalies in wind turbine blades based on a multimodal large model, characterized in that, The wind turbine blade anomaly detection method based on a multimodal large model includes: Acquire an image of the wind turbine blade to be inspected, and perform unified preprocessing on the image of the wind turbine blade to be inspected to obtain a preprocessed image of the wind turbine blade; The preprocessed wind turbine blade image is input into a visual encoder to extract multi-layer visual features. At the same time, text prompts describing the normal and abnormal states of the wind turbine blade are constructed, and the corresponding semantic feature representations are obtained using a text encoder to establish a unified representation space between the wind turbine blade image and the text semantics. Establish visual semantic matching relationships between multiple visual feature layers and text semantics, calculate the similarity between image features and normal semantics and abnormal semantics, and generate abnormal response information at the corresponding level. Reliability analysis is performed on multi-layer anomaly response information. Based on the contribution of different layers of anomaly response information to the final detection result, fusion weights are adaptively allocated to fuse the multi-layer anomaly response information and obtain fused anomaly response information. A joint optimization mechanism for image-level anomaly detection and pixel-level anomaly segmentation is constructed. Based on the overall anomaly discrimination information, local anomaly regions are located, while the information of local anomaly regions is used to enhance the overall anomaly judgment capability, so as to achieve the synergistic optimization of image-level detection and pixel-level segmentation. The fused anomaly response information is optimized, the boundary of the anomaly region is refined and the continuity is enhanced to obtain the anomaly region segmentation result, and the image-level anomaly detection result and pixel-level anomaly segmentation result of the wind turbine blade are output. The image-level anomaly detection result is used to determine whether there is an anomaly in the current wind turbine blade, and the pixel-level anomaly segmentation result is used to accurately locate the boundary of the anomaly region.

2. The wind turbine blade anomaly detection method based on a multimodal large model according to claim 1, characterized in that, The step of performing unified preprocessing on the image of the wind turbine blade to be detected to obtain a preprocessed image of the wind turbine blade specifically includes: Standardize the size of the image of the wind turbine blades to be inspected; Standardize the format of the images of the wind turbine blades to be inspected; The image of the wind turbine blade to be detected is subjected to pixel normalization processing; Generate standard image data that meets the input requirements of the visual language model and use it as a preprocessed image of the wind turbine blades.

3. The wind turbine blade anomaly detection method based on a multimodal large model according to claim 1, characterized in that, The process involves inputting the preprocessed wind turbine blade image into a visual encoder to extract multi-layer visual features, simultaneously constructing text prompts describing the normal and abnormal states of the wind turbine blades, and using a text encoder to obtain corresponding semantic feature representations, thus establishing a unified representation space between the wind turbine blade image and the text semantics. Specifically, this includes: A shared basic prompt is established on the text side, and basic prompts for normal and abnormal categories are constructed respectively. Learnable context vectors are introduced as basic prompt parameters. The shared basic prompts are used to learn the common semantic information of the normal and abnormal states of wind turbine blades, providing a unified semantic expression basis for the entire model. For each layer of visual features involved in visual semantic matching, a corresponding hierarchical cue offset parameter is introduced. The cue offset parameters of each layer are superimposed on the shared basic cue to form a hierarchical cue for the corresponding visual feature layer, so that different layers of visual features can learn text representations that conform to their own semantic levels. Keep the parameters of the visual encoder and text encoder frozen, and only update the shared basic cue and hierarchical cue offset parameters, so that the model can inherit the cross-modal knowledge already present in the pre-trained visual language model; A shared textual semantic representation for image-level anomaly detection and a hierarchical textual semantic representation for local visual semantic matching are obtained respectively, which together constitute the visual semantic representation of the wind turbine blade.

4. The wind turbine blade anomaly detection method based on a multimodal large model according to claim 3, characterized in that, The process of establishing visual semantic matching relationships between multiple visual feature layers and text semantics, calculating the similarity between image features and normal and abnormal semantics, and generating corresponding levels of abnormal response information specifically includes: The visual features output by the visual encoder at each layer are normalized. For each layer of visual features, the corresponding layer of text semantic features that have been generated are selected respectively, so that each layer of visual features is independently matched with the corresponding text semantics; After completing the normalization of visual features and text features, cosine similarity is used to calculate the similarity between each layer of visual features and the corresponding text semantics, so as to obtain the visual semantic matching results of each visual feature layer, and establish cross-modal correspondence between different layers of visual features and the corresponding text semantics. For each layer of visual semantic matching results, the visual semantic similarity is remapped to two-dimensional space according to the spatial position relationship corresponding to the visual features, and an anomaly response map of the corresponding layer is generated. Spatial size restoration is performed on the abnormal responses of each layer to maintain a unified spatial representation of the abnormal responses of each layer. Abnormal response maps corresponding to different visual feature layers are obtained, and shallow texture abnormal responses, mid-level structural abnormal responses, and high-level semantic abnormal responses are preserved.

5. The wind turbine blade anomaly detection method based on a multimodal large model according to claim 4, characterized in that, The reliability analysis of multi-layer anomaly response information, and the adaptive allocation of fusion weights based on the contribution of different layers of anomaly response information to the final detection result, to fuse the multi-layer anomaly response information and obtain fused anomaly response information, specifically includes: The obtained anomaly response maps of each layer are input into the reliability estimation module, and each anomaly response map is evaluated independently to obtain the corresponding reliability score. All reliability scores are normalized to obtain the fusion weights corresponding to the abnormal responses of each layer. The abnormal response maps of all layers are weighted and summed according to the fusion weights to generate the final abnormal response map, which serves as the fused abnormal response information.

6. The wind turbine blade anomaly detection method based on a multimodal large model according to claim 5, characterized in that, The proposed joint optimization mechanism for image-level anomaly detection and pixel-level anomaly segmentation, based on overall anomaly discrimination information, locates local anomaly regions while simultaneously utilizing local anomaly region information to enhance overall anomaly judgment capabilities, thereby achieving synergistic optimization of image-level detection and pixel-level segmentation. The mechanism includes: Image-level classification results are calculated using global image features output by the visual encoder and shared text semantic features, and cross-entropy loss is used to optimize image-level anomaly detection capabilities. The final anomaly response map and the anomaly response maps of each layer are subjected to pixel-level supervision using focus loss and Dice loss respectively, in order to improve the model's ability to locate anomaly regions. A consistency constraint is constructed, and the consistency loss is calculated based on the image-level anomaly probability and pixel-level anomaly response to guide the model to learn image-level and pixel-level anomaly representations. The image-level classification loss, pixel-level segmentation loss and consistency loss are jointly optimized to achieve overall model training.

7. The wind turbine blade anomaly detection method based on a multimodal large model according to claim 6, characterized in that, The optimization processing of the fused anomaly response information, including boundary refinement and continuity enhancement of the anomaly region, yields anomaly region segmentation results, and outputs image-level anomaly detection results and pixel-level anomaly segmentation results for the wind turbine blades, specifically includes: The fused abnormal response information is optimized by feature similarity blocks. The final abnormal response map is flattened into abnormal scores corresponding to multiple spatial locations, and the feature representations of the corresponding locations are extracted. The features are normalized, the feature similarity matrix between each spatial location is calculated, and several neighborhoods with the highest feature similarity are selected as local optimization objects for each spatial location. Anomaly perception gating coefficients are constructed based on the difference in anomaly scores between the center location and the neighboring locations to suppress the interference of low-confidence neighbors on the current anomaly response. Then, Softmax normalization weights are calculated based on the similarity of neighborhood features to perform weighted aggregation of neighborhood anomaly scores. Finally, residual fusion is used to linearly fuse the aggregated anomaly scores with the original anomaly scores. When the maximum value retention strategy is enabled, the maximum value of the fusion result and the original anomaly score is taken element by element to retain high-confidence anomaly responses; After the feature similarity block optimization is completed, a boundary enhancement strategy is adopted to perform gradient enhancement processing on the optimized anomaly response map, extracting the gradient information of the anomaly response map to strengthen the boundary of the anomaly region. Based on the anomaly probability obtained from image-level anomaly detection, the input wind turbine blade image is judged to be normal or abnormal. Based on the final anomaly response map obtained after structure-preserving inference optimization, the anomaly response is thresholded to generate a binary segmentation result of the anomaly region, which is used to represent the location and range of the anomaly region. The image-level anomaly detection results and pixel-level anomaly segmentation results are output in a unified manner to achieve integrated detection of wind turbine blade anomalies and anomaly localization.

8. A wind turbine blade anomaly detection system based on a multimodal large model, characterized in that, The wind turbine blade anomaly detection system based on a multimodal large model includes: The image preprocessing module is used to acquire the image of the wind turbine blade to be detected, and to perform unified preprocessing on the image of the wind turbine blade to be detected to obtain the preprocessed image of the wind turbine blade. The semantic representation construction module is used to input the preprocessed wind turbine blade image into the visual encoder to extract multi-layer visual features, and at the same time construct text prompts describing the normal and abnormal states of the wind turbine blades, and use the text encoder to obtain the corresponding semantic feature representations, thereby establishing a unified representation space between the wind turbine blade image and the text semantics. The semantic matching and anomaly construction module is used to establish visual semantic matching relationships between multiple visual feature layers and text semantics, calculate the similarity between image features and normal and abnormal semantics, and generate anomaly response information at the corresponding level. The anomaly response fusion module is used to perform reliability analysis on multi-layer anomaly response information. Based on the contribution of different layers of anomaly response information to the final detection result, it adaptively allocates fusion weights to fuse multi-layer anomaly response information and obtain fused anomaly response information. The collaborative optimization module is used to construct a joint optimization mechanism for image-level anomaly detection and pixel-level anomaly segmentation. It locates local anomaly regions based on overall anomaly discrimination information, and at the same time uses local anomaly region information to enhance the overall anomaly judgment capability, so as to achieve collaborative optimization of image-level detection and pixel-level segmentation. The inference optimization and result output module is used to optimize the fused abnormal response information, refine the boundaries and enhance the continuity of the abnormal region, obtain the abnormal region segmentation result, and output the image-level abnormal detection result and pixel-level abnormal segmentation result of the wind turbine blade. The image-level abnormal detection result is used to determine whether there is an abnormality in the current wind turbine blade, and the pixel-level abnormal segmentation result is used to accurately locate the boundary of the abnormal region.

9. A terminal, characterized in that, The terminal includes: a memory, a processor, and a wind turbine blade anomaly detection program based on a multimodal large model stored in the memory and executable on the processor. When the wind turbine blade anomaly detection program based on a multimodal large model is executed by the processor, it implements the steps of the wind turbine blade anomaly detection method based on a multimodal large model as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a wind turbine blade anomaly detection program based on a multimodal large model. When the wind turbine blade anomaly detection program based on a multimodal large model is executed by a processor, it implements the steps of the wind turbine blade anomaly detection method based on a multimodal large model as described in any one of claims 1-7.