Pedestrian re-identification method and system

By using the body-aware bidirectional feature pyramid model in pedestrian re-identification, combined with the improved Res2Net50 network and channel position attention module, the efficiency and reliability problems of pedestrian re-identification are solved, and effective processing of pedestrian occlusion and posture changes is achieved, improving Ensure the safety and scientific management of the monitoring system.

CN118736621APending Publication Date: 2024-10-01INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410662626.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, the correlation and recognition efficiency of pedestrian re-identification between multiple monitoring devices is low, which may lead to the possibility of missing the prime time to solve the case. There are also problems of pedestrian occlusion and posture changes, resulting in a waste of public resources and manpower.

Method used

A pedestrian re-identification method based on the body-perception bidirectional feature pyramid model is adopted. Through the improved Res2Net50 network and channel position attention module, global and multi-scale features are combined to improve the accuracy and efficiency of pedestrian re-identification.

Benefits of technology

It improves the reliability and efficiency of pedestrian re-identification, enables timely prevention and response to security incidents, and is suitable for security monitoring and internal employee behavior monitoring in high-risk environments such as banks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736621A_ABST
    Figure CN118736621A_ABST
Patent Text Reader

Abstract

The invention provides a pedestrian re-identification method and system which can be used in the technical field of artificial intelligence, and the method comprises the steps: obtaining the image information of a target pedestrian; applying a preset body perception bidirectional feature pyramid model to obtain feature representation corresponding to the target pedestrian image information; according to the feature representation, completing pedestrian re-identification corresponding to the target pedestrian image information; wherein the preset body perception bidirectional feature pyramid model comprises a body perception extended global branch, a bidirectional feature pyramid branch and an improved Res2Net50 model. According to the invention, on the basis of ensuring the efficiency of pedestrian re-identification, the reliability of pedestrian re-identification is improved, so that a security event can be prevented and responded in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer vision technology, and in particular to a pedestrian re-identification method and system. Background Art

[0002] Person re-identification refers to the use of computer vision technology to determine whether a specific pedestrian exists in the information obtained by monitoring equipment from different perspectives. In recent years, with the increasing demand for security protection, monitoring equipment has become an important part of the social security defense system. Therefore, it is extremely important to improve the monitoring system's ability to deeply analyze and efficiently process image content in banking scenarios. Pedestrian re-identification technology can provide banks with more efficient and intelligent security monitoring solutions.

[0003] Important public places with dense crowds, such as banks, are full of surveillance equipment. This huge distributed surveillance network greatly protects community security and the personal and property safety of citizens. These surveillance devices are mainly used to capture and record what is happening in relevant places in real time to meet the needs of remote monitoring of people and emergency management. These devices generate massive amounts of data all the time, resulting in an exponential increase in the amount of data generated by surveillance equipment each year.

[0004] Since pedestrians may be obstructed or have posture changes in the images of different surveillance devices, relying solely on manual methods to associate and identify the content in multiple surveillance devices is not only inefficient and may miss the golden time for solving the case, but also will lead to a large waste of public resources as well as manpower and material resources. Summary of the invention

[0005] In response to at least one problem in the prior art, the present application proposes a pedestrian re-identification method and system, which can improve the reliability of pedestrian re-identification while ensuring the efficiency of pedestrian re-identification, thereby being able to prevent and respond to security incidents in a timely manner.

[0006] In order to solve the above technical problems, this application provides the following technical solutions:

[0007] In a first aspect, the present application provides a pedestrian re-identification method, comprising:

[0008] Obtain target pedestrian image information;

[0009] Applying a preset body-aware bidirectional feature pyramid model to obtain a feature representation corresponding to the target pedestrian image information;

[0010] According to the feature representation, completing pedestrian re-identification corresponding to the target pedestrian image information;

[0011] The preset body perception bidirectional feature pyramid model includes: a body perception extended global branch, a bidirectional feature pyramid branch and an improved Res2Net50 model.

[0012] In one embodiment, the applying a preset body-aware bidirectional feature pyramid model to obtain a feature representation corresponding to the target pedestrian image information includes:

[0013] Inputting the pedestrian image information into an improved Res2Net50 model to obtain multiple output results, wherein the Res2Net50 model includes: a zeroth neural network layer, a first neural network layer, a second neural network layer, a first channel position attention module, a third neural network layer, and a fourth neural network layer arranged in sequence;

[0014] Inputting the output result of the fourth neural network layer into the global branch of the body perception extension, and determining the output result of the global branch of the body perception extension as the first intermediate output feature;

[0015] Inputting the output results of the first, second and third neural network layers into the bidirectional feature pyramid branch, and determining the output result of the bidirectional feature pyramid branch as a second intermediate output feature;

[0016] A feature representation corresponding to the target pedestrian image information is obtained according to the first intermediate output feature and the second intermediate output feature.

[0017] In one embodiment, the bidirectional feature pyramid branch includes: a second channel position attention module, a dimensionality reduction filter, and a convolution filter;

[0018] Correspondingly, the output results of the first, second and third neural network layers are all input into the bidirectional feature pyramid branch, and the output results of the bidirectional feature pyramid branch are determined as the second intermediate output feature, including:

[0019] Input the output result of the first neural network layer to the second channel position attention module to obtain a first shallow feature, and input the output result of the second neural network layer to the second channel position attention module to obtain a second shallow feature;

[0020] Applying the first shallow features, the second shallow features, the output result of the third neural network layer, the dimension reduction filter and the convolution filter to obtain high-level features;

[0021] The high-level features are average-pooled to obtain the second intermediate output features.

[0022] In one embodiment, inputting the output result of the fourth neural network layer into the global branch of the body perception extension, and determining the output result of the global branch of the body perception extension as the first intermediate output feature, comprises:

[0023] Perform global average pooling processing on the output result of the fourth neural network layer to obtain the first intermediate output feature.

[0024] In one embodiment, obtaining the feature representation corresponding to the target pedestrian image information according to the first intermediate output feature and the second intermediate output feature includes:

[0025] The first intermediate output feature and the second intermediate output feature are connected in series, and the connection result is determined as the feature representation corresponding to the target pedestrian image information.

[0026] In one embodiment, the pedestrian re-identification method further includes:

[0027] Obtain batch historical pedestrian image information and their corresponding labels;

[0028] The preset body-aware bidirectional feature pyramid model is trained by applying a preset loss function, batch historical pedestrian image information and their corresponding labels.

[0029] In one embodiment, the step size of the fourth neural network layer is 1.

[0030] In a second aspect, the present application provides a pedestrian re-identification system, comprising:

[0031] An acquisition device, used for acquiring target pedestrian image information;

[0032] An application device is used to apply a preset body-aware bidirectional feature pyramid model to obtain a feature representation corresponding to the target pedestrian image information;

[0033] A pedestrian re-identification device, used to complete pedestrian re-identification corresponding to the target pedestrian image information according to the feature representation;

[0034] The preset body perception bidirectional feature pyramid model includes: a body perception extended global branch, a bidirectional feature pyramid branch and an improved Res2Net50 model.

[0035] In one embodiment, the application device comprises:

[0036] A first input module is used to input the pedestrian image information into an improved Res2Net50 model to obtain multiple output results, wherein the Res2Net50 model includes: a zeroth neural network layer, a first neural network layer, a second neural network layer, a first channel position attention module, a third neural network layer and a fourth neural network layer arranged in sequence;

[0037] a second input module, configured to input the output result of the fourth neural network layer into the global branch of the body perception extension, and determine the output result of the global branch of the body perception extension as a first intermediate output feature;

[0038] A third output module is used to input the output results of the first layer, the second layer and the third layer of the neural network layer into the bidirectional feature pyramid branch, and determine the output result of the bidirectional feature pyramid branch as a second intermediate output feature;

[0039] A feature representation module is determined, which is used to obtain a feature representation corresponding to the target pedestrian image information according to the first intermediate output feature and the second intermediate output feature.

[0040] In one embodiment, the bidirectional feature pyramid branch includes: a second channel position attention module, a dimensionality reduction filter and a convolution filter; correspondingly, the third output module includes:

[0041] A first input unit is used to input the output result of the first neural network layer into the second channel position attention module to obtain a first shallow feature, and input the output result of the second neural network layer into the second channel position attention module to obtain a second shallow feature;

[0042] An application unit, configured to apply the first shallow feature, the second shallow feature, the output result of the third neural network layer, the dimension reduction filter and the convolution filter to obtain a high-level feature;

[0043] The high-level features are average-pooled to obtain the second intermediate output features.

[0044] In one embodiment, the second input module comprises:

[0045] A pooling unit is used to perform global average pooling processing on the output result of the fourth neural network layer to obtain the first intermediate output feature.

[0046] In one embodiment, the determining feature representation module includes:

[0047] A determination unit is used to concatenate the first intermediate output feature and the second intermediate output feature, and determine the concatenation result as the feature representation corresponding to the target pedestrian image information.

[0048] In one embodiment, the pedestrian re-identification system further includes:

[0049] A historical information acquisition device, used to acquire batch historical pedestrian image information and their corresponding labels;

[0050] The training device is used to apply a preset loss function, batch historical pedestrian image information and their corresponding labels to train the preset body perception bidirectional feature pyramid model.

[0051] In one embodiment, the step size of the fourth neural network layer is 1.

[0052] In a third aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the pedestrian re-identification method when executing the program.

[0053] In a fourth aspect, the present application provides a computer-readable storage medium having computer instructions stored thereon, which implement the pedestrian re-identification method when executed by a processor.

[0054] It can be seen from the above technical solution that the present application provides a pedestrian re-identification method and system. The method includes: obtaining target pedestrian image information; applying a preset body-aware bidirectional feature pyramid model to obtain a feature representation corresponding to the target pedestrian image information; completing pedestrian re-identification corresponding to the target pedestrian image information according to the feature representation; the preset body-aware bidirectional feature pyramid model includes: a global branch of body-aware extension, a bidirectional feature pyramid branch and an improved Res2Net50 model, which can improve the reliability of pedestrian re-identification while ensuring the efficiency of pedestrian re-identification, and thus can prevent and respond to security incidents in a timely manner; specifically, the present application proposes a pedestrian re-identification model based on a body-aware bidirectional feature pyramid network to address challenges such as pedestrian occlusion and posture changes in pedestrian re-identification; adopts an improved Res2Net50 network and uses it as the backbone for feature extraction; adds a channel position attention mechanism CPAM in layer2 and layer3 of the Res2Net50 backbone network; and uses batch normalization layer BN and instance normalization layer IN at the shallow layer of the network to improve the generalization ability of the model. Add a body perception module to the global branch to assist the model in completing the body perception task without the help of the posture estimation algorithm and only used in the inference process. Add a channel position attention module to pay attention to channel information and position information at the same time. The coarse-to-fine bidirectional feature pyramid branch is used to extract multi-scale features from different layers of the backbone network, aggregate the features into a bidirectional feature pyramid structure, and finally fuse them with the global features. The ability to track specific individuals in a network of multiple cameras greatly improves the efficiency of monitoring. In addition, the security threats of banks not only come from the outside, but also the violations of internal employees are also an important security issue. This solution can help monitor and prevent violations of internal employees and ensure internal security; in a high-risk environment such as a bank, it can quickly track important target individuals, which can be used for identity verification and confirming the trajectory of suspicious persons, which is crucial for preventing and responding to security incidents. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the embodiments of the present application 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 some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0056] Figure 1 is a schematic diagram of a first process of a pedestrian re-identification method in an embodiment of the present application;

[0057] Figure 2 is a second flow chart of the pedestrian re-identification method in an embodiment of the present application;

[0058] Figure 3 is a logical schematic diagram of a body perception bidirectional feature pyramid model in an embodiment of the present application;

[0059] Figure 4 Schematic diagram of comparison between Bottleneck and Res2Net modules in the prior art and the improved Res2Net module in the application example of the present application;

[0060] Figure 5 It is a schematic diagram of the CAM structure in the application example of this application;

[0061] Figure 6 It is a schematic diagram of the PAM structure in the application example of this application;

[0062] Figure 7 It is a schematic diagram of the CPAM structure in the application example of this application;

[0063] Figure 8 It is the body-aware pseudo-label in the pedestrian re-identification dataset in the application example of this application;

[0064] Fig. 9 It is a structural diagram of a bidirectional feature pyramid branch in an application example of this application;

[0065] Fig.10 is a structural block diagram of a pedestrian re-identification system in an embodiment of the present application;

[0066] Fig.11 It is a schematic block diagram of the system structure of the electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0067] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0068] First of all, as a core institution in the financial industry, banks have the primary task of ensuring the safety of their customers' funds. However, traditional security measures can no longer meet the growing security needs. Pedestrian re-identification technology can provide banks with more efficient and intelligent security monitoring solutions. By deploying cameras at various entrances and exits and important areas of the bank to capture pedestrian images in real time, combined with pedestrian re-identification technology, it is possible to continuously track and monitor pedestrians, effectively identify the same criminal suspect in different scenarios, and improve the efficiency of crime prevention and detection. Secondly, pedestrian re-identification technology also has significant advantages in bank customer service. By applying pedestrian re-identification technology, banks can accurately identify customers, collect customer activity data at bank outlets, and then analyze customer behavior, optimize service processes, and improve customer satisfaction. In addition, through pedestrian re-identification technology, employees can be effectively identified, and management functions such as employee attendance and work trajectory can be realized, which can improve the scientificity and accuracy of bank internal management. In short, pedestrian re-identification technology can not only improve the security of banks, but also provide strong support for customer service and management, which will help promote the process of bank intelligence and achieve sustainable development of the financial industry.

[0069] In order to solve the problems existing in the above-mentioned prior art, an embodiment of the present application provides a pedestrian re-identification method based on a body-aware bidirectional feature pyramid, which can mainly solve the problem that most pedestrian re-identification work focuses on adding additional network structures to the backbone network to obtain better performance. This change causes redundancy in the network structure and increases the number of parameters. The embodiment of the present application can utilize the different scale features of the shallower networks of layer1, layer2 and layer3 in the Res2Net50 network and integrate them into the bidirectional feature pyramid branch, while adding a body perception module to the global branch to enhance the body perception awareness of the model, and applying the channel position attention module to learn channel-level and spatial domain feature information, so as to achieve accurate recognition, tracking and re-identification of the same pedestrian under multiple cameras of the bank, and meet safety and compliance requirements.

[0070] It should be noted that the information collected in the technical solution of this application is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of relevant countries and regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse. This application provides users with corresponding operation entrances for users to choose to agree or refuse the results of automated decisions; if the user chooses to refuse, the expert decision-making process is entered. The log storage method and system disclosed in this application can be used in the field of financial technology, and can also be used in any field other than the field of financial technology. The application field of the log storage method and system disclosed in this application is not limited. The pedestrian re-identification method and system disclosed in this application can be used in the field of financial technology, and can also be used in any field other than the field of financial technology. The application field of the pedestrian re-identification method and system disclosed in this application is not limited.

[0071] The details are described through the following embodiments.

[0072] like Figure 1 As shown, in order to improve the reliability of pedestrian re-identification while ensuring the efficiency of pedestrian re-identification, and thus be able to prevent and respond to security incidents in a timely manner, this embodiment provides a pedestrian re-identification method in which the execution subject is a pedestrian re-identification system, and the pedestrian re-identification system includes but is not limited to a server. The method specifically includes the following contents:

[0073] Step 100: Obtain target pedestrian image information.

[0074] Specifically, the pedestrian re-identification system can obtain pedestrian images captured by cameras of bank outlets as the target pedestrian image information. There can be multiple target pedestrian images, and pedestrian images captured by multiple cameras of bank outlets can be obtained.

[0075] Step 200: Apply a preset body-aware bidirectional feature pyramid model to obtain a feature representation corresponding to the target pedestrian image information.

[0076] Step 300: According to the feature representation, complete pedestrian re-identification corresponding to the target pedestrian image information; wherein the preset body-aware bidirectional feature pyramid model includes: a global branch of body-aware extension, a bidirectional feature pyramid branch and an improved Res2Net50 model.

[0077] Specifically, the customer information corresponding to the target pedestrian image information can be determined based on the feature representation and a preset customer feature library to complete pedestrian re-identification corresponding to the target pedestrian image information, and the customer information can include a customer unique identifier for distinguishing different customers. The preset customer feature library can include: a correspondence between customer information of multiple customers and their feature representations.

[0078] Specifically, according to the above-mentioned feature representation, the information of the target pedestrian image in the customer image set to be retrieved can be matched in the customer portrait set to be retrieved by image search, so as to complete the retrieval of the target pedestrian image and provide support for subsequent scenarios such as verifying the customer's true identity and tracking the customer's trajectory.

[0079] like Figure 2 As shown, in order to further improve the reliability of the feature representation corresponding to the pedestrian image information, in one embodiment, step 200 includes:

[0080] Step 201: Input the pedestrian image information into the improved Res2Net50 model to obtain multiple output results, wherein the Res2Net50 model includes: a zeroth neural network layer, a first neural network layer, a second neural network layer, a first channel position attention module, a third neural network layer and a fourth neural network layer arranged in sequence.

[0081] Specifically, Figure 3 As shown, the preset body perception bidirectional feature pyramid model may include: a global branch of body perception extension, a bidirectional feature pyramid branch and an improved Res2Net50 model. The complementary features composed of global features and multi-scale features are more diverse in feature matching. A batch normalization layer BN and an instance normalization layer IN may be provided before each neural network layer. The channel position attention module may be composed of two complementary modules: a channel attention mechanism (ChannelAttentionMechanism, referred to as CAM) and a position attention mechanism (PositionAttentionMechanism, referred to as PAM).

[0082] The backbone network can use the improved Res2Net50 model to extract image features. The Res2Net50 model consists of five layers: layer0, layer1, layer2, layer3, and layer4. A channel position attention module CPAM is added between layer2 and layer3 to enhance the expressiveness of feature channels and space. The step length laststride in Res2Net50 is set from 2 to 1, and the output image size will be doubled. This operation only increases the amount of calculation by a small amount, but the higher spatial resolution brings a significant improvement in recognition accuracy; the global branch of the body perception extension takes the output of layer4 in Res2Net50 as input and obtains the global feature f through global average pooling (GAP). g , and then perform BN operation to obtain the normalized feature f i In order to reduce the impact of pedestrian posture on re-identification and enhance the model's ability to perceive body parts, a body perception module BAM is added to the global branch to assist the model in capturing discriminative features representing body areas.

[0083] The bidirectional feature pyramid branch can take the different scale features from layer 1 to 3 in the backbone network as input, add CPAM modules in layer 1 and layer 2, and integrate the input of each branch into the bidirectional feature pyramid structure to obtain the output feature f p The bidirectional feature pyramid branch can aggregate contextual information using features at different levels to obtain more comprehensive feature representation.

[0084] Specifically, in order to improve recognition accuracy, the step size of the fourth neural network layer can be 1. Figure 3 In the above figure, layer0 represents the zeroth neural network layer, layer1 represents the first neural network layer, layer2 represents the second neural network layer, layer3 represents the third neural network layer, layer4 represents the fourth neural network layer, and the CPAM between layer2 and layer3 represents the first channel position attention module.

[0085] Step 202: Input the output result of the fourth neural network layer to the global branch of the body perception extension, and determine the output result of the global branch of the body perception extension as the first intermediate output feature.

[0086] Step 203: input the output results of the first, second and third neural network layers into the bidirectional feature pyramid branch, and determine the output result of the bidirectional feature pyramid branch as the second intermediate output feature.

[0087] Step 204: Obtain a feature representation corresponding to the target pedestrian image information according to the first intermediate output feature and the second intermediate output feature.

[0088] Specifically, f p and the global output feature f g The concatenation is used as the final feature representation f of the above-mentioned body perception bidirectional feature pyramid model. The final feature representation can be equivalent to the feature representation corresponding to the above-mentioned target pedestrian image information, f p It can be equivalent to the first intermediate output feature mentioned above, f g It can be equivalent to the second intermediate output feature mentioned above; as shown in the following formula (1). This feature can represent the original image so as to effectively match and retrieve a large number of candidate images from the same pedestrian with unknown identity.

[0089] f = concat(f p ,f g ) (1)

[0090] Through the above improvements, the BA-BiFPN proposed in this embodiment mines the multi-scale features of the image and integrates them into a bidirectional feature pyramid structure, while combining global features; adding a body perception module enables the network to better reduce the interference of different postures; adding a channel position attention module greatly enhances the feature representation capability and improves the learning ability of the model.

[0091] In order to further improve the reliability of obtaining the second intermediate output feature, in one embodiment, the bidirectional feature pyramid branch includes: a second channel position attention module, a dimensionality reduction filter and a convolution filter; correspondingly, step 203 includes:

[0092] Step 2031: Input the output result of the first neural network layer to the second channel position attention module to obtain the first shallow feature, and input the output result of the second neural network layer to the second channel position attention module to obtain the second shallow feature.

[0093] Specifically, the CPAM between the first neural network layer, the second neural network layer and the dimensionality reduction filter is the second channel position attention module.

[0094] Step 2032: Apply the first shallow features, the second shallow features, the output results of the third neural network layer, the dimension reduction filter and the convolution filter to obtain high-level features.

[0095] Step 2033: Perform average pooling processing on the high-level features to obtain the second intermediate output features.

[0096] Specifically, the bidirectional feature pyramid branch starts with a dimensionality reduction filter (Conv 1×1, BN, Relu), which can uniformly convert features with different numbers of channels into 256-dimensional features a1, a2, and a3; six convolution filters (Conv3×3, BN, Relu) complete the aggregation of features of different scales. The top-down connection increases the size of the feature map through upsampling operations, and the bottom-up connection is achieved through maximum pooling. The curved arrows in the figure indicate that each layer has a residual structure similar to that in ResNet to implement downsampling operations, and cross-scale connections are made between features a1 and c1, a2 and c2, and a3 and c3 with different spatial resolutions. Finally, the high-level feature d is used as the output of this branch, and d is average-pooled to obtain a 1024-dimensional feature f. p , which is convenient for feature fusion with global features.

[0097] In order to improve the reliability of obtaining the first intermediate output feature, in one embodiment, step 202 includes: performing global average pooling processing on the output result of the fourth neural network layer to obtain the first intermediate output feature.

[0098] In order to improve the reliability of obtaining the feature representation, in one embodiment, step 204 includes: concatenating the first intermediate output feature and the second intermediate output feature, and determining the concatenation result as the feature representation corresponding to the target pedestrian image information.

[0099] In order to improve the reliability of body-aware bidirectional feature pyramid model training, and thus improve the accuracy of person re-identification using the body-aware bidirectional feature pyramid model, in one embodiment, the person re-identification method further includes:

[0100] Step 001: Obtain batch historical pedestrian image information and their corresponding labels;

[0101] Step 002: Apply a preset loss function, batch historical pedestrian image information and their corresponding labels to train and obtain the preset body-aware bidirectional feature pyramid model.

[0102] Specifically, the label of the historical pedestrian image information may be: the actual feature representation corresponding to the historical pedestrian image information. The preset loss function may be:

[0103] Loss = L cross +L triplet +μL center +λL ps

[0104] Among them, L cross is the classification loss function, L triplet is the triple loss function, Lcenter is the center loss function, L ps is a body segmentation loss function. When the value of the preset loss function reaches a loss function threshold, it can be determined that the training of the body-aware bidirectional feature pyramid model is completed.

[0105] To further illustrate the present solution, the present application provides an application example of a pedestrian re-identification method based on a bidirectional feature pyramid, which is specifically described as follows:

[0106] The body-aware bidirectional feature pyramid model BA-BiFPN is used to complete person re-identification; the body-aware bidirectional feature pyramid model consists of three parts: the Res2Net50 backbone network, the global branch of body-aware extension, and the bidirectional feature pyramid branch. The complementary features composed of global features and multi-scale features are more diverse in feature matching.

[0107] The following is a detailed description of the body perception bidirectional feature pyramid model:

[0108] 1. Backbone network:

[0109] (1) Res2Net50

[0110] This application example uses Res2Net50 instead of ResNet50 as the backbone network for feature extraction. Res2Net50 improves the ability to extract multi-scale features through the proposed Res2Net50 module based on Bottleneck, while maintaining almost the same amount of computation as the ResNet50 network. First, the stride of the last layer of Res2Net50 is set from 2 to 1, and the output image size will be doubled. This operation only increases the amount of computation, but the higher spatial resolution brings a significant improvement in recognition accuracy; then the Res2Net module is improved, and the batch normalization layer (BN) and the instance normalization layer (IN) are used at the shallow layer of the network to prevent the model performance from degrading when there is a large style difference between the training set and the test set, thereby improving the generalization ability of the model.

[0111] Figure 4 Module (a) is the Bottleneck module in the prior art, module (b) is the Res2Net module in the prior art, and module (c) is the improved Res2Net module in this application example (i.e., the improved Res2Net50 model mentioned above). Res2Net50 evenly divides the feature map after 1×1 convolution into 4 feature subsets, using x i Represents, where i∈{1,2,3,4}. Compared with the input feature map, each feature subset x i With the same spatial size, the number of channels becomes 1 / 4. Except for x1, each x iThere are corresponding 3×3 convolutions, using K i ()express.

[0112] y i K i Output of (). Feature subset x i With K i-1 The outputs of () are added and then input to K i In order to increase the number of channels and reduce the parameters, the 3×3 convolution of x1 is omitted. i The expression of is shown in formula (2):

[0113]

[0114] The divided filter groups are connected in a way similar to hierarchical residuals, which increases the receptive field range of each network layer. The output of the module contains different numbers and combinations of receptive field sizes, which helps to extract multi-scale information, which is crucial for fine-grained classification tasks in pedestrian re-identification.

[0115] (2) Channel Position Attention Mechanism

[0116] The attention mechanism is mainly used to capture the distinctive appearance of pedestrians and eliminate redundant background information. The channel position attention module (CPAM) is applied in layer2 and layer3 of the Res2Net50 backbone network. The module consists of two complementary modules: the channel attention mechanism (CAM) and the position attention mechanism (PAM). CAM helps to aggregate channel-level feature information, while PAM captures the spatial perception of pedestrian body parts.

[0117] Due to many challenges in the person re-identification task, such as occlusion or misalignment, incomplete body parts, background disturbances or viewpoint changes, directly applying the backbone network to feature extraction will not produce ideal Re-ID performance. Extracting pixel-level features from body parts and enhancing local features have proven robustness. Based on the above analysis, this application example applies CPAM, an attention mechanism that can capture the distinctiveness and diverse appearance of pedestrians and eliminate redundant background information.

[0118] CAM structure such as Figure 5 As shown in Figure 2. The high-level feature channels in the trained CNN classifier are closely related to semantics and play a decisive role in the classification results, while CAM is conducive to aggregating and grouping channels with similar semantics. Given an input feature map A∈R C×H×W , C is the number of channels, H×W is the feature map size, and the channel affinity matrix X∈R is calculated C×C :

[0119]

[0120] x ij represents the influence of channel i on channel j. The final output feature map E is calculated by formula (4):

[0121]

[0122] Among them, γ is a hyperparameter that adjusts the weight of CAM.

[0123] The high-level feature channels in the trained CNN classifier are closely related to semantics and play a decisive role in the classification results, while CAM is conducive to aggregating and grouping channels with similar semantics. Figure 6 As shown in Figure 2, unlike CAM, PAM aims to capture the spatial perception of the body and body parts, aggregating pixels with similar semantics in the spatial domain. The calculation process is similar to PAM, except that the position affinity matrix calculates the correlation between N pixels, and the channel affinity matrix calculates the correlation between C channels.

[0124] The two complement each other. The CPAM structure is as follows: Figure 7 As shown, given the input feature map A∈R C×H×W , C is the number of channels, H×W is the feature map size, CAM and PAM are connected in parallel and added to the original tensor to obtain the final tensor T∈R C ×H×W .

[0125] 2. Global branch of body perception extension:

[0126] The global branch of body perception extension can extract the most discriminative global features of pedestrians. High-level features contain rich semantic information and play a decisive role in the classification results. Therefore, layer4 is used as the input of the global branch, and a 2048-dimensional global feature f is obtained by performing a global average pooling (GAP) operation on the feature vector. g , and then add a batch normalization layer (BN) to obtain the normalized features f i .f g The triplet loss used in the training phase, f i The ID loss used in the inference stage avoids the conflict problem caused by two losses jointly constraining a feature vector.

[0127] Different monitoring devices have the problem of changing viewpoints and pedestrian postures, so the re-identification model should have the ability to identify body parts. This application example introduces a body perception module BAM to the global branch to assist the model in capturing the identification features that can represent the body area. Figure 1As shown in , there is no need to change the input method of the model. The original model branch shares the backbone with BAM, and BAM is connected to the global branch. Only local labels are used to monitor the model during training. After the training, the body perception awareness has been embedded in the model, so this module will be removed. This module enables the model to learn the body part to which the current pixel in the feature map belongs, improving the ability to perceive local parts of the body.

[0128] The body-aware pseudo-labels in the person re-identification dataset are implemented as follows: the human body part annotations in the COCO Densepose public dataset are rearranged to have 7 body parts: head, upper body, upper arm, lower arm, thigh, lower leg and foot; the DANet semantic segmentation model is trained using the above dataset to predict pseudo-body part labels on the ReID dataset. The pseudo-labels predicted on the person re-identification dataset are as follows: Figure 8 shown.

[0129] 3. Bidirectional feature pyramid branch:

[0130] Multi-scale feature information is more conducive to re-identification: low-level features are conducive to inter-class correspondence, and high-level features are conducive to accurate measurement within a class. This application example improves a coarse-to-fine bidirectional feature pyramid branch to extract features of different granularities from different layers of the network and integrate them into a bidirectional feature pyramid structure, moderately relaxing the requirements for the detection box size.

[0131] The structure and implementation of the branch are as follows Fig. 9 As shown in Figure 1. This branch includes a three-layer bidirectional feature pyramid, which takes the shallow features f1, f2, and f3 of layer1, layer2, and layer3 in Res2Net50 as input. The shallow features not only retain more local details in the image, but also contain fewer parameters. As the number of layers 1-3 increases from low to high, the size of the feature map also decreases from large to small, and the number of channels also increases, thus forming a feature pyramid. The cross-scale connection forms a bidirectional feature pyramid structure.

[0132] The branch starts with the dimensionality reduction filter (Conv 1×1, BN, Relu), which uniformly converts features with different numbers of channels into 256-dimensional features a1, a2, and a3; six convolution filters (Conv3×3, BN, Relu) complete the aggregation of features of different scales. The top-down connection increases the size of the feature map through upsampling operations, and the bottom-up connection is achieved through maximum pooling. The curved arrows in the figure indicate that each layer has a residual structure similar to that in ResNet to implement downsampling operations, and cross-scale connections are made between features a1 and c1, a2 and c2, and a3 and c3 with different spatial resolutions. Finally, the high-level feature d is used as the output of the branch, and d is average-pooled to obtain a 1024-dimensional feature f.p , which is convenient for feature fusion with global features.

[0133] 4. Loss function:

[0134] Since person re-identification is multi-task learning, the loss function of this task is divided into the classification loss Cross Loss and the triplet loss Triplet Loss, which is a metric learning loss directly constructed through the feature vector. The goal of the classification loss is to extract identity-specific information for classification, learn the loss corresponding to different pedestrian IDs, and help find the gap between the target and the predicted value in order to distinguish different people. The main purpose of Triplet Loss is to ensure that samples from the same category are closer to each other, and samples from different categories are farther away from each other, which can accelerate the convergence of the network.

[0135] In order to learn discriminative features during training, this application example uses a joint loss to constrain the training results. The label smoothed cross entropy loss function (L cross ) is used for classification loss training and uses the center loss function (L center ) Auxiliary hard triplet loss function (L triplet ) to improve the training effect and introduce the body segmentation loss function (L ps ) to constrain BAM.

[0136] L triplet Three samples are needed to calculate the loss, which are called Anchor samples, Positive samples, and Negative samples. Anchor samples are samples of target pedestrians. Positive samples and Anchor samples have the same category labels, while Negative samples and Anchor samples have different category labels. Label data includes the pedestrian's ID number, camera number, video clip number, and frame.

[0137] L triplet : Use L triplet It can expand the out-of-class distance and reduce the intra-class distance; the original position of the feature in the feature space will not be affected by L triplet The optimization of this layer is not affected by the change of the original image. For each batch of P×K images in the training phase, P pedestrians and K different images of each pedestrian are randomly selected. Each image in the batch is selected as an anchor, and images with the same label as the anchor are positive samples, while images with different labels are negative samples. triplet It can be expressed as:

[0138] L triplet =[d p -d n +α] +(5)

[0139] Among them, d n and d p are the feature distances of negative sample pairs and positive sample pairs respectively. α is the margin, [z] + Equivalent to (z,0) max In this application example, α is set to 0.3. However, L triplet Only d is considered p and d n The difference between them, while ignoring their absolute values, makes it difficult to ensure that d p <d n . According to the P×K images, multiple triplet samples can be obtained, each triplet sample includes: a positive sample pair consisting of a positive sample and an anchor sample and a negative sample pair consisting of the anchor sample and a negative sample, the positive sample, the anchor sample and the negative sample are all historical pedestrian images, the pedestrian unique identifiers corresponding to the positive sample and the anchor sample in the same triplet sample can be the same, the pedestrian unique identifiers corresponding to the negative sample and the anchor sample can be different, and the anchor samples in the positive sample pair and the negative sample pair in the same triplet sample are the same; according to each group of triplet samples and the triplet loss function, the triplet loss value of the group of triplet samples can be obtained.

[0140] L center :A deep feature center can be generated for each class, and the distance between the deep feature and the corresponding class center is constrained to make up for L triplet Disadvantages. center It can be expressed as:

[0141]

[0142] Among them, y j is the label of the jth image, Indicates the yth j The class center of the layer feature, B is the batch size, It can represent the output features of the jth image. This formula effectively describes the changes within the class, and minimizing the center loss can also increase the compactness within the class. center , L triplet and L cross The joint supervision of enables the training network to quickly achieve the two important goals of expanding the inter-class differences and improving the intra-class similarity.

[0143] L ps :Assume image I i The output probability tensor of the segmentation head is G i ∈G M×H×W Consider G i The spatial position (h,w) of theM And the real label of the image s∈{1,2,...,M}. The segmentation loss at this position is the negative sample likelihood L ps (i,h,w)=-log(g s ). To aggregate the position and segmentation losses of the batch of images, different body parts are considered to have the same weight. The sum of the losses for each part is calculated: Then calculate the corresponding position number Ω s =|S i,h,w =s|, s = 1, 2, ..., M. After training with BAM branches, the labels of the data set will have more labels representing body parts. The body parts can be divided into seven, plus the background, a total of 8, and the value of s can be 1, 2, 3, ..., M = 8. S i,h,w Represents a pixel in the image, and each pixel is labeled with which body part it belongs to. The number of positions is the number of labels in the pixel set of this image that is equal to s, because some pedestrian images may be occluded and not completely cover the 8 parts, so It is averaged according to the number of body parts contained in the image, rather than directly divided by 8. The average loss of part s is calculated as:

[0144]

[0145] The L of this batch ps It can be expressed as:

[0146]

[0147] The overall loss Loss of the global branch and the bidirectional feature pyramid branch can be expressed as:

[0148] Loss = L cross +L triplet +μL center +λL ps (9)

[0149] Among them, μ and λ are learnable weights, which are the weights of the center loss and body segmentation loss respectively, and are both set to 1 in this application example.

[0150] From the software level, in order to improve the reliability of pedestrian re-identification while ensuring the efficiency of pedestrian re-identification, and thus be able to prevent and respond to security incidents in a timely manner, the present application provides an embodiment of a pedestrian re-identification system for implementing all or part of the contents of the pedestrian re-identification method, see Fig.10 The pedestrian re-identification system specifically includes the following contents:

[0151] The acquisition device 01 is used to acquire the image information of the target pedestrian;

[0152] Application device 02, used for applying a preset body-aware bidirectional feature pyramid model to obtain a feature representation corresponding to the target pedestrian image information;

[0153] A pedestrian re-identification device 03, used to complete pedestrian re-identification corresponding to the target pedestrian image information according to the feature representation;

[0154] The preset body perception bidirectional feature pyramid model includes: a body perception extended global branch, a bidirectional feature pyramid branch and an improved Res2Net50 model.

[0155] In one embodiment, the application device comprises:

[0156] A first input module is used to input the pedestrian image information into an improved Res2Net50 model to obtain multiple output results, wherein the Res2Net50 model includes: a zeroth neural network layer, a first neural network layer, a second neural network layer, a first channel position attention module, a third neural network layer and a fourth neural network layer arranged in sequence;

[0157] a second input module, configured to input the output result of the fourth neural network layer into the global branch of the body perception extension, and determine the output result of the global branch of the body perception extension as a first intermediate output feature;

[0158] A third output module is used to input the output results of the first layer, the second layer and the third layer of the neural network layer into the bidirectional feature pyramid branch, and determine the output result of the bidirectional feature pyramid branch as a second intermediate output feature;

[0159] A feature representation module is determined, which is used to obtain a feature representation corresponding to the target pedestrian image information according to the first intermediate output feature and the second intermediate output feature.

[0160] In one embodiment, the bidirectional feature pyramid branch includes: a second channel position attention module, a dimensionality reduction filter and a convolution filter; correspondingly, the third output module includes:

[0161] A first input unit is used to input the output result of the first neural network layer into the second channel position attention module to obtain a first shallow feature, and input the output result of the second neural network layer into the second channel position attention module to obtain a second shallow feature;

[0162] An application unit, configured to apply the first shallow feature, the second shallow feature, the output result of the third neural network layer, the dimension reduction filter and the convolution filter to obtain a high-level feature;

[0163] The high-level features are average-pooled to obtain the second intermediate output features.

[0164] In one embodiment, the second input module comprises:

[0165] A pooling unit is used to perform global average pooling processing on the output result of the fourth neural network layer to obtain the first intermediate output feature.

[0166] In one embodiment, the determining feature representation module includes:

[0167] A determination unit is used to concatenate the first intermediate output feature and the second intermediate output feature, and determine the concatenation result as the feature representation corresponding to the target pedestrian image information.

[0168] In one embodiment, the pedestrian re-identification system further includes:

[0169] A historical information acquisition device, used to acquire batch historical pedestrian image information and their corresponding labels;

[0170] The training device is used to apply a preset loss function, batch historical pedestrian image information and their corresponding labels to train the preset body perception bidirectional feature pyramid model.

[0171] In one embodiment, the step size of the fourth neural network layer is 1.

[0172] The embodiment of the pedestrian re-identification system provided in this specification can be specifically used to execute the processing flow of the embodiment of the above-mentioned pedestrian re-identification method. Its functions will not be repeated here, and reference can be made to the detailed description of the embodiment of the above-mentioned pedestrian re-identification method.

[0173] From the hardware level, in order to improve the reliability of pedestrian re-identification while ensuring the efficiency of pedestrian re-identification, and thus be able to prevent and respond to security incidents in a timely manner, the present application provides an embodiment of an electronic device for implementing all or part of the contents of the pedestrian re-identification method. The electronic device specifically includes the following contents:

[0174] A processor, a memory, a communications interface and a bus; wherein the processor, the memory and the communications interface communicate with each other through the bus; the communications interface is used to realize information transmission between the pedestrian re-identification system and related devices such as user terminals; the electronic device can be a desktop computer, a tablet computer and a mobile terminal, etc., but the present embodiment is not limited thereto. In the present embodiment, the electronic device can be implemented with reference to the embodiments for realizing the pedestrian re-identification method and the embodiments for realizing the pedestrian re-identification system, and the contents thereof are incorporated herein, and the repeated parts are not repeated.

[0175] Fig.11 FIG. 9 is a schematic block diagram of the system structure of the electronic device 9600 according to an embodiment of the present application. Fig.11 As shown, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. It is worth noting that Fig.11 is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.

[0176] In one or more embodiments of the present application, the pedestrian re-identification function may be integrated into the central processing unit 9100. The central processing unit 9100 may be configured to perform the following control:

[0177] Step 100: Obtain target pedestrian image information.

[0178] Step 200: Apply a preset body-aware bidirectional feature pyramid model to obtain a feature representation corresponding to the target pedestrian image information.

[0179] Step 300: According to the feature representation, complete pedestrian re-identification corresponding to the target pedestrian image information; wherein the preset body-aware bidirectional feature pyramid model includes: a global branch of body-aware extension, a bidirectional feature pyramid branch and an improved Res2Net50 model.

[0180] It can be seen from the above description that the electronic device provided by the embodiment of the present application can improve the reliability of pedestrian re-identification while ensuring the efficiency of pedestrian re-identification, and thus can prevent and respond to security incidents in a timely manner.

[0181] In another embodiment, the pedestrian re-identification system may be configured separately from the central processor 9100. For example, the pedestrian re-identification system may be configured as a chip connected to the central processor 9100, and the pedestrian re-identification function may be implemented under the control of the central processor.

[0182] like Fig.11 As shown, the electronic device 9600 may also include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily have to include Fig.11 In addition, the electronic device 9600 may also include Fig.11 For components not shown, reference may be made to the prior art.

[0183] like Fig.11 As shown, the central processing unit 9100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor device and / or logic device. The central processing unit 9100 receives input and controls the operation of various components of the electronic device 9600.

[0184] The memory 9140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 9100 may execute the program stored in the memory 9140 to implement information storage or processing, etc.

[0185] The input unit 9120 provides input to the central processing unit 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used to display display objects such as images and texts. The display may be, for example, an LCD display, but is not limited thereto.

[0186] The memory 9140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 9600 through the central processor 9100.

[0187] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).

[0188] The communication module 9110 is a transmitter / receiver 9110 that sends and receives signals via an antenna 9111. The communication module (transmitter / receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.

[0189] Based on different communication technologies, multiple communication modules 9110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless LAN module, etc. The communication module (transmitter / receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide an audio output via the speaker 9131 and receive an audio input from the microphone 9132, thereby realizing a common telecommunication function. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 9130 is also coupled to the central processor 9100, so that recording can be performed on the local machine through the microphone 9132, and the sound stored on the local machine can be played through the speaker 9131.

[0190] It can be seen from the above description that the electronic device provided by the embodiment of the present application can improve the reliability of pedestrian re-identification while ensuring the efficiency of pedestrian re-identification, thereby being able to prevent and respond to security incidents in a timely manner.

[0191] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps in the pedestrian re-identification method in the above embodiments. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, all the steps in the pedestrian re-identification method in the above embodiments are implemented. For example, when the processor executes the computer program, the following steps are implemented:

[0192] Step 100: Obtain target pedestrian image information.

[0193] Step 200: Apply a preset body-aware bidirectional feature pyramid model to obtain a feature representation corresponding to the target pedestrian image information.

[0194] Step 300: According to the feature representation, complete pedestrian re-identification corresponding to the target pedestrian image information; wherein the preset body-aware bidirectional feature pyramid model includes: a global branch of body-aware extension, a bidirectional feature pyramid branch and an improved Res2Net50 model.

[0195] From the above description, it can be seen that the computer-readable storage medium provided in the embodiment of the present application can improve the reliability of pedestrian re-identification while ensuring the efficiency of pedestrian re-identification, thereby being able to prevent and respond to security incidents in a timely manner.

[0196] In this application, each embodiment of the above method is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. For relevant parts, refer to the partial description of the method embodiment.

[0197] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0198] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0199] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0200] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0201] Specific embodiments are used in this application to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core idea of ​​this application. At the same time, for those skilled in the art, according to the idea of ​​this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on this application.

Claims

1. A pedestrian re-identification method, characterized in that: include: Obtain target pedestrian image information; Applying a preset body-aware bidirectional feature pyramid model to obtain a feature representation corresponding to the target pedestrian image information; According to the feature representation, completing pedestrian re-identification corresponding to the target pedestrian image information; The preset body perception bidirectional feature pyramid model includes: a body perception extended global branch, a bidirectional feature pyramid branch and an improved Res2Net50 model.

2. The pedestrian re-identification method according to claim 1, characterized in that: The applying a preset body-aware bidirectional feature pyramid model to obtain a feature representation corresponding to the target pedestrian image information includes: Inputting the pedestrian image information into an improved Res2Net50 model to obtain multiple output results, wherein the Res2Net50 model includes: a zeroth neural network layer, a first neural network layer, a second neural network layer, a first channel position attention module, a third neural network layer, and a fourth neural network layer arranged in sequence; Inputting the output result of the fourth neural network layer into the global branch of the body perception extension, and determining the output result of the global branch of the body perception extension as the first intermediate output feature; Inputting the output results of the first, second and third neural network layers into the bidirectional feature pyramid branch, and determining the output result of the bidirectional feature pyramid branch as a second intermediate output feature; A feature representation corresponding to the target pedestrian image information is obtained according to the first intermediate output feature and the second intermediate output feature.

3. The pedestrian re-identification method according to claim 2, characterized in that: The bidirectional feature pyramid branch includes: a second channel position attention module, a dimensionality reduction filter and a convolution filter; Correspondingly, the output results of the first, second and third neural network layers are all input into the bidirectional feature pyramid branch, and the output results of the bidirectional feature pyramid branch are determined as the second intermediate output feature, including: Input the output result of the first neural network layer to the second channel position attention module to obtain a first shallow feature, and input the output result of the second neural network layer to the second channel position attention module to obtain a second shallow feature; Applying the first shallow features, the second shallow features, the output result of the third neural network layer, the dimension reduction filter and the convolution filter to obtain high-level features; The high-level features are average-pooled to obtain the second intermediate output features.

4. The pedestrian re-identification method according to claim 2, characterized in that: The step of inputting the output result of the fourth neural network layer into the global branch of the body perception extension, and determining the output result of the global branch of the body perception extension as the first intermediate output feature, comprises: Perform global average pooling processing on the output result of the fourth neural network layer to obtain the first intermediate output feature.

5. The pedestrian re-identification method according to claim 2, characterized in that: The obtaining, according to the first intermediate output feature and the second intermediate output feature, a feature representation corresponding to the target pedestrian image information includes: The first intermediate output feature and the second intermediate output feature are connected in series, and the connection result is determined as the feature representation corresponding to the target pedestrian image information.

6. The pedestrian re-identification method according to claim 1, characterized in that: Also includes: Obtain batch historical pedestrian image information and their corresponding labels; The preset body-aware bidirectional feature pyramid model is trained by applying a preset loss function, batch historical pedestrian image information and their corresponding labels.

7. The pedestrian re-identification method according to claim 2, characterized in that: The step size of the fourth neural network layer is 1.

8. A pedestrian re-identification system, characterized in that: include: An acquisition device, used for acquiring image information of a target pedestrian; An application device is used to apply a preset body-aware bidirectional feature pyramid model to obtain a feature representation corresponding to the target pedestrian image information; A pedestrian re-identification device, used to complete pedestrian re-identification corresponding to the target pedestrian image information according to the feature representation; The preset body perception bidirectional feature pyramid model includes: a body perception extended global branch, a bidirectional feature pyramid branch and an improved Res2Net50 model.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the pedestrian re-identification method described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instructions are executed by a processor, the pedestrian re-identification method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Multi-level screening long-time large-range pedestrian re-identification method

    CN112199983A

  • Pedestrian re-recognition system and method based on spatial sequence feature learning

    CN113239784A

  • Multi-granularity pedestrian re-identification method and system guided by double-pyramid structure

    CN114627492A

  • Pedestrian re-identification method based on multi-scale feature learning

    CN116977817A