Three-dimensional anomaly detection method based on image-point cloud data double-branch hybrid model
Through the image-point cloud data dual-branch hybrid model, the image and point cloud features are fused, which solves the problems of low detection accuracy and inability to utilize point cloud information in the existing technology, and achieves more efficient and accurate anomaly detection results.
Patent Information
- Application Number
- CN202410738576.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-10
AI Technical Summary
Existing anomaly detection methods mainly focus on image data and fail to effectively utilize the geometric structure information of point cloud data, resulting in low detection accuracy and inability to fully integrate image and point cloud features, resulting in insufficient detection efficiency and accuracy.
A three-dimensional anomaly detection method based on the image-point cloud data dual-branch hybrid model is adopted. By preprocessing the image and point cloud data, WideResNet50 and PointMAE are used to extract features, and a multi-semantic feature fusion module that hybridizes cross-modal multi-head attention is constructed to fuse Image and point cloud features, combined with the adaptive channel selection module, reduce feature redundancy and are input to the standard flow model for anomaly detection.
It improves the accuracy and efficiency of anomaly detection, makes full use of the structural information of point cloud data, enhances the fusion between images and point cloud data, and achieves more accurate anomaly detection results.
Smart Images

Figure CN118628808A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of industrial anomaly detection, and in particular to a three-dimensional anomaly detection method based on an image-point cloud data dual-branch hybrid model. Background Art
[0002] Anomaly detection is a technique used to identify abnormal patterns that do not conform to expected behavior. Anomaly detection is an important task in computer vision. The goal of anomaly detection is to identify data points that are significantly different from normal behavior, which may be caused by errors, abnormal events, failures, or other atypical situations. With the continuous development of science and technology in my country, more and more factories have their own unmanned workshops. The emergence of unmanned workshops has significantly improved the production efficiency of products and reduced the cost of production. Advanced automation and robotics technology are used to achieve autonomous operation and intelligent management of production lines. However, the quality of products produced by machines cannot be fully guaranteed, and some products may be damaged during the process of the assembly line. We call such non-compliant products abnormal products. When delivering products, it is necessary to pick out a small number of non-compliant abnormal products from a large number of qualified products. It is too costly and inefficient to use manual methods to pick out abnormal products. Using computer-assisted anomaly detection can greatly improve efficiency and reduce costs.
[0003] However, existing anomaly detection methods focus more on images and do not process point cloud data well. Point cloud data contains rich geometric structure information. Existing methods that only use images for anomaly detection will be affected by the detection perspective and thus affect the detection accuracy. When processing image and point cloud information, existing methods focus more on the separate processing of a single modality and do not consider the fusion of point cloud features and image features. At the same time, the extraction of point cloud features is more often done by pre-trained feature extractors, which will lead to feature deviations and this feature is more of a semantic feature, and does not take into account the more important structural features of point cloud data. Summary of the invention
[0004] In view of the above problems, the purpose of the present invention is to provide a three-dimensional anomaly detection method based on an image-point cloud data dual-branch hybrid model, combining the visual information of the product surface and its corresponding point cloud information containing the product geometric features, by simultaneously focusing on the two modal data of product image and product point cloud, strengthening the utilization of point cloud data and enhancing the fusion between the two modal data, and constructing a deep learning algorithm based on multimodal information processing for product anomaly detection. The technical solution is as follows:
[0005] A three-dimensional anomaly detection method based on an image-point cloud data dual-branch hybrid model comprises the following steps:
[0006] Step 1: Preprocess the image data and point cloud data of the object to be detected to reduce background interference;
[0007] Step 2: Multimodal data feature extraction
[0008] For image data, the convolutional neural network WideResNet50 pre-trained on the ImageNet dataset is used as an image feature extractor to extract image features C X ; For point cloud data, the neural network PointMAE pre-trained on the ShapaNet point cloud dataset is used as a point cloud feature extractor to extract the point cloud features C of normal point cloud data Y ;
[0009] Step 3: Multimodal feature fusion
[0010] Construct a multi-semantic feature fusion module that can fuse different semantic features with a hybrid cross-modal multi-head attention, and perform the multi-semantic feature fusion on the image features C extracted in step 2. X And point cloud feature C Y Fusion is performed to obtain the fused multimodal feature C Z ;
[0011] Step 4: Output the results
[0012] The fused multimodal features C Z Input the standard flow model to obtain the abnormal score value of each pixel, which is used as the result of abnormal detection on the image modality A image .
[0013] Furthermore, the step 1 specifically includes:
[0014] 1) Preprocess the image data:
[0015] The image of the object to be detected is enlarged and the center is cropped to the original image size;
[0016] 2) Preprocessing of point cloud data:
[0017] According to the point cloud data of the object to be detected, the Z coordinate values of the four endpoints are obtained. top_right , Z top_left , Z bottom_right and Z bottom_left ; According to the positions of the Z coordinates at the four endpoints, the initial background depth value of the entire image is affinely mapped, and the foreground and background are selected based on prior knowledge; by calculating the connected domain of the image projected by the Z coordinate, the connected domain that is less than the set value is directly removed, so that all the background point cloud values are set to 0.
[0018] Furthermore, extracting image features in step 2 specifically includes:
[0019] The convolutional neural network WideResNet50 as an image feature extractor includes multiple layers composed of residual networks. The features extracted in the 7th layer are used to avoid excessive domain bias; the features extracted in the 19th layer contain various texture information learned and some semantic information, and finally three different feature maps are obtained; when fusing, the three feature maps are firstly obtained by bilinear interpolation to obtain feature maps of the same size feature map1, feature map2 and feature map3, and then featuremap1, feature map2 and feature map3 are connected at the channel level to obtain the final image feature C X .
[0020] Furthermore, the step 3 specifically includes:
[0021] First, the image feature C X Through linear layer mapping, we get the query matrix Q1, key matrix K1 and value matrix V1 of the image modality; Y The query matrix Q2, key value matrix K2 and value item matrix V2 of the point cloud modality are obtained through linear layer mapping;
[0022] Then the point cloud feature C Y and image feature C X Attention is done between them, and the attention value attention1 is obtained, and then the image feature C X And point cloud feature C Y Attention is performed between them to obtain the attention value attention2, and the last two attention values attention1 and attention2 are added to obtain the fused multimodal feature C Z ; The formula is as follows:
[0023] Q1,K1,V1=Linear(C X )
[0024] Q2,K2,V2=Linear(C Y )
[0025]
[0026] C Z =concat(AFR(attention1),AFR(attention2))
[0027] Among them, Linear represents linear layer mapping, softmax is the normalized exponential function; T is the transposition symbol, d k1 and d k2 are the dimensions of the key-value matrix K1 and the key-value matrix K2 respectively; ACS is the adaptive channel selection module, and concat means adding the output results.
[0028] Furthermore, the step 4 is specifically as follows:
[0029] The multimodal feature C Z The input feature y is input into the standard flow model. The input feature y is shuffled in the channel dimension by each standard flow module, and then divided equally according to the number of channels to obtain two equally divided features y1 and y2. The convolution feature y1 obtained by passing the two convolution layers s1 and t1 is y s1 and t1 ; Then multiply the average feature y2 by e ys1 And add the convolution feature y t1 , and obtain the intermediate feature y2'; at the same time, the intermediate feature y2' is input into two convolutional layers s2 and t2 to obtain the convolutional feature y s2 and t2 ; At the same time, multiply the average feature y1 by e ys2 And add the convolution feature y t2 , and obtain the intermediate feature y1'. Finally, the intermediate features y1' and y2' are concatenated in the channel dimension to obtain the final mapping result y'; the obtained mapping result y' is used as the result A of the abnormality detection on the image modality image .
[0030] Furthermore, the loss function of the standard flow model is defined as:
[0031]
[0032] Among them, z is the final output of the standard flow model, y is the input feature of the quasi-flow model, that is, the fused multimodal feature C Z ;P Y (y) is P Z (z) is the standard normal distribution; det is the matrix symbol.
[0033] Furthermore, extracting point cloud features in step 2 also includes:
[0034] The original input point cloud data is rotated at different angles around the X, Y and Z axes to obtain multiple sets of point cloud data, and then the multiple sets of point cloud data are input into the PointMAE neural network to obtain the rotation point cloud feature C Yr ; Finally, all the point cloud features C Y and C YrThe final point cloud feature C is obtained by averaging Yf , and the final point cloud feature C Yf Perform core subset sampling to obtain the core subset of point cloud features And store it in the feature library of normal samples;
[0035] When the result of step 4 is output, the final point cloud feature C obtained in step 2 is Yf and a core subset of point cloud features By comparison, the abnormal detection result A of the point cloud modality at each pixel position is obtained. point ;
[0036] Finally, the anomaly detection results on the two modes are added in a weighted manner and upsampled to the same size as the original image to obtain the final anomaly detection result A final ; The expression is as follows:
[0037] A final =αA image +(1-α)A point
[0038] Among them, α is the weight of the result of abnormality detection on the image modality.
[0039] Furthermore, the sampling method of the core subset is mathematically expressed as:
[0040]
[0041] in, is the core subset of point cloud features, Mc represents the sampled core subset, M represents all point cloud features stored in the memory, m is the element of all point cloud features, and n is the element of the core subset.
[0042] The beneficial effect of the present invention is: the present invention provides a method for abnormality detection of industrial products based on computer deep learning technology, combining visual information of the product surface and its corresponding point cloud information containing product geometric features, to solve the problems of low detection accuracy and inability to fully utilize point cloud information and the fusion of two modalities in existing methods.
[0043] The present invention makes full use of point cloud data, and extracts the features of point cloud by using the feature extractor PointMAE pre-trained on the ShapeNet dataset. However, since the extracted features are more of a semantic information and contain less structural information, the structural information of point cloud is more important for point cloud data. Therefore, the present invention extracts features by rotating the point cloud data multiple times and continuing to pass the obtained rotated point cloud data through the PointMAE network, and enriches the semantic information and structural information of the point cloud data through different perspectives of the same point cloud data, so as to better utilize the point cloud data. At the same time, the present invention proposes a multimodal fusion method to better fuse the features of the two modalities. Fusion of the features of the two modalities can simultaneously utilize the visual information of the image and the structural information on the point cloud to achieve a more accurate anomaly detection effect. Therefore, the present invention fuses the features of the two modalities through a mixed attention method. Finally, considering that the two modalities will cause redundancy of some information if the channel dimension is directly superimposed after the attention operation, the present invention proposes an adaptive channel selection module to adaptively select channels to alleviate the problem of redundancy. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 This is an overall architecture diagram of the three-dimensional anomaly detection method based on the image-point cloud data dual-branch hybrid model of the present invention.
[0045] Figure 2 Schematic diagram of image feature extraction steps.
[0046] Figure 3 Schematic diagram of point cloud feature extraction module.
[0047] Figure 4 It is a hybrid cross-modal multi-head attention fusion module F.
[0048] Figure 5 Schematic diagram of the adaptive channel selection module ACS.
[0049] Figure 6 Schematic diagram of the standard flow model. DETAILED DESCRIPTION
[0050] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0051] The present invention is an algorithm based on deep learning multimodal information for but not limited to industrial product anomaly detection. The method has an overall structure as follows: Figure 1 As shown, it mainly includes the following steps:
[0052] Step 1: Multimodal Information Preprocessing
[0053] For image input, the image is enlarged and the center is cropped to reduce background interference. For point cloud data, all background point cloud values are set to 0 to reduce unnecessary point interference.
[0054] The details are as follows:
[0055] Regarding image input, considering that in actual applications, the products captured by the camera generally appear in the central area during the inspection process, the image is enlarged 1.25 times and the center is cropped to the original image size to reduce unnecessary background interference. Since the camera parameters are different during the inspection process, the pixel size of the image finally presented is also different, and the present invention does not impose any restrictions on this.
[0056] For point cloud data, before feature extraction, it is necessary to clear the influence of non-product point clouds, consider the product as the foreground, and the rest as the background. Specifically, the four endpoints of the captured point cloud data are all backgrounds, so the Z coordinate values of these four points can be obtained. top_right , Z top_left , Z bottom_right and Z bottom_left , according to the position of the Z coordinates at the four endpoints, the depth value of the approximate background of the entire image can be affinely calculated, and then the foreground and background can be selected based on prior knowledge. For example, when collecting point cloud data, the approximate distance between the object background and the object in the shooting angle can be roughly measured to determine the value of the prior knowledge. For the MVTec3D data set, the Z coordinate values of the foreground and background are generally set to be greater than 7mm to be considered as the foreground, and those less than 7mm are considered as the background. Due to the influence of the placement of the camera position and background factors in the practical process, the present invention does not limit this prior value. After roughly filtering out the foreground and background, it is found in the implementation process that there are still some small areas that are not filtered out. Therefore, the connected domain is calculated for the image projected by the Z coordinate, and the small connected domain is directly removed to further reduce the influence of the background.
[0057] Step 2: Multimodal data feature extraction
[0058] For two different modal data, two different methods are used to extract features from the modal data. For image data, a convolutional neural network pre-trained on the ImageNet dataset is used as a feature extractor to extract features. For point cloud input, the network PointMAE pre-trained on ShapaNet is used as a point cloud feature extractor to extract features.
[0059] The details are as follows:
[0060] Feature extraction of preprocessed multimodal data: Due to the different data formats between different modalities, the present invention proposes two different feature extraction methods for images and point clouds. For images, the present invention proposes a feature extraction module for multi-scale feature fusion. Figure 2 As shown, each Layer is composed of a residual network. The ImageNet dataset contains a lot of images. The network pre-trained on the ImageNet dataset has a strong image recognition ability. The present invention uses the network WideResNet50 pre-trained on the ImageNet dataset as the image feature extractor. Since the ImageNet dataset is mainly used for image classification tasks, there is a deviation between the task and data of anomaly detection. Therefore, in order to reduce domain deviation, the present invention uses the feature output of the 7th layer of the image feature extractor as the extracted feature. In order to better detect logical anomalies, a stronger expression of semantic information is required. At the same time, since many tiny detail anomalies may be included in the actual use process, a multi-scale method is used for feature extraction.
[0061] Therefore, taking the above factors into comprehensive consideration, the present invention adopts a multi-scale and multi-semantic level feature extraction and fusion method. The features extracted in the 7th layer of the network are used to avoid excessive domain deviation. The features extracted in the middle 19th layer contain various learned texture information and partial semantic information. The features extracted in the subsequent 26th layer are used to ensure richer semantic information to identify logical anomalies. Finally, three different feature maps are obtained. When fusing, the three feature maps are firstly obtained by bilinear interpolation to obtain feature maps of the same size, and then feature map1, feature map2, and feature map3 are connected at the channel level.
[0062] For point cloud data, the present invention uses the network PointMAE pre-trained on the ShapeNet point cloud dataset to perform feature extraction. The feature extraction module is as follows: Figure 3 First, the point cloud data is sampled by FPS (Farthest Point Sampling), and then the sampled data is input into the PointMA network to obtain the point cloud feature C Y At the same time, in order to strengthen the use of point cloud data, the point cloud data is rotated around the X, Y, and Z axes at different angles to obtain multiple sets of point cloud data. The same method is used to extract features from multiple sets of point cloud data to obtain the rotation point cloud feature C Yr , all point cloud features C Y and C Yr The final point cloud feature C is obtained by averaging Yf, and the final point cloud feature C Yf Perform core subset sampling to obtain the core subset of point cloud features And stored in the feature library of normal samples.
[0063] Step 3: Multimodal feature fusion
[0064] A hybrid cross-modal multi-head attention feature fusion module is constructed to fuse the feature expressions of different modalities extracted in step 2. Since the hybrid fusion method doubles the channel data and contains a lot of redundant information, an adaptive channel selection module is designed to select channels with more information and reduce the number of channels. When fusing point cloud features, only the point cloud features extracted from the unrotated point cloud data are fused to ensure that the point cloud data and image data are aligned.
[0065] The details are as follows:
[0066] For the two modal information extracted in step 2, since the two features are taken from different modal information, simple linear operations (such as addition or concatenation) do not work well. The present invention proposes a multi-semantic feature fusion module F that can fuse different semantic features. The overall architecture of module F is as follows: Figure 4 As shown, C X , C Y represents the two different multimodal features extracted from step 2. The point cloud modal feature uses the point cloud feature extracted from the unrotated point cloud data. Z Represents the multi-modal features after the final fusion. X , C Y The query matrix Q, key matrix K and value matrix V of the image modality and point cloud modality are obtained through linear layer mapping respectively, and then attention is paid between the point cloud features and the image features to obtain the attention value attention1, and then attention is paid between the image features and the point cloud features to obtain the attention value attention2, and the last two attention results attention1 and attention2 are added to obtain the final result. The formula is expressed as:
[0067] Q1,K1,V1=Linear(C X )
[0068] Q2,K2,V2=Linear(C Y )
[0069]
[0070] C Z =concat(ACS(attention1),ACS(attention2))
[0071] The above is the case of single-head attention. If hardware conditions permit, it can be expanded to multi-head attention. The adaptive channel selection module ACS (Adaptive Channel Selection) is as follows Figure 5 As shown, it contains two layers of MLP (Multilayer Perceptron), in which the first layer increases the dimension from 608 to 1024 dimensions and then decays the 1024 dimensions to 304 dimensions.
[0072] Step 4: Output the results
[0073] For the fused multimodal feature C obtained in step 3 Z , input the standard flow model to obtain the abnormal score value of each pixel, which is used as the result of abnormal detection on the image modality A image ; The final point cloud feature C obtained in step 2 Yf and a core subset of point cloud features By comparison, the abnormal detection result A of the point cloud modality at each pixel position is obtained. point Finally, the anomaly detection results of the two modes are added in a weighted manner and upsampled to the same size as the original image to obtain the final anomaly detection result.
[0074] The standard flow model outputs the result of anomaly detection on the image modality A image The details are as follows:
[0075] Get the fused multimodal feature C Z Afterwards, the multimodal feature C Z Input standard flow model for mapping, where standard flow model is as follows Figure 6 As shown. The input feature y (i.e., the multimodal feature C Z ) Input the standard flow model, which consists of multiple standard flow modules. In each standard flow module, the input feature y is first shuffled in the channel dimension and then evenly divided according to the number of channels to obtain two evenly divided features y1 and y2. After that, y1 passes through two convolutional layers. Assume that y1 passes through two convolutional layers s1 and t1 to obtain convolutional features y s1 and t1 ; Then use the average feature y2 multiplied by e ys1 And add y t1 , and use the result as the intermediate feature y2', and input this result into two convolutional layers s2 and t2 to obtain the convolutional feature y s2 and t2 Similarly, use the average feature y1 multiplied by e ys2 And add the convolution feature yt2 , and the obtained result is used as the intermediate feature y1'. Finally, the intermediate features y1' and y2' are concatenated in the channel dimension to obtain the final mapping result y'. The obtained mapping result y' is used as the result A of the abnormality detection on the image modality image .
[0076] At the same time, in order to enhance the utilization of point cloud data, another branch is designed to process point cloud anomaly detection. The point cloud data is transformed through various perspectives in the same way as step 2 and feature C is extracted. Yf , the extracted feature C Yf And the core subset of point cloud features stored in the normal sample feature library The difference in the results is used as the anomaly detection result A on the point cloud modality. point (Right now Figure 1 Finally, the anomaly detection results of the two modalities are added together through an adaptive fusion method to obtain the final anomaly detection result. The formula is:
[0077] A final =αA image +(1-α)A point
[0078] In the present invention, considering that the anomaly detection effect in the image modality is better than that in the point cloud modality, α is set to 0.7.
[0079] Step 5: Training data preparation and training loss function
[0080] The image data I and the depth point cloud data P of the product are captured by an RGB-D camera. The present invention adopts an unsupervised method for training, so it is necessary to collect normal data of the product when training the model. For the mapping result of the standard flow model, the ideal mapping result is a normal distribution, and the loss of the standard flow model can be defined as:
[0081]
[0082] Among them, z is the final output of the standard flow model, y is the input feature of the quasi-flow model, that is, the fused multimodal feature C Z ; P Z (z) is the standard normal distribution (where μ is 0 and σ is 1); the constant term after taking the logarithm can be directly omitted when calculating the Loss; det is the matrix symbol.
[0083] P Z(z) are all standard normal distributions N~(0,1). Since the goal of the model is to map all features to such a distribution, the standard normal distribution is used for optimization.
[0084] For the point cloud branch, the model does not need to be trained. It only needs to rotate the point cloud data of all training data to extract features and store them in memory for later use. In order to reduce memory consumption, the point cloud features can be sampled by core subsets to ensure that the sampling results can retain as much diversity as possible. The core subset sampling method can be described by mathematical expression:
[0085]
[0086] Among them, Mc represents the core subset of sampling, and M represents all features stored in memory.
Claims
1. A 3D anomaly detection method based on a dual-branch hybrid model of image-point cloud data, It is characterized in that The following steps are involved: Step 1: Preprocess the image data and point cloud data of the object to be detected to reduce background interference; Step 2: Multimodal data feature extraction For image data, the convolutional neural network WideResNet50 pre-trained on the ImageNet dataset is used as an image feature extractor to extract image features C X ; For point cloud data, first adopt it, and then use the neural network PointMAE pre-trained on the ShapaNet point cloud dataset as a point cloud feature extractor to extract the point cloud features C of normal point cloud data. Y ; Step 3: Multimodal feature fusion Construct a multi-semantic feature fusion module that can fuse different semantic features with a hybrid cross-modal multi-head attention, and perform the multi-semantic feature fusion on the image feature C extracted in step 2. X And point cloud feature C Y Fusion is performed to obtain the fused multimodal feature C Z ; Step 4: Output the results The fused multimodal features C Z Input the standard flow model to obtain the abnormal score value of each pixel, which is used as the result of abnormal detection on the image modality A image .
2. The three-dimensional anomaly detection method based on the image-point cloud data dual-branch hybrid model according to claim 1, It is characterized in that The step 1 specifically includes: 1) Preprocess the image data: The image of the object to be detected is enlarged and the center is cropped to the original image size; 2) Preprocessing of point cloud data: According to the point cloud data of the object to be detected, the Z coordinate values of the four endpoints are obtained. top_right , Z top_left , Z bottom_right and Z bottom_left ; According to the positions of the Z coordinates at the four endpoints, the initial background depth value of the entire image is affinely mapped, and the foreground and background are selected based on prior knowledge; by calculating the connected domain of the image projected by the Z coordinate, the connected domain that is less than the set value is directly removed, so that all the background point cloud values are set to 0.
3. The three-dimensional anomaly detection method based on the image-point cloud data dual-branch hybrid model according to claim 1, It is characterized in that The step 2 of extracting image features specifically includes: The convolutional neural network WideResNet50 as an image feature extractor includes multiple layers composed of residual networks. The features extracted in the 7th layer are used to avoid excessive domain bias; the features extracted in the 19th layer contain various texture information learned and some semantic information, and finally three different feature maps are obtained; when fusing, the three feature maps are firstly obtained by bilinear interpolation to obtain feature maps of the same size feature map1, feature map2 and feature map3, and then featuremap1, feature map2 and feature map3 are connected at the channel level to obtain the final image feature C X .
4. The three-dimensional anomaly detection method based on the image-point cloud data dual-branch hybrid model according to claim 3, It is characterized in that The step 3 specifically includes: First, the image feature C X Through linear layer mapping, we get the query matrix Q1, key matrix K1 and value matrix V1 of the image modality; Y The query matrix Q2, key value matrix K2 and value item matrix V2 of the point cloud modality are obtained through linear layer mapping; Then the point cloud feature C Y and image feature C X Attention is done between them, and the attention value attention1 is obtained, and then the image feature C X And point cloud feature C Y Attention is performed between them to obtain the attention value attention2, and the last two attention values attention1 and attention2 are added to obtain the fused multimodal feature C Z ; The formula is as follows: Q1,K1,V1=Linear(C X ) Q2,K2,V2=Linear(C Y ) C Z =concat(AFR(attention1),AFR(attention2)) Among them, Linear represents linear layer mapping, softmax is the normalized exponential function; T is the transposition symbol, d k1 and d k2 are the dimensions of the key-value matrix K1 and the key-value matrix K2 respectively; AFR is the adaptive channel selection module, and concat means adding the output results.
5. The three-dimensional anomaly detection method based on the image-point cloud data dual-branch hybrid model according to claim 1, It is characterized in that The specific steps of step 4 are as follows: The multimodal feature C Z The input feature y is input into the standard flow model. The input feature y is shuffled in the channel dimension by each standard flow module, and then evenly divided according to the number of channels to obtain two evenly divided features y1 and y2; The convolution feature obtained by the average feature y1 through two convolution layers s1 and t1 is y s1 and t1 ; Then multiply the average feature y2 by e ys1 And add the convolution feature y t1 , and obtain the intermediate feature y2'; at the same time, the intermediate feature y2' is input into two convolutional layers s2 and t2 to obtain the convolutional feature y s2 and t2 ; At the same time, multiply the average feature y1 by e ys2 And add the convolution feature y t2 , and obtain the intermediate feature y1'. Finally, the intermediate features y1' and y2' are concatenated in the channel dimension to obtain the final mapping result y'; the obtained mapping result y' is used as the result A of the abnormality detection on the image modality image .
6. The three-dimensional anomaly detection method based on the image-point cloud data dual-branch hybrid model according to claim 5, It is characterized in that The loss function of the standard flow model is defined as: Among them, z is the final output of the standard flow model, y is the input feature of the quasi-flow model, that is, the fused multimodal feature C Z ; P Y (y) is P Z (z) is the standard normal distribution; det is the matrix symbol.
7. The three-dimensional anomaly detection method based on the image-point cloud data dual-branch hybrid model according to claim 1, It is characterized in that The step 2 of extracting point cloud features also includes: The original input point cloud data is rotated at different angles around the X, Y and Z axes to obtain multiple sets of point cloud data, and then the multiple sets of point cloud data are input into the PointMAE neural network to obtain the rotation point cloud feature C Yr ; Finally, all the point cloud features C Y and C Yr The final point cloud feature C is obtained by averaging Yf , and the final point cloud feature C Yf Perform core subset sampling to obtain the core subset of point cloud features And store it in the feature library of normal samples; When the result of step 4 is output, the final point cloud feature C obtained in step 2 is Yf and a core subset of point cloud features By comparison, the abnormal detection result A of the point cloud modality at each pixel position is obtained. point ; Finally, the anomaly detection results on the two modes are added in a weighted manner and upsampled to the same size as the original image to obtain the final anomaly detection result A final ; The expression is as follows: A final =αA image +(1-a)A point Among them, α is the weight of the result of abnormality detection on the image modality.
8. The three-dimensional anomaly detection method based on the image-point cloud data dual-branch hybrid model according to claim 7, It is characterized in that The sampling method of the core subset is mathematically expressed as: in, is the core subset of point cloud features, Mc represents the sampled core subset, M represents all point cloud features stored in the memory, m is the element of all point cloud features, and n is the element of the core subset.
Citation Information
Patent Citations
Three-dimensional industrial anomaly detection method and device, storage medium and electronic equipment
CN116958027A
Industrial image anomaly detection method and system based on knowledge distillation
CN117036266A
Traffic target detection method and system based on cross-modal cross attention mechanism
CN117173399A
Multi-mode anomaly detection method and system for Mini
CN117710748A
Method of extracting three-dimensional point group feature based on multi-modal attention drive
JP2023133087A
Cited By
Dynamic feature fusion and anomaly detection method for multi-modal data in industrial environment
CN119323562A
Multi-modal data fusion method and system
CN119693759A
Residential building three-dimensional diagram enhancement processing method
CN120259102A
A method for enhancing a three-dimensional map of a residential building
CN120259102B
