A pedestrian re-identification method

The pedestrian re-identification method, which employs sparsification and feature recombination, addresses the issue of poor robustness in occluded scenarios, improves the accuracy and robustness of pedestrian re-identification, and reduces reliance on human analysis and pose estimation.

CN118522030BActive Publication Date: 2026-11-24SHANGHAI UNIV OF ENG SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410229366.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-29
Publication Date
2026-11-24
Estimated Expiration
2044-02-29

AI Technical Summary

Technical Problem

Existing pedestrian re-identification methods are not robust in occluded scenarios and rely on human analysis and pose estimation, resulting in high computational cost and low accuracy.

Method used

We employ sparsification to obtain classification feature tokens for identification patches, supervise the initial identification features through a loss function, divide them into multiple fused feature segments and sliced ​​feature blocks, and reassemble them into the final identification features. This reduces the influence of irrelevant features and improves robustness and accuracy.

Benefits of technology

The method improves the accuracy and robustness of pedestrian re-identification in occluded scenarios, reduces reliance on human analysis and pose estimation, and enhances the performance of the method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118522030B_ABST
    Figure CN118522030B_ABST
Patent Text Reader

Abstract

This invention belongs to the field of pedestrian re-identification, possessing high robustness and significantly improving the accuracy of pedestrian re-identification. It discloses a pedestrian re-identification method, which first combines a database identifier, a photo patch, and a location identifier to form an identification patch. Then, based on sparsity processing, a classification feature token is obtained from the identification patch, and an initial identification feature is derived based on this token. Next, the initial identification feature is divided into multiple fusion feature segments, which are then divided into two groups. Each group of fusion feature segments is superimposed to obtain a fusion identification feature, and an intermediate identification feature is obtained based on this fusion identification feature. Then, multiple slice feature segments are obtained based on the intermediate identification feature, and multiple slice feature blocks are obtained based on these slice feature segments. Finally, an identification feature sequence is obtained based on the multiple slice feature blocks, and the final identification feature is obtained based on the feature groups within the sequence. The final identification feature is then used to supervise the re-identification of a predetermined pedestrian.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of pedestrian re-identification, and specifically relates to a pedestrian re-identification method. Background Technology

[0002] Pedestrian re-identification is based on matching pedestrian image data from cameras without overlapping field of view to pre-determine pedestrians. It is widely used for violation judgment, criminal investigation, and danger warning. In real life, many pedestrian images in cameras are obscured by obstacles (such as luggage, counters, crowded publics, cars, and trees) or by people walking out of the camera's area, resulting in image obstruction. Scenes where some or all photos show obstruction are called obstructed scenes.

[0003] Currently, there are various methods for pedestrian re-identification based on neural networks. In occluded scenarios, most existing pedestrian re-identification studies focus on the overall image and ignore the occluded image. For occluded images, compensation for occlusion is only achieved through human analysis and pose estimation. For example, topology is performed based on the pedestrian's gait, motion joints, and other body information to compensate for occlusion.

[0004] However, human analysis and pose estimation require more data input, which increases the computational cost, and this approach is not very robust in complex occlusion scenarios (such as pedestrians occluding each other); thus causing the application of human analysis and pose estimation to fail. Summary of the Invention

[0005] To address the shortcomings of existing technologies, this invention provides a pedestrian re-identification method that achieves high robustness without relying on human analysis and pose estimation, and also significantly improves the accuracy of pedestrian re-identification.

[0006] To achieve the above objectives, the present invention provides the following technical solution: A pedestrian re-identification method, which re-identifies predetermined pedestrians based on photo data from multiple databases, is characterized by including the following steps: Step S1: Obtain the database identifier corresponding to the photo data, form a set of continuous photo patches from the photo data, obtain the position identifier of the photo patch in the photo data, and combine the database identifier, the photo patch and the position identifier to form an identification patch; Step S2: Obtain the classification feature token of the identification patch based on sparsity processing, supervise the classification feature token based on the loss function, and obtain the initial identification features; Step S3: Divide the initial recognition features into at least four continuous fusion feature segments in terms of data length, divide the at least four fusion feature segments into two groups, and perform a superposition operation on each group of fusion feature segments to obtain fusion recognition features. Superimpose the fusion recognition features and supervise them through a loss function to obtain intermediate recognition features. Step S4: Divide the intermediate identification feature into at least four consecutive slice feature segments in terms of data length, and divide each slice feature segment into three consecutive slice feature blocks in terms of data length; Step S5: Take all the slice feature blocks of the intermediate identification feature as the identification feature sequence, divide the identification feature sequence into three slice feature groups, and distribute multiple slice feature blocks in each slice feature group at equal intervals in the identification feature sequence. Based on the slice feature groups, obtain the final identification feature corresponding to the identification feature sequence. Supervise the final identification feature through a supervision function to re-identify the predetermined pedestrian. The token with classification features takes the form of: cls represents the classification features, z1, z2, z3, ... z n As a feature of sequence, In step S3, the number of fused feature segments is four, in the form of: The two corresponding fused recognition features are in the form of: , In step S5, the number of slice feature blocks in the identified feature sequence is 12. The 1st, 4th, 7th, and 10th slice feature blocks, the 2nd, 5th, 8th, and 11th slice feature blocks, and the 3rd, 6th, 9th, and 12th slice feature blocks are respectively divided into three slice feature groups. A superposition operation is performed on all the intermediate identification features of the identification feature sequence. Based on the resulting sum and the classification features corresponding to the intermediate identification features, a global feature is obtained, in the form of: cls represents the classification feature, and sum represents the sum of the intermediate recognition features. The final identification feature is in the form of: left represents the slice feature group composed of the 1st, 4th, 7th, and 10th slice feature blocks in the recognition feature sequence; middle represents the slice feature group composed of the 2nd, 5th, 8th, and 11th slice feature blocks; right represents the slice feature group composed of the 3rd, 6th, 9th, and 12th slice feature blocks; and GF represents the global feature. After separating the classification features from the initial recognition features, the system divides them into the fusion feature segments while retaining the classification features. After the fusion feature segments are fused into the fusion recognition features, the classification features are added. After separating the classification features from the intermediate recognition features, the feature segments are divided into slices, and the classification features are retained. Before fusing the slice feature groups into the final recognition features, the classification features are added.

[0007] Preferably, in step S1, the photo data is reduced in dimensionality through linear projection to form the photo patch.

[0008] Preferably, the token with classification features is obtained through a visual self-attention model, wherein the visual self-attention model is loaded with a sparse encoder. The visual self-attention model has a 12-layer structure, with the sparse encoder located in layers 3, 6, and 9, and a patch information retention rate of 0.8.

[0009] Preferably, the loss function L S for: Represents cross-entropy loss, This indicates the loss of the triplet.

[0010] Compared with the prior art, the beneficial effects of the present invention are: 1. The pedestrian re-identification method of the present invention first combines the database identifier, photo patch, and location identifier to form an identification patch; then, it obtains a classification feature token for the identification patch based on sparsity processing, and obtains initial identification features based on the classification feature token; next, it divides the initial identification features into multiple fusion feature segments, divides the multiple fusion feature segments into two groups, and performs a superposition operation on each group of fusion feature segments to obtain fusion identification features, and obtains intermediate identification features based on the fusion identification features; then, it obtains multiple slice feature segments based on the intermediate identification features, and obtains multiple slice feature blocks based on the multiple slice feature segments; finally, it obtains an identification feature sequence based on the multiple slice feature blocks, obtains the final identification feature and the final identification feature based on the feature groups within the sequence, and supervises the re-identification of the predetermined pedestrian based on the final identification feature. By performing sparsity processing before obtaining the classification feature token, it better trims irrelevant features in the photo data. This invention addresses issues such as the ease of failure under heavy occlusion or pedestrian occlusion, coarse image segmentation, and persistent background noise, by dividing the initial recognition features into fused feature segments and then superimposing them to obtain intermediate recognition features. It also fuses and reconstructs the head and tail segments of the recognition features with low correlation and dependency, reducing the proportion of unimportant features and improving the performance of the related models. Furthermore, by dividing the recognition feature sequence into intra-sequence feature groups, the final recognition features corresponding to the recognition feature sequence are obtained. This recombination of the recognition feature sequence allows the method to simultaneously focus on features with large intra-class distances but high correlation, significantly improving the accuracy of pedestrian re-identification. Therefore, this invention achieves high robustness and greatly improves the accuracy of pedestrian re-identification without relying on human analysis and pose estimation.

[0011] 2. Because the loss function L of this invention S for: Represents cross-entropy loss, Indicates the loss of the triplet. Tokens with classification features are in the following form: cls represents the classification features, z1, z2, z3, ... z n Because the features are sequential, this invention addresses feature pruning. It is adaptive, does not rely on prior information about human semantics, and can better handle challenging tasks. In scenarios such as severe occlusion and situations where other people act as obstructions.

[0012] 3. Because this invention performs a superposition operation on all intermediate identification features of the identification feature sequence, and obtains global features based on the resulting sum and the classification features corresponding to the intermediate identification features, it takes the form of: cls represents the classification features, and sum represents the sum of multiple intermediate recognition features. The final identification features are in the form of: The left side represents the intra-sequence feature group composed of the 1st, 4th, 7th, and 10th slice feature segments; the middle side represents the intra-sequence feature group composed of the 2nd, 5th, 8th, and 11th slice feature segments; the right side represents the intra-sequence feature group composed of the 3rd, 6th, 9th, and 12th slice feature segments; and GF represents the global feature. Therefore, this invention, by recognizing the recombination of feature sequences, also considers features with large intra-class distances. This is because practice has shown that not only do consecutive patches have strong spatial correlations, but patches that are far apart within a class sometimes also have significant spatial correlations. The introduction of global features such as intermediate recognition features and classification features explores the long-distance spatial correlation of patch sequences, compensates for the short-distance correlation of patch sequences, and ensures that the receptive field pays more attention to local features, further improving the generalization performance of the network under different occlusion conditions. Attached Figure Description

[0013] Figure 1 This is a schematic diagram illustrating the steps of a pedestrian re-identification method according to an embodiment of the present invention; Figure 2 This is a schematic diagram of step S3 in an embodiment of the present invention; Figure 3 The diagram illustrates steps S4 and S5 of an embodiment of the present invention. Detailed Implementation

[0014] To make the technical means, creative features, objectives and effects of the present invention easier to understand, the following embodiments, in conjunction with the accompanying drawings, specifically illustrate the pedestrian re-identification method of the present invention. It should be noted that the description of these embodiments is for the purpose of helping to understand the present invention, but does not constitute a limitation of the present invention.

[0015] like Figure 1 As shown, the pedestrian re-identification method S100 in this embodiment re-identifies the intended pedestrian based on photo data from multiple databases. Specifically, the backbone network of the neural network corresponding to the pedestrian re-identification method S100 is a transformer. In this embodiment, scene photos captured by multiple relatively independent cameras are stored in the corresponding photo database in the form of data, and the intended pedestrian is represented in the form of a given photo.

[0016] Pedestrian re-identification method S100 includes the following steps: Step S1: Obtain the database identifier corresponding to the photo data, form a set of continuous photo patches from the photo data, obtain the location identifier of the photo patch in the photo data, and combine the database identifier, photo patch and location identifier to form an identification patch.

[0017] Photo data is reduced in dimensionality through linear projection to form photo patches. Specifically, let the data form of pedestrian photos be x∈R. H×W×C Here, H, W, and C represent the height, width, and channels of the image, respectively. We divide x into N overlapping patches {p1, p2, p3, ..., p...}. N Then, each patch is linearly projected, denoted by f().

[0018] Step S2: Obtain the classification feature token of the identification patch based on sparsity processing, supervise the classification feature token based on the loss function, and obtain the initial identification features.

[0019] Specifically, in the self-attention model transformer, attention is mediated between the [cls] patch and other patches, where the [cls] patch takes the form of: Acls represents the attention matrix of [cls], that is, the first row of the attention matrix. is the scaling factor. Qcls, K, and V represent the query matrix, key matrix, and value matrix of the [cls] patch, respectively. For multiple heads in the self-attention layer, we average the attention matrix as follows: Where n is the number of heads. Since the [cls] patch has a large attention value for important patch regions, we can determine the importance of a patch based on its correlation with the [cls] patch. The [cls] patch represents the correlation between itself and other patches. Therefore, we retain the patches with the top K largest values ​​in Acls and discard the others. Through patch sparsification, the retained patches are mostly related to areas of important target pedestrians, while the discarded patches are related to unimportant occlusions or background.

[0020] A token with classification features is obtained through a visual self-attention model. The visual self-attention model is loaded with a sparse encoder and has a 12-layer structure. The sparse encoder is located in layers 3, 6, and 9, and the retention rate of patch information is 0.8.

[0021] Loss function L S for: Represents cross-entropy loss, The triplet loss is shown. As can be seen, the feature pruning in this embodiment is adaptive, does not rely on prior information of human semantics, and can better handle challenging scenarios, such as heavy occlusion and situations where other people act as occluders.

[0022] Tokens with classification features are in the form of: [cls;z1,z2,z3,…z n ] cls represents the classification features, z1, z2, z3, ... z n It is characterized by a sequential nature.

[0023] Step S3: As Figure 2 As shown, the initial recognition features are divided into at least four continuous fusion feature segments in terms of data length. The at least four fusion feature segments are divided into two groups. The fusion feature segments in each group are superimposed to obtain the fusion recognition features. The fusion recognition features are superimposed and supervised by a loss function to obtain the intermediate recognition features.

[0024] The number of fused feature segments is four, in the form of: The two corresponding fused recognition features are in the form of: After separating the classification features from the initial recognition features, they are divided into fusion feature segments, while retaining the classification features. After the fusion feature segments are merged into fusion recognition features, the classification features are added. Finally, the two fusion recognition features are spliced ​​together to form an intermediate recognition feature.

[0025] Step S4: As Figure 3 As shown, the intermediate identification features are divided into at least four continuous slice feature segments in terms of data length, and each slice feature segment is further divided into three continuous slice feature blocks in terms of data length.

[0026] Step S5: Take all the slice feature blocks of the intermediate recognition features as the recognition feature sequence, divide the recognition feature sequence into three slice feature groups, and distribute multiple slice feature blocks in each slice feature group at equal intervals in the recognition feature sequence. Based on the slice feature groups, obtain the final recognition features corresponding to the recognition feature sequence. Through the supervision of the final recognition features by the supervision function, the predetermined pedestrians are re-identified.

[0027] Specifically, the number of slice feature blocks for identifying the feature sequence is 12, and the 1st, 4th, 7th, and 10th slice feature blocks, the 2nd, 5th, 8th, and 11th slice feature blocks, and the 3rd, 6th, 9th, and 12th slice feature blocks are respectively divided into three slice feature groups.

[0028] The global feature is obtained by superimposing all intermediate recognition features of the recognition feature sequence and using the sum and the classification features corresponding to the intermediate recognition features, as shown in the following form: [cls,sum] cls represents the classification features, and sum represents the sum of multiple intermediate recognition features. The final identification features are in the form of: [left,middle,right,GF] left represents the slice feature group consisting of the 1st, 4th, 7th, and 10th slice feature blocks in the recognition feature sequence; middle represents the slice feature group consisting of the 2nd, 5th, 8th, and 11th slice feature blocks; right represents the slice feature group consisting of the 3rd, 6th, 9th, and 12th slice feature blocks; and GF represents the global feature.

[0029] After separating the classification features from the intermediate recognition features, the feature segments are divided into slice features, and the classification features are retained. Before fusing the slice feature groups into the final recognition features, the classification features are added.

[0030] Specifically, five datasets—Occluded-Duke, Occluded-Re-ID, Partial-ReID, Market-1501, and DukeMTMC-reID—were selected to compare the model corresponding to the pedestrian re-identification method of this invention with 11 existing pedestrian re-identification models on the Rank-1 and mAP metrics to verify the model performance.

[0031] Occluded-Duke comprises 15,618 training images from 702 individuals, 2,210 occluded query images from 519 individuals, and 17,661 gallery images from 1,110 individuals. Due to its complex scenes and massive scale, Occluded-Duke is the most challenging occluded person-to-person (OP) ReID dataset. Occluded-Re-ID consists of 1,000 occluded query images and 1,000 full-body gallery images, each belonging to one of 200 identities. Partial-ReID involves 600 images from 60 individuals, with each individual consisting of 5 partial images and 5 full-body images. Market-1501 contains 12,936 training images from 751 individuals, 19,732 query images, and 3,368 gallery images from 750 individuals, taken by six cameras; only a small number of images in this dataset are occluded. DukeMTMC-reID includes 16,522 training images of 702 people, 2,228 query images of 702 people, and 17,661 gallery images of 702 people taken by eight cameras.

[0032] The comparison table is as follows: As can be seen, this embodiment outperforms most existing methods in practical applications, demonstrating its effectiveness for occlusion ReID tasks. Specifically, this embodiment achieves a Rank-1 accuracy of 69.8% and an mAP of 60.8% on the challenging Occluded-Duke dataset. On the Occluded-ReID dataset, PRT achieves a Rank-1 accuracy of 83.0% and an mAP of 78.3%.

[0033] Comparison Table 2 is as follows: As can be seen, in the Market-1501 dataset, the accuracy of this embodiment in Rank-1 is 95.1%, and the accuracy in mAP is 88.8%. In the DukeMTMC-ReID dataset, the accuracy of this embodiment in Rank-1 is 89.6%, and the accuracy in mAP is 80.6%.

[0034] The above embodiments are preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Various modifications or variations that can be made by those skilled in the art without creative effort within the scope of the appended claims are still within the scope of protection of this patent.

Claims

1. A pedestrian re-identification method, which re-identifies a predetermined pedestrian based on photo data from multiple databases, characterized in that, Includes the following steps: Step S1: Obtain the database identifier corresponding to the photo data, form a set of continuous photo patches from the photo data, obtain the position identifier of the photo patch in the photo data, and combine the database identifier, the photo patch and the position identifier to form an identification patch; Step S2: Obtain the classification feature token of the identification patch based on sparsity processing, supervise the classification feature token based on the loss function, and obtain the initial identification features; Step S3: Divide the initial recognition features into at least four continuous fusion feature segments in terms of data length, divide the at least four fusion feature segments into two groups, and perform a superposition operation on each group of fusion feature segments to obtain fusion recognition features. Superimpose the fusion recognition features and supervise them through a loss function to obtain intermediate recognition features. Step S4: Divide the intermediate identification feature into at least four consecutive slice feature segments in terms of data length, and divide each slice feature segment into three consecutive slice feature blocks in terms of data length; Step S5: Take all the slice feature blocks of the intermediate identification feature as the identification feature sequence, divide the identification feature sequence into three slice feature groups, and distribute multiple slice feature blocks in each slice feature group at equal intervals in the identification feature sequence. Based on the slice feature groups, obtain the final identification feature corresponding to the identification feature sequence. Supervise the final identification feature through a supervision function to re-identify the predetermined pedestrian. The token with classification features takes the form of: cls represents the classification features, z1, z2, z3, ... z n As a feature of sequence, In step S3, the number of fused feature segments is four, in the form of: The two corresponding fused recognition features are in the form of: , In step S5, the number of slice feature blocks in the identified feature sequence is 12. The 1st, 4th, 7th, and 10th slice feature blocks, the 2nd, 5th, 8th, and 11th slice feature blocks, and the 3rd, 6th, 9th, and 12th slice feature blocks are respectively divided into three slice feature groups. A superposition operation is performed on all the intermediate identification features of the identification feature sequence. Based on the resulting sum and the classification features corresponding to the intermediate identification features, a global feature is obtained, in the form of: cls represents the classification feature, and sum represents the sum of the intermediate recognition features. The final identification feature is in the form of: left represents the slice feature group composed of the 1st, 4th, 7th, and 10th slice feature blocks in the recognition feature sequence; middle represents the slice feature group composed of the 2nd, 5th, 8th, and 11th slice feature blocks; right represents the slice feature group composed of the 3rd, 6th, 9th, and 12th slice feature blocks; and GF represents the global feature. After separating the classification features from the initial recognition features, the system divides them into the fusion feature segments while retaining the classification features. After the fusion feature segments are fused into the fusion recognition features, the classification features are added. After separating the classification features from the intermediate recognition features, the feature segments are divided into slices, and the classification features are retained. Before fusing the slice feature groups into the final recognition features, the classification features are added.

2. The pedestrian re-identification method according to claim 1, characterized in that: in, In step S1, the photo data is reduced in dimensionality through linear projection to form the photo patch.

3. The pedestrian re-identification method according to claim 1, characterized in that: in, The categorical token is obtained using a visual self-attention model, which is loaded with a sparse encoder. The visual self-attention model has a 12-layer structure, with the sparse encoder located in layers 3, 6, and 9, and the retention rate of patch information is 0.

8.

4. The pedestrian re-identification method according to claim 1, characterized in that: in, Loss function L S for: Represents cross-entropy loss, This indicates the loss of the triplet.