Transformers for 1D Signals in Parkinson's Disease Detection from Gait

Duc Minh Dimitri Nguyen, Mehdi Miah, Guillaume-Alexandre Bilodeau, Wassim Bouachir · DOI

Abstract

Early and accurate diagnosis of Parkinson’s Disease (PD) remains a significant clinical challenge. While gait analysis has emerged as a promising non-invasive diagnostic tool, traditional computational methods like 1D Convolutional Neural Networks (CNNs) often struggle to capture the complex, long-range temporal dependencies inherent in gait cycles. This paper presents a novel Transformer-based architecture designed specifically for 1D gait signals. By decoupling temporal and spatial feature extraction into two distinct stages, the proposed model achieves a state-of-the-art accuracy of 95.2% on the Physionet Gait in Parkinson’s Disease dataset. Beyond raw accuracy, the Transformer architecture demonstrates superior stability and robustness across patient populations compared to traditional deep learning approaches.

1. Introduction

Parkinson’s Disease is a progressive neurological disorder characterized by motor impairments, including tremors, bradykinesia, and postural instability. Gait abnormalities—such as reduced stride length, increased variability, and "flat" foot strikes—are among the most reliable indicators of the disease. Historically, clinicians have relied on subjective assessments or hand-crafted features (e.g., cadence, stride time) for diagnosis.

Recent advances in deep learning have shifted focus toward automated feature extraction using 1D CNNs. However, CNNs are limited by their local receptive fields, making it difficult to model the long-term dependencies of a continuous walk. Transformers, which utilize self-attention mechanisms to capture global dependencies, offer a potential solution. This study explores the adaptation of Transformer architectures to 1D Vertical Ground Reaction Force (VGRF) signals, addressing the computational challenges of applying these models to high-frequency time-series data.

2. Methodology: The Decoupled Transformer

The primary innovation of this work is a "decoupled" Transformer architecture that separates the processing of time and space. This approach mitigates the high memory requirements of standard Transformers while maintaining their expressive power.

2.1 Temporal Transformer Encoders

The input data consists of 18 parallel VGRF signals from sensors located on the soles of the feet. In the first stage, the model employs 18 parallel Transformer encoders with shared weights. Each encoder processes the time-series data from a single sensor independently. This allows the model to learn the specific temporal dynamics of how force changes at individual contact points during a stride.

2.2 Spatial Transformer Encoder

Once temporal features are extracted and their dimensionality is reduced, they are passed to a second stage: the Spatial Transformer Encoder. This component analyzes the relationships between the 18 sensors. By attending to the interactions across different foot regions, the model reconstructs the "spatial story" of the gait, capturing how weight shifts across the feet during the gait cycle.

2.3 Data Processing and Classification

To handle long-duration walks, the data is segmented into 100-step windows with a 50% overlap. Fixed positional encodings are used to provide the Transformer with information regarding the sequence order and sensor locations. For final patient-level diagnosis, the model employs a majority voting scheme: a patient is classified as having PD if the majority of their gait segments are identified as Parkinsonian.

3. Experimental Setup

The model was evaluated using the Physionet Gait in Parkinson’s Disease dataset, which includes 306 recorded walks from 166 individuals (93 PD patients and 73 healthy controls). The data comprises 18 signals representing VGRF (8 sensors per foot plus 2 total force signals). To ensure rigorous evaluation, the authors utilized cross-validation techniques to account for the dataset's class imbalance (70% PD vs. 30% control).

4. Results and Discussion

The Transformer-based approach demonstrated significant improvements over existing benchmarks:

  • Accuracy: The model achieved a state-of-the-art accuracy of 95.2%, surpassing the previous 1D-CNN benchmark of 94.5%.
  • Sensitivity: A high sensitivity of 98.1% indicates that the model is exceptionally effective at identifying patients with PD, a crucial requirement for clinical screening tools.
  • Specificity: The specificity was recorded at 86.8%. While high, this suggests that some healthy individuals with atypical walking patterns may be flagged as false positives.
  • Stability: Perhaps the most significant finding was the model's stability. The standard deviation of results across different test folds was substantially lower than that of CNN-based models. This suggests that Transformers are more robust to individual patient variability, providing more consistent diagnostic performance.

5. Conclusion

This research demonstrates that Transformers can effectively outpace CNNs in the analysis of 1D gait signals for Parkinson's detection. The decoupled architecture provides a blueprint for applying attention mechanisms to multi-channel time-series data without prohibitive computational costs.

However, the performance gains come with a trade-off: the Transformer model requires approximately four times the training time of a standard Deep Neural Network and is more memory-intensive. Future research will focus on refining the spatial encoder to improve specificity and exploring the application of this decoupled architecture to other 1D medical signals, such as ECG and EEG data.

Summary updated

BibTeX
@inproceedings{nguyen2022transformers,
  author = {Duc Minh Dimitri Nguyen and Mehdi Miah and Guillaume-Alexandre Bilodeau and Wassim Bouachir},
  title = {{Transformers for 1D Signals in Parkinson's Disease Detection from Gait}},
  booktitle = {ICPR},
  year = {2022},
  doi = {10.1109/icpr56361.2022.9956330},
}
Figure