Pedestrian re-identification method, device and system, and storage medium

Through the weakly supervised multi-feature fusion pedestrian re-identification method, the ResNet-50 network and the multi-feature fusion module are used to generate pseudo image-level labels, which solves the problem of weak generalization ability of the pedestrian re-identification model in the open world and achieves efficient pedestrian recognition. and reduce annotation work.

CN118865447AInactive Publication Date: 2024-10-29GUANGXI UNIVERSITY OF TECHNOLOGY
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410975800.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the complex and ever-changing open world, the generalization ability of pedestrian re-identification models is weak, resulting in unsatisfactory recognition and retrieval results in surveillance and security systems. The main reason is that it is difficult to obtain and label strong supervision training data.

Method used

We adopt a multi-feature fusion pedestrian re-identification method based on weak supervision, extract multiple features through the ResNet-50 network, and use the fully connected layer and multi-feature fusion module to build a graph model to generate pseudo-image-level labels, reduce annotation work, and improve the performance of the model. and robustness.

Benefits of technology

It greatly reduces the annotation work, improves the performance and robustness of the pedestrian re-identification model, can effectively identify pedestrians in the open world, and reduces the need for annotation of video frames.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118865447A_ABST
    Figure CN118865447A_ABST
Patent Text Reader

Abstract

The invention discloses a pedestrian re-identification method, device and system, and a storage medium. The method comprises the following steps: S1, obtaining a pedestrian image; s2, obtaining a multi-feature fusion pedestrian re-identification model based on weak supervision according to the pedestrian image; and S3, inputting an actual scene pedestrian image into the multi-feature fusion pedestrian re-identification model based on weak supervision to carry out pedestrian identification. By adopting the technical scheme of the invention, the annotation work is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of image processing technology, and in particular relates to a pedestrian re-identification method and device, a system, and a storage medium. Background Art

[0002] Pedestrian re-identification (Re-ID) is mainly used in monitoring and security systems. Given the image of the pedestrian to be found as the target set, it is necessary to quickly identify when and where the pedestrian appears again under the camera network. At present, the recognition accuracy of the strong supervision model trained in the closed world has exceeded the human level, but the recognition and retrieval effect in the complex and changeable scenes in reality is still not ideal. The main reason is that the model has weak generalization ability. The large number of pedestrians in the real open world and the significant changes make it difficult to obtain and annotate the training data for strong supervision. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a multi-feature fusion pedestrian re-identification method and device, system, and storage medium based on weak supervision, which greatly reduces the annotation work.

[0004] To achieve the above object, the present invention adopts the following technical solution:

[0005] A pedestrian re-identification method, comprising:

[0006] Step S1, obtaining a pedestrian image;

[0007] Step S2: obtaining a pedestrian re-identification model based on weak supervision and multi-feature fusion according to the pedestrian image;

[0008] Step S3: input the actual scene pedestrian image into the multi-feature fusion pedestrian re-identification model based on weak supervision to perform pedestrian recognition.

[0009] Preferably, step S2 comprises:

[0010] Step S21: Input the pedestrian image into the ResNet-50 network model in the form of a package to extract multiple features, and use the fully connected layer to obtain a rough classification probability, and use the obtained classification probability as a unary item in the probabilistic graphical model;

[0011] Step S22, obtaining feature information of pedestrian images at different viewing angles through a multi-feature fusion module, and constructing feature relationships between pedestrian images at different viewing angles as binary items in a graph model;

[0012] Step S23, adding the unary term and the binary term to form a classification loss function, and minimizing the loss function to obtain a pseudo image-level label for each image;

[0013] Step S24: Use pseudo labels to supervise the learning of the multi-feature fusion person re-identification model based on weak supervision.

[0014] Preferably, the multi-feature fusion module consists of a backbone network for feature map extraction and multiple sub-networks for shallow feature processing.

[0015] The present invention also provides a pedestrian re-identification device, comprising:

[0016] An acquisition module, used for acquiring pedestrian images;

[0017] The training module is used to obtain a pedestrian re-identification model based on weak supervision and multi-feature fusion according to pedestrian images;

[0018] The recognition module is used to input the actual scene pedestrian images into the multi-feature fusion pedestrian re-identification model based on weak supervision for pedestrian recognition.

[0019] Preferably, the training model includes:

[0020] The first processing unit is used to input the pedestrian image into the ResNet-50 network model in the form of a package organization to extract multiple features, and use the fully connected layer to obtain a rough classification probability, and use the obtained classification probability as a unary item in the probabilistic graphical model;

[0021] A first processing unit, configured to obtain feature information of pedestrian images at different viewing angles through a multi-feature fusion module, and construct feature relationships between pedestrian images at different viewing angles as binary items in a graph model;

[0022] A first processing unit, configured to add the unary term and the binary term to form a classification loss function, and minimize the loss function to obtain a pseudo image-level label for each image;

[0023] A learning unit for using pseudo labels to supervise the learning of a weakly supervised multi-feature fusion person re-identification model.

[0024] Preferably, the multi-feature fusion module consists of a backbone network for feature map extraction and multiple sub-networks for shallow feature processing.

[0025] The present invention also provides a pedestrian re-identification system, comprising: a memory and a processor, wherein the memory stores a computer program executed by the processor, and the computer program executes a pedestrian re-identification method when executed by the processor.

[0026] The present invention also provides a storage medium, on which a computer program is stored, and the computer program executes the pedestrian re-identification method when running.

[0027] The present invention designs a multi-feature fusion pedestrian re-identification model based on weak supervision, introduces a multi-feature fusion mechanism, extracts feature information of different layers into the same feature space, and fuses them into deep and shallow joint features, so as to make full use of the rich information in the image and improve the performance and robustness of the pedestrian re-identification model. Secondly, the target person is matched with the unprocessed surveillance video. It is only necessary to know that the identity appears in the video without annotating any frame of the video during the training process. The annotation of the training image is simplified by replacing the accurate annotation with a broad annotation, that is, the identity of the pedestrians that have appeared in the video is placed in a package, and a video-level label is assigned to each package, which will greatly reduce the annotation work. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0029] Figure 1 This is a flow chart of a pedestrian re-identification method according to an embodiment of the present invention;

[0030] Figure 2 This is a schematic diagram of the structure of a multi-feature fusion person re-identification model based on weak supervision;

[0031] Figure 3 Schematic diagram of triplet loss. DETAILED DESCRIPTION

[0032] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0033] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0034] Embodiment 1:

[0035] like Figure 1 As shown, an embodiment of the present invention provides a pedestrian re-identification method, comprising:

[0036] Step S1, obtaining a pedestrian image;

[0037] Step S2: obtaining a pedestrian re-identification model based on weak supervision and multi-feature fusion according to the pedestrian image;

[0038] Step S3: input the actual scene pedestrian image into the multi-feature fusion pedestrian re-identification model based on weak supervision to perform pedestrian recognition.

[0039] Further, step S2 comprises:

[0040] Step S21: Input the pedestrian image into the ResNet-50 network model in the form of a package to extract multiple features, and use the fully connected layer to obtain a rough classification probability, and use the obtained classification probability as a unary item in the probabilistic graphical model;

[0041] Step S22, obtaining feature information of pedestrian images from different perspectives through a multi-feature fusion module, and constructing the feature relationship between pedestrian images from different perspectives as a binary item in a graph model; wherein the multi-feature fusion module is composed of a backbone network for feature graph extraction and a plurality of sub-networks for shallow feature processing;

[0042] Step S23, adding the unary term and the binary term to form a classification loss function, and minimizing the loss function to obtain a pseudo image-level label for each image;

[0043] Step S24: Use pseudo labels to supervise the learning of the multi-feature fusion person re-identification model based on weak supervision.

[0044] Furthermore, although weak annotations cannot directly obtain accurate information about pedestrian images, they can reflect the overall dependencies between pedestrian images and help build image difference models across camera views. Figure 2 As shown in the figure, the solid line with a diamond icon represents the forward propagation process during training, the solid line represents the initialization and pseudo-label generation process, and the solid line with a triangle icon represents the back propagation process.

[0045] The embodiment of the present invention uses ResNet-50 as the feature extraction backbone. Specifically, there is a fully connected layer at the last layer of the feature extraction module, which uses the Softmax classifier for rough classification. The obtained person classification probability is regarded as a rough pedestrian label estimate, indicating the possibility that the person ID exists in the package. The rough estimate obtained directly from the extraction network is further refined to generate a more accurate pseudo image label for each pedestrian image. Bag constraints are used to avoid possible mislabeling and reduce the situation where pedestrian images are assigned pedestrian labels that do not exist in the bag-level annotations. On the contrary, bag constraints encourage the assignment of pedestrian IDs that already exist in the bag-level annotations to the corresponding pedestrian images. Such a constraint mechanism helps to improve the robustness and accuracy of the model, ensure the consistency and reliability of label assignment, and effectively deal with uncertainties and errors in data annotation.

[0046] Furthermore, in weakly supervised person re-identification, the bag-level label L is provided, but the image-level label y is unknown. Assume that a bag contains n person IDs and there are m IDs in the pedestrian image dataset. For each image x j The preliminary image-level label Y j can be inferred from its bag-level label l, then, Y can be used as a bag constraint to derive a pseudo image-level label Calculated by the following formula, the label can be further used to supervise the learning of multi-feature fusion pedestrian re-identification model based on weak supervision.

[0047] in

[0048] The embodiment of the present invention uses differentiable computer graphics to generate pseudo image-level labels for the image of the pedestrian in the bag. It can be considered that x i is an image of a person in a bag, where i is the index of an image in a bag. i Assign to x i There will be a label loss. The label loss L(y|x) of the image can be defined as follows:

[0049]

[0050] Among them, U represents a group of images, and V represents two groups of images. Φ(y i |xi) is a unary term, measuring the label y i Assigned to person image x i The loss of i ,y j |x i ,x j ) is measured as a pair of images (x i ,x j ) is a pairwise term that penalizes the assigned label. Graphical modeling is used to smooth the uncertain prediction of person identity. The unary term makes a rough estimate for one image, and the bi-ary term smoothes the label information of multiple images by using multiple different features in multiple images.

[0051] The unary term is defined as follows:

[0052]

[0053] Among them, P i is the pedestrian identity x finally obtained in the feature extraction network i The rough classification probability of θ is θ. θ represents the element product. Since the classification value obtained by a single unary item is easily inconsistent due to image noise interference, the binary item constructed by multi-feature information fusion can be used for smoothing and interaction.

[0054] Furthermore, when the illumination is not strong, the color feature is more dominant, but is more sensitive to viewpoint changes than other features. However, according to the texture feature, the contour boundary can be easily processed. Therefore, the embodiment of the present invention selects color and texture features to extract the most obvious appearance and posture contour information to distinguish the identities of different pedestrians.

[0055] In order to utilize low-level and high-level information for pedestrian re-identification, a multi-feature fusion module is introduced, which consists of a backbone network for feature map extraction and multiple sub-networks for shallow feature processing. The backbone network uses the ResNet-50 network with a multi-level architecture, and the shallow feature maps tend to capture detailed information. The Softamx classifier is used to obtain shallow feature maps from different layers of the backbone network and put them in the feature space. Then, the extracted deep and shallow features are connected together as the joint features of pedestrians, which together with the binary terms and the unigram terms constitute the label loss function, preparing for obtaining appropriate image-level labels.

[0056] Let X = {x1, x2, …, x n} is the available dataset and x is the training image. Let Represents the sample space. For given feature spaces A and B, two feature vectors T1 and T2 extracted from the same image ξ can be expressed as A = {T1|T1∈R p} and B = {T2|T2∈R q}.

[0057] For a given pedestrian image x p , extract the d-dimensional feature vector, expressed as follows:

[0058]

[0059] The combined feature vector is expressed as follows.

[0060] U={{x i ,...,x n},{x j ,...,x n},{x d ,...,x n}}

[0061] The similarity between two image samples can be calculated based on the Mahalanobis distance using the following formula:

[0062] W ij =exp(-(x i -x j ) T M(x i -x j ))

[0063] The binary terms are defined as follows:

[0064]

[0065] Similar to unary terms, binary terms are also subject to package-level annotation Y i and Y j The Potts model gives a simple label compatibility function ζ(y i ,y j )∈{0,1}, expressed as follows:

[0066]

[0067] It introduces a penalty for similar images that are assigned different labels.

[0068] By minimizing the label loss of the image, we can obtain images of people Pseudo image-level labels Once such labels are generated, they are used to update the network parameters.

[0069] The embodiment of the present invention adds the unary term and the binary term to form a classification loss function (i.e., triplet loss), which is more suitable for the person re-identification task. Because the purpose of triplet loss is to shorten the distance between the reference sample and the positive sample in the same category in a feature space, and to push away the distance between the reference sample and the negative sample in other categories, thereby enhancing the distinction between different identities. This idea is very consistent with the goal of the person re-identification task, and the similarity of two images is calculated in a given training data set and test data set. Figure 3 Schematic diagram of triplet loss.

[0070] To determine the image of the reference sample Than any image with anyone else All other images that are closer to the baseline sample The principle can be expressed as follows:

[0071]

[0072] Where Δ is the margin enforced between positive and negative sample pairs. Г is the set of all possible triplets in the training dataset, with cardinality N.

[0073] In order to accelerate the convergence speed of the multi-feature fusion pedestrian re-identification model based on weak supervision and increase the recognition accuracy, a weakly supervised triplet loss function is proposed, which is defined by the following formula:

[0074]

[0075] Where n is the number of bags in the training batch, represents the L2 norm. and Image-level pseudo-labels. And relax the maximum value operation to the median operation, This means that the i-th and j-th samples belong to the same class.

[0076] The embodiments of the present invention eliminate the need for expensive labeling work in traditional pedestrian re-identification by considering the construction of a weakly supervised multi-feature fusion pedestrian re-identification algorithm. In this weakly supervised environment, there is no need to specifically annotate individuals in surveillance videos. The only requirement is to indicate whether a person appears in a given video, that is, whether it is in a bag. In such a setting, given a set of detection person images, a person and the video in which he appears can be searched. The embodiments of the present invention transform the weakly supervised pedestrian re-identification problem into a multi-instance multi-label problem, and use multi-feature fusion to capture the dependencies between images in each weakly annotated bag. This method can mine potential intra-class changes in bags and potential cross-view changes of the same person across bags from all camera views, and use a graph model to assign pseudo labels to images. Finally, images with fine labels are used for training. The embodiments of the present invention can use less annotation work to train the model.

[0077] Embodiment 2:

[0078] The embodiment of the present invention further provides a pedestrian re-identification device, comprising:

[0079] An acquisition module, used for acquiring pedestrian images;

[0080] The training module is used to obtain a pedestrian re-identification model based on weak supervision and multi-feature fusion according to pedestrian images;

[0081] The recognition module is used to input the actual scene pedestrian images into the multi-feature fusion pedestrian re-identification model based on weak supervision for pedestrian recognition.

[0082] As an implementation method of an embodiment of the present invention, the training model includes:

[0083] The first processing unit is used to input the pedestrian image into the ResNet-50 network model in the form of a package organization to extract multiple features, and use the fully connected layer to obtain a rough classification probability, and use the obtained classification probability as a unary item in the probabilistic graphical model;

[0084] A first processing unit, configured to obtain feature information of pedestrian images at different viewing angles through a multi-feature fusion module, and construct feature relationships between pedestrian images at different viewing angles as binary items in a graph model;

[0085] A first processing unit, configured to add the unary term and the binary term to form a classification loss function, and minimize the loss function to obtain a pseudo image-level label for each image;

[0086] A learning unit for using pseudo labels to supervise the learning of a weakly supervised multi-feature fusion person re-identification model.

[0087] As an implementation method of an embodiment of the present invention, the multi-feature fusion module is composed of a backbone network for feature map extraction and multiple sub-networks for shallow feature processing.

[0088] Embodiment 3:

[0089] An embodiment of the present invention further provides a pedestrian re-identification system, comprising: a memory and a processor, wherein the memory stores a computer program executed by the processor, and the computer program executes a pedestrian re-identification method when executed by the processor.

[0090] Embodiment 4:

[0091] An embodiment of the present invention further provides a storage medium, on which a computer program is stored, and the computer program executes a pedestrian re-identification method when running.

[0092] The embodiments described above are only descriptions of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.

Claims

1. A pedestrian re-identification method, characterized in that: include: Step S1, obtaining a pedestrian image; Step S2: obtaining a pedestrian re-identification model based on weak supervision and multi-feature fusion according to the pedestrian image; Step S3: input the actual scene pedestrian image into the multi-feature fusion pedestrian re-identification model based on weak supervision to perform pedestrian recognition.

2. The pedestrian re-identification method according to claim 1, characterized in that: Step S2 includes: Step S21: Input the pedestrian image into the ResNet-50 network model in the form of a package to extract multiple features, and use the fully connected layer to obtain a rough classification probability, and use the obtained classification probability as a unary term in the probabilistic graphical model; Step S22, obtaining feature information of pedestrian images at different viewing angles through a multi-feature fusion module, and constructing feature relationships between pedestrian images at different viewing angles as binary items in a graph model; Step S23, adding the unary term and the binary term to form a classification loss function, and minimizing the loss function to obtain a pseudo image-level label for each image; Step S24: Use pseudo labels to supervise the learning of the multi-feature fusion person re-identification model based on weak supervision.

3. The pedestrian re-identification method according to claim 2, characterized in that: The multi-feature fusion module consists of a backbone network for feature map extraction and multiple sub-networks for shallow feature processing.

4. A pedestrian re-identification device, characterized in that: include: An acquisition module, used for acquiring pedestrian images; The training module is used to obtain a pedestrian re-identification model based on weak supervision and multi-feature fusion according to pedestrian images; The recognition module is used to input the actual scene pedestrian images into the multi-feature fusion pedestrian re-identification model based on weak supervision for pedestrian recognition.

5. The pedestrian re-identification device according to claim 4, characterized in that: The training modules include: The first processing unit is used to input the pedestrian image into the ResNet-50 network model in the form of a package organization to extract multiple features, and use the fully connected layer to obtain a rough classification probability, and use the obtained classification probability as a unary item in the probabilistic graphical model; A first processing unit, configured to obtain feature information of pedestrian images at different viewing angles through a multi-feature fusion module, and construct feature relationships between pedestrian images at different viewing angles as binary items in a graph model; A first processing unit, configured to add the unary term and the binary term to form a classification loss function, and minimize the loss function to obtain a pseudo image-level label for each image; A learning unit for using pseudo labels to supervise the learning of a weakly supervised multi-feature fusion person re-identification model.

6. The pedestrian re-identification device according to claim 5, characterized in that: The multi-feature fusion module consists of a backbone network for feature map extraction and multiple sub-networks for shallow feature processing.

7. A pedestrian re-identification system, characterized in that: include: A memory and a processor, wherein the memory stores a computer program executed by the processor, and when the computer program is executed by the processor, the pedestrian re-identification method according to any one of claims 1 to 3 is executed.

8. A storage medium having a computer program stored thereon, wherein the computer program executes the pedestrian re-identification method according to any one of claims 1 to 3 when run.

Citation Information

Patent Citations

  • Pedestrian re-identification method based on enhanced deep convolutional neural network

    CN108960141A

  • Weak supervision image semantic segmentation method, system and device based on cross-image association

    CN111723814A

  • Methods and device for generating target re-identification model and performing target re-identification

    CN112149637A

  • Weak supervision pedestrian re-recognition method based on trajectory correlation learning

    CN113128410A