Subspace-based nuclear fuel assembly appearance defect detection method

Through the detection method based on subspace, using components such as WideResnet50 and feature extractor, it solves the problem of time-consuming and labor-intensive manual detection in nuclear fuel assembly detection and the deep learning model requires a large amount of sample data, achieving efficient and accurate automated detection with more adaptability. Strong, suitable for automated detection of nuclear fuel components.

CN118864355APending Publication Date: 2024-10-29CHINA NORTH NUCLEAR FUEL CO LTD +2
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410826530.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing nuclear fuel assembly defect detection technology relies on manual inspection, which is time-consuming and labor-intensive and has low accuracy. Methods based on machine vision are affected by noise and have low accuracy. Deep learning models require a large amount of sample data and have limited generalization capabilities, making it difficult to achieve efficient and accurate automated inspection.

Method used

Adopt a subspace-based nuclear fuel assembly appearance defect detection method, use WideResnet50 as the backbone network, design feature extractors, feature adapters and anomaly feature generators, use subspace models for training, reduce dependence on a large number of sample data, and achieve high efficiency and accuracy defect detection.

Benefits of technology

It improves detection accuracy, simplifies the model training process, has stronger adaptability, can achieve high-accuracy automated detection with a small amount of sample data, reduces manual operations, and is suitable for automated detection of nuclear fuel components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FDA0004910655740000013
    Figure FDA0004910655740000013
  • Figure FDA0004910655740000015
    Figure FDA0004910655740000015
  • Figure FDA0004910655740000016
    Figure FDA0004910655740000016
Patent Text Reader

Abstract

The invention belongs to the technical field of automatic detection, and particularly relates to a subspace-based nuclear fuel assembly appearance defect detection method. Comprising the following steps: step 1, model training; the method comprises the following steps: 1.1, making a data set: acquiring a normal sample image and a defective sample image which are easy to obtain, and labeling a defective area of the defective sample data; 1.2, designing a neural network model; 1.3, model training; step 2, model reasoning; 2.1, inputting an image, and extracting features by using the feature extractor designed in the step 1; 2.2, mapping the extracted features by using a feature adapter to obtain an adaptive feature map, and converting the adaptive feature map into channel sequence data according to a row sequence; and 2.3, inputting the channel sequence data generated in the previous step into a subspace formed by a discriminator group for projection calculation. According to the invention, defect type data can be expanded or deleted according to requirements, and manual operation and even unmanned automatic detection of nuclear fuel assembly appearance defects with high efficiency and high accuracy can be greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of automated detection, and in particular relates to a subspace-based nuclear fuel assembly appearance defect detection method. Background Art

[0002] Due to the particularity of nuclear fuel assemblies, there is a relative lack of automated detection technology in this field in China. The assembly defect detection method involved in this invention is proposed based on the above background. The existing nuclear fuel assembly defect detection methods can be roughly classified into two types:

[0003] Manual inspection: Currently, defect detection of nuclear fuel components is still mainly done manually. Due to the characteristics of the components themselves, manual inspection is a time-consuming and laborious task. At the same time, some defects are small, and coupled with light disturbances, they are prone to missed detections and misjudgments. In addition, due to the limitations of the human eye, the detection accuracy may not be very high. At the same time, the judgment process is tedious and lengthy, which is prone to visual fatigue, further increasing the possibility of missed detections and misjudgments.

[0004] Detection based on machine vision: This method uses a camera to collect data and then uses machine vision methods to make judgments. Machine vision methods are widely used in industrial production due to their advantages in defect detection, such as high accuracy, efficiency, reliability, automation, flexibility, and cost reduction. Traditional machine recognition methods are easily affected by noise, have low accuracy, and poor robustness. Although defect detection based on deep learning has good accuracy, it requires a large amount of sample data to achieve good results. In defect detection tasks, the process of labeling data is often complicated, and sometimes it is difficult to obtain defect data in real scenes. Therefore, it is difficult to meet the needs of traditional deep learning model training. At the same time, for some unseen defects, the generalization ability of deep learning models is limited, which may cause defects to be missed or misdetected. Summary of the invention

[0005] The purpose of the present invention is to provide a subspace-based nuclear fuel assembly appearance defect detection method, which does not rely on a large amount of defect sample data, can expand or delete defect type data according to needs, and achieve high-efficiency and high-accuracy automated detection of nuclear fuel assembly appearance defects that greatly reduces manual operation or even unmanned.

[0006] In order to achieve the above object, the technical solution adopted by the present invention is:

[0007] A method for detecting appearance defects of nuclear fuel assemblies based on subspaces comprises the following steps: step 1, model training; 1.1 data set preparation: collecting normal sample images and defective sample images that are easily obtained, and marking defective areas of the defective sample data; 1.2 neural network model design; 1.3 model training; step 2, model reasoning; 2.1 inputting an image, and extracting features using the feature extractor designed in step 1; 2.2 using a feature adapter to map the extracted features to obtain an adapted feature map, and converting the adapted feature map into channel sequence data in row order; 2.3 inputting the channel sequence data generated in the previous step into the subspace formed by the discriminator group for projection calculation.

[0008] 1.2 The neural network model design is as follows: First, the feature extractor is designed. WideResnet50 is selected as the backbone network Backbone to extract features from different layers φ. L is defined to represent the network layer used for feature extraction. The feature map from the l∈L layer is represented as Among them, H l , W l , C l are the height, width and number of channels of the feature map, respectively, i Represents the i-th sample. For any input At position (h,w), its patchsize neighbors are defined as follows:

[0009]

[0010] Then use the aggregate function f agg Aggregate Neighborhood characteristics, and obtain As shown below:

[0011]

[0012] To connect All feature maps are linearly scaled to the same size (H0, W0), which represent the height and width of the feature map respectively, and the feature maps are connected by channel to obtain the feature map As shown below:

[0013] o i =f cat (resize(z l',i ,(H0,W0))|l'∈L) (3)

[0014] Among them, resize is the scaling operation, f cat For channel connection operation, for o iThe entrance at the (h,w) position; secondly, the feature adapter is designed, and the multi-layer perceptron is used to transfer the extracted features from the original domain to the target domain; thirdly, the abnormal feature generator is designed to add noise to the normal samples in the feature space to obtain abnormal samples. First, a noise vector ε∈R is sampled from the Gaussian distribution. C , then, this abnormal feature is represented as:

[0015]

[0016] h and w represent the rows and columns of the extracted feature map, respectively, C represents the feature dimension of the feature map, and i represents the i-th sample; finally, the subspace model is designed, which consists of multiple unrelated normalized discriminators:

[0017] D={d i =f linear |i=1,2,...,n} (5)

[0018] Among them, f linear Represents a linear discriminator, i represents the i-th one, and D represents the subspace formed by these linear discriminators.

[0019] Use the second and third intermediate layers of the backbone network to extract features.

[0020] 1.3 Model training: First, the backbone network Backbone is used to obtain image features, and then the feature adapter is used to process the obtained feature map to obtain the adapted feature map. The feature dimension is set to 1536. At the same time, the abnormal feature generator is used to obtain the abnormal feature map. The abnormal feature generator uses Gaussian noise N(0,0.015), and the obtained abnormal feature map is fused with the adapted feature to obtain the fused abnormal feature map. Finally, the fused abnormal data or the real abnormal data is sent together with the normal data into the subspace composed of the discriminator group for training. The loss function is defined as follows:

[0021] D norm =f norm (D={d i =f linear |i=1,2,...,n}) (6)

[0022] M=D norm *D norm T (7)

[0023] l = sum(f norm (q true )·D norm )+min(f norm (q fake )·Dnorm )+0.001*sum((triu(M*M)-triu(M)))(8)

[0024] Among them, q true is a normal sample, q fake is an abnormal sample, f norm represents the normalization operation, f linear represents a linear discriminator, sum represents a summation operation, min represents a minimum operation, and triu represents an upper triangular matrix operation, excluding the main diagonal elements.

[0025] 2.3 Input the channel sequence data generated in the previous step into the subspace formed by the discriminator group for projection calculation, as shown in the following formula:

[0026] o=min(f norm (q)·D norm ) (9)

[0027] Among them, f norm With D norm As described in step 1, q is the channel sequence data. When o is less than 0, it indicates an abnormal sample, and otherwise it is a normal sample.

[0028] The channel sequence data corresponds to different areas of the original image. When a channel data is judged to be abnormal, calibration is performed on the corresponding area of ​​the original image to complete the defect detection.

[0029] The beneficial effects achieved by the present invention are:

[0030] It is more accurate than traditional machine vision methods, easier to train and more adaptable than traditional deep learning algorithms; it does not require a large amount of defect sample data for training; it uses a type of model constructed for normal samples in subspace, which is more compact than traditional types of models and is more conducive to defect detection. DETAILED DESCRIPTION

[0031] The present invention is described in detail below with reference to specific embodiments.

[0032] A method for detecting appearance defects of nuclear fuel assemblies based on subspaces comprises the following steps:

[0033] Step 1: Model training

[0034] 1.1 Dataset Creation

[0035] Collect easily available positive sample images and defective sample images, and mark the defective areas of the defective sample data;

[0036] 1.2 Neural Network Model Design

[0037] First, we design a feature extractor and select WideResnet50 as the backbone network to extract features from different layers φ. Define L to represent the network layer used for feature extraction, then the feature map from layer l∈L is represented as Among them, H l , W l , C l are the height, width and number of channels of the feature map, respectively, i represents the i-th sample. For any input At position (h,w), its patchsize(p) neighbors can be defined as follows:

[0038]

[0039] Then, using the aggregate function f agg Aggregate neighbors (using adaptive average pooling layer) characteristics, and obtain As shown below:

[0040]

[0041] In order to connect All feature maps are linearly scaled to the same size (H0, W0), which represent the height and width of the feature map respectively. Simply concatenating the feature maps by channel can get the feature map As shown below:

[0042] o i =f cat (resize(z l',i ,(H0,W0))|l'∈L) (3)

[0043] Among them, resize is the scaling operation, f cat For channel connection operation, for o i The entry at position (h,w). In this scheme, the second and third intermediate layers of the backbone network are used to extract features;

[0044] Secondly, a feature adapter is designed, where a multi-layer perceptron (MLP) is used to transfer the extracted features from the original domain to the target domain.

[0045] Design the abnormal feature generator again, add simple noise to the normal samples in the feature space to obtain abnormal samples. First, sample a noise vector ε∈R from the Gaussian distribution. C , then, this abnormal feature is represented as:

[0046]

[0047] h and w represent the rows and columns of the extracted feature map respectively, C represents the feature dimension of the feature map, and i represents the i-th sample.

[0048] Finally, the subspace model is designed. Here, the subspace model is composed of multiple unrelated normalized discriminators:

[0049] D={d i =f linear |i=1,2,...,n} (5)

[0050] Among them, f linear Represents a linear discriminator, i represents the i-th one, and D represents the subspace formed by these linear discriminators.

[0051] 1.3 Model Training

[0052] First, the backbone network Backbone is used to obtain image features, and then the feature adapter is used to process the obtained feature map to obtain the adapted feature map. The feature dimension is set to 1536. At the same time, the abnormal feature generator is used to obtain the abnormal feature map. The abnormal feature generator uses Gaussian noise N(0,0.015), and the obtained abnormal feature map is fused with the adapted feature to obtain the fused abnormal feature map. Finally, the fused abnormal data or the real abnormal data is sent together with the normal data into the subspace composed of the discriminator group for training. The loss function is defined as follows:

[0053] D norm =f norm (D={d i =f linear |i=1,2,...,n}) (6)

[0054] M=D norm *D norm T (7)

[0055] l = sum(f norm (q true )·D norm )+min(f norm (q fake )·D norm )+0.001*sum((triu(M*M)-triu(M)))(8)

[0056] Among them, q true is a normal sample, q fake is an abnormal sample, f norm represents the normalization operation, f linearrepresents a linear discriminator, sum represents a summation operation, min represents a minimum operation, and triu represents an upper triangular matrix operation, excluding the main diagonal elements.

[0057] Step 2: Model Reasoning

[0058] 2.1 Input image and extract features using the feature extractor designed in step 1;

[0059] 2.2 Use the feature adapter to map the extracted features to obtain an adapted feature map, and convert the adapted feature map into channel sequence data in row order;

[0060] 2.3 Input the channel sequence data generated in the previous step into the subspace formed by the discriminator group for projection calculation, as shown in the following formula:

[0061] o=min(f norm (q)·D norm ) (9)

[0062] Among them, f norm With D norm As described in step 1, q is the channel sequence data. When o is less than 0, it indicates an abnormal sample, and other cases are normal samples. The channel sequence data here correspond to different areas of the original image. Therefore, when a channel data is determined to be abnormal, it can be calibrated on the area corresponding to the original image to complete the defect detection.

[0063] The key points and points to be protected of the present invention are: innovatively proposing a method for defect detection using a small number of samples, which only requires a small amount of defect sample data or zero samples; innovatively proposing a method for constructing a compact class of models of normal samples using subspaces; and innovatively proposing a subspace training method.

Claims

1. A subspace-based nuclear fuel assembly appearance defect detection method, characterized in that: The following steps are involved: Step 1: Model training; 1.1 Dataset preparation: Collect normal sample images and defective sample images that are easily available, and mark the defective areas of the defective sample data; 1.2 Neural network model design; 1.3 Model training; Step 2, model reasoning; 2.1 Input image, use the feature extractor designed in step 1 to extract features; 2.2 Use the feature adapter to map the extracted features to obtain an adapted feature map, and convert the adapted feature map into channel sequence data in row order; 2.3 Input the channel sequence data generated in the previous step into the subspace formed by the discriminator group for projection calculation.

2. The subspace-based nuclear fuel assembly appearance defect detection method according to claim 1, characterized in that: 1.2 The neural network model design is as follows: First, the feature extractor is designed. WideResnet50 is selected as the backbone network Backbone to extract features from different layers φ. L is defined to represent the network layer used for feature extraction. The feature map from the l∈L layer is represented as Among them, H l , W l , C l are the height, width and number of channels of the feature map, respectively, x i Represents the i-th sample. For any input At position (h,w), its patchsize neighbors are defined as follows: Then use the aggregate function f agg Aggregate Neighborhood Features, get local features As shown below: To connect All feature maps are linearly scaled to the same size (H0, W0), which represent the height and width of the feature map respectively, and the feature maps are connected by channel to obtain the feature map As shown below: Among them, resize is the scaling operation, f cat For channel connection operation, for o i The entrance at the (h,w) position; secondly, the feature adapter is designed, and the multi-layer perceptron is used to transfer the extracted features from the original domain to the target domain; thirdly, the abnormal feature generator is designed to add noise to the normal samples in the feature space to obtain abnormal samples. First, a noise vector ε∈R is sampled from the Gaussian distribution. C , then, this abnormal feature is represented as: h and w represent the rows and columns of the extracted feature map, respectively, C represents the feature dimension of the feature map, and i represents the i-th sample; finally, the subspace model is designed, which consists of multiple unrelated normalized discriminators: D={d i =f linear |i=1,2,...,n} (5) Among them, f linear Represents a linear discriminator, i represents the i-th one, and D represents the subspace formed by these linear discriminators.

3. The subspace-based nuclear fuel assembly appearance defect detection method according to claim 2 is characterized in that: Use the second and third intermediate layers of the backbone network to extract features.

4. The subspace-based nuclear fuel assembly appearance defect detection method according to claim 3 is characterized in that: 1.3 Model training: First, the backbone network Backbone is used to obtain image features, and then the feature adapter is used to process the obtained feature map to obtain the adapted feature map. The feature dimension is set to 1536. At the same time, the abnormal feature generator is used to obtain the abnormal feature map. The abnormal feature generator uses Gaussian noise N(0,0.015), and the obtained abnormal feature map is fused with the adapted feature to obtain the fused abnormal feature map. Finally, the fused abnormal data or the real abnormal data is sent together with the normal data into the subspace composed of the discriminator group for training. The loss function is defined as follows: D norm =f norm (D={d i =f linear |i=1,2,...,n}) (6) M=D norm *D norm T (7) l=sum(f norm (q true )·D norm )+min(f norm (q fake )·D norm )+0.001*sum((triu(M*M)-triu(M)))(8) Among them, q true is a normal sample, q fake is an abnormal sample, f norm represents the normalization operation, f linear represents a linear discriminator, sum represents a summation operation, min represents a minimum operation, and triu represents an upper triangular matrix operation, excluding the main diagonal elements.

5. The subspace-based nuclear fuel assembly appearance defect detection method according to claim 4, characterized in that: 2.3 Input the channel sequence data generated in the previous step into the subspace formed by the discriminator group for projection calculation, as shown in the following formula: o=min(f norm (q)·D norm ) (9) Among them, f norm With D norm As described in step 1, q is the channel sequence data. When o is less than 0, it indicates an abnormal sample, and otherwise it is a normal sample.

6. The subspace-based nuclear fuel assembly appearance defect detection method according to claim 5, characterized in that: The channel sequence data corresponds to different areas of the original image. When a channel data is judged to be abnormal, calibration is performed on the corresponding area of ​​the original image to complete the defect detection.

Citation Information

Patent Citations

  • Photovoltaic module unsupervised defect detection method based on GAN improved algorithm

    CN111340791A

  • Nuclear fuel rod defect detection method and device and nuclear reaction system

    CN114627126A

  • Feature adversarial network-based heterogeneous image template matching method

    CN116433735A