arXiv:2610.24829cs.LGOct 2026

Manuscript Offprint

arXiv:2610.24829

Recurrent Temporal Restricted Boltzmann Machines as Unsupervised Encoders for Biomechanical Movement Sequences

Wafi Sharif, Nicholas LaHaye

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Biomechanical movement recordings are continuous, high-dimensional time series, and analyzing them without manually labeling them requires representations that capture how movements evolve over time. Most unsupervised representation-learning pipelines, however, treat each observation frame independently and discard this temporal structure, while energy-based models that could capture it have not extensively been adapted to biomechanical signals. So, this paper implements the Recurrent Temporal Restricted Boltzmann Machine (RTRBM), a recurrent energy-based model, into an unsupervised encoder that maps windows of movement data to fixed-length embeddings, and tests what its recurrent structure contributes. We adapt the model to continuous-valued signals, stack it into a deep architecture, and integrate it into the SIT-FUSE segmentation pipeline. We evaluate the embeddings on simulated musculoskeletal reaching and on two real gait datasets, using clustering, reconstruction, and walking-speed classification of unseen subjects, and compare them against non-recurrent and non-probabilistic baselines, including a control that removes the recurrent connection. Clustering the embeddings recovers movement structure tied to progress toward the target without any labels, which also transfers to unseen episodes. On gait data, the embeddings outperform PCA and autoencoder baselines under a nonlinear probe. However, removing the recurrent connection does not yield a measurable loss on the reaching task, and simple per-channel summary statistics classify walking speed at least as well as the embeddings. The model is therefore a working, verified encoder for SIT-FUSE, while the evidence for a benefit of recurrence is mixed, and the learned embeddings did not outperform simple summary statistics on gait.

1 Introduction

Biomechanical time series are high-dimensional, continuous, and inherently sequential. As features like joint kinematics and contact forces evolve in ways that reflect an underlying motor plan, significant information in a movement is spread across time. Therefore, treating each observation as an independent sample takes away that structure and reduces a movement to simply a set of disconnected snapshots.

The typical fix for this has been supervision, by training a classifier to predict movement phases from annotated recordings (Al-Timemy et al., 2022). However, exhaustively hand-labeling recordings is costly, and models trained on labeled recordings often degrade when the sensor placement, device, or subject population changes (Chakma et al., 2023; Dhekane & Ploetz, 2024). Meanwhile, unsupervised methods that can directly find temporal structure from raw data alleviate the effort required to produce labels, instead shifting efforts towards interpreting the structure a model finds. This overall motivates the use of unsupervised methods here.

Figure

(a) RBM

Figure

(b) RTRBM (this work)

Figure

(c) RNN-RBM

Figure 1: Three ways to add memory to an RBM. (a) A standard RBM has no temporal connection; each frame is modeled independently. (b) The RTRBM used in this work reuses its own hidden units as the recurrent signal: ht−1h_{t-1} sets the hidden bias at t through a single learned weight matrix W′W' (red). (c) The RNN-RBM keeps a separate recurrent state rtr_t, updated from the current frame and the previous r, which then sets the RBM's bias one step ahead (teal): more expressive, but with a second set of parameters to train and coordinate.

Restricted Boltzmann Machines (RBMs) are undirected energy-based models used in unsupervised representation learning (Hinton et al., 2006); stacking them into Deep Belief Networks (DBNs) trained layer-by-layer helps to pull out abstract features (Hinton et al., 2006). Feeding these hidden representations into downstream clustering is the approach SIT-FUSE (LaHaye et al., 2021) takes for self-supervised segmentation of remote sensing imagery; the code here is a sequence-aware extension of that pipeline, and we use biomechanical reaching trajectories to validate it. Every standard RBM processes each input frame by itself. Nothing conditions the hidden state at time t on what the model saw at t-1, so no temporal context carries forward.

The Recurrent Temporal Restricted Boltzmann Machine (Sutskever et al., 2008) closes that gap (Figure 1). It augments the RBM with a learned hidden-to-hidden weight matrix W′W' that carries mean-field hidden probabilities forward in time, modulating the hidden bias at each step. It defines a generative distribution over whole sequences, and the original RTRBM paper showed that it generates more realistic motion-capture sequences and bouncing-ball videos than the temporal RBM (TRBM) it modifies (Sutskever et al., 2008). Its motion-capture experiments used Gaussian visible units with a fixed unit variance. Biomechanical recordings combine joint angles, velocities, and muscle activations whose variability differs from channel to channel, so we extend the model with a learned per-feature variance, which requires care in how the variance is trained (Cho et al., 2011) and improves held-out reconstruction ( §3.1\S3.1). Temporal RBMs have so far been applied to human movement mainly to generate, predict, or fill in motion-capture sequences (Taylor et al., 2011; Sukhbaatar et al., 2011; Sutskever et al., 2008). To our knowledge, they have not been used as unsupervised encoders that turn windows of biomechanical signals into fixed-length embeddings for clustering, which is the role we develop here.

A related model, known as the RNN-RBM (Boulanger-Lewandowski et al., 2012), conditions each RBM in the sequence on the hidden state of an RNN instead of on a direct hidden-to-hidden connection. This gives it more expressive power, but also makes it harder to train and requires separate optimization of the RNN and RBM components. The RTRBM's single recurrent matrix is a simpler inductive bias that suits the short 20-step windows used here.

This paper describes how we developed the RTRBM into a working temporal encoder for SIT-FUSE. We implement the Bernoulli RTRBM and a Gaussian-visible variant with a learned per-feature variance (Cho et al., 2011), trained with a two-phase variance schedule, gradient clipping, and a sampled negative particle that keep training stable on continuous multichannel signals. We stack RTRBM layers into a Recurrent Temporal Deep Belief Network (RTDBN) that turns each movement window into one fixed-length embedding by temporal mean pooling, with windowing that never spans two recordings. The implementation follows Learnergy's conventions, and its training gradients agree with exact maximum likelihood on small enumerable models. Our work is also integrated into SIT-FUSE as a selectable encoder. We evaluate it on simulated reaching trajectories from MyoSuite (Caggiano et al., 2022), where k-means clusters of embeddings are organized around target distance and closing rate, as well as on two real gait cohorts, where the embeddings predict walking speed in unseen subjects better than PCA and autoencoder embeddings under a random-forest probe, but not better than simple per-channel summary statistics. Further, an ablation study finds no benefit from the recurrent connection itself on the reach data ( §\S3.5).

References (21)