A gait recognition method based on enhanced connection temporal classification network

Through the method based on the enhanced connection timing classification network, the static and dynamic timing characteristics of gait are extracted, which solves the problems of incomplete gait cycle and covariant condition changes in gait recognition, achieves high-accuracy gait recognition, and enhances Robustness to changes in gait walking conditions.

CN114140682BActive Publication Date: 2024-09-06HUNAN NORMAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111527821.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-14
Publication Date
2024-09-06
Estimated Expiration
2041-12-14

AI Technical Summary

Technical Problem

Existing gait recognition methods are difficult to maintain high accuracy when faced with occlusion, curved walking, and changes in walking speed. Moreover, assuming that subjects walk in a straight line, they cannot effectively handle changes in incomplete gait cycles and covariant conditions.

Method used

Using a method based on enhanced connection temporal classification network, by constructing a non-complete cycle sub-gait energy map, combined with a deep convolutional network and a bidirectional long short-term memory network, the connection temporal classifier and triplet loss function are used to extract the gait characteristics. Static and dynamic timing features reduce the impact of incomplete gait cycles and improve robustness to covariant conditions.

Benefits of technology

It achieves high-accuracy gait recognition under incomplete gait cycles and changes in covariant conditions, reduces dependence on gait cycles, improves robustness to changes in gait walking conditions, and can effectively handle curved walking. and identification tasks under covariation conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114140682B
    Figure CN114140682B
Patent Text Reader

Abstract

The present invention discloses a gait recognition method based on an enhanced connected temporal classification network, comprising: S1, grouping gait images according to temporal sequence, and constructing sub-gait energy graphs of incomplete cycles by group; S2, randomly extracting sub-gait energy graphs of predetermined lengths, and successively constructing gait training data with the same sequence labels according to temporal sequence; extracting static and dynamic temporal features of gait through a deep convolutional network and a bidirectional long short-term memory network with temporal features; S3, testing the curved walking with changing walking angles within a cycle and the synthetic walking condition change data. The present invention combines the advantages of the connected temporal classification network and the triplet loss function, so that our gait recognition method has a reduced dependence on the gait cycle, has stronger robustness to covariant conditions, and can achieve better recognition effects under the condition of an incomplete gait cycle and in the face of scenes where the gait walking conditions change in real time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of image recognition and relates to a gait recognition method based on an enhanced connection temporal classification network. Background Art

[0002] In the past 20 years, gait-based recognition technology has made great progress and has been widely used in many fields such as video surveillance, identity recognition, and the Internet of Things. Gait feature extraction plays an important role in gait recognition, and its accuracy directly affects the accuracy of gait recognition. Generally, gait feature extraction methods include appearance-based and model-based feature extraction methods.

[0003] The appearance-based feature extraction method mainly extracts appearance features from a gait cycle, using the human body contour as the original input data. The gait energy map is an energy map constructed by averaging the human body contour within a complete gait cycle. This is also a popular gait feature representation method that is currently used. The random noise is suppressed during the image averaging process and has strong robustness. When the walking conditions do not change within a cycle, GEI is simple and effective, but GEI is easily affected by various covariant conditions, such as carrying status, clothing, walking speed, and viewing angle. The GEI-based method can retain certain spatial information, but the change feature information between continuous images is often lost during the contour averaging process. Some other methods to reduce the impact of image incompleteness include gait optical flow map, gait entropy image, and frame difference energy map. This type of statistical-based method compresses multiple frames of gait image data into one image, which often loses important temporal features of gait behavior and affects its application. In addition, the generation of energy maps requires a complete cycle of gait image sequences, so this type of method is still not robust to real-time changes in gait cycles and some covariant conditions.

[0004] The model-based feature extraction method mainly attempts to build a model from the human walking sequence to reconstruct the human body structure, and uses the constructed model to extract gait parameters for individual recognition. Therefore, the model-based method is based on prior knowledge. Compared with the appearance-based method, the 2D or 3D model-based method can solve problems such as occlusion and rotation to a certain extent, and has more advantages over appearance changes.

[0005] In recent years, deep learning-based methods have been widely used in speech, image, and video processing and other related fields, including gait recognition. In particular, with the development of deep neural networks and large-scale gait datasets, gait recognition has also attracted widespread attention, and the use of deep networks to extract view-invariant features has become increasingly popular. However, in real life, because our subjects are easily occluded or blocked by the outside world, the gait cycle obtained is often incomplete, and when the subject walks in a curve instead of a straight line, the perspective of the extracted gait profile is always changing. Perspective change is one of the most difficult of our many covariant conditions, because there is no way to control the walking direction of the subject in practical applications.

[0006] Most current gait recognition methods are based on at least one complete gait cycle and achieve good recognition performance under various covariant conditions. However, in most public places, occlusion is inevitable. Therefore, surveillance cameras can only capture a small part of the gait cycle data, and it is common for walking conditions within the cycle to change. Walking speed can also change continuously from frame to frame. However, so far, there are not many methods to solve this kind of problem.

[0007] In most gait recognition methods, it is implicitly assumed that the subject walks in a straight line and is based on a complete gait cycle. Under different gait recognition conditions, especially when using random gait data in training and using different walking changes in testing, gait recognition algorithms still have certain challenges, and more accurate intrinsic descriptors and more flexible methods are needed to improve the accuracy of the algorithm. Summary of the invention

[0008] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a gait recognition method based on an enhanced connected temporal classification network. The method utilizes the advantages of the connected temporal classification method and performs gait recognition through random gait frames. It can not only reduce the impact of incomplete gait cycles, but also effectively suppress the impact of various covariant conditions on gait recognition performance, thereby obtaining a gait recognition method with weak periodic correlation.

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

[0010] The present invention provides a gait recognition method based on an enhanced connection temporal classification network, comprising:

[0011] S1, group the gait images according to the time sequence, and construct the non-complete cycle sub-gait energy images (Nc-GEIs) by group;

[0012] S2. Randomly extract sub-gait energy graphs of a predetermined length, and construct gait training data with the same sequence labels according to the time sequence; extract the static and dynamic time sequence features of the gait through a deep convolutional network and a bidirectional long short-term memory network with time sequence features, and take advantage of the automatic alignment of sequence labels during the training process of the connected time sequence classifier, combined with the triplet loss, to divide the samples into positive samples, negative samples and self samples, so as to improve the classifier's ability to identify small differences;

[0013] S3. On the premise of only performing time series classification training on various data of fixed walking conditions within a cycle, tests are performed on curve walking with changing walking angles within a cycle and synthetic walking condition change data.

[0014] In a preferred solution, in step S1, the gait pictures are divided into 3 to 5 frames / group according to the time sequence.

[0015] In a preferred solution, step S2 includes:

[0016] (1) Using a feedforward approach, using the dense connection mechanism of a deep convolutional neural network (DenseNet), all layers are directly connected, thereby reducing gradient vanishing, strengthening the transfer between features, and reducing related parameters and computational complexity;

[0017] (2) Using a recurrent neural network with long short-term memory (Bi-directional Long Short-Term Memory, Bi-LSTM) to extract gait temporal features;

[0018] (3) Using deep convolutional neural networks, recurrent neural networks, and connectionist temporal classifiers based on CTC (Connectionist Temporal Classification), we build an end-to-end enhanced connectionist temporal classification network model EN-CTCNet (Enhanced CTC Network) to achieve more flexible local label prediction and gait recognition;

[0019] (4) Construct a multi-objective hybrid loss function of the enhanced connection temporal classification network EN-CTCNet, including the CTC loss function, the Triplet Loss loss function and the Softmax loss function, and use the advantages of the Triplet Loss loss function to expand the inter-class differences, narrow the intra-class differences, and improve the recognition efficiency.

[0020] Further, the step (1) is specifically:

[0021] 1.1) Let S be a fixed distribution Gait training sample set in; input space It is a finite sequence set of all i-dimensional vectors; target space (prediction space) It is represented as a set of all sequences under the condition of limited character ID, and the elements are usually called tags or tag sequences; each gait training sample consists of a set of sequences (x, z); the target sequence z = (z1, z2, ..., z M ) is less than or equal to the input sequence x = (x1, x2, ..., x T ), that is, M≤T; because the input sequence and the target sequence usually have different lengths, the input sequence can be of random size, while the output sequence can only be one or several IDs, so there is no a priori method to pre-align the input sequence and the output sequence;

[0022] The goal of the present invention is to use the gait sample set S to train an enhanced connection time series classifier, and to classify gait test sequence data of any length and output the most likely sequence label, namely:

[0023]

[0024] 1.2) Use the DenseNet network to reduce the dimension and extract the gait features, and its output features are defined as

[0025] 1.3) Use a sequence vector x = (x1, x2, ..., x T ),in And use x as the input of the Bi-LSTM network.

[0026] Further, the step (2) is specifically:

[0027] 2.1) The recurrent neural network with long short-term memory function is based on x t and h t-1 To calculate h t , but the internal structure is more carefully involved, adding input gate i t 、Forget gate t And the output gate o t Three gates and an internal memory unit C t ;

[0028] Among them, the input gate controls the extent to which the new state of the current calculation is updated to the memory unit, the forget gate controls the extent to which the information in the previous memory unit is forgotten, and the output gate controls the extent to which the current output depends on the current memory unit;

[0029] 2.2) In the gait sequence labeling task, the set of gait IDs is represented by A. In the enhanced time series classification method proposed in the present invention, there is a Softmax output layer unit |A|, which is represented by the corresponding label probability observed at time node t;

[0030] The present invention also introduces an additional label unit named "boundary interval" express;

[0031] Boundary intervals are used to observe and mark changes in row conditions; The extended gait ID set is represented as At different time nodes t, the Softmax output layer defines the probabilities of all IDs. Taking an ID at each time node and connecting them together form a path π; multiplying the ID observation probabilities at all times of this path to get the total path probability, which reflects the probability of the input sequence to the output path sequence;

[0032] 2.3) Using DenseNet network output features are defined as The length of the sequence vector x = (x1, x2, ..., x T ),in And use x as the input of the Bi-LSTM network; the output of the Bi-LSTM network is connected to the Softmax layer, and the connection weight is defined as W Blstm ; The relationship between Bi-LSTM network input and output is:

[0033]

[0034] That is, the continuous mapping of sequence space is realized through this subnetwork The mapping that maps the input sequence x to a continuous output It is defined as the probability of observing label k at time t.

[0035] Further, the step (3) is specifically:

[0036] 3.1) Let A′ T Gait ID collection The above sequence set is of length T; assuming that the conditional probability of each observation is output independent, the probability distribution of any path π in the set can be obtained by inputting the sequence x. The input sequence x is the sequence feature output by the original gait sequence graph after passing through the DenseNet gait spatial feature extraction network and the Bi-LSTM gait temporal feature extraction network. The probability distribution of the corresponding path π is expressed as:

[0037]

[0038] 3.2) Define an ID label sequence of set A′ as l. Since set A′ may have multiple paths mapped to the same sequence, it is necessary to redefine the many-to-one function to remap the path set and obtain the predicted ID label sequence, namely: F m :A′ T →A ≤T , where A ≤T Represents a possible path set, that is, based on the original path, the length of the predicted ID sequence is no greater than the length of the input sequence;

[0039] Define the mapping function F m The idea is to remove all repeated labels and interval boundaries from the path For example:

[0040]

[0041] It is equivalent to the network converting from the original input sequence label to the predicted label, or from the predicted label to another new label; unlike the situation where there are multiple letters in the text sequence, in gait recognition, gait sequences usually have the same ID, so the following prediction result "ID1ID2ID2ID2" is not so reasonable, so a voting strategy is introduced to obtain the final prediction result, namely:

[0042] P vote (ID1ID2ID2ID2)=ID2ID2ID2

[0043] Obviously, the recognition method based on the CTC algorithm does not require a one-to-one alignment between the input data and the predicted labels, and focuses more on the final prediction results of the entire sequence;

[0044] Finally, l∈A ≤T The mark is the sum of the probabilities of all its corresponding paths, then the actual predicted probability of the ID tag sequence can be expressed as:

[0045]

[0046] Further, the step (4) is specifically:

[0047] 4.1) Construct a multi-objective hybrid loss function of the enhanced connection temporal classification network EN-CTCNet, including CTC loss function, Triplet Loss loss function and Softmax loss function. According to the actual probability of the ID tag sequence, the CTC loss function is defined as:

[0048] L CTC = -lnp(l|x)

[0049] 4.2) The CTC-based gait recognition method proposed in the present invention can output a sequence ID, which is very suitable for realizing periodically weakly correlated gait recognition using random gait frames as input, and it also has the potential to handle changes in walking conditions within the cycle;

[0050] 4.3) In order to retain as much gait recognition information as possible, all samples in training are classified into triplets, namely, self samples, positive samples and negative samples;

[0051] Among them, positive samples and their own samples are samples belonging to the same class, while negative samples are samples that are not in the same class as their own samples. Define the energy loss function based on triples:

[0052]

[0053] By minimizing the triplet energy loss function, the triplet classifier is learned. The triplet-based classifier can minimize the differences between samples of the same type and maximize the differences between samples of different types, thus completing the classification and recognition of test samples. At the same time, EH-CTCNet effectively combines the CTC loss function, the Triplet Loss loss function, and the Softmax loss function. The total weight loss function is defined as:

[0054] W loss =ω1L ctc +ω2L triples +ω3L softmax

[0055] In the above formula, ω1, ω2, ω3 represent weight values, satisfying ω1+ω2+ω3=1;

[0056] By controlling the size of ω1, ω2, and ω3, the most suitable features for network training can be extracted, which will not affect the network classification and recognition, while accelerating the network convergence speed to a certain extent.

[0057] In a preferred solution, in step S3, the training samples of the KY4D and CASIA-B gait databases are used to train the enhanced connection-based temporal classification network model, and the CASIA-B test data is manually spliced ​​for testing.

[0058] Further, in step S3, specifically:

[0059] 1) The KY4D dataset contains 42 subjects with 3D visual human models and 2D gait image sequences; the gait data sequence is captured by 16 cameras with an image resolution of 1032×776; each viewing angle contains 4 normal walking sequences {t1, t2, t3, t4} and 2 curved trajectory walking sequences {t5, t6};

[0060] The CASIA-B dataset is a multi-view gait dataset that mainly considers two covariant conditions, namely, clothing changes and object carrying. The dataset contains video sequences of 124 subjects, and each subject has 10 gait sequences: 6 normal walking condition sequences (nm-01 to nm-06), 2 backpack carrying sequences, and 2 coat sequences. Each sequence has 11 different viewing angles, ranging from 0° to 180°, with an interval of 18°. Each subject contains 11×(6+2+2)=110 sequences. CASIA-B provides silhouette reference images after background subtraction. It is only necessary to align these contours by aligning their centroids and normalizing them to 120×80.

[0061] 2) When verifying the performance of the enhanced connection time series classification network for the CASIA-B gait dataset, 1 / 2 cycle of the data under the covariant conditions of normal walking with a backpack and wearing a coat was artificially selected for splicing test.

[0062] The present invention proposes a gait recognition method based on an enhanced connection temporal classification network. By constructing an enhanced connection temporal classification network, a gait recognition method based on random frames and with variable walking conditions within a period is obtained, so as to improve its application effect in complex application scenarios.

[0063] The enhanced connection temporal classification method of the present invention combines the advantages of the connection temporal classification network and the triplet loss function, so that our gait recognition method reduces the dependence on the gait cycle and has stronger robustness to covariant conditions. It can achieve better recognition effects under conditions of incomplete gait cycles and in scenarios where gait walking conditions change in real time.

[0064] The beneficial technical effects of the present invention are:

[0065] (1) First, a small number of binary contour images are randomly selected to construct gait sub-energy images, and sub-gait energy images (Nc-GEIs) are used to construct training data with time series according to the time series.

[0066] (2) In the process of gait recognition and classification, a deep convolutional neural network (DenseNet) is used to extract the static features of gait, and a recurrent neural network (Bi-LSTM) is used to further extract its spatiotemporal features.

[0067] (3) The method proposed in the present invention can retain the temporal information of gait, does not need to align the input sequence and the output sequence, and does not need to divide the sequence into gait cycles. At the same time, by introducing the Triplet Loss function, different types of samples have higher distinguishability. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 Enhanced connection timing classification network architecture for the present invention;

[0069] Figure 2 This is a diagram of CTC Softmax output;

[0070] Figure 3 is the Rank-1 gait recognition rate of the training data from different perspectives of the present invention;

[0071] Figure 4 The following is a synthetic sample diagram;

[0072] Figure 5 Comparison of recognition rates between synthetic data of the present invention and single covariate conditions. DETAILED DESCRIPTION

[0073] The following is a further detailed description of the embodiments of the present invention in conjunction with the examples and drawings. The examples are only used to explain the present invention and are not used to limit the scope of the present invention.

[0074] Example 1

[0075] The method described in this implementation is implemented in Python programming language, using the publicly released KY4D gait dataset of Kyushu University and the CAISA-B dataset of the Chinese Academy of Sciences. The KY4D dataset (Iwashita et al., 2014) contains 42 subjects with 3D visual human models and 2D gait image sequences. The gait data sequence is captured by 16 cameras with an image resolution of 1032×776. Each viewing angle contains 4 normal walking sequences {t1, t2, t3, t4} and 2 curved trajectory walking sequences {t5, t6}. The CASIA-B dataset (Yu et al., 2006) is a multi-view gait dataset that mainly considers two covariant conditions, namely: clothing changes and object carrying. The dataset contains video sequences of 124 subjects, each of whom has 10 gait sequences: 6 normal walking condition sequences (nm-01 to nm-06), 2 backpack carrying sequences, and 2 coat sequences. Each sequence has 11 different viewing angles in the range of 0° to 180° with an interval of 18°. Each subject contains 11×(6+2+2)=110 sequences.

[0076] The present invention provides a gait recognition method based on an enhanced connection temporal classification network, comprising:

[0077] Step 1: Group the gait images according to the time sequence, and construct the non-complete cycle sub-gait energy images (Nc-GEIs) by group;

[0078] Step 2: Randomly extract sub-gait energy graphs of a predetermined length, and construct gait training data with the same sequence labels according to the time sequence; extract the static and dynamic time sequence features of the gait through a deep convolutional network and a bidirectional long short-term memory network with time sequence features, and take advantage of the automatic alignment of sequence labels during the training process of the connected time sequence classifier, combined with the triplet loss, to divide the samples into positive samples, negative samples and self samples, so as to improve the classifier's ability to identify small differences;

[0079] Step 2.1: Use a deep convolutional neural network (DenseNet) to establish connections between each layer in a feedforward manner to further reduce the gradient vanishing problem and reduce related parameters and calculations;

[0080] 1) Let S be a fixed distribution The gait training sample set in the input space It is a finite sequence set of all i-dimensional vectors. Target space (prediction space) It is represented as a set of all sequences under the condition of finite character ID. The elements are usually called tags or tag sequences. Each gait training sample consists of a set of sequences (x, z). The target sequence z = (z1, z2, ..., z M ) is less than or equal to the input sequence x = (x1, x2, ..., xT), that is, M ≤ T. Because the input sequence and the target sequence usually have different lengths, the input sequence can be of random size, and the output sequence can only be one or several IDs, there is no a priori method to pre-align the input sequence and the output sequence. The goal of the present invention is to use the gait sample set S to train a connection time series classifier, and to classify the test sequence data and output the most likely sequence label, that is:

[0081]

[0082] 2) The DenseNet network is used for dimensionality reduction and extraction of gait features, and its output features are defined as

[0083] 3) Use a sequence vector x=(x1, x2, ..., xT) of length T, where And use x as the input of the Bi-LSTM network.

[0084] Step 2.2: Use the Bi-directional Long Short-Term Memory (Bi_LSTM) recurrent neural network to extract gait temporal features;

[0085] 1) The recurrent neural network with long short-term memory function is based on x t and h t-1 To calculate ht , but the internal structure is more carefully involved, adding input gate i t 、Forget gate t And the output gate o t Three gates and an internal memory unit C t Among them, the input gate controls the extent to which the new state of the current calculation is updated to the memory unit, the forget gate controls the extent to which the information in the previous memory unit is forgotten, and the output gate controls the extent to which the current output depends on the current memory unit.

[0086] 2) In the gait sequence labeling task, the set of gait IDs is represented by A. In the enhanced time series classification method proposed in the present invention, there is a Softmax output layer unit |A|, which is represented by the corresponding label probability observed at time node t. The present invention also introduces an additional label unit named "boundary interval", which is represented by Indicates. Boundary intervals are used to observe and mark changes in row conditions. The extended gait ID set is represented as At different time nodes t, the Softmax output layer defines the probabilities of all IDs. Taking an ID at each time node and connecting them together forms a path π. Multiplying the ID observation probabilities at all moments of this path gives the total path probability, which reflects the probability of the input sequence to the output path sequence;

[0087] 3) Using DenseNet network output features are defined as The length of the sequence vector x = (x1, x2, ..., x T ),in And x is used as the input of the Bi-LSTM network. The output of the Bi-LSTM network is connected to the Softmax layer, and the connection weight is defined as W Blstm The relationship between the input and output of the Bi-LSTM network is:

[0088]

[0089] That is, the continuous mapping of sequence space is realized through this sub-network The mapping that maps the input sequence x to a continuous output It is defined as the probability of observing label k at time t.

[0090] Step 2.3: Use CTC-based enhanced connection temporal classification network (EN-CTCNet) to achieve more flexible local label prediction and gait recognition;

[0091] 1) Let A′ T Gait ID collection The above sequence is a set of length T. Assuming that the conditional probability of each observation is output independent, the probability distribution of any path π in the set can be obtained by inputting the sequence x. The input sequence x is the sequence feature output by the original gait sequence graph after passing through the DenseNet gait spatial feature extraction network and the Bi-LSTM gait temporal feature extraction network. The probability distribution of the corresponding path π is expressed as:

[0092]

[0093] 2) Define an ID tag sequence of set A′ as l. Since set A′ may have multiple paths mapped to the same sequence, it is necessary to redefine the many-to-one function to remap the path set and obtain the predicted ID tag sequence, namely: F m :A′ T →A ≤T , where A ≤T Represents a possible path set, that is, based on the original path, the length of the predicted ID sequence is no greater than the length of the input sequence. Define the mapping function F m The idea is to remove all repeated labels and interval boundaries from the path For example:

[0094]

[0095] This is equivalent to the network converting from the original input sequence label to the predicted label, or from the predicted label to another new label. Unlike the situation where there are multiple letters in the text sequence, in gait recognition, gait sequences usually have the same ID, so the following prediction result "ID1ID2ID2ID2" is not so reasonable, so a voting strategy is introduced to obtain the final prediction result, namely:

[0096] P vote (ID1ID2ID2ID2)=ID2ID2ID2

[0097] Obviously, the recognition method based on the CTC algorithm does not require a one-to-one alignment between the input data and the predicted label, and focuses more on the final prediction result of the entire sequence. ≤T The mark is the sum of the probabilities of all its corresponding paths, then the actual predicted probability of the ID tag sequence can be expressed as:

[0098]

[0099] Step 2.4: construct a multi-objective hybrid loss function of the enhanced connection temporal classification network EN-CTCNet, including a CTC loss function, a Triplet Loss loss function, and a Softmax loss function, so that the network has a low dependence on the gait cycle and realizes local prediction;

[0100] 1) The multi-objective hybrid loss function of the enhanced connection temporal classification network EN-CTCNet includes CTC loss function, Triplet Loss loss function and Softmax loss function. According to the actual probability of the ID tag sequence, the loss function is defined as:

[0101] L CTC = -lnp(l|x)

[0102] 2) The CTC-based gait recognition method proposed in the present invention can output a sequence ID, which is very suitable for realizing periodically weakly correlated gait recognition with random gait frames as input, and it also has the potential to handle changes in walking conditions within the cycle;

[0103] 3) In order to retain as much gait recognition information as possible, all samples in training are classified according to triplets into self-samples, positive samples and negative samples. Among them, positive samples and self-samples belong to the same class, while negative samples are samples that are not in the same class as self-samples. Define the energy loss function based on triples:

[0104]

[0105] By minimizing the triplet energy loss function, the triplet classifier is learned. The triplet-based classifier can minimize the differences between samples of the same type and maximize the differences between samples of different types, thus completing the classification and recognition of test samples. At the same time, EH-CTCNet effectively combines the CTC loss function, the Triplet Loss loss function, and the Softmax loss function. The total weight loss function is defined as:

[0106] W loss =ω1L ctc +ω2L triples +ω3L softmax

[0107] In the above formula, ω1, ω2, ω3 represent weight values, satisfying ω1+ω2+ω3=1. By controlling the size of ω1, ω2, ω3, the most suitable features for network training can be extracted, which can not affect the network classification and recognition, and accelerate the convergence speed of the network to a certain extent.

[0108] Step 3: On the premise of only performing time series classification training on various data of fixed walking conditions within a cycle, testing is performed on the curve walking with changing walking angles within a cycle and the synthetic walking condition change data;

[0109] The enhanced connection-based temporal classification network model was trained using KY4D and CAISA-B training samples, and the CASIA-B test data was artificially spliced.

[0110] 1) The KY4D dataset contains 42 subjects with 3D visual human models and 2D gait image sequences. The gait data sequence is captured by 16 cameras with an image resolution of 1032×776. Each view contains 4 normal walking sequences {t1, t2, t3, t4} and 2 curved trajectory walking sequences {t5, t6}; The CASIA-B dataset is a multi-view gait dataset that mainly considers two covariant conditions, namely: clothing changes and object carrying. The dataset contains video sequences of 124 subjects, and each subject has 10 gait sequences: 6 normal walking condition sequences (nm-01~nm-06), 2 backpack carrying sequences, and 2 coat sequences. Each sequence has 11 different view angles, ranging from 0° to 180°, with an interval of 18°. Each subject contains 11×(6+2+2)=110 sequences. CASIA-B provides silhouette reference images after background subtraction. It only requires aligning these silhouettes by aligning their centroids and normalizing them to 120×80.

[0111] 2) When verifying the performance of our proposed enhanced connection time series classification network on the CASIA-B gait dataset, we artificially selected 1 / 2 cycle of the data under the covariant conditions of normal walking with a backpack and wearing a coat for splicing test. The test results show that the method not only reduces the dependence on the gait cycle, but also has stronger robustness to the covariant conditions. It can achieve better recognition results under the condition of incomplete gait cycle and in the face of scenes with real-time changes in gait walking conditions, including: gait recognition under changing covariant conditions, gait recognition with incomplete cycles, cross-view gait recognition, etc., with good economic and social benefits.

[0112] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. For those skilled in the art, improvements and changes obtained without departing from the technical concept of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. A gait recognition method based on an enhanced connected temporal classification network, characterized by comprising: S1, grouping the gait images according to the time sequence, and constructing the sub-gait energy graph of the incomplete cycle by group; S2. Randomly extract sub-gait energy graphs of a predetermined length, and construct gait training data with the same sequence labels according to the time sequence; extract the static and dynamic time sequence features of the gait through a deep convolutional network and a bidirectional long short-term memory network with time sequence features, and take advantage of the automatic alignment of sequence labels during the training process of the connected time sequence classifier, combined with the triplet loss, to divide the samples into positive samples, negative samples and self samples, so as to improve the classifier's ability to identify small differences; S3. On the premise of only performing time series classification training on various data of fixed walking conditions within a cycle, testing is performed on the curve walking with changing walking angles within a cycle and the synthetic walking condition change data; The step S2 includes: (1) Using a feedforward approach, using the dense connection mechanism of the deep convolutional neural network DenseNet, all layers are directly connected, thereby reducing gradient vanishing, strengthening the transmission between features, and reducing related parameters and calculations; (2) Using the long short-term memory recurrent neural network Bi-LSTM to extract gait temporal features; (3) Using deep convolutional neural networks, recurrent neural networks, and CTC-based connection temporal classifiers, we build an end-to-end enhanced connection temporal classification network model EN-CTCNet to achieve more flexible local label prediction and gait recognition; (4) Construct a multi-objective hybrid loss function of the enhanced connection temporal classification network EN-CTCNet, including CTC loss function, Triplet Loss loss function and Softmax loss function, and use the advantages of Triplet Loss loss function to expand the difference between classes, reduce the difference within classes, and improve the recognition efficiency; The step (1) is specifically: 1.1) Let S be a fixed distribution Gait training sample set in; input space is a finite sequence set of all i-dimensional vectors; the target space It is represented as a set of all sequences under the condition of limited character ID. The elements are usually called tags or tag sequences. Each gait training sample consists of a set of sequences (x, z). The target sequence z = (z1, z2, ..., z M ) is less than or equal to the input sequence x=(x1,x2,…,x T), that is, M≤T; because the input sequence and the target sequence usually have different lengths, the input sequence can be of random size, while the output sequence can only be one or several IDs, so there is no a priori method to pre-align the input sequence and the output sequence; The gait sample set S is used to train an enhanced connection time series classifier, which can classify gait test sequence data of any length and output the most likely sequence label, namely: 1.2) Use the DenseNet network to reduce the dimension and extract the gait features, and its output features are defined as 1.3) Use a sequence vector x=(x1,x2,…,x T ),in And use x as the input of the Bi-LSTM network; The step (2) is specifically: 2.1) The recurrent neural network with long short-term memory function is based on x t and h t-1 To calculate h t , but the internal structure is more carefully involved, adding input gate i t 、Forget gate t And the output gate o t Three gates and an internal memory unit C t ; Among them, the input gate controls the extent to which the new state of the current calculation is updated to the memory unit, the forget gate controls the extent to which the information in the previous memory unit is forgotten, and the output gate controls the extent to which the current output depends on the current memory unit; 2.2) In the gait sequence labeling task, the set of gait IDs is represented by A. In the enhanced time series classification method, there is a Softmax output layer unit |A|, which is represented by the corresponding label probability observed at time node t; By introducing an additional label unit, named "border interval", express; Boundary intervals are used to observe and mark changes in row conditions; The extended gait ID set is represented as At different time nodes t, the Softmax output layer defines the probabilities of all IDs. Taking an ID at each time node and connecting them together form a path π; multiplying the ID observation probabilities at all times of this path to get the total path probability, which reflects the probability of the input sequence to the output path sequence; 2.3) Using DenseNet network output features are defined as The length of the sequence vector x is T = (x1, x2, ..., x T ),in And use x as the input of the Bi-LSTM network; the output of the Bi-LSTM network is connected to the Softmax layer, and the connection weight is defined as W Blstm ; The relationship between Bi-LSTM network input and output is: That is, the continuous mapping of sequence space is realized through this subnetwork The mapping that maps the input sequence x to a continuous output Defined as the probability of observing label k at time t; The step (3) is specifically: 3.1) Let A' T Gait ID collection The above sequence set is of length T; assuming that the conditional probability of each observation is output independent, the probability distribution of any path π in the set is obtained by inputting the sequence x. The input sequence x is the sequence feature output by the original gait sequence graph after passing through the DenseNet gait spatial feature extraction network and the Bi-LSTM gait temporal feature extraction network. The probability distribution of the corresponding path π is expressed as: 3.2) Define an ID tag sequence of set A' as l. Since set A' may have multiple paths mapped to the same sequence, it is necessary to redefine the many-to-one function to remap the path set and obtain the predicted ID tag sequence, that is: F m :A' T →A ≤T , where A ≤T Represents a possible path set, that is, based on the original path, the length of the predicted ID sequence is no greater than the length of the input sequence; Define the mapping function F m The idea is to remove all repeated labels and interval boundaries from the path It is equivalent to the network converting from the original input sequence label to the predicted label, or from the predicted label to another new label; unlike the situation where there are multiple letters in the text sequence, in gait recognition, gait sequences usually have the same ID, so the following prediction result "ID1ID2ID2ID2" is not so reasonable, so a voting strategy is introduced to obtain the final prediction result, namely: P vote (ID1ID2ID2ID2)=ID2ID2ID2 Obviously, the recognition method based on the CTC algorithm does not require a one-to-one alignment between the input data and the predicted labels, and focuses more on the final prediction results of the entire sequence; Finally, l∈A ≤T The mark is the sum of the probabilities of all its corresponding paths, then the actual predicted probability of the ID tag sequence can be expressed as: The step (4) is specifically: 4.1) Construct a multi-objective hybrid loss function of the enhanced connection temporal classification network EN-CTCNet, including CTC loss function, Triplet Loss loss function and Softmax loss function. According to the actual probability of the ID tag sequence, the CTC loss function is defined as: THE CTC =-lnp(l||x) 4.2) The CTC-based gait recognition method can output a sequence ID, which is very suitable for realizing periodically weakly correlated gait recognition using random gait frames as input, and it also has the potential to handle changes in walking conditions within the cycle; 4.3) In order to retain as much gait recognition information as possible, all samples in training are classified into triplets, namely, self samples, positive samples and negative samples; Among them, the positive sample and the self-sample belong to the same class, while the negative sample is a sample that is not in the same class as the self-sample. The energy loss function L based on the triple is defined as triples : By minimizing the triplet energy loss function, the triplet classifier is learned. The triplet-based classifier can minimize the differences between samples of the same type and maximize the differences between samples of different types, thus completing the classification and recognition of test samples. At the same time, EH-CTCNet effectively combines the CTC loss function, the Triplet Loss loss function, and the Softmax loss function. The total weight loss function is defined as: W loss =ω1L ctc +ω2L triples +ω3L softmax In the above formula, ω1, ω2, ω3 represent weight values, satisfying ω1+ω2+ω3=1; By controlling the size of ω1, ω2, and ω3, the most suitable features for network training can be extracted, which will not affect the network classification and recognition, while accelerating the network convergence speed to a certain extent.

2. The gait recognition method based on enhanced connection temporal classification network according to claim 1 is characterized in that: In the step S1, the gait pictures are divided into 3 to 5 frames / group according to the time sequence.

3. The gait recognition method based on enhanced connection temporal classification network according to claim 1 is characterized in that: In step S3, the training samples of KY4D and CASIA-B gait databases are used to train the enhanced connection-based temporal classification network model, and the CASIA-B test data is manually spliced ​​for testing.

4. The gait recognition method based on enhanced connection temporal classification network according to claim 3 is characterized in that: In the step S3, specifically: 1) The KY4D dataset contains 42 subjects with 3D visual human models and 2D gait image sequences; the gait data sequence is captured by 16 cameras with an image resolution of 1032×776; each viewing angle contains 4 normal walking sequences {t1, t2, t3, t4} and 2 curved trajectory walking sequences {t5, t6}; The CASIA-B dataset is a multi-view gait dataset that mainly considers two covariant conditions, namely, clothing changes and object carrying. The dataset contains video sequences of 124 subjects, and each subject has 10 gait sequences: 6 normal walking condition sequences (nm-01 to nm-06), 2 backpack carrying sequences, and 2 coat sequences. Each sequence has 11 different viewing angles, ranging from 0° to 180°, with an interval of 18°. Each subject contains 11×(6+2+2)=110 sequences. CASIA-B provides silhouette reference images after background subtraction. It is only necessary to align these contours by aligning their centroids and normalizing them to 120×80. 2) When verifying the performance of the enhanced connection time series classification network for the CASIA-B gait dataset, 1 / 2 cycle of the data under the covariant conditions of normal walking with a backpack and wearing a coat was artificially selected for splicing test.