Person re-identification method, device and electronic device based on multimodal information assistance in complex scenarios

By fusing human body attribute description text with pedestrian image features, a multi-modal information interactive fusion feature representation is constructed, which solves the problem of low accuracy of person re-identification in complex scenes and improves the accuracy of recognition.

CN118570846BActive Publication Date: 2024-10-29HANGZHOU CLOSELI TECH CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202411062100.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-10-29
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

Existing person re-identification technology has low accuracy in complex scenarios (such as similar clothing, complex environments, and large lighting changes), and the loss of weak local feature information in the deep network leads to misrecognition, and single visual feature matching is not reliable enough.

Method used

A large language model is used to generate a comprehensive description text of human body attributes, and the semantic encoding features of the text are fused with the pedestrian image features extracted by the traditional Reid model to construct a multi-modal information interactive fusion feature representation to assist in similarity calculation to identify the same person.

Benefits of technology

By introducing text information describing human body attributes, misrecognition caused by unclear single visual features is avoided, and the accuracy of person re-identification in complex environments is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570846B_ABST
    Figure CN118570846B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of person re-identification, and specifically discloses a person re-identification method, device and electronic device based on multimodal information assistance in complex scenes, which first analyzes the human attributes of two pedestrian images under different camera perspectives, generates corresponding human attribute all-round description texts through a large language model, and then fuses the semantic coding features of the text with the pedestrian image features extracted by the traditional re-ID model of the pedestrian image to construct a multimodal information interactive fusion feature representation of the pedestrian, and then uses this multimodal information interactive fusion feature representation as the basis for similarity calculation to identify whether the pedestrian objects in the two images are the same person. In this way, by introducing the text information describing the human attributes as an auxiliary feature, the misidentification caused by the unclear visual features of a single pedestrian is avoided, thereby improving the accuracy of person re-identification in complex environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of person re-identification, and more specifically, to a person re-identification method, device and electronic device based on multimodal information assistance in complex scenarios. Background Art

[0002] Person re-identification is an important research direction in the fields of computer vision, pattern recognition and people tracking. Person re-identification refers to the technology of identifying the same person from different camera perspectives. This technology has a wide range of applications in security monitoring, intelligent transportation, public safety and other fields. However, due to the similarity of people's clothing, as well as the influence of factors such as environment and lighting, person re-identification is still a challenging problem.

[0003] Existing person re-identification technologies mainly extract global features of the human body, such as color, texture, shape, etc., and then use these features for matching to achieve person re-identification. For example, some methods use deep learning models, such as convolutional neural networks (CNNs), to extract human features. Although existing person re-identification technologies have solved the problem of person re-identification to a certain extent, the accuracy of person re-identification is still not high in complex scenarios, such as when people wear similar clothes, the environment is complex, and the lighting changes greatly.

[0004] In addition, existing methods often only focus on the global features of the human body and ignore the local features of the human body. The main reason is that in the deep network, the weak local features will gradually lose information as the network depth increases, which may lead to a low similarity score between two images near the threshold. If no further analysis is performed, the results relying on a single model may lead to a certain degree of erroneous recognition results.

[0005] Therefore, we look forward to an optimized person re-identification method based on multimodal information assistance in complex scenarios. Summary of the invention

[0006] In order to solve the above technical problems, the present application is proposed. The embodiments of the present application provide a method, device and electronic device for person re-identification based on multimodal information assistance in complex scenarios, which first analyzes the human attributes of two pedestrian images under different camera perspectives respectively, and generates corresponding human attribute all-round description texts through a large language model, and then fuses the semantic coding features of the text with the pedestrian image features extracted by the traditional re-id model of the pedestrian image to construct a multimodal information interactive fusion feature representation of the pedestrian, and then uses this multimodal information interactive fusion feature representation as the basis for similarity calculation to identify whether the pedestrian objects in the two images are the same person. In this way, by introducing text information describing human attributes as an auxiliary feature, misidentification caused by the unclear visual features of a single pedestrian is avoided, thereby improving the accuracy of person re-identification in complex environments.

[0007] Accordingly, according to one aspect of the present application, a method for person re-identification based on multimodal information assistance in complex scenarios is provided, which includes:

[0008] Acquire a first target object image captured by a first camera;

[0009] Acquire a second target object image captured by a second camera;

[0010] Inputting the first target object image and the second target object image into a human attribute descriptor based on a large language model respectively to obtain a first target object attribute description text and a second target object attribute description text;

[0011] Inputting the first target object image and the first target object attribute description text, the second target object image and the second target object attribute description text into a re-id model respectively to obtain a first target object image-attribute description interactive fusion representation vector and a second target object image-attribute description interactive fusion representation vector;

[0012] Calculating the cosine similarity between the first target object image-attribute description interactive fusion representation vector and the second target object image-attribute description interactive fusion representation vector;

[0013] Based on the comparison between the cosine similarity and a preset threshold, it is determined whether the pedestrian objects in the first target object image and the second target object image are the same object.

[0014] According to another aspect of the present application, a person re-identification device based on multimodal information assistance in complex scenarios is provided, which includes:

[0015] A first target object image acquisition module, used to acquire a first target object image captured by a first camera;

[0016] A second target object image acquisition module, used to acquire a second target object image captured by a second camera;

[0017] A human attribute description module, used for inputting the first target object image and the second target object image into a human attribute descriptor based on a large language model to obtain a first target object attribute description text and a second target object attribute description text;

[0018] a multimodal information interactive fusion module, used to input the first target object image and the first target object attribute description text, the second target object image and the second target object attribute description text into a reid model respectively to obtain a first target object image-attribute description interactive fusion representation vector and a second target object image-attribute description interactive fusion representation vector;

[0019] A similarity measurement module, used to calculate the cosine similarity between the first target object image-attribute description interactive fusion representation vector and the second target object image-attribute description interactive fusion representation vector;

[0020] The person re-identification module is used to determine whether the pedestrian objects in the first target object image and the second target object image are the same object based on the comparison between the cosine similarity and a preset threshold.

[0021] According to another aspect of the present application, an electronic device is provided, comprising: a memory for storing instructions; a processor coupled to the memory, the processor being configured to execute, based on the instructions stored in the memory, a method for person re-identification based on the assistance of multimodal information in complex scenarios as described above.

[0022] Compared with the prior art, the person re-identification method, device and electronic device provided by the present application based on multimodal information assistance in complex scenes first analyzes the human attributes of two pedestrian images under different camera perspectives respectively, generates corresponding human attribute all-round description texts through a large language model, and then fuses the semantic coding features of the text with the pedestrian image features extracted by the traditional re-ID model of the pedestrian image to construct a multimodal information interactive fusion feature representation of the pedestrian, and then uses this multimodal information interactive fusion feature representation as the basis for similarity calculation to identify whether the pedestrian objects in the two images are the same person. In this way, by introducing text information describing human attributes as an auxiliary feature, misidentification caused by the unclear visual features of a single pedestrian is avoided, thereby improving the accuracy of person re-identification in complex environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0024] Figure 1 This is a flowchart of a method for person re-identification based on multimodal information assistance in complex scenarios according to an embodiment of the present application.

[0025] Figure 2 Schematic diagram of the architecture of a person re-identification method based on multimodal information assistance in a complex scenario according to an embodiment of the present application.

[0026] Figure 3 A flowchart of inputting the first target object image and the first target object attribute description text, the second target object image and the second target object attribute description text into a reid model respectively to obtain a first target object image-attribute description interactive fusion representation vector and a second target object image-attribute description interactive fusion representation vector in a person re-identification method based on multimodal information assistance in a complex scenario according to an embodiment of the present application.

[0027] Figure 4 A flowchart of inputting the first target object attribute description semantic encoding feature vector and the first target object person image feature vector into a feature interaction response fusion module based on an adaptive distinguishable mechanism in a person re-identification method based on multimodal information assistance in a complex scenario according to an embodiment of the present application to obtain the first target object image-attribute description interaction fusion representation vector.

[0028] Figure 5 The present invention is a flowchart of the training steps in a person re-identification method based on multimodal information assistance in a complex scenario according to an embodiment of the present application.

[0029] Figure 6 The block diagram is a device for person re-identification based on multimodal information assistance in complex scenarios according to an embodiment of the present application.

[0030] Figure 7 is a block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0031] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.

[0032] As mentioned in the above background technology, due to the characteristics of deep networks, in the process of person re-identification, as the network depth increases, the information of weak local features of the human body will be gradually lost, which will affect the recognition accuracy of the traditional pedestrian re-identification method based on a single visual feature. In response to the above technical problems, the technical concept of the present application is to first analyze the human attributes of two pedestrian images under different camera perspectives respectively, generate corresponding full-scale description texts of human attributes through a large language model, and then fuse the semantic coding features of the text with the pedestrian image features extracted by the traditional re-ID model of the pedestrian image to construct a multimodal information interactive fusion feature representation of the pedestrian, and then use this multimodal information interactive fusion feature representation as the basis for similarity calculation to identify whether the pedestrian objects in the two images are the same person. In this way, by introducing the text information describing the human attributes as an auxiliary feature, the misidentification caused by the unclear visual features of a single pedestrian is avoided, thereby improving the accuracy of person re-identification in complex environments.

[0033] Figure 1 This is a flowchart of a method for person re-identification based on multimodal information assistance in complex scenarios according to an embodiment of the present application. Figure 2 FIG. 1 is a schematic diagram of the architecture of a person re-identification method based on multimodal information assistance in a complex scenario according to an embodiment of the present application. Figure 1 and Figure 2 As shown, according to the embodiment of the present application, the method for person re-identification based on multimodal information assistance in complex scenes includes the following steps: S110, obtaining a first target object image captured by a first camera; S120, obtaining a second target object image captured by a second camera; S130, respectively inputting the first target object image and the second target object image into a human attribute descriptor based on a large language model to obtain a first target object attribute description text and a second target object attribute description text; S140, respectively inputting the first target object image and the first target object attribute description text, the second target object image and the second target object attribute description text into a re-ID model to obtain a first target object image-attribute description interactive fusion representation vector and a second target object image-attribute description interactive fusion representation vector; S150, calculating the cosine similarity between the first target object image-attribute description interactive fusion representation vector and the second target object image-attribute description interactive fusion representation vector; S160, based on the comparison between the cosine similarity and a preset threshold, determining whether the pedestrian objects in the first target object image and the second target object image are the same object.

[0034] In the person re-identification method based on multimodal information assistance in the above-mentioned complex scene, the step S110 and the step S120 obtain the first target object image captured by the first camera and the second target object image captured by the second camera. It should be understood that the core challenge of person re-identification (ReID) lies in the tracking and identification of pedestrians between different cameras. Since different cameras may have different viewing angles, lighting conditions, resolutions, etc., the images of the same pedestrian under different cameras may be significantly different. In order to achieve high-precision person re-identification, in the technical solution of the present application, the first target object image and the second target object image captured by different cameras are first obtained to use the visual information of the image itself to characterize the characteristics of the pedestrian and perform person identification.

[0035] In the method for person re-identification based on multimodal information assistance in the above complex scene, the step S130, respectively inputs the first target object image and the second target object image into a human attribute descriptor based on a large language model to obtain a first target object attribute description text and a second target object attribute description text. It should be understood that considering that the current mainstream person re-identification method only uses a single pedestrian visual feature for recognition, and due to the existence of convolution operations in the deep network, the local features of the person in the image will be lost in the deep network, resulting in a small proportion of local feature information in the output feature representation, and the local details of the human body such as clothing texture, accessories and other possible recognition key points cannot be effectively utilized. To this end, in the technical solution of the present application, the first target object image and the second target object image are further analyzed for human attributes by a human attribute descriptor based on a large language model. Specifically, first, the first target object image and the second target object image are annotated with human attributes to construct text labels, including but not limited to age estimation, gender, body orientation, hat, glasses, hairstyle, top, bottom, backpack type and other categories. At the same time, in order to make the text description more diverse and rich, this application designs a prompt template to guide the language generation of the large language model. By sending the attribute label and the pre-designed prompt template into the language large model, a text description including all the human attribute results in the image is obtained. In this way, the local and global attribute descriptions of the human body data are performed, avoiding the local detail features that are ignored when extracting the image appearance features, and the weak local features can be amplified to the same level as the global features through text descriptions. In the training process of the human attribute descriptor based on the large language model, large-scale image-text data pairs are used for comparative learning, so that the model can learn the correspondence between the image and the text, thereby generating a human attribute description text corresponding to the input image.

[0036] In the above-mentioned person re-identification method based on multimodal information assistance in complex scenarios, the step S140, the first target object image and the first target object attribute description text, the second target object image and the second target object attribute description text are respectively input into the re-id model to obtain the first target object image-attribute description interactive fusion representation vector and the second target object image-attribute description interactive fusion representation vector. Among them, Figure 3 The present invention is a flowchart of inputting the first target object image and the first target object attribute description text, the second target object image and the second target object attribute description text into the re-ID model to obtain the first target object image-attribute description interactive fusion representation vector and the second target object image-attribute description interactive fusion representation vector in the person re-identification method based on multimodal information assistance in complex scenarios according to an embodiment of the present application. Figure 3 As shown, the step S140 includes: S141, respectively inputting the first target object image and the second target object image into the pedestrian image feature extractor based on the reid model to obtain a first target object person image feature vector and a second target object person image feature vector; S142, respectively performing semantic encoding on the first target object attribute description text and the second target object attribute description text to obtain a first target object attribute description semantic encoding feature vector and a second target object attribute description semantic encoding feature vector; S143, fusing the first target object attribute description semantic encoding feature vector and the first target object person image feature vector to obtain the first target object image-attribute description interactive fusion representation vector; S144, fusing the second target object attribute description semantic encoding feature vector and the second target object person image feature vector to obtain the second target object image-attribute description interactive fusion representation vector.

[0037] Specifically, in step S141, the first target object image and the second target object image are respectively input into the pedestrian image feature extractor based on the ReID model to obtain the first target object character image feature vector and the second target object character image feature vector. That is, the ReID model is used to extract the high-dimensional feature representation of the target object image to express the appearance information of the human body in the image. In an embodiment of the present application, the ReID model can use a pre-trained deep convolutional neural network, such as ResNet, MobileNet and other variants, to perform multi-layer convolution and pooling operations on the input target object image to extract the main visual features in the target object image, such as color, texture and shape, etc., and mine the appearance information such as the macro structure and color of the pedestrian, so as to obtain the visual feature representation of the pedestrian image.

[0038] Specifically, in step S142, the first target object attribute description text and the second target object attribute description text are semantically encoded respectively to obtain a first target object attribute description semantic encoding feature vector and a second target object attribute description semantic encoding feature vector. That is, through semantic encoding, the semantic information of the first target object attribute description text and the second target object attribute description text are extracted respectively, and the attribute information of the target object is encoded into a computable feature vector. In a specific embodiment of the present application, the CLIP model is used to perform language encoding on the target object attribute description text. It should be understood that the CLIP model has the ability to jointly encode images and texts. In the training stage of the CLIP model, the labeled pedestrian image-human attribute description text pair is used as training data to fine-tune the CLIP model so that the text encoder module of the CLIP model can adapt to the person re-identification scenario, learn the semantic association between the image content and the human attribute description text, so that the human attribute text information can be more accurately semantically encoded. In the application stage, it is only necessary to use the text encoder module of the CLIP model to semantically encode the first target object attribute description text and the second target object attribute description text respectively, so as to obtain the encoded feature vector as the vectorized result of the local feature description of the human body attributes.

[0039] Specifically, the step S143 and the step S144 fuse the first target object attribute description semantic coding feature vector and the first target object person image feature vector to obtain the first target object image-attribute description interactive fusion representation vector, and fuse the second target object attribute description semantic coding feature vector and the second target object person image feature vector to obtain the second target object image-attribute description interactive fusion representation vector. That is, in order to make full use of the complementarity of the two multimodal information of the target object attribute description text and the target object image to improve the accuracy of person re-identification, the visual features of the image and the semantic features of the text are further fused.

[0040] In a specific example of the present application, the first target object attribute description semantic coding feature vector and the first target object person image feature vector are cascaded to obtain the first target object image-attribute description interactive fusion representation vector; the second target object attribute description semantic coding feature vector and the second target object person image feature vector are cascaded to obtain the second target object image-attribute description interactive fusion representation vector. That is, the text semantic coding feature vector and the image feature vector are spliced ​​by adopting the feature cascade fusion strategy, so as to realize the interactive fusion of text features and image features and generate a unique feature vector representation of the human body.

[0041] In particular, in the technical solution of the present application, it is also considered that the importance of image visual features and text semantic features may vary in different environments or scenes. For example, in cases of poor lighting conditions or severe pedestrian occlusion, the attribute information of the text description may be more critical. In normal lighting and clear views, the visual features of the image may provide more accurate pedestrian identity information. Therefore, in order to adapt to this dynamic change, in a preferred example of the present application, a feature interaction response fusion module based on an adaptive distinguishable mechanism is introduced to fuse text features and image features.

[0042] Specifically, in this preferred example, the first target object attribute description semantic encoding feature vector and the first target object person image feature vector are input into a feature interaction response fusion module based on an adaptive distinguishable mechanism to obtain the first target object image-attribute description interaction fusion representation vector; the second target object attribute description semantic encoding feature vector and the second target object person image feature vector are input into the feature interaction response fusion module based on an adaptive distinguishable mechanism to obtain the second target object image-attribute description interaction fusion representation vector.

[0043] Figure 4 The flowchart of the method for person re-identification based on multimodal information assistance in complex scenarios according to the embodiment of the present application is to input the semantic encoding feature vector of the first target object attribute description and the feature vector of the first target object person image into the feature interaction response fusion module based on the adaptive distinguishable mechanism to obtain the first target object image-attribute description interaction fusion representation vector. Figure 4As shown, the step S143 includes: S1431, calculating the position-by-position response between the first target object attribute description semantic encoding feature vector and the first target object person image feature vector to obtain the first target object image-attribute description position-by-position response feature vector; S1432, using the Softmax function to normalize the first target object image-attribute description position-by-position response feature vector to obtain a normalized first target object image-attribute description position-by-position response feature vector; S1433, inputting the normalized first target object image-attribute description position-by-position response feature vector into a learnable gating function to obtain a first target object image-attribute description position-by-position response feature vector. A target object image-attribute description response screening weight mask vector; S1434, calculating the position point multiplication between the first target object image-attribute description response screening weight mask vector and the normalized first target object image-attribute description position-by-position response feature vector to obtain the first target object image-attribute description position-by-position response distinguishable weight mask vector; S1435, calculating the position point multiplication between the first target object image-attribute description position-by-position response distinguishable weight mask vector and the first target object image-attribute description position-by-position response feature vector to obtain the first target object image-attribute description interactive fusion representation vector.

[0044] That is, the step S143 includes: processing the first target object attribute description semantic encoding feature vector and the first target object person image feature vector using the following feature interaction response fusion formula to obtain the first target object image-attribute description interaction fusion representation vector, wherein the feature interaction response fusion formula is:

[0045]

[0046] in, represents the semantic encoding feature vector describing the attribute of the first target object, represents the first target object person image feature vector, represents the first target object image-attribute description position-by-position response feature vector, is the normalized exponential function, represents the normalized first target object image-attribute description position-by-position response feature vector, represents the first target object image-attribute description response screening weight mask vector, represents the exponential function operation with e as the base, It means point multiplication by position. Represents the first target object image-attribute description interactive fusion representation vector.

[0047] Here, the feature interaction response fusion module first generates a position-by-position response feature vector by calculating the position-by-position interaction between text features and image features, and normalizes it using the Softmax function to balance the scale of the feature response and make the feature expression more balanced. Then, the normalized position-by-position response feature vector is adaptively learned through a learnable gating function and a response screening weight mask is output. The weight assignment is further refined through the mask operation to improve the distinguishability of feature selection. Finally, through the dot multiplication operation, the original position-by-position response feature vector is weighted position by position using the masked position-by-position response weight to obtain the final target object image-attribute description interaction fusion representation vector. Through this position-by-position weight refinement, it is ensured that the model can assign the most appropriate weight to each feature position, thereby more effectively capturing the dynamic importance of image and text features in different environments or scenes, achieving more flexible and accurate feature fusion, and further improving the performance of person re-identification.

[0048] In the person re-identification method based on multimodal information assistance in the above complex scenario, the step S150 calculates the cosine similarity between the first target object image-attribute description interactive fusion representation vector and the second target object image-attribute description interactive fusion representation vector. That is, the feature similarity between the two target objects is evaluated by the cosine similarity measurement method, so as to determine whether the pedestrian objects in the first target object image and the second target object image are the same object. Specifically, in the cosine similarity calculation process, the first target object image-attribute description interactive fusion representation vector and the second target object image-attribute description interactive fusion representation vector are first normalized to unit length, and then the cosine value of the angle between the two is calculated. The closer the value is to 1, the higher the similarity of the two vectors, and the closer it is to 0, the lower the similarity. In this way, the slight differences between the target objects can be effectively captured in the high-dimensional feature space, and the accuracy of re-identification can be improved.

[0049] In the person re-identification method based on multimodal information assistance in the above-mentioned complex scene, the step S160 determines whether the pedestrian object in the first target object image and the second target object image is the same object based on the comparison between the cosine similarity and the preset threshold. That is, a predefined threshold is set to determine whether the two target objects have reached sufficient similarity to be judged as the same person. If the cosine similarity between the two exceeds the preset threshold, it is considered that the two target objects have sufficient similarity and can be judged as the same person; conversely, if the similarity is lower than the preset threshold, it is considered that the two are not the same person. In addition, in order to further improve the accuracy of the decision, samples whose scores fall near the threshold are considered to be error-prone samples and need to be re-analyzed with the help of auxiliary information. For example, in a specific example of the present application, the defined threshold is 0.7 and the error-prone interval is 0.65-0.75. For the results near the recognition threshold, the text label information of the local feature description is further added as an auxiliary feature vector to improve the accuracy of person re-identification. Specifically, the error-prone samples are sent to the human attribute analysis module to obtain attribute labels, and then the text description corresponding to the human attribute results is generated. The text description is then encoded by the text encoder to generate the corresponding feature vector, which is fused with the feature vector obtained by the reid model to form a multimodal human feature vector as the final feature vector representation. The similarity calculation and comparison analysis are re-performed to match the target object identity with the latest similarity score.

[0050] It should be understood that before using the above neural network model, it needs to be trained. That is to say, in the multimodal information-assisted person re-identification method in complex scenarios of the present application, it also includes a training step of training the human attribute descriptor based on the large language model and the pedestrian image feature extractor based on the re-ID model.

[0051] Figure 5 Flowchart of the training steps in the method for person re-identification based on multimodal information assistance in complex scenarios according to an embodiment of the present application. Figure 5As shown, the training step S200 includes: S210, obtaining training data, the training data including a first training target object image captured by a first camera, a second training target object image captured by a second camera, and a true value of cosine similarity; S220, inputting the first training target object image and the second training target object image into the human attribute descriptor based on the large language model respectively to obtain a first training target object attribute description text and a second training target object attribute description text; S230, inputting the first training target object image and the second training target object image into the pedestrian image feature extractor based on the ReID model respectively to obtain a first training target object person image feature vector and a second training target object person image feature vector; S240, semantically encoding the first training target object attribute description text and the second training target object attribute description text respectively to obtain a first training target object attribute description semantic encoding feature vector and a second training target object attribute description semantic encoding feature vector; S250, fusing the first training target object attribute description text and the second training target object attribute description text Describe the semantic coding feature vector and the first training target object person image feature vector to obtain a first training target object image-attribute description interactive fusion representation vector; S260, fuse the second training target object attribute description semantic coding feature vector and the second training target object person image feature vector to obtain a second training target object image-attribute description interactive fusion representation vector; S270, calculate the training cosine similarity between the first training target object image-attribute description interactive fusion representation vector and the second training target object image-attribute description interactive fusion representation vector; S280, calculate the difference between the training cosine similarity and the true value of the cosine similarity to obtain a difference loss function value; S290, use the difference loss function value to train the human attribute descriptor based on the large language model and the pedestrian image feature extractor based on the ReID model, wherein in each round of iteration of the training, the first training target object image-attribute description interactive fusion representation vector and the second training target object image-attribute description interactive fusion representation vector are iteratively optimized.

[0052] As described above, in the technical solution of the present application, the first training target object image-attribute description interactive fusion representation vector represents the cross-modal interactive fusion feature representation between the high-dimensional image semantic features of the first training target object image and the attribute semantic features of the first training target object attribute description text, which will cause the first training target object image-attribute description interactive fusion representation vector to have a priori-posteriori multimodal semantic probabilistic causal association missing relative to the image source domain of the first training target object image and the text source domain of the first training target object attribute description text. The same problem also exists in the second training target object image-attribute description interactive fusion representation vector. In this way, when calculating the training cosine similarity between the first training target object image-attribute description interactive fusion representation vector and the second training target object image-attribute description interactive fusion representation vector, there is a lack of mapping association mapping to the common cosine similarity domain, which will affect the calculation accuracy of the training cosine similarity.

[0053] Therefore, in the technical solution of the present application, during the training process, for each iteration of the first training target object image-attribute description interactive fusion representation vector and the second training target object image-attribute description interactive fusion representation vector, that is, when the model is updated based on the gradient descent back-propagation parameter update based on the difference loss function between the true cosine similarity and the training cosine similarity, the first training target object image-attribute description interactive fusion representation vector and the second training target object image-attribute description interactive fusion representation vector are optimized based on the training cosine similarity, specifically including the following steps: each eigenvalue of the first training target object image-attribute description interactive fusion representation vector and the second training target object image-attribute description interactive fusion representation vector are optimized based on the sof Probabilistically activate the tmax probability function to obtain each probabilistic eigenvalue; determine the cognitive symbol value based on the comparison between each probabilistic eigenvalue and the training cosine similarity, wherein the cognitive symbol value is equal to one, zero and negative one in response to each probabilistic eigenvalue being greater than, equal to and less than the training cosine similarity, respectively; multiply each probabilistic eigenvalue by the cognitive symbol value and a first weight as a hyperparameter, and multiply each probabilistic eigenvalue by a eigenmean of each probabilistic eigenvalue and a second weight as a hyperparameter, and then perform a difference calculation on the two products and take the absolute value to obtain each optimized eigenvalue of the first training target object image-attribute description interactive fusion representation vector and the second training target object image-attribute description interactive fusion representation vector.

[0054] That is, the first training target object image-attribute description interactive fusion representation vector and the second training target object image-attribute description interactive fusion representation vector are processed by the following optimization formula to obtain the optimized first training target object image-attribute description interactive fusion representation vector and the optimized second training target object image-attribute description interactive fusion representation vector, wherein the optimization formula is:

[0055]

[0056] in, are the probabilistic feature values ​​of the first training target object image-attribute description interactive fusion representation vector and the second training target object image-attribute description interactive fusion representation vector, is the feature mean of each probabilistic feature value of the first training target object image-attribute description interactive fusion representation vector and the second training target object image-attribute description interactive fusion representation vector, is the training cosine similarity, is the cognitive symbol value, represents multiplication, Indicates taking the absolute value, and are the first weight and the second weight as hyperparameters respectively, It is the optimized feature values ​​of the first training target object image-attribute description interactive fusion representation vector and the second training target object image-attribute description interactive fusion representation vector.

[0057] That is, by comparing the probabilistic amplitude of the eigenvalues ​​of the first training target object image-attribute description interactive fusion representation vector and the second training target object image-attribute description interactive fusion representation vector with the training cosine similarity, the cosine similarity cognitive phase transformation response of the first training target object image-attribute description interactive fusion representation vector and the second training target object image-attribute description interactive fusion representation vector is obtained, and the phase shift response of the eigenvalues ​​of the first training target object image-attribute description interactive fusion representation vector and the second training target object image-attribute description interactive fusion representation vector relative to the cosine similarity representation of the feature as a whole is subjected to a feature distribution sequence invariance transformation based on differential distribution expansion, so as to realize the causal constraint of the posterior-prior multimodal semantic feature distribution representation of the first training target object image-attribute description interactive fusion representation vector and the second training target object image-attribute description interactive fusion representation vector, compensate for the mapping association loss when the first training target object image-attribute description interactive fusion representation vector and the second training target object image-attribute description interactive fusion representation vector are mapped to the common cosine similarity domain, thereby improving the calculation accuracy of the cosine similarity.

[0058] In summary, according to the embodiment of the present application, a person re-identification method based on multimodal information assistance in complex scenarios is explained, which first analyzes the human attributes of two pedestrian images under different camera perspectives, generates corresponding human attribute all-round description texts through a large language model, and then fuses the semantic coding features of the text with the pedestrian image features extracted by the traditional re-id model of the pedestrian image to construct a multimodal information interactive fusion feature representation of the pedestrian, and then uses this multimodal information interactive fusion feature representation as the basis for similarity calculation to identify whether the pedestrian objects in the two images are the same person. In this way, by introducing text information describing human attributes as an auxiliary feature, misidentification caused by the unclear visual features of a single pedestrian is avoided, thereby improving the accuracy of person re-identification in complex environments.

[0059] Figure 6 FIG. 1 is a block diagram of a person re-identification device based on multimodal information assistance in a complex scenario according to an embodiment of the present application. Figure 6As shown, according to an embodiment of the present application, a person re-identification device 100 based on multimodal information assistance in a complex scene includes: a first target object image acquisition module 110, used to acquire a first target object image captured by a first camera; a second target object image acquisition module 120, used to acquire a second target object image captured by a second camera; a human attribute description module 130, used to input the first target object image and the second target object image into a human attribute descriptor based on a large language model respectively to obtain a first target object attribute description text and a second target object attribute description text; a multimodal information interactive fusion module 140, used to input the first target object image and the second target object image into a human attribute descriptor based on a large language model respectively to obtain a first target object attribute description text and a second target object attribute description text The target object attribute description text, the second target object image and the second target object attribute description text are respectively input into the re-id model to obtain the first target object image-attribute description interactive fusion representation vector and the second target object image-attribute description interactive fusion representation vector; the similarity measurement module 150 is used to calculate the cosine similarity between the first target object image-attribute description interactive fusion representation vector and the second target object image-attribute description interactive fusion representation vector; the person re-identification module 160 is used to determine whether the pedestrian objects in the first target object image and the second target object image are the same object based on the comparison between the cosine similarity and a preset threshold.

[0060] Here, those skilled in the art can understand that the specific operations of each step in the person re-identification device based on multimodal information assistance in the above complex scenario have been described in the above reference. Figures 1 to 5 It has been introduced in detail in the description of the person re-identification method based on multimodal information assistance in complex scenarios, and therefore, its repeated description will be omitted.

[0061] Exemplary Electronic Devices

[0062] Below, reference Figure 7 To describe an electronic device according to an embodiment of the present application. Figure 7 FIG. 1 is a block diagram of an electronic device according to an embodiment of the present application. Figure 7 As shown, the electronic device 10 includes one or more processors 11 and a memory 12 .

[0063] The processor 11 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 10 to perform desired functions.

[0064] The memory 12 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 11 may run the program instructions to implement the multimodal information-assisted person re-identification method and / or other desired functions of the various embodiments of the present application described above. Various contents such as a first target object image and a second target object image may also be stored in the computer-readable storage medium.

[0065] In one example, the electronic device 10 may further include: an input device 13 and an output device 14 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0066] The input device 13 may include, for example, a keyboard, a mouse, etc.

[0067] The output device 14 can output various information to the outside, including cosine similarity, etc. The output device 14 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.

[0068] Of course, to simplify, Figure 7 Only some of the components related to the present application in the electronic device 10 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 10 may also include any other appropriate components.

[0069] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A person re-identification method based on multimodal information in complex scenarios, characterized in that: include: Acquire a first target object image captured by a first camera; Acquire a second target object image captured by a second camera; Inputting the first target object image and the second target object image into a human attribute descriptor based on a large language model respectively to obtain a first target object attribute description text and a second target object attribute description text; Inputting the first target object image and the first target object attribute description text, the second target object image and the second target object attribute description text into a re-id model respectively to obtain a first target object image-attribute description interactive fusion representation vector and a second target object image-attribute description interactive fusion representation vector; Calculating the cosine similarity between the first target object image-attribute description interactive fusion representation vector and the second target object image-attribute description interactive fusion representation vector; Based on a comparison between the cosine similarity and a preset threshold, determining whether the pedestrian objects in the first target object image and the second target object image are the same object; The first target object image and the first target object attribute description text, the second target object image and the second target object attribute description text are respectively input into the reid model to obtain the first target object image-attribute description interactive fusion representation vector and the second target object image-attribute description interactive fusion representation vector, including: Inputting the first target object image and the second target object image into the pedestrian image feature extractor based on the reid model respectively to obtain a first target object person image feature vector and a second target object person image feature vector; Semantically encoding the first target object attribute description text and the second target object attribute description text respectively to obtain a first target object attribute description semantic encoding feature vector and a second target object attribute description semantic encoding feature vector; Fusing the first target object attribute description semantic encoding feature vector and the first target object person image feature vector to obtain the first target object image-attribute description interactive fusion representation vector; The second target object attribute description semantic encoding feature vector and the second target object person image feature vector are fused to obtain the second target object image-attribute description interactive fusion representation vector.

2. According to claim 1, the method for person re-identification based on multimodal information in complex scenarios is characterized in that: Fusion of the first target object attribute description semantic coding feature vector and the first target object person image feature vector to obtain the first target object image-attribute description interactive fusion representation vector includes: The first target object attribute description semantic encoding feature vector and the first target object person image feature vector are cascaded to obtain the first target object image-attribute description interactive fusion representation vector.

3. The method for person re-identification based on multimodal information in complex scenarios according to claim 2 is characterized in that: Fusion of the second target object attribute description semantic coding feature vector and the second target object person image feature vector to obtain the second target object image-attribute description interactive fusion representation vector includes: The second target object attribute description semantic encoding feature vector and the second target object person image feature vector are cascaded to obtain the second target object image-attribute description interactive fusion representation vector.

4. The method for person re-identification based on multimodal information in complex scenarios according to claim 1, characterized in that: Fusion of the first target object attribute description semantic coding feature vector and the first target object person image feature vector to obtain the first target object image-attribute description interactive fusion representation vector includes: The first target object attribute description semantic encoding feature vector and the first target object person image feature vector are input into a feature interaction response fusion module based on an adaptive distinguishable mechanism to obtain the first target object image-attribute description interaction fusion representation vector.

5. The method for person re-identification based on multimodal information in complex scenarios according to claim 4 is characterized in that: Fusion of the second target object attribute description semantic coding feature vector and the second target object person image feature vector to obtain the second target object image-attribute description interactive fusion representation vector includes: The second target object attribute description semantic encoding feature vector and the second target object person image feature vector are input into the feature interaction response fusion module based on the adaptive distinguishable mechanism to obtain the second target object image-attribute description interaction fusion representation vector.

6. The method for person re-identification based on multimodal information in complex scenarios according to claim 5 is characterized in that: Inputting the first target object attribute description semantic encoding feature vector and the first target object person image feature vector into a feature interaction response fusion module based on an adaptive distinguishable mechanism to obtain the first target object image-attribute description interaction fusion representation vector, including: Calculating the position-by-position response between the first target object attribute description semantic encoding feature vector and the first target object person image feature vector to obtain a first target object image-attribute description position-by-position response feature vector; Using a Softmax function to normalize the first target object image-attribute description position-by-position response feature vector to obtain a normalized first target object image-attribute description position-by-position response feature vector; Inputting the normalized first target object image-attribute description position-by-position response feature vector into a learnable gating function to obtain a first target object image-attribute description response screening weight mask vector; Calculating the position-wise multiplication between the first target object image-attribute description response screening weight mask vector and the normalized first target object image-attribute description position-by-position response feature vector to obtain a first target object image-attribute description position-by-position response distinguishable weight mask vector; The first target object image-attribute description interactive fusion representation vector is obtained by calculating the position-wise multiplication between the distinguishable weight mask vector of the first target object image-attribute description position-wise response and the first target object image-attribute description position-wise response feature vector.

7. The method for person re-identification based on multimodal information in complex scenarios according to claim 2, characterized in that: The method further comprises a training step of: training the human attribute descriptor based on the large language model and the pedestrian image feature extractor based on the ReID model; Wherein, the training step includes: Acquire training data, where the training data includes a first training target object image captured by a first camera, a second training target object image captured by a second camera, and a true value of cosine similarity; Inputting the first training target object image and the second training target object image into the human attribute descriptor based on the large language model respectively to obtain a first training target object attribute description text and a second training target object attribute description text; Inputting the first training target object image and the second training target object image into the pedestrian image feature extractor based on the ReID model respectively to obtain a first training target object person image feature vector and a second training target object person image feature vector; Semantically encoding the first training target object attribute description text and the second training target object attribute description text to obtain a first training target object attribute description semantic encoding feature vector and a second training target object attribute description semantic encoding feature vector; Fusing the first training target object attribute description semantic encoding feature vector and the first training target object person image feature vector to obtain a first training target object image-attribute description interactive fusion representation vector; Fusing the second training target object attribute description semantic encoding feature vector and the second training target object person image feature vector to obtain a second training target object image-attribute description interactive fusion representation vector; Calculating the training cosine similarity between the first training target object image-attribute description interactive fusion representation vector and the second training target object image-attribute description interactive fusion representation vector; Calculating the difference between the training cosine similarity and the true value of the cosine similarity to obtain a difference loss function value; The human attribute descriptor based on the large language model and the pedestrian image feature extractor based on the ReID model are trained using the difference loss function value, wherein in each round of iteration of the training, the first training target object image-attribute description interactive fusion representation vector and the second training target object image-attribute description interactive fusion representation vector are iteratively optimized.

8. A person re-identification device based on multimodal information assistance in complex scenarios, characterized in that: include: A first target object image acquisition module, used to acquire a first target object image captured by a first camera; A second target object image acquisition module, used to acquire a second target object image captured by a second camera; A human attribute description module, used for inputting the first target object image and the second target object image into a human attribute descriptor based on a large language model to obtain a first target object attribute description text and a second target object attribute description text; a multimodal information interactive fusion module, used to input the first target object image and the first target object attribute description text, the second target object image and the second target object attribute description text into a reid model respectively to obtain a first target object image-attribute description interactive fusion representation vector and a second target object image-attribute description interactive fusion representation vector; A similarity measurement module, used to calculate the cosine similarity between the first target object image-attribute description interactive fusion representation vector and the second target object image-attribute description interactive fusion representation vector; a person re-identification module, configured to determine whether the pedestrian objects in the first target object image and the second target object image are the same object based on a comparison between the cosine similarity and a preset threshold; The first target object image and the first target object attribute description text, the second target object image and the second target object attribute description text are respectively input into the reid model to obtain the first target object image-attribute description interactive fusion representation vector and the second target object image-attribute description interactive fusion representation vector, including: Inputting the first target object image and the second target object image into the pedestrian image feature extractor based on the reid model respectively to obtain a first target object person image feature vector and a second target object person image feature vector; Semantically encoding the first target object attribute description text and the second target object attribute description text respectively to obtain a first target object attribute description semantic encoding feature vector and a second target object attribute description semantic encoding feature vector; Fusing the first target object attribute description semantic encoding feature vector and the first target object person image feature vector to obtain the first target object image-attribute description interactive fusion representation vector; The second target object attribute description semantic encoding feature vector and the second target object person image feature vector are fused to obtain the second target object image-attribute description interactive fusion representation vector.

9. An electronic device, characterized in that: include: A memory for storing instructions; A processor is coupled to the memory, and the processor is configured to execute instructions stored in the memory to implement the person re-identification method based on multimodal information assistance in a complex scene as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Pedestrian re-identification method based on overall and local depth feature fusion

    CN108229444A

  • Character image generation method guided by text based on generative adversarial network

    CN110021051A

  • Cross-modal pedestrian re-recognition method based on dual attribute information

    CN112001279A

  • Pedestrian re-identification method based on multi-modal graph convolutional neural network

    CN115984901A

  • Pedestrian attribute identification method based on prompt fine tuning pre-training large model

    CN116259075A