A pedestrian re-identification method for occluded scenes

By introducing global comparison pooling module and One-vs-rest relationship module in pedestrian recognition technology, combining pre-trained pose estimator and multiple loss functions, the problems of noise interference and feature confusion in occlusion scenarios are solved, and pedestrians are improved Re-identification accuracy and accuracy.

CN114022686BActive Publication Date: 2024-11-29CHINESE PEOPLE'S PUBLIC SECURITY UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111484998.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-07
Publication Date
2024-11-29
Estimated Expiration
2041-12-07

AI Technical Summary

Technical Problem

The existing pedestrian re-identification technology has problems with noise interference and feature confusion in occlusion scenarios, resulting in a reduction in recognition accuracy and insufficient utilization of the relationship between various parts of the body.

Method used

The global contrast pooling module and One-vs-rest relationship module were introduced, combined with the pre-trained pose estimator, extract global features with stronger anti-interference and local features containing body partial relationships, and adopt joint cross entropy and difficult sample sampling. Model training with the central loss function.

Benefits of technology

It improves the accuracy and accuracy of pedestrian re-identification in occlusion scenarios, reduces noise interference, and enhances the discrimination of features and the generalization ability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114022686B_ABST
    Figure CN114022686B_ABST
Patent Text Reader

Abstract

The present invention discloses a pedestrian re-identification method for occluded scenes. By introducing a global contrast pooling module into the global feature branch, the characteristics of average pooling and maximum pooling are integrated to extract global features with stronger anti-interference to background noise and occlusion; the One‑vs‑rest relationship module is introduced into the local feature branch to associate each part of the local features with the remaining local features to extract local features containing global information; in the metric learning stage, the three loss functions of cross entropy loss, hard sample sampling triple loss and center loss are combined to supervise the training process of the model, so that the network model can extract more discriminative pedestrian features. Finally, the method is evaluated on the Occluded‑DukeMTMC dataset, and the results fully demonstrate the effectiveness and advancement of the present invention in solving the occlusion problem of pedestrian re-identification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a pedestrian re-identification method, and in particular to a pedestrian re-identification method for occluded scenes. Background Art

[0002] Person re-identification is a hot and complex research topic in the field of computer vision. Given a specific pedestrian image to be queried, computer vision technology is used to determine whether the specific pedestrian exists under other non-overlapping cameras. This largely makes up for the visual limitations of a single fixed camera. It is usually combined with pedestrian detection, pedestrian tracking and other technologies and applied to pattern recognition and other fields.

[0003] Compared with traditional pedestrian re-identification methods, pedestrian re-identification methods based on deep learning can extract more discriminative feature descriptions through automatic learning and simple similarity measurement, achieving better performance. However, in actual application scenarios, pedestrian re-identification technology faces various problems: 1. The camera angle and position cause the posture of the pedestrian to change; 2. The resolution of the pedestrian image changes due to the shooting distance; 3. Cross-modal re-identification caused by changes in the image domain; 4. Occlusion. Among them, in the occlusion scene, the pedestrians in the image captured by the camera are often blocked by some obstacles (such as luggage, counters, crowds, cars, trees), or because part of the pedestrian's body area is out of the camera's shooting range, resulting in occlusion, resulting in a reduction in the discriminative information contained in the pedestrian image. At the same time, due to the noise interference of the occluded part, the target pedestrian is easily matched to the wrong person. Therefore, accurately matching pedestrian images that are only partially observable, efficiently using the pedestrian features of the unoccluded area and the relationship between the local features, and reducing the noise interference of the occluded area are the keys to improving the accuracy of pedestrian re-identification in occluded scenes.

[0004] At present, the more commonly used method in the academic community to solve the problem of pedestrian re-identification occlusion is to detect the key points of the human body through a posture estimator, and use this as auxiliary information to guide the model to focus on the visible area of ​​the image, so as to distinguish the occluded area and the unoccluded area of ​​the pedestrian image, thereby reducing the noise interference of the occluded area. However, these methods usually only directly use the local features of pedestrians without considering the relationship between various parts of the body, which can easily confuse two different pedestrian pictures with similar features in corresponding parts; in addition, some methods only use a single loss function to supervise the training process of the model, which will make the sample category information unable to be fully utilized and mined, and ultimately lead to the problem of reduced pedestrian re-identification accuracy. Therefore, the present invention proposes a pedestrian re-identification method for occluded scenes. Summary of the invention

[0005] In order to solve the shortcomings of the above-mentioned technology, the present invention provides a pedestrian re-identification method for occluded scenes, by introducing a global contrast pooling module into the global feature branch, integrating the characteristics of average pooling and maximum pooling, and extracting global features with stronger anti-interference ability against background noise and occlusion; introducing a One-vs-rest relationship module into the local feature branch, associating each part of the local features with the remaining local features, and extracting local features containing global information; in the metric learning stage, the three loss functions of cross entropy loss, difficult sample sampling triplet loss and center loss are jointly used to supervise the training process of the model, so that the network model can extract more discriminative pedestrian features.

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is: a pedestrian re-identification method for occluded scenes, comprising the following steps:

[0007] Step S1: Generate human key points with the help of pre-trained posture estimator, and combine global features to make the model pay more attention to the unobstructed pedestrian area and reduce the noise interference caused by the obstructed area;

[0008] Step S2: Introduce a global contrast pooling module to reduce the noise interference caused by background clutter and occlusion, and better express the information of the entire pedestrian body area;

[0009] Step S3: Perform deeper feature extraction on the local block features through the One-vs-rest relationship module, so that the features at each local level contain information about the corresponding part itself and other body parts, and better reflect the relationship between the body parts;

[0010] Step S4: The model is supervised by using a joint training method of multiple loss functions, so that the model ensures the accuracy of the predicted labels while considering the inter-class discreteness and intra-class compactness.

[0011] Step S1 specifically includes the following steps:

[0012] Step S11: Input a pedestrian image, i.e., the original image, and generate the human body key points M through the pre-trained posture estimator i , the coordinates corresponding to each key point (x i ,y i ) and confidence

[0013] Step S12: Remove key points with low confidence through filtering mechanism, that is, The key point coordinates greater than the threshold θ are retained, and the confidence The key point coordinates less than the threshold θ are removed, where the filtering mechanism is shown in Formula 1:

[0014]

[0015] Among them, M i 、(x i ,y i )and They represent the i-th key point and the coordinates and confidence corresponding to the point, θ represents the threshold in the filtering mechanism, and N represents the number of key points;

[0016] Step S13: Map the key points to the original image to generate a heat map, downsample it using a bilinear interpolation method, and combine it with the global features to form a posture guidance feature;

[0017] Step S14: concatenate the posture guidance features obtained through average pooling and maximum pooling with the global features after average pooling in the local feature branch, and perform dimensionality reduction through a fully connected layer;

[0018] Step S15: Perform label prediction on the extracted global features through the fully connected layer and the softmax layer.

[0019] Step S2 specifically includes the following steps:

[0020] Step S21: The local block features P1 to P6 are pooled by global maximum pooling and global average pooling to obtain P max and P avg , subtract the two to obtain the difference feature P cont , the calculation process is shown in Formula 2:

[0021] P cont =P max -P avg Formula 2

[0022] Step S22: P max and P cont The two parts of the features are respectively reduced in dimension through a sub-network consisting of a 1×1 convolution layer, a BN normalization layer, and a ReLU activation function layer to obtain the feature The two are concatenated and sent to a sub-network again to reduce the 2c dimension to c dimension, and finally The representative global feature Q0 is obtained by adding them together. The specific implementation process is shown in Formula 3:

[0023]

[0024] Among them, Q0 represents the global contrast feature, CBR represents the subnetwork consisting of a 1×1 convolution layer, a BN normalization layer, and a ReLU activation function layer, and Concat(·) represents the concatenation operation.

[0025] Step S3 specifically includes the following steps:

[0026] Step S31: P i For example, for P i Other local features P j Perform global average pooling to get R i , the calculation process is shown in formula 4:

[0027]

[0028] Among them, P j represents the local features of other parts except the local features of the i-th part;

[0029] Step S32: P i and R i The two parts of the features are respectively reduced in dimension through a sub-network consisting of a 1×1 convolution layer, a BN normalization layer, and a ReLU activation function layer to obtain the feature The two are concatenated and sent to a sub-network again to reduce the 2c dimension to c dimension, and finally The local features Q with global connections are obtained by integration i , the specific implementation process is shown in formula 5:

[0030]

[0031] Among them, Q i represents a local feature with global connections, CBR represents a subnetwork consisting of a 1×1 convolutional layer, a BN normalization layer, and a ReLU activation function layer, and Concat(·) represents a concatenation operation.

[0032] Step S4 specifically includes the following steps:

[0033] Step S41: The cross entropy loss function is used to constrain the posture guidance feature, that is, the difference between the predicted label and the true label is calculated. The calculation process is shown in Formula 6 and Formula 7:

[0034]

[0035]

[0036] Among them, L ID_loss represents the cross entropy loss function, K represents the number of categories, c represents a certain category, q i Represents feature q i Output value after classification by the fully connected layer; N and y n Represent the number of mini-batch input images and true labels, respectively. Represents each feature q i The predicted label of

[0037] Step S42: using three loss functions, namely, hard sample sampling triplet loss and center loss, to constrain global contrast features and local relationship features;

[0038] The calculation process of the triplet loss function for difficult sample sampling is shown in Formula 8:

[0039]

[0040] Among them, N K Represents the number of entities in a small batch, N M represents the number of images corresponding to each entity, α represents the threshold parameter that controls the distance between positive and negative sample pairs in the feature space, They represent anchor images, positive samples, and negative samples respectively; k and l represent entity indexes respectively; m and n represent image indexes;

[0041] The calculation process of the center loss function is shown in Formula 9:

[0042]

[0043] Where m represents the batch size, and i Respectively represent the features and labels of the i-th picture in the batch data, Indicates that they belong to y i The characteristic center point of the sample data of the category;

[0044] Step S43: The loss functions in step S41 and step S42 are combined to jointly supervise the training process of the model, reduce the classification error, constrain the inter-class distance and intra-class distance of the sample, enable the network model to learn more discriminative features, and improve the generalization ability of the network model. The calculation process is shown in Formula 10, Formula 11, and Formula 12:

[0045] L ML =λL GCLR +(1-λ)L PGF Formula 10

[0046] L PGF =L ID_loss Formula 11

[0047] L GCLR =L TriHard +αL ID_loss +βL Center_loss Formula 12

[0048] Among them, L ML represents the joint loss function, L PGF represents the cross entropy loss function adopted by the posture-guided feature, L GCLRRepresents the three loss functions used for global contrast features and local relationship features, L TriHard represents the triplet loss function for difficult sample sampling, L ID_loss represents the cross entropy loss function, L Center_loss represents the central loss function, α, β, and λ represent the weight coefficients used to balance the losses of each part.

[0049] The present invention generates human key points in the global feature branch with the help of a pre-trained posture estimator, and maps them to the original feature map to generate a heat map. Combined with the global features, the model pays more attention to the unobstructed pedestrian area and reduces the noise interference caused by the occluded area; a global contrast pooling module is introduced to reduce the noise interference caused by background clutter and occlusion, and better express the information of the entire pedestrian body area; in the local feature branch, the feature map generated by the backbone network is horizontally segmented, and local block features are obtained after maximum pooling, and then the local block features are extracted at a deeper level through the One-vs-rest relationship module, so that each local level feature can contain the information of the corresponding part itself and other body parts, and better reflect the relationship between the body parts; for metric learning, a plurality of loss functions are used to jointly train the model to supervise the model, so that the model ensures the accuracy of the predicted label while considering the discreteness between classes and the compactness within classes. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 This is a structural diagram of the network model of the present invention.

[0051] Figure 2 A schematic diagram is generated for the posture key points of the present invention.

[0052] Figure 3 This is a heat map of the present invention.

[0053] Figure 4 It is a diagram of the global contrast pooling process of the present invention.

[0054] Figure 5 It is a schematic diagram of the One-vs-rest relationship module of the present invention.

[0055] Figure 6 This is a diagram of the multi-loss fusion process of the present invention.

[0056] Figure 7 This is the CMC curve diagram of the pedestrian re-identification method improved based on feature association in the present invention on the Occluded-DukeMTMC dataset.

[0057] Figure 8 It is a CMC curve diagram of the pedestrian re-identification method based on feature association and multi-loss fusion of the present invention on the Occluded-DukeMTMC dataset.

[0058] Fig. 9 This is a visualization ranking result diagram of the present invention. DETAILED DESCRIPTION

[0059] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0060] like Figure 1 The pedestrian re-identification method for occluded scenes shown in FIG. includes two branches:

[0061] 1. Global feature branch: Generate human key points with the help of pre-trained posture estimator and map them to the original feature map. Combined with global features, the model pays more attention to the unobstructed pedestrian area and reduces the noise interference caused by the occluded area. The global contrast pooling module is introduced to reduce the noise interference caused by background clutter and occlusion, and better express the information of the entire pedestrian body area.

[0062] 2. Local feature branch: The One-vs-rest relationship module is used to perform deeper feature extraction on local block features, so that each local level feature can contain information about the corresponding part itself and other body parts, and better reflect the relationship between body parts. For metric learning, a variety of loss functions are used to jointly train the model to supervise it, so that the model ensures the accuracy of the predicted labels while considering the inter-class discreteness and intra-class compactness.

[0063] The present invention improves and optimizes the baseline method (PGFA), and trains and tests the original model and the improved model on the data set, so as to select the improved method with the highest recognition accuracy. Among them, the recognition accuracy is reflected in the two evaluation indicators of CMC and mAP.

[0064] The present invention will be further explained below by way of examples.

[0065] like Figure 2 As shown in the figure, the pre-trained Alphapose posture estimator is used to generate the human body key points of the input image and the coordinates and confidences of each key point. The key points with low confidence are filtered and removed. The filtering mechanism is shown in Formula 1. Secondly, the key points are mapped to the original image to generate a heat map. After downsampling by the bilinear interpolation method, it is combined with the global features to form a posture guidance feature, as shown in Figure 3 As shown in the figure; then the posture guidance features obtained after average pooling and maximum pooling are concatenated with the global features after average pooling in the local feature branch, and the dimensions are reduced through the fully connected layer; finally, the extracted global features are predicted by the fully connected layer and the softmax layer (the output layer in the neural network).

[0066]

[0067] Among them, M i 、(x i ,y i )and They represent the i-th key point and the coordinates and confidence corresponding to the point, θ represents the threshold in the filtering mechanism, and N represents the number of key points;

[0068] like Figure 4 As shown in the figure, the local block features P1~P6 are obtained by global maximum pooling and global average pooling. max and P avg , subtract the two to obtain the difference feature P cont , the calculation process is shown in Formula 2:

[0069] P cont =P max -P avg Formula 2

[0070] P max and P cont The two parts of features are respectively reduced in dimension through a sub-network consisting of a 1×1 convolution layer, a BN (Batch Normalization) normalization layer, and a ReLU (Rectified Linear Unit) activation function layer to obtain the features The two are concatenated and sent to a sub-network again to reduce the 2c dimension to c dimension, and finally The representative global feature Q0 is obtained by adding them together. The specific implementation process is shown in Formula 3:

[0071]

[0072] Among them, Q0 represents the global contrast feature, CBR represents the subnetwork consisting of a 1×1 convolution layer, a BN normalization layer, and a ReLU activation function layer, and Concat(·) represents the concatenation operation.

[0073] like Figure 5 As shown in FIG. 1 , the one-vs-rest relationship module is used to perform deeper feature extraction on the local block features, so that the features at each local level can contain the information of the corresponding part itself and other body parts, and better reflect the relationship between the body parts.

[0074] P i For example, for P i Other local features P j Perform global average pooling to get R i , the calculation process is shown in formula 4:

[0075]

[0076] Among them, P j represents the local features of other parts except the local features of the i-th part;

[0077] P i and R i The two parts of the features are respectively reduced in dimension through a sub-network consisting of a 1×1 convolution layer, a BN normalization layer, and a ReLU activation function layer to obtain the feature The two are concatenated and sent to a sub-network again to reduce the 2c dimension to c dimension, and finally The local features Q with global connections are obtained by integration i , the specific implementation process is shown in formula 5:

[0078]

[0079] Among them, Q i represents a local relation feature with global connection, CBR represents a subnetwork consisting of a 1×1 convolutional layer, a BN normalization layer, and a ReLU activation function layer, and Concat(·) represents a concatenation operation.

[0080] like Figure 6 As shown in Figure 6, the three loss functions of cross entropy loss, difficult sample sampling triplet loss and center loss are used for joint training to supervise the model training process, reduce the classification error, constrain the inter-class distance and intra-class distance of the sample, so that the network model can learn more discriminative features and improve the generalization ability of the network model. The calculation process of the cross entropy loss function is shown in Formula 6 and Formula 7:

[0081]

[0082]

[0083] Among them, L ID_loss represents the cross entropy loss function, K represents the number of categories, c represents a certain category, q i Represents feature q i Output value after classification by the fully connected layer; N and y n Represent the number of mini-batch input images and true labels, respectively. Represents each feature q i The predicted label of

[0084] The calculation process of the triplet loss function for difficult sample sampling is shown in Formula 8:

[0085]

[0086] Among them, N KRepresents the number of entities in a small batch, N M represents the number of images corresponding to each entity, α represents the threshold parameter that controls the distance between positive and negative sample pairs in the feature space, They represent anchor images, positive samples, and negative samples respectively; k and l represent entity indexes respectively; m and n represent image indexes;

[0087] The calculation process of the center loss function is shown in Formula 9:

[0088]

[0089] Where m represents the batch size, and i Respectively represent the features and labels of the i-th picture in the batch data, Indicates that they belong to y i The characteristic center point of the sample data of the category;

[0090] The joint loss function finally adopted is composed of the cross entropy loss function, the difficult sample sampling triplet loss function and the center loss function. The calculation process is shown in Formula 10, Formula 11 and Formula 12:

[0091] L ML =λL GCLR +(1-λ)L PGF Formula 10

[0092] L PGF =L ID_loss Formula 11

[0093] L GCLR =L TriHard +αL ID_loss +βL Center_loss Formula 12

[0094] Among them, L ML represents the joint loss function, L PGF represents the cross entropy loss function adopted by the posture-guided feature, L GCLR Represents the three loss functions used for global contrast features and local relationship features, L TriHard represents the triplet loss function for difficult sample sampling, L ID_loss represents the cross entropy loss function, L Center_loss represents the central loss function, α, β, and λ represent the weight coefficients used to balance the losses of each part.

[0095] The experiment was implemented on NVIDIA TITAN V GPU (computer graphics card model) using PyTorch deep learning framework. ResNet50 without average pooling layer and fully connected layer was used as the backbone network, and the convolution step of the last layer was set to 1. During the training process, the input image was enhanced by random flipping and random erasing operations, and the image size was adjusted to 384×128. The total number of rounds was set to 60 and the batch size was set to 16. The initial learning rate was set to 0.01, and the learning rate was automatically multiplied by 0.1 for attenuation every 20 rounds. The stochastic gradient descent algorithm was used for optimization, and the weight attenuation parameter was set to 5×10 -4 , the momentum is set to 0.9; the weight coefficients α, β and λ are set to 2, 5×10 -4 and 0.2. Among them, PyTorch is a Python-based continuable computing package that provides two advanced features: 1. Tensor computing with powerful GPU acceleration (such as NumPy). 2. Deep neural network with automatic differentiation system. Resnet is the abbreviation of Residual Network. This series of networks is widely used in fields such as target classification and as part of the backbone classic neural network for computer vision tasks. Typical networks include resnet50, resnet101, etc.

[0096] This method is trained and tested on the Occluded-DukeMTMC dataset. The Occluded-DukeMTMC dataset is a large-scale dataset specially constructed by Miao et al. for the problem of pedestrian re-identification in occluded scenes. The training set includes 702 entities and 15,618 images, and the test set includes 1,110 entities, 2,210 occluded pedestrian images to be queried, and 17,661 candidate pedestrian images.

[0097] The evaluation index of the present invention adopts CMC and mAP which are commonly used in retrieval tasks. CMC refers to the cumulative matching curve, with the horizontal axis k and the vertical axis Rank-k, which is used to indicate the probability that the first k positions in the matching results hit the target to be queried; mAP refers to the mean average precision, with a value range of [0, 1]. Compared with the CMC evaluation index, its results can better reflect the performance of the pedestrian re-identification model. The larger the mAP index, the more positive samples the model retrieves, and the higher the ranking of these positive samples, which means the better the performance of the model.

[0098] Table 1 Performance of person re-identification method based on feature association improvement on Occluded-DukeMTMC dataset

[0099]

[0100] Ablation experiments were conducted on the pedestrian re-identification method based on feature association improvement, where PGFA represents the baseline method, OURS_IDloss (R) represents the introduction of the One-vs-rest relationship module alone, OURS_IDloss (G) represents the introduction of the global contrast pooling module alone, and OURS_IDloss represents the introduction of both the global contrast pooling module and the One-vs-rest relationship module. As can be seen from Table 1, the Rank-1 and mAP of the method that introduces the One-vs-rest relationship module alone are improved by 2.7% and 2.2% respectively; the Rank-1 and mAP of the method that introduces the global contrast pooling module alone are not improved; the method that introduces the global contrast pooling module and the One-vs-rest relationship module at the same time can achieve higher re-identification accuracy, with Rank-1 and mAP improved by 3.1% and 2.7% respectively.

[0101] The cumulative matching curve of the pedestrian re-identification method improved based on feature association on the Occluded-DukeMTMC dataset is as follows: Figure 7 As shown in the figure, it is intuitively reflected that the introduction of the global contrast pooling module and the One-vs-rest relationship module at the same time can enable the model to extract more discriminative and fine-grained pedestrian features and achieve higher re-identification accuracy.

[0102] Table 2 Performance of person re-identification method based on feature association and multi-loss fusion on Occluded-DukeMTMC dataset

[0103]

[0104] Ablation experiments were conducted on the pedestrian re-identification method based on feature association and multi-loss fusion, where PGFA represents the baseline method, OURS_IDloss represents the metric learning using only the cross entropy loss function, OURS_IDloss+TriHard represents the metric learning using both the cross entropy loss function and the hard sample sampling triplet loss function, and OURS_IDloss+TriHard+Centerloss represents the metric learning using the three loss functions of cross entropy loss, hard sample sampling triplet loss, and center loss. As can be seen from Table 2, the Rank-1 and mAP of the method using both the cross entropy loss and the hard sample sampling triplet loss increased by 2.1% and 3.3% respectively; the Rank-1 and mAP of the method using both the cross entropy loss and the hard sample sampling triplet loss and the center loss increased by 3.5% and 4.2% respectively.

[0105] The cumulative matching curve of the pedestrian re-identification method based on feature association and multi-loss fusion on the Occluded-DukeMTMC dataset is shown in the figure. Figure 8As shown, it intuitively reflects that using three loss functions, namely cross entropy loss, hard sample sampling triplet loss and center loss, to supervise the training process of the model can achieve higher re-identification accuracy.

[0106] like Fig. 9 As shown in the figure, a pedestrian image is randomly selected as the query target, the improved method is tested, and the visual ranking results are returned. Among them, Query is the query target, and the images with T / F superscripts are the query results returned by the candidate library. T means that the query result and the query target belong to the same entity; F means that the query result and the query target do not belong to the same entity. It can be seen that the improved pedestrian re-identification method can return better ranking results. Among them, PGFA (Pose-Guided Feature Alignment) represents the baseline method, OURS_IDloss(R) represents the introduction of the One-vs-rest relationship module alone, OURS_IDloss(G) represents the introduction of the global contrast pooling module alone, OURS_IDloss represents the introduction of the global contrast pooling module and the One-vs-rest relationship module at the same time, OURS_IDloss+TriHard represents the introduction of the global contrast pooling module and the One-vs-rest relationship module while using the two loss functions of cross entropy loss and hard sample sampling triple loss, OURS_IDloss+TriHard+Centerloss represents the introduction of the global contrast pooling module and the One-vs-rest relationship module while using the three loss functions of cross entropy loss, hard sample sampling triple loss and center loss. Fig. 9 It can be seen that the present invention is effective and advanced in solving the pedestrian re-identification occlusion problem and can achieve higher re-identification accuracy.

[0107] The above implementation modes are not limitations of the present invention, and the present invention is not limited to the above examples. Any changes, modifications, additions or substitutions made by technicians in this technical field within the scope of the technical solution of the present invention also belong to the protection scope of the present invention.

Claims

1. A pedestrian re-identification method for occluded scenes, which is an improvement on the baseline method PGFA, and is characterized by: The method comprises the following steps: Step S1: Generate human key points with the help of pre-trained posture estimator, and combine global features to make the model pay more attention to the unobstructed pedestrian area and reduce the noise interference caused by the obstructed area; That is, the input image generates human key points through the pre-trained posture estimator; the key points are mapped to the original image to generate a heat map, which is down-sampled by the bilinear interpolation method and combined with the global features to form a posture guidance feature; Step S2: Introduce a global contrast pooling module to reduce the noise interference caused by background clutter and occlusion, and better express the information of the entire pedestrian body area. The local block features are obtained through the global contrast pooling module to obtain global contrast features; Step S3: Perform deeper feature extraction on the local block features through the One-vs-rest relationship module, so that the features at each local level contain information about the corresponding part itself and other body parts, and better reflect the relationship between the body parts; Step S31: For the i-th local feature P i Other local features P j Perform global average pooling to get R i ; Step S32: P i and R i The two parts of the features are respectively reduced in dimension through a sub-network consisting of a 1×1 convolution layer, a BN normalization layer, and a ReLU activation function layer to obtain the feature and The two are concatenated and sent to a sub-network again to reduce the 2c dimension to c dimension, and finally The local features Q with global connections are obtained by integration i ; Step S4: The model is supervised by jointly training the cross entropy loss function, the hard sample sampling triplet loss function and the center loss function, so that the model ensures the accuracy of the predicted labels while considering the inter-class discreteness and intra-class compactness.

2. The pedestrian re-identification method for occluded scenes according to claim 1, characterized in that: The step S1 specifically includes the following steps: Step S11: Input a pedestrian image, i.e., the original image, and generate the human body key points M through the pre-trained posture estimator i , the coordinates corresponding to each key point (x i ,y i ) and confidence Step S12: Remove key points with low confidence through filtering mechanism, that is, The key point coordinates greater than the threshold θ are retained, and the confidence The key point coordinates less than the threshold θ are removed, where the filtering mechanism is shown in Formula 1: Among them, M i 、(x i ,y i )and They represent the i-th key point and the coordinates and confidence corresponding to the point, θ represents the threshold in the filtering mechanism, and N represents the number of key points; Step S13: Map the key points to the original image to generate a heat map, downsample it using a bilinear interpolation method, and combine it with the global features to form a posture guidance feature; Step S14: concatenate the posture guidance features obtained through average pooling and maximum pooling with the global features after average pooling in the local feature branch, and perform dimensionality reduction through a fully connected layer; Step S15: Perform label prediction on the extracted global features through the fully connected layer and the softmax layer.

3. The pedestrian re-identification method for occluded scenes according to claim 1, characterized in that: The step S2 specifically includes the following steps: Step S21: The local block features P1 to P6 are subjected to global maximum pooling and global average pooling to obtain P max and P avg , subtract the two to obtain the difference feature P cont , the calculation process is shown in Formula 2: P cont =P max -P avg Formula 2 Step S22: P max and P cont The two parts of the features are respectively reduced in dimension through a sub-network consisting of a 1×1 convolution layer, a BN normalization layer, and a ReLU activation function layer to obtain the feature and The two are concatenated and sent to a sub-network again to reduce the 2c dimension to c dimension, and finally The representative global feature Q0 is obtained by adding them together. The specific implementation process is shown in Formula 3: Among them, Q0 represents the global contrast feature, CBR represents the subnetwork consisting of a 1×1 convolution layer, a BN normalization layer, and a ReLU activation function layer, and Concat(·) represents the concatenation operation.

4. The pedestrian re-identification method for occluded scenes according to claim 1, characterized in that: In step S3: The calculation process of step S31 is shown in formula 4: Among them, P j represents the local features of other parts except the local features of the i-th part; The specific implementation process of step S32 is shown in formula 5: Among them, Q i represents a local feature with global connections, CBR represents a subnetwork consisting of a 1×1 convolutional layer, a BN normalization layer, and a ReLU activation function layer, and Concat(·) represents a concatenation operation.

5. The pedestrian re-identification method for occluded scenes according to claim 1, characterized in that: The step S4 specifically comprises the following steps: Step S41: The cross entropy loss function is used to constrain the posture guidance feature, that is, the difference between the predicted label and the true label is calculated. The calculation process is shown in Formula 6 and Formula 7: Among them, L ID_loss represents the cross entropy loss function, K represents the number of categories, c represents a certain category, Represents feature q i Output value after classification by the fully connected layer; N and y n Represent the number of mini-batch input images and true labels, respectively. Represents each feature q i The predicted label of Step S42: using two loss functions, namely, the difficult sample sampling triplet loss and the center loss, to constrain the global contrast features and the local relationship features; The calculation process of the triplet loss function for difficult sample sampling is shown in Formula 8: Among them, N K Represents the number of entities in a small batch, N M represents the number of images corresponding to each entity, α represents the threshold parameter that controls the distance between positive and negative sample pairs in the feature space, and They represent anchor images, positive samples, and negative samples respectively; k and l represent entity indexes respectively; m and n represent image indexes; The calculation process of the center loss function is shown in Formula 9: Where m represents the batch size, and i Respectively represent the features and labels of the i-th picture in the batch data, Indicates that they belong to y i The characteristic center point of the sample data of the category; Step S43: The loss functions in step S41 and step S42 are combined to jointly supervise the training process of the model, reduce the classification error, constrain the inter-class distance and intra-class distance of the sample, enable the network model to learn more discriminative features, and improve the generalization ability of the network model. The calculation process is shown in Formula 10, Formula 11, and Formula 12: L ML = λL GCLR + (1 - λ)L PGF Equation 10 L PGF =L ID _loss formula 11 L GCLR =L TriHard +αL ID_loss +βL Center_loss Formula 12 Among them, L ML represents the joint loss function, L PGF represents the cross entropy loss function adopted by the posture-guided feature, L GCLR Represents the three loss functions used for global contrast features and local relationship features, L TriHard represents the triplet loss function for difficult sample sampling, L ID_loss represents the cross entropy loss function, L Center_loss represents the central loss function, α, β, and λ represent the weight coefficients used to balance the losses of each part.