Paper deep dive
A Two-Stage Learning PINN Approach for Solving the Inverse Problem of the 1D Porous Medium Equation
Noura Al Helwani, Sophie Moufawad, Nabil Nassif
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 94%
Last extracted: 8/23/2026, 2:13:35 AM
Summary
This paper addresses the numerical solution of the one-dimensional Porous Medium Equation (PME), focusing on both direct and inverse problems using Physics-Informed Neural Networks (PINNs). The authors identify that standard PINN formulations for inverse problems suffer from strong sensitivity to initial guesses, leading to local convergence. To overcome this, they propose a novel two-stage learning framework that significantly improves convergence stability and allows for reliable parameter recovery even with poor initial guesses. The approach is validated against classical numerical methods and analytical solutions, demonstrating that PINNs are a flexible and accurate alternative, particularly for extending to higher-dimensional and complex geometries.
Entities (10)
Relation Signals (8)
Physics-Informed Neural Networks → usedfor → Porous Medium Equation
confidence 100% · we study numerical solutions of the one-dimensional direct and inverse PME using Physics-Informed Neural Networks (PINNs)
Noura Al Helwani → affiliatedwith → American University of Beirut
confidence 95% · Department of Physics, American University of Beirut, Lebanon
Nabil Nassif → affiliatedwith → American University of Beirut
confidence 95% · Department of Mathematics, American University of Beirut, Lebanon
Sophie Moufawad → affiliatedwith → American University of Beirut
confidence 95% · Department of Mathematics, American University of Beirut, Lebanon
Two-Stage Learning Framework → improves → Convergence stability
confidence 95% · which significantly improves convergence stability and allows reliable recovery of the unknown parameter
Two-Stage Learning Framework → solves → Inverse Problem
confidence 95% · we propose a novel two-stage PINN training framework for the inverse problem
Barenblatt Solution → issolutionto → Porous Medium Equation
confidence 90% · A fundamental exact solution of the PME is the Barenblatt solution.
Standard PINN → suffersfrom → local convergence
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:The Porous Medium Equation (PME), given by $u_t = \Delta(u^m)$ for $m > 1$, is a degenerate nonlinear parabolic partial differential equation that arises in various physical applications such as fluid flow in porous media, heat transfer in plasmas, and population dynamics. It is known for its nonlinear diffusion and finite propagation speed. In this paper, we study numerical solutions of the one-dimensional direct and inverse PME using Physics-Informed Neural Networks (PINNs), and compare them with classical numerical methods and available analytical and manufactured solutions. While PINNs provide a flexible framework for solving both forward and inverse problems, we show that the standard inverse formulation suffers from a strong sensitivity to the initial guess, leading to only local convergence. To address this issue, we propose a novel two-stage PINN training framework for the inverse problem, which significantly improves convergence stability and allows reliable recovery of the unknown parameter even for poor initial guesses. Overall, the proposed approach demonstrates that PINNs are a flexible and accurate alternative to classical methods for the 1D PME, and the introduced two-stage training strategy substantially improves their robustness in inverse problems, providing a solid basis for extensions to more complex geometries and higher-dimensional cases.
Tags
Links
- Source: https://arxiv.org/abs/2608.16475v1
- Canonical: https://arxiv.org/abs/2608.16475v1
Trouble viewing inline? Open PDF directly →
Full Text
99,701 characters extracted from source content.
Expand or collapse full text
A Two-Stage Learning PINN Approach for Solving the Inverse Problem of the 1D Porous Medium Equation Noura Al Helwani ∗ Sophie Moufawad † Nabil Nassif ‡§ August 18, 2026 Abstract The Porous Medium Equation (PME), given by u t = ∆(u m ) for m > 1, is a degenerate nonlinear parabolic partial differential equation that arises in various physical applications such as fluid flow in porous media, heat transfer in plasmas, and population dynamics. It is known for its nonlinear diffusion and finite propagation speed. In this paper, we study numerical solutions of the one-dimensional direct and inverse PME using Physics-Informed Neural Networks (PINNs), and compare them with classical numerical methods and available analytical and manufactured solutions. While PINNs provide a flexible framework for solving both forward and inverse problems, we show that the standard inverse formulation suffers from a strong sensitivity to the initial guess, leading to only local convergence. To address this issue, we propose a novel two-stage PINN training framework for the inverse problem, which significantly improves convergence stability and allows reliable recovery of the unknown parameter even for poor initial guesses. Overall, the proposed approach demonstrates that PINNs are a flexible and accurate alternative to classical methods for the 1D PME, and the introduced two-stage training strategy substantially improves their robustness in inverse problems, providing a solid basis for extensions to more complex geometries and higher- dimensional cases. Keywords: Porous medium equation, Physics-informed neural networks, Inverse problems, Deep learn- ing, Nonlinear partial differential equations, Degenerate parabolic equations, Numerical analysis, Scien- tific machine learning, Applied mathematics. ∗ Department of Physics, American University of Beirut, Lebanon (nmh82@mail.aub.edu) † Department of Mathematics, American University of Beirut, Lebanon (sm101@aub.edu.lb) ‡ Department of Mathematics, American University of Beirut, Lebanon (n12@aub.edu.lb) § This work was funded by the AUB AI Exploratory Research Grant (AI-ERG 2024-2025) and by the Mamdouha El-Sayed Bobst Deanship Fund, Faculty of Arts and Sciences, AUB (2026) 1 arXiv:2608.16475v1 [math.OC] 17 Aug 2026 Contents 1 Introduction2 2 The Direct Problem of the 1D PME5 2.1 Methodologies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 2.1.1Classical Numerical Scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 2.1.2PINN Approach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 2.2 Reference Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.2.1Barenblatt Solution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.2.2Manufactured Solution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.3 Direct PINN Testing without Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.4 Direct PINN Testing with Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3 The 2-stage Learning Inverse PINN17 3.1 Classical Approach: fmincon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.2 PINN Approach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.3 Inverse PINN Design Experiments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.3.1The Proposed Two-Stage Training Inverse PINN Model . . . . . . . . . . . . . . . 21 3.4 Testings and results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.4.1Inverse PINN testing without Noisy Data . . . . . . . . . . . . . . . . . . . . . . . 24 3.4.2Inverse PINN testing with Noisy Data . . . . . . . . . . . . . . . . . . . . . . . . 32 4 Conclusion35 References35 A Visual Comparisons of Direct Solutions40 A.1 Barenblatt solution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 A.2 Polynomial solution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 A.3 Damped Harmonic Solution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 A.4 m-dependent solution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 B Inverse PINN’s training loss of the m-dependent solution51 C Inverse PINN results before the 2-stage PINN model54 1 Introduction Inverse problems governed by nonlinear partial differential equations (PDEs) arise in many scientific and engineering applications [1, 5, 3], where unknown parameters or coefficients must be inferred from observed data. In this paper, we solve the inverse Porous Medium Equation (PME) Eq. 1 problem using Physics-Informed Neural Networks (PINNs), which is a mesh-free framework for solving such problems through the incorporation of governing physical laws into the learning. PINNs have several important advantages compared to classical numerical methods. They are mesh-free, which makes them easier 2 and more flexible to extend to higher-dimensional problems, since classical approaches usually require new and more complex discretization schemes and more advanced and expensive numerical methods when moving from 1D to higher dimensions. In addition, inverse problems in classical frameworks are generally more expensive and sometimes ill-conditioned than direct problems, while PINNs can handle inverse problems in a more efficient way within the same framework. Finally, PINNs can also work with sparse data in inverse problems, without the need for full-field or dense measurements. These advantages, along with the growing development of scientific machine learning methods, were the main motivation behind using PINNs as the main approach in this paper. An elementary attempt to solve the 1D PME using PINNs only for m = 3 was done in [2]. In this paper, we aim to improve the results produced by [2] by improving the PINN model and focusing on the inverse problem. We also generalize the solution for any m, and we manufactured three different solutions to further verify the work and test its robustness. For the inverse problem, we propose a novel two-stage learning approach that achieves convergence even when the initial guess is far from the true solution, which solves the problem of local convergence when only standard PINN techniques were involved. Throughout, we compare the performance of PINNs to traditional numerical solvers in terms of accuracy, stability, and convergence, with the broader aim of understanding the strengths and limitations of PINNs in solving nonlinear diffusion equations like the PME. These classical numerical methods are used in this work as a validation benchmark rather than a competing approach, since the goal is not to outperform them in all cases, but to develop a robust and reliable PINN framework that remains stable and accurate across different settings. To elaborate, the motivation behind writing this paper and doing this work is to build strong founda- tions where the 1D PME PINN performs very well, in order to prepare for the main topic and objective: the 2D and higher-dimensional PME in more complex geometries, where classical methods normally struggle, and to explore the advantages of PINNs. The 1D conditions presented in this paper represent the setting where classical methods usually excel. Our aim is to develop a robust PINN that can be as accurate as feasible compared to the classical method in these basic geometries, in order to ensure robustness before moving to higher and more complex geometries, where we expect PINNs to become more advantageous. In particular, establishing a reliable inverse PINN framework in 1D is a neces- sary step before moving to higher-dimensional cases, because unlike classical numerical methods, which usually need new discretization techniques, new mesh generation, and sometimes even different solvers when going to higher dimensions, PINNs keep the same main structure. Only small changes are needed, mainly in the input dimension and the way collocation points are sampled. This is why the paper is divided into two sections: the first section, Section 2, focuses on the direct PME problem, while the second, Section 3 which represents the main contribution of this work, focuses on the inverse problem. In brief, the main objectives of this work are: 1. To develop a robust PINN framework for the inverse PME problem in 1D. 2. To establish a strong and reliable foundation for extending the methodology to higher-dimensional problems. Summarizing the main results of this paper, for both the direct and inverse problems, the PINN framework was found to be accurate, with most errors below 5%. It is also more flexible than the classical methods, although it comes at a higher computational cost. Overall, PINNs prove to be a viable and flexible alternative to classical methods for the 1D PME, with clear room for further improvement, and give a solid foundation for extending the framework to higher-dimensional geometries. The main contributions of this work are summarized as follows: 3 • We develop an improved PINN framework for the 1D Porous Medium Equation covering both direct and inverse problems. • We investigate the effect of initialization, training strategy, stability techniques, and loss scheduling on inverse PINN performance (Section 3.3). • We identify the local convergence limitation of standard inverse PINNs for the PME, where accu- rate parameter recovery strongly depends on the initial guess (Section 3.2). • We propose a novel two-stage training PINN framework for the inverse PME problem that improves convergence robustness and stabilizes parameter estimation across different initial guesses (Section 3.3.1). • We compare the proposed framework against classical numerical inverse solvers across several manufactured solutions and values of m. • We establish a robust and well-behaved inverse PINN framework for the 1D PME, which pro- vides a solid foundation for extending the methodology to higher-dimensional and more complex geometries. The proposed two-stage learning strategy is not restricted to the PME and can be naturally extended to other PDE-based inverse problems, where the number of stages and their structure can be adapted depending on the specific problem, the data availability, and the convergence behavior, potentially leading to more general multi-stage learning frameworks tailored to each application. To better situate this work, we now briefly review relevant literature on machine learning and Physics- Informed Neural Networks for solving PDEs and inverse problems. Machine learning (ML) has become increasingly prominent with the data revolution in the digital age, with huge success in applications such as image classification [9] and natural language processing [10]. These successes are usually driven by large, high-quality data sets. However, a lot of applied science is in the small-data regime with large uncertainty. In such cases, ML-based methods, e.g., PINNs, are particularly valuable [11]. Neural networks in particular possess several properties that make them important for scientific comput- ing. They are universal function approximators [12] and benefit from automatic differentiation, which makes calculating the derivatives that occur in differential equation-solving more straightforward [14]. The use of neural networks to approximate ordinary and partial differential equations started in the 1990s [15, 16, 17] and has continued as an active area of research with deep learning techniques. Early approaches blended neural networks with traditional methods, e.g., weighted residuals, constrained backpropagation, and Galerkin methods, for the solution of initial and boundary value problems [18]. These developments naturally led to physics-informed formulations. More recently, Raissi et al. [11, 8] proposed Physics-Informed Neural Networks, which directly incorporate physical laws into the training procedure. It is a mesh-free approach, avoids interpolation errors, and offers a unified treatment of both forward and inverse problems. PINNs have been applied to diverse areas such as heat transfer [19, 20] and manufacturing [21]. Another advantage is the availability of several Python libraries [13, 22, 23] that facilitate the implementation of PINNs. Most notably, PINNs provide a unified framework for both direct (forward) and inverse problems. These advantages explain the rapid adoption and exploration of PINNs in scientific applications. PINNs do come with some issues, though. Their loss landscapes may be very non-convex, which can induce optimization difficulties and decreased accuracy. More sophisticated physics typically require deeper networks, which increase the computation cost, memory requirements, and training time. Also, 4 PINNs are confronted with PDEs with parameter discontinuities or domain heterogeneities, e.g., conju- gate heat transfer in heterogeneous media. To address these limitations, several enhanced PINN variants have been developed. Domain decomposition techniques have been proposed to overcome this difficulty [24, 25]. These divide the computational domain into subdomains, for which local PINNs are separately defined and coupled together with interface conditions. Adaptive activation functions [26] and even vari- ational principles have been examined to improve accuracy. In order to further improve performance, Transfer Physics-Informed Neural Networks (TPINNs) were introduced. Unlike training separate neural networks for each of the subdomains, TPINNs transfer layers between subdomains but allow certain layers to learn to adjust to local physics. Besides increasing efficiency, it also shows some effective- ness in solving stiff differential equations [27, 28]. Beyond these improvements, several other neural network-based approaches have been proposed to handle complex scientific computing problems where conventional numerical methods struggle, especially in highly nonlinear or high-dimensional systems. Examples include geometry-aware PINNs for more complex domains [30], specific activation functions for high-dimensional nonlinear wave equations [31], and convolutional PINNs for irregular geometries [32].The demand for inverse PINNs is especially urgent in porous media simulations, as highlighted in recent studies such as [29], where Physics-Informed Neural Networks are used for transport models in porous materials. In this context, correct parameter estimation, such as permeability and dispersivity, is pivotal for accurately modeling large-scale dynamics. Direct measurement of these parameters is typi- cally expensive, time-consuming, and spatially limited. PINNs address this issue by enabling parameter estimation from sparse and noisy measurements of state variables of PDE systems. This makes them particularly valuable not only in porous media applications, but also in agronomy, soil sciences, and hydrology [39, 40, 41], as well as in materials science and biomedical engineering [42]. In summary, PINNs were effective forward and inverse PDE problem solvers, overcoming many of the limitations of conventional numerical methods. In particular, inverse problems are often ill-posed, meaning they can be non-unique or unstable, and are typically more computationally complex than forward problems. While recent studies on PINNs provided improved accuracy and efficiency, issues are still open. This requires further investigation into the application and extension of PINN approaches to problems such as the Porous Medium Equation (PME), where both stable forward solutions and accurate parameter estimation are paramount. The one-dimensional PME has been studied using classical numerical approaches, including finite differ- ence schemes with various sweep and discretization strategies, as well as iterative solvers such as SOR and Newton-based methods [33, 36, 38], and variational approaches [37]. As for the inverse problem, see [34, 35]. However, despite this rich body of work, these approaches do not incorporate machine learning data-driven learning frameworks. This highlights the potential interest in exploring the effectiveness of PINNs for both direct and inverse formulations of the PME. 2 The Direct Problem of the 1D PME The Porous Medium Equation (PME) is a nonlinear degenerate parabolic partial differential equation of the form ∂ t u = ∆(u m )m > 1 u(t,a) = 0, u(t,b) = 0 t > t 0 , u(t 0 ,x) = u 0 (x)x∈ (a,b), (1) where u = u(x,t)≥ 0 denotes the density of a diffusing quantity, and m is the nonlinearity (or polytropic) exponent. 5 The equation is degenerate due to the fact that the diffusion coefficient D(u) = mu m−1 becomes zero at u = 0 if the equation is equivalently written in the form ∂ t u = ∂ x (mu m−1 ∂ x u). The PME unifies a wide range of nonlinear diffusion phenomena occurring in physics, biology, and engineering, including gas transmission in porous media, population growth, and heat transfer in nonlinear materials. The PME can be considered as a nonlinear version of the classical heat equation, which is regained formally in the case m = 1. The mathematical theory of the PME developed over the years, beginning with foundational work of Oleinik et al. in the late 1950s, and finally reaching maturity in the 1980s, partly due to developments in functional analysis and nonlinear PDE theory [4]. Finite speed of propagation is also one of the typical features of the PME, meaning that disturbances propagate at finite speed, unlike in the classical heat equation, where infinite speed of propagation occurs. Indeed, if the initial data u 0 is compactly supported, then so is the solution u(t) for all t > 0, with a sharp free boundary separating the region where u > 0 from the vacuum. That results in the formation of moving interfaces and makes the maximum principle inapplicable. A fundamental exact solution of the PME is the Barenblatt solution. It describes the evolution of a compactly supported density from a Dirac-type initial condition and serves as a paradigm to study spreading rates, self-similarity, and asymptotic behavior. We will utilize such a solution to verify our numerical and PINNs methods. For a complete treatment of the PME and other related nonlinear diffusion equations, we would like to refer the reader to V ́azquez’s monograph [4], which will be the principal theoretical foundation of this work. In this section, we solve the one-dimensional direct problem of the PME given in Eq. 1 written in the following form: ∂ t u(t,x) = ∂ x βu β−1 ∂ x u(t,x) , x∈ [−1, 1], t∈ [0, 1], u(t,−1) = u(t, 1) = 0,t∈ [0, 1], u(0,x) = u 0 (x),x∈ [−1, 1], (2) We solve this problem using a classical numerical method (Section 2.1.1) and a PINN approach (Sec- tion 2.1.2). We then introduce four different reference solutions of the PME (Section 2.2), and finally, we present the results for the 1D direct problem in Section 2.3. 2.1 Methodologies The inverse framework developed in this paper builds upon the direct PME solvers introduced in our earlier work [2]. For completeness, we briefly summarize the classical and PINN formulations used throughout this work. Additional implementation details and algorithmic descriptions can be found in [2]. 2.1.1 Classical Numerical Scheme As a reference solution, we employ the finite difference formulation introduced in [2], based on a backward Euler discretization in time and central differences in space. For each interior grid point, the resulting nonlinear residual is F i (u n+1 ) = u n+1 i −u n i − m∆t ∆x 2 " u n+1 i+1 + u n+1 i 2 m−1 (u n+1 i+1 − u n+1 i )− u n+1 i + u n+1 i−1 2 m−1 (u n+1 i − u n+1 i−1 ) # . 6 with the vector of unknowns at time step n + 1 as u n+1 = (u n+1 1 ,...,u n+1 N−1 ) ⊤ ∈ R m , m = N − 1, and the residual vector F (u n+1 ) = (F 1 ,...,F N−1 ) ⊤ . The nonlinear system is solved at each time step using Newton’s method. The update rule is J (u (k) )δu (k) =−F (u (k) ), u (k+1) = u (k) + δu (k) , where the Jacobian matrix is given by J u (k) ij = ∂F i ∂u j u=u (k) , i,j = 1,...,s. and is approximated using finite differences. Table 1 summarizes the parameters used. The pseudocode of the classical PME direct problem, using the Barenblatt solution 2.2.1 for the initial and boundary conditions, is summarized in Algorithm 11 of [2]. ParameterValue Spatial domainx∈ [−1, 1] with N = 100 intervals (N + 1 grid points) Time domaint∈ [0, 1] with ∆t = 0.01 (100 time steps) Tolerance (Newton)10 −6 Maximum Newton iterations20 per time step Jacobian approximationFinite differences with perturbation h = 10 −6 Table 1: Parameters for Direct Classical Method 2.1.2 PINN Approach Physics-Informed Neural Networks (PINNs) are built upon standard feedforward neural networks, which act as universal function approximators [12] by learning mappings between inputs and outputs through trainable weights and biases. Their training relies on automatic differentiation together with opti- mization algorithms such as ADAM and L-BFGS [7, 6], to minimize the loss function and accurately approximate PDE solutions. What distinguishes PINNs from traditional neural networks is the fact that they include physical laws, expressed as differential equations, directly in the loss function. To explain, PINNs use the residuals of the governing PDE as part of the loss. This means the network is penalized when it mispredicts known data and also when its predictions violate the underlying physics. For instance, suppose we have a PDE of the form: N [u](x,t;c) = 0, where N is a differential operator acting on the unknown function u(x,t) and c is an underlying pa- rameter of the PDE. A PINN seeks to approximate u with a neural network u θ (x,t), parameterized by weights θ. During training, 7 1. In solving the direct problem, the total loss is composed of the PDE, initial value, and boundary conditions residuals. Also, it may include any additional physical constraints. L direct (θ) =R PDE (θ) +R initial value (θ) +R boundaries (θ) + λ·R constraint (θ). where λ is mathematically speaking the Lagrange multiplier, but in our computational context, we refer to it as a hyperparameter. It is worth noting that any other residual in the total loss can also be multiplied by another hyperparameter. 2. In solving the inverse problem, i.e. recovering c, the total loss is composed of the direct problem loss, along with a data loss. In this way, the network will be penalized for mispredicting both the physics and the data. L inverse (θ) =L direct (θ) +R data (θ) In this section, we give the details of the PINN constructed to solve the direct PME problem that gave the results in Section 2.3. The direct PINN framework follows the formulation presented in [2] and is summarized in the fol- lowing section. The direct problem serves as the foundation for the inverse methodology developed later in this paper. A schematic representation of the direct PINN is shown in Figure 1. Figure 1: Schematic of the direct PINN Neural Network Architecture The solution u(t,x) is approximated using a fully connected neural network u θ (t,x). The network architecture used throughout this work is summarized in Table 2. ComponentSpecification Input layerSize 2 (for t and x) Hidden layers4 layers, each with 20 neurons Activation functionHyperbolic tangent tanh Output layerSingle neuron returning u θ (t,x) Table 2: Architecture of the neural network. 8 weights All weights of the neural network are initialized with the Xavier initialization procedure that works best with tanh activation function. This process initializes the weights by sampling random values from a uniform distribution over the range: W ∼U − r 6 n in + n out , r 6 n in + n out , where n in and n out are the number of input and output units of a layer, respectively [49]. Such initial- ization helps maintain stable gradients during training, especially when activation functions like tanh are employed since it maintains the signal variance across layers constant. Loss Function and Optimization The training objective is to minimize a composite loss L that enforces agreement with the initial and boundary conditions as well as the underlying PDE. LetD t ,D b , and D Ω denote sampled points on the initial boundary t = 0, spatial boundaries x = ±1, and interior domain Ω, respectively. The total loss is: L θ = log 10 (λ u · (L b +L t ) +L PDE )(3) with L b = E (t,x)∈D b (u θ (t,x)− u BC (t,x)) 2 ,(4) L t = E (t,x)∈D t (u θ (t,x)− u 0 (x)) 2 ,(5) L PDE = E (t,x)∈D Ω h ∂ t u θ − ∂ x mu m−1 θ ∂ x u θ 2 i .(6) where E[·] denotes the empirical mean over the sampled training points, i.e., E[f (x)] = 1 N N X i=1 f (x i ), which corresponds to the Mean Squared Error (MSE) used in the loss computation. Gradients are computed using automatic differentiation. Training Procedure The neural network is trained using the following optimization approach: 1. ADAM Optimizer for up to 2000 epochs with a learning rate = 0.001. 2. followed by L-BFGS for up to 500 epochs with a learning rate = 0.05. 3. Early Stopping: The training halts if the validation loss does not improve by 10 −6 over a predefined patience window equals to 200 epochs in our case. The optimizer minimizes the logarithmic loss for stability and to better visualize loss curves, and training points are generated using a Sobol sequence, which ensures a quasi-random coverage of the space-time domain.The network was trained with n int = 256 interior points, n sb = 64 points on each spatial boundary, and n tb = 64 points for the initial condition with a total of 448 points. Evaluation and Accuracy The solution u θ (t,x) is evaluated against the analytical form. We com- pute the relative L 2 -error over the same grid points used by the classical Newton method which will be put in comparison with our PINN. ε rel = ∥u θ − u∥ L 2 ∥u∥ L 2 = s P N i=1 (u θ (t i ,x i )− u(t i ,x i )) 2 P N i=1 u(t i ,x i ) 2 . 9 2.2 Reference Solutions In this section, we present the four different PME solutions on which we will test our methods. 2.2.1 Barenblatt Solution The Barenblatt solution, thoroughly explained in [4], is a well-known self-similar solution to the PME and serves as a fundamental benchmark for validating our numerical methods. It represents the evolution of an initial mass concentrated at a point and is particularly useful due to its explicit analytical form. The Barenblatt solution in one spatial dimension is given by: u(t,x) = t −α F xt −α , where the similarity profile F is defined as: F (η) = C− κη 2 1 m−1 + ,with η = xt −α . Here, m > 1 is the nonlinearity parameter of the PME, and the constants are: α = 1 m + 1 , κ = (m− 1)α 2m = m− 1 2m(m + 1) . The parameter C is a constant that depends on the total mass of the solution and determines the support of u(t,x). The notation (·) + indicates that the expression is set to zero whenever the argument is negative to ensure compact support. This solution will not involve the homogeneous Dirichlet boundary conditions. 2.2.2 Manufactured Solution To further test the accuracy of our solver, we use two manufactured solutions. These are artificial solutions that we plug into the equation to compute the source term f (x,t), so that the equation is exactly satisfied. This helps us evaluate how well the solver can recover known solutions, even when no closed-form analytical solution exists for the original PME. Polynomial Solution We first consider a smooth polynomial function in both time and space: u(x,t) = (1− t) 2 (1− x 2 ) 2 . By plugging this into the equation ∂ t u = ∂ x (mu m−1 ∂ x u) + f (x,t), we obtain the forcing term: f (x,t) =−2(1− t)(1− x 2 ) 2 + 4m(1− t) 2m (1− x 2 ) 2m−1 − 2(2m− 1)x 2 (1− x 2 ) 2m−2 . This solution is zero at the boundaries, so it satisfies the same boundary conditions as our test setup. Damped Harmonic Solution We also test a harmonic function that decays over time: u(x,t) = e −t cos π 3 x , with the corresponding source term: f (x,t) =−e −t cos π 3 x + m π 3 2 e −tm h −(m− 1) cos m−2 π 3 x sin 2 π 3 x + cos m π 3 x i . This solution will not involve the homogeneous Dirichlet boundary conditions. 10 m-Dependent manufactured solution As one can notice, all previously manufactured solutions did not depend on m. Here, we suggest an additional m-dependent solution: u(x,t) = (cos πx 2 ) 2m (1 + t) m with its corresponding source term: f (x,t) = m(1 +t) m−1 cos 2m πx 2 − π 2 2 m 2 (1 +t) m 2 h (2m 2 − 1) cos 2m 2 −2 πx 2 sin 2 πx 2 − cos 2m 2 πx 2 i All these manufactured solutions are used to validate our classical and PINN-based solvers by directly comparing the computed results with the exact ones, as well as to compare the results with those of the classical solver. 2.3 Direct PINN Testing without Data In this section, we validate our classical numerical solver ( 2.1.1) and the PINN approach ( 2.1.2) described against our four reference solutions provided in 2.2. The PINN testing in this section follows the standard approach presented in Section 2.1.2, where no data are incorporated into the loss function. A variation of this standard testing procedure, in which measurement data are added as an additional term in the loss function, is considered later in Section 2.4. First, we test the performance for different values of the polytropic exponent m∈2, 3, 4, 5. Then, we compute the relative L 2 -error between the approximated solutions and the exact solution over the 10201 points of the classical mesh in Table 1: ε rel = ∥u approx − u exact ∥ L 2 ∥u exact ∥ L 2 . and provide a table of the errors for each solution (Tables 3, 6, 9, 12). Other tables are also provided for each solution to compare the time (Tables 5, 8 , 11, 14) and the epochs (Tables 4, 7 , 10, 13) used by each method in each case. The reported epochs are approximate values estimated visually from the loss curves (Appendix A), reflecting the general convergence behavior of each method. Rather than reporting the final training epoch, we report the approximate epoch at which the loss first reached its plateau (i.e., the last meaningful improvement). Consequently, epochs corresponding to a plateau with no significant reduction in the loss, including any patience period preceding early stopping, were not counted. Also, only a visual comparison for the case of m = 3 is presented in this section (Figures 2, 4, 5, 6); for the visuals of the other cases, see Appendix A. For this section, all codes were run in Python using Google Colab with an NVIDIA Tesla T4 GPU [50]. Lastly, for each type of solution, we provide some observations and comments when needed. Barenblatt Solution Results 2.2.1 While both methods are scientifically accurate (relative error below 5% in all cases, as shown in Table 3), the PINN consistently outperformed the classical numerical method in terms of accuracy. On the other hand, the accuracy improved as the nonlinearity parameter m increased for both methods. This is expected, as larger m values lead to more localized Barenblatt profiles, which are easier to approximate numerically and by neural networks. Note that for m = 2, both methods had their largest errors. 11 Table 3: Relative L 2 -errors for the Barenblatt Solution mPINN vs ExactClassical vs ExactPINN vs Classial 21.774 ×10 −2 2.475 ×10 −2 2.591 ×10 −2 35.378 ×10 −4 1.557 ×10 −2 1.315 ×10 −2 43.394 ×10 −4 7.232 ×10 −3 6.404 ×10 −3 51.575 ×10 −4 3.652 ×10 −3 3.322 ×10 −3 Table 4: Training epochs for the Barenblatt solution mAdam epochsLBFGS epochs 22000500 32000500 42000500 52000500 Table 5: time (sec) for the Barenblatt solution mPINN training timeClassical time 2207.374.62 3194.965.31 4154.084.95 5159.395.28 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t PINN Solution 1.00 1.25 1.50 1.75 2.00 2.25 2.50 2.75 3.00 (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 1.00 1.25 1.50 1.75 2.00 2.25 2.50 2.75 3.00 (b) Exact solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Classical Solution 1.00 1.25 1.50 1.75 2.00 2.25 2.50 2.75 3.00 (c) Classical solution Figure 2: visual comparison of Barenblatt numerical solutions for m = 3 To better illustrate the evolution of the diffusion process, a zoomed-in view of the solution is presented over a reduced time interval. 1.000.750.500.250.000.250.500.751.00 x 0.0 0.1 0.2 0.3 t Exact Solution 1.0 1.5 2.0 2.5 3.0 Figure 3: Zoomed-in view of the exact Barenblatt solution for m = 3 for t ∈ [0, 0.3] 12 Polynomial Solution Results 2.2.2 Although the exact solution of the manufactured polynomial case does not depend on m, we still test the PINN for different values of m ∈ 2, 3, 4, 5. The goal is not to compare the solution shapes, since they are visually the same, but to observe how the PINN handles increasing nonlinearity as m increases. 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t PINN Solution 0.0 0.2 0.4 0.6 0.8 (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 0.0 0.2 0.4 0.6 0.8 1.0 (b) Exact solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Classical Solution 0.0 0.2 0.4 0.6 0.8 1.0 (c) Classical solution Figure 4: visual comparison of the Polynomial numerical solutions The visuals are all the same over different values of m, as expected, since the solution is independent of m. However, from the training loss graphs shown in Appendix A, we can observe that as m increases, the number of epochs needed to reach the minimum training loss also increases. This suggests that for higher values of m, the solution becomes more complex and requires more epochs for the model to converge. Despite this, the convergence behavior remains consistent, with the loss gradually decreasing and eventually stabilizing. This indicates that the PINN is able to learn the solution for all values of m, but the learning process takes longer as the nonlinearity strengthens as verified from the Table 7 and 8. Table 6 shows that the relative L 2 -errors of the PINN and exact solutions are low and accurate for all values of m. While the error for m = 2 is slightly higher, all cases are considered accurate, with the PINN performing well and better than the classical method across all other values of m, except for a negligibly higher error in the case of m = 2. Table 6: Relative L 2 -errors for the Polynomial solution mPINN vs ExactClassical vs ExactPINN vs Classical 21.548 ×10 −2 1.012 ×10 −2 2.255 ×10 −2 38.050 ×10 −4 1.134 ×10 −2 1.127 ×10 −2 41.255 ×10 −3 1.186 ×10 −2 1.157 ×10 −2 51.740 ×10 −3 1.215×10 −2 1.180 ×10 −2 13 Table 7: Training epochs for the Polynomial solution mAdam epochsLBFGS epochs 220001 32000310 42000410 52000460 Table 8: Time (sec) for the Polynomial solution mPINN training timeClassical time 238.655.32 3157.235.82 4185.165.59 5194.584.33 Damped Harmonic solution Results 2.2.2 The damped harmonic solution does not depend on m either. Therefore, we perform the same testing as in the polynomial solution case (Section 2.3) for the same reason. 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t PINN Solution 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 (b) Exact solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Classical Solution 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 (c) Classical solution Figure 5: visual comparison of the Harmonic numerical solutions Table 9 shows that the PINN outperforms the classical method in all cases by two orders of magnitudes. Table 9: Relative L 2 -errors for the Damped Harmonic solution mPINN vs ExactClassical vs ExactPINN vs Classical 22.081×10 −5 1.292 ×10 −3 1.287 ×10 −3 32.096 ×10 −5 1.449 ×10 −3 1.451 ×10 −3 43.656×10 −5 1.723 ×10 −3 1.722 ×10 −3 55.156×10 −5 2.049×10 −3 1.566 ×10 −3 Table 10: Training epochs for the Harmonic solution mAdam epochsLBFGS epochs 22000210 32000140 4200065 52000130 Table 11: Time (sec) for the Harmonic solution mPINN training timeClassical time 2149.955.38 3112.426.33 484.345.29 5108.066.21 14 m-dependent solution Results 2.2.2 This solution was harder to approximate using both the classical and the PINN methods. Classically, the higher the m is, the more time it takes to give a solution (Table 14). Meanwhile, the early stopping was triggered in all cases in the PINN case. Moreover, the error increases as m increases in both methods. Table 12 shows that for m = 2, the smallest tested value of m, both the PINN and the classical method have errors of the same order of magnitude, with the PINN being slightly more accurate. As m increases, the errors of both methods also increase. However, the classical method remains more accurate, while the PINN error grows more rapidly. For values of m greater than 2, the classical method gives errors in an approximate range of 0.8% to 2%, whereas the PINN errors range from about 2% to 15%. 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t PINN Solution 1 2 3 4 5 6 7 8 (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 0 1 2 3 4 5 6 7 8 (b) Exact solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Classical Solution 0 1 2 3 4 5 6 7 8 (c) Classical solution Figure 6: visual comparison of the m-dependent numerical solutions Note that we can always keep improving the PINN to our problem by tuning more of the hyperpa- rameters, changing architectures, or doing some computational tricks that can reduce the effect of nonlinearity. However, for the tests and comparisons to be adequate and fair across all the test cases and all the different solutions we have, we decided to fix our model to what is detailed in section 2.1.2 and perform the tests. Table 12: Relative L 2 -errors for the m-dependent solution mPINN vs ExactClassical vs ExactPINN vs Classical 21.586 ×10 −3 2.715 ×10 −3 1.636×10 −3 31.651 ×10 −2 8.514 ×10 −3 1.311×10 −2 47.679 ×10 −2 1.437 ×10 −2 7.074 ×10 −2 51.505×10 −1 1.802 ×10 −2 1.420×10 −1 Table 13: Training epochs for the m-dependent sol. mAdam epochsLBFGS epochs 22000200 35150 45120 5590 Table 14: Time (sec) for the m-dependent solution mPINN training timeClassical time 262.895.66 356.5310.09 443.4511.51 536.14124.33 15 2.4 Direct PINN Testing with Data A natural extension of the direct PINN is to include additional measurement data in the training process rather than minimizing the loss only over the PDE residual together with the initial and boundary conditions. This setting corresponds to the practical scenario in which the governing PDE is known, but a set of observations of the solution is also available. In such a case, the PINN can exploit both the physical constraints imposed by the PDE and the available measurements, potentially improving the quality of the approximation or the time complexity. This experiment is performed only for the polynomial solution. The polynomial test case was selected because, for different values of m, the relative errors obtained by the standard direct PINN range from approximately 10 −2 to 10 −4 . This wide range is representative of the error magnitudes observed for the other manufactured solutions and therefore provides a suitable benchmark for assessing the influence of incorporating measurement data. The only modification with respect to the loss function defined in (3) is the addition of a measurement loss term. The total loss becomes L = log 10 (λ u L u + L int + λ meas L meas ), where λ meas is a hyperparameter chosen to be 10, and L meas = 1 N meas N meas X i=1 u θ (t i ,x i )− u data i 2 . We choose λ meas = 10, equal to the weight assigned to the boundary and initial condition loss (λ u = 10), since both terms enforce agreement with known pointwise values of the solution, whereas the interior loss enforces the governing differential equation. The measurement dataset consists of N meas = 225 exact solution values sampled on a uniform 15× 15 grid over the computational domain (x,t)∈ [−1, 1]× [0, 1]. The results are summarized in Table 15 and compared with the standard direct PINN results reported in Tables 8 and 6. The inclusion of the measurement loss does not lead to a significant improvement in the approximation accuracy. The relative L 2 -errors remain of the same order of magnitude as those obtained with the standard PINN. For m = 4 and m = 5, the errors slightly decrease from 1.255× 10 −3 to 1.008× 10 −3 and from 1.740× 10 −3 to 1.622× 10 −3 , respectively. However, for m = 2 and m = 3, the addition of measurement data slightly increases the error from 1.548× 10 −2 to 1.716× 10 −2 and from 8.050× 10 −4 to 8.214× 10 −4 , respectively. Also, the inclusion of measurement data introduces an additional computational cost, as the network must minimize an extra loss term. mPINN relative errorPINN training time 21.716 ×10 −2 60.74 38.214 ×10 −4 207.00 41.008 ×10 −3 193.70 51.622 ×10 −3 191.69 Table 15: Relative L 2 -errors and training time (second) for the direct PINN applied to the polynomial solution using exact data Therefore, for this test case, where the standard direct PINN already provides accurate solutions, adding additional measurement data is not necessary, as it does not provide a meaningful improvement in accuracy while increasing the training time. It was also worth performing this test on the m-dependent solution, where the standard direct PINN 16 produced larger errors, exceeding 5% for m = 4 and m = 5. The aim is to check whether adding measurement data helps in the cases where the standard PINN struggles to converge. The results are reported in the following Table 16: Table 16: Relative L 2 -errors and training time (second) for the direct PINN applied to the m-dependent solution using exact data mPINN relative errorPINN training time 21.109 ×10 −3 69.66 31.283 ×10 −2 71.18 46.747 ×10 −2 71.32 52.284 ×10 −1 46.68 The addition of measurement data does not resolve the difficulty observed for the m-dependent solution. For m = 2, m = 3, and m = 4, the relative error decreases slightly, but it remains of the same order of magnitude as before, and the errors for m = 4 and m = 5 stay well above 5%. For m = 5, the error even increases, from 1.505× 10 −1 to 2.284× 10 −1 . At the same time, the training time increases in all four cases. These observations are consistent with the conclusion drawn from the polynomial test: adding measurement data does not lead to a meaningful improvement in accuracy and does not rescue the cases where the standard PINN fails, while it increases the training time. In summary, for the direct problem, the PINN achieves accurate solutions close to the classical methods, where the PINN performs better in some cases and the classical method performs better in others, except for the m-dependent solution case, where the difference between the PINN and the classical method is relatively larger than in the other solution cases. Also, in terms of time, the classical method is always faster. However, one should note that the time data presented in the tables for the PINN include the time taken to trigger early stopping, which is equal to the time required to run 200 epochs without notable improvement. Nevertheless, this would still be negligible, and the classical method remains faster. 3 The 2-stage Learning Inverse PINN Since the direct PINN approach provided accurate and stable results, we now extend it to the inverse problem, highlighting the flexibility of PINNs, where only minor modifications are needed to move from solving the direct problem to solving the inverse one. The inverse problem of the PME consists of determining the polytropic parameter m from given measurements. In our study, these measurements are generated from exact reference solutions. We begin by applying a classical optimization-based method using MATLAB fmincon in Section 3.1. Next, we present a PINN to solve the same inverse problem in Section 3.2, where we propose our novel inverse PINN model 3.3.1. Finally, we compare and analyze the performance of these methods through numerical testing in Section 3.4. 3.1 Classical Approach: fmincon MATLAB’s fmincon is an optimization solver that is designed to find the constrained minimum of a multi-variable scalar function from an initial guess. Such a procedure, generally called nonlinear programming or constrained nonlinear optimization, is most appropriate whenever parameters must be 17 estimated within physically reasonable constraints. In this work, we use it to estimate the parameter m of the PME by minimizing the difference between synthetic reference data and our numerical solution, under the constraint 1≤ m≤ 10. The implementation can be summarized as follows: 1. We generate synthetic data from solutions 2.2 with a known m. 2. Define an objective function that computes the error between the numerical and exact solutions J (m) = X i,k u num (x i ,t k ;m)− u exact (x i ,t k ) 2 , 3. For a given m, solve the nonlinear PDE system using Newton’s method at each time step to obtain u num (x,t;m). 4. Use MATLAB’s fmincon to iteratively update m and minimize the objective J (m), subject to the bounds 1≤ m≤ 10. A pseudo-code of the corresponding inverse problem algorithm using the Barenblatt solution is found in Algorithm 8 in [2]. 3.2 PINN Approach Physics-informed neural networks are particularly flexible because once a direct PINN is implemented, only minor modifications are needed to adapt it to an inverse problem. Instead of restating the full direct PINN formulation, in this section we focus only on the adjustments required to estimate unknown parameters from data. Below, we highlight the differences in the loss function, network outputs, and training procedure that distinguish the inverse PINN from the direct case. Standard Inverse PINN Model 1. Neural Network Architecture: Same architecture and initialization, but we treat m as train- able real scalar parameter. 2. Loss function and optimization: In addition to the previous loss elements, we add the mea- surement loss L θ = log 10 (λ u · (L b +L t ) +L PDE + λ m ·L meas ),(7) with L meas the data mismatch term: L meas = E (t,x)∈D meas (u θ (t,x)− u meas (t,x)) 2 , where D meas denotes the set of measurement points where we evaluate the exact solution. These measurement points are generated using the corresponding exact solution. 3. Training Procedure Same as in the direct PINN 2.1.2 18 After these standard modifications for the inverse PINN, the neural network was able to converge only locally, where it provided a good approximation of m only when the initial guess was close to the true value, and large approximation errors otherwise. Therefore, aiming for a global convergence, we started experimenting with several aspects, including different initialization, architecture, optimization techniques, and other details. Among all tested approaches, the most significant improvement came from the introduction of a novel two-stage training PINN framework, which substantially stabilized the inverse optimization process and improved convergence across different initial guesses. Figure 7 shows the results of the inverse problem for the Harmonic solution before and after the two-stage Training Model. For a comparison of the other solutions, see Appendix C. The standard approach is the one in which the only changes over the direct PINN model are the three enumerated points in 3.2, while the two-stage learning model will be detailed in the following section. (a) Standard Inverse PINN(b) 2-Stage Training PINN Figure 7: Relative error of the estimated parameter m with respect to different initial guesses. Each color corresponds to a different true value of m. The x-axis represents the initial guess m 0 , taken around the true value (±50% and 80% perturbations). The y-axis shows the relative error (%). The left plot shows the standard inverse PINN, where the solution is accurate only when the initial guess is close to the true value, while the right plot shows the results after applying the 2-stage training PINN, where the method achieves significantly lower and more stable errors across different initial guesses. The comparison in Figure 7 highlights the main contribution of this work. While the standard inverse PINN behaves as a locally convergent method that strongly, the proposed two-stage framework significantly improves robustness and allows accurate parameter recovery across a much wider range of initial guesses. This demonstrates that the training schedule itself plays a critical role in stabilizing inverse PINN optimization for nonlinear PDEs such as the PME. 3.3 Inverse PINN Design Experiments In the following parts of this section, for each PINN component, we explain the different trials we conducted and highlight what worked best and was used in the final proposed two-stage inverse PINN framework 3.3 that produced the results in section 3.4. The following modifications collectively led to the final inverse PINN model 3.3.1 proposed in this work. 19 Neural Network Architecture For the inverse PINN, we first started experimenting by increasing and decreasing the length (i.e., number of neurons per layer) and depth (i.e., the number of layers of the neural network) of our neural network, but no clear improvements were shown. Then, as suggested and discussed in the literature [46], we tried the narrow-wide-narrow and wide-narrow-wide architectures, but again the initial configuration used in the direct problem 2 gave the best results, so we kept it. Weights We experimented with several weight initializations to improve training dynamics and reduce the error in estimating m: • Xavier normal: Xavier Glorot normal initialization • Xavier uniform: Xavier Glorot uniform initialization • kaiming normal: He normal initialization • orthogonal: Orthogonal initialization • scalednormal: Custom scaled normal initialization Initially, in the direct problem, we used the Xavier uniform scheme, but it was shown that the Xavier normal initialization consistently produced better convergence and more accurate parameter recovery in the inverse setting. Even though both Xavier uniform and normal initializations have the same variance and aim to prevent vanishing or exploding gradients, the normal distribution, due to its unbounded support and variance characteristics [49], proved more effective for our PINN training. Mathematically, the Glorot initialization selects the variance of each layer’s weights such that forward activations and backward gradients remain stable across layers. For a layer with n-in and n-out number of neurons, the target variance is given by Var(w) = 2 nin + nout . This variance can be realized either through a uniform distribution, w ∼ U −g r 6 nin + nout , g r 6 nin + nout ! , or through a normal distribution, w ∼N 0, g 2 2 nin + nout , with g = 1 in our case. The Xavier normal initialization gave us better results in terms of errors. Stability We also did the following modifications to enhance stability: • Since m is known to be positive, we parameterize it as m = exp(bm), This formulation guarantees m > 0 by construction and avoids the need for manual clipping. 20 • we applied L2 gradient clipping to prevent instability caused by large gradients during back- propagation. At each training step, the total gradient norm ∥g∥ over all trainable parameters is computed. If ∥g∥ > max norm, the gradients are rescaled according to g← g· max norm ∥g∥ , with maxnorm = 1 in our implementation. This limits excessively large parameter updates specifically encountered when m is big, and prevents the occurrence of NaN values during training. 3.3.1 The Proposed Two-Stage Training Inverse PINN Model We increased the number of training points, so the model used 2048 interior points (n int ), 256 spatial boundary points per side (n sb ), 256 temporal boundary points (n tb ), and 225 measurement points (n meas = 15 × 15) uniformly spread over the domain. We initially tried to use the same training procedure as in the direct problem (jointly minimizing PDE, initial/boundary, and measurement losses with fixed hyperparameters (i.e., loss weights)). However, we observed that the recovered m was highly sensitive to the manual choice of loss weights, and we could not obtain a reliable convergence behavior across different initial guesses m 0 (i.e., the model did not consistently converge to the true m for different initial guesses). A natural idea was then to make the loss weights learnable parameters and optimize them during training, but this behaved poorly in practice: it led to unstable training and catastrophic performance even for the direct problem. This suggested that, in our setting, adding more trainable degrees of freedom makes optimization harder rather than easier. Motivated by these observations, we propose the two-stage training PINN, which is specifically designed to address these problems. The main idea behind the proposed two-stage training PINN is to separate the learning of the solution structure from the learning of the physical parameter m. Instead of optimizing both u θ and m simultaneously from the beginning, the network is first guided toward learning a physically meaningful solution profile before updating the unknown parameter. Two-stage strategy Since we already validated in the direct problem that the network can approxi- mate accurate solutions when the PDE parameter is known, we adopted the following training schedule: 1. Stage 1 (Warm-up, 20% of epochs): m is frozen at the initial guess m 0 . The network u θ (t,x) is trained to satisfy the PDE and initial/boundary conditions as if it is solving the direct problem with m = m 0 the initial guess. 2. Stage 2 (Main training): m is unfrozen and we jointly optimize (θ,m). Intuitively, Stage 1 helps the model learn a reasonable solution structure before it starts adjusting the physical parameter. This reduces the tendency of the optimizer to use m to compensate for a poorly learned u θ through incorrect updates of m, which was one of the main causes of unstable convergence in the standard inverse PINN formulation. Also, in this inverse training, we only used ADAM optimizer with 10,000 total epochs. 21 Curriculum via hyperparameter annealing for measurements Even with two-stage training, the choice of λ m remains important. Instead of selecting a single fixed value, we used a simple curriculum learning (sometimes referred to as loss-weight annealing): during the warm-up, λ m is kept small at 10, and after warm-up it is increased gradually to its final value at 100. Concretely, letting E be the total number of epochs and E w the warm-up epochs, we use: λ m (e) = λ init m ,e < E w , λ init m + e− E w E− E w λ final m − λ init m , e≥ E w , Figure 8: Training Diagram The pseudo-code of the full procedure is summarized in Algorithm 1. Algorithm 1 Two-Stage Training Pseudo-code for the Inverse PINN Require: Initial guess m 0 ; total epochs E; warm-up fraction f w ; λ u ; λ init m ,λ final m 1: E w ←⌊f w · E⌋ Stage 1: Warm-up (e = 0,...,E w − 1) 2: Freeze m at m 0 (∇ m ← 0) 3: for e = 0 to E w − 1 do 4:Update θ only by minimizing log 10 λ u (L b +L t ) +L PDE + λ init m L meas 5: end for Stage 2: Main Training (e = E w ,...,E− 1) 6: Unfreeze m 7: for e = E w to E− 1 do 8: λ m (e)← λ init m + e− E w E− E w λ final m − λ init m 9:Update (θ, m) jointly by minimizing log 10 (λ u (L b +L t ) +L PDE + λ m (e)L meas ) 10: end for return Trained θ, estimated m 22 Relation to prior work. The idea of splitting training into stages is consistent with existing PINN practices. For example, a two-stage PINN has been used in the direct setting where a second stage adds extra physical structure (e.g., conserved quantities) to refine the solution [43]. In a related direction, a two-stage learning strategy has been proposed where a pre-training phase helps boundary losses converge, followed by a main phase that balances the full objective [44]. Our warm-up (freeze-unfreeze) schedule follows the same general motivation: stabilize training by learning easier constraints first. Our gradual increase of λ m is also aligned with curriculum learning ideas. Curriculum learning was introduced as training models by presenting easier samples/constraints first and progressively increasing difficulty [45]. Recently, curriculum strategies have been adapted to PINNs and shown to improve convergence and solution quality [47]. Similar curriculum training has also been used in time-dependent physics problems by splitting training along temporal intervals and training progressively over time [48]. In our inverse PME setting, we apply this principle at the loss level (annealing λ m ) to smoothly introduce measurement data while maintaining stable PDE/BC learning in our inverse problem. 3.4 Testings and results We test our classical and PINN approaches on all the different reference solutions for m ∈ 2, 3, 4, 5. To study the sensitivity of each method to the initial condition, each value of m is tested using four different initial conditions corresponding to±50% and±80% of the value. To better analyze the results, they are represented by plots showing the relative error versus the initial guess for every value of m and for all four reference solutions. For this section, the PINN codes were run in Python on Google Colab with an NVIDIA Tesla T4 GPU [50], while the classical codes were run locally in MATLAB R2024a (Version 24.1) using MATLAB’s fmincon. When small adjustments are made in either our classical or PINN approaches to improve results or overcome failures and errors, they are noted in their corresponding sections. If no comments are present, this means that the results were obtained using the following configurations for the classical and PINN methods, along with the configuration of the fmincon, in tables 1, 18, and 17 respectively. Table 17: fmincon Configuration ParameterValue Optimization algorithmInterior-point (MATLAB default) Maximum iterations50 Optimality tolerance10 −6 Lower boundm = 1 Upper boundm = 10 To ensure a fair comparison between the classical inverse solver and the PINN approach, we used the same uniform distribution of measurements for the classical method (Figure 9). Upon testing, some classical objective functions were undefined for some initial guesses, others produced numerical instabilities and sigularities and this resulted in a failed run. Therefore, we wrapped the call inside a try–catch block so that in case something went wrong during the run, the run was tagged as ’failed’ in the results file so we don’t crash the whole script. This is translated into non-existent points in the following plots. On the contrary, the PINN does not implement the PDE step-by-step but learns a function and adjusts the parameter; therefore, this allows it to handle a very wide range of initial values with better stability and without crashing. In addition to the tests using data generated from the exact reference solutions, the robustness of the inverse PINN is further investigated by testing it with noisy data, where the 23 measurement data is generated from the direct PINN solution and then perturbed with different levels of noise. This analysis is presented in Section 3.4.1 and Section 3.4.2 respectively. Table 18: Configurations and Parameters for Inverse PINN Method CategoryParameterValue/Description Training Points ( see Fig 9 )nint (interior points)2048 nsb (spatial boundary points per side)256 ntb (temporal boundary points)256 nmeas (measurement points)15x15 = 225 DomainTime domain[0, 1] Space domain[-1, 1] Loss Weightslambdau (boundary/initial loss weight)10 lambdam (measurement loss weight)100 Neural Network (approximatesolution)Input dimension2 (t, x) Output dimension1 (u) Hidden layers4 Neurons per layer20 Activation functionnn.Tanh() InitializationXavier normal , bias=0 Retrain seed42 SamplingGeneratortorch.quasirandom.SobolEngine(dimension=2) Optimizer - ADAMLearning rate (network)5e-4 Learning rate (m parameter)1e-3 Training Confignumepochs10000 earlystoppingpatience500 earlystoppingmindelta1e-7 Figure 9: Distribution of Training Points 3.4.1 Inverse PINN testing without Noisy Data In this section, the inverse PINN is first tested using data generated directly from the exact solution, without adding any additional perturbation or considering the direct PINN solution. 24 Barenblatt Solution The testing results for the Barenblatt solution are presented and visualized in the following Table 19 and Figure 10: true minitial guessfmincon relative errorPINN relative errorfmincontimePINN training time 2 0.4failed1.74%2.30228.70 1failed4.67%0.70238.43 30.28%1.07%14.50229.50 3.60.28%1.71%19.88124.91 3 0.6failed0.79%0.76230.82 1.50.37%0.52%12.52238.57 4.50.37%0.11%11.16216.04 5.40.37%0.19%10.21212.74 4 0.8failed3.60%0.72215.14 20.41%3.92%8.41216.10 60.41%2.50%8.16206.24 7.20.41%79.00%7.0058.49 5 1failed8.73%0.68162.13 2.5failed4.11%0.56196.47 7.50.19%2.76%6.9258.37 90.19%75.11%7.5978.01 Table 19: Relative error and computational time (seconds) comparison between the classical method and the PINN approach for the Barenblatt solution with different values of m and initial guesses. (a) fmincon results(b) PINN results Figure 10: Inverse Barenblatt solution results plots As explained before, many classical cases failed, while the PINN was more stable and produced results for all cases. However, when the classical method did run successfully, it mainly gave more accurate results (smaller relative error). Still, the errors were generally considered accurate, being below 5% for all successful classical and PINN cases, with a few exceptions for the PINN. After seeing these results, we noticed that the PINN relative error increased with m , and we wanted to understand why the errors for the last cases of m = 4 and m = 5, with their corresponding largest 25 initial guesses, gave such off results. So we repeated the runs, but this time we plotted the evolution of both the training loss and the approximation of m versus the epochs. We noticed that the loss in all cases of m followed a similar trend, where we have a sudden decrease, then a plateau, and then a new decrease, as shown in the example case of m = 3 with the initial guess 4.5. Figure 11: Training loss and m evolution for case m=3 with initial guess =4.5 However, we noticed that in the case of m = 4 with an initial guess of 7.5, the training stopped in the plateau region at 4000 epochs due to the early stopping function. We expected it to follow the same loss trend as the other cases. Therefore, when we removed early stopping, the error in this case decreased from 79% to 1.38%. (a) with early stopping(b) without early stopping Figure 12: Training loss and m evolution for case m=4 with initial guess =7.5, before and after removing the early stopping function m-independent solutions A first try to run the classical solver ended up with numerical errors and singularities and failed for all cases. Some updated values of u may become zero or negative, which causes instability when computing terms such as u m−1 , this is because the bounds fmincon ensures that 26 the parameter m stays between 1.1 and 10, but it does not guarantee that the numerical solution u remains positive during Newton iterations. Therefore, to avoid this issue, we imposed a small lower bound using u = max(u, 10 −12 ), which keeps the solution positive and improves stability. Everything worked perfectly after this change as shown in Tables 20 and 21. true minitial guessfmincon relative errorPINN relative errorfmincon timePINN training time 2 0.41.10%0.51%30.05360.64 11.10%0.28%29.46356.92 31.10%0.15%16.38298.42 3.61.10%0.22%34.53354.22 3 0.60.07%0.14%33.93360.07 1.50.07%0.20%24.96362.01 4.50.07%0.13%41.15363.28 5.40.07%0.11%52.86363.28 4 0.80.22%0.54%25.95358.70 20.22%0.25%38.87349.53 60.22%0.45%39.00360.74 7.20.22%0.26%35.97359.90 5 10.14%76.74%35.50143.21 2.50.14%0.11%63.15298.59 7.50.14%0.45%35.70356.80 90.14%0.31%46.35356.47 Table 20: Relative error and computational time (seconds) comparison between the classical method and the PINN approach for the polynomial solution with different values of m and initial guesses. (a) fmincon results(b) PINN results Figure 13: Inverse Polynomial solution plots 27 true minitial guessfmincon relative errorPINN relative errorfmincon timePINN training time 2 0.40.85%0.94%5.38338.86 10.85%1.37%7.32338.78 30.85%0.15%12.32250.15 3.60.85%0.11%14.43341.01 3 0.60.70%0.31%9.31352.13 1.50.70%0.33%7.77349.41 4.50.70%0.12%7.46349.22 5.40.70%0.12%9.19309.47 4 0.80.71%0.20%7.59343.31 20.71%0.21%7.17342.84 60.71%0.07%7.63284.96 7.20.71%0.01%7.61343.86 5 10.80%0.37%8.58344.33 2.50.80%0.12%7.57345.70 7.50.80%0.08%7.58343.78 9failed0.17%1.57344.36 Table 21: Relative error and computational time (seconds) comparison between the classical method and the inverse PINN approach for the harmonic solution with different values of m and initial guesses. (a) fmincon results(b) PINN results Figure 14: Inverse Harmonic solution plots m-dependent solution The positivity of u in the classical solver was also forced in this case. As shown in 22, the PINN model clearly performs differently depending on the nonlinearity parameter m. For m = 2, almost all initial guesses give relative errors approximately within the 5% threshold, except for the case where the initial guess was 50% above the true value. As m increases, the errors grow significantly, reaching between 20% and 80% across the tested initial guesses. For m = 5 across all initial guesses, and for m = 3 and 4 with initial guesses that are +50% and +80% away from the true value, the relative errors are equal to the initial guess offset itself. This means the PINN did not learn anything and stayed stuck at its initial guess. This confirms that the model struggles as nonlinearity increases, learning best at m = 2 and worst at m = 5. 28 true minitial guessfmincon relative errorPINN relative errorfmincon timePINN training time 2 0.40.08%6.79%107.29379.69 10.08%2.83%110.53382.94 30.08%49.85%71.56266.39 3.60.08%0.15%55.11366.76 3 0.6failed9.49%26.84370.63 1.50.27%29.66%1248.56376.23 4.5failed51.31%0.69369.48 5.4failed81.89%12.34369.26 4 0.8failed22.32%39.68377.16 2failed19.84%27.14370.12 6failed50.46%0.28364.21 7.2failed79.71%0.29363.13 5 1failed80.00%9.76179.46 2.5failed50.00%0.95179.96 7.5failed50.00%4.73177.85 9failed80.00%0.11178.40 Table 22: Relative error and computational time (seconds) comparison between the classical method and the PINN approach for the mdependent solution with different values of m and initial guesses. (a) fmincon results(b) PINN results Figure 15: Inverse m-dependent solution plots Looking at the training loss evolution shown in Appendix B, it can be seen that in many cases either early stopping was triggered or the epochs ran out right when the loss was starting to go down. To check this, the number of epochs was increased from 10,000 to 20,000 for the case of m = 2 with an initial guess 50% above the true value, and the PINN kept learning, bringing the error down to 2.9% as shown in figure 16. The loss trends for m = 3 and 4 with initial guesses of -50% and -80% suggest that more epochs could give better results in those cases as well. However, for cases where the loss does not improve at all and stays flat, other changes are needed, such as rescaling the problem, using the L-BFGS optimizer, or trying other improved training techniques. 29 (a) with early stopping(b) without early stopping Figure 16: Training loss and m evolution for case m=2 with initial guess =3, after increasing the epochs and removing the early stopping, for the m-dependent solution On the other hand, the classical method was able to accurately estimate m only for m = 2 with all initial guesses and m = 3 with an initial guess of 1.5 (-50%), while failing to produce results for all other cases due to numerical instabilities and matrix singularities. Overall, for the inverse problem, the PINN model proposed in this work achieved results comparable to the classical method in terms of accuracy across all tested cases. Even in the m-dependent solution case, which was the most challenging for both approaches, the PINN was still able to produce results where the classical method completely failed due to numerical instabilities. While not all PINN results were accurate, the model still has room for improvement, as one can explore different optimization strategies, architectural changes, and rescaling tricks to push the results further. The classical method, on the other hand, offers no such flexibility. Time comparison In this section, the computational times of the PINN approach and the classical method are compared for different test cases. The following plots (Figure 17) illustrate the execution time of each method and highlight their average performance. Overall, the fmincon method is consistently faster than the PINN approach in all cases. Its average computational time ranges from about 7 s to 36 s depending on the solution, except for the m-dependent solution where it rises to around 107 s, while the PINN method requires roughly 300 s to 340 s on average. At first glance, the substantial difference in computational time between the two approaches was unexpected. Indeed, the classical inverse solver relies on fmincon, which repeatedly solves the di- rect problem during the optimization process. Based on the direct problem experiments presented in Section 2.3, solving a single direct problem using the classical Newton method required between approx- imately 4 s and 24 s in the Python implementation, depending on the considered test case. For instance, for the harmonic solution, a single direct solve required on average about 6 s. Since the inverse optimization typically converges in approximately eight iterations and each iteration requires at least one direct solve, one would expect the overall computational time of the classical inverse method to be at least 48 s for the harmonic solution. However, the measured execution time in MATLAB was only about 7 s, indicating a significant discrepancy. 30 Polynomial Solution Harmonic Solution Barenblatt Solution m-depenednt Figure 17: Computational time comparison of PINN and the classical method across m-dependent and m- independent solutions. Dashed lines show average times. 31 To investigate this observation, the direct classical solver was implemented and executed indepen- dently in MATLAB using the same numerical method and discretization parameters as in the Python implementation. The comparison revealed that MATLAB executes the direct solver considerably faster. For example, solving the harmonic direct problem for all tested values of m required 26.34 s in Python, whereas the corresponding MATLAB implementation required only 1.21 s. This comparison indicates that the large difference observed in the inverse problem timings is primarily due to the execution speed of the two programming environments rather than the optimization procedure itself. In particular, the Python implementation contains several nested loops that are executed much less efficiently than the corresponding MATLAB implementation, leading to a significantly higher computational cost despite both implementations employing the same numerical algorithm. Table 23 summarizes the computation times (in seconds) of the same classical method presented in 2.1.1 for the four manufactured solutions using MATLAB instead of Python for the direct problem. Table 23: Computation time (seconds) for solving the direct problem using MATLAB for different manufactured solutions. mBarenblattPolynomialHarmonicm-dependent 20.0780.0870.1820.134 30.0400.0530.0330.054 40.3880.5290.4960.938 50.3780.5240.4911.133 3.4.2 Inverse PINN testing with Noisy Data Another aspect that should be investigated is the performance of the inverse PINN when the available solution data is not obtained from the exact solution, but rather from a perturbed dataset. In this section, the inverse PINN is tested under three different data scenarios. First, the measurement dataset is generated from the direct PINN solution, where the approximation error of the direct PINN introduces a deviation from the exact solution. Second, an additional 1% noise is added to the direct PINN- generated dataset, and finally, the same test is performed with 5% noise. These experiments aim to evaluate the robustness of the inverse PINN when the available data becomes increasingly different from the exact solution. As in Section 2.4, this testing is performed only for the polynomial solution due to the range of relative errors obtained for different values of m, which provides a suitable benchmark for testing the effect of data perturbations. The noise is added to the measurement dataset as follows. Let u PINN i denote the value of the direct PINN solution at the measurement point (t i ,x i ), for i = 1,...,N meas , where N meas = 225 corresponds to the 15× 15 grid described in Section 2.4. The perturbed dataset is obtained by adding an independent Gaussian perturbation to each measurement, u obs i = u PINN i + ε i , ε i ∼N (0,σ 2 ), i = 1,...,N meas ,(8) where the standard deviation σ is chosen relative to the magnitude of the data itself, σ = δ v u u t 1 N meas N meas X i=1 (u PINN i ) 2 ,(9) and δ is the prescribed noise level, taken here as δ = 0.01 and δ = 0.05, corresponding to 1% and 5% noise respectively. 32 Two remarks are in order regarding this choice. First, the perturbation is additive rather than multiplicative. Since the polynomial solution u(t,x) = (1− t) 2 (1− x 2 ) 2 vanishes at x = ±1 and at t = 1, a perturbation proportional to the local value of the solution would leave these measurements unperturbed, which does not reflect the behaviour of a physical measurement device. Scaling σ by the root mean square of the data instead assigns the same absolute perturbation to every measurement point, independently of the local magnitude of the solution. Second, the noise is applied only to the measurement dataset; the initial and boundary conditions are kept exact, as these are assumed to be known. The random perturbations are generated with a fixed seed, so that the same realisation of the noise is used across all runs and the results reported below are reproducible. The remaining components of the inverse problem, namely the network architecture, the optimizer, the loss weights and the number of training epochs, are left unchanged from Section 3.2, so that any variation in the recovered value of m can be attributed to the perturbation of the data alone.The parameters used for the data perturbation are summarized in Table 24. Table 24: Parameters of the data perturbation used in the inverse PINN experiments. ParameterValue Noise modelAdditive Gaussian, ε i ∼N (0,σ 2 ) Noise levels δ0%, 1%, 5% Standard deviation σδ· RMS u PINN Perturbed quantityMeasurement dataset only (from direct PINN) Number of perturbed pointsN meas = 225 Random seed42 The results obtained for the three data scenarios are reported in Tables 25, 26, and 27 Table 25: PINN inverse results for the polynomial solution using measurement data generated from the direct PINN with 0% additional noise true minitial guessrecovered mPINN relative errorPINN training time s 2 0.42.000.22%338.66 1.02.000.01%285.76 3.02.000.30%224.85 3.62.000.35%244.06 3 0.63.000.28%341.31 1.53.000.19%337.40 4.53.000.16%310.95 5.43.000.09%310.50 4 0.84.020.56%343.50 2.04.020.53%342.98 6.04.020.53%346.10 7.24.010.37%344.70 5 1.01.1477.17%136.88 2.54.990.02%340.89 7.55.020.51%343.42 9.05.020.42%343.97 33 Table 26: PINN inverse results for the polynomial solution using measurement data generated from the direct PINN with 1% additional noise true minitial guessrecovered mPINN relative error pctPINN training time s 2 0.42.000.04%355.85 11.990.22%254.72 31.990.02%201.63 3.62.000.40%223.58 3 0.63.000.04%359.60 1.53.000.07%360.32 4.53.000.12%227.98 5.43.000.02%233.90 4 0.84.010.41%356.59 24.010.30%329.19 64.010.40%246.92 7.24.000.24%326.11 5 11.1576.96%141.84 2.54.990.13%354.21 7.55.010.39%324.37 95.010.34%324.97 Table 27: PINN inverse results for the polynomial solution using measurement data generated from the direct PINN with 5% additional noise . true minitial guessrecovered mPINN relative errorPINN training time s 2 0.41.980.58%199.68 11.990.38%178.59 31.990.39%165.93 3.61.990.16%176.49 3 0.62.961.27%210.94 1.52.961.20%197.06 4.52.990.27%172.51 5.42.990.25%176.41 4 0.83.980.49%222.55 23.990.12%191.97 64.000.14%171.97 7.24.000.12%177.12 5 11.1776.48%142.86 2.54.980.37%205.75 7.55.030.61%164.99 95.020.56%173.50 Overall, across all three data scenarios, the recovered value of m remains accurate, with the relative error not exceeding 1.5% in every case. The only exception is the case where the true m is 5 and the initial guess is 1, for which the error stays between 76% and 77% across all perturbation levels. This case, however, already fails in the noise-free scenario, where the error is 76.74%; and since the noisy datasets are obtained from the same direct PINN solution, this behaviour is carried over to the 1% and 34 5% cases as well. Apart from this case, the recovered m remains stable as the noise level increases, which indicates that the inverse PINN is indeed robust to perturbations in the measurement data. 4 Conclusion In this paper, we developed a PINN framework for solving the inverse one-dimensional Porous Medium Equation. The main objective was to establish a robust inverse PINN methodology and provide a strong foundation for future extensions to higher-dimensional PME problem. To achieve this, we investigated the factors affecting inverse PINN performance and proposed a novel two-stage learning framework to improve convergence robustness and parameter recovery. The results showed that the proposed framework successfully solves both the direct and inverse PME problems and produces accurate solutions across different manufactured solutions and values of m . In particular, the proposed two-stage strategy improves the robustness of the inverse problem and reduces the dependence on the initial parameter guess. Future work will focus on extending the framework to two-dimensional and higher-dimensional PME problems, including Barenblatt solutions and solutions generated using finite difference or other numer- ical methods for validation, comparison, and data collection. At this point, one clear advantage of the proposed PINN framework is that these high-dimensional extensions require only minor modifications to the existing code, mainly through adding extra spatial coordinates to the network inputs, updating the PDE residual, and sampling collocation points in the new domains. Overall, the developed framework provides a solid foundation for future studies of more complex PME problems, where the advantages of PINNs are expected to become more significant. References [1] Moufawad, S. M., Nassif, N. R., and Triki, F. Direct and Inverse Problem for Gas Diffusion in Polar Firn. Communications on Analysis and Computation, 2024, 2(1): 71-109. doi: 10.3934/cac.2024005 [2] Al Helwani, N. M., Moufawad, S. M., Sakr, G. C. . “Solving Inverse PDE Problems using Min- imization Methods and AI”. arXiv preprint, arXiv:2603.01731, 2023. https://arxiv.org/abs/ 2603.01731 [3] Caro, P., and Ruiz, A. “An inverse problem for data-driven prediction in quantum mechanics”. arXiv preprint, arXiv:2302.10553, 2023. https://arxiv.org/abs/2302.10553 [4] J. L. V ́azquez, The Porous Medium Equation: Mathematical Theory, Oxford Mathematical Mono- graphs, Clarendon Press / Oxford University Press, 2007. Available: https://doi.org/10.1093/ acprof:oso/9780198569039.001.0001 [5] A. Gholami, A. Mang, and G. Biros, An inverse problem formulation for parameter estimation of a reaction–diffusion model of low grade gliomas, Journal of Mathematical Biology, vol. 72, p. 409–433, 2016. Available: https://doi.org/10.1007/s00285-015-0888-x [6] D. P. Kingma and J. Ba, Adam: A Method for Stochastic Optimization, International Conference on Learning Representations (ICLR), 2015. Available: https://arxiv.org/abs/1412.6980 [7] D. C. Liu and J. Nocedal, On the limited memory BFGS method for large scale optimization, Mathematical Programming, vol. 45, no. 1, p. 503–528, 1989. doi: 10.1007/BF01589116 35 [8] M. Raissi, P. Perdikaris, and G. E. Karniadakis, Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equa- tions, Journal of Computational Physics, vol. 378, p. 686–707, 2019. doi: 10.1016/j.jcp.2018.10.045 [9] A. Krizhevsky, I. Sutskever, and G. E. Hinton, “ImageNet classification with deep convolutional neural networks,” Advances in Neural Information Processing Systems, vol. 25, p. 1097–1105, 2012. [10] Y. LeCun, Y. Bengio, and G. Hinton, “Deep learning,” Nature, vol. 521, no. 7553, p. 436–444, 2015. doi:10.1038/nature14539. [11] M. Raissi, P. Perdikaris, and G. E. Karniadakis, “Physics Informed Deep Learning (Part I): Data- Driven Solutions of Nonlinear Partial Differential Equations,” arXiv preprint arXiv:1711.10561, 2017. https://arxiv.org/abs/1711.10561. [12] K. Hornik, Approximation capabilities of multilayer feedforward networks, Neural Networks, vol. 4, no. 2, p. 251–257, 1991. doi: 10.1016/0893-6080(91)90009-T [13] Paszke, A., Gross, S., Massa, F., et al. ”PyTorch: An Imperative Style, High-Performance Deep Learning Library”. Advances in Neural Information Processing Systems, Vol. 32, 2019. https: //arxiv.org/abs/1912.01703 [14] A. G. Baydin, B. A. Pearlmutter, A. A. Radul, and J. M. Siskind, “Automatic differentiation in machine learning: a survey,” Journal of Machine Learning Research, vol. 18, p. 1–43, 2018. https://w.jmlr.org/papers/v18/17-468.html. [15] A. J. Meade, Jr. and A. A. Fernandez, The numerical solution of linear ordinary differential equa- tions by feedforward neural networks, Mathematical and Computer Modelling, vol. 19, no. 12, p. 1– 25, 1994. Available: https://doi.org/10.1016/0895-7177(94)90095-7 [16] B. Ph. van Milligen, V. Tribaldos, and J. A. Jim ́enez, Neural network differential equation and plasma equilibrium solver, Physical Review Letters, vol. 75, p. 3594–3597, 1995. Available: https: //doi.org/10.1103/PhysRevLett.75.3594 [17] I. E. Lagaris, A. Likas, and D. I. Fotiadis, Artificial neural networks for solving ordinary and partial differential equations, IEEE Transactions on Neural Networks, vol. 9, no. 5, p. 987–1000, Sept. 1998. Available: https://doi.org/10.1109/72.712178 [18] I. E. Lagaris, A. C. Likas, and D. G. Papageorgiou, Neural-network methods for boundary value problems with irregular boundaries, IEEE Transactions on Neural Networks, vol. 11, no. 5, p. 1041– 1049, 2000. Available: https://doi.org/10.1109/72.870037 [19] N. Zobeiry and K. D. Humfeld, A physics-informed machine learning approach for solving heat transfer equation in advanced manufacturing and engineering applications, Engineering Applica- tions of Artificial Intelligence, vol. 101, p. 104232, 2021. Available: https://doi.org/10.1016/j. engappai.2021.104232 [20] S. Mishra and R. Molinaro, Physics informed neural networks for simulating radiative transfer, Journal of Quantitative Spectroscopy and Radiative Transfer, vol. 270, p. 107705, 2021. Available: https://doi.org/10.1016/j.jqsrt.2021.107705 36 [21] Q. Zhu, Z. Liu, and J. Yan, Machine learning for metal additive manufacturing: predicting tem- perature and melt pool fluid dynamics using physics-informed neural networks, Computational Me- chanics, vol. 67, p. 619–635, 2021. Available: https://doi.org/10.1007/s00466-020-01952-9 [22] L. Lu, X. Meng, Z. Mao, and G. E. Karniadakis, DeepXDE: A deep learning library for solving differential equations, SIAM Review, vol. 63, no. 1, p. 208–228, 2021. Available: https://doi. org/10.1137/19M1274067 [23] F. Chen, D. Sondak, P. Protopapas, M. Mattheakis, S. Liu, D. Agarwal, and M. D. Giovanni, NeuroDiffEq: A Python package for solving differential equations with neural networks, Journal of Open Source Software, vol. 5, no. 46, p. 1931, 2020. Available: https://doi.org/10.21105/joss. 01931 [24] K. Shukla, A. K. Dwivedi, P. B. Nair, and S. T. Wereley, Parallel physics-informed neural networks via domain decomposition, Journal of Computational Physics, vol. 447, no. C, Sep. 2021, 110683. Available: https://doi.org/10.1016/j.jcp.2021.110683 [25] B. Moseley, A. Markham, and T. Nissen-Meyer, Finite basis physics-informed neural networks (FBPINNs): a scalable domain decomposition approach for solving differential equations, Ad- vances in Computational Mathematics, vol. 49, p. 62, 2023. Available: https://doi.org/10.1007/ s10444-023-10065-9 [26] A. D. Jagtap, K. Kawaguchi, and G. E. Karniadakis, Locally adaptive activation functions with slope recovery for deep and physics-informed neural networks, Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences, vol. 476, p. 20200334, 2020. Available: https: //doi.org/10.1098/rspa.2020.0334 [27] E. Seiler, W. Lei, and P. Protopapas, Stiff Transfer Learning for Physics-Informed Neural Networks, arXiv preprint arXiv:2501.17281, 2025. Available: https://arxiv.org/abs/2501.17281 [28] Y. Wang, J. Bai, M. S. Eshaghi, C. Anitescu, X. Zhuang, T. Rabczuk, and Y. Liu, Transfer Learning in Physics-Informed Neural Networks: Full Fine-Tuning, Lightweight Fine-Tuning, and Low-Rank Adaptation, arXiv preprint arXiv:2502.00782, 2025. Available: https://arxiv.org/abs/2502. 00782 [29] M. Berardi et al., Inverse Physics-Informed Neural Networks for transport models in porous materi- als, Computer Methods in Applied Mechanics and Engineering, vol. 435, p. 117628, 2025. Available: https://doi.org/10.1016/j.cma.2024.117628 [30] N. Sukumar and A. Srivastava, Exact imposition of boundary conditions with distance functions in physics-informed deep neural networks, Computer Methods in Applied Mechanics and Engineering, vol. 389, Article 114333, 2022. [31] Z. Zhou, L. Wang, and Z. Yan, Deep neural networks learning forward and inverse problems of two-dimensional nonlinear wave equations with rational solitons, Computers & Mathematics with Applications, vol. 151, p. 164–171, 2023. [32] H. Gao, L. Sun, and J.-X. Wang, PhyGeoNet: physics-informed geometry-adaptive convolutional neural networks for solving parameterized steady-state PDEs on irregular domain, Journal of Com- putational Physics, vol. 428, p. 110079, 2021. Available: https://doi.org/10.1016/j.jcp.2020. 110079 37 [33] Chew, J. V. L., Sulaiman, J., Sunarto, A. ”Solving One-Dimensional Porous Medium Equation Using Unconditionally Stable Half-Sweep Finite Difference and SOR Method”. Mathematics and Statistics, Vol. 9, No. 2, p. 166–171, 2021. DOI: 10.13189/ms.2021.090211. http://w.hrpub.org [34] Blessing, L., Barth, A. “An Inverse Boundary Value Problem for the Porous Medium Equation: Numerical Methods”. GAMM Archive for Students, Vol. 7, No. 1, 2025. DOI: 10.14464/gam- mas.v7i1.907. https://doi.org/10.14464/gammas.v7i1.907 [35] Cˆarstea, C. I., Ghosh, T., Uhlmann, G. “An Inverse Problem for the Porous Medium Equation with Partial Data and a Possibly Singular Absorption Term”. arXiv preprint, arXiv:2108.12970v2, 2021. https://arxiv.org/abs/2108.12970 [36] Chew, J. V. L., Sulaiman, J. “On Quarter-Sweep Finite Difference Scheme for One-Dimensional Porous Medium Equations”. International Journal of Applied Mathematics, Vol. 33, No. 3, p. 439–450, 2020. DOI: 10.12732/ijam.v33i3.6. [37] Duan, C., Liu, C., Wang, C., Yue, X. “Numerical Methods for Porous Medium Equation by an Energetic Variational Approach”. arXiv preprint, arXiv:1806.10775v2, 2018. https://arxiv.org/ abs/1806.10775 [38] Chew, J. V. L., Sulaiman, J. ”Implicit Solution of 1D Nonlinear Porous Medium Equation Us- ing the Four-Point Newton-EGMSOR Iterative Method”. Journal of Applied Mathematics and Computational Mechanics, Vol. 15, No. 2, p. 11–21, 2016. DOI: 10.17512/jamcm.2016.2.02. http://w.amcm.pcz.pl [39] M. Berardi, F. V. Difonzo, and R. Guglielmi, A preliminary model for optimal control of moisture content in unsaturated soils, Computers & Geosciences, vol. 27, no. 6, p. 1133–1144, 2023. [40] M. A. Celia, E. T. Bouloutas, and R. L. Zarba, A general mass-conservative numerical solution for the unsaturated flow equation, Water Resources Research, vol. 26, no. 7, p. 1483–1496, 1990. [41] G. Marinoschi, Functional Approach to Nonlinear Models of Water Flow in Soils, Springer, Dor- drecht, The Netherlands, 2006. ISBN: 1-4020-4879-3. [42] F. Wein, N. Chen, N. Iqbal, M. Stingl, and M. Avila, Topology optimization of unsaturated flows in multi-material porous media: Application to a simple diaper model, Communications in Nonlinear Science and Numerical Simulation, vol. 78, Article 104871, 2019. [43] S. Lin and Y. Chen, “A two-stage physics-informed neural network method based on conserved quantities and applications in localized wave solutions,” Journal of Computational Physics, vol. 457, p. 111053, 2022. doi: 10.1016/j.jcp.2022.111053. [44] S. Shi, D. Liu, R. Ji, and Y. Han, “An Adaptive Physics-Informed Neural Network with Two- Stage Learning Strategy to Solve Partial Differential Equations,” Numerical Mathematics: Theory, Methods and Applications, vol. 16, no. 2, p. 298–322, 2023. doi: 10.4208/nmtma.OA-2022-0063. [45] Y. Bengio, J. Louradour, R. Collobert, and J. Weston, “Curriculum learning,” in Proceedings of the 26th Annual International Conference on Machine Learning (ICML ’09), ACM, 2009, p. 41–48. doi: 10.1145/1553374.1553380. [46] M.-H. Chen, Y.-A. Lee, F.-T. Liao, and D.-S. Shiu, “Rethinking the shape convention of an MLP,” arXiv preprint arXiv:2510.01796, 2025. Available: https://arxiv.org/abs/2510.01796. 38 [47] C. Duffy and G. V. Velikova, “Dynamic Curriculum Regularization for Enhanced Training of Physics-Informed Neural Networks,” in NeurIPS 2024 Workshop on Machine Learning and the Physical Sciences (ML4PS), poster presentation, Vancouver, Canada, Dec. 2024. Available: https://neurips.c/virtual/2024/100067. [48] Y. W. Bekele, “Physics-informed neural networks with curriculum training for poroelastic flow and deformation processes,” arXiv:2404.13909, 2024. Available: https://arxiv.org/abs/2404.13909. [49] X. Glorot and Y. Bengio, “Understanding the difficulty of training deep feedforward neu- ral networks,” in Proceedings of the Thirteenth International Conference on Artificial In- telligence and Statistics (AISTATS 2010), PMLR, vol. 9, 2010, p. 249–256. Available: https://proceedings.mlr.press/v9/glorot10a.html. [50] Google Research, Google Colaboratory, Available: https://colab.research.google.com 39 A Visual Comparisons of Direct Solutions For each Solution and m, we visualize the heatmap of the PINN, exact, and classical solution, along with the evolution of the PINN training loss. A.1 Barenblatt solution m = 2 Classical Solution PINN Solution (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 0 1 2 3 4 (b) Exact solution Classical Solution (c) Classical solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.1 0.2 0.3 t Exact Solution 0 1 2 3 4 Figure 19: Zoomed-in view of the exact Barenblatt solution for m = 2 for t ∈ [0, 0.3] (a) PINN ADAM loss(b) PINN LBFGS loss 40 m = 3 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t PINN Solution 1.00 1.25 1.50 1.75 2.00 2.25 2.50 2.75 3.00 (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 1.00 1.25 1.50 1.75 2.00 2.25 2.50 2.75 3.00 (b) Exact solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Classical Solution 1.00 1.25 1.50 1.75 2.00 2.25 2.50 2.75 3.00 (c) Classical solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.1 0.2 0.3 t Exact Solution 1.0 1.5 2.0 2.5 3.0 Figure 22: Zoomed-in view of the exact Barenblatt solution for m = 3 for t ∈ [0, 0.3] (a) PINN ADAM loss(b) PINN LBFGS loss 41 m = 4 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t PINN Solution 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 (b) Exact solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Classical Solution 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 (c) Classical solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.1 0.2 0.3 t Exact Solution 1.0 1.5 2.0 2.5 Figure 25: Zoomed-in view of the exact Barenblatt solution for m = 4 for t ∈ [0, 0.3] (a) PINN ADAM loss(b) PINN LBFGS loss 42 m = 5 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t PINN Solution 1.0 1.2 1.4 1.6 1.8 2.0 (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 1.0 1.2 1.4 1.6 1.8 2.0 (b) Exact solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Classical Solution 1.0 1.2 1.4 1.6 1.8 2.0 (c) Classical solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.1 0.2 0.3 t Exact Solution 1.00 1.25 1.50 1.75 2.00 Figure 28: Zoomed-in view of the exact Barenblatt solution for m = 5 for t ∈ [0, 0.3] (a) PINN ADAM loss(b) PINN LBFGS loss 43 A.2 Polynomial solution m = 2 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t PINN Solution 0.0 0.2 0.4 0.6 0.8 (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 0.0 0.2 0.4 0.6 0.8 1.0 (b) Exact solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Classical Solution 0.0 0.2 0.4 0.6 0.8 1.0 (c) Classical solution (a) PINN ADAM loss(b) PINN LBFGS loss m = 3 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t PINN Solution 0.0 0.2 0.4 0.6 0.8 (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 0.0 0.2 0.4 0.6 0.8 1.0 (b) Exact solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Classical Solution 0.0 0.2 0.4 0.6 0.8 1.0 (c) Classical solution 44 (a) PINN ADAM loss(b) PINN LBFGS loss m = 4 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t PINN Solution 0.0 0.2 0.4 0.6 0.8 1.0 (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 0.0 0.2 0.4 0.6 0.8 1.0 (b) Exact solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Classical Solution 0.0 0.2 0.4 0.6 0.8 1.0 (c) Classical solution (a) PINN ADAM loss(b) PINN LBFGS loss 45 m = 5 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t PINN Solution 0.0 0.2 0.4 0.6 0.8 (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 0.0 0.2 0.4 0.6 0.8 1.0 (b) Exact solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Classical Solution 0.0 0.2 0.4 0.6 0.8 1.0 (c) Classical solution (a) PINN ADAM loss(b) PINN LBFGS loss A.3 Damped Harmonic Solution m = 2 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t PINN Solution 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 (b) Exact solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Classical Solution 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 (c) Classical solution 46 (a) PINN ADAM loss(b) PINN LBFGS loss m = 3 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t PINN Solution 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 (b) Exact solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Classical Solution 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 (c) Classical solution (a) PINN ADAM loss(b) PINN LBFGS loss 47 m = 4 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t PINN Solution 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 (b) Exact solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Classical Solution 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 (c) Classical solution (a) PINN ADAM loss(b) PINN LBFGS loss m = 5 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t PINN Solution 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 (b) Exact solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Classical Solution 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 (c) Classical solution 48 (a) PINN ADAM loss(b) PINN LBFGS loss A.4 m-dependent solution m = 2 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t PINN Solution 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 (b) Exact solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Classical Solution 0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 (c) Classical solution (a) PINN ADAM loss(b) PINN LBFGS loss 49 m = 3 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t PINN Solution 1 2 3 4 5 6 7 8 (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 0 1 2 3 4 5 6 7 8 (b) Exact solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Classical Solution 0 1 2 3 4 5 6 7 8 (c) Classical solution (a) PINN ADAM loss(b) PINN LBFGS loss m = 4 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t PINN Solution 2 4 6 8 10 12 14 16 (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 0 2 4 6 8 10 12 14 16 (b) Exact solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Classical Solution 0 2 4 6 8 10 12 14 16 (c) Classical solution 50 (a) PINN ADAM loss(b) PINN LBFGS loss m = 5 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t PINN Solution 5 10 15 20 25 30 (a) PINN solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Exact Solution 0 5 10 15 20 25 30 (b) Exact solution 1.000.750.500.250.000.250.500.751.00 x 0.0 0.2 0.4 0.6 0.8 1.0 t Classical Solution 0 5 10 15 20 25 30 (c) Classical solution (a) PINN ADAM loss(b) PINN LBFGS loss B Inverse PINN’s training loss of the m-dependent solution For the inverse PINN of the m-dependent solution, for each m and Initial Guess (IG), we show the evolution of the m parameter and the training loss over the epochs. 51 m = 2 and IG = 0.40m = 2 and IG = 1.00 m = 2 and IG = 3.00m = 2 and IG = 3.60 m = 3 and IG = 0.60m = 3 and IG = 1.50 m = 3 and IG = 4.50m = 3 and IG = 5.40 52 m = 4 and IG = 0.80m = 4 and IG = 2.00 m = 4 and IG = 6.00m = 4 and IG = 7.20 m = 5 and IG = 1.00m = 5 and IG = 2.50 m = 5 and IG = 7.50m = 5 and IG = 9.00 53 C Inverse PINN results before the 2-stage PINN model In this section, the results of the inverse PINN problem after the standard modifications (i.e., before the 2-stage PINN model) are shown here for the different reference solutions from section 2.2 following the same plot layout of figure 7. Barenblatt solutionm-dependent solution Harmonic solutionPolynomial solution 54