Hidden Markov Model based stride segmentation on unsupervised free-living gait data in Parkinson’s disease patients

Nils Roth, Arne Küderle, Martin Ullrich, Till Gladow, Franz Marxreiter, Jochen Klucken, Bjoern M. Eskofier, Felix Kluge

Abstract

Background: To objectively assess a patient's gait, a robust identification of stride borders is one of the first steps in inertial sensor-based mobile gait analysis pipelines. While many different methods for stride segmentation have been presented in the literature, an out-of-lab evaluation of respective algorithms on free-living gait is still missing.

Method: To address this issue, we present a comprehensive free-living evaluation dataset, including 146,574 semi-automatic labeled strides of 28 Parkinson's Disease patients. This dataset was used to evaluate the segmentation performance of a new Hidden Markov Model (HMM) based stride segmentation approach compared to an available dynamic time warping (DTW) based method.

Results: The proposed HMM achieved a mean F1-score of 92.1% and outperformed the DTW approach significantly. Further analysis revealed a dependency of segmentation performance to the number of strides within respective walking bouts. Shorter bouts (<30 strides) resulted in worse performance, which could be related to more heterogeneous gait and an increased diversity of different stride types in short free-living walking bouts. In contrast, the HMM reached F1-scores of more than 96.2% for longer bouts (>50 strides). Furthermore, we showed that an HMM, which was trained on at-lab data only, could be transferred to a free-living context with a negligible decrease in performance.

Conclusion: The generalizability of the proposed HMM is a promising feature, as fully labeled free-living training data might not be available for many applications. Our proposed HMM-based approach was able to address the increased complexity of free-living gait data, and thus will help to enable a robust assessment of stride parameters in future free-living gait analysis applications.

Introduction

To treat Parkinson’s Disease (PD) effectively, clinicians need to understand how a patient moves throughout their entire day, rather than just during brief clinic visits. This "free-living" gait analysis relies on stride segmentation: the precise identification of where each step starts and ends within a continuous stream of sensor data. While many algorithms perform well in controlled laboratory settings, they often struggle in the "wild," where walking is chaotic, involving short bursts of movement, frequent turns, and noise from non-walking activities. This study introduces a robust Hidden Markov Model (HMM) designed to handle the high variability of PD gait in unsupervised environments.

Methodology

The researchers proposed a two-class Hidden Markov Model (HMM) architecture. Unlike traditional Dynamic Time Warping (DTW) methods that attempt to match data to a fixed template, the HMM is probabilistic and better suited for the irregular gait patterns seen in PD.

Key technical features include:

  • Sub-Model Architecture: The system uses a Stride Model to represent the cyclic movement of a step and a Transition Model to represent the periods between steps or walking bouts.
  • Left-Right Markov Chain: Both sub-models use a "left-right" structure, requiring the model to progress through a specific sequence of hidden states ($s_0$ to $s_n$), mimicking the physical progression of a foot through a stride.
  • Feature Extraction: The model processes angular velocity (medio-lateral axis) and its gradient as primary input features.
The segmentation model architecture, illustrating how raw walking bouts are processed into transitions and strides through dedicated sub-models.

Results and Discussion

The HMM achieved a mean F1-score of 92.1% across a massive dataset of 146,574 strides from 28 PD patients. It significantly outperformed the DTW benchmark across all tested conditions.

The Bout Length Effect

A critical insight from the study is that segmentation performance is highly dependent on the length of the walking bout. For sustained walking (>50 strides), the HMM reached an F1-score of 96.2%. However, performance dropped for very short bouts (<15 strides), which are common in home environments (e.g., walking from a couch to a kitchen). These short bursts are fundamentally more heterogeneous and "messy," representing a continuing challenge for gait analysis.

Visualization of the HMM segmentation process, showing the mapping of standardized features to hidden states to determine stride start and end points.

Lab-to-Wild Generalizability

One of the most significant findings is the model's ability to generalize. An HMM trained exclusively on clean, laboratory data performed almost as well on free-living data as a model trained on the free-living data itself. This suggests that researchers can develop effective tools without the need for thousands of hours of manually labeled real-world data, which is often difficult and expensive to obtain.

Conclusion

The proposed HMM-based approach provides a robust foundation for unsupervised gait analysis in Parkinson's Disease. By successfully navigating the complexities of real-world data and demonstrating high generalizability from lab to home environments, this model enables more accurate clinical assessments of disease progression through metrics like gait symmetry and variability.

Summary updated

BibTeX
@article{roth2021hidden,
  author = {Nils Roth and Arne Küderle and Martin Ullrich and Till Gladow and Franz Marxreiter and Jochen Klucken and Bjoern M. Eskofier and Felix Kluge},
  title = {{Hidden Markov Model based stride segmentation on unsupervised free-living gait data in Parkinson’s disease patients}},
  journal = {Journal of NeuroEngineering and Rehabilitation},
  year = {2021},
  doi = {10.1186/s12984-021-00883-7},
}
Figure