Open environment gait recognition method based on multi-scale attention fusion dynamic convolution

By introducing a multi-scale attention fusion dynamic convolution model into gait recognition, the problem of low gait recognition accuracy in open environments is solved, and gait feature extraction and identity recognition accuracy under complex conditions are improved.

CN118840784APending Publication Date: 2024-10-25DALIAN MARITIME UNIVERSITY

Patent Information

Application Number
CN202410886180.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

Existing gait recognition methods have poor accuracy under complex conditions in open environments, especially when local feature extraction is poor under multiple viewing angles, different ways of dressing, occlusion, and carrying items, resulting in low gait recognition accuracy. .

Method used

A gait recognition method based on multi-scale attention fusion dynamic convolution is used to preprocess by obtaining the gait binary contour map sequence, and the multi-scale attention fusion dynamic convolution model is used to extract gait features, combining dynamic convolution and Attention mechanism improves local feature extraction effect.

Benefits of technology

It significantly improves the accuracy of gait recognition in open environments, can more effectively handle gait feature extraction under complex conditions, and improves the accuracy of identity recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118840784A_ABST
    Figure CN118840784A_ABST
Patent Text Reader

Abstract

The invention discloses an open environment gait recognition method based on multi-scale attention fusion dynamic convolution, and the method comprises the steps: obtaining a gait binary contour map sequence in an open environment through a pedestrian gait video to be subjected to gait recognition in the open environment, carrying out the normalization of pixel values in a gait binary contour map, and obtaining a gait binary contour map sequence; obtaining a preprocessed gait binary contour map sequence; and inputting the gait feature map into the established open environment gait recognition model based on the multi-scale attention fusion dynamic convolution, and obtaining a gait feature map after multi-scale attention adjustment of the fusion dynamic convolution to obtain a gait identity feature vector so as to assist in performing identity recognition on a pedestrian to be subjected to gait recognition in the open environment. In the gait recognition model construction process, dynamic convolution is fused into multi-scale attention, the situation that the local feature extraction effect is poor due to complex conditions such as multiple visual angles, different dressing modes, shielding and article carrying in the open environment can be improved, and the gait recognition accuracy is improved. And the gait recognition accuracy in an open environment is obviously improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of gait recognition, and in particular to an open environment gait recognition method based on multi-scale attention fusion dynamic convolution. Background Art

[0002] Gait recognition is a second-generation biometric technology, which has the advantages of good concealment, long-distance collection, no need for cooperation, difficult to disguise, and low requirements for video clarity and camera resolution. Therefore, relying on video surveillance, gait recognition has a wide range of applications in crime prevention, forensic identification, and social security. An open environment refers to a completely unconstrained situation. Gait recognition in this situation usually faces situations such as different perspectives, occlusions, complex and dynamic background clutter, and different walking conditions. However, due to the complexity of the above situations faced in an open environment, there are currently few studies on gait recognition in an open environment. At present, there are three main methods for gait recognition in an open environment in the field of deep learning, namely, methods based on gait contour sequences, methods based on human skeleton joints, and methods that fuse gait contour sequences and human skeleton joints. Faced with uncontrolled situations in an open environment, there will be complex walking conditions such as multiple perspectives, different ways of dressing, occlusions, and carrying items. The existing gait recognition methods have poor results in extracting local features when faced with complex walking conditions, resulting in poor gait recognition accuracy in an open environment. Summary of the invention

[0003] The present invention provides an open environment gait recognition method based on multi-scale attention fusion dynamic convolution to overcome the above technical problems.

[0004] In order to achieve the above object, the technical solution of the present invention is:

[0005] A method for gait recognition in an open environment based on multi-scale attention fusion dynamic convolution includes the following steps:

[0006] S1: Based on a gait video of a pedestrian to be recognized in an open environment, a gait original image sequence in the open environment is obtained to obtain a gait binary contour image sequence in the open environment;

[0007] S2: normalizing the pixel values ​​of the gait binary contour images in the gait binary contour image sequence to preprocess the gait binary contour image sequence and obtain a preprocessed gait binary contour image sequence;

[0008] S3: Establish an open environment gait recognition model based on multi-scale attention fusion dynamic convolution;

[0009] S4: According to the preprocessed gait binary contour map sequence and the open environment gait recognition model based on multi-scale attention fusion dynamic convolution, the gait feature map after multi-scale attention adjustment of fused dynamic convolution is obtained to obtain the gait identity feature vector, thereby assisting in the identification of the pedestrians to be gait recognized in the open environment.

[0010] Furthermore, the open environment gait recognition model based on multi-scale attention fusion dynamic convolution includes: a first CNN module, a second CNN module, a third CNN module, a fourth CNN module, a dynamic convolution module, a dynamic convolution channel feature separation module, a multi-scale attention fusion dynamic convolution module, a fifth CNN module, an addition module, a maximum time pooling layer, a horizontal pyramid pooling module, a fully connected layer and a downsampling layer;

[0011] The output end of the first CNN module is used to receive the preprocessed gait profile binary image sequence, and obtain pixel features of the gait profile image according to the gait profile binary image in the preprocessed gait profile binary image sequence;

[0012] The output end of the first CNN module is connected to the input end of the second CNN module; so as to transmit the pixel features of the gait profile image to the second CNN module;

[0013] The second CNN module is used to obtain detailed features of the gait profile image according to the pixel features; the output end of the second CNN module is connected to the input end of the third CNN module to transmit the detailed features of the gait profile image to the third CNN module;

[0014] The third CNN module is used to obtain the texture features of the gait profile image according to the detail features; the output end of the third CNN module is connected to the input end of the fourth CNN module and the input end of the downsampling layer respectively, so as to transmit the texture features of the gait profile image to the fourth CNN module and the downsampling layer;

[0015] The fourth CNN module is used to obtain the shape and structure features of the gait profile image according to the texture features of the gait profile image; the output end of the fourth CNN module is connected to the input end of the dynamic convolution module to transmit the shape and structure features of the gait profile image to the dynamic convolution module;

[0016] The dynamic convolution module is used to obtain a dynamic convolution feature map of the gait contour image according to the shape structure feature; the output end of the dynamic convolution module is connected to the input end of the dynamic convolution channel feature separation module to transmit the dynamic convolution feature map of the gait contour image to the dynamic convolution channel feature separation module;

[0017] The dynamic convolution channel feature separation module is used to obtain the dynamic convolution channel one feature, the dynamic convolution channel two feature and the dynamic convolution channel three feature after channel separation according to the dynamic convolution feature map of the gait profile image;

[0018] The input end of the multi-scale attention fusion dynamic convolution module is respectively connected to the output end of the dynamic convolution channel feature separation module and the output end of the fourth CNN module, and is used to obtain a gait feature map after multi-scale attention adjustment fused with dynamic convolution according to the shape structure feature of the gait contour image, the dynamic convolution channel one feature, the dynamic convolution channel two feature and the dynamic convolution channel three feature;

[0019] The fifth CNN module is used to obtain and output the semantic features of the gait profile image according to the gait feature map adjusted by the multi-scale attention of the fused dynamic convolution;

[0020] The downsampling layer is used to obtain residual features of the gait profile image according to the texture features of the gait profile image;

[0021] The input end of the adding module is connected to the output end of the fifth module and the output end of the downsampling layer respectively, and is used to obtain a feature map combining the semantic features and the residual features according to the semantic features of the gait profile image and the residual features of the gait profile image;

[0022] The input end of the maximum time pooling module is connected to the output end of the addition module, and is used to obtain significant features of the gait profile image according to the feature map combining the semantic features and the residual features;

[0023] The input end of the horizontal pyramid pooling module is connected to the output end of the maximum time pooling module, and is used to obtain multi-scale features of the gait profile image in an open environment according to the significant features of the gait profile image;

[0024] The input end of the fully connected layer is connected to the output end of the horizontal pyramid pooling module, and is used to obtain a gait identity feature vector according to the multi-scale features of the gait contour image in the open environment, so as to identify the identity of the pedestrian in the open environment.

[0025] Furthermore, the dynamic convolution module includes a two-dimensional global average pooling layer, a two-dimensional convolution module, a first two-dimensional grouping module, an activation function module, a second two-dimensional convolution grouping module, and a third two-dimensional convolution grouping module;

[0026] The input end of the two-dimensional global average pooling layer is connected to the output end of the third CNN module, and is used to obtain the image global features of the gait profile image according to the shape and structure features of the gait profile image;

[0027] The input end of the two-dimensional convolution module is connected to the output end of the two-dimensional global average pooling layer, and is used to obtain the local features of the gait profile image according to the global features of the gait profile image;

[0028] The input end of the first two-dimensional grouping module is connected to the output end of the two-dimensional convolution module, and is used to obtain a first grouping feature of the gait profile image obtained by grouping the local features of the gait profile images of different channels according to the local features of the gait profile image;

[0029] The input end of the activation function module is connected to the output end of the first two-dimensional grouping module, and is used to obtain nonlinear transformation features according to the first grouping features extracted from the gait profile image;

[0030] The input end of the second two-dimensional grouping module is connected to the output end of the activation function module, and is used to obtain a second grouping feature of the gait profile image according to the nonlinear transformation feature; the second grouping feature of the gait profile image is a feature extracted by grouping the nonlinear transformation feature again;

[0031] The input end of the third two-dimensional grouping module is connected to the output end of the second two-dimensional grouping module and the output end of the third CNN module respectively, and is used to obtain a dynamic convolution feature map of the gait profile image according to the second grouping feature and the shape structure feature of the gait profile image;

[0032] The output end of the third two-dimensional grouping module is connected to the input end of the dynamic convolution channel feature separation module.

[0033] Furthermore, the multi-scale attention fusion dynamic convolution module includes a first attention module, a second attention module, a third attention module, a first multiplication module, a second multiplication module, a third multiplication module, and a second addition module;

[0034] The input end of the first attention module, the input end of the second attention module and the input end of the third attention module are all connected to the output end of the fourth CNN module; they are respectively used to obtain the feature map after ECA attention adjustment at the first scale, the feature map after ECA attention adjustment at the second scale and the feature map after ECA attention adjustment at the third scale according to the shape structure characteristics of the gait profile image; the number of channels of the feature map after ECA attention adjustment at the first scale, the feature map after ECA attention adjustment at the second scale and the feature map after ECA attention adjustment at the third scale are different;

[0035] The output end of the first attention module and the output end of the dynamic convolution channel feature separation module are both connected to the first multiplication module, and are used to obtain the first attention adjusted feature map fused with dynamic convolution according to the dynamic convolution channel one feature and the feature map after ECA attention adjustment at the first scale;

[0036] The output end of the second attention module and the output end of the dynamic convolution channel feature separation module are both connected to the second multiplication module, and are used to obtain the second attention adjusted feature map fused with dynamic convolution according to the dynamic convolution channel second feature and the feature map adjusted by ECA attention at the second scale;

[0037] The output end of the third attention module and the output end of the dynamic convolution channel feature separation module are both connected to the third multiplication module, and are used to obtain the third attention-adjusted feature map of the fused dynamic convolution according to the three features of the dynamic convolution channel and the feature map after ECA attention adjustment at the third scale;

[0038] The input end of the second adding module is respectively connected to the output end of the first multiplication module, the output end of the second multiplication module and the output end of the third multiplication module, and is used to obtain a gait feature map after multi-scale attention adjustment of the fused dynamic convolution according to the first attention-adjusted feature map of the fused dynamic convolution, the second attention-adjusted feature map of the fused dynamic convolution, and the third attention-adjusted feature map of the fused dynamic convolution;

[0039] The output end of the second adding module is connected to the input end of the fifth CNN module.

[0040] Furthermore, the method for obtaining a gait binary contour image sequence in an open environment is as follows:

[0041] S11: extracting a gait video of a pedestrian to be recognized from a surveillance camera in an open environment, and converting it into a gait original image sequence frame by frame;

[0042] S12: Use the semantic segmentation method to extract the binary contour map of the pedestrian to be recognized from the gait original image sequence to obtain a gait binary contour map sequence in an open environment.

[0043] Beneficial effects: The present invention provides an open environment gait recognition method based on multi-scale attention fusion dynamic convolution. Through the gait video of the pedestrian to be recognized in the open environment, a gait binary contour map sequence in the open environment is obtained, and the pixel values ​​in the gait binary contour map are normalized to obtain the pre-processed gait binary contour map sequence; the sequence is input into the established open environment gait recognition model based on multi-scale attention fusion dynamic convolution to obtain the gait feature map adjusted by the multi-scale attention fusion dynamic convolution, so as to obtain the gait identity feature vector, and then assist in the identification of the pedestrian to be recognized in the open environment. In the process of constructing the gait recognition model, the present invention integrates dynamic convolution into multi-scale attention, which can improve the situation where the local feature extraction effect is poor due to complex conditions such as multiple viewing angles, different dressing methods, occlusion, and carrying items in the open environment, and the gait recognition accuracy in the open environment has been significantly improved. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0045] Figure 1 It is a flow chart of the open environment gait feature extraction method based on multi-scale attention of the present invention;

[0046] Figure 2 Schematic diagram of the structure of an open environment gait recognition model based on multi-scale attention fusion dynamic convolution in an embodiment of the present invention;

[0047] Figure 3 Schematic diagram of the structure of a dynamic convolution module in an embodiment of the present invention;

[0048] Figure 4 It is a schematic diagram of a multi-scale attention fusion dynamic convolution structure in an embodiment of the present invention;

[0049] Figure 5 Schematic diagram of separation dynamic convolution channel characteristics in an embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] This embodiment provides an open environment gait recognition method based on multi-scale attention fusion dynamic convolution, such as Figure 1 As shown, the following steps are included:

[0052] S1: Based on the pedestrian gait video in an open environment, a gait original image sequence in an open environment is obtained to obtain a gait binary contour image sequence in an open environment;

[0053] Specifically, the method for acquiring the gait binary contour image sequence in this embodiment is as follows:

[0054] S11: extracting a gait video of a pedestrian to be recognized from a surveillance camera in an open environment, and converting it into a gait original image sequence frame by frame;

[0055] S12: Use semantic segmentation method to extract binary contour images containing only pedestrians whose gait is to be recognized from the original gait image sequence, and annotate the binary contour images to finally form a sequence of gait binary contour images in an open environment, and divide the dataset into training set and test set.

[0056] Specifically, the gait binary contour sequence loading method of this embodiment is to randomly extract a certain number of gait binary contour images for each pedestrian gait binary contour sequence in a certain range in an unordered manner from the constructed open environment gait binary contour image sequence to form an input gait binary contour sequence Y = {Y1, Y2, ..., Y n}, where Y n Represents the nth gait binary contour image in the gait binary contour sequence.

[0057] S2: normalizing the pixel values ​​of the gait binary contour images in the gait binary contour image sequence to preprocess the gait binary contour image sequence and obtain a preprocessed gait binary contour image sequence;

[0058] Specifically, the preprocessing method for the gait binary contour image sequence of this embodiment is to normalize the pixel value of each gait contour binary image to obtain the pixel value b=a / 255 finally input into the gait feature extraction module, wherein a is the pixel value of the gait contour binary image before preprocessing, and b is the pixel value of the gait contour binary image after preprocessing; the gait binary contour sequence after preprocessing is X={X1,X2,...,X n}, where X n is the nth gait profile binary image after preprocessing.

[0059] S3: Establish an open environment gait recognition model based on multi-scale attention fusion dynamic convolution;

[0060] Preferably, the open environment gait recognition model based on multi-scale attention fusion dynamic convolution includes: a first CNN module, a second CNN module, a third CNN module, a fourth CNN module, a dynamic convolution module, a dynamic convolution channel feature separation module, a multi-scale attention fusion dynamic convolution module, a fifth CNN module, an addition module, a maximum time pooling layer, a horizontal pyramid pooling module, a fully connected layer and a downsampling layer;

[0061] The output end of the first CNN module is used to receive the preprocessed gait profile binary image sequence, and obtain pixel features of the gait profile image according to the gait profile binary image in the preprocessed gait profile binary image sequence;

[0062] The output end of the first CNN module is connected to the input end of the second CNN module; so as to transmit the pixel features of the gait profile image to the second CNN module; specifically, the extracted pixel features of the gait profile image include the color and basic texture of the gait profile image;

[0063] The second CNN module is used to obtain the detailed features of the gait contour image based on the pixel features; the output end of the second CNN module is connected to the input end of the third CNN module to transmit the detailed features of the gait contour image to the third CNN module; specifically, the extracted detailed features in the gait contour image, such as the edges and lines of the contour.

[0064] The third CNN module is used to obtain the texture features of the gait profile image according to the detail features; the output end of the third CNN module is connected to the input end of the fourth CNN module and the input end of the downsampling layer respectively, so as to transmit the texture features of the gait profile image to the fourth CNN module and the downsampling layer; specifically, the extracted texture features include smooth, rough, regular or irregular surface structures in the image;

[0065] The fourth CNN module is used to obtain the shape and structure features of the gait profile image according to the texture features of the gait profile image; the output end of the fourth CNN module is connected to the input end of the dynamic convolution module to transmit the shape and structure features of the gait profile image to the dynamic convolution module; the shape and structure features of the gait profile image, such as the local and global shapes, structural layout and relative positions of the gait profile image;

[0066] The dynamic convolution module is used to obtain a dynamic convolution feature map of the gait contour image according to the shape structure feature; the output end of the dynamic convolution module is connected to the input end of the dynamic convolution channel feature separation module to transmit the dynamic convolution feature map of the gait contour image to the dynamic convolution channel feature separation module;

[0067] The dynamic convolution channel feature separation module is used to separate the channels of the dynamic convolution feature map of the gait profile image according to the dynamic convolution feature map of the gait profile image, and obtain the dynamic convolution channel one feature, the dynamic convolution channel two feature and the dynamic convolution channel three feature after the separation of the channels;

[0068] The input end of the multi-scale attention fusion dynamic convolution module is respectively connected to the output end of the dynamic convolution channel feature separation module and the output end of the fourth CNN module, and is used to obtain a gait feature map after multi-scale attention adjustment fused with dynamic convolution according to the shape structure feature of the gait contour image, the dynamic convolution channel one feature, the dynamic convolution channel two feature and the dynamic convolution channel three feature;

[0069] The fifth CNN module is used to obtain and output the semantic features of the gait profile image according to the gait feature map adjusted by the multi-scale attention of the fused dynamic convolution; the semantic features, for example, can represent the category information, action, intention, etc. of the entire object or scene in the image;

[0070] The downsampling layer is used to obtain residual features of the gait profile image according to the texture features of the gait profile image;

[0071] The input end of the adding module is connected to the output end of the fifth module and the output end of the downsampling layer respectively, and is used to obtain a feature map combining the semantic features and the residual features according to the semantic features of the gait profile image and the residual features of the gait profile image;

[0072] The input end of the maximum time pooling module is connected to the output end of the addition module, and is used to obtain significant features of the gait profile image according to the feature map combining the semantic features and the residual features; for example, important movements during walking;

[0073] The input end of the horizontal pyramid pooling module is connected to the output end of the maximum time pooling module, and is used to obtain multi-scale features of the gait contour image in an open environment according to the significant features of the gait contour image; and transmit the multi-scale features of the gait contour image in the open environment to the fully connected layer module.

[0074] The input end of the fully connected layer is connected to the output end of the horizontal pyramid pooling module, and is used to obtain a gait identity feature vector according to the multi-scale features of the gait profile image in the open environment, so as to identify the identity of the pedestrian in the open environment. The gait identity feature vector can represent the uniqueness of a person's gait;

[0075] Preferably, the dynamic convolution module includes a two-dimensional global average pooling layer, a two-dimensional convolution module, a first two-dimensional grouping module, an activation function module, a second two-dimensional convolution grouping module, and a third two-dimensional convolution grouping module;

[0076] The input end of the two-dimensional global average pooling layer is connected to the output end of the third CNN module, and is used to obtain the image global features of the gait profile image according to the shape and structure features of the gait profile image;

[0077] The input end of the two-dimensional convolution module is connected to the output end of the two-dimensional global average pooling layer, and is used to obtain the local features of the gait profile image according to the global features of the gait profile image;

[0078] The input end of the first two-dimensional grouping module is connected to the output end of the two-dimensional convolution module, and is used to obtain a first grouping feature of the gait profile image obtained by grouping the local features of the gait profile images of different channels according to the local features of the gait profile image;

[0079] Specifically, the first grouping feature is obtained by combining or rearranging features of different channels of local features of the gait profile image;

[0080] The input end of the activation function module is connected to the output end of the first two-dimensional grouping module, and is used to obtain nonlinear transformation features according to the first grouping features extracted from the gait profile image;

[0081] The input end of the second two-dimensional grouping module is connected to the output end of the activation function module, and is used to obtain a second grouping feature of the gait profile image according to the nonlinear transformation feature; the second grouping feature of the gait profile image is the feature extracted by grouping the nonlinear transformation feature again; specifically, the method of grouping the local features of the gait profile images of different channels and the method of grouping the nonlinear transformation features are conventional methods in the field and are set according to actual conditions.

[0082] The input end of the third two-dimensional grouping module is connected to the output end of the second two-dimensional grouping module and the output end of the third CNN module respectively, and is used to obtain a dynamic convolution feature map of the gait profile image according to the second grouping feature and the shape structure feature of the gait profile image;

[0083] The output end of the third two-dimensional grouping module is connected to the input end of the dynamic convolution channel feature separation module.

[0084] Preferably, the multi-scale attention fusion dynamic convolution module includes a first attention module, a second attention module, a third attention module, a first multiplication module, a second multiplication module, a third multiplication module, and a second addition module;

[0085] The input end of the first attention module, the input end of the second attention module and the input end of the third attention module are all connected to the output end of the fourth CNN module; they are respectively used to obtain the ECA attention-adjusted feature map at the first scale, the ECA attention-adjusted feature map at the second scale and the ECA attention-adjusted feature map at the third scale according to the shape structure characteristics of the gait profile image; the number of channels of the ECA attention-adjusted feature map at the first scale, the ECA attention-adjusted feature map at the second scale and the ECA attention-adjusted feature map at the third scale are different; specifically, the number of channels of the correlation between channels that can be captured by the ECA attention-adjusted feature map at the first scale, the ECA attention-adjusted feature map at the second scale and the ECA attention-adjusted feature map at the third scale is set according to the specific situation.

[0086] The output end of the first attention module and the output end of the dynamic convolution channel feature separation module are both connected to the first multiplication module, and are used to obtain the first attention adjusted feature map fused with dynamic convolution according to the dynamic convolution channel one feature and the feature map after ECA attention adjustment at the first scale;

[0087] The output end of the second attention module and the output end of the dynamic convolution channel feature separation module are both connected to the second multiplication module, and are used to obtain the second attention adjusted feature map fused with dynamic convolution according to the dynamic convolution channel second feature and the feature map adjusted by ECA attention at the second scale;

[0088] The output end of the third attention module and the output end of the dynamic convolution channel feature separation module are both connected to the third multiplication module, and are used to obtain the third attention-adjusted feature map of the fused dynamic convolution according to the three features of the dynamic convolution channel and the feature map after ECA attention adjustment at the third scale;

[0089] The input end of the second adding module is respectively connected to the output end of the first multiplication module, the output end of the second multiplication module and the output end of the third multiplication module, and is used to obtain a gait feature map after multi-scale attention adjustment of the fused dynamic convolution according to the first attention-adjusted feature map of the fused dynamic convolution, the second attention-adjusted feature map of the fused dynamic convolution, and the third attention-adjusted feature map of the fused dynamic convolution;

[0090] The output end of the second adding module is connected to the input end of the fifth CNN module.

[0091] Specifically, the open environment gait recognition model based on multi-scale attention fusion dynamic convolution in this embodiment is composed of a multi-scale attention fusion dynamic convolution module and multiple CNN modules. The network structure diagram is as follows: Figure 2 As shown, the CNN part includes the first CNN module, the second CNN module, the third CNN module, the fourth CNN module, the fifth CNN module, the maximum time pooling layer, the horizontal pyramid pooling module, the fully connected layer, and the downsampling layer. The first CNN module, the second CNN module, the third CNN module, the fourth CNN module, and the fifth CNN module are all modules in the residual network, the downsampling layer is a two-dimensional convolutional layer, and the attention selection is inserted after the fourth CNN module.

[0092] Specifically, the open environment gait recognition model based on multi-scale attention fusion dynamic convolution in this embodiment is to extract the gait features of the open environment based on multi-scale attention. During the model training process, the joint loss function is used to train using the open environment gait binary contour training set. All modules used in the model are existing technologies in the field. This embodiment only uses these modules to realize the functions of the model built in this embodiment.

[0093] Specifically, in this embodiment:

[0094] The pixel feature map of the gait profile image output by the first CNN module is X n0 =ReLU(BN(Conv2d(X n ))), where Conv2d represents two-dimensional convolution, BN represents two-dimensional batch normalization, and ReLU is the activation function; X n0 Representing pixel features of gait profile image;

[0095] The second CNN module outputs the gait profile feature map as follows:

[0096] X n1 =ReLU(X n0 +BN(Conv2d(ReLU(BN(Conv2d(X n0 )))))); where Xn1 Represents the detailed features of the gait profile image;

[0097] The third CNN module outputs the gait profile feature map as follows:

[0098] X n2 =ReLU(BN(Conv2d(X n1 ))+BN(Conv2d(ReLU(BN(Conv2d(X n1 ))))))) Among them, X n2 surface

[0099] The texture features of gait contour images are shown;

[0100] The fourth CNN module outputs the gait profile feature map as follows:

[0101] X n3 =ReLU(BN(Conv2d(X n2 ))+BN(Conv2d(ReLU(BN(Conv2d(X n2 ))))))) Among them, X n3

[0102] Representing the shape structure features of gait profile images;

[0103] The fifth CNN module outputs the gait profile feature map as follows:

[0104] X n4 =ReLU(BN(Conv2d(X natten ))+BN(Conv2d(ReLU(BN(Conv2d(X natten )))))),in

[0105] X natten For X n3 The gait feature map is formed by multi-scale attention fusion of dynamic convolution. n4 Representing semantic features of gait profile images;

[0106] The downsampling layer outputs the gait profile feature map as X nd =Conv2d(X n2 ), the downsampling layer is added to the output of module 4 to obtain the backbone network output X nbackbone =X nd +X n4 , where X nd Represents the residual features of the gait profile image; X nbackbone A feature map representing the combination of semantic features and residual features;

[0107] Specifically, the structure of the dynamic convolution module of this embodiment is as follows: Figure 3 As shown, the output dynamic convolution feature map is X nD =GConv2d(X n3 ,X nDQ ), where GConv2d represents two-dimensional group convolution and GAP represents two-dimensional global average pooling. The formula is: X nDQ is the dynamic convolution weight, which is obtained by X nDQ =GConv2d(Sigmoid(GConv2d(Conv2d(GAP(X n3 )))))), the whole formula means using dynamic convolution weights X nDQ X n3 Perform two-dimensional group convolution to obtain dynamic convolution X nD .X nD represents a dynamic convolution feature map; H represents the feature map height; W represents the feature map width; i represents the position coordinate on the height; j represents the position coordinate on the width; Sigmoid represents the activation function;

[0108] Specifically, the multi-scale attention proposed in this embodiment is improved by ECA attention, and the ECA attention output is as follows X nECA(b) =X n4 ·(Sigmoid(Conv1d((a,1))(GAP(X n4 ))))), where Conv1d is a one-dimensional convolution and (a,1) indicates that the one-dimensional convolution kernel size is a×1. nECA(b) represents the attention at a certain scale; b represents the index number of the scale;

[0109] Specifically, this embodiment proposes to fuse the multi-scale attention dynamic convolution module as Figure 4 As shown, its characteristics are: Where X nD(c) Represents dynamic convolution X nD The c-th channel feature map of , the process of separating dynamic convolution channel features is as follows Figure 5 As shown. natten represents the gait feature map after multi-scale attention adjustment by fusion dynamic convolution; X nD(c) represents the dynamic convolution feature map; c represents the dynamic convolution X nD The index number of the channel;

[0110] Specifically, this embodiment uses the maximum pooling method to operate the gait feature graph sequence output by the backbone network to obtain the gait feature graph sequence X output by the backbone network backbone The maximum value X max , where X max =max(X backbone), max represents maximum pooling.

[0111] Specifically, the horizontal pyramid pooling method of this embodiment is to perform maximum pooling on the gait feature map sequence to obtain the gait feature map X max Divide into 2 horizontally s-1 Areas of the same size Where s is a positive integer, k represents the number of divided regions; and each region is subjected to maximum pooling and mean pooling, and the results of the two poolings are added together to obtain X. HPP(k) =max(X max(k) )+mean(X max(k) ), where mean represents mean pooling, and finally all X HPP(k) Splice to get the horizontal pyramid pooling output X HPP .X max(k) Represents the most significant features of the gait profile sequence;

[0112] Specifically, the fully connected layer of this embodiment outputs the horizontal pyramid pooling X HPP Mapped to the discriminant space to obtain the gait feature X FC For triplet loss function, for X FC Perform batch normalization to obtain the gait feature X FCBN Used for cross entropy loss function. X FC represents the final output gait identity feature vector; X FCBN Represents the features of the final output gait identity feature vector after regularization and normalization;

[0113] Specifically, when training the network in this embodiment, the joint loss function L=λ1L is used tri +λ2L cse , where L tri is the triplet loss function, which is used for the final output gait identity feature vector X FC , L cse is the cross entropy loss function for feature X FCBN , λ1 and λ2 are weight values, and the default values ​​are both 1. The triple loss function is L tri =max(D p -D n +ξ,0), where D p represents the Euclidean distance between the gait identity feature vectors of the same person, D n represents the Euclidean distance between the gait identity feature vectors of different people, and ξ is a hyperparameter greater than 0. D p The method of obtaining is D p =Euc(X FC(l) -X FC(m)), l and m represent the lth and mth gait sequences of the same person, respectively, X FC(l) represents the lth gait identity feature vector of the same person; X FC(m) represents the mth gait identity feature vector of the same person; D e The method of obtaining is D e =Euc(X FC(e) -X FC(o) ), e and o represent the index numbers of the pedestrians to be recognized for gait, Euc represents the calculation of the Euclidean distance; X FC(e) and X FC(o) They represent the gait identity feature vector of the e-th pedestrian to be recognized and the gait identity feature vector of the o-th pedestrian to be recognized; the cross entropy loss function is Among them, N represents the number of prediction categories, p r (X FCBN ) indicates X FCBN The probability of being the rth class in the true distribution, q r (X FCBN ) indicates X FCBN The probability of being the rth class in the predicted distribution. r represents the class name;

[0114] Specifically, this embodiment uses an open environment gait binary contour training set for training to obtain an open environment gait recognition model based on multi-scale attention fusion dynamic convolution.

[0115] S4: According to the preprocessed gait binary contour map sequence and the open environment gait recognition model based on multi-scale attention fusion dynamic convolution, the gait feature map after multi-scale attention adjustment of fused dynamic convolution is obtained to obtain the gait identity feature vector, thereby assisting in the identification of the pedestrians to be gait recognized in the open environment.

[0116] Specifically, this embodiment divides the test set into a registration set and a probe set, uses the obtained open environment gait recognition model based on multi-scale attention fusion dynamic convolution to obtain the gait features of the registration set and the probe set, and takes the identity of the pedestrian in the registration set with the shortest Euclidean distance to the probe set feature as the identity of the pedestrian in the probe set. The test accuracy acc is: Where x represents the number of pedestrians correctly identified in the probe set, and X represents the total number of pedestrians in the probe set.

[0117] Table 1 Recognition accuracy data table

[0118]

[0119] Table 1 shows the results of the open environment gait recognition model based on multi-scale attention fusion dynamic convolution of this embodiment for the identification of pedestrians to be recognized in an open environment, and the comparison data of the recognition results of other classic methods based on gait profile sequences on the open environment gait dataset GREW. It can be seen that the accuracy of this embodiment on the open environment dataset GREW is higher than that of the classic method based on gait profile sequences.

[0120] The present embodiment is a method for gait recognition in an open environment based on multi-scale attention fusion dynamic convolution. Through the gait video of the pedestrian to be recognized in the open environment, a sequence of gait binary contour images in the open environment is obtained, and the pixel values ​​in the gait binary contour image are normalized to obtain the pre-processed sequence of gait binary contour images; it is input into the established open environment gait recognition model based on multi-scale attention fusion dynamic convolution to obtain the gait feature image adjusted by the multi-scale attention fusion dynamic convolution, so as to obtain the gait identity feature vector, and then assist in the identification of the pedestrian to be recognized in the open environment. In the process of building the gait recognition model, the dynamic convolution is integrated into the multi-scale attention, which can improve the situation where the local feature extraction effect is poor due to complex conditions such as multiple perspectives, different dressing methods, occlusion, and carrying items in the open environment, and the gait recognition accuracy in the open environment has been significantly improved.

[0121] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A gait recognition method for open environments based on multi-scale attention fusion dynamic convolution, It is characterized in that The steps include: S1: Based on a gait video of a pedestrian to be recognized in an open environment, a gait original image sequence in the open environment is obtained to obtain a gait binary contour image sequence in the open environment; S2: normalizing the pixel values ​​of the gait binary contour images in the gait binary contour image sequence to preprocess the gait binary contour image sequence and obtain a preprocessed gait binary contour image sequence; S3: Establish an open environment gait recognition model based on multi-scale attention fusion dynamic convolution; S4: According to the preprocessed gait binary contour map sequence and the open environment gait recognition model based on multi-scale attention fusion dynamic convolution, the gait feature map after multi-scale attention adjustment of fused dynamic convolution is obtained to obtain the gait identity feature vector, thereby assisting in the identification of the pedestrians to be gait recognized in the open environment.

2. According to claim 1, a method for open environment gait recognition based on multi-scale attention fusion dynamic convolution, It is characterized in that The open environment gait recognition model based on multi-scale attention fusion dynamic convolution includes: a first CNN module, a second CNN module, a third CNN module, a fourth CNN module, a dynamic convolution module, a dynamic convolution channel feature separation module, a multi-scale attention fusion dynamic convolution module, a fifth CNN module, an addition module, a maximum time pooling layer, a horizontal pyramid pooling module, a fully connected layer and a downsampling layer; The output end of the first CNN module is used to receive the preprocessed gait profile binary image sequence, and obtain pixel features of the gait profile image according to the gait profile binary image in the preprocessed gait profile binary image sequence; The output end of the first CNN module is connected to the input end of the second CNN module; so as to transmit the pixel features of the gait profile image to the second CNN module; The second CNN module is used to obtain detailed features of the gait profile image according to the pixel features; the output end of the second CNN module is connected to the input end of the third CNN module to transmit the detailed features of the gait profile image to the third CNN module; The third CNN module is used to obtain the texture features of the gait profile image according to the detail features; the output end of the third CNN module is connected to the input end of the fourth CNN module and the input end of the downsampling layer respectively, so as to transmit the texture features of the gait profile image to the fourth CNN module and the downsampling layer; The fourth CNN module is used to obtain the shape and structure features of the gait profile image according to the texture features of the gait profile image; the output end of the fourth CNN module is connected to the input end of the dynamic convolution module to transmit the shape and structure features of the gait profile image to the dynamic convolution module; The dynamic convolution module is used to obtain a dynamic convolution feature map of the gait contour image according to the shape structure feature; the output end of the dynamic convolution module is connected to the input end of the dynamic convolution channel feature separation module to transmit the dynamic convolution feature map of the gait contour image to the dynamic convolution channel feature separation module; The dynamic convolution channel feature separation module is used to obtain the dynamic convolution channel one feature, the dynamic convolution channel two feature and the dynamic convolution channel three feature after channel separation according to the dynamic convolution feature map of the gait profile image; The input end of the multi-scale attention fusion dynamic convolution module is respectively connected to the output end of the dynamic convolution channel feature separation module and the output end of the fourth CNN module, and is used to obtain a gait feature map after multi-scale attention adjustment fused with dynamic convolution according to the shape structure feature of the gait contour image, the dynamic convolution channel one feature, the dynamic convolution channel two feature and the dynamic convolution channel three feature; The fifth CNN module is used to obtain and output the semantic features of the gait profile image according to the gait feature map adjusted by the multi-scale attention of the fused dynamic convolution; The downsampling layer is used to obtain residual features of the gait profile image according to the texture features of the gait profile image; The input end of the adding module is connected to the output end of the fifth module and the output end of the downsampling layer respectively, and is used to obtain a feature map combining the semantic features and the residual features according to the semantic features of the gait profile image and the residual features of the gait profile image; The input end of the maximum time pooling module is connected to the output end of the addition module, and is used to obtain significant features of the gait profile image according to the feature map combining the semantic features and the residual features; The input end of the horizontal pyramid pooling module is connected to the output end of the maximum time pooling module, and is used to obtain multi-scale features of the gait profile image in an open environment according to the significant features of the gait profile image; The input end of the fully connected layer is connected to the output end of the horizontal pyramid pooling module, and is used to obtain a gait identity feature vector according to the multi-scale features of the gait contour image in the open environment, so as to identify the identity of the pedestrian in the open environment.

3. According to claim 2, a method for open environment gait recognition based on multi-scale attention fusion dynamic convolution, It is characterized in that The dynamic convolution module includes a two-dimensional global average pooling layer, a two-dimensional convolution module, a first two-dimensional grouping module, an activation function module, a second two-dimensional convolution grouping module, and a third two-dimensional convolution grouping module; The input end of the two-dimensional global average pooling layer is connected to the output end of the third CNN module, and is used to obtain the image global features of the gait profile image according to the shape and structure features of the gait profile image; The input end of the two-dimensional convolution module is connected to the output end of the two-dimensional global average pooling layer, and is used to obtain the local features of the gait profile image according to the global features of the gait profile image; The input end of the first two-dimensional grouping module is connected to the output end of the two-dimensional convolution module, and is used to obtain a first grouping feature of the gait profile image obtained by grouping the local features of the gait profile images of different channels according to the local features of the gait profile image; The input end of the activation function module is connected to the output end of the first two-dimensional grouping module, and is used to obtain nonlinear transformation features according to the first grouping features extracted from the gait profile image; The input end of the second two-dimensional grouping module is connected to the output end of the activation function module, and is used to obtain a second grouping feature of the gait profile image according to the nonlinear transformation feature; the second grouping feature of the gait profile image is a feature extracted by grouping the nonlinear transformation feature again; The input end of the third two-dimensional grouping module is connected to the output end of the second two-dimensional grouping module and the output end of the third CNN module respectively, and is used to obtain a dynamic convolution feature map of the gait profile image according to the second grouping feature and the shape structure feature of the gait profile image; The output end of the third two-dimensional grouping module is connected to the input end of the dynamic convolution channel feature separation module.

4. The method for open environment gait recognition based on multi-scale attention fusion dynamic convolution according to claim 2, It is characterized in that The multi-scale attention fusion dynamic convolution module includes a first attention module, a second attention module, a third attention module, a first multiplication module, a second multiplication module, a third multiplication module, and a second addition module; The input end of the first attention module, the input end of the second attention module and the input end of the third attention module are all connected to the output end of the fourth CNN module; respectively used to obtain the feature map after ECA attention adjustment at the first scale, the feature map after ECA attention adjustment at the second scale and the feature map after ECA attention adjustment at the third scale according to the shape structure characteristics of the gait profile image; The number of channels of the feature map after ECA attention adjustment at the first scale, the feature map after ECA attention adjustment at the second scale, and the feature map after ECA attention adjustment at the third scale are different; The output end of the first attention module and the output end of the dynamic convolution channel feature separation module are both connected to the first multiplication module, and are used to obtain the first attention adjusted feature map fused with dynamic convolution according to the dynamic convolution channel one feature and the feature map after ECA attention adjustment at the first scale; The output end of the second attention module and the output end of the dynamic convolution channel feature separation module are both connected to the second multiplication module, and are used to obtain the second attention adjusted feature map fused with dynamic convolution according to the dynamic convolution channel second feature and the feature map adjusted by ECA attention at the second scale; The output end of the third attention module and the output end of the dynamic convolution channel feature separation module are both connected to the third multiplication module, and are used to obtain the third attention-adjusted feature map of the fused dynamic convolution according to the three features of the dynamic convolution channel and the feature map after ECA attention adjustment at the third scale; The input end of the second adding module is respectively connected to the output end of the first multiplication module, the output end of the second multiplication module and the output end of the third multiplication module, and is used to obtain a gait feature map after multi-scale attention adjustment of the fused dynamic convolution according to the first attention-adjusted feature map of the fused dynamic convolution, the second attention-adjusted feature map of the fused dynamic convolution, and the third attention-adjusted feature map of the fused dynamic convolution; The output end of the second adding module is connected to the input end of the fifth CNN module.

5. According to the method for open environment gait recognition based on multi-scale attention fusion dynamic convolution as claimed in claim 1, It is characterized in that The method for obtaining the gait binary contour image sequence in an open environment is as follows: S11: extracting a gait video of a pedestrian to be recognized from a surveillance camera in an open environment, and converting it into a gait original image sequence frame by frame; S12: Use the semantic segmentation method to extract the binary contour map of the pedestrian to be recognized from the gait original image sequence to obtain a gait binary contour map sequence in an open environment.

Citation Information

Patent Citations

  • Handwritten and printed text detection method and device based on deep learning

    CN116311290A

  • Gait recognition method for generating multi-scale time features based on adaptive fusion

    CN116597511A

  • Gait recognition system based on multi-scale 3D convolution and space-time attention

    CN117809373A

Cited By

  • Formed foil appearance defect classification method based on deep convolutional neural network

    CN120877002A