Material identification method of polarization attention guiding mechanism

By constructing the polarization pBRDF model and the attention mechanism module, the polarization features of the polarization image are extracted, which solves the problem of insufficient utilization of polarization information in the existing technology, and achieves high-accuracy and robust material recognition effects, which is suitable for complex applications. scenarios and industrial applications.

CN118865338APending Publication Date: 2024-10-29ZHEJIANG SCI-TECH UNIV
View PDF 0 Cites 9 Cited by

Patent Information

Application Number
CN202410867304.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The existing technology fails to make full use of polarization information in target detection, resulting in the target detection network being unable to effectively learn the material information reflecting the refractive index. Especially in the case of interference from complex scenes and shape information, the recognition accuracy and robustness are insufficient.

Method used

By constructing the polarization pBRDF model and attention mechanism module, the polarization features of the polarization image are extracted, and combined with the channel and spatial attention mechanism, the model is guided to focus on the part where the refractive index of the material changes, thereby improving the accuracy and robustness of material recognition.

Benefits of technology

It effectively pays attention to changes in material refractive index in complex scenes, improves the accuracy and running speed of material identification, enhances the robustness and generalization ability of the model, and is suitable for a wider range of industrial scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118865338A_ABST
    Figure CN118865338A_ABST
Patent Text Reader

Abstract

The invention provides a material identification method of a polarization attention guidance mechanism. The method comprises the following steps: (1) constructing a material identification data set based on a polarization image; (2) constructing a polarization attention guidance mechanism material identification network structure; (3) inputting data to carry out network training; and (4) a material identification active polarization imaging system. Compared with a traditional target detection model suitable for a light intensity image, a brand-new network structure is designed based on an optical model to extract physical characteristics of a polarization image, the accuracy of the recognition effect is enhanced by using the difference of polarization characteristics of different targets and adopting a polarization attention guide method, and the recognition accuracy is improved. The method is not interfered by the appearance shape of a target object, and has a multi-target material identification capability in a complex environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of polarization imaging, and in particular to a material recognition method with a polarization attention guiding mechanism. Background Art

[0002] The difference between different types of targets is mainly manifested by different shapes and materials. Under the same lighting conditions, the characteristics of reflected polarized light from different material surfaces are very different. The scattered polarization characteristics of visible light can well reflect the material and surface roughness information of space targets, and are less affected by atmospheric scattered light and background radiation, which can increase the amount of information about the target object and, to some extent, greatly improve the recognition accuracy of target detection.

[0003] With the development of science and technology, polarization imaging technology has been widely used in the detection of specific targets in the environment. However, in these studies, polarization information is mainly used to detect the material structure of the target or to improve the contrast between the target and the background information. Related research on the combination with target detection technology is more about replacing the light intensity image with the polarization image as the input into the target detection model. However, without considering the polarization principle and constructing a data set suitable for the material recognition model of polarization images, directly inputting the polarization image into the detection network will result in the target detection network being unable to fully utilize the polarization information; without the guidance of the physical prior attention mechanism in the process of network input, the network cannot learn the material information reflecting the refractive index well. Summary of the invention

[0004] In order to overcome the defects in the above-mentioned prior art, the present invention provides a material recognition method with a polarization attention guidance mechanism, establishes a polarization pBRDF model, constructs a network module to extract the polarization features of the polarization image, and then guides it through the attention mechanism module, so that the model pays more attention to the part of the polarization image that reflects the change of the refractive index of the material, thereby improving the accuracy and robustness of the model.

[0005] Technical Solution

[0006] A material recognition method using a polarized attention guidance mechanism comprises the following steps:

[0007] Step 1: Construct a material recognition dataset for polarized images: First, preprocess and group the dataset, then label the dataset, mark the location and category of the image objects, and construct raw data suitable for material recognition;

[0008] Step 2: Combining the polarization bidirectional distribution function and the physical model of the Fresnel formula to deduce the distribution law of the polarization information of the reflected light on the target surface, and obtain the mapping relationship between the distribution of the physical characteristics of the target surface and the polarization state information of the reflected light;

[0009] S0=I 0° +I 90°

[0010] S1=I 0° -I 90°

[0011] S2=2I 45° -(I 0° +I 90° )

[0012]

[0013] From the microfacet theory, we know that the complex surface of the target object is composed of a series of tiny smooth surfaces, and all of them satisfy the Fresnel reflection law. Each direction angle θ entering the camera can be approximated as a known constant value, so the refractive index of the medium is only related to the polarization degree of the reflected light; physical modeling based on this principle and analysis by inputting the polarization degree image will help us identify the material of complex objects; polarization angle images can better describe different surface orientations. Physical modeling based on this principle and analysis by inputting polarization images will help us identify the material of complex objects. According to the physical properties of different materials such as refractive index and surface features, they are extracted into the network through polarization imaging technology, and the polarization material recognition network is constructed in combination with yolov8;

[0014] Step 3: Take the polarization component image (0°, 45°, 90° linear polarization) as the input of the model, and perform matrix operations on the polarization component image according to the Stokes vector through the polarization state calculation layer (PSCL), calculate the Stokes parameters, and thus obtain the AOP and DOLP images; then enter the backbone network and extract the polarization attention information that is beneficial to material recognition through the attention-based material perception module (mam); finally enter the next layer of the detection head module to predict the output;

[0015] Step 4: Use the material recognition data set described in step 1 to input the network built for training, obtain the weight file of the material recognition model, use the training weight file to perform material recognition on objects in complex scenes, and output the model prediction results including the target object location, confidence, and category information.

[0016] Furthermore, the attention-based material perception module consists of two modules, one is a channel attention mechanism module, and the other is a spatial attention mechanism module.

[0017] This module calculates attention weights to determine which parts are important. The channel attention module helps learn the parts of the channel that are conducive to polarization extraction, while the spatial attention helps extract important material information at different locations in space. Spatially, the input polarization feature map is max-pooled and average-pooled along the channel dimension to generate features of different context scales. The feature map is processed by the convolution layer to generate spatial attention weights. The generated attention weights are outputted between 0 and 1 through sigmoid, and finally the obtained weights are applied to the original feature map, weighting each position in the space to highlight the key areas, and finally input to the detection module of the first layer. This module improves the feature expression ability of the convolutional neural network by adaptively learning channel and spatial attention weights. Afterwards, the fusion layer fuses the attention weights and feature map to generate the output image. In this process, the attention weights are used to weight the feature map to highlight the important polarization components in the material recognition task, thereby improving the performance of the material recognition task.

[0018] For the input polarization feature map X, horizontal and vertical encoding is first performed.

[0019]

[0020] Then concatenate the feature maps to obtain the transformed feature maps

[0021] f=δ(F1([z h ,z w ]))

[0022] Then convolution is performed along the height and width direction of the original feature map, and activated by the sigmoid function to obtain the feature map attention weight g h and g w ,

[0023] g h =σ(F h (f h ))

[0024] g w =σ(F h (f w ))

[0025] Finally, we get the feature map with attention weight output

[0026] Beneficial effects of the present invention:

[0027] In complex scenes, especially when shape information is disturbed, the material recognition algorithm based on polarization attention guidance can effectively focus on the part of the target material that reflects the change in the material's refractive index. The mainstream target detection framework only focuses on the pixel information of the RGB layer and does not utilize polarization information. Compared with this, this method has high recognition accuracy and fast running speed. Under the guidance of physical prior information, the model has better robustness and generalization, and can be applied to more general industrial scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is an overall flow chart for the implementation of the present invention;

[0029] Figure 2 This is a diagram of the experimental device of the present invention;

[0030] Figure 3 Schematic diagram of the material recognition network based on the attention guidance mechanism established;

[0031] Figure 4 Network diagram of the material perception attention module MAM

[0032] Figure 5 It is the detection effect diagram of the present invention;

[0033] Figure 6 This is a comparison result table of the detection effect of the present invention. DETAILED DESCRIPTION

[0034] In order to better illustrate the content of the present invention, the following is a detailed description with reference to the accompanying drawings and implementation examples:

[0035] Example:

[0036] The present invention discloses a material recognition method based on a polarization attention guidance mechanism, such as Figure 1 and Figure 2 As shown, the following steps are included:

[0037] Step 1: Construct a target detection dataset of polarized images, preprocess the target detection dataset, group the objects according to their shape categories, and then label the images in the target detection dataset, mark the location and category of the target objects in the images, and construct raw data suitable for training the target detection model.

[0038] Step 2: Combine the polarized bidirectional reflectance distribution function (pBRDF) model with the Fresnel reflection model to obtain the distribution law of the polarization information of the reflected light on the target surface, thereby obtaining the relationship expression between the physical properties of the target surface and the polarization information of the reflected light on the target surface.

[0039] There are differences in the physical properties of the surfaces of targets of different materials. Polarization imaging technology can store such differences in polarization images. Based on the convolutional neural network structure, a network layer for extracting polarization material information is constructed according to the expression.

[0040] Combined with the mainstream target detection network framework - YOLOv8, a material recognition network based on the polarization attention guidance mechanism is constructed. The target detection network model consists of a polarization state calculation layer (PSCl), a material perception module (mam), and a target detection network (YOLOv8).

[0041] Step 3: Use the polarization component image (0°, 45°, 90° linear polarization) as the input of the model, perform matrix operation on the polarization component image according to the Stokes vector in the polarization state calculation layer, calculate the Stokes parameters, and obtain the AOP and DOLP images. Then input the AOP and DOLP into the yolov8 network. After entering the backbone network, the attention-based material perception module (mam) extracts the polarization attention information that is beneficial to material identification, and outputs a polarization-significant feature map. Finally, the detection head module performs prediction. The detection head module has three detection heads, large, medium and small, which are used to identify objects of different sizes.

[0042] Step 4: Use the target detection dataset in step 1 to train the constructed network to obtain the weight file of the polarization-attention material recognition model. Use the training weight file to identify the materials of objects in complex scenes, and use the Mean Average Precision (mAP) and Frames Per Second (FPS) evaluation indicators to measure the model effect and model inference speed.

[0043] Furthermore, the method for constructing the material identification data set in step one is as follows: the laser emitted by the light source 1 passes through the polarizer 2, the 1 / 4 wave plate 3 and the beam expander 4 in sequence to irradiate the target object plane 5, and the polarization component images of the target object 5 at different angles and positions are captured using the polarization camera 6, and the material identification data set of the original polarization image is obtained, and the multi-dimensional polarization information such as the polarization angle and polarization degree required in the image is obtained, the noisy image is filtered out, and the data is subjected to data enhancement operations such as flipping, mirroring and cropping, and the captured data set is saved in the PC computer 7.

[0044] Figure 3The schematic diagram of the material recognition network based on the attention guidance mechanism is established. The input 0°, 45°, and 90° linear polarization images are calculated by the polarization state calculation layer to obtain the polarization angle polarization degree images, and the backbone network is used for feature extraction. C2f is mainly a feature extraction and fusion module. The combination of the convolution layer, Botneck block conv and Concat block realizes efficient feature extraction, enhancement and fusion of the input image, providing rich feature representation for subsequent detection and classification tasks. mam is Figure 4 The designed material perception module mainly processes the input feature map, extracts polarization information that is conducive to material identification, and outputs a weighted polarization salient feature map. The Detect head is the last part of the network, responsible for predicting the bounding box, class confidence, and coordinates of the bounding box based on the extracted features. The three detects correspond to the large, medium, and small detection heads respectively.

[0045] Figure 4 It is the material perception module MAM network. The input feature map width is averaged and pooled to capture the height information, and the height is averaged and pooled to capture the width information. The input map and the corresponding label are learned, and the weights with material characteristics are output. The original feature map is multiplied by the obtained weight to obtain the polarization significant feature map. Among them, conv2d is a two-dimensional convolution module used for convolution to extract local features, and concat is a concatenation layer that concatenates spatial channel information. The BatchNorm layer changes the distribution of the data, making the activation function sigmoid input more sensitive to input changes and improving the generalization ability of the network. Finally, there is the weightfusion weight fusion module, which fuses the two weights.

[0046] Figure 5 This is an example of predicting a complex scene. The figure shows six objects of the same shape but different materials. The model uses the previously trained weights to identify the material, and outputs material type information, confidence information, and location information. It can be seen that the algorithm can effectively distinguish different materials using the physical model of polarization attention and is not affected by shape information, providing a new solution for the field of material identification.

[0047] Figure 6It is a quantitative evaluation chart of the detection results. Means Average Precision (mAP) and Frames PerSecond (FPS) evaluation indicators are used to measure the model effect and model inference speed. It can be intuitively seen from the experimental results that compared with the traditional target detection models yolov5, v8 and the two-stage detection algorithm fastrcnn, it has higher detection accuracy and faster detection speed. The present invention can be more helpful for accurate identification of materials and has stronger competitiveness in the case of the same shape but different materials. Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention, rather than to limit it; although the technical solution of the present invention is described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solution recorded in the aforementioned embodiments, or replace some of the technical features therein with equivalents; and these modifications or replacements do not make the essence of the corresponding technical solution deviate from the spirit and scope of the technical solution of each embodiment of the present invention.

Claims

1. A material recognition method with a polarized attention guidance mechanism, characterized in that: The method comprises the following steps: Step 1: Construct a material recognition dataset for polarized images: First, preprocess and group the dataset, then label the dataset, mark the location and category of the image objects, and construct raw data suitable for material recognition; Step 2: Build a network structure for material recognition using the polarization attention guidance mechanism: Combine the polarization bidirectional distribution function and the physical model of the Fresnel formula to deduce the distribution law of the reflected light polarization information on the target surface, and obtain the mapping relationship between the physical property distribution of the target surface and the polarization state information of the reflected light. According to the refractive index and surface characteristics of different materials, extract them into the network through polarization imaging technology, and build a polarization material recognition network in combination with yolov8; Step 3: Input data for network training: Take the polarization component images of 0°, 45°, and 90° linear polarization as the input of the model, perform matrix operations on the polarization component images according to the Stokes vector in the polarization state calculation layer (PSCL), calculate the Stokes parameters, and thus obtain the AOP and DOLP images; after entering the backbone network, the attention-based material perception module (mam) is used to extract polarization attention information that is beneficial to material recognition; finally, the next layer of the detection head module is entered to predict the output; Step 4: Multi-target material recognition in complex scenes: Use the network built by inputting the material recognition data set described in step 1 for training to obtain the weight file of the material recognition model. Use the training weight file to recognize the materials of objects in complex scenes, and use the Mean Average Precision (mAP) and Frames Per Second (FPS) evaluation indicators to measure the model effect and inference speed.

2. The method according to claim 1, characterized in that: Construction of the material recognition data set described in step 1: objects of different materials are placed in the environment as targets, images are taken with a focal plane camera (Dofp) under active light conditions, images in four polarization directions are obtained, polarization information is extracted, multi-dimensional polarization information such as polarization angle and degree of polarization in the image is obtained, and data interfered by noise is removed at the same time. Based on data screening, data enhancement methods such as data cropping, flipping, moving, and mirroring are performed to expand the data set and improve the generalization ability of the model.

3. The method according to claim 1, characterized in that: The material perception module in step three is composed of two modules, one is a channel attention mechanism module, and the other is a spatial attention mechanism module; the channel attention module helps to learn the part of the channel that is conducive to polarization extraction, while the spatial attention helps to extract important material information at different positions in space.

4. The method according to claim 2, characterized in that: The weight file of the material recognition model performs maximum pooling and average pooling on the input polarization feature map along the channel dimension in space to generate features of different context scales, processes the feature map through a convolutional layer, and finally generates attention weights.

5. The method according to claim 4, characterized in that: The attention weight is outputted and limited to between 0 and 1 through sigmoid, and finally the obtained weight is applied to the original feature map, weighting each position in the space to highlight the key areas, and finally input into the detection module of one layer.

Citation Information

Cited By

  • Polarization imaging earth surface unexploded ordnance identification device and method based on deep learning

    CN119445412A

  • Industrial robot intelligent control system and method based on machine vision

    CN119952724A

  • Machine vision-based industrial robot intelligent control system and method

    CN119952724B

  • Design method of optical system and surface feature analysis system

    CN120337790A

  • Optical system design method and surface feature analysis system

    CN120337790B