Skip to Content
AppliedMathAppliedMath
  • Article
  • Open Access

4 November 2026

19 Pages

Dual Physics-Informed Neural Networks Based on Traveling- Wave Decomposition for Boundary Reflection Solutions of Wave Equations

and
College of International Business, Zhejiang Yuexiu University, Shaoxing 312069, China
*
Author to whom correspondence should be addressed.

Abstract

We propose a dual physics-informed neural network (Dual-PINN) for wave equations by incorporating the characteristic structure of the one-dimensional d’Alembert solution. Two neural branches are associated with the characteristic coordinates x − c t and x + c t to represent counter-propagating wave components, and their outputs are jointly constrained by the governing equation and auxiliary conditions. Homogeneous Dirichlet boundaries can be imposed exactly through a trial function. For one-dimensional problems, an approximation result shows that the dual-branch representation can approximate solutions of the form u ( x , t ) = F ( x − c t ) + G ( x + c t ) arbitrarily well under standard universal-approximation assumptions, without implying convergence of the non-convex training procedure. Numerical examples involving periodic propagation, boundary reflection, and a two-dimensional wave problem show that the proposed representation captures the tested wave dynamics effectively. The two-dimensional case is treated as an empirical extension, suggesting the potential of characteristic-informed neural representations for wave-equation modeling.

1. Introduction

Wave propagation is a fundamental process in acoustics, elastodynamics, electromagnetics, seismology, and many other areas of science and engineering. Accurate numerical prediction of propagating waves remains challenging because wave fields may exhibit oscillatory structures, reflection and refraction, interference between multiple components, and long-time phase accumulation. These difficulties become particularly pronounced in high-frequency, multidimensional, and heterogeneous-media problems. Conventional discretization-based methods, including finite-difference, finite-element, and spectral-type schemes, remain powerful tools for wave simulations. However, accurate long-time or high-frequency simulations often require sufficiently fine spatial and temporal resolutions to control dispersion and stability errors, which can substantially increase the computational cost, especially for multidimensional problems [1,2,3,4,5,6,7,8,9,10,11,12].
Physics-informed neural networks (PINNs) provide a mesh-free framework for solving forward and inverse problems of partial differential equations (PDEs) by incorporating the governing equations together with available initial, boundary, or observational data into the training objective [13,14]. Unlike purely data-driven surrogate models, PINNs can exploit physical constraints and therefore reduce their dependence on labeled solution data. Nevertheless, the approximation capability of a neural network does not necessarily translate into an easily trainable physics-informed model. Previous studies have shown that PINNs may suffer from imbalanced gradients among different loss components, poorly conditioned optimization landscapes, and disparate convergence behaviors associated with different physical constraints [15,16,17,18]. Adaptive activation functions [19,20] and related optimization strategies have therefore been developed to improve trainability and representation accuracy. Such difficulties are particularly relevant to wave equations, where oscillatory, propagating, and multiscale structures impose additional requirements on both neural representation and optimization.
A number of studies have improved PINNs for wave propagation from the perspectives of optimization, activation design, and constraint enforcement. Moseley et al. [9] applied PINNs to two-dimensional acoustic-wave propagation in homogeneous, layered, and geologically complex velocity models, demonstrating the feasibility of physics-informed learning for propagating wave fields. Rasht-Behesht et al. [10] further investigated acoustic-wave forward modeling and full-waveform inversion. For the one-dimensional wave equation, Nosrati and Emami Niri [21] analyzed the influence of the multi-term PINN loss and modified its calculation to improve training, whereas Alkhadhr and Almekkawy [22] introduced adaptive attention to the loss weights for acoustic-wave modeling. Maczuga and Paszyński [23] systematically examined the effects of activation functions and different treatments of initial and boundary conditions on PINN convergence. In addition, Alkhadhr and Almekkawy [24] compared soft and hard enforcement of initial and boundary conditions for wave-equation modeling. These studies demonstrate that loss balancing, activation design, and constraint enforcement can substantially influence the performance of wave PINNs. However, the wave field is still generally represented as a single neural mapping of the original space–time coordinates.
Another important direction is to incorporate analytical or structural information from the underlying wave problem into the learning process. Lin et al. [25] introduced conservation laws into a two-stage PINN for localized-wave solutions of integrable nonlinear equations, illustrating the benefit of embedding additional mathematical structure into physics-informed learning. For high-frequency wave-field representation, Song and Wang [26] employed Fourier-feature embeddings to alleviate the spectral bias of PINNs in multifrequency seismic-wave simulations. Wu et al. [27] developed IS-PINN for inhomogeneous wave equations by incorporating separation of variables, the superposition principle, and Duhamel’s principle into the solution framework. Liu et al. [28] combined linear wave theory with PINNs for phase-resolved wave prediction, while Qi and Sarris [29] coupled neural-network spatial differentiation with an unconditionally stable time-stepping strategy for electromagnetic wave simulations. Multi-network formulations have also been investigated from other perspectives. For example, XPINNs employ multiple subnetworks associated with different space–time subdomains [30]. Hard enforcement of boundary conditions through specially constructed trial functions has also been investigated in the broader PINN literature [31]. Van der Meer et al. optimized global weights across loss terms, while McClenny and Braga-Neto introduced adaptive weighting at individual training points, both mitigating loss imbalance during PINN training and improving solution accuracy [32,33].
Despite these developments, existing approaches mainly improve loss weighting, optimization, feature representation, boundary enforcement, temporal integration, or decomposition of the computational domain. For the one-dimensional homogeneous linear wave equation, however, the d’Alembert solution reveals a more specific directional structure,
u ( x , t ) = F ( x − c t ) + G ( x + c t ) ,
where F ( x − c t ) and G ( x + c t ) represent two counter-propagating characteristic components. This structure is fundamentally different from decomposing the computational domain or enriching the original space–time input. When the characteristic directions are not explicitly represented, a conventional PINN must learn the propagation directions, phase evolution, and interaction of incident and reflected components simultaneously through a single mapping from ( x , t ) to u ( x , t ) . This issue is particularly relevant to boundary-reflection problems, in which counter-propagating components coexist and interact over time.
Motivated by this analytical structure, we develop a Dual Physics-Informed Neural Network (Dual-PINN) in which two neural branches are explicitly associated with the characteristic coordinates x − c t and x + c t . Their outputs are combined to construct the wave-field approximation and are jointly constrained by the governing equation and the prescribed initial and boundary conditions. The contribution of the present work is therefore not the use of multiple neural networks itself, but the direct architectural correspondence between the two neural branches and the two characteristic propagation directions of the one-dimensional linear wave equation. For homogeneous Dirichlet reflection problems, a problem-specific trial function is additionally introduced to enforce the boundary conditions exactly. The approximation property of the characteristic dual-branch representation is analyzed in the one-dimensional setting, and the proposed framework is evaluated on a periodic-wave benchmark and a boundary-reflection problem. A two-dimensional wave problem is further considered as an empirical extension to examine the applicability of the dual-network framework beyond the exact one-dimensional d’Alembert representation.

2. Problem Formulation

Let Ω ⊂ R d be a bounded spatial domain, where d denotes the spatial dimension. We consider the following linear wave problem:
u t t ( x , t ) − c 2 Δ u ( x , t ) = f ( x , t ) , ( x , t ) ∈ Ω × ( 0 , t f ] , u ( x , 0 ) = ϕ ( x ) , x ∈ Ω , u t ( x , 0 ) = ψ ( x ) , x ∈ Ω , u ( x , t ) = g ( x , t ) , ( x , t ) ∈ ∂ Ω × ( 0 , t f ] .
Here, u ( x , t ) denotes the wave field, c > 0 is the wave propagation speed, f ( x , t ) is a prescribed source term, ϕ ( x ) and ψ ( x ) denote the prescribed initial displacement and initial velocity, respectively, and g ( x , t ) specifies the Dirichlet boundary data.
For convenience, define the linear differential operator
L c [ u ] ( x , t ) : = u t t ( x , t ) − c 2 Δ u ( x , t ) .
Because L c is linear, the corresponding wave problem satisfies the superposition principle. Specifically, if u 1 and u 2 are solutions associated with the data ( f 1 , ϕ 1 , ψ 1 , g 1 ) and ( f 2 , ϕ 2 , ψ 2 , g 2 ) , respectively, then, for any constants α and β , the function α u 1 + β u 2 is associated with the combined data
( α f 1 + β f 2 , α ϕ 1 + β ϕ 2 , α ψ 1 + β ψ 2 , α g 1 + β g 2 ) .
To motivate the traveling-wave representation used in this work, we first consider the homogeneous one-dimensional wave equation on the real line:
u t t ( x , t ) = c 2 u x x ( x , t ) , ( x , t ) ∈ R × ( 0 , t f ] , u ( x , 0 ) = ϕ ( x ) , x ∈ R , u t ( x , 0 ) = ψ ( x ) , x ∈ R .
Introducing the characteristic coordinates
ξ = x − c t , η = x + c t ,
the solution can be represented as the superposition of two counter-propagating traveling-wave components,
u ( x , t ) = F ( ξ ) + G ( η ) = F ( x − c t ) + G ( x + c t ) ,
where F ( x − c t ) represents a right-going wave and G ( x + c t ) represents a left-going wave, both propagating with speed c.
For the prescribed initial conditions in Equation (4), the corresponding d’Alembert formula is
u ( x , t ) = 1 2 ϕ ( x − c t ) + ϕ ( x + c t ) + 1 2 c ∫ x − c t x + c t ψ ( s ) d s .
Equivalently, for an arbitrary reference point x 0 , the two characteristic components can be written as
F ( ξ ) = 1 2 ϕ ( ξ ) − 1 2 c ∫ x 0 ξ ψ ( s ) d s ,
and
G ( η ) = 1 2 ϕ ( η ) + 1 2 c ∫ x 0 η ψ ( s ) d s .
It should be emphasized that the classical d’Alembert representation above is stated for the wave equation on the real line. On a bounded interval, the boundary conditions impose additional compatibility relations between the two characteristic components.
For example, consider Ω = ( 0 , L ) with homogeneous Dirichlet boundary conditions,
u ( 0 , t ) = u ( L , t ) = 0 .
If
u ( x , t ) = F ( x − c t ) + G ( x + c t ) ,
then the boundary conditions require
F ( − c t ) + G ( c t ) = 0 ,
and
F ( L − c t ) + G ( L + c t ) = 0 .
Therefore, the right-going and left-going components are not independent on a bounded interval; they are coupled through the prescribed boundary conditions and the associated reflection process.
In the proposed Dual-PINN, this coupling is incorporated through the physics-informed constraints imposed on the combined output of the two neural branches. Thus, the characteristic decomposition is used to define the directional structure of the neural representation rather than to assume that the two traveling-wave components remain unconstrained on a bounded domain.

Neural Network Representation for the Wave Equation

To approximate the solution of the wave problem in Equation (2). Let
N Θ : R D i → R
denote a fully connected feed-forward neural network, where Θ denotes the collection of trainable parameters.
For a standard space–time representation, the input vector is denoted by z ∈ R D i . For the scalar wave problems considered in this work, the network output is one-dimensional, i.e., D o = 1 .
For a conventional space–time PINN, the input can be written as
z = ( x , t ) ,
whereas the characteristic branches introduced in Section 3 use problem-specific transformed inputs.
Let the network contain L h hidden layers, with N k neurons in the kth hidden layer. The weight matrix and bias vector associated with the kth layer are denoted by W ( k ) and b ( k ) , respectively. We define the input layer as
h ( 0 ) = z .
Following [19,20], locally adaptive activation functions are employed in the hidden layers. Let σ ( · ) denote the activation function, n > 0 be a prescribed scaling factor, and a k be the trainable activation-slope parameter associated with the kth hidden layer. The hidden-layer transformation is defined as
h ( k ) = σ n a k W ( k ) h ( k − 1 ) + b ( k ) , k = 1 , … , L h .
Here, a k is optimized together with the network weights and biases, allowing the effective slope of the activation function to adapt during training. Such locally adaptive activation functions have been shown to improve the trainability of deep and physics-informed neural networks [19,20]. Let N 0 = D i . For k = 1 , … , L h ,
W ( k ) ∈ R N k × N k − 1 , b ( k ) ∈ R N k .
The output layer is taken to be linear and is written as
N Θ ( z ) = W ( L h + 1 ) h ( L h ) + b ( L h + 1 ) .
Accordingly, the complete set of trainable parameters is
Θ = W ( k ) , b ( k ) k = 1 L h + 1 ∪ a k k = 1 L h .
In the numerical experiments, the scaling factor is fixed at n = 5 . The initialization of the adaptive slope parameters a k is kept identical for all hidden layers and is specified together with the remaining training settings in the numerical section.

3. Dual Physics-Informed Neural Networks Based on Traveling-Wave Decomposition

The standard PINN framework approximates the solution of a governing partial differential equation using a neural network and incorporates the governing equation, initial conditions, boundary conditions, and, when available, labeled observations into a unified loss function. For wave problems, however, a single space–time mapping does not explicitly exploit the directional structure revealed by the characteristic representation of the one-dimensional wave equation.
As shown in Section 2, the solution of the one-dimensional homogeneous linear wave equation can be represented as
u ( x , t ) = F ( x − c t ) + G ( x + c t ) ,
where F ( x − c t ) and G ( x + c t ) represent right-going and left-going traveling-wave components, respectively. This analytical structure motivates the proposed dual-branch neural representation.

3.1. Characteristic Dual-Branch Representation

Introducing the characteristic coordinates
ξ = x − c t , η = x + c t ,
we employ two independent feed-forward neural networks to approximate the two counter-propagating components:
u ^ + ( x , t ) = N + ( ξ ; θ + ) = N + ( x − c t ; θ + ) ,
and
u ^ − ( x , t ) = N − ( η ; θ − ) = N − ( x + c t ; θ − ) ,
where θ + and θ − denote the trainable parameters of the right-going and left-going branches, respectively.
The Dual-PINN approximation is then defined as
u ^ ( x , t ; Θ ) = u ^ + ( x , t ) + u ^ − ( x , t ) = N + ( x − c t ; θ + ) + N − ( x + c t ; θ − ) ,
where θ + and θ − denote the parameter sets of the two branches and
Θ = θ + ∪ θ − .
Although the two branches have separate parameter sets, they are optimized jointly through the constraints imposed on their combined output. In particular, the initial and boundary conditions couple the two characteristic components and thereby determine their interaction in bounded-domain reflection problems.
An important property of Equation (22) is that each branch satisfies the one-dimensional homogeneous wave operator identically. Indeed,
∂ t t N + ( x − c t ) − c 2 ∂ x x N + ( x − c t ) = 0 ,
and similarly,
∂ t t N − ( x + c t ) − c 2 ∂ x x N − ( x + c t ) = 0 .
Consequently,
u ^ t t − c 2 u ^ x x = 0
for the raw characteristic representation in Equation (22). Thus, for the homogeneous one-dimensional problem, the governing equation is encoded directly into the functional form of the two branches, while the initial and boundary conditions determine the admissible combination of the two components.
For homogeneous Dirichlet problems, a problem-specific trial factor B ( x ) may additionally be introduced:
u ^ ( x , t ; Θ ) = B ( x ) N + ( x − c t ; θ + ) + N − ( x + c t ; θ − ) ,
where B ( x ) = 0 on the spatial boundary. Because multiplication by B ( x ) modifies the exact d’Alembert form, the resulting trial solution does not satisfy the wave operator identically; in this case, the PDE residual is retained as a training constraint.
The characteristic interpretation above is specific to the one-dimensional linear wave equation with constant wave speed. The two-dimensional formulation considered later is treated as an empirical dual-network extension and is not interpreted as a direct d’Alembert decomposition.

3.2. Physics-Informed Loss Function

For the general wave problem defined in Equation (2), let
S r = ( x i r , t i r ) i = 1 N r ⊂ Ω × ( 0 , t f ]
denote the set of interior collocation points,
S 0 = x i 0 i = 1 N 0 ⊂ Ω
the set of initial-condition points, and
S b = ( x i b , t i b ) i = 1 N b ⊂ ∂ Ω × ( 0 , t f ]
the set of boundary points. Here, N r , N 0 , N b , and N d denote the numbers of interior residual points, initial-condition points, boundary-condition points, and labeled data points, respectively.
For the neural approximation u ^ ( x , t ; Θ ) , the PDE residual is defined as
R ( x , t ; Θ ) = ∂ t t u ^ ( x , t ; Θ ) − c 2 Δ u ^ ( x , t ; Θ ) − f ( x , t ) .
The corresponding residual loss is
L r = 1 N r ∑ i = 1 N r R ( x i r , t i r ; Θ ) 2 .
The initial-condition loss accounts for both the prescribed displacement and velocity and is defined as
L 0 = 1 N 0 ∑ i = 1 N 0 u ^ ( x i 0 , 0 ; Θ ) − ϕ ( x i 0 ) 2 + 1 N 0 ∑ i = 1 N 0 ∂ t u ^ ( x i 0 , 0 ; Θ ) − ψ ( x i 0 ) 2 ,
Both terms are normalized by the same number of samples so that no unintended imbalance is introduced between the displacement and velocity constraints.
For the Dirichlet boundary condition defined in Equation (2), the boundary loss is
L b = 1 N b ∑ i = 1 N b u ^ ( x i b , t i b ; Θ ) − g ( x i b , t i b ) 2 .
When labeled observations are available, we denote the corresponding data set by
S d = ( x i d , t i d , y i d ) i = 1 N d ,
and define the data loss as
L d = 1 N d ∑ i = 1 N d u ^ ( x i d , t i d ; Θ ) − y i d 2 .
The total physics-informed loss is therefore written consistently as
L ( Θ ) = ω r L r + ω 0 L 0 + ω b L b + ω d L d ,
where ω r , ω 0 , ω b , and ω d are nonnegative weights associated with the PDE residual, initial conditions, boundary conditions, and labeled data, respectively. When no labeled data are used, the last term is omitted (or equivalently ω d = 0 ).
For examples in which the Dirichlet boundary condition is imposed exactly through a specifically constructed trial function, the corresponding boundary-loss term can be omitted. Such hard enforcement is described separately for the relevant numerical examples.

3.3. Optimization

The trainable parameters of the Dual-PINN are determined by minimizing the total loss:
Θ ∗ = arg min Θ L ( Θ ) .
The spatial and temporal derivatives appearing in Equation (30) are evaluated by automatic differentiation.
It is important to distinguish the well-posedness of the underlying wave equation from the optimization of the neural network. Well-posedness concerns the existence, uniqueness, and continuous dependence of the PDE solution on the prescribed data, but does not guarantee convergence to a global minimizer of the non-convex optimization problem in Equation (37). Therefore, no optimizer-specific global-convergence claim is made here. The optimization algorithms and their corresponding settings used in the numerical experiments, including Adam and L-BFGS where applicable, are reported explicitly in the numerical section.
We construct a dual-network architecture, as illustrated in Figure 1, to approximate the solution of the wave equation. The two neural branches are designed to represent the two counter-propagating components associated with the characteristic coordinates x − c t and x + c t , respectively.
Figure 1. Schematic of the proposed Dual-PINN for the one-dimensional wave equation. The two neural branches take the characteristic coordinates ξ = x − c t and η = x + c t as inputs to represent the right-going and left-going wave components, respectively. Their outputs are combined to form the prediction u ^ ( x , t ) , which is jointly constrained by the governing equation and the initial and boundary conditions.

4. Approximation Properties of the One-Dimensional Characteristic Dual-Branch Representation

The purpose of this section is to analyze the representational approximation capability of the characteristic dual-branch architecture introduced in Section 3. The analysis addresses whether suitable neural-network parameters exist such that the two characteristic components can be approximated to arbitrary accuracy. It should be distinguished from both the minimization of the discrete physics-informed loss and the convergence of the numerical optimization procedure used during training.

4.1. Scope and Assumptions

Consider the one-dimensional homogeneous linear wave equation
u t t ( x , t ) = c 2 u x x ( x , t ) , ( x , t ) ∈ Q ,
where
Q = Ω × [ 0 , t f ] , Ω = ( x L , x R ) ,
and c > 0 is the constant wave propagation speed.
As discussed in Section 2, suppose that the exact solution admits the characteristic representation
u ( x , t ) = F ( x − c t ) + G ( x + c t ) ,
where F and G denote the right-going and left-going characteristic components, respectively.
For ( x , t ) ∈ Q , the corresponding characteristic variables satisfy
x − c t ∈ I + , x + c t ∈ I − ,
where
I + = [ x L − c t f , x R ] , I − = [ x L , x R + c t f ] .
We assume that
F ∈ C ( I + ) , G ∈ C ( I − ) .
The characteristic representation in Equation (40) is specific to the one-dimensional linear wave equation under the corresponding assumptions. Therefore, the theoretical result below is restricted to the one-dimensional setting and is not intended as a representation theorem for general two-dimensional wave equations.

4.2. Approximation Property

Consistent with the Dual-PINN formulation in Section 3, we consider the neural representation
u ^ ( x , t ; Θ ) = N + ( x − c t ; θ + ) + N − ( x + c t ; θ − ) ,
where N + and N − are two independent feed-forward neural networks and
Θ = { θ + , θ − } .
Proposition 1
(Approximation Property of the Characteristic Dual-Branch Representation). Assume that the exact solution u satisfies Equation (40), with F ∈ C ( I + ) and G ∈ C ( I − ) . For any ε > 0 , there exist two feed-forward neural networks N + and N − , with activation functions satisfying the standard conditions of the universal approximation theorem, such that
u − u ^ L ∞ ( Q ) < ε .
Proof. 
Since F is continuous on the compact interval I + , the universal approximation theorem implies that, for any ε > 0 , there exists a feed-forward neural network N + satisfying
sup ξ ∈ I + F ( ξ ) − N + ( ξ ; θ + ) < ε 2 .
Similarly, because G ∈ C ( I − ) , there exists a feed-forward neural network N − such that
sup η ∈ I − G ( η ) − N − ( η ; θ − ) < ε 2 .
For any ( x , t ) ∈ Q , Equations (40) and (43) give
u ( x , t ) − u ^ ( x , t ; Θ ) = | F ( x − c t ) − N + ( x − c t ; θ + ) + G ( x + c t ) − N − ( x + c t ; θ − ) | ≤ F ( x − c t ) − N + ( x − c t ; θ + ) + G ( x + c t ) − N − ( x + c t ; θ − ) < ε .
Taking the supremum over Q proves Equation (45). □
Since Q has finite measure, Equation (45) also implies
u − u ^ L 2 ( Q ) ≤ | Q | 1 / 2 u − u ^ L ∞ ( Q ) .
Thus, the dual-branch representation can also achieve arbitrarily small L 2 approximation error under the same assumptions.

4.3. Interpretation and Limitations

Proposition 1 establishes an approximation property of the characteristic dual-branch representation. It shows that, when the exact solution admits the decomposition u ( x , t ) = F ( x − c t ) + G ( x + c t ) , the two neural branches can approximate the corresponding characteristic components independently and their outputs can be combined to approximate the full solution.
This result concerns representational capability only. It does not imply that gradient-based optimization will necessarily identify the corresponding network parameters, and it does not establish convergence of the non-convex training procedure.
Proposition 1 also does not establish that the Dual-PINN has a higher approximation order than a conventional PINN. The potential practical benefit of the characteristic decomposition is instead evaluated empirically in Section 5 through matched comparisons of prediction accuracy and training behavior.
Finally, the exact characteristic decomposition used in Proposition 1 is specific to the one-dimensional linear wave equation. The two-dimensional case considered in the numerical experiments is treated as an empirical extension of the dual-network framework and is not covered by the above proposition.

5. Experiments and Result Analysis

We consider three numerical examples to evaluate the performance of the proposed Dual-PINN. The relative L 2 error and maximum absolute error are defined as
E rel , 2 = ∑ j = 1 N t | u ^ j − u j ref | 2 1 / 2 ∑ j = 1 N t | u j ref | 2 1 / 2 , E ∞ = max 1 ≤ j ≤ N t | u ^ j − u j ref | ,
respectively.
For a fair comparison, the PINN and Dual-PINN are constructed using the same total number of hidden neurons. The conventional PINN consists of a single network with four hidden layers and 20 neurons per layer, whereas the Dual-PINN contains two independent branches, each consisting of two hidden layers with 20 neurons per layer. Therefore, both architectures contain a total of 80 hidden neurons. The detailed network hyperparameter and hardware configurations of the standard PINN and the proposed Dual-PINN for 1D wave equation benchmark are summarized in Table 1.
Table 1. Network configurations used for the one-dimensional comparison between the PINN and Dual-PINN.
All other training settings are kept identical for the two methods. Both models use the sine activation function and are optimized using L-BFGS. Furthermore, the same collocation points, initial and boundary samples, loss weights, numerical precision, stopping criterion, and computational hardware are used. Thus, the comparison is designed to isolate the effect of the proposed dual-branch decomposition rather than differences in training configuration.

5.1. Example 1: Periodic One-Dimensional Wave Equation

We first consider
u t t − 4 u x x = 0 , ( x , t ) ∈ [ 0 , 1 ] × [ 0 , 1 ] ,
subject to homogeneous Dirichlet boundary conditions. The analytical solution is
u ( x , t ) = sin ( π x ) cos ( 2 π t ) + 1 2 sin ( 4 π x ) cos ( 8 π t ) ,
from which the initial conditions are obtained. A total of 3000 interior collocation points and 500 initial points are used.

5.2. Sensitivity to Network Architecture

We investigate the sensitivity of the Dual-PINN to network depth and width using Example 1.
Table 2 shows a non-monotonic dependence of the prediction accuracy on network depth and width. Increasing the network size does not consistently reduce the error, while the computational cost increases steadily. Among the tested configurations, the 2 × 20 architecture achieves the smallest relative L 2 error of 1.19 × 10 − 3 , with a training time of 49.9 s . It is therefore adopted for the subsequent one-dimensional experiments as a favorable accuracy–cost compromise.
Table 2. Sensitivity of the Dual-PINN to network depth and width for Example 1.
For the matched comparison between the conventional PINN and Dual-PINN in Example 1, the experiments are repeated using five independent random initializations, and the corresponding results are reported as mean ± standard deviation. Unless otherwise stated, the remaining numerical examples are reported from individual runs and are intended to illustrate the numerical behavior of the proposed formulation rather than to provide a statistical robustness assessment across all test problems.
Table 3 shows that the Dual-PINN consistently achieves lower errors than the conventional PINN over five independent runs. In particular, the final loss decreases from 1.1 × 10 − 3 to 3.3 × 10 − 6 , while the relative L 2 error and maximum error are reduced from 4.5 × 10 − 2 and 5.9 × 10 − 1 to 1.7 × 10 − 3 and 8.8 × 10 − 3 , respectively. Meanwhile, the average training time is slightly lower for the Dual-PINN, indicating that the improved accuracy is achieved without additional computational cost.
Table 3. Comparison of PINN and Dual-PINN over five independent runs for Example 1. Results are reported as mean ± standard deviation.
Figure 2 compares the loss convergence of the Dual-PINN trained with Adam and L-BFGS. Adam reduces the loss rapidly at the early stage but exhibits persistent oscillations during subsequent iterations, with the loss remaining within approximately 10 − 4 – 10 − 2 . In contrast, L-BFGS shows a smoother convergence behavior and decreases the loss to approximately 10 − 5 after about 1000 iterations. These results indicate that L-BFGS provides more stable late-stage convergence and a lower final training loss for the present problem.
Figure 2. Loss convergence of Dual-PINN with Adam and L-BFGS.
Figure 3 presents the numerical solutions and associated error plots for the proposed dual-PINN’s framework under two optimizers: Adam and L-BFGS.
Figure 3. Predicted solutions and pointwise absolute errors for Example 1 using the Dual-PINN trained with Adam (top) and L-BFGS (bottom). The reference solution is the prescribed analytical solution.

5.3. Example 2: One-Dimensional Boundary-Reflection Problem

We next consider the one-dimensional wave equation
u t t ( x , t ) − c 2 u x x ( x , t ) = 0 , ( x , t ) ∈ ( 0 , 2 ) × ( 0 , t f ] ,
with
u ( x , 0 ) = 0.5 exp [ − 100 ( x − 1 ) 2 ] , u t ( x , 0 ) = 0 ,
and homogeneous Dirichlet boundary conditions
u ( 0 , t ) = u ( 2 , t ) = 0 .
The wave speed is given by
c = T μ ,
where T denotes the tension of the string and μ denotes its linear mass density, i.e., the mass per unit length, c 2 = 0.02 .
To satisfy the homogeneous Dirichlet conditions exactly, the prediction is written as
u ^ ( x , t ) = x ( 2 − x ) N + ( x − c t ; θ + ) + N − ( x + c t ; θ − ) .
The Dual-PINN contains two branches, each with two hidden layers and 20 neurons per layer. A total of 5000 interior collocation points and 500 initial points are used. The weights for different loss terms are empirically set as ω r = 0.1 , ω 0 = 1 , ω b = 1 , ω d = 0 .
Figure 4 shows the evolution of the training loss, while Figure 5 presents the predicted spatiotemporal solution of the one-dimensional wave problem. Figure 6 compares the Dual-PINN prediction with the finite-difference reference solution at different time instants. The predicted solution agrees well with the reference during both incident-wave propagation and subsequent boundary reflection, indicating that the Dual-PINN captures the principal propagation and reflection structures in this test case.
Figure 4. The evolution of loss function during iteration.
Figure 5. The solutions of one-dimensional wave equation obtained by our dual-PINNs.
Figure 6. Spatiotemporal evolution of the solution u ( x , t ) comparing the Finite Difference (FD) reference solution (black dots) and the Dual-Physics Informed Neural Network (Dual-PINN) prediction (red dash-dotted line). The snapshots display the wave propagation and interaction at time steps t = 0 , 3 , 6 , 9 , 12 , and 15.

5.4. Example 3: Two-Dimensional Wave Problem

Finally, we consider the two-dimensional wave equation
u t t = c 2 u x x + u y y , ( x , y ) ∈ ( 0 , 2 ) × ( 0 , 2 ) ,
with the initial conditions
u ( x , y , 0 ) = 0.5 exp − 100 [ ( x − 1 ) 2 + ( y − 1 ) 2 ] , u t ( x , y , 0 ) = 0 ,
and homogeneous Dirichlet boundary conditions on ∂ Ω , c 2 = 0.02 .
For this numerical extension, the homogeneous boundary conditions are enforced through the trial representation
u ^ ( x , y , t ) = x ( 2 − x ) y ( 2 − y ) D Θ ( x , y , t ) ,
where D Θ denotes the dual-network representation used for the two-dimensional experiment. As clarified in Section 3 and Section 4, this 2D formulation is treated as a numerical extension and is not covered by the exact one-dimensional d’Alembert decomposition.
For a consistent comparison, the conventional PINN employs a single network with three hidden layers of 80 neurons each, whereas the Dual-PINN consists of two parallel branches, each containing three hidden layers of 40 neurons, resulting in the same total number of hidden neurons for both methods.
To better represent the approximately radial propagation of the initially localized Gaussian pulse, we introduce
r = ( x − 1 ) 2 + ( y − 1 ) 2 ,
and augment the two branches with r − c t and r + c t , respectively. These quantities are used solely as physics-motivated auxiliary features in the two-dimensional experiment rather than as exact characteristic coordinates.
Accordingly, the inputs to the two branches are defined as
( x n , y n , t n , ( r − c t ) n )
and
( x n , y n , t n , ( r + c t ) n ) ,
respectively, where the subscript n denotes normalized variables.
A total of N i = 20 , 000 interior points, N 0 = 1000 initial-condition points, and N b = 1200 boundary points are used. The sampling combines global, locally refined, temporally stratified, and reflection-focused points, with additional late-time refinement near the boundaries. L-BFGS training follows a three-stage temporal curriculum with 500, 750, and 1750 iterations on t ∈ [ 0 , 4 ] , [ 0 , 7 ] , and [ 0 , 10 ] , respectively, totaling 3000 iterations. Finite-difference snapshots at t = 0 , 2 , 4 , 6 , and 8 are further incorporated through the data-loss term L d in Equation (35), while t = 10 is reserved for out-of-sample temporal evaluation. The same data and training settings are used for the PINN and Dual-PINN.
Figure 7 and Figure 8 show the predicted wave fields and the corresponding pointwise absolute errors at six representative times. The Dual-PINN accurately captures the outward propagation of the initial pulse and the subsequent boundary-interaction patterns. The errors are primarily localized near the moving wavefronts and reflected structures, while the remaining regions retain relatively small discrepancies. This behavior demonstrates that the proposed representation can preserve the principal two-dimensional wave dynamics over the considered time interval.
Figure 7. Dual-PINN predictions for the two-dimensional wave equation at t = 0 , 2 , 4 , 6 , 8 , and 10.
Figure 8. Pointwise absolute errors of the Dual-PINN predictions for the two-dimensional wave equation at t = 0 , 2 , 4 , 6 , 8 , and 10, computed with respect to the finite-difference reference solution.
Table 4 further quantifies the prediction accuracy in Example 3. The relative L 2 error of PINN increases from 5.5 × 10 − 2 at t = 2 to 3.8 × 10 − 1 at t = 10 , whereas Dual-PINN maintains considerably smaller errors over the entire interval, with E rel , 2 = 6.1 × 10 − 2 at t = 10 . Moreover, Dual-PINN uses only 7042 trainable parameters compared with 13 , 361 for PINN. This comparison indicates that the dual-branch representation improves the accuracy–complexity trade-off for the present two-dimensional wave problem, particularly during the later-time wave-reflection stage.
Table 4. Quantitative comparison of PINN and Dual-PINN for the two-dimensional wave problem at representative time instants.

6. Conclusions

This work develops a Dual Physics-Informed Neural Network (Dual-PINN) for wave-equation problems with particular emphasis on boundary reflection. For the one-dimensional linear wave equation, the proposed architecture uses two neural branches associated with the characteristic coordinates x − c t and x + c t to represent counter-propagating wave components. Their outputs are combined and jointly constrained by the governing equation and the prescribed initial and boundary conditions. For the homogeneous Dirichlet reflection problems, the boundary conditions are further enforced through a problem-specific trial function. This structured representation provides a direct way to incorporate the traveling-wave decomposition into the neural approximation.
The numerical experiments show that the method can reproduce the tested periodic-wave and boundary-reflection solutions with controlled errors. The network-sensitivity study shows that the configuration with two hidden layers and 20 neurons per layer achieves a relative L 2 error of 1.19 × 10 − 3 and a maximum error of 2.36 × 10 − 3 , with a training time of 49.9 s. This configuration therefore provides a favorable balance between prediction accuracy and computational cost for Example 1.
The present formulation also has several limitations. The theoretical result applies only to the one-dimensional characteristic representation, whereas the two-dimensional formulation should be interpreted as an empirical numerical extension rather than a consequence of Proposition 1. In addition, the performance of the method remains dependent on network architecture, sampling, loss weighting, and optimization. Future work will therefore focus on constructing multidimensional directional decompositions, extending the branch representation to heterogeneous media with spatially varying wave speeds, and developing adaptive branch-coupling and sampling strategies for more challenging long-time wave-propagation problems.

Author Contributions

Conceptualization, F.C. and X.S.; methodology, F.C.; software, X.S.; validation, F.C. and X.S.; formal analysis, F.C.; investigation, X.S.; resources, F.C.; writing—original draft preparation, X.S.; writing—review and editing, F.C.; visualization, X.S.; supervision, X.S.; project administration, F.C.; funding acquisition, F.C. All authors have read and agreed to the published version of the manuscript.

Funding

This work is partially supported by the National Natural Science Foundation of China (Nos. 12161067, 51961031), the Shaoxing Municipal Science and Technology Program (Grant No. 2026A11010), and the Key Laboratory of Intelligent Monitoring and Prevention for Smart Society of Shaoxing & Incubation Project of Shaoxing Future Industry Research Institute (No. 2025ZDA01).

Data Availability Statement

The raw numerical data and code generated in this study are available from the corresponding author upon reasonable request.

Conflicts of Interest

The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

References

  1. Dablain, M.A. The application of high-order differencing to the scalar wave equation. Geophysics 1986, 51, 54–66. [Google Scholar] [CrossRef] [Scilit]
  2. Liu, Y.; Sen, M.K. A new time-pace domain high-order finite-difference method for the acoustic wave equation. J. Comput. Phys. 2009, 228, 8779–8806. [Google Scholar] [CrossRef] [Scilit]
  3. Grote, M.J.; Schneebeli, A.; Schtzau, D. Discontinuous Galerkin finite element method for the wave equation. Siam J. Numer. Anal. 2006, 44, 2408–2431. [Google Scholar] [CrossRef] [Scilit]
  4. Guo, B.Y. Spectral Methods and Their Applications; World Scientific: Singapore, 1998. [Google Scholar]
  5. Ainsworth, M.; Monk, P.; Muniz, W. Dispersive and dissipative properties of discontinuous Galerkin finite element methods for the second-order wave equation. J. Sci. Comput. 2006, 27, 5–40. [Google Scholar] [CrossRef] [Scilit]
  6. Wang, S. An improved high order finite difference method for non-conforming grid interfaces for the wave equation. J. Sci. Comput. 2018, 77, 775–792. [Google Scholar] [CrossRef] [Scilit]
  7. Colombi, A.; Nissen-Meyer, T.; Boschi, L.; Giardini, D. Seismic waveform sensitivity to global boundary topography. Geophys. J. Int. 2012, 191, 832–848. [Google Scholar] [CrossRef] [Scilit]
  8. Tesoniero, A.; Leng, K.; Long, D.M.; Nissen-Meyer, T. Full wave sensitivity of SK (K) S phases to arbitrary anisotropy in the upper and lower mantle. Geophys. J. Int. 2020, 222, 412–435. [Google Scholar] [CrossRef] [Scilit]
  9. Moseley, B.; Markham, A.; Nissen-Meyer, T. Solving the wave equation with physics-informed deep learning. arXiv 2020, arXiv:2006.11894. [Google Scholar] [CrossRef] [Scilit]
  10. Rashtehesht, M.; Huber, C.; Shukla, K.; Karniadakis, G.E. Physics-informed neural networks (PINNs) for wave propagation and full waveform inversions. J. Geophys. Res. Solid Earth 2022, 127, e2021JB023120. [Google Scholar] [CrossRef] [Scilit]
  11. Srinivasa, K.; Mulimani, M.; Adel, W. A numerical approach for solving nonlinear fractional Klein–Gordon equation with applications in quantum mechanics. J. Nonlinear Complex Data Sci. 2024, 25, 173–195. [Google Scholar] [CrossRef] [Scilit]
  12. Nguyen, H.; Tsai, R. Numerical wave propagation aided by deep learning. J. Comput. Phys. 2023, 475, 111828. [Google Scholar] [CrossRef] [Scilit]
  13. Raissi, M.; Perdikaris, P.; Karniadakis, G.E. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J. Comput. Phys. 2019, 378, 686–707. [Google Scholar] [CrossRef] [Scilit]
  14. Cai, S.; Mao, Z.; Wang, Z.; Yin, M.; Karniadakis, G.E. Physics-informed neural networks (PINNs) for fluid mechanics: A review. Acta Mech. Sin. 2021, 37, 1727–1738. [Google Scholar] [CrossRef] [Scilit]
  15. Wang, S.; Teng, Y.; Perdikaris, P. Understanding and mitigating gradient flow pathologies in physics-informed neural networks. Siam J. Sci. Comput. 2021, 43, A3055–A3081. [Google Scholar] [CrossRef] [Scilit]
  16. Wang, S.; Yu, X.; Perdikaris, P. When and why PINNs fail to train: A neural tangent kernel perspective. J. Comput. Phys. 2022, 449, 110768. [Google Scholar] [CrossRef] [Scilit]
  17. Krishnapriyan, A.S.; Gholami, A.; Zhe, S.; Kirby, R.M.; Mahoney, M.W. Characterizing possible failure modes in physics-informed neural networks. Adv. Neural Inf. Process. Syst. 2021, 34, 26548–26560. [Google Scholar]
  18. Song, J.; Zhong, M.; Karniadakis, G.E.; Yan, Z. Two-stage initial-value iterative physics-informed neural networks for simulating solitary waves of nonlinear wave equations. J. Comput. Phys. 2024, 505, 112917. [Google Scholar] [CrossRef] [Scilit]
  19. Jagtap, A.D.; Kawaguchi, K.; Em Karniadakis, G. Locally adaptive activation functions with slope recovery for deep and physics-informed neural networks. Proc. R. Soc. A 2020, 476, 20200334. [Google Scholar] [CrossRef] [Scilit]
  20. Jagtap, A.D.; Kawaguchi, K.; Karniadakis, G.E. Adaptive activation functions accelerate convergence in deep and physics-informed neural networks. J. Comput. Phys. 2020, 404, 109136. [Google Scholar] [CrossRef] [Scilit]
  21. Nosrati, H.; Emami Niri, M. Manipulating the loss calculation to enhance the training process of physics-informed neural networks to solve the 1D wave equation. Eng. Comput. 2024, 40, 1741–1769. [Google Scholar] [CrossRef] [Scilit]
  22. Alkhadhr, S.; Almekkawy, M. Modeling the Wave Equation Using Physics-Informed Neural Networks Enhanced With Attention to Loss Weights. In Proceedings of the ICASSP 2023—2023 IEEE International Conference on Acoustics, Speech and Signal Processing, Rhodes Island, Greece, 4–10 June 2023; pp. 4438–4442. [Google Scholar]
  23. Maczuga, P.; Paszyiski, M. Influence of activation functions on the convergence of physics-informed neural networks for 1D wave equation. In International Conference on Computational Science; Springer Nature: Cham, Switzerland, 2023; pp. 74–88. [Google Scholar]
  24. Alkhadhr, S.; Almekkawy, M. Wave equation modeling via physics-informed neural networks: Models of soft and hard constraints for initial and boundary conditions. Sensors 2023, 23, 2792. [Google Scholar] [CrossRef] [Scilit]
  25. Lin, S.; Chen, Y. A two-stage physics-informed neural network method based on conserved quantities and applications in localized wave solutions. J. Comput. Phys. 2022, 457, 111053. [Google Scholar] [CrossRef] [Scilit]
  26. Song, C.; Wang, Y. Simulating seismic multifrequency wavefields with the Fourier feature physics-informed neural network. Geophys. J. Int. 2023, 232, 1503–1514. [Google Scholar] [CrossRef] [Scilit]
  27. Wu, T.; Zhao, C.; Liu, X. IS-PINN: Integrating mathematical principles to solve inhomogeneous wave equations via physics-informed neural networks. Comput. Math. Appl. 2025, 193, 177–204. [Google Scholar] [CrossRef] [Scilit]
  28. Liu, Y.; Zhang, X.; Dong, Q.; Chen, G.; Li, X. Phase-resolved wave prediction with linear wave theory and physics-informed neural networks. Appl. Energy 2024, 355, 121602. [Google Scholar] [CrossRef] [Scilit]
  29. Qi, S.; Sarris, C.D. Hybrid physics-informed neural network for the wave equation with unconditionally stable time-stepping. IEEE Antennas Wirel. Propag. Lett. 2024, 23, 1356–1360. [Google Scholar] [CrossRef] [Scilit]
  30. Jagtap, A.D.; Karniadakis, G.E. Extended physics-informed neural networks (XPINNs): A generalized space-time domain decomposition based deep learning framework for nonlinear partial differential equations. Commun. Comput. Phys. 2020, 28, 2002–2041. [Google Scholar] [CrossRef] [Scilit]
  31. Sukumar, N.; Srivastava, A. Exact imposition of boundary conditions with distance functions in physics-informed deep neural networks. Comput. Methods Appl. Mech. Eng. 2022, 389, 114333. [Google Scholar] [CrossRef] [Scilit]
  32. Van Der Meer, R.; Oosterlee, C.W.; Borovykh, A. Optimally weighted loss functions for solving pdes with neural networks. J. Comput. Appl. Math. 2022, 405, 113887. [Google Scholar] [CrossRef] [Scilit]
  33. McClenny, L.D.; Braga-Neto, U.M. Self-adaptive physics-informed neural networks. J. Comput. Phys. 2023, 474, 111722. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.