TL;DR
This paper introduces Quaternion Convolutional Neural Networks (QCNNs) to solve the problem of gait identification using smartphone accelerometers, where device orientation can change between training and testing. QCNNs are designed to be inherently rotation-invariant, significantly outperforming standard CNNs in scenarios with varying device orientations.
What Problem Does This Paper Address?
Gait identification, a biometric technique that uses walking patterns to recognize individuals, often relies on accelerometers in smartphones. A major challenge is that users might enroll with their phone in one orientation but then use it in a different orientation for authentication. Traditional Convolutional Neural Networks (CNNs) struggle with this, leading to a drastic drop in accuracy when the device orientation changes. Existing solutions like using only acceleration magnitude discard valuable spatial information, or employ computationally expensive rotation-invariant transforms. Data augmentation can help but increases training complexity. This paper aims to build rotation invariance directly into the network architecture.
Methods
The core innovation is the Quaternion Convolutional Neural Network (QCNN). Instead of processing raw 3D vectors, QCNNs operate on quaternions, which are a mathematical extension of complex numbers that can elegantly represent 3D rotations. The key components are:
- Quaternion Convolutional Kernel: This custom kernel is designed to be "SO(3)-equivariant." This means that if you rotate the input data, the output of the kernel also rotates in a predictable, corresponding way. This is achieved by leveraging quaternion conjugation to represent rotations.
- Layer-wise Equivariance and Global Invariance: By stacking these equivariant kernels, the QCNN architecture becomes globally invariant to the orientation of the input gait cycles. This means the network learns to recognize the underlying gait signature regardless of how the phone is held.
- Normalization and Initialization: Specific techniques for quaternion batch normalization and parameter initialization are proposed to ensure effective training.
Datasets
- Cotemporal Experiments: A small dataset was collected from eight volunteers using two simultaneously recording phones with opposite orientations. This dataset was split into training and testing sets, with "flipped" versions of the data used to simulate orientation changes.
- Multi-user Experiments: A larger dataset from 100 users was used. To simulate orientation changes, existing gait cycles were artificially rotated in 3D using random rotations. This allowed for a direct comparison with data augmentation techniques.
Key Insights and Ideas
- Intrinsic Rotation Invariance is Key: The paper strongly suggests that building rotation invariance directly into the network architecture (QCNN) is more effective than relying solely on data augmentation for handling orientation changes in gait identification.
- Quaternion Algebra for Spatial Representation: Quaternions provide a powerful and efficient mathematical framework for handling 3D rotations, making them well-suited for tasks involving spatial data like accelerometer readings.
- Novel Feature Visualization: The learned quaternion kernels can be visualized as "trajectory fragments" in 3D space. These visualizations are rotation-equivariant and offer a new way to understand what features the network is learning, going beyond simple activation strengths to include directional information.
- Parameter Efficiency: The QCNN architecture, despite its advanced capabilities, is shown to be more parameter-efficient than standard CNNs for this task.
Key Results
- Cotemporal Experiments: The QCNN achieved a 10x improvement in accuracy on "all-flipped" test data compared to a standard CNN (51% vs. 5%).
- Multi-user Experiments:
- When trained and tested on original orientations, the standard CNN performed slightly better.
- However, when test data was rotated, the standard CNN's accuracy dropped significantly, while the QCNN's performance remained largely constant and superior.
- Data augmentation with standard CNNs was unable to match the QCNN's performance in rotation-invariant scenarios.
- Kernel Visualization: The paper demonstrates that learned kernels can be visualized as basis-independent trajectory fragments, offering insights into the network's learned features.
Limitations and Future Work
- Training Stability: The authors acknowledge that training stability was an issue observed in some experiments and suggest it as an area for future theoretical and empirical analysis.
- Implementation Efficiency: Developing faster implementation kernels could accelerate architecture iteration and experimentation.
- Broader Applications: The QCNN architecture is not limited to 1D vector arrays and can be extended to multidimensional vector arrays, suggesting potential applications beyond gait identification.
Summary updated