Human gait recognition (HGR) is a non-invasive biometric modality that is applicable in mass-scale surveillance and security systems. Nevertheless, HGR systems are currently susceptible to covariate variables, including viewpoint, clothing, and the carrying conditions. Recent deep learning methods, especially convolutional neural networks, have also enhanced recognition performance, though at the cost of modeling global spatiotemporal interactions and with high training data requirements. This study presents a transfer learning-based HGR model that relies on Vision Transformer (ViT) models to harness self-attention mechanisms to achieve strong representation of global features. ViT-B/16 and ViT-L/32 are two pre-trained transformer models that were trained on gait image sequences on the CASIA-B dataset. The framework was evaluated across four viewing angles (0?, 18?, 36?, and 54?) under varying covariate conditions. Training and testing accuracy and loss metrics were used as performance metrics at the learning rate of 0.001 and 0.0001. Furthermore, experiments were conducted for both frontal-view and cross-view analysis. The results indicate that transformer-based models are capable of achieving strong recognition performance. ViT-L/32 achieved the highest average testing accuracy at 87.87 percent, followed closely by ViT-B/16 with 86.99 percent. Both models outperformed several recently proposed HGR approaches. The attention-based architecture successfully extracts discriminative gait images across image patches and is more robust to viewpoint and appearance changes as well as it consumes less computational costs due to pre-trained models. These results highlight the usefulness of Vision Transformers as an effective and precise alternative to traditional deep learning methods of recognizing human gait in biometric applications.
References
[1]
Bilal, M., Jianbiao, H., Mushtaq, H., Asim, M., Ali, G. and ElAffendi, M. (2024) GaitSTAR: Spatial-Temporal Attention-Based Feature-Reweighting Architecture for Human Gait Recognition. Mathematics, 12, Article 2458. https://doi.org/10.3390/math12162458
[2]
Yao, L., Kusakunniran, W., Wu, Q., Zhang, J., Tang, Z. and Yang, W. (2021) Robust Gait Recognition Using Hybrid Descriptors Based on Skeleton Gait Energy Image. Pattern Recognition Letters, 150, 289-296. https://doi.org/10.1016/j.patrec.2019.05.012
[3]
Gao, S., Yun, J., Zhao, Y. and Liu, L. (2022) Gait-d: Skeleton-Based Gait Feature Decomposition for Gait Recognition. IET Computer Vision, 16, 111-125. https://doi.org/10.1049/cvi2.12070
[4]
Tyagi, A., Gupta, N., Dwivedi, A., Singh, A. and Srivastava, S. (2026) Human Gait Recognition: A Comprehensive Study Using Deep Learning and Gait Energy Images. In: Algorithms for Intelligent Systems, Springer, 427-440. https://doi.org/10.1007/978-981-95-0493-0_33
[5]
Sharma, H. and Grover, J. (2018) Human Identification Based on Gait Recognition for Multiple View Angles. InternationalJournalofIntelligentRoboticsandApplications, 2, 372-380. https://doi.org/10.1007/s41315-018-0061-y
[6]
Shi, L.F., Liu, Z.Y., Zhou, K.J., Shi, Y. and Jing, Y. (2023) Novel Deep Learning Network for Gait Recognition Using Multimodal Inertial Sensors. Sensors, 23, Article 849.
[7]
Liu, H., Zhu, Z., Meng, W. and Du, X. (2025) Evaluating Deep Learning in Gait Recognition. In: LectureNotesinComputerScience, Springer, 33-50. https://doi.org/10.1007/978-981-95-3185-1_3
[8]
Hans, S., Ranjan, P. and Ismail, S. (2025) Redefining Vision Tasks: The Power of Transformers in Classification, Detection, and Segmentation. In: Communications in Computer and Information Science, Springer, 42-53. https://doi.org/10.1007/978-3-031-91340-2_4
[9]
Wang, Y., Deng, Y., Zheng, Y., Chattopadhyay, P. and Wang, L. (2025) Vision Transformers for Image Classification: A Comparative Survey. Technologies, 13, 32. https://doi.org/10.3390/technologies13010032
[10]
Li, C., Min, X., Sun, S., Lin, W. and Tang, Z. (2017) DeepGait: A Learning Deep Convolutional Representation for View-Invariant Gait Recognition Using Joint Bayesian. Applied Sciences, 7, 210. https://doi.org/10.3390/app7030210
[11]
Aggarwal, H. and Vishwakarma, D.K. (2018) Covariate Conscious Approach for Gait Recognition Based Upon Zernike Moment Invariants. IEEE Transactions on Cognitive and Developmental Systems, 10, 397-407. https://doi.org/10.1109/tcds.2017.2658674
[12]
Alotaibi, M. and Mahmood, A. (2017) Improved Gait Recognition Based on Specialized Deep Convolutional Neural Network. Computer Vision and Image Understanding, 164, 103-110. https://doi.org/10.1016/j.cviu.2017.10.004
[13]
Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., et al. (2021) Swin Transformer: Hierarchical Vision Transformer Using Shifted Windows. 2021 IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, 10-17 October 2021, 9992-10002. https://doi.org/10.1109/iccv48922.2021.00986
[14]
Tang, S., Li, C., Zhang, P. and Tang, R. (2023) SwinLSTM: Improving Spatiotemporal Prediction Accuracy Using Swin Transformer and LSTM. 2023 IEEE/CVF International Conference on Computer Vision (ICCV), Paris, 1-6 October 2023, 13424-13433. https://doi.org/10.1109/iccv51070.2023.01239
[15]
Van Gansbeke, W., Vandenhende, S., Georgoulis, S., Proesmans, M. and Van Gool, L. (2020) SCAN: Learning to Classify Images without Labels. In: Lecture Notes in Computer Science, Springer, 268-285. https://doi.org/10.1007/978-3-030-58607-2_16
[16]
Touvron, H., Bojanowski, P., Caron, M., Cord, M., El-Nouby, A., Grave, E., et al. (2023) ResMLP: Feedforward Networks for Image Classification with Data-Efficient Training. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45, 5314-5321. https://doi.org/10.1109/tpami.2022.3206148
[17]
Xie, S., Girshick, R., Dollar, P., Tu, Z. and He, K. (2016) Aggregated Residual Transformations for Deep Neural Networks. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, 21-26 July 2017, 5987-5995. https://doi.org/10.1109/cvpr.2017.634
[18]
Asif, M., Tiwana, M.I., Khan, U.S., Ahmad, M.W., Qureshi, W.S. and Iqbal, J. (2022) Human Gait Recognition Subject to Different Covariate Factors in a Multi-View Environment. Results in Engineering, 15, Article 100556. https://doi.org/10.1016/j.rineng.2022.100556
Khaliluzzaman, M., Uddin, A., Deb, K. and Hasan, M.J. (2023) Person Recognition Based on Deep Gait: A Survey. Sensors, 23, Article 4875. https://doi.org/10.3390/s23104875
[21]
Aman, N., Islam, M.R., Ahamed, M.F. and Ahsan, M. (2024) Performance Evaluation of Various Deep Learning Models in Gait Recognition Using the CASIA-B Dataset. Technologies, 12, Article 264. https://doi.org/10.3390/technologies12120264
[22]
Cosma, A., Catruna, A. and Radoi, E. (2023) Exploring Self-Supervised Vision Transformers for Gait Recognition in the Wild. Sensors, 23, Article 2680. https://doi.org/10.3390/s23052680