arXiv:2610.33562eess.SYOct 2026

Manuscript Offprint

arXiv:2610.33562

Hybrid-time PINNs: Discontinuity-Aware Physics-Informed Neural Networks for Learning Hybrid Dynamical Systems

Shivanshu Tripathi, Maziar Raissi

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

Shivanshu Tripathi, and Maziar Raissi

Abstract—Hybrid dynamical systems flow continuously but jump at discrete events. Physics-informed neural networks (PINNs) fit data while enforcing known dynamics, but a single network is smooth in time and cannot model these jumps. We show that the more closely a PINN follows a jump, the larger its physics loss must be. We propose hybrid-time PINNs (HT-PINNs), which assign one network to each flow interval of the hybrid time domain and train the networks jointly with the jump times and the unknown parameters. The number of jumps and the sequence of modes are found by enumeration. HT-PINNs recover the number of jumps and the restitution coefficient of a bouncing ball. In a MuJoCo simulation of robotic disassembly, where a robot pulls a press-fitted pin out of a housing through a spring, HT-PINNs find the number of jumps and the sequence of modes, and estimate the static and kinetic friction coefficients with small errors of 0.1% and 1.7%.

I. INTRODUCTION

Hybrid dynamical systems combine continuous flows with instantaneous jumps [1]. They arise in robotics, where legged robots make and break contact with the ground [2]; in biology, where fireflies synchronize their flashes [3]; and in power systems, where switching events change the network [4]. Between jumps, the state follows a differential equation; when it reaches a guard, a jump resets it and may change the governing differential equation (Fig. 1).

Models of hybrid systems are rarely known exactly: the modes, guards, and resets often follow from physics, but parameters such as friction and restitution coefficients are uncertain and depend on the environment. In robotic disassembly [5], for example, the friction between press-fitted parts changes with wear and corrosion. A model must therefore combine the known physics with the measurements and reproduce the jumps, whose number, times, and mode sequence are unknown.

Our objective is to model such systems with HT-PINNs. A classical PINN [6] represents a trajectory by a network trained to fit the measurements while satisfying the known differential equations, which yields the unmeasured states and the unknown parameters. A PINN, however, is smooth in time and cannot represent a jump. An HT-PINN is instead defined on a hybrid time domain, which indexes the trajectory by the time and the number of jumps. It uses one network per interval between consecutive jumps, trains the networks jointly with the jump times and the parameters, and selects the number of jumps and the mode sequence by enumeration.

This material is based upon work supported in part by award NSF-CMMI-2618914. S. Tripathi is with the Department of Electrical and Computer Engineering, and M. Raissi is with the Department of Mathematics, University of California, Riverside, Riverside, CA 92521, USA. Emails: strip008@ucr.edu and maziarr@ucr.edu.

Figure

Fig. 1. Solution of H flows within a mode and switches modes at guards.

Related work. Methods for learning models of dynamical systems are either data-driven, learning the entire model from data, or physics-informed, combining the data with known physics. Among data-driven methods, hybrid system identification fits switched and piecewise affine models in discrete time [7], [8] or learns the equations of each mode by sparse regression [9], neural event functions [21] learn state-triggered events of neural ordinary differential equations, and neural hybrid automata [10] learn the flows of an unknown number of modes and the stochastic jumps between them. Since these methods do not impose the known physics, their models need not obey it. On the other hand, PINNs [6], [11] impose the known physics and have been used as models for control [12], but cannot represent a jump [13]. Extensions of PINNs train separate networks on fixed subdomains while keeping the solution continuous across their interfaces [14], [15], or capture shocks in partial differential equations [16]. In the recent work [17], the authors align a PINN with the fault and clearing events of a power system and chain the state across these events. In [18], the authors use PINN residuals to locate the change points of the parameters of an ordinary differential equation. Differently from these works, we consider jumps that are triggered by the state through guards and may reset it. For hybrid systems whose flow and jump maps are known up to parameters, the estimator in [19] assumes that the parameters enter linearly, the state is measured, and the jumps are detected. In contrast, our work addresses a more general setting, in which the parameters may enter nonlinearly, only an output is sampled, and neither the number nor the times of the jumps are known. However, we do restrict our analysis to hybrid systems whose modes, guards, and resets are known up to parameters.

Contributions. The main contributions of this letter are as follows. First, we design HT-PINNs to model a hybrid system known up to parameters from measurements. This modeling problem is not standard, since the number and times of the jumps and the sequence of modes are unknown. Second, we show that a single smooth network cannot follow a jump closely without a large physics loss. Third and finally, we illustrate the effectiveness of HT-PINNs on a bouncing ball.

and on a MuJoCo [20] simulation of pin extraction, where they recover the stick, slip, and release events within 1.1 ms and the friction coefficients with errors of 0.1% and 1.7%.

Notation. Let R≥0\mathbb{R}_{\geq 0} and N={0,1,…}\mathbb{N} = \{0, 1, \ldots\} denote the nonnegative reals and integers, respectively. The Euclidean norm and the cardinality of a set S\mathcal{S} are denoted by ∣⋅∣|\cdot| and ∣S∣|\mathcal{S}|, respectively, and [a]+=max⁡{a,0}[a]_{+} = \max\{a, 0\}. For α∈Rn\alpha \in \mathbb{R}^n, softmax( α\alpha) denotes the vector with entries eαj/∑ieαie^{\alpha_j} / \sum_i e^{\alpha_i}, and dom ϕ\phi denotes the domain of a function ϕ\phi.

II. HYBRID SYSTEMS AND PROBLEM FORMULATION

We model a hybrid system as:

H:{x˙∈F(x),x∈C,x+∈G(x),x∈D,y=h(x),(1)\mathcal{H}:\begin{cases}\dot{x}\in F(x),&x\in C,\\ x^{+}\in G(x),&x\in D,\end{cases}\qquad y=h(x), \tag{1}

where xx is the state and yy is the output. While xx is in the flow set CC, it changes continuously according to the flow map FF. When xx is in the jump set DD, it can jump instantly to a new value x+x^{+} given by the jump map GG. The output map hh gives the measured output.

The state is x=(ξ,σ)x = (\xi, \sigma), where ξ∈Rnξ\xi \in \mathbb{R}^{n_\xi} contains the physical variables, such as positions and velocities, and the mode σ\sigma takes values in a finite set Σ⊂N\Sigma \subset \mathbb{N} and changes only at jumps. Each mode σ\sigma has guard functions γσ,i(ξ),i∈I(σ)\gamma_{\sigma,i}(\xi), i \in I(\sigma), which decide when the state flows and when it jumps:

C={(ξ,σ):γσ,i(ξ)≥0foralli∈I(σ)},D={(ξ,σ):γσ,i(ξ)≤0forsomei∈I(σ)}.(2)\begin{aligned}&C=\{(\xi,\sigma):\gamma_{\sigma,i}(\xi)\geq0for all i\in I(\sigma)\},\\&D=\{(\xi,\sigma):\gamma_{\sigma,i}(\xi)\leq0for some i\in I(\sigma)\}.\\ \end{aligned} \tag{2}

In mode σ\sigma, the physical variables follow the vector field fσf_{\sigma}. A jump triggered by guard ii updates the physical variables with the reset map Rσ,iR_{\sigma,i} and switches the mode to ν(σ,i)∈Σ\nu(\sigma,i) \in \Sigma. The flow and jump maps are thus

F(x)={(fσ(ξ),0)},G(x)={(Rσ,i(ξ),ν(σ,i)):i∈I(σ),γσ,i(ξ)≤0}.\begin{align*}F(x)&=\{(f_{\sigma}(\xi),0)\},\\G(x)&=\{(R_{\sigma,i}(\xi),\nu(\sigma,i)):i\in I(\sigma),\gamma_{\sigma,i}(\xi)\leq0\}.\end{align*}

(3)

Solution of H\mathcal{H}: A function ϕ=(ξ,σ)\phi = (\xi, \sigma) on domain ∪j=0J[τj,τj+1]×{j}⊂R≥0×N\cup_{j=0}^J [\tau_j, \tau_{j+1}] \times \{j\} \subset \mathbb{R}_{\geq 0} \times \mathbb{N}, with jump times 0=τ0≤⋯≤τJ+1=T0 = \tau_0 \leq \cdots \leq \tau_{J+1} = T, is a solution of H\mathcal{H} on [0,T][0, T] if (i) for each jj with τj<τj+1\tau_j < \tau_{j+1}, t↦ϕ(t,j)t \mapsto \phi(t, j) is continuously differentiable on [τj,τj+1][\tau_j, \tau_{j+1}], and ϕ(t,j)∈C\phi(t, j) \in C and ϕ˙(t,j)∈F(ϕ(t,j))\dot{\phi}(t, j) \in F(\phi(t, j)) for t∈(τj,τj+1)t \in (\tau_j, \tau_{j+1}); and (ii) for j=1,…,Jj = 1, \ldots, J, ϕ(τj,j−1)∈D\phi(\tau_j, j-1) \in D and ϕ(τj,j)∈G(ϕ(τj,j−1))\phi(\tau_j, j) \in G(\phi(\tau_j, j-1)). Jump jj is triggered by guard ii if γσ,i(ξ)≤0\gamma_{\sigma,i}(\xi) \leq 0 and ϕ(τj,j)=(Rσ,i(ξ),ν(σ,i))\phi(\tau_j, j) = (R_{\sigma,i}(\xi), \nu(\sigma, i)), where (ξ,σ)=ϕ(τj,j−1)(\xi, \sigma) = \phi(\tau_j, j-1).

Problem setting: We assume that the modes Σ\Sigma, guard indices I(σ)I(\sigma), transitions ν\nu, and output map hh are known, and y=h(ξ)y = h(\xi). The vector fields fσ(ξ;θ)f_{\sigma}(\xi; \theta), the guard functions γσ,i(ξ;θ)\gamma_{\sigma,i}(\xi; \theta), and the reset maps Rσ,i(ξ;θ)R_{\sigma,i}(\xi; \theta) are known up to a parameter θ∈Θ\theta \in \Theta, which gives a known family {Hθ}θ∈Θ\{\mathcal{H}_{\theta}\}_{\theta \in \Theta} of hybrid systems. The data come from a solution ϕ\phi of Hθ∗\mathcal{H}_{\theta^*} on [0,T][0, T], with finitely many jumps, and unknown θ∗∈Θ\theta^* \in \Theta, whose output is sampled at times 0≤t1<⋯<tK≤T0 \leq t_1 < \cdots < t_K \leq T:

yk=h(ξ(tk,jk))+ζk,k=1,…,K,(4)y_{k}=h\big(\xi(t_{k},j_{k})\big)+\zeta_{k},\qquad k=1,\ldots,K, \tag{4}

where jkj_k is the number of jumps of ϕ\phi up to time tkt_k and ζk\zeta_k is measurement noise. In our setting, we also do not measure the mode and the jump times.

Problem 1. Given the family {Hθ}θ∈Θ\{\mathcal{H}_\theta\}_{\theta \in \Theta} and the data {(tk,yk)}k=1K\{(t_k, y_k)\}_{k=1}^K, find a parameter θ∈Θ\theta \in \Theta and a solution ϕ^=(ξ^,σ^)\hat{\phi} = (\hat{\xi}, \hat{\sigma}) of Hθ\mathcal{H}_\theta on [0,T][0, T], represented by neural networks, whose output fits the data:

h(ξ^(tk,j^k))≈yk,k=1,…,K,(5)h\big(\hat{\xi}(t_{k},\hat{j}_{k})\big)\approx y_{k},\qquad k=1,\ldots,K, \tag{5}

where j^k\hat{j}_k is the number of jumps of ϕ^\hat{\phi} up to time tkt_k. The initial state ϕ^(0,0)\hat{\phi}(0,0), the number of jumps of ϕ^\hat{\phi} and the jump times are unknown and are found jointly with θ\theta.

Requiring ϕ^\hat{\phi} to be a solution of Hθ\mathcal{H}_{\theta} makes the neural network physics-informed as it must obey the known physics of the hybrid system, not just fit the data.

References (22)