arXiv:2610.22575cs.LGOct 2026

Manuscript Offprint

arXiv:2610.22575

Structure-Aware Spatial Kernels for Gaussian Process Distributed Port-Hamiltonian Systems

Tianyi Yang, Thomas Beckers

Tianyi Yang 1^{1} and Thomas Beckers 2^{2}

Abstract—Gaussian process distributed port-Hamiltonian systems (GP-dPHS) enable data-driven modeling of distributed dynamical systems while preserving their physical structure. However, standard stationary kernels can be inefficient for spatially heterogeneous systems because they neither exploit known input invariances nor reflect structured spatial dependencies. We address this limitation with a structure-aware kernel design that removes irrelevant state coordinates and decouples state and spatial dependencies through a tensor-product covariance. This modular construction allows qualitative knowledge of spatial heterogeneity to be incorporated by selecting an appropriate spatial kernel without requiring an analytical description of the underlying profile. Numerical experiments on a nonlinear string with periodic, smoothly varying, and semi-piecewise stiffness profiles demonstrate that structural decoupling consistently improves reconstruction accuracy, while profile-matched spatial kernels yield substantially larger gains in force-field and trajectory reconstruction.

I. INTRODUCTION

Data-driven modeling has become increasingly important in control, robotics, and physical-system identification, particularly when first-principles models are incomplete or computationally expensive [1]. In these applications, learned models should not only be able to predict trajectories but also remain consistent with the physical structure of the underlying system, as this consistency supports trustworthy predictions and reliable use in control of safety-critical systems. Physics-informed machine learning addresses this requirement by incorporating prior knowledge of conservation laws, constitutive relations, and system interconnections into the learning process [2].

Recently, port-Hamiltonian systems (PHS) have been increasingly used as an energy-based modeling approach for nonlinear system identification [3]. They provide a natural framework for structure-preserving modeling in control by representing dynamics in terms of energy storage, interconnection, dissipation, and external ports. This framework has motivated several data-driven modeling approaches, including port-Hamiltonian neural networks that learn energy functions, dissipation, and external forcing, and operator-inference methods that identify structure-preserving reduced-order operators from data and a prescribed Hamiltonian form [4], [5]. Within this broader class of approaches, Gaussian process distributed port-Hamiltonian systems (GP-dPHS) combine the port-Hamiltonian representation for partial differential equations (PDEs) with nonparametric probabilistic learning, enabling unknown energy-related quantities to be inferred from data while retaining an interpretable physical structure [6], [7]. This Bayesian formulation provides predictive uncertainty estimates, while the distributed port-Hamiltonian representation preserves the compositional structure of the physical system.

Existing GP-dPHS formulations typically employ squared-exponential (RBF) kernels to learn the Hamiltonian or its associated dynamics [7]. Although such kernels provide flexible general-purpose priors, their stationary, distance-based similarity structure can be restrictive in spatial modeling problems whose dependence patterns vary across the domain [8].

This limitation is particularly relevant for spatially heterogeneous continuum systems, which are ubiquitous in modern engineering and biological applications. For instance, soft robotic manipulators may employ periodically spaced compliant sections to promote prescribed bending modes. Additionally, piecewise stiffness profiles naturally emerge in multi-material composite structures, while C2C^{2}-smooth profiles provide an idealized representation of smoothly graded materials [9] and heterogeneous biological tissues [10]. In such systems, spatial locations can exhibit fundamentally different or recurring constitutive behavior despite belonging to the same physical domain. Consequently, an effective learning model should capture these spatial relationships rather than relying solely on geometric proximity to determine similarity.

The objective of this paper is to improve GP-dPHS modeling of spatially heterogeneous systems by incorporating available structural knowledge into the covariance design. In particular, we consider both known physical invariances and coarse information about spatial dependence. To illustrate the limitations of standard kernel choices, we consider a one-dimensional string with spatially varying stiffness, constant damping, and localized motor forcing. While a stationary squared-exponential kernel provides nearly exact reconstruction for spatially uniform stiffness, its performance deteriorates substantially for heterogeneous profiles. In contrast, incorporating spatial priors aligned with the qualitative stiffness structure substantially improves reconstruction performance.

Contribution: This paper proposes a systematic, modular framework for incorporating known physical invariances and qualitative spatial knowledge into GP-dPHS kernel design. The framework removes irrelevant state coordinates from individual effort models and decouples the remaining state

1^{1} is with the Department of Computer Science, Vanderbilt University, Nashville, TN 37212, USA tianyi.yang@Vanderbilt.edu

2^{2} is with the Institute for Measurement, Control and Microtechnology, Ulm University, 89081 Ulm, Germany thomas.beckers@uni-ulm.de and spatial dependencies through a tensor-product covariance. This separation provides a systematic interface for selecting spatial kernels according to coarse structural information, such as periodicity, finite smoothness, or transitions between distinct spatial regimes, without requiring an analytical description of the underlying heterogeneous profile. In this way, prior knowledge is encoded directly in the covariance while preserving the underlying port-Hamiltonian structure. The approach is demonstrated on a nonlinear string with heterogeneous stiffness, where profile-matched spatial kernels substantially improve force-field and trajectory reconstruction over a stationary RBF baseline.

The remainder of this paper is organized as follows. Section II introduces the GP-dPHS framework and learning problem. Section III presents the proposed structure-aware kernel design, and Section IV provides its numerical evaluation on a nonlinear string system.