Simultaneous State Estimation and Online Model Learning in a Soft Robotic System

Jan-Hendrik Ewering, Max Bartholdt, Simon F. G. Ehlers, Niklas Wahlström, Thomas B. Schön, Thomas SeelarXiv 2026

TL;DR

This paper introduces a gray-box method to simultaneously track a soft robot's pose and learn its complex, state-dependent bending stiffness online using only base force and torque measurements. By embedding a reduced-rank Gaussian Process within a nominal physical model and solving the joint inference problem via a marginalized particle filter, the approach significantly improves multi-step forward predictions without relying on restrictive external vision systems.

What Problem Does This Paper Address?

Soft and continuum robots are highly flexible and compliant, making them ideal for safe human interaction and navigating confined spaces. However, their flexibility makes them notoriously difficult to model and control. Advanced control strategies like Model Predictive Control (MPC) require two things: accurate real-time state estimation (knowing where the robot is) and precise forward models (predicting where it will be).

This creates a classic chicken-and-egg problem: estimating the robot's hidden states requires an accurate model, but learning an accurate model typically requires clean state measurements. Most existing soft robotics methods either rely on restrictive external sensors (like optical tracking systems) or use oversimplified nominal models that fail during multi-step forward predictions because they treat unmodeled dynamics as simple random-walk parameters.

Methods

The authors tackle this joint inference problem using a "gray-box" system identification architecture that blends physics-based modeling with machine learning:

  1. Nominal Constant-Curvature Model: The baseline physics model accounts for the robot's kinematics and dynamics but simplifies the bending stiffness into an affine parameter.
  2. Gaussian Process (GP) Augmentation: To capture unmodeled non-linearities, the authors augment the nominal model with a state-dependent bending stiffness model, $k_{\text{bend}}(\boldsymbol{x})$, modeled as a GP.
  3. Reduced-Rank GP Approximation: Standard GPs scale poorly with data. The authors use a reduced-rank approximation that transforms the GP into a finite-dimensional eigenfunction expansion. This keeps the computational complexity bounded and independent of the number of streaming data points.
  4. Marginalized Particle Filter (PF): A tailored particle filter samples the robot's hidden states (pose and velocity) while analytically updating the GP model parameters in closed form using a conjugate Normal-Inverse-Gamma prior.
  5. Online Hyperparameter Learning: The GP kernel hyperparameters (scale and length-scale) are also updated online via a random walk within the particle filter loop to better adapt to the data.
System architecture for simultaneous state estimation and online model learning

Datasets

The methodology was validated using real-world experimental data from a pneumatically driven soft robot:

  • Data Characteristics: A highly dynamic 5-second trajectory sampled at a discretization time step of $\Delta t = 8$ ms.
  • Inputs/Outputs: The inputs were the commanded pneumatic pressures; the outputs were noisy base reaction forces and torques measured by a force-torque sensor.
  • Validation Ground Truth: An external optical tracking system was used only to capture ground-truth pose data for accuracy validation, demonstrating that the filter can run independently of external vision in practical deployments.

Key Insights and Ideas

  • Gray-Box over Black-Box: Instead of learning the entire robot dynamics from scratch (a data-hungry black-box approach), nesting a GP inside a nominal physical model preserves physical interpretability and drastically improves data efficiency.
  • Sampling Avoids Model Inversion: Because the nominal soft robot equations are non-invertible, one cannot directly calculate "pseudo-measurements" of stiffness from state transitions. The sampling-based nature of the particle filter elegantly bypasses this mathematical barrier.
  • Stiffness as a Function, Not a Slack Variable: Traditional filters treat modeling errors as "slack variables" that follow a random walk. By learning stiffness as a state-dependent function, the robot can actually predict its stiffness in future unseen states, which is vital for multi-step lookaheads in predictive control.

Key Results

  • State Estimation Accuracy: The marginalized particle filter tracked the robot's pose and velocity with accuracy comparable to a highly tuned Unscented Kalman Filter (UKF), achieving a Normalized Mean Squared Error (NMSE) of 0.51 when hyperparameter learning was enabled.
  • Multi-Step Prediction Performance: In forward-prediction tests across a separate test trajectory, the GP-augmented model drastically outperformed a fixed nominal model (often by a factor of two or more). Crucially, at larger prediction horizons and step sizes, the GP-augmented model outperformed the UKF baseline by approximately 10%, proving that the online-learned stiffness model successfully captured real-world system behavior.
Comparison of multi-step prediction errors across different horizons and discretization widths

Limitations and Future Work

The primary limitation of the current implementation is computational speed; the algorithm is not yet fast enough for real-time, closed-loop control applications due to the computational overhead of processing $N=500$ particles with matrix inversions. The authors note that code optimization and parallelization could mitigate this. Additionally, the filter requires tuning 28 algorithmic hyperparameters, a process currently handled heuristically that would benefit from a more systematic optimization framework.

Summary updated

BibTeX
@misc{ewering2026simultaneous,
  author = {Jan-Hendrik Ewering and Max Bartholdt and Simon F. G. Ehlers and Niklas Wahlström and Thomas B. Schön and Thomas Seel},
  title = {{Simultaneous State Estimation and Online Model Learning in a Soft Robotic System}},
  year = {2026},
  eprint = {2602.14092},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.14092},
}
Figure