Manuscript Offprint
arXiv:2610.22575Structure-Aware Spatial Kernels for Gaussian Process Distributed Port-Hamiltonian Systems
Tianyi Yang and Thomas Beckers
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 -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
is with the Department of Computer Science, Vanderbilt University, Nashville, TN 37212, USA tianyi.yang@Vanderbilt.edu
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.
A. Distributed Port-Hamiltonian Systems
Distributed Port-Hamiltonian systems (dPHS) provide a systematic framework for representing physical systems governed by partial differential equations. In contrast to finite-dimensional Port-Hamiltonian systems, the interconnection, dissipation, and input operators can contain spatial differential operators. The dynamics are characterized by a Hamiltonian functional representing the total energy of the distributed system.
Let denote a compact spatial domain, and let denote the state at time and position . For each fixed , the distributed state belongs to a suitable space of vector-valued functions on . The Hamiltonian functional is defined as
where denotes the local Hamiltonian density. The corresponding variational derivative is denoted by . Following the general dPHS formulation, the dynamics can be written as
with output defined by . Here, is a skew-adjoint differential operator describing the power-conserving interconnection structure, with its boundary terms accounting for boundary power exchange. The dissipation operator is self-adjoint and positive semidefinite on its specified domain, while describes coupling to the external input . The operator domains and boundary conditions are chosen consistently with the associated energy balance.
The Port-Hamiltonian representation separates the physical interconnection structure from the Hamiltonian. In particular, J and R determine how energy is exchanged and dissipated, whereas H characterizes the constitutive behavior of the system. This separation is particularly useful for learning physical systems since complicated and potentially unknown nonlinearities can be represented through the Hamiltonian while retaining the known physical structure of the PDE. A more detailed introduction can be found in [11].
B. Gaussian Process Distributed Port-Hamiltonian Systems
For many physical PDE systems, the structure of the differential operators in (2) can be derived from first principles, whereas the Hamiltonian functional is only partially known. This situation typically arises in highly nonlinear systems for which structural knowledge is available, but the exact governing equations are difficult to obtain. An example is soft robotic systems, where complex and hard-to-characterize material behavior can give rise to unknown nonlinear dynamics. Gaussian Process distributed Port-Hamiltonian systems (GP-dPHS) address this problem by learning the unknown Hamiltonian from data while preserving the dPHS structure. We provide a brief introduction here, and more details can be found in [7].
Consider observations of the distributed system at temporal instants and spatial locations ,
The observations can first be used to estimate the state derivatives and, if necessary, to obtain a denser spatial representation of the state. This results in an augmented training dataset containing states and their corresponding time derivatives, , where denotes the spatially stacked states and their estimated temporal derivatives.
The central idea of GP-dPHS is to place a Gaussian Process prior on the unknown Hamiltonian. Since Gaussian Processes are closed under linear transformations [12], the differential operator defining the dPHS dynamics can be applied directly to the GP. Consequently, the dynamics in (2) admit the probabilistic representation
Here, is a PHS-constrained covariance function, and the operators may depend on a finite set of unknown physical parameters in the general GP-dPHS formulation. In the present study, the physical operators and their parameters are treated as known, as specified in Assumption 1.
Vectors and vector-valued functions are denoted with bold characters. Matrices are described with capital letters. is the -dimensional identity matrix and the zero matrix. The expression denotes the -th column of . For a positive definite matrix , the associated squared norm is . denotes the set of positive real numbers, while is the set of non-negative real numbers. denotes the class of times continuously differentiable functions.
Starting from a squared-exponential covariance function for the Hamiltonian
(5) the PHS-constrained covariance function is obtained by applying the Port-Hamiltonian operators to the covariance of the Hamiltonian (5), resulting in
Thus, the physical structure is incorporated directly into the covariance function rather than imposed after learning. The potentially unknown kernel hyperparameters and can be optimized by minimizing the negative log marginal likelihood.
After conditioning on the observations , the learned dynamics can equivalently be written in distributed Port-Hamiltonian form as
where is endowed with the GP posterior distribution. Hence, the GP-dPHS does not represent only a single learned vector field, but a distribution over distributed Port-Hamiltonian models. An important consequence of this construction is that a sample from the GP posterior is a deterministic Hamiltonian functional. Substituting such a sample into (7) therefore yields a dPHS with the prescribed interconnection and dissipation structure. As a result, the sampled models retain the physical energy structure of the underlying dPHS while the GP posterior provides a quantitative description of the remaining model uncertainty.
C. Problem Setting
We consider the problem of learning partially unknown constitutive relations of a spatially heterogeneous PDE system whose dynamics admit the distributed Port-Hamiltonian representation (2) via GP-dPHS. Spatial heterogeneity may arise, for example, in soft robotic manipulators with geometric variations or composed of multiple materials with different stiffnesses. Throughout the paper, we assume that the PDE system (2), with prescribed initial and boundary conditions, has a unique solution on the time interval considered, with sufficient temporal and spatial regularity for the derivatives used in the formulation. The Hamiltonian functional H is assumed to be unknown due to, for example, nonlinear stress–strain relations. We also assume H to be infinitely Fréchet differentiable with respect to the state on an appropriate state-function space. The objective is to obtain predictions such that the learned model
closely approximates the actual system dynamics in (2). Building on GP-dPHS in [7], we especially focus on using coarse prior information about spatially varying constitutive properties to construct structure-aware covariance functions.
Remark 1: In particular, we do not assume that an analytical description of the spatially varying constitutive law with respect to z is available. Instead, we have access to coarse structural information about its spatial dependence. For example, this information may indicate that the constitutive properties vary periodically across the spatial domain, possess finite regularity, or transition between distinct spatial regimes as in a soft robot with varying geometry or materials.
D. Assumptions
To formalize the learning problem, we introduce the following assumptions.
Assumption 1: The differential operators , , and defining the dPHS structure (2) are known.
Assumption 2: The state of the PDE system (2) can be observed at temporal instants and spatial locations , yielding the set of observations .
Assumption 3: The true Hamiltonian density is separable with respect to the scalar state components, taking the form . Consequently, each effort component depends only on and and is independent of for .
Assumption 4: Coarse prior information about the spatial dependence of the unknown effort components is available.
Assumption 1 is only mildly restrictive since J and G are typically matrix differential operators whose structure is determined by prior knowledge of the PDE system to be learned. However, this assumption can be further relaxed by treating unknown physical parameters as hyperparameters during the learning process, see [7] for details. Assumption 2 ensures that data can be collected from the PDE system and therefore requires observability of the state. If the state cannot be directly observed, an appropriate observer must be employed. Assumption 3 specifies the state invariances used in the covariance design, while Assumption 4 provides qualitative information for selecting the spatial covariance.
Remark 2: Assumption 3 can be weakened by allowing separability between groups of state variables rather than between individual scalar components. Let be a partition of the state indices and consider a Hamiltonian density of the form . For , the effort component may depend on all state variables in but remains independent of variables outside that group. For example, a kinetic–potential decomposition preserves independence between momentum and configuration variables without requiring separability within either group. However, independence between groups does not guarantee integrability among independently learned effort components within the same group and additional compatibility constraints are required to ensure that.
III. STRUCTURED KERNEL DESIGN FOR GP-DPHS
Before we present the proposed structure-aware kernel in Subsection III-B, we first show the trivial extension of the GP-dPHS model and the resulting deficits.
A. Trivial Extension
For a system with heterogeneous spatial structure, a straightforward modeling approach is to extend the input space of the GP-dPHS kernel (6) to include the spatial variable z associated with that structure. Thus, the input is extended to and used in the squared-exponential Hamiltonian covariance in (5) as the augmented input space. This covariance is assigned directly to each independently trained effort model. By assigning a separate lengthscale to each coordinate, the trivial extended PHS kernel is given by
The coordinate-specific lengthscales control covariance decay along individual input dimensions and provide the automatic relevance determination (ARD) mechanism [13]. Large lengthscales reduce sensitivity to variation in the corresponding coordinates, allowing the model to learn approximate input irrelevance.
This trivial extension would learn each effort component independently using the complete input vector , without explicitly imposing known invariances or distinguishing the roles of state and spatial variables. In addition, despite the ARD coordinate-dependent scaling, the covariance remains stationary because it depends only on the input difference , see [14, Sec. 2.1]. Consequently, the same distance-based similarity rule is applied throughout the input domain. Even though this kernel is universal on compact input domains, meaning that continuous effort functions can be approximated arbitrarily closely by functions from its reproducing kernel Hilbert space (RKHS) [15], the approximation property does not ensure efficient learning from limited data. A generic ARD-RBF covariance does not directly encode known invariances, recurring structure, or localized transitions between regimes. For example, observations separated by one period along a spatial coordinate may represent equivalent physical conditions, while their RBF covariance decreases with separation. In conclusion, the trivial extension in (9) must therefore infer these relationships from observations, which can be inefficient, especially when training data are sparse or unevenly distributed.
B. Structure-Aware Kernel
The trivial extension in the previous subsection treats all state and spatial coordinates uniformly, although prior knowledge may already specify which state variables are relevant to a particular effort component and provide qualitative information about its spatial dependence. Under Assumptions 1–4, we exploit these two sources of prior information directly in the covariance design. In particular, for the i-th effort component , Assumption 3 implies that depends only on the associated state component and the spatial coordinate . We therefore remove the irrelevant state coordinates , , from the GP input and separate the remaining state and spatial dependencies through the product kernel
where models similarity with respect to the relevant state component and models similarity with respect to the spatial coordinate. The latter can be chosen according to the coarse structural information available from Assumption 4, without requiring an analytical description of the spatially varying constitutive law.
Proposition 1: Let and be positive semidefinite kernels on and , respectively, with corresponding reproducing kernel Hilbert spaces and . Then the covariance function in (10) is a positive semidefinite kernel on and its associated RKHS is the Hilbert tensor product
In particular, is the completion of finite sums of the form
Consequently, the product covariance does not restrict the learned effort to a single separable function of the form .
Proof: Consider arbitrary points . Let and denote the Gram matrices generated by and , respectively. Since both kernels are positive semidefinite, and . The Gram matrix associated with (10) is given by
where denotes the Hadamard product. By the Schur product theorem, , and hence is a valid positive semidefinite kernel.
For product kernels, the corresponding RKHS is the Hilbert tensor product of the RKHSs associated with the individual factors,
see [16, Theorem 3.4] for details. By definition, this space is obtained as the completion of finite linear combinations of elementary tensor-product functions , which gives (12). Thus, although the covariance itself factorizes into a state and a spatial kernel, functions represented by its RKHS may contain general finite sums of interactions between state and spatial coordinates and are not restricted to a single separable product.
Remark 3 (Architectural modularity): An ARD-RBF kernel on the reduced input already admits an algebraic factorization into an RBF kernel on and an RBF kernel on , up to the overall output scale. Hence, writing the covariance explicitly in the product form (10) does not by itself enlarge the model class when both factors are RBF kernels. Its benefit is instead architectural modularity. The state covariance and spatial covariance become independent design components, so that can be replaced by a kernel reflecting known heterogeneous structure without modifying the state-dependent part of the model. This separation therefore provides a systematic interface for incorporating coarse spatial prior knowledge while leaving the analytical form of the unknown constitutive relation to be learned from data.
C. Spatial Kernel Choices
A compatible spatial kernel can be selected using qualitative structural information inferred from preliminary observations, without requiring a detailed reconstruction of the underlying spatial profile. For example, a periodic kernel can encode recurring spatial patterns, a Matérn-5/2 kernel can represent finitely smooth spatial variation, and a changepoint kernel can blend distinct covariance models across a transition between spatial regimes. Parameters such as the fundamental period, changepoint location, and transition scale may be initialized from coarse estimates and subsequently optimized during GP training. The string benchmark in Section IV applies these kernel choices to spatially varying stiffness. Furthermore, we observe that the learned changepoint parameters and predictive performance in that benchmark remain insensitive to initialization errors.
IV. NUMERICAL EVALUATION
We evaluate the proposed structure-aware kernel design using a nonlinear string with heterogeneous stiffness. We first describe the physical system and data-generation procedure, followed by model training, trajectory reconstruction, and the numerical results.
A. String Model
We consider a one-dimensional string of length , with transverse displacement at position and time . Under the unit-density assumption, the momentum density coincides with the transverse velocity, , while the strain is . With the state ordering , we consider the ground-truth Hamiltonian functional given by
where is the spatially varying stiffness and the quartic term introduces nonlinear strain stiffening. The analytical Hamiltonian generating reference data is unknown to the GP models, which learn its effort components independently. The corresponding effort functions are and . Thus, the dynamics take the distributed port-Hamiltonian form
where is the internal damping coefficient. The external input is a localized periodic motor pulse applied near the center of the string with . The initial conditions are and

Fig. 1. Representative spatial stiffness profiles used in this study: periodic, bumps, and semi-piecewise stiffness (top to bottom, respectively).
The boundary conditions are given by the homogeneous Dirichlet conditions for all , while q is left unconstrained at the boundary.
Motivated by the applications discussed in Section I, we consider three heterogeneous stiffness profiles: periodic, bumps, and semi-piecewise. Figure 1 illustrates the three heterogeneous profiles. The transition in the semi-piecewise profile is smooth rather than strictly discontinuous, so that the spatial derivatives remain well-defined across the interface for finite-difference simulation and trajectory reconstruction. A constant-stiffness experiment provides a spatially homogeneous reference case.
B. Simulation and Data Generation
For the generation of training data, the dynamics (16) are discretized on a uniform spatial grid with points. Let denote the discrete spatial derivative operator on the uniform grid, with . At interior grid points, it uses the second-order centered-difference approximation
At the endpoints, uses first-order one-sided differences and . The endpoint momentum values are maintained at zero throughout integration, while no boundary values are prescribed for the strain. The resulting system of ordinary differential equations is integrated using the adaptive Runge–Kutta method RK45, and the numerical solution is recorded at uniformly spaced output times s for a simulation time of s.
Each training sample consists of the augmented input paired with the corresponding values of and . From the complete space–time dataset, we select 2% of the samples for training. Spatially stratified sampling allocates 25%, 50%, and 25% of the training budget to the left-end region , interior region ,
This setup isolates the effect of kernel design from errors associated with reconstructing effort targets from trajectory observations. In practice, the values of and would be reconstructed from measurements of and as described in [7].
and right-end region , respectively. Within each stratum, samples are selected uniformly at random without replacement. For each heterogeneous stiffness profile, the same fraction of the available space-time samples is selected.
C. Experimental Design and Model Configurations
The experiments distinguish two contributions of the proposed methodology: imposing known state invariances and incorporating qualitative information about the spatial stiffness profile. We use two independently trained scalar-output GP models, and , for the constitutive and momentum efforts, respectively. For each stiffness profile and sampling seed, all three configurations use the same training observations.
The Hamiltonian in (IV-A) implies that is independent of momentum and is independent of strain. In the main comparisons, only the constitutive-effort model is modified. The momentum-effort model retains the baseline formulation throughout, providing a controlled comparison and reflecting the comparatively simple relation . We consider the following settings:
Baseline: Both and use the complete input and an ARD-RBF covariance. This configuration does not explicitly impose either state invariance and follows the trivial extension as presented in Section III-A.
SD-RBF: The constitutive-effort model uses the reduced input and the product covariance . Removing imposes the known momentum independence of , while retaining its dependence on strain and spatial position. As discussed in Section III-B, this product is equivalent to an ARD-RBF covariance on . The comparison with the baseline therefore isolates the effect of excluding the irrelevant momentum input.
SD-matched (proposed method): The effort model retains the input and the RBF strain factor, but uses the covariance . Comparison with SD-RBF therefore isolates the additional effect of selecting the spatial covariance according to the qualitative stiffness structure. SD-matched denotes SD-Per. with a periodic spatial kernel for periodic stiffness, SD-Mat. with a Matérn-5/2 spatial kernel for the -bump profile, and SD-CP with a changepoint spatial kernel for the semi-piecewise profile.
The changepoint kernel blends two regional covariance functions using a smooth gate , where and . The kernels and are separately parameterized RBF covariances for the two spatial regimes. The trainable parameters and specify the transition location and scale in the standardized spatial coordinate. This construction represents a smooth transition between distinct covariance structures without prescribing the stiffness function itself.
Remark 4: To satisfy Assumption 3, the momentum-effort model should depend only on , excluding . However, our numerical experiments indicate that removing from has no noticeable effect on performance.
D. Training and Reconstruction
Both effort models are implemented as exact GPs and trained in full-batch mode by minimizing the negative exact marginal log likelihood with Adam. Kernel hyperparameters use the default GPyTorch initialization unless otherwise specified. Training uses double precision and a maximum of 1000 iterations. Early stopping is applied, and the checkpoint attaining the lowest training loss is restored. Table I lists the learning rate , early-stopping patience , and minimum-improvement threshold . The settings are shared across kernel architectures within each stiffness profile. The constitutive-effort models for the -bump and semi-piecewise profiles use smaller learning rates, longer patience, and smaller improvement thresholds to accommodate their convergence behavior. The momentum-effort model uses the same settings across all profiles.
During evaluation, the trained GPs predict the effort functions at the current integrated state. The baseline models use and . Structural decoupling uses and . After transformation back into physical units, the predicted efforts are substituted into the discretized port-Hamiltonian dynamics at interior grid points
Here, is the discrete spatial derivative operator defined in Section IV-B, using the same interior and endpoint stencils as the reference simulation. The reconstruction enforces . The resulting system of ODEs is integrated using the same RK45 method as the reference simulation, producing and . Each simulation uses the same initial conditions, boundary conditions, external forcing, and evaluation grid as the reference trajectory from which training observations are sampled. This evaluates trajectory reconstruction from sparse observations of that trajectory rather than generalization to new initial conditions or forcing. For both reference and predicted trajectories, displacement is reconstructed from strain by numerical integration over the spatial domain .
E. Results
Table II summarizes the numerical results. The relative errors , , and quantify the overall reconstruction accuracy for strain, displacement, and physical energy, respectively, over the complete trajectory, while the curl RMSE measures violations of the mixed-partial integrability condition between the learned effort functions. The effort
TABLE I OPTIMIZATION SETTINGS FOR THE EFFORT MODELS, SHARED ACROSS KERNEL ARCHITECTURES.
| Model and profile | P | ||
|---|---|---|---|
| , all profiles | 15 | ||
| , periodic and constant | 15 | ||
| bumps | 50 | ||
| , semi-piecewise | 50 |
RMSE evaluates the local accuracy of the learned constitutive effort , whereas the force RMSE measures the error after applying the spatial derivative , which directly affects the reconstructed dynamics. As an additional baseline, we consider a constant-stiffness case representing a spatially homogeneous system. As expected, the GP-dPHS model with standard RBF kernel performs well in this setting; however, its performance deteriorates substantially for heterogeneous profiles.
Comparing RBF with SD-RBF examines the effect of removing from the input to while retaining the RBF kernel family. SD-RBF reduces strain, displacement, and energy errors for all three heterogeneous profiles, while also improving effort and force RMSE. The displacement error decreases by approximately , , and for the periodic, -bump, and semi-piecewise profiles, respectively. The trajectory reconstruction improvements are therefore more pronounced for the periodic and -bump cases, with smaller gains for the semi-piecewise profile. Despite these improvements, substantial reconstruction errors remain, indicating that removing the irrelevant input alone does not adequately capture the heterogeneous structure.
Structural decoupling also reduces the curl RMSE by one to two orders of magnitude for the stiffness profiles considered in this work. Since is independent of , the cross-derivative vanishes identically. The remaining term is not constrained to vanish, so these configurations reduce the integrability residual without enforcing exact integrability. Within each profile, SD-RBF and SD-matched have the same reported curl RMSE because they share the momentum-effort model and both exclude from the constitutive-effort model.
Using prior information on the stiffness profile as we propose with the structure-aware kernel (10) produces substantially greater improvements. SD-Per., SD-Mat., and SD-CP achieve displacement errors of , , and , respectively. These values correspond to reductions of approximately , , and relative to the baseline, and , , and relative to SD-RBF. The matched models also attain the lowest strain and energy errors and the lowest effort and force RMSE among the tested configurations for each heterogeneous profile. Their additional reconstruction improvements occur without a further reduction in curl RMSE, highlighting the contribution of the spatial covariance beyond the imposed momentum invariance. Examples of the predicted trajectories are shown in Figure 2, where our structure-aware design (SD-matched) most closely reproduces the actual trajectory.
These experiments demonstrate the benefit of our approach: exploiting known input invariances provides consistent improvements over the baseline, while incorporating profile-matched spatial priors yields further substantial gains. In particular, the best performance is achieved by combining structural decoupling with a spatial covariance adapted to the stiffness profile.
V. CONCLUSION
This work introduced a structure-aware kernel design framework for GP-dPHS of spatially heterogeneous systems, combining known input invariances with a modular separation of state and spatial dependencies. This enables coarse knowledge of spatial heterogeneity to be incorporated directly into the covariance without requiring an analytical description of the underlying profile. Numerical experiments demonstrate that structural decoupling consistently improves upon the standard baseline, while substantially larger gains are achieved when the spatial covariance is matched to the qualitative stiffness structure. These results highlight structure-aware kernel design as an effective mechanism for exploiting spatial prior knowledge in GP-dPHS, with extensions to higher-dimensional and experimental systems providing promising directions for future work.
REFERENCES
[1] W. Tang and P. Daoutidis, “Data-driven control: Overview and perspectives,” in 2022 American Control Conference (ACC), 2022, pp. 1048–1064.
[2] M. Raissi, P. Perdikaris, and G. Karniadakis, “Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations,” Journal of Computational Physics, vol. 378, pp. 686–707, 2019. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0021999118307125
TABLE II AVERAGE NUMERICAL METRICS FOR THE CONSIDERED STIFFNESS PROFILES AND KERNEL CONFIGURATIONS. SD-RBF, SD-PER., SD-MAT., AND SD-CP DENOTE STRUCTURAL DECOUPLING WITH RBF, PERIODIC, MATÉRN, AND CHANGEPOINT SPATIAL KERNELS, RESPECTIVELY.
| Stiffness | Kernel | Curl RMSE | Eff. RMSE | Force RMSE | |||
|---|---|---|---|---|---|---|---|
| Constant | RBF | ||||||
| Periodic | RBF | 5.60 | 1.18 | 1.76 | 8.82 | ||
| Periodic | SD-RBF | 1.73 | 1.50 | 6.30 | |||
| Periodic | SD-Per. | ||||||
| bumps | RBF | 5.47 | 1.18 | 1.45 | 6.97 | ||
| bumps | SD-RBF | 1.27 | 5.10 | 1.23 | 5.97 | ||
| bumps | SD-Mat. | 1.45 | |||||
| Semi-piecewise | RBF | 2.38 | 1.01 | 1.17 | 5.31 | ||
| Semi-piecewise | SD-RBF | 2.24 | 1.01 | 4.04 | |||
| Semi-piecewise | SD-CP | 1.06 |

Numerical solution Baseline SD-RBF SD-matched
Fig. 2. Average reconstructed displacement trajectories for the periodic, -bump, and semi-piecewise stiffness profiles. Columns correspond to rollout steps 0, 50, and 100. Curves compare the numerical reference, stationary RBF baseline, SD-RBF, and profile-matched structural-decoupling model. The matched models use periodic, Matérn, and changepoint spatial kernels for the three profiles, respectively.
[3] A. van der Schaft and D. Jeltsema, “Port-hamiltonian systems theory: An introductory overview,” Foundations and Trends in Systems and Control, vol. 1, no. 2-3, pp. 173–378, 06 2014. [Online]. Available: https://doi.org/10.1561/2600000002
[4] S. A. Desai, M. Mattheakis, D. Sondak, P. Protopapas, and S. J. Roberts, “Port-hamiltonian neural networks for learning explicit time-dependent dynamical systems,” Phys. Rev. E, vol. 104, p. 034312, Sep 2021. [Online]. Available: https://link.aps.org/doi/10.1103/PhysRevE.104.034312
[5] Y. Geng, L. Ju, B. Kramer, and Z. Wang, “Data-driven reduced-order models for port-hamiltonian systems with operator inference,” Computer Methods in Applied Mechanics and Engineering, vol. 442, p. 118042, 2025. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0045782525003147
[6] T. Beckers, J. Seidman, P. Perdikaris, and G. J. Pappas, “Gaussian process port-hamiltonian systems: Bayesian learning with physics prior,” in 2022 IEEE 61st Conference on Decision and Control (CDC), 2022, pp. 1447–1453.
[7] K. Tan, P. Li, and T. Beckers, “Physics-constrained learning of PDE systems with uncertainty quantified port-Hamiltonian models,” in Proceedings of the 6th Annual Learning for Dynamics & Control Conference, ser. Proceedings of Machine Learning Research, A. Abate, M. Cannon, K. Margellos, and A. Papachristodoulou, Eds., vol. 242. PMLR, 15–17 Jul 2024, pp. 1753–1764. [Online]. Available: https://proceedings.mlr.press/v242/tan24a.html
[8] J.-F. Ton, S. Flaxman, D. Sejdinovic, and S. Bhatt, “Spatial mapping with gaussian processes and nonstationary fourier features,” Spatial Statistics, vol. 28, pp. 59–78, 2018, one world, one health. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S2211675317302890
[9] S.-H. Chi and Y.-L. Chung, “Mechanical behavior of functionally graded material plates under transverse load—part i: Analysis,” International Journal of Solids and Structures, vol. 43, no. 13, pp. 3657–3674, 2006. [Online]. Available: https://www.sciencedirect.com
com/science/article/pii/S0020768305002052
[10] F. Serwane, A. Mongera, P. Rowghanian, D. A. Kealhofer, A. A. Lucio, Z. M. Hockenbery, and O. Campàs, “In vivo quantification of spatially varying mechanical properties in developing tissues,” Nature Methods, vol. 14, no. 2, pp. 181–186, Feb 2017. [Online]. Available: https://doi.org/10.1038/nmeth.4101
[11] R. Rashad, F. Califano, A. J. van der Schaft, and S. Stramigioli, "Twenty years of distributed port-hamiltonian systems: a literature review," IMA Journal of Mathematical Control and Information, vol. 37, no. 4, pp. 1400–1422, 2020.
[12] C. Jidling, N. Wahlström, A. Wills, and T. B. Schön, “Linearly constrained Gaussian processes,” Advances in neural information processing systems, vol. 30, 2017.
[13] C. Williams and C. Rasmussen, “Gaussian processes for regression,” in Advances in Neural Information Processing Systems, D. Touretzky, M. Mozer, and M. Hasselmo, Eds., vol. 8. MIT Press, 1995. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/1995/file/7cce53cf90577442771720a370c3c723-Paper.pdf
[14] J. Snoek, K. Swersky, R. Zemel, and R. Adams, “Input warping for bayesian optimization of non-stationary functions,” in Proceedings of the 31st International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, vol. 32, no. 2. Beijing, China: PMLR, 22–24 Jun 2014, pp. 1674–1682. [Online]. Available: https://proceedings.mlr.press/v32/snoek14.html
[15] C. A. Micchelli, Y. Xu, and H. Zhang, “Universal kernels,” Journal of Machine Learning Research, vol. 7, no. 95, pp. 2651–2667, 2006. [Online]. Available: http://jmlr.org/papers/v7/micchelli06a.html
[16] K. Albrecht, J. Entzian, and A. Iske, “Product kernels are efficient and flexible tools for high-dimensional scattered data interpolation,” Adv. Comput. Math., vol. 51, no. 2, Mar. 2025. [Online]. Available: https://doi.org/10.1007/s10444-025-10226-y