---
title: 'WellPINN: Accurate Near-Well Pressure Inference'
url: https://www.emergentmind.com/topics/wellpinn
type: topic
---

# WellPINN: Accurate Near-Well Pressure Inference

Searching arXiv for the cited WellPINN-related papers to ground the article.
Tool call: arxiv_search({"query":"WellPINN accurate well representation transient fluid pressure diffusion subsurface reservoirs physics-informed neural networks", "max_results": 5, "sort_by": "relevance"})
WellPINN denotes a PINN workflow for transient fluid pressure diffusion in subsurface reservoirs that is designed to improve pressure resolution in the vicinity of wells, particularly during the early stage after injection begins, by combining the outputs of multiple sequentially trained PINN models on shrinking subdomains with a simultaneously reducing equivalent well radius [2507.09330]. A broader interpretive usage is also suggested by the literature on certified PINNs for parameterized PDEs: the 2022 “certified wavelet-based PINN” is not explicitly named “WellPINN,” but it embodies a well-posed, wavelet-enabled, and certified PINN construction for PPDEs [2212.08389].

## 1. Terminology and conceptual scope

In its strict sense, WellPINN is the name of the 2025 workflow introduced for “Accurate Well Representation for Transient Fluid Pressure Diffusion in Subsurface Reservoirs with Physics-Informed Neural Networks.” The method directly addresses the difficulty of capturing fluid pressure near wells in reservoir models, where singular or near-singular behavior, steep early-time gradients, and severe scale separation challenge standard PINN training. The workflow is defined by three coupled ideas: sequential training on shrinking subdomains centered at the well, iterative reduction of the equivalent well radius toward the actual well radius, and superposition of sub-PINNs under hard-constrained boundary and initial conditions [2507.09330].

The near-well difficulty arises because pumping or injection induces rapid, highly localized transient changes, while practical reservoir domains span orders of magnitude in length. In the formulation summarized for WellPINN, standard MLP PINNs with smooth activations such as `tanh` tend to resolve the far field more easily than the near-well region, and equivalent-source replacements of the well can stabilize training only at the cost of reduced pressure fidelity if the equivalent well radius is chosen too large. A central misconception addressed by the workflow is therefore that a single global PINN with a stabilized equivalent well source is sufficient for accurate wellbore-pressure reconstruction over the full injection period; the reported results indicate that such global setups can miss early-time diffusion fronts and under-represent near-well pressure.

A second terminological issue concerns the 2022 certified wavelet-based PINN. That paper consistently refers to a “certified wavelet-based PINN,” not to “WellPINN.” The association is interpretive rather than nominal: the proposed method is well-posed through stable variational formulations, wavelet-informed through residual expansion in adaptive biorthogonal wavelets, and certified through computable error bounds. This suggests a broader taxonomy in which “WellPINN” can refer either to the specific near-well reservoir workflow or, more loosely, to PINN constructions whose training objective is aligned with a stable residual norm and an explicit certification mechanism.

## 2. Physical model and well representation

The 2025 WellPINN paper considers transient pressure diffusion for a single-phase, slightly compressible fluid in a 2D Cartesian domain, with gravity neglected in the plane. The dimensional PDE is written as
$$
S_s' \frac{\partial p}{\partial t} - \frac{1}{\mu}\nabla\cdot(k\nabla p) - f(x,y,t)=0,
$$
where $p(x,y,t)$ is pressure, $k(x,y)$ is intrinsic permeability, $\mu$ is viscosity, $S_s'$ is the specific storage expressed in pressure units, and $f(x,y,t)$ is a volumetric source term representing the well [2507.09330].

The well is represented not by an explicit Neumann condition on a physical well surface, but by a Gaussian equivalent source in a 2D domain of unit thickness,
$$
f(x,y,t)=Q(t)\frac{1}{2\pi\sigma^2}\exp\!\left(-\frac{(x-x_0)^2+(y-y_0)^2}{2\sigma^2}\right),
$$
with the well located at $(x_0,y_0)$. In the case study, $Q(t)$ is constant and $\sigma$ is linked to an equivalent well radius $r_{weq}$. This source regularization avoids direct singularity handling while preserving a tunable approximation of the well’s spatial support. The paper explicitly notes that the choice of equivalent radius strongly affects accuracy, especially at early times.

The computational setting is a square domain
$$
\Omega=[-50\,\mathrm{m},50\,\mathrm{m}]\times[-50\,\mathrm{m},50\,\mathrm{m}],
$$
with a single injection well at the center and time interval $t\in[0,t_{\max}]$. The initial and outer boundary conditions are imposed as
$$
p(x,y,0)=0,\qquad p(x,y,t)=p_\infty=0\quad \text{for }(x,y)\in\partial\Omega,\ t\ge 0.
$$
Radial symmetry emerges from the physics of the centered well in a homogeneous setting, but the PINN itself is formulated on the Cartesian domain. The Theis solution is discussed only as analytical context for radially symmetric homogeneous cases; WellPINN does not use that solution in training.

## 3. Sequential superposition on shrinking subdomains

The defining methodological feature of WellPINN is a staged “zoom-in” construction. A sequence of PINNs is trained on nested subdomains $\Omega_D$ centered at the well. At each stage $D$, the method uses a smaller subdomain half-extent $x_{\max,D}$ and a reduced equivalent well radius $r_{weq,D}$. The schedule is prescribed by
$$
r_{weq,D}=b\,x_{\max,D},\qquad x_{\max,1}=x_{\max},\qquad x_{\max,D}=r_{weq,D-1}\ \text{for }D>1,
$$
where $b\in(0,1)$ is the ratio between equivalent well radius and current subdomain half-extent. The minimum number of stages needed to reach the real well radius $r_w$ is given by
$$
N>\frac{\log(r_w/x_{\max})}{\log(b)},\qquad N\in\mathbb{N}.
$$
For the tested setting, the paper finds $b\approx 0.17$ as optimal [2507.09330].

The Gaussian width at stage $D$ is selected so that the Gaussian amplitude at $r=r_{weq,D}$ equals a target $\beta=10^{-2}$:
$$
\sigma_D=\frac{|r_{weq,D}-\mu_r|}{\sqrt{-2\ln\beta}},
$$
and for a centered well this reduces to
$$
\sigma_D=\frac{r_{weq,D}}{\sqrt{-2\ln\beta}}.
$$
This ties the equivalent source width directly to the staged reduction of the well radius.

The composite pressure surrogate at stage $D$ is a superposition of all previously trained subnetworks,
$$
\hat p_{c,D}(\bar x,\bar y,\bar t;\theta_D)=\sum_{n=1}^D \epsilon_n\,\tau_n(\bar x,\bar y,\bar t)\,\hat p_n(\bar x,\bar y,\bar t;\theta_n),
$$
where $\hat p_n$ is the $n$-th PINN output, $\tau_n$ is a hard-constraint “distance” function, and $\epsilon_n$ is a scalar stage weight. The functions $\tau_D$ are constructed to vanish at $\bar t=0$ and on $\partial\Omega_D$, thereby enforcing the initial and Dirichlet boundary conditions multiplicatively rather than through explicit penalty terms. The composite construction is reported to guarantee continuity across subdomain boundaries without explicit interface loss terms.

Training cost is stabilized by precomputing the PDE residuals from earlier stages and keeping only the current stage trainable. The stage loss is
$$
\mathcal{L}_D=\mathrm{RMSE}\!\left(\epsilon_D \frac{\partial \hat p_{c,D}}{\partial \bar t}-\epsilon_D \bar\nabla^2 \hat p_{c,D}-\bar f+\sum_{n=1}^{D-1}R_n\right).
$$
Before training stage $I$, the current stage scale is updated by
$$
\epsilon_I=\mathrm{Mean}\left|\frac{\bar f-\sum_{n=1}^{I-1}R_n}{\frac{\partial \hat p_I}{\partial \bar t}-\bar\nabla^2\hat p_I}\right|.
$$
According to the reported interpretation, this balances the magnitude of the current operator with the remaining source after subtracting prior residuals, and thereby stabilizes staged optimization.

## 4. PINN formulation, sampling, and optimization

The general PINN loss given for context is
$$
\mathcal{L}=\lambda_{PDE}\|R_{PDE}\|_2^2+\lambda_{IC}\|p(x,0)-p_0(x)\|_2^2+\lambda_{BC}\|\mathcal{B}[p]-b(t)\|_2^2+\lambda_{data}\|p-p_{obs}\|_2^2,
$$
with
$$
R_{PDE}=S_s'\frac{\partial p}{\partial t}-\frac{1}{\mu}\nabla\cdot(k\nabla p)-f.
$$
The WellPINN implementation itself uses only the PDE residual, because BCs and IC are imposed through the hard constraints $\tau_D$:
$$
\mathcal{L}=\mathcal{L}_{PDE}=\mathrm{RMSE}(R).
$$
This choice removes the need for separate IC/BC penalty balancing and is presented as one of the reasons the workflow remains stable near the well [2507.09330].

The network architecture is an MLP with depth $\times$ width equal to $4\times[40]$, `tanh` hidden activations, and `softplus` output activation. Optimization proceeds in two phases: Adam for $20{,}000$ epochs with exponential learning-rate decay from $10^{-2}$ to $5\times 10^{-4}$, followed by L-BFGS for approximately $4{,}000$ steps. Each stage uses $50{,}000$ collocation points. Spatial inputs $x,y$ are min-max scaled, while time uses logarithmic scaling; the injection start is shifted to $\bar t=0.01$ to stabilize early-time learning.

Sampling is explicitly biased toward the difficult regime. Collocation points are radially refined toward the well according to a power-law distribution, and temporal sampling is concentrated toward early times through log-time scaling. The paper interprets the staged decomposition and $\epsilon_D$ scaling as a curriculum that focuses each stage on the hardest region, namely the region nearer to the well, while limiting interference from already-resolved far-field components.

The paper also describes inverse-modeling extensions, although they are not exercised in the reported experiment. If monitoring data $p_{obs}(x_m,t_m)$ are available, a data term
$$
\mathcal{L}_{data}=\sum_m|\hat p(x_m,t_m)-p_{obs}(x_m,t_m)|^2
$$
can be added. Likewise, parameters such as $k$, $\phi$, $c_t$, $\mu$, $S_s'$, $r_{weq}$ or $\sigma$, and skin can be treated as trainable quantities, and uncertain pumping rate $Q(t)$ can be parameterized by a spline or low-order basis and optimized through automatic differentiation via the source term.

## 5. Validation, error behavior, and parameter dependence

The validation study uses synthetic ground truth from OpenGeoSys (OGS v6.4.3) on the same diffusion PDE. The setup consists of the square domain $\Omega=[-50\,\mathrm{m},50\,\mathrm{m}]\times[-50\,\mathrm{m},50\,\mathrm{m}]$, a central injection well, injection rate $q_w=9.9\times10^{-7}\ \mathrm{m}^3\,\mathrm{s}^{-1}\,\mathrm{m}^{-1}$, and real well radius $r_w=0.1\ \mathrm{m}$. The material is homogeneous and granite-like, with
$$
k=1\times10^{-16}\ \mathrm{m}^2,\quad
\mu=1.006\times10^{-3}\ \mathrm{Pa\cdot s},\quad
\phi=0.01,
$$
fluid compressibility $\kappa_f\approx 5\times10^{-10}\ \mathrm{Pa}^{-1}$, solid compressibility $\kappa_s\approx 4.89\times10^{-11}\ \mathrm{Pa}^{-1}$, Biot coefficient $\alpha_b=0.8$, and
$$
S_s'=4.36\times10^{-11}\ \mathrm{Pa}^{-1}.
$$
Initial and outer boundary conditions are $p=0$ [2507.09330].

The reported WellPINN configuration uses three subdomains, with the ratio $b=r_{weq,D}/x_{\max,D}=0.17$ at each stage, $50{,}000$ collocation points per stage, and $24{,}000$ training epochs per stage ($20$k Adam and $4$k L-BFGS). On an NVIDIA RTX A4500 GPU, wall-times are reported as $696\ \mathrm{s}$ for D1, $1317\ \mathrm{s}$ for D2, and $1801\ \mathrm{s}$ for D3.

Accuracy improves markedly over the stages. Along the line $y=0$, the maximum absolute error $AE_{\max}$ decreases from $0.53$ in D1 to $0.25$ in D2 and to $0.11$ in D3. The mean absolute error in D3 is approximately $1.02\times10^{-2}$, and the maximum absolute PDE residual decreases from $1.1\times10^{1}$ in D1 to $3.1\times10^{-1}$ in D3. Temporal profiles at $r=0.1\ \mathrm{m}$, $1\ \mathrm{m}$, $10\ \mathrm{m}$, and near the boundary at $r\approx49\ \mathrm{m}$ are reported to track the OGS solution well over the entire injection period, with boundary values matched nearly perfectly due to the hard constraints. At early time $\bar t=0.2$, the advancing pressure front is captured, with absolute error typically between $10^{-3}$ and $2\times10^{-2}$ outside the front; at late time $\bar t=1000$, the reported $AE_{\max}$ is approximately $0.015$, with the largest discrepancies at corners where the square geometry breaks radial symmetry.

A parameter study varies $b$ over the range $0.04<b<0.22$, with five realizations per value and metrics given by MAE on the well ($MAE_w$), domain MAE ($MAE_d$), and domain mean squared residual ($MSR_d$). The best overall accuracy is reported for $0.1<b<0.17$. For $b<0.1$, the shrinking equivalent well area and steeper source gradients degrade accuracy, and adding more collocation points near the source helps little with standard `tanh` activations. For $b>0.17$, $MAE_w$ increases because $r_{weq}$ no longer properly collapses to $r_w$ within three stages, although the paper notes that a fourth stage could compensate. By contrast, $MSR_d$ tends to decrease as $r_{weq}$ grows, which makes optimization easier but harms near-well fidelity.

## 6. Relation to certified wavelet-based PINNs, limitations, and implications

The 2022 paper “A certified wavelet-based physics-informed neural network for the solution of parameterized partial differential equations” treats parameterized elliptic PDEs and constructs PINNs together with a computable upper bound of the error. It considers both a standard variational formulation and an optimally stable ultra-weak formulation. In the standard case, if $u_\theta(\mu)$ is an approximation in a Hilbert space $V$, the residual functional is
$$
R(v;\mu)=f(v;\mu)-a(u_\theta(\mu),v;\mu),
$$
and under coercivity or a uniform inf-sup condition one has the certified bound
$$
\|u(\mu)-u_\theta(\mu)\|_V\le \frac{1}{\beta(\mu)}\|R\|_{V'}.
$$
In the ultra-weak formulation, with trial space $X=L_2(\Omega)$ and test space $Y_\mu$ equipped with
$$
\|v\|_\mu=\|B_\mu^*v\|_{L_2(\Omega)},
$$
the method achieves optimal stability $\beta(\mu)=1$ under assumptions (B*1) injectivity and (B*2) density of range, and satisfies the error-residual identity
$$
\|u(\mu)-u_\theta(\mu)\|_{L_2(\Omega)}=\|f_\mu-B_\mu u_\theta(\mu)\|_{Y_\mu'}.
$$
Residuals are expanded in a dual wavelet basis and the training loss is taken as a weighted sum of residual coefficients, with weights $w_{(j,k)}=2^{-2\sigma j}$; via wavelet norm equivalences this yields computable surrogates for dual norms such as $H^{-1}$ and $H^{-2}$, and the paper reports very good quantitative effectivity of the wavelet-based error bound [2212.08389].

This earlier framework is not a reservoir-specific well model, and it does not introduce the name WellPINN. Nevertheless, it is relevant to the concept for two reasons. First, it provides a rigorous template for “well-posed” PINN design: stability is encoded at the formulation level rather than delegated to heuristic loss balancing. Second, it shows how a residual-based loss can be aligned with a computable certification functional. A plausible implication is that the near-well reservoir workflow and the certified wavelet framework occupy complementary positions within PINN methodology: the former addresses singular or steep-gradient resolution near wells through staged superposition and geometric refinement, while the latter addresses reliability through stable weak formulations, wavelet compression, and explicit error control.

The limitations stated for the 2025 WellPINN workflow are correspondingly specific. The reported case study is restricted to single-phase, slightly compressible flow, constant properties within each case, a 2D Cartesian plane with gravity neglected in-plane, unit thickness $d=1\ \mathrm{m}$, smooth activations (`tanh`), and a Gaussian equivalent source. Multi-well interference, strong heterogeneity or anisotropy, multiphase or thermal coupling, and explicit wellbore skin or completion details are not treated. The paper identifies domain decomposition with hard constraints, log-time scaling, and $\epsilon_D$ scaling as critical robustness enhancers; it also notes that alternative activations such as Gabor or physical activations and Fourier features may further improve early-time and near-well accuracy. This suggests that “WellPINN,” in the narrow sense, is best understood as a specialized workflow for accurate near-well pressure inference from pumping rates over the full injection period, whereas in the broader interpretive sense it also points toward PINN constructions that combine stable formulations with explicit control of residual approximation and error certification.

Source: https://www.emergentmind.com/topics/wellpinn