Advanced Gait Recognition Using Deep Learning
and 3D Skeletal Data
Yogesh Yadav
Dr. Chandra Prakash
Computer Science and Engineering
National Institute of Technology Delhi, India
Email: 22211015@nitdelhi.ac.in
Computer Engineering Department
Sardar Vallabhbhai National Institute of Technology, Surat, India
Email: cprakash@coed.svnit.ac.in
Dr. Amandeep Kaur
Computer Science and Engineering
National Institute of Technology Delhi, India
Email: amandeepk@nitdelhi.ac.in
Abstract—Gait analysis forms the foundation of human motion
analysis; relevant in security, healthcare, and HCI. This paper
discusses gait recognition by employing 3D skeleton data of the
subjects collected from Azure Kinect sensors and 2D pose estimation based on OpenPose. The proposed method incorporates
advanced deep learning techniques such as Convolutional Neural
Network (CNN), Long Short Term Memory (LSTM), and the
attention mechanism to train the model and extract as well as
analyze gait characteristics. The effectiveness of the proposed
method is demonstrated on a large gait database using various
experimental settings.
Index Terms—Gait analysis, Azure Kinect, OpenPose, 3D
skeleton, deep learning, CNN, LSTM, attention mechanism.
I. I NTRODUCTION
Gait analysis is one of the subcategories of biomechanics
which deals with human movements particularly the locomotive movement. It has far-reaching applications in areas
such as medical diagnosis, monitoring, and identification.
Traditional approaches presuppose the use of marker-based
systems, which can be considered invasive and presuppose
specific conditions. Since the introduction of Microsoft Kinect
and OpenPose, marker-less systems have emerged in the field
of gait analysis using computer vision and deep learning
strategies. This paper consolidates these developments to
reliably design a gait recognition system. New technologies
in computer vision and deep learning have further enhanced
gait analysis by eliminating the use of markers and allowing
the systems to be used in natural environments. Microsoft
Kinect and OpenPose are examples of marker-less systems
through which individuals’ gait data can be obtained without
markers and in the most efficient manner possible. Most of
these technologies employ depth sensors and computer vision
algorithms in tracking body motions and are therefore well
suited for real-life applications.
II. R ELATED W ORK
The literature review reveals that gait analysis has come
a long way over the years. The beginning of gait analysis
is associated with the fundamental works of Weber and
Muybridge. Davis created the first video processing system to
analyze people’s walk with passive reflective markers. Thanks
to depth sensors and neural networks, different methods have
been proposed to investigate, such as Kinect gait analysis and
pose estimation via OpenPose. Several works including [1]–[3]
have shown how 3D skeleton data and deep learning can be
used in accurate gait recognition.
III. DATA ACQUISITION AND P REPROCESSING
A. Data Collection
We used the dataset of human body tracking of walking
actions done using two Azure Kinect sensors. These records
consist of 315 walking actions of fifteen people where each
action has bilateral Kinect records to enhance the frame rate
twice. The data consists of 3D coordinates of the 32 joints
for each frame this information is tracked [4]. Azure Kinect
sensors offer depth streams with up to 14 bits, which gives
rich depth information, and body tracking, which is based on
coordinates of multiple joints at once. By using two sensors,
not only does the frame rate increase but also a high amount
of occlusions are minimized as well as enhances the reliability
established on the captured data. This setup provides complete
skeletal information to the offline system even if the view of
one sensor is obstructed by the subject.
B. Preprocessing
The raw data acquired from Azure Kinect were processed
with the aid of the official tools and libraries provided by
Microsoft. Each sequence was normalized so that the effect of
walking with a different speed and different stride length could
be minimized. Furthermore, we utilized the OpenPose system
for obtaining more gait characteristics from video frames,
2D pose estimation [5]. This means that in reconstructing
the skeletal data it must first be normalized to account for
differences in the subjects and walking situations. This involves bringing joint positions to the same magnitude and
making the data in them aligned temporally. For the same
reasons, OpenPose supplies the program with the additional
information about the joints’ position in a 2D space which
helps to capture finer motion details as well as some of
the anatomical points that the 3D skeleton model might not
receive.
IV. F EATURE E XTRACTION
A. Spatiotemporal Features
The following variables having 3D coordinates were obtained: hip, knee, ankle joint; joint angle; and distance. These
features are important for the evaluation of the kinematic
parameters of gait. OpenPose offered the 2D coordinates of the
human pose; thus, new anatomical landmark coordinates for
joints of the upper and lower limb were collected to calculate
the string distance as a horizontal distance in the image plane,
in addition to the 3D skeletal data. Spatiotemporal features aim
to capture the spatial relationship of joints in a particular frame
as well as the temporal relationship of joints in consecutive
frames. Thus, joint angles can define the dynamics of the
gait cycle and distances between the joints characterize stride
length and limb movements, for instance. In this case, by
integrating 3D and 2D data, it is possible to obtain a highquality description of gait that uses the advantages of both
approaches.
B. Skeleton Maps
Following recent research, we used skeleton maps to take
advantage of the structural data from human skeletons. This
approach improves the features’ representation by embracing
spatial relationships as well as movements. Skeleton maps are
graphical representations of skeletal data that signify joints’
positions and relations in a systematic way. It is possible to
use CNNs to process these maps and obtain high-level features
related to the spatial content of the image and relations of
different joints as well as their dynamics over time.
V. M ODEL A RCHITECTURE
A. CNN for Spatial Feature Extraction
For extracting spatial features, we formulated a Convolutional Neural Network (CNN) which takes skeletal data as the
input. The CNN identifies and encodes spatial organization and
relations in the skeletal data, which forms a good feature representation. CNN architecture: In the given CNN structure, there
are many convolution layers, ReLU, and one max-pooling
layer. These layers accumulate from low levels, for example,
joint coordinates, to high levels such as the coordination of
limbs. This is crucial for the subsequent temporal analysis
and the final output layer is a compact representation of the
spatial features.
B. RNN for Temporal Feature Extraction
As gait data is structured sequentially, we used a sequencebased model, Recurrent Neural Network (RNN) with Long
Short-Term Memory (LSTM) units to fit this purpose most
suitably. LSTM layers therefore sequence through the skeletal
data and acquire temporal information required in gait identification. Our LSTM layers conduct on the spatial features
obtained from the CNN and learn the temporal aspects of gait
including the regular movement of the limbs and the phase
transitions.
C. Attention Mechanism
In order to improve the model’s selectiveness and attend
to the most important frames and joints, we incorporated attention. The introduced mechanism also incorporates dynamic
weighting of the different portions of the input sequence,
which increases the model’s capacity to recognize vital characteristics and fine-tune the overall recognition task.
VI. T RAINING AND E VALUATION
A. Data Augmentation
Thus, for making the model more invariant to the specifics
of walking conditions and the environment, data augmentation
methods were used. Such techniques included the addition of
noise and jitter, rotation of the data, and modulation of the
walking speeds. This paper also addresses the issues of data
augmentation as an essential strategy in avoiding overfitting
and enhancing the model’s performance in the future. Thus,
the incorporation of controlled distortions into the training data
guarantees the model’s ability to handle real-world cases when
unexpected changes in gait patterns can occur because of a
change in speed or direction or other factors.
B. Training
Fig. 1. Visualization of skeletal joint data over time. (a) Skeletal Joint
X Coordinates over Time. (b) Skeletal Joint Y Coordinates over Time. (c)
Skeletal Joint Movement in XY Plane.
In the training of the model, the Adam optimizer was used,
also for the classification task, a binary cross-entropy loss
function was embraced. Training took place across several
epochs, the model’s performance being checked on the validation set to avoid over-learning. The Adam optimizer combines
the favorable attributes of both AdaGrad and RMSProp such
that it provides different learning rates to all parameters
and also improves the speed of convergence. The second
considered loss ensures good differentiation between the gait
classes and is known as the binary cross-entropy loss function.
The validation performance was also used in early stopping to
avoid cases of overfitting of the model.
C. Evaluation Metrics
We compared the performance of the proposed model based
on accuracy, precision, recall, and F1-score. Internal validation
was also conducted so as to reduce over-fitting of the final
model. Accuracy measures the ability of the model as a whole
while precision and recall will give the ability of the model on
positive samples. The F1-score, the average of the precision
and the recall, moderates the trade-off between the two. Crossvalidation analyzes the training data into multiple subgroups,
then trains the structural model on a single subgroup and tests
it on another to arrive at an average, in order to establish the
structural model’s reliability.
VII. R ESULTS
Our model got an accuracy of 93% and the confusion
matrix indicated good distinction between the two classes.
Compared to the 67% success that characterizes the method’s
performance, it is clear that the technology can successfully
identify various gait patterns. The detailed findings are shown
in Table I; the high accuracy and fairly equalized coverage
by precision, recall, and F1-score leave no doubt about the
efficiency of the offered model for gait classes, which helps
to reveal the subtleties of human movement. These results
also affirm the implementation of the feature extraction and
introduced model structure.
TABLE I
M ODEL P ERFORMANCE M ETRICS
Metric
Value
Accuracy
93.67%
Precision
92.34%
Recall
91.45%
F1-score
91.89%
VIII. D ISCUSSION
The proposed method is fairly reasonable to integrate the
3D skeletal data and 2D pose estimation to acquire the whole
gait features. From this we have found out that the effective
fusion of these modalities results in an improvement in the gait
recognition. Furthermore, CNN, LSTM, and attention mechanisms yield good results on sequential data and show improved
performance. This integration of both 3D and 2D data provides
the strength of the two modalities hence providing detailed
spatial and temporal information into our proposed model.
To further boost the performance more attention is added on
the frames and joints that are significant while also making
a distinction between different gait patterns which are quite
similar.
IX. C ONCLUSION
In this paper, a new method of gait recognition employing
Azure Kinect and OpenPose is described. The presented
method that is based on the registration of 3D and 2D data
as well as deep learning provides a promising tool for gait
analysis. Further studies will be focused on the ‘real-life’
application of this method and its use with bigger prepositions. Thus, the approach outlined in our paper proves that
integration of the novel sensor devices and the recent deep
learning methods can enable accurate gait recognition. Real
time will be done with focus to latency whereas for throughput
optimization, scaling to larger datasets will provide insight for
its performance in different scenarios.
R EFERENCES
[1] Alireza Sepas-Moghaddam, Ali Etemad, “Deep Gait Recognition: A
Survey,” arXiv preprint arXiv:2102.09546, 2021.
[2] X. Gu et al., “Latest Trends in Gait Analysis Using Deep Learning
Techniques: A Systematic Review,” Springer, 2020.
[3] Shiqi Yu, Liang Wang, “SkeletonGait: Gait Recognition Using Skeleton
Maps,” Papers with Code, 2023.
[4] Charli Posner, Adrián Sánchez-Mompó, Ioannis Mavromatis, Mustafa
Al-Ani, “A dataset of human body tracking of walking actions captured
using two Azure Kinect sensors,” Data in Brief, 2023.
[5] A. Viswakumar et al., “Human Gait Analysis Using OpenPose,” Fifth
International Conference on Image Information Processing (ICIIP),
2019, pp. 310-314.