A method for detecting surface defects of large preforms woven into a shape

Through multi-view image acquisition equipment and a detection model that fuses position and neighborhood information, the problem of low efficiency and low accuracy in detecting surface defects of large prefabricated bodies has been solved, and efficient and accurate detection of surface defects of large prefabricated bodies has been achieved, improving the Automation level.

CN118429352BActive Publication Date: 2024-09-24NANJING UNIV OF AERONAUTICS & ASTRONAUTICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410896567.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-09-24
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

In the existing technology, surface defect detection of large-scale prefabricated bodies has low efficiency, low accuracy, and is greatly affected by subjective factors.

Method used

Build a multi-view image acquisition device and build a defect detection model that integrates position and neighborhood information. Obtain multi-view images of the prefabricated surface through the multi-view image acquisition device. Design feature extraction modules, position neighborhood information sensing modules and pixel-level refinement. module to achieve precise detection and positioning of surface defects on large prefabricated bodies.

Benefits of technology

It improves the efficiency and accuracy of surface defect detection of large prefabricated bodies, overcomes the problem of incomplete coverage of the image acquisition field of view of large prefabricated bodies, realizes automated detection, and reduces the reliance on manual identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118429352B
    Figure CN118429352B
Patent Text Reader

Abstract

The present invention relates to the technical field of defect detection for woven composite material preforms, and in particular to a method for detecting surface defects of large preforms woven and formed, the method comprising the following steps: constructing a multi-view image acquisition device deployed on a production line to fully cover the surface of a large preform; constructing a defect detection model that integrates position and neighborhood information and is used to accurately detect and locate surface defects of large preforms woven and formed; using a multi-view image acquisition device to obtain multi-view images of large preforms on the production line to construct a preform defect data set; using the preform defect data set to train, test and verify the defect detection model to obtain a trained defect detection model. The present invention can realize accurate defect detection of large preform woven and formed surface images, and solve the problems of low efficiency and low detection accuracy of preform defect detection in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of woven composite material preform defect detection, and in particular to a large preform woven forming surface defect detection method based on multi-viewing position and neighborhood information. Background Art

[0002] Three-dimensional weaving is an advanced manufacturing technology that is used to weave composite fibers or other materials into structures of desired shapes in three dimensions, also known as preforms, to solve the common pain point of low interlayer shear strength in traditional products and form complex structures.

[0003] However, surface defects may occur in many processes during the preform forming process. During the weaving process, defects or unevenness of the fiber material may cause defects or breaks on the preform surface. At the same time, due to process limitations, the preform surface may be uneven. During the preform curing process, wrinkles or bubbles may appear on the surface due to factors such as uneven temperature, pressure or humidity during the curing process. The surface defects of the preform affect its appearance and performance. However, at present, the defects on the surface of the preform still rely mainly on manual identification and detection, but there are problems such as low efficiency of manual detection and the influence of subjective factors. Summary of the invention

[0004] In view of the shortcomings of the prior art, the present invention provides a method for detecting surface defects of large preforms woven into a weaving form, which solves the technical problems in the prior art of slow efficiency, low accuracy and influence of subjective factors in the detection of surface defects of large preforms woven into a weaving form, thereby improving the detection efficiency and accuracy of surface defects of large preforms.

[0005] In order to solve the above technical problems, the present invention designs and constructs a preform defect detection network by building a multi-view image acquisition device and deploying it on the production line, acquiring multi-view images of the preform surface, and integrating the system with the multi-view image acquisition device to build a detection station after training, thereby realizing the detection of surface defects of large preforms. Based on this, a surface defect detection method for large preforms woven into a shape is proposed, which includes the following steps:

[0006] S1. Build and deploy multi-view image acquisition equipment on the production line to fully cover the surface of large prefabricated bodies;

[0007] S2. Constructing a defect detection model that integrates position and neighborhood information and is used to accurately detect and locate surface defects of large preforms woven and formed;

[0008] S3, using a multi-view image acquisition device to obtain multi-view images of large preforms on the production line to construct a preform defect data set;

[0009] S4, using the preform defect data set to train, test and verify the defect detection model to obtain a trained defect detection model;

[0010] S5. Use the trained defect detection model to realize online continuous detection of surface defects of preforms on the production line.

[0011] Furthermore, the defect detection model is a feature extraction module based on a dense connection mechanism feature network DenseNet as a backbone network, which is used to convert the input large preform image into a local level feature.

[0012] It consists of a core feature extraction module for creating a feature memory library, a location neighborhood information perception module for modeling the distribution of location and neighborhood information features, a pixel-level refinement module for improving the predicted defect bounding box, and a detection module for outputting the bounding box and category of the predicted defect.

[0013] Furthermore, the multi-view image acquisition device is constructed by an annular slide rail, a strip slide rail, and multiple industrial cameras.

[0014] Furthermore, the dense connection mechanism feature network DenseNet in the feature extraction module is serially connected through four consecutive dense feature extraction sub-modules based on the dense connection mechanism to form four consecutive stages, wherein the dense feature extraction sub-module uses a bottleneck layer to reduce the amount of calculation and improve the calculation efficiency.

[0015] Furthermore, the feature extraction module uses the intermediate second and third stage features for splicing when the spatial scales are different, and adjusts the smaller spatial scale to the same size as the larger spatial scale, so as to convert the input large preform image into a local level feature.

[0016] Furthermore, in step S2, the following process is specifically included:

[0017] The local level features converted by the feature extraction module enter the core feature extraction module, and the core feature extraction module uses the greedy downsampling method to complete the feature embedding into the core subset. , distribution feature core subset The construction of and storage in the feature memory;

[0018] The local level features converted by the feature extraction module enter the location neighborhood information perception module, and combined with the feature memory library created by the core feature extraction module, the feature embedding set and feature distribution of the given neighborhood and location information are trained to realize the location neighborhood information perception of the feature;

[0019] The pixel-level refinement module is trained separately using synthetic defect images to determine the optimal parameters , in the inference phase, the bounding box of the predicted defect is refined based on the input image;

[0020] The feature embedding set and feature distribution generated by the location neighborhood perception module are input into the detection module, and the bounding box and category of the predicted defect are output;

[0021] The bounding box output by the detection module and the original image are input into the pixel-level refinement module, and the adjusted bounding box is output to achieve more accurate positioning of the defect.

[0022] Furthermore, the feature embedding core subset The feature vector of is subsampled from all normal features in all training images using a greedy sampling method, and the sampling ratio is set to 0.01;

[0023] Feature Embedding Core Subset Each element c of represents a set of similar normal features, and the number of normal features associated with the embedded core features is proportional to the probability that element c is normal under that condition.

[0024] Furthermore, the pixel-level refinement module uses a supervised refinement module f to train with an artificially generated defect image dataset. is the parameter of the refinement module f, then the optimal parameter The expression is:

[0025] ;

[0026] The training data is composed of D is composed of I, where I is an artificially generated abnormal image and A represents the actual defect position of the real abnormal image of I, where the defect area is assigned a value of 1 and other areas are assigned a value of 0. is the defect location estimated by the PBNet network; Is the defect location and the loss function between the actual defect position A.

[0027] Furthermore, the pixel-level refinement module adopts an encoder-decoder architecture, and the training of the pixel-level refinement module uses a regression loss and gradient loss The two-part loss function.

[0028] Furthermore, the regression loss and gradient loss The expressions are:

[0029] ;

[0030] in, is the width and height of the bounding box;

[0031] ;

[0032] in, and Represent the partial derivative operations in the vertical and horizontal directions respectively.

[0033] By means of the above technical solution, the present invention provides a method for detecting surface defects of large preforms woven into a shape, which has at least the following beneficial effects:

[0034] 1. The present invention designs and utilizes a multi-view image acquisition device as an image acquisition platform to acquire the surface image of the preform. The position of the industrial camera can be manually or mechanically set using a slide rail, and the slide rail can be adjusted for extension and retraction to achieve self-adaptation to shooting scenes of different preforms. The surface image of a large preform is captured in coverage, thereby overcoming the problem that the large preform is large in size and the field of view cannot be fully covered by ordinary image acquisition methods.

[0035] 2. The present invention designs and utilizes a position and neighborhood information enhancement network as a defect detection model, models the position and neighborhood feature distribution, realizes effective extraction of defect features, and uses a pixel-level refinement module to further refine and adjust the position of the defect detection boundary box, thereby improving the detection accuracy of preform surface defects.

[0036] 3. The present invention effectively integrates image acquisition technology and target detection technology, effectively improving the automation level in large preform defect detection scenarios, improving detection efficiency and detection accuracy, and solving problems such as current detection scenarios relying on manual identification and detection, low manual detection efficiency, and being affected by subjective factors. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0038] Figure 1 is a flow chart of the surface defect detection method of the present invention;

[0039] Figure 2 A schematic diagram of the structure of a multi-view image acquisition device according to the present invention;

[0040] Figure 3 This is a network structure diagram of the defect detection model of the present invention. DETAILED DESCRIPTION

[0041] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific implementation methods, so that the implementation process of how the present application uses technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.

[0042] Three-dimensional braiding is an advanced manufacturing technology used to weave composite fibers or other materials into a structure of desired shape in three dimensions, i.e., a preform. A three-dimensional braiding machine weaves fibers into desired shapes in three dimensions. Usually, the fibers are interwoven along the X, Y, and Z axes, staggered at angles in three-dimensional space, continuous as a whole, and without seams. This can greatly improve the performance of composite materials, solve the common pain point of low interlayer shear strength in traditional products, and form complex structures. After weaving, the structure is cured or fixed to ensure that it maintains the desired shape and strength.

[0043] Surface defects may occur in many processes during the preform forming process. During the weaving process, defects or unevenness of the fiber material may cause defects or breaks on the preform surface. At the same time, due to process limitations, the preform surface may be uneven. During the preform curing process, wrinkles or bubbles may appear on the surface due to factors such as uneven temperature, pressure or humidity during the curing process. The surface defects of the preform affect its appearance and performance. However, at present, the defects on the surface of the preform still rely mainly on manual identification and detection, but there are problems such as low efficiency of manual detection and the influence of subjective factors.

[0044] Based on the technical defects of the above-mentioned prior art, please refer to Figure 1-Figure 3 , showing a specific implementation of the present embodiment, the present embodiment designs and utilizes a multi-view image acquisition device as an image acquisition platform to acquire the surface image of the preform, the position of the industrial camera can be manually or mechanically set using a slide rail, and the slide rail can be adjusted to adapt to the shooting scenes of different preforms, wherein the coverage acquisition of the surface image of a large preform is achieved, overcoming the problem that the large preform is large in size and the field of view of ordinary image acquisition methods cannot be fully covered.

[0045] Since the existing technology for preform defect detection has the problems of slow efficiency and low detection accuracy, please refer to Figure 1 This embodiment proposes a surface defect detection method for large preform woven forming, which aims to solve the problem of low detection efficiency and low detection accuracy of large preforms, improve the efficiency, quality control level and automation level of preform production, and realize accurate detection of defects on the surface image of large preform woven forming. The method includes the following steps:

[0046] S1. Build and deploy a multi-view image acquisition device on the production line to fully cover the surface of the large prefabricated body; the multi-view image acquisition device is built with a circular slide rail, a strip slide rail, and multiple industrial cameras, such as Figure 2 As shown, the annular slide rail is connected to four strip slide rails, three industrial cameras are deployed on the annular slide rail, and one industrial camera is deployed on each of the four strip slide rails, so that full coverage of the surface field of large prefabricated bodies can be achieved; and the entire equipment is deployed on the production line and workstations are set, and the slide rail size can be adjusted according to the production line and prefabricated body model.

[0047] S2. Construct a defect detection model that integrates position and neighborhood information and is used to accurately detect and locate surface defects of large preforms. Please refer to Figure 3 The defect detection model consists of a feature extraction module based on the densely connected feature network DenseNet as the backbone network, a core feature extraction module for creating a feature memory library, a location neighborhood information perception module for modeling the distribution of location and neighborhood information features, a pixel-level refinement module for improving the predicted defect bounding box, and a detection module for outputting the bounding box and category of the predicted defect.

[0048] The dense connection mechanism feature network DenseNet in the feature extraction module is serially connected to form four consecutive stages through four consecutive dense feature extraction submodules based on dense connection mechanism. The dense feature extraction submodule uses bottleneck layer to reduce the amount of calculation and improve the calculation efficiency. When the spatial scale is different, the feature extraction module uses the intermediate second and third stage features for splicing and uses, and adjusts the smaller spatial scale to the same size as the larger spatial scale, which is used to convert the input large preform image into a local level feature. Specifically, since the feature space and semantic scale extracted by the feature extraction module at different stages are different, in order to avoid using too high or too low level features, the intermediate second and third stage features are used for splicing and use. Due to the different spatial scales, the smaller spatial scale is adjusted to the same size as the larger spatial scale, realizing the expansion and fusion of adjacent features.

[0049] The local level features converted by the feature extraction module enter the core feature extraction module, which uses the greedy downsampling method to complete the feature embedding into the core subset. , distribution feature core subset is constructed and stored in the feature memory. More specifically, the feature embedding core subset The feature vector of is sub-sampled from all normal features in all training images using a greedy sampling method, and the sampling ratio is set to 0.01. The greedy downsampling algorithm process is: randomly select a feature as a sampling point, and then select one from the remaining features as the current point, calculate the distance between the current point and the selected sampling point, and compare the current point with all the selected sampling points. If the distance from the current point to any selected sampling point exceeds a preset threshold, the current point can be used as a sampling point, and this operation is repeated until the ratio of the number of sampled features to the original features reaches the set ratio.

[0050] Feature Embedding Core Subset Each element c of represents a set of similar normal features. The number of normal features associated with the embedded core features is proportional to the probability that element c is normal under this condition, where element c is the core subset The normal probability P of an image patch can be calculated using Indicates as follows:

[0051] ;

[0052] in, is the network; X is the image; for location and neighborhood information; Represents the extracted features.

[0053] The local level features converted by the feature extraction module enter the location neighborhood information perception module, and combined with the feature memory created by the core feature extraction module, the feature embedding set and feature distribution of the given neighborhood and location information are trained to realize the location neighborhood information perception of the feature. More specifically, the location and neighborhood information feature distribution is modeled by approximating it as the average of two probabilities, namely:

[0054] ;

[0055] in, It is the feature distribution in the neighborhood information, which is modeled using a multi-layer perceptron; is the feature distribution of position information. The histogram is constructed by calculating the frequency of the training feature at each position x. In order to speed up the calculation, the feature is embedded in the core subset Downsampling was performed again to obtain the core subset of distribution features ; The multilayer perceptron accepts The one-dimensional vector concatenated from all the features in is used as input, and batch normalization and rectified linear unit activation functions are used between MLP layers. The MLP network consists of 8 fully connected layers, each with 1024 neurons. It is optimized using the Adam optimizer, with a learning rate of 10−3, a batch size of 2,048, and a step learning rate decay with γ = 0.1 and a step size of 5.

[0056] The pixel-level refinement module is trained separately using synthetic defect images to determine the optimal parameters , in the inference phase, the bounding box of the predicted defect is refined according to the input image. More specifically, the pixel-level refinement module uses a supervised refinement module f to be trained using an artificially generated defect image dataset. To refine the parameters of module f, the goal of this embodiment is to train the optimal parameters ,Right now:

[0057] ;

[0058] The training data is composed of D is composed of I, where I is an artificially generated abnormal image and A represents the actual defect position of the real abnormal image of I, where the defect area is assigned a value of 1 and other areas are assigned a value of 0. is the defect location estimated by the PBNet network; Is the defect location The loss function between the predicted defect location and the actual defect location A. This supervised method is used to refine the predicted defect location and improve the bounding box of the predicted defect.

[0059] The pixel-level refinement module uses an encoder-decoder architecture. The training of the pixel-level refinement module uses a regression loss and gradient loss The two-part loss function, regression loss It is obtained by calculating the L2 norm of the bounding box predicted by the network and the true bounding box, that is: ;

[0060] in, is the width and height of the bounding box;

[0061] Gradient Loss The expression is: ;

[0062] in, and Represent the partial derivative operations in the vertical and horizontal directions respectively. The refinement results are improved by making the network training more focused on the edges of defect areas. During the training of the pixel-level refinement module, the Adam optimizer is used, the number of iterations is 60,000, the learning rate is set to 10−4, and the batch size is 8. At the same time, data augmentation is performed in an online manner, including random horizontal flipping, rotation, and color transformation.

[0063] The feature embedding set and feature distribution generated by the location neighborhood perception module are input into the detection module, and the bounding box and category of the predicted defect are output. More specifically, a certain number of anchor boxes, i.e., detection bounding boxes, are preset on the feature embedding set, and the real box is associated with the preset anchor box through the intersection and union ratio, and regression is performed in combination with the feature distribution information to optimize the position of the detection box and classify it; the bounding box output by the detection module and the original image are input into the pixel-level refinement module, and the adjusted bounding box is output to achieve more accurate positioning of the defect.

[0064] This embodiment designs and utilizes a position and neighborhood information enhancement network as a defect detection model, models the position and neighborhood feature distribution, achieves effective extraction of defect features, and uses a pixel-level refinement module to further refine and adjust the position of the defect detection boundary box, thereby improving the detection accuracy of preform surface defects.

[0065] S3. Use multi-view image acquisition equipment to obtain multi-view images of large preforms on the production line to construct a preform defect data set; in this step, use the multi-view image acquisition equipment to adjust the position of the industrial camera or set the mechanical trajectory to achieve full coverage of the surface field of the large preform, realize multi-angle image acquisition, and perform screening and grayscale processing. Then define the defect type of the large preform according to the defect characteristics, and finally annotate the image data, select the image and the corresponding annotation file to produce the preform defect data set, and divide it into training set, test set, and verification set according to the division ratio of 8:1:1.

[0066] S4. Use the preform defect data set to train, test and verify the defect detection model to obtain a trained defect detection model. The training, testing and verification of the defect detection model can be achieved through conventional technical means, which will not be described in detail here.

[0067] S5. Use the trained defect detection model to realize online continuous detection of preform surface defects on the production line, deploy the trained defect detection model, realize system integration with the multi-view image acquisition device, obtain large preform surface images through the multi-view image acquisition device, input the image into the trained defect detection model to obtain the detection results of the preform defects in the image, that is, the bounding box position and category of the preform defects.

[0068] The present invention designs and utilizes a multi-view image acquisition device to acquire surface images of large preforms, and produces a preform defect data set used for network training, trains a defect detection model to obtain a final defect detection model, and deploys the trained defect detection model to a multi-view image acquisition device station on a production line to realize system integration, thereby completing the detection of surface defects of large preforms on the production line. The present invention can overcome the problem that large preforms are large in size and that the field of view of ordinary image acquisition methods cannot be fully covered, and utilizes position and neighborhood information to enhance the network, thereby realizing effective extraction of defect features and improving preform detection efficiency and detection accuracy.

[0069] Those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, so the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0070] The above implementation methods have been described in detail. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for detecting surface defects of large preforms woven into a shape, characterized in that: The method comprises the following steps: S1. Build and deploy multi-view image acquisition equipment on the production line to fully cover the surface of large prefabricated bodies; S2. Constructing a defect detection model that integrates position and neighborhood information and is used to accurately detect and locate surface defects of large preforms woven and formed, specifically including the following processes: The local level features converted by the feature extraction module enter the core feature extraction module, which uses the greedy downsampling method to complete the feature embedding into the core subset. , distribution feature core subset The construction of and storage in the feature memory; The local level features converted by the feature extraction module enter the location neighborhood information perception module, and combined with the feature memory library created by the core feature extraction module, the feature embedding set and feature distribution of the given neighborhood and location information are trained to realize the location neighborhood information perception of the feature; The pixel-level refinement module is trained separately using synthetic defect images to determine the optimal parameters , in the inference phase, the bounding box of the predicted defect is refined based on the input image; The feature embedding set and feature distribution generated by the location neighborhood perception module are input into the detection module, and the bounding box and category of the predicted defect are output; The bounding box output by the detection module and the original image are input into the pixel-level refinement module, and the adjusted bounding box is output to achieve more accurate positioning of the defect; The defect detection model uses a feature extraction module based on a dense connection mechanism feature network DenseNet as the backbone network, which is used to convert the input large preform image into a local level feature. It consists of a core feature extraction module for creating a feature memory library, a location neighborhood information perception module for modeling the distribution of location and neighborhood information features, a pixel-level refinement module for improving the predicted defect bounding box, and a detection module for outputting the bounding box and category of the predicted defect; S3, using a multi-view image acquisition device to obtain multi-view images of large preforms on the production line to construct a preform defect data set; S4, using the preform defect data set to train, test and verify the defect detection model to obtain a trained defect detection model; S5. Use the trained defect detection model to realize online continuous detection of surface defects of preforms on the production line.

2. The surface defect detection method according to claim 1, characterized in that: The multi-view image acquisition device is constructed by an annular slide rail, a strip slide rail, and multiple industrial cameras.

3. The surface defect detection method according to claim 1, characterized in that: The dense connection mechanism feature network DenseNet in the feature extraction module is composed of four consecutive stages through four consecutive dense feature extraction submodules based on the dense connection mechanism connected in series, wherein the dense feature extraction submodule uses a bottleneck layer to reduce the amount of calculation and improve the calculation efficiency.

4. The surface defect detection method according to claim 1, characterized in that: The feature extraction module uses the intermediate second and third stage features for splicing when the spatial scales are different, adjusts the smaller spatial scale to the same size as the larger spatial scale, and is used to convert the input large preform image into a local level feature.

5. The surface defect detection method according to claim 1, characterized in that: The feature embedding core subset The feature vector of is subsampled from all normal features in all training images using a greedy sampling method, and the sampling ratio is set to 0.01; Feature Embedding Core Subset Each element c of represents a set of similar normal features, and the number of normal features associated with the embedded core features is proportional to the probability that element c is a normal feature when subsampling.

6. The surface defect detection method according to claim 1, characterized in that: The pixel-level refinement module uses a supervised trained refinement module To use the artificially generated defect image dataset for training, To refine the module The optimal parameters are The expression is: ; The training data is composed of For D composition, is an artificially generated abnormal image, express The real defect position of the real abnormal image, where the defect area is assigned 1 and other areas are assigned 0. is the defect location estimated by the PBNet network; Is the defect location and the actual defect location The loss function between .

7. The surface defect detection method according to claim 1, characterized in that: The pixel-level refinement module adopts an encoder-decoder architecture, and the training of the pixel-level refinement module uses a regression loss and gradient loss The two-part loss function.

8. The surface defect detection method according to claim 7, characterized in that: The regression loss and gradient loss The expressions are: ; in, is the width and height of the bounding box; ; in, and Represent the partial derivative operations in the vertical and horizontal directions respectively.