TL;DR
This paper introduces a robust, two-stage framework for discovering piecewise-smooth dynamical systems directly from noisy trajectory data. By first identifying the geometric boundaries (switching hyperplanes) where a system's behavior abruptly changes and then fitting custom, geometry-constrained neural networks to each region, the method accurately captures discontinuous behaviors like sliding motion. The resulting models outperform standard smooth Neural ODEs across multiple benchmarks while using an order of magnitude fewer trainable parameters.
What Problem Does This Paper Address?
Most modern data-driven system identification methods, such as Neural Ordinary Differential Equations (Neural ODEs), assume that the underlying physics vary smoothly. However, many real-world systems exhibit sharp, discontinuous changes in their dynamics. Examples include mechanical systems with stick-slip friction, robotic contact dynamics, and climate tipping points.
When applied to these piecewise-smooth systems, standard smooth neural networks struggle. They require massive parameter counts to approximate sharp jumps, often smooth out critical behaviors (like a block sticking to a floor due to friction), and introduce spurious, unphysical oscillations away from the actual boundaries. This paper tackles the challenge of accurately learning both the location of these discontinuity boundaries and the distinct governing equations within each region from noisy trajectory observations.
Methods
The authors propose a modular, "geometry-first" two-stage framework:
- Geometry Learning (Boundary Detection): Instead of learning the boundaries and dynamics simultaneously, the framework first isolates the switching hyperplanes. It uses a linear velocity estimator (like a Savitzky-Golay filter) to approximate derivatives along the trajectories and isolate large, sudden jumps in velocity. These jump points form a candidate cloud. Because this cloud contains noise and curvature artifacts, the algorithm applies RANSAC (Random Sample Consensus) combined with Total Least Squares (TLS) to robustly fit the affine switching hyperplanes.
- Dynamics Learning: Once the state space is partitioned into polyhedral regions by the recovered hyperplanes, the smooth dynamics within each region are learned. The authors introduce a novel geometry-preserving neural network architecture ($F^d_{\mathcal{P}}$). This architecture utilizes a custom activation function that incorporates the Heaviside step function to explicitly gate the dynamics based on the switching geometry: $$\text{ReLU}_J(x) = \text{ReLU}(x) + J \odot \mathcal{H}(x)$$ This mathematical formulation guarantees that the network's discontinuities are strictly confined to the prescribed hyperplanes, preventing unphysical jumps elsewhere.
The training objective combines a standard trajectory-matching loss (using curriculum learning to scale up trajectory lengths) with directional velocity regularizers that penalize incorrect normal and tangential velocity components near the boundaries.
Datasets
The framework was evaluated on three synthetic benchmark systems designed to simulate real-world non-smooth phenomena:
- Benchmark A: Piecewise-Linear Oscillator: A simple 2D system with two fixed switching lines ($q = \pm 1$) used to verify the architecture's ability to restrict discontinuities to the correct boundaries.
- Benchmark B: Dry-Friction Oscillator: A classic mechanical system modeling stick-slip dynamics under periodic forcing, tested across two different forcing frequencies.
- Benchmark C: PP04 Climate Model: A 3D model of glacial cycles where atmospheric carbon dioxide levels jump discontinuously based on a non-axis-aligned affine plane representing oceanic stratification.
Key Insights and Ideas
- Modularity Breeds Interpretability: Separating geometry detection from dynamics learning allows researchers to inspect, validate, or manually override the discovered boundaries independently of the neural network training. It also makes it easy to inject physical priors (e.g., enforcing second-order mechanical structures or Hamiltonian properties).
- Strict Confinement is Necessary: The authors demonstrate that simply providing a standard network with the "switching code" as an input feature is insufficient. Unstructured networks still create spurious, unphysical jumps throughout the smooth regions. The custom gating architecture mathematically prevents this.
- The Noise Floor Limit: The paper provides a rigorous statistical analysis showing that boundary detectability depends on a strict balance between the velocity jump size, observation noise, and the derivative stencil width. If noise is too high relative to the jump, linear velocity estimators hit a fundamental floor where boundaries become unidentifiable.
Key Results
- Superior Accuracy: Across all dry-friction and climate benchmarks, the proposed discontinuous model ("Disc") achieved significantly lower rollout and vector-field errors than smooth Neural ODE baselines.
- Extreme Parameter Efficiency: Because the model doesn't waste capacity trying to smooth out sharp jumps, it is incredibly compact. For the dry-friction oscillator, the structured model required only 521 parameters compared to the Neural ODE's 8,705. For the PP04 climate model, the count was 448 parameters versus 8,899 for the baseline.
- Robustness to Noise: The RANSAC-TLS geometry pipeline successfully recovered switching hyperplanes with minimal angle error (under $0.3^\circ$ for dry friction) in mild noise conditions ($\sigma = 10^{-2}$).
Limitations and Future Work
While highly effective, the current framework operates under a few restrictive assumptions:
- Affine Boundaries Only: The geometry-learning stage is currently limited to flat, affine hyperplanes (lines and planes) rather than curved switching surfaces.
- Full Observability: The system assumes the entire state vector is directly observed; it cannot yet handle partially observed systems or latent spaces.
- Low Dimensionality: The benchmarks evaluated are low-dimensional ($2\text{D}$ and $3\text{D}$), and scaling the RANSAC-based hyperplane search to very high-dimensional state spaces remains a challenge.
Future work aims to integrate this approach with encoder-decoder architectures to learn discontinuous latent dynamics from high-dimensional observations like video, and to extend the boundary detection to non-affine surfaces.
Summary updated