Deep Learning Based Gait Recognition Using Smartphones in the Wild

Qin Zou, Yanling Wang, Yi Zhao, Qian Wang, Chao Shen, Qingquan Li

TL;DR

This paper introduces a hybrid deep learning framework for gait recognition using standard smartphone sensors in unconstrained, real-world environments. By combining convolutional and recurrent neural networks, the system achieves over 93% accuracy in both identifying individuals and authenticating users without requiring specific walking paths or speeds.

What Problem Does This Paper Address?

Gait recognition—identifying people by how they walk—is a powerful, non-intrusive biometric. However, most existing systems are "lab-bound," requiring subjects to walk at specific speeds along predefined paths. Smartphone-based gait recognition offers a convenient alternative, but it faces significant hurdles "in the wild." These include varying phone orientations (e.g., pocket vs. hand), inconsistent walking speeds, and the presence of non-walking activities (like sitting or standing) mixed into the sensor data stream. The authors tackle these challenges to create a robust, real-world gait recognition system that works under loose constraints.

Methods

The proposed pipeline consists of three main stages:

  1. Gait Data Extraction: To separate walking from non-walking data in a continuous stream, the authors developed a 1D Deep Convolutional Neural Network (DCNN) inspired by U-Net. This network performs semantic segmentation on the continuous inertial time series. Architecture of the data extraction network
  2. Preprocessing and Segmentation: To handle arbitrary phone orientations, triaxial accelerometer data is converted into absolute acceleration magnitude ($ACC_o$). The continuous walking data is then segmented into individual steps using an empirical rule-based approach focused on local maxima in the acceleration curve. Step segmentation process
  3. Hybrid Recognition Network: The core of the system is a hybrid architecture that processes data through parallel CNN and Long Short-Term Memory (LSTM) branches. The CNN captures spatial correlations between different sensor axes (accelerometer and gyroscope), while the LSTM models the temporal dynamics of the gait cycle. For identification, features from both branches are concatenated and passed to a fully connected classifier. Hybrid network architecture for gait identification
Fig. 1. Architecture of the network for gait data extraction.
Fig. 3. An example of step segmentation. (a) The gait curve ACCo, calculated on the three components as shown in Figure 2. (b) The segmentation results, where the red dots denote the local maximums and divide the steps.
Fig. 4. The network architecture for gait identification.

Datasets

The authors introduced a new benchmark, whuGAIT, which includes inertial data from 118 subjects collected in unconstrained daily life. They also evaluated their models on two existing benchmarks:

  • IdNet: A dataset of 50 subjects walking in a relatively standard style.
  • OU-ISIR: A large-scale dataset with 745 subjects, used to test the model's ability to generalize to a large population with very limited samples per person.

Key Insights and Ideas

  • Complementary Features: CNNs and LSTMs are not redundant in this context. CNNs are better at extracting discriminative spatial features from the "array" of sensor axes, while LSTMs are superior at handling the sequential, time-dependent nature of gait. The hybrid "CNN+LSTM" approach consistently outperforms single-network models.
  • Orientation Invariance via Magnitude: Using the absolute magnitude of acceleration is a simple yet effective way to make the system robust to how a user holds or carries their phone, effectively removing the influence of the phone's local coordinate system.
  • Vertical Alignment for Authentication: A key finding was that for authentication (judging if two gait samples belong to the same person), "vertically" aligning the samples—stacking them in the time dimension—significantly improves performance compared to horizontal concatenation. This allows the 1D kernels to directly compare corresponding gait phases across the two samples.

Key Results

  • High Accuracy: The hybrid model achieved 93.52% accuracy for person identification and 93.75% accuracy for authentication on the 118-subject whuGAIT dataset.
  • Superiority over Baselines: It significantly outperformed traditional signal analysis methods (Fourier, Wavelet, EigenGait) and other deep learning models like IdNet and DeepConvLSTM.
  • Generalization: On the challenging OU-ISIR dataset, pre-training on whuGAIT followed by fine-tuning led to improved results, demonstrating the model's transfer learning capabilities even when data per subject is extremely scarce.

Limitations and Future Work

  • Physical Health Bias: The current datasets were collected from healthy individuals. The system's performance on people with physical impairments, elderly populations, or those with temporary injuries remains an open question.
  • Data Scarcity: While the model performs well, training deep networks for hundreds of subjects with limited data per subject is still difficult. The authors suggest exploring triplet or contrastive losses to improve feature embedding in low-data regimes.
  • Privacy Concerns: Large-scale biometric data collection raises significant privacy issues. The authors emphasize that real-world deployment would require robust user authorization and data usage agreements.

Summary updated

BibTeX
@misc{zou2018deep,
  author = {Qin Zou and Yanling Wang and Yi Zhao and Qian Wang and Chao Shen and Qingquan Li},
  title = {{Deep Learning Based Gait Recognition Using Smartphones in the Wild}},
  year = {2018},
  eprint = {1811.00338},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.00338},
}
Figure