Improved Transform-based sheltered pedestrian re-identification method

Through the improved Transformer architecture, combined with multi-layer perceptron and depth-separable convolution, position and side information encoding is enhanced, and a dual-path attention mechanism is used to solve the problem of invisible features and position information loss in occluded pedestrian re-identification, significantly Improved recognition accuracy and model robustness.

CN118570842APending Publication Date: 2024-08-30NANJING COLLEGE OF INFORMATION TECH
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410892523.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing occluded pedestrian re-identification methods are difficult to accurately handle the invisible features and lack of contextual information of occluded pedestrians in complex environments, resulting in low recognition accuracy. Moreover, the Transformer-based method loses position information after training, making it difficult to fully understand the position between image blocks. relation.

Method used

Using the improved Transformer architecture, the image is divided into image blocks of the same size through the data slicing module, and multi-layer perceptrons, depth-separable convolutions and residual networks are introduced for data mapping, combined with improved position coding and side information coding modules. Enhance the ability to capture position and side information, use a dual-channel attention mechanism to focus on channels and spatial positions, and improve the accuracy of feature extraction.

Benefits of technology

It significantly improves the recognition accuracy of occluded pedestrians, can flexibly express semantic information at different locations, enhances the adaptability and robustness of the model to complex scenes, and improves the performance of pedestrian re-identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570842A
    Figure CN118570842A
Patent Text Reader

Abstract

The invention discloses a sheltered pedestrian re-identification method based on an improved Transform, and the method comprises the steps: carrying out the data slicing of an input image with a target pedestrian, adding class token information, and obtaining a first image representation; processing the first image representation through a first data mapping module to obtain a second image representation; processing the second image representation through a position coding module to obtain a third image representation; processing the third image representation through an improved side information coding module to obtain a fourth image representation; processing the fourth image representation through an improved Transform module to obtain a fifth image representation; performing depth separable convolution learning on the fifth image representation to obtain a sixth image representation; processing the sixth image representation through a learnable channel attention module to obtain a seventh image representation; processing the sixth image representation through a learnable space attention module to obtain an eighth image representation; and the seventh image representation and the eighth image representation are connected in series and processed by a second data mapping module to obtain a final pedestrian re-identification result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an occluded pedestrian re-identification method based on an improved Transformer. Background Art

[0002] With the rapid development of computer vision and deep learning technology, pedestrian re-identification (ReID) technology has achieved remarkable results. The goal of pedestrian re-identification is to identify the same pedestrian traveling between different cameras by analyzing the pedestrian images or videos captured by the camera. It is mainly used in many fields such as video surveillance, intelligent transportation and urban security, and has broad practical application potential. However, although pedestrian re-identification has achieved remarkable results in a controlled environment, in actual application scenarios, due to the complexity and variability of the environment, this task still faces many challenges, among which the occlusion problem is one of the most prominent problems. In actual scenarios, pedestrians may be partially or completely occluded by other pedestrians, vehicles, buildings and other obstacles, resulting in the missing or invisible information of some pedestrians. This occlusion phenomenon seriously affects the performance of the pedestrian re-identification system, making it difficult to accurately distinguish and match occluded pedestrians in complex environments.

[0003] In general, the existing occluded pedestrian re-identification methods can be divided into two categories: convolutional neural network-based methods and Transformer-based methods. The main idea of ​​the convolutional neural network-based method is, first, to pre-process the collected pedestrian image data, including image cropping, size standardization, brightness and contrast adjustment, etc.; second, to select a suitable CNN model as the basic network structure, and extract features from pedestrian images on this model to obtain the feature representation of each pedestrian image; finally, pedestrian feature matching is performed. However, most of these methods process visible features, ignoring the invisible features of occluded pedestrians, and are unable to obtain more effective features. At the same time, due to the lack of a comprehensive understanding of the scene in which the pedestrian is located, these methods are also unable to obtain sufficient contextual information, which limits their applicability in real scenes.

[0004] The Transformer-based method divides pedestrian images into uniformly sized image blocks and uses the powerful feature processing capability of self-attention in the Transformer to extract features, thereby obtaining the regional features of each image block for image matching. However, for image data, the position information between image blocks is very important. Most of the above Transformer-based methods will add position information at the beginning of training, but after training, there will be a loss of position information, which makes it impossible for the network to fully understand the position relationship between image blocks and it is difficult to obtain more effective features.

[0005] For example, Wang et al. proposed “High-order information matters: Learning relation and topology for occluded person re-identification”, which uses convolutional neural networks as the backbone network to learn feature maps, uses key point estimation models to extract semantic local features, and uses joint learning to embed topological information into local features to mitigate the impact of occlusion. Zhou et al. proposed “Occluded person re-identification based on embedded graph matching network for contrastive feature relation”, which introduces an occluded person re-identification method based on embedded graph matching network, using embedded feature alignment layer to directly predict the similarity score of each feature of two images. At the same time, a node relation learning layer is used to establish the contrast feature relationship between individual information and key point information, so as to automatically update the relationship between features. Huang et al. proposed “Reasoning and tuning: Graph attention network for occluded person re-Identification”, which introduces a reasoning and tuning graph attention network (RTGAT). This method not only explores the semantic correlation between partial features and global features, but also uses this correlation to infer the visibility scores of body parts. These visibility scores are then used as the basis for graph attention to guide the graph convolutional network to suppress the noise of the occluded features and propagate the missing semantic information from the complete image to the occluded image. These methods all use convolutional neural networks as the backbone network, and with their deep structure, they can effectively learn and extract features such as edges, textures, and shapes in images. However, when there is occlusion in the image, the convolutional neural network is often affected, resulting in the feature extraction process mainly processing visible features and ignoring invisible features, resulting in inaccurate feature extraction.

[0006] In addition, due to the excellent performance of the self-attention mechanism in processing images of different scales and tasks of complexity, Transformer has also been applied to occluded person re-identification. The "Transformer-based object re-identification" proposed by He et al. first introduced Transformer into the task of person re-identification. It segmented the image into a series of image sequences, established a strong Transformer-based baseline, and further improved the robustness of the baseline by introducing the jigsaw patch module (JPM) and side information embeddings (SIE) modules. The "Short range correlation transformer for occluded person re-identification" proposed by Zhao et al. uses a learnable tensor to enhance the ability of ViT to extract regional features, and introduces feature slicing, integration, and splicing operations to enhance the image's perception of long-range dependencies. Li et al. proposed “Diverse part discovery: Occluded person re-identification with part-aware transformer”, which introduced an end-to-end part-aware transformer (PAT) method and implemented the occluded person re-identification task through the encoder-decoder architecture of transformer. Tan et al. proposed “Dynamic prototype mask for occluded person re-identification”, which used hierarchical semantics and head enrichment modules to select visible pattern space to deal with occlusion problems, and realized automatic alignment in an end-to-end trainable network based on prior knowledge. Wang et al. proposed “Pose-guided feature disentangling for occluded person re-identification based on transformer”, which used pose information to separate semantic components and selectively matched non-occluded parts. At the same time, by processing the image patch features extracted by ViT, the enhancement of visible body parts and the isolation of occluded features were achieved. Transformer-based methods can globally model the input sequence and better capture the long-range dependencies between different regions in the image, which is conducive to the extraction of global features.However, after the image is divided into image blocks, the position information between each image is very important, but the Transformer's modeling of position information mainly relies on the position encoding mechanism, which may be limited by the encoding method and is difficult to accurately model some complex spatial relationships.

[0007] To solve the above problems, the present invention proposes an occluded pedestrian re-identification method based on an improved Transformer. Summary of the invention

[0008] Purpose of the invention: The purpose of the present invention is to provide an occluded pedestrian re-identification method based on an improved Transformer, which is dedicated to solving the following problems and improving the accuracy of pedestrian re-identification: (1) Most methods based on convolutional neural networks process visible features, ignore the invisible features of occluded pedestrians, and cannot obtain more effective features; (2) Most methods based on convolutional neural networks lack a comprehensive understanding of the scene in which the pedestrians are located. These methods cannot obtain sufficient contextual information, thereby limiting their applicability in real scenes; (3) Most methods based on Transformer will add position information at the beginning of training, but after training, there will be a loss of position information, which makes it impossible for the network to fully understand the positional relationship between image blocks and it is difficult to obtain more effective features.

[0009] Technical solution: The present invention discloses an occluded pedestrian re-identification method based on an improved Transformer, comprising the following steps: Step (1) divides the input image with the target pedestrian into T image blocks of the same size through the data slicing module, and adds class token information to obtain a first image representation. Based on this step, the present invention can cut an image with complex information into different image blocks, thereby simplifying complex problems and achieving the purpose of divide and conquer.

[0010] Step (2) processes the obtained first image representation through a first data mapping module to obtain a second image representation. Based on this step, the data mapping module introduces a multi-layer perceptron function, a deep separable convolution and a residual network, so as to achieve the purpose of fully learning the image representation information; In step (3), the obtained second image representation is passed through a position encoding module of a data embedding module, which is an improved position encoding module that can capture the global bias and local bias position information of the image, and the position encoding information is integrated into the second image representation to obtain a third image representation.

[0011] Step (4) passing the obtained third image representation through the improved side information encoding module of the data embedding module, concatenating the camera encoding information and the visual angle information, obtaining the side information through the attention mechanism, and integrating it into the third image representation to obtain the fourth image representation; Step (5) passing the fourth image representation through an improved Transformer module to obtain a fifth image representation; Step (6) obtaining a sixth image representation by subjecting the fifth image representation to deep separable convolution learning; Step (7) passes the sixth image representation through a learnable channel attention module to obtain a seventh image representation; Step (8) passes the sixth image representation through a learnable spatial attention module to obtain an eighth image representation; Step (9) connects the seventh image representation and the eighth image representation in series, and then passes through the second data mapping module to obtain the final pedestrian re-identification result.

[0012] Beneficial effects compared with the prior art:

[0013] The present invention proposes an occluded pedestrian re-identification method based on an improved Transformer. The method proposes innovations in data mapping, data embedding, Transformer architecture, learnable channel attention, and learnable spatial attention. The specific beneficial effects are as follows: Firstly, a position encoding module and an improved side information encoding module are introduced into the data embedding module. By fusing position encoding and side information encoding at different levels, the ability of the present invention to obtain rich position information and side information is enhanced, so that the network can flexibly express the semantic information of different positions and sides. Secondly, the Transformer backbone network is introduced. By introducing ViT, its global context modeling capability is fully utilized to effectively handle the information loss caused by occlusion and better handle complex occlusion situations, thereby significantly improving the recognition accuracy of occluded pedestrians. Finally, by adopting a dual-path attention mechanism, we can better focus on the features of different channels and spatial positions, so that the generated mask is not only more consistent with the actual situation of the occluded pedestrian, but also helps to distinguish the differences between different body parts or different pedestrians, thereby extracting more discriminative features. This module helps to improve the adaptability of the network to occlusion and enhance the performance of the model in complex scenes.

[0014] In summary, the present invention can flexibly express semantic information of different positions in complex scenes, effectively model spatial relationships, and has a good ability to re-identify occluded pedestrians. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1This is a block diagram of an occluded pedestrian re-identification method based on an improved Transformer disclosed in the present invention.

[0016] Figure 2 This is a schematic diagram comparing the visualization results of the method disclosed in the present invention and other pedestrian weighting methods on the Occluded-Duke dataset.

[0017] Figure 3 This is a schematic diagram comparing the visualization results of the method disclosed in the present invention and other pedestrian weighting methods on the Market-1501 dataset.

[0018] Figure 4 This is a schematic diagram of the experimental performance comparison between the method disclosed in the present invention and other pedestrian weighting methods on an occlusion dataset.

[0019] Figure 5 This is a schematic diagram of the experimental performance comparison between the method disclosed in the present invention and other pedestrian weighting methods on a complete dataset. DETAILED DESCRIPTION

[0020] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.

[0021] like Figure 1 As shown, an embodiment of the present invention provides an occluded pedestrian re-identification method based on an improved Transformer, comprising the following steps: Step (1): For the image with the target pedestrian to be processed, the data slicing module is used to divide it into T image blocks of the same size, and the class token information is introduced at the same time, and finally the first image representation is obtained. The specific expression is as follows: , in, is the first image representation, For class token information, They are 1st, 2nd, ..., T Image block information.

[0022] This step simplifies the complex problem by cutting the entire image with complex information into different image blocks, achieving the purpose of divide and conquer, and thus obtaining richer local information.

[0023] Step (2): In this step, a data mapping module is used to map the first image representation to the second image representation, and the corresponding expression is as follows: , in is the second image representation, is the normalized exponential function, is the multi-layer perceptron function, is a depth-wise separable convolution, The first image representation.

[0024] Specifically, the depth-separable convolution module involved in this step can obtain the local information of the image in depth, and the multi-layer perceptron function involved can obtain the global information of the image in depth. In addition, the overall framework of the above formula is a residual connection network, which can perform sufficient learning on the basis of retaining the original image information, thereby achieving the purpose of obtaining image information representation.

[0025] Step (3): Process the second image representation using the position encoding module of the data embedding module, wherein The position encoding module is an improved position encoding module that can capture the global offset and local offset position information of the image. The position encoding module involved in this step is a position encoding mechanism that considers both global offset and local offset based on the absolute position encoding and relative position encoding mechanisms. It can capture the global offset and local offset position information of the image at the same time. Its specific expression is as follows: , in, is the final position matrix that can represent the global bias and local bias position information, is the row number, p is the column number, For the matrix The value of the tth row and pth column of For the matrix The value of the tth row and p+1th column of For the matrix The value of the tth row and pth column of For the matrix The value of the tth row and p+1th column of The total number of columns, It is data Round up, and is the sine function and cosine function. The position matrix can be obtained by using the above formula The value of each position, so that the position matrix can be obtained The value of In getting the position matrix Then, add it to the second image representation , and the third image representation is obtained through deep separable convolution learning , the specific expression is as follows: , Step (4): using an improved side information encoding module to add side information to the third image representation to obtain a fourth image representation, wherein the improved side information encoding module concatenates the learned camera encoding information and visual angle information, and then processes them through an attention mechanism, as specifically described as follows: First, the camera encoding information and visual angle information learned by deep separable convolution are concatenated. The specific expression is as follows: , in is a depth-wise separable convolution, Encode information for the camera, is the visual angle information, for and Serial operation.

[0026] Secondly, the attention machine mechanism is used to concatenate the information The specific expression is as follows: , in The attention machine mechanism is used to concatenate the information After processing the side information, is the learnable query coefficient matrix, is the learnable bond coefficient matrix, is the learnable value coefficient matrix.

[0027] Finally, the obtained side information Adding a third image representation And the fourth image representation is obtained through deep separable convolution learning. The specific expression is as follows: , The traditional side information embedding method generally performs a simple addition operation on the camera coding information and the visual angle information. This method cannot effectively obtain the deep information in the camera coding information and the visual angle information. Compared with the traditional side information embedding method, in this step of the occluded pedestrian re-identification method based on the improved Transformer of the present invention, the camera coding information and the visual angle information are first connected in series, and the information in the camera coding information and the visual angle information is deeply obtained through the attention mechanism and the residual network connection method.

[0028] Step (5): The specific description of the improved Transformer module for obtaining the fifth image representation by subjecting the fourth image representation to the improved Transformer module is as follows: First, the fourth image is represented using depthwise separable convolution After processing, we can obtain the query value Q, key K and value V matrices required in Transformer. The specific expressions are as follows: , , , Among them, Q is the query value, K is the key, and V is the value. It is a depth-wise separable convolution.

[0029] Secondly, Q, K, V, The fifth image representation is obtained through the improved Transformer module as shown below. The specific expression is as follows: , in, For the fifth image representation, Hyperbolic tangent function, is the normalized exponential function, is the s activation function, is a learnable Laplace function with respect to Q, is a learnable Laplace function with respect to K, is a global learnable parameter, is a local learnable parameter, is the transpose operation.

[0030] The query value Q, key K and value V matrices corresponding to the traditional Transformer module are obtained through simple linear mapping or convolution operations, and the information perception is low. To address this problem, the query value Q, key K and value V matrices involved in the present invention are obtained through deep separable convolution, and are processed by a learnable Laplace function before participating in the operation of the self-attention mechanism. At the same time, in order to maintain the original features of the image, a gating mechanism is introduced in this step. Based on the above beneficial measures, the perception ability of the present invention to image information is enhanced.

[0031] Step (6): The fifth image representation is subjected to depthwise separable convolution learning to obtain a sixth image representation, which is specifically described as follows: , in, is a depth-wise separable convolution, For the fifth image representation, This is the sixth image representation.

[0032] Step (7): The sixth image representation is passed through a learnable channel attention module to obtain a seventh image representation, which is specifically described as follows: , in, is the normalized exponential function, is the multi-layer perceptron function, is the adaptive maximum pooling function, is the adaptive average pooling function, is the sixth image representation, For the seventh image representation, is the transpose operation.

[0033] Traditional learnable channel attention modules generally use simple convolution operations, and their attention level is insufficient. To address this problem, the present invention introduces a self-attention mechanism in this step to enhance the channel attention capability of the method.

[0034] Step (8): The sixth image representation is passed through a learnable spatial attention module to obtain an eighth image representation, which is specifically described as follows: , in is the normalized exponential function, is the multi-layer perceptron function, is the convolution function, is the maximum pooling function, is the average pooling function, is the sixth image representation, For the eighth image representation, is the transpose operation.

[0035] Traditional learnable spatial attention modules generally use simple convolution operations, and their attention level is insufficient. To address this problem, the present invention introduces a self-attention mechanism in this step to enhance the spatial attention capability of the method.

[0036] Step (9): The seventh image representation and the eighth image representation are connected in series, and then passed through the second data mapping module to obtain the final pedestrian re-identification result, which is specifically described as follows: , in, For the seventh image representation, For the eighth image representation, for and The series operation, is the final pedestrian re-identification result, is the normalized exponential function, is the multi-layer perceptron function, It is a depth-wise separable convolution.

[0037] This step enhances the learning ability of the occluded pedestrian re-identification method based on an improved Transformer disclosed in this patent by introducing a second data mapping module including a multi-layer perceptron function and a deep separable convolution, thereby further improving its occluded pedestrian re-identification capability.

[0038] like Figure 2 , which is a schematic diagram showing the comparison of the visualization results of an improved Transformer-based pedestrian re-identification method disclosed in the present invention and other pedestrian re-identification methods on the Occluded-Duke dataset. Figure 2 It can be seen that with the help of posture information, CNN-based pedestrian re-identification retrieved a series of pictures with similar postures to the query image pedestrians, but ignored other relevant features of pedestrians, resulting in unsatisfactory retrieval results. Transformer-based pedestrian re-identification detected 5 correct results, demonstrating the excellent feature processing capability of the Transformer-based method in the direction of occluded pedestrian re-identification. The method disclosed in the present invention detected 8 correct results, and the recognition accuracy was effectively improved, indicating the effectiveness and superiority of the method disclosed in the present invention in dealing with occlusion problems.

[0039] like Figure 3 , which is a schematic diagram of the visualization results of the Market-1501 dataset for comparing an improved Transformer-based pedestrian re-identification method disclosed in the present invention with other pedestrian re-identification methods. Figure 3 It can be seen that the recognition results of the CNN-based person re-identification detected 4 correct results. The Transformer-based person re-identification results detected 8 correct results. The recognition results of the method disclosed in the present invention are all correct, achieving the highest detection accuracy. Compared with the Transformer-based person re-identification, the method disclosed in the present invention has higher robustness and is not easy to retrieve outliers.

[0040] like Figure 4As shown, it is a schematic diagram of the experimental performance comparison of an occluded person re-identification method based on an improved Transformer disclosed in the present invention and other pedestrian re-identification methods on an occluded dataset. In order to prove the effectiveness of the method in this paper, the method disclosed in this paper and some advanced pedestrian re-identification methods are quantitatively compared on two public occluded datasets Occluded-Duke and Occluded-ReID. The methods used for comparison include CNN-based methods, identity-guided pedestrian semantic parsing method (ISP), posture-guided visual part matching method (PVPM), high-order information pedestrian re-identification method (HoReID), graph neural network pedestrian re-identification method (RTGAT) and Transformer-based methods, feature erasing and diffusion network pedestrian re-identification method (FED), Transformer-based object re-identification method (TransReID), diversified part mining (PAT), dynamic prototype mask pedestrian re-identification method (DPM), Transformer-based posture-guided feature disentanglement pedestrian re-identification method (PFD). From Figure 4 It can be seen that the CNN-based method helps to learn abstract features from images through multi-layer convolution and pooling operations. However, when faced with large-scale occlusion, due to the local receptive field of the convolution operation, occlusion may cause the loss of some feature information, affecting the model performance. The Transformer-based method has achieved excellent performance in the field of occluded pedestrian re-identification. For example, the Rank-1 and mAP of PFD reached 66.3% and 59.1% respectively. Compared with PFD, the Rank-1 and mAP of an occluded pedestrian re-identification method based on an improved Transformer disclosed in the present invention are improved by 5.6% and 3.3%, reaching 71.9% and 62.4%, respectively, showing excellent performance in the occluded pedestrian re-identification task. On the Occluded-Duke dataset, the Rank-1 and mAP of an occluded pedestrian re-identification method based on an improved Transformer disclosed in the present invention are higher than those of FED.

[0041] like Figure 5As shown in the figure, it is a schematic diagram of the experimental performance comparison between an occluded pedestrian re-identification method based on an improved Transformer disclosed in the present invention and other pedestrian re-identification methods on the complete pedestrian re-identification datasets Market-1501 and DukeMTMC-ReID. The comparison algorithms include a pedestrian semantic parsing method (ISP) based on identity guidance, a pedestrian re-identification method (PCB) based on fine module refinement and strong convolution, a high-order information pedestrian re-identification method (HoReID), a pedestrian re-identification method based on graph neural network (RTGAT), a pedestrian re-identification method based on posture-guided feature alignment method (PGFA), a pedestrian re-identification method based on feature erasure and diffusion network (FED), a pedestrian re-identification method based on neighbor Transformer (NFormer), a pedestrian re-identification method based on Transformer object re-identification (TransReID), and a pedestrian re-identification method based on Transformer posture-guided feature disentanglement (PFD). From Figure 5 It can be seen that the occluded pedestrian re-identification method based on the improved Transformer disclosed in the present invention has a Rank-1 of 95.9% and a mAP of 89.8% in Market-1501, demonstrating the powerful feature processing capability of the Transformer. On the DukeMTMC-ReID dataset, compared with advanced methods, the occluded pedestrian re-identification method based on the improved Transformer disclosed in the present invention still shows excellent performance, with a Rank-1 of 90.9% and a mAP of 83.1%. In the face of complete pedestrian images, the occluded pedestrian re-identification method based on the improved Transformer disclosed in the present invention can better eliminate image noise during model training and improve the robustness of the model. At the same time, by learning contextual information, the relationship between pedestrians and the surrounding environment can be established to improve the understanding of the scene. Even though the occluded pedestrian re-identification method based on the improved Transformer disclosed in the present invention is specially designed for the occluded pedestrian re-identification task, it still shows excellent performance on complete pedestrian images, reflecting the universality of the proposed method.

Claims

1. An occluded person re-identification method based on an improved Transformer, characterized in that: The following steps are involved: Step (1) the input image with the target pedestrian is processed by the data slicing module and divided into T image blocks of the same size, and class token information is added to obtain a first image representation; Step (2) processes the obtained first image representation through a first data mapping module to obtain a second image representation; Step (3) passing the obtained second image representation through an improved position encoding module in the data embedding module that can capture the image global bias and local bias position information, and adding the position encoding information to the second image representation to obtain a third image representation; Step (4) The third image representation is passed through an improved side information encoding module in the data embedding module to obtain a fourth image representation, wherein the improved side information encoding module uses an intention mechanism to process the serial camera encoding information and visual angle information to obtain effective side information, and adds the effective side information to the third image representation to obtain the fourth image representation; Step (5) passing the fourth image representation through an improved Transformer module to obtain a fifth image representation; Step (6) obtaining a sixth image representation by subjecting the fifth image representation to deep separable convolution learning; Step (7) passes the sixth image representation through a learnable channel attention module to obtain a seventh image representation; Step (8) passes the sixth image representation through a learnable spatial attention module to obtain an eighth image representation; Step (9) connects the seventh image representation and the eighth image representation in series, and then passes them through a second data mapping module to obtain a final pedestrian re-identification result.

2. According to the improved Transformer-based occluded pedestrian re-identification method of claim 1, it is characterized in that: In the step (1), the image with the target pedestrian is divided into T image blocks of the same size by the data slicing module, and the first image representation of the class token information is introduced as follows: , in, is the first image representation, For class token information, They are 1st, 2nd, ..., T Image block information.

3. According to the improved Transformer-based occluded pedestrian re-identification method of claim 1, it is characterized in that: In the step (2), the expression corresponding to the data mapping module for obtaining the second image representation by processing the first image representation through the first data mapping module is as follows: , in is the second image representation, is the normalized exponential function, is the multi-layer perceptron function, is a depth-wise separable convolution, The first image representation.

4. The method for re-identifying pedestrians under occlusion based on an improved Transformer according to claim 1, characterized in that: The second image representation obtained in step (3) is subjected to the improved position coding module of the data embedding module to obtain the corresponding position coding information, and the position coding information is integrated into the second image representation and then subjected to deep separable convolution learning to obtain the third image representation. The position coding module is an improved position coding module that can capture the global bias and local bias position information of the image, and its specific expression is as follows: , in, is the final position matrix that can represent the global bias and local bias position information, is the row number of the matrix, p is the column number of the matrix, For the matrix The value of the tth row and pth column of For the matrix The value of the tth row and p+1th column of For the matrix The value of the tth row and pth column of For the matrix The value of the tth row and p+1th column of The total number of columns, It is data Round up, and are sine and cosine functions; The position matrix can be obtained by using the above formula The value of each position of , thus obtaining the position matrix The value of the position matrix Then, add it to the second image representation , and the third image representation is obtained through deep separable convolution learning , the specific expression is as follows: 。 5. The method for occluded person re-identification based on improved Transformer according to claim 1, characterized in that: The purpose of the improved side information encoding module in step (4) is to add side information to the third image representation to obtain a fourth image representation. The specific process is as follows: First, the improved side information encoding uses the camera encoding information and visual angle information learned by deep separable convolution to be concatenated. The specific expression is as follows: , in is a depth-wise separable convolution, Encode information for the camera, is the visual angle information, for and The series operation of Secondly, the attention mechanism is used to concatenate the information The specific expression is as follows: , in The attention mechanism is used to concatenate the information After processing the side information, is the learnable query coefficient matrix, is the learnable bond coefficient matrix, is the learnable value coefficient matrix, is the normalized exponential function, for The transpose of Finally, the obtained side information Adding a third image representation And the fourth image representation is obtained through deep separable convolution learning. The specific expression is as follows: 。 6. The method for occluded pedestrian re-identification based on improved Transformer according to claim 1, characterized in that: The specific description of obtaining the fifth image representation by passing the fourth image representation through the improved Transformer module in step (5) is as follows: First, the fourth image is represented using depthwise separable convolution After processing, we can obtain the query value Q, key K and value V matrices required in Transformer. The specific expressions are as follows: , , , Among them, Q is the query value, K is the key, and V is the value. It is a depth-wise separable convolution; Secondly, Q, K, V, The fifth image representation is obtained through the improved Transformer module, and the specific expression is as follows: , in, For the fifth image representation, Hyperbolic tangent function, is the normalized exponential function, is the s activation function, is a learnable Laplace function with respect to Q, is a learnable Laplace function with respect to K, is a global learnable parameter, is a local learnable parameter, is the transpose operation.

7. The method for re-identifying pedestrians under occlusion based on an improved Transformer according to claim 1, characterized in that: The step (6) obtains a sixth image representation by performing depth-separable convolution learning on the fifth image representation, and its specific description is as follows: , in, is a depth-wise separable convolution, For the fifth image representation, This is the sixth image representation.

8. The method for re-identifying pedestrians under occlusion based on an improved Transformer according to claim 1, characterized in that: The step (7) obtains a seventh image representation by passing the sixth image representation through a learnable channel attention module, and its specific description is as follows: , in, is the normalized exponential function, is the multi-layer perceptron function, is the adaptive maximum pooling function, is the adaptive average pooling function, is the sixth image representation, For the seventh image representation, is the transpose operation.

9. The method for re-identifying pedestrians under occlusion based on an improved Transformer according to claim 1, characterized in that: The step (8) obtains an eighth image representation by passing the sixth image representation through a learnable spatial attention module, and its specific description is as follows: , in is the normalized exponential function, is the multi-layer perceptron function, is the convolution function, is the maximum pooling function, is the average pooling function, is the sixth image representation, For the eighth image representation, is the transpose operation.

10. The method for re-identifying pedestrians under occlusion based on an improved Transformer according to claim 1, characterized in that: The step (9) connects the seventh image representation and the eighth image representation in series, and then passes through the second data mapping module to obtain the final pedestrian re-identification result, which is specifically described as follows: , in, For the seventh image representation, For the eighth image representation, for and The series operation, is the final pedestrian re-identification result, is the normalized exponential function, is the multi-layer perceptron function, It is a depth-wise separable convolution.

Citation Information

Cited By

  • Human body posture behavior identification method based on 4D millimeter wave radar

    CN119920016A

  • Facial image recognition method and apparatus, and electronic device, storage medium and program product

    WO2026124541A1