Next Article in Journal
Federated Edge Intelligence for Climate-Aware Spatiotemporal Road Accident Prediction Using IoT and LoRaWAN Networks
Previous Article in Journal
Updated Sections and Scope of Computation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Adjoint-Based Joint Reconstruction of Heat Source and Initial Condition with Uncertainty Quantification

1
Department of Mathematics, King Fahd University of Petroleum and Minerals, Dhahran 31261, Saudi Arabia
2
Interdisciplinary Research Center for Refining and Advanced Chemicals, King Fahd University of Petroleum and Minerals, Dhahran 31261, Saudi Arabia
Computation 2026, 14(7), 162; https://doi.org/10.3390/computation14070162
Submission received: 17 June 2026 / Revised: 14 July 2026 / Accepted: 16 July 2026 / Published: 19 July 2026
(This article belongs to the Section Computational Engineering)

Abstract

This paper develops an adjoint-based framework for jointly reconstructing a space–time-dependent internal heat source and an unknown initial temperature field from sparse, noisy measurements. A single adjoint solve supplies the gradients with respect to both fields, so each iteration requires one forward and one adjoint solve. Deterministically, CGLS with discrepancy-principle stopping reaches a comparable regularized solution in about an order of magnitude fewer iterations than Landweber–Fridman. In the Bayesian formulation, Gaussian noise and Matérn priors yield an exact Gaussian posterior; prior-preconditioned conjugate gradients compute the maximum a posteriori estimate, while a low-rank approximation of the prior-preconditioned data-misfit Hessian provides pointwise credible bands. The exact discrete adjoint gives machine-precision gradients, and prior-predictive experiments verify nominal pointwise coverage. Numerical experiments compare the reconstructions and assess sensitivity to noise, discretization, and prior hyperparameters. The Bayesian reconstruction is more accurate and mesh-robust in the reported tests. A calibrated generalized- χ 2 discrepancy diagnostic detects misspecification caused by an omitted initial-temperature offset and, less strongly, by discontinuous sources outside the prior model. These experiments demonstrate joint reconstruction and scalable uncertainty quantification using only forward and adjoint heat-equation solves.

1. Introduction

Internal heat generation in a conducting body is usually not measurable directly. What can be measured is temperature at a small number of locations and over a finite time window, and the source must then be inferred by inverting the heat equation. This inverse source problem has a long history, both in the heat transfer literature [1,2,3] and in the theory of inverse problems for parabolic equations [4,5,6]. A complication that arises in practice is that the initial temperature field is rarely known: experiments often begin before the specimen reaches equilibrium, or the initial state is instrumented only at the sensor locations. The unknown initial condition must therefore be estimated together with the source, since errors in the assumed initial state propagate into the source estimate.
Both unknowns enter the parabolic problem linearly; nevertheless, the joint reconstruction is severely ill-posed. Diffusion strongly attenuates high spatial frequencies—exponentially for initial-condition modes across a positive observation lag—and finitely many temperature measurements cannot uniquely identify an unrestricted space–time source [6,7]. Iterative regularization is a natural tool for problems of this type, attractive for problems constrained by partial differential equations (PDEs) because each step requires only one forward and one adjoint solve. Its classical instance is the Landweber–Fridman iteration [8,9], which applies the adjoint of the forward map to the data residual and takes a fixed-point step, with regularization supplied by stopping early, typically through Morozov’s discrepancy principle [10]. The convergence theory is well established [11,12,13]; the iteration is robust but slow, and Krylov subspace methods, namely conjugate-gradient least squares (CGLS) and its numerically stable implementation least-squares QR (LSQR) [14,15,16], reach the same regularized solution in far fewer adjoint solves and are the modern method of choice. Iterations of this kind have been used extensively for heat conduction problems, including the reconstruction of spacewise-dependent sources [17,18], source terms identified from final-time data [19,20], and Cauchy problems treated by the alternating method of Kozlov et al. [21]. Johansson and Lesnic [22] reconstructed a spacewise-dependent source, which is closest to the present setting, together with the initial temperature from two temperature snapshots, using a sequence of well-posed direct problems with discrepancy-principle stopping.
These deterministic schemes return a point estimate. They treat the noise only through the stopping rule and say nothing about the uncertainty that remains in the reconstruction, which matters whenever the estimate feeds a subsequent decision or design step. The statistical theory of inverse problems [23,24,25] supplies the missing layer: the unknowns are modeled as random fields, the noise enters through a likelihood, and the posterior distribution carries both the estimate and its uncertainty. For linear forward maps with Gaussian noise and Gaussian priors the posterior is Gaussian, and its covariance can be explored at scale through low-rank approximations of the data-misfit Hessian [26,27,28]. Bayesian formulations of thermal inverse problems, in particular, have been developed for parabolic equations with uncertain boundary data and for the calibration of wall thermal properties [29,30,31].
The contribution of this paper is an adjoint-based framework that treats the joint space–time source and initial-condition problem both deterministically and probabilistically and equips the reconstruction with calibrated uncertainty. Existing joint reconstructions are deterministic and restrict the source to a spacewise-dependent profile recovered from temperature snapshots [22]; here the source varies in both space and time, and the method returns point estimates together with calibrated pointwise credible bands for both unknown fields, at the cost of forward and adjoint solves of the heat equation. The technical basis is an elementary fact that has not, to our knowledge, been exploited for this purpose: a single adjoint solve provides the gradient of the data misfit with respect to both unknowns, because the adjoint state in the interior is the gradient with respect to the source, while its trace at t = 0 is the gradient with respect to the initial condition. On this joint gradient we build two reconstructions that share the same forward and adjoint machinery. The first is deterministic: the data misfit is minimized by conjugate-gradient least squares with statistical discrepancy-principle stopping, with the Landweber–Fridman iteration being retained as a baseline. The second is Bayesian: Gaussian priors render the posterior exactly Gaussian, its maximum a posteriori (MAP) estimate is computed by prior-preconditioned conjugate gradients, and the linearity of the forward map is exploited to obtain pointwise variances from a low-rank decomposition of the prior-preconditioned data-misfit Hessian. Because the discrete adjoint of the Crank–Nicolson scheme is implemented exactly, every gradient is correct to machine precision for the discrete objective, and the credible intervals are verified by a coverage experiment over truths drawn from the prior. We compare the deterministic and Bayesian reconstructions and study their robustness to the noise level and to the discretization; and a final example illustrates the practical value of the probabilistic viewpoint, in which a misspecified initial condition that a deterministic least-squares fit silently absorbs into the source is exposed by the calibrated discrepancy diagnostic. Although developed in one spatial dimension for clarity, the method is formulated for arbitrary dimension in Section 2 and demonstrated on a two-dimensional plate in Section 6.4; nothing in the construction is specific to one dimension.
The remainder of this paper is organized as follows. Section 2 states the forward and inverse problems. Section 3 derives the adjoint equation and the joint gradient. Section 4 presents the adjoint-based iterative reconstruction, comparing the Landweber–Fridman, steepest-descent, and conjugate-gradient methods and their stopping rule. Section 5 develops the statistical formulation and uncertainty quantification: the priors, the Gaussian posterior, the computation of the maximum a posteriori estimate and the low-rank posterior covariance, a calibrated discrepancy diagnostic, and the resulting algorithm. Finally, Section 6 reports the numerical experiments (deterministic versus Bayesian reconstruction, and their sensitivity to noise and discretization), and Section 7 concludes the paper.

2. Forward and Inverse Problem

We first state the problem in its general, multidimensional form. Let Ω R d be a bounded domain with Lipschitz boundary Ω , and let T > 0 be the final time. The temperature u : Ω ¯ × [ 0 , T ] R solves the linear heat equation with prescribed, in general nonhomogeneous, Dirichlet data,
t u κ Δ u = f ( x , t ) , ( x , t ) Ω × ( 0 , T ] , u ( x , t ) = b ( x , t ) , ( x , t ) Ω × ( 0 , T ] , u ( x , 0 ) = u 0 ( x ) , x Ω ,
where κ > 0 is a known constant diffusivity, Δ the spatial Laplacian, f the internal heat source, u 0 the initial temperature, b the boundary data, and d the spatial dimension. The source f and the initial condition u 0 are the unknowns to be recovered, while κ and b are known; both unknowns enter (1) linearly. We assume f L 2 ( Ω × ( 0 , T ) ) and u 0 L 2 ( Ω ) , and that b admits a sufficiently regular extension into Ω (in the experiments of Section 6 it is constant). Under these assumptions the forward problem possesses a unique weak solution
u L 2 0 , T ; H 1 ( Ω ) C [ 0 , T ] ; L 2 ( Ω ) ,
which depends linearly on ( f , u 0 ) for fixed b and continuously on the data [32]. In one space dimension, interior parabolic regularity makes u continuous on Ω × ( 0 , T ] , so its pointwise values away from the initial instant are classically defined; for d 2 and f merely square integrable this is no longer guaranteed. The precise standing of the pointwise observations used below is therefore fixed explicitly when they are introduced.
For clarity of exposition we develop the method in one spatial dimension; the construction carries over to d > 1 essentially unchanged, as the two-dimensional example of Section 6.4 confirms. Moreover, because the boundary data are known and enter linearly, their contribution can be removed by superposition (made precise in (3) below), leaving the unknown-driven part of the temperature to satisfy a heat equation with homogeneous Dirichlet conditions. We therefore take the boundary data to be homogeneous without loss of generality; nonzero data are reintroduced through the known term d fix identified below, and are used in the experiments of Section 6. Accordingly, let D = ( 0 , L ) and Q = D × ( 0 , T ) , and consider
t u κ x x u = f ( x , t ) , ( x , t ) D × ( 0 , T ] , u ( 0 , t ) = u ( L , t ) = 0 , t ( 0 , T ] , u ( x , 0 ) = u 0 ( x ) , x D .
The unknowns are the source f L 2 ( Q ) and the initial condition u 0 L 2 ( D ) , collected in the joint parameter θ = ( f , u 0 ) H = L 2 ( Q ) × L 2 ( D ) . The parameter space H is a Hilbert space under the inner product
θ , θ ˜ H = f , f ˜ L 2 ( Q ) + u 0 , u ˜ 0 L 2 ( D ) , θ = ( f , u 0 ) , θ ˜ = ( f ˜ , u ˜ 0 ) .
The space H is the Cartesian product of the natural energy spaces of the two unknowns: the first inner-product term is the L 2 pairing of space–time source densities over Q, the second pairs initial-temperature profiles over D. The second term is not a regularization device; it makes H a Hilbert space and fixes the metric in which gradients with respect to u 0 are defined, so that the joint gradient of Section 3 acquires its two components—the adjoint state in the interior and its trace at t = 0 —as the Riesz representative of the misfit derivative in this product inner product. The point observations introduced below are interpreted formally at the continuum level and rigorously in the finite-dimensional inference problem.
Temperatures are recorded at interior sensor locations x 1 , , x J D and times 0 t 1 < < t N T , giving m = J N scalar measurements collected by the linear observation operator
C : u u ( x j , t n ) j = 1 , , J , n = 1 , , N R m .
Point evaluation is not a bounded functional on L 2 ( D ) , so C and the continuum maps built from it are formal on the stated parameter space. All computations and quantitative claims use the finite-dimensional discretization of Section 3, where nodal evaluation is well defined and A h : R n R m is a bounded linear map. Composing the solution map θ u ( θ ) with C defines the parameter-to-observable map G : H R m , G ( θ ) = C u ( θ ) , understood here as formal continuum notation.
Because the boundary data are known, G is affine. Indeed, by superposition we split u = u θ + u fix , where u θ solves (2) for the given ( f , u 0 ) under homogeneous boundary conditions and u fix solves the heat equation with zero source and zero initial condition but the prescribed Dirichlet data u ( 0 , t ) = b 0 ( t ) , u ( L , t ) = b L ( t ) of the general problem (1); this gives
G ( θ ) = A θ + d fix , A θ : = C u θ , d fix : = C u fix R m ,
with A : H R m linear in this formal continuum notation; its operative discrete counterpart is A h and d fix the known boundary contribution. Since we focus on homogeneous boundary data, d fix = 0 and the forward map is linear, G ( θ ) = A θ ; we adopt this throughout and record the modification for known nonhomogeneous data in the remark at the end of this section. The measurements are then modeled as
y = G ( θ ) + ε = A θ + ε ,
where θ = ( f , u 0 ) H is the true parameter and ε R m is the measurement noise, whose distribution is specified in Section 5.
The inverse problem is to recover the joint unknown θ = ( f , u 0 ) from the noisy data y, and it is ill-posed. Because the continuum point-observation map is not bounded on H , we do not claim that it is compact there. The operative map A h is bounded and compact automatically in finite dimensions, while its singular values typically decay rapidly because diffusion strongly attenuates high spatial frequencies [11]. The joint unknown is, in addition, not identifiable from finitely many observations: at the continuum level, m scalar data cannot determine an unrestricted element of the infinite-dimensional space H , and after discretization dim ker A h n m when n > m . A space–time source can therefore be altered in an unresolved direction without changing the measurements. Uniqueness results for parabolic source problems accordingly restrict the source class, for instance to separable or time-independent sources [4,5,7]. We impose no such restriction; instead, the prior information introduced in Section 5 selects a particular solution, and the posterior covariance quantifies how poorly the data constrain the directions that diffusion has erased.

Remark (Nonhomogeneous Boundary Data)

The development that follows is written for homogeneous Dirichlet data, for which the forward map is linear, G ( θ ) = A θ . Known nonhomogeneous data are recovered by the single substitution y y d fix , equivalently A θ A θ + d fix , with d fix = C u fix the boundary contribution of (3). The data misfit of Section 3 then becomes 1 2 Σ 1 / 2 ( A θ + d fix y ) 2 and the maximum a posteriori estimate of Section 5 shifts accordingly, while the gradients, the iterations of Section 4, and the posterior covariance of Section 5.4 are unchanged, because d fix enters only as a fixed offset of the data. The numerical experiments of Section 6 use boundary data of this kind.

3. Adjoint Equation and Joint Gradient

Let W R m × m be a symmetric positive definite weighting matrix (later W = Σ 1 , with Σ the noise covariance), and recall the parameter-to-observable map G ( θ ) = C u ( θ ) = A θ of Section 2. We quantify the data misfit by the weighted least-squares functional
Φ ( θ ) = 1 2 G ( θ ) y W G ( θ ) y = 1 2 G ( θ ) y W 2 , v W 2 : = v W v ,
and abbreviate the residual by r = r ( θ ) = G ( θ ) y = A θ y R m . Gradients are taken in the inner product of H from Section 2: Φ ( θ ) H is the Riesz representative defined by d Φ ( θ ) [ δ θ ] = Φ ( θ ) , δ θ H for every δ θ H . To compute the gradient of Φ , we enforce the PDE and the initial condition through the multipliers p and q,
L ( θ , u , p , q ) = Φ 0 T 0 L p t u κ x x u f d x d t 0 L q ( x ) u ( x , 0 ) u 0 ( x ) d x ,
where the multiplier p vanishes on the lateral boundary. Equation (6) is the Lagrangian of the PDE-constrained minimization of Φ , the misfit augmented by the state equation and the initial condition through the multipliers p and q; stationarity in the state u yields the adjoint equation below. This is the classical adjoint-state (Lagrange-multiplier) technique of PDE-constrained optimization [33,34]. Let δ u be a variation with δ u ( 0 , t ) = δ u ( L , t ) = 0 and δ u ( · , 0 ) free. The variation of the misfit is d Φ = W r , C δ u R m = C * W r , δ u , where the last bracket denotes distributional duality and C * w = j , n w j , n δ ( x x j ) δ ( t t n ) is the formal transpose of the observation operator, a sum of point masses at the sensor positions and measurement times. In keeping with Section 2, this continuum computation is formal; its rigorous discrete counterpart follows in Section 3. Integrating by parts in time, Q p t δ u = 0 L p δ u t = 0 t = T d x + Q t p δ u , and twice in space, κ Q p x x δ u = κ Q x x p δ u , the boundary terms vanishing by the conditions on δ u and p. Collecting terms,
δ u L = Q C * W r + t p + κ x x p δ u d x d t 0 L p ( x , T ) δ u ( x , T ) d x + 0 L p ( x , 0 ) q ( x ) δ u ( x , 0 ) d x .
Setting δ u L = 0 for all admissible δ u then yields the terminal-boundary value problem
t p κ x x p = C * W r ( x , t ) , ( x , t ) D × [ 0 , T ) , p ( 0 , t ) = p ( L , t ) = 0 , t [ 0 , T ) , p ( x , T ) = 0 , x D ,
and identifies q = p ( · , 0 ) . Equation (7) is a backward heat equation in the variable T t ; with its point-mass right-hand side, it is understood in the weak sense, and it is well posed.
Because the forcing is impulsive in time, the adjoint state is smooth between measurement times and jumps across them. Writing c n = j [ W r ] j , n δ ( x x j ) for the datum injected at t n , integration of (7) across t n gives the jump condition
p ( · , t n ) = p ( · , t n + ) + c n ,
between which p solves the homogeneous backward equation. Observations at the temporal endpoints are covered by the same rule and deserve explicit mention. A measurement at t N = T enters as the effective terminal value p ( · , T ) = c N , the stated condition p ( · , T ) = 0 holding beyond the jump; a measurement at t 1 = 0 sits at the end of the backward sweep and contributes directly to the initial-condition gradient, u 0 Φ = p ( · , 0 + ) + c 1 , rather than through the interior equation. The discrete adjoint recursion of Section 3 reproduces exactly these jumps, including both endpoint cases.
With u the forward solution and p the adjoint solution, the constraint terms in (6) vanish and L = Φ , so that the variations of L with respect to the parameters deliver the gradient of Φ : d Φ [ δ f ] = Q p δ f d x d t and d Φ [ δ u 0 ] = 0 L q δ u 0 d x = 0 L p ( x , 0 ) δ u 0 d x , that is,
f Φ = p in Q , u 0 Φ = p ( · , 0 ) in D
(when t 1 = 0 carries a measurement, p ( · , 0 ) is understood as p ( · , 0 + ) + c 1 , per the jump rule above). Formally, the variation may be denoted by A * W r , where A * represents the distributional transpose action; a single adjoint solve supplies its source and initial-condition components. These continuum formulas are not H -valued in general for point sensors: the adjoint forcing is a measure, and an observation at t = 0 introduces point masses into the formal initial-condition component. The rigorous objects used in every computation are the discrete gradients of Section 3, Φ h = A h W r , which are exact for the discrete objective.

Discrete Adjoint of the Crank–Nicolson Scheme

In the computations, we discretize (2) by second-order central differences in space and the Crank–Nicolson scheme in time, and we differentiate the discrete misfit exactly. From this subsection onward the inverse problem is finite-dimensional: A h : R n R m denotes the discrete parameter-to-observable map, the Crank–Nicolson solve composed with nodal observation, and A h its Euclidean transpose. The continuum symbols A and A * are reserved for the preceding formal derivation; Section 4, Section 5, Section 6 and Section 7 use A h and A h throughout. Let u n R N x 1 denote the interior values at time level n, and let B ± = I ± ρ 2 Δ h , with ρ = κ Δ t / Δ x 2 and Δ h the scaled second-difference matrix. The forward step is then B u n + 1 = B + u n + Δ t 2 ( f n + f n + 1 ) + g n , where g n is the boundary contribution. For the discrete misfit Φ , whose first variation is δ Φ = n ( c n ) δ u n with c n = Φ / u n the vector that injects the weighted residuals at the observation nodes at time level n, the adjoint recursion is
λ N t = c N t , λ n = B + B 1 λ n + 1 + c n , n = N t 1 , , 0 ,
where we have used that B ± are symmetric and commute, and the gradients are
Φ f n = Δ t 2 B 1 λ n 1 { n 1 } + λ n + 1 1 { n N t 1 } , Φ u 0 = λ 0 .
If the source is represented by a coefficient vector a through f n = P n a , as in the coarser nodal bases used in Section 6, the coefficient gradient is obtained by the chain rule,
a Φ = n = 0 N t P n Φ f n .
Thus, the transposes of the interpolation or basis-evaluation operators are part of the implemented A h ; the displayed derivatives with respect to f n are the intermediate state-grid derivatives. This recursion is precisely the Crank–Nicolson discretization of the adjoint PDE (7) run backward in time, so that discretizing the adjoint and transposing the discretized forward map coincide for this scheme; the observation data enter exactly as the jumps derived above, the final-time datum as the terminal value λ N t = c N t , interior data added between steps, and an initial-time datum appearing directly in λ 0 , the gradient with respect to u 0 . The trapezoidal factor Δ t 2 ( λ n + λ n + 1 ) is the quadrature weight that converts the continuous gradient p into the gradient with respect to the discrete source values, while the gradient with respect to the initial values is the terminal state of the backward sweep. As a result, the implemented gradients satisfy the adjoint identity A h θ , w R m = θ , A h w R n to machine precision (Section 6.1), the transpose taken in the Euclidean inner products on the coefficient spaces; the relation of this algebraic transpose to the continuous L 2 adjoint is summarized below.
The recursion returns, up to roundoff, the exact gradient of the discrete objective because the discrete adjoint is the Euclidean transpose A h of the discretized forward map. For sufficiently smooth solutions, the Crank–Nicolson/central-difference discretization is second order, O ( Δ t 2 + Δ x 2 ) ; this order is not asserted for rough sources. The matrices B ± = I ± ( ρ / 2 ) Δ h are symmetric commuting polynomials in Δ h , and B is positive definite. Their common eigenvectors give the forward and adjoint amplification factors
g j = 1 2 ρ sin 2 j π / ( 2 N x ) 1 + 2 ρ sin 2 j π / ( 2 N x ) , | g j | 1 ,
which proves unconditional stability. Crank–Nicolson is not L-stable, so very stiff modes may alternate without being strongly damped, but they do not grow. All transposes above are Euclidean coefficient transposes; the corresponding L 2 gradients require the appropriate mass matrices, and the coarse source basis is handled through the maps P n .

4. Adjoint-Based Iterative Reconstruction

The deterministic reconstruction problem is to minimize the weighted misfit (5) with W = Σ 1 , that is, to solve the linear least-squares problem
min θ 1 2 Σ 1 / 2 A h θ y 2 .
Every method in this section accesses the forward model only through the two operations supplied by the adjoint calculus of Section 3: an application of A h , costing one forward solve, and an application of A h , costing one adjoint solve. We first state the adjoint-state gradient and the normal equations, and on them compare three solvers: the fixed-point (Landweber–Fridman) iteration, steepest descent, and the conjugate-gradient (Krylov) method. All three are matrix-free and regularize the ill-posed problem (9); they differ only in how quickly they extract the information the data contain.

4.1. Adjoint-State Gradient and Normal Equations

The minimizer of (9) solves the normal equations
H mis θ = A h Σ 1 y , H mis : = A h Σ 1 A h ,
where the data-misfit Hessian H mis is self-adjoint and positive semidefinite on the parameter space. The adjoint-state method of Section 3 returns the gradient
Φ ( θ ) = A h Σ 1 A h θ y = H mis θ A h Σ 1 y
with one forward and one adjoint solve, and the same pair of solves applies H mis to a vector; neither operator is ever assembled. Because A h inherits the ill-posedness of the continuum map (Section 2), with a null space of dimension at least n m , H mis is rank-deficient and its small singular values are masked by the noise, so (10) is ill-posed and is not solved directly. Let s 1 s 2 denote the singular values of Σ 1 / 2 A h , which decay rapidly toward zero; they serve the analysis below and are never computed. The iterative methods that follow regularize (10) by assembling the solution from the dominant singular directions and stopping before the noise is amplified. Early stopping selects a regularized least-squares solution, whereas the prior of Section 5 selects instead the maximum a posteriori element. The discrepancy-stopped iterations are iterative regularization methods, not unregularized fits [11,14]. The Bayesian objective (20) is a generalized Tikhonov functional whose penalty is supplied by the prior.

4.2. Landweber–Fridman Iteration

The simplest solver inserts the gradient (11) into a fixed-point (Richardson) iteration. This is the Landweber–Fridman method [8,9,11],
θ k + 1 = θ k ω A h Σ 1 A h θ k y , 0 < ω < 2 Σ 1 / 2 A h 2 ,
with · the operator norm. Realized through discrete PDE solves, each step takes ( f k , u 0 k ) , applies A h to form r k = A h θ k y , applies A h Σ 1 r k through the discrete adjoint sweep, and updates 
θ k + 1 = θ k ω A h Σ 1 r k .
The two blocks of A h Σ 1 r k are the projected source coefficient gradient from the discrete formulas above (including the P n maps) and the initial adjoint value λ 0 , respectively; in the continuum shorthand they correspond to p k and p k ( · , 0 ) . Thus, one forward and one adjoint solve advance both unknowns. The step bound is estimated once by power iteration on H mis , again using only forward and adjoint solves.
Started from θ 0 = 0 , the iterate after k steps applies to the singular component with singular value s i the fixed spectral filter
ϕ k LF ( s i ) = 1 ( 1 ω s i 2 ) k ,
so that directions with s i 2 ( ω k ) 1 are recovered while those with smaller s i remain near the initial guess. The reconstruction error therefore decreases at first and then, once the iteration begins to fit the noise, grows again in what is known as the semiconvergence characteristic of Landweber-type methods [11], which is visible in the experiments of Section 6.2. The weakness is the rate. The iteration count grows like the square of the singular-value ratio, so even the modes the data inform can require many thousands of steps. This slow linear convergence, rather than the cost per step, is what makes the plain iteration unattractive.
We regularize by stopping, using the discrepancy principle in its statistical form. The iteration is stopped at the first index k * for which
Σ 1 / 2 A h θ k y 2 τ 2 m ,
with a tolerance τ slightly above one ( τ = 1.05 in the experiments). This is Morozov’s rule [10], the noise level being read from the χ m 2 statistics of the whitened residual rather than prescribed by hand. The same rule stops the conjugate-gradient iteration below.

4.3. Conjugate-Gradient (Krylov) Method

The conjugate-gradient method extracts far more from each adjoint solve by choosing, at step k, the best iterate in the whole Krylov subspace
K k = span g , H mis g , , H mis k 1 g , g = A h Σ 1 y ,
instead of taking one fixed step along the gradient. Applied to the normal Equation (10), CGLS selects θ k K k minimizing the weighted residual Σ 1 / 2 ( A h θ y ) , at the cost of one application of A h and one of A h per step, exactly that of a Landweber step.
This minimization is equivalent to applying the spectral filter ϕ k CG ( s i ) = 1 q k ( s i 2 ) , where q k is the degree-k polynomial with q k ( 0 ) = 1 that the method selects optimally for the spectrum actually present; the contrast with Landweber–Fridman is that its filter (14) uses the single, predetermined polynomial ( 1 ω s 2 ) k . Because the conjugate-gradient polynomial adapts to the singular values, the method in practice resolves the informative subspace in a number of iterations comparable to its dimension, the count of singular values above the noise level, rather than the ( s 1 / s i ) 2 of Landweber–Fridman. In the experiments, CGLS reaches the discrepancy in 11 iterations rather than 203 at 1 % noise, and in 6 iterations rather than 41 at 5 % noise (Section 6.2). Like Landweber, CGLS is a regularization method: the iteration index is the regularization parameter, the error semiconverges, and the iteration is stopped by the discrepancy principle (15) [14].

4.4. Similarities and Differences

The three methods differ in the polynomial filter they apply to the singular values, and hence in the number of iterations required, as summarized in Table 1; steepest descent, which replaces the fixed step ω of (12) by the locally optimal one but still moves along a single gradient direction, retains essentially the Landweber–Fridman rate.
Landweber’s geometric filter is fixed before the spectrum is seen and damps the slow modes only algebraically; steepest descent takes the locally optimal step but, still searching along a single gradient direction, inherits essentially the same asymptotic rate. The conjugate-gradient method optimizes over the entire Krylov subspace and applies an adaptive degree-k polynomial to the spectrum. For the rapidly decaying, clustered spectra considered here, it reaches the discrepancy in far fewer iterations than Landweber–Fridman. We therefore use CGLS as the deterministic solver and retain the Landweber–Fridman iteration as the historical and conceptual baseline.
The same hierarchy carries over to the statistical formulation of Section 5. There the prior-preconditioned Landweber and conjugate-gradient iterations compute the maximum a posteriori estimate with the identical forward and adjoint solves, and a separate matrix-free Lanczos or randomized eigensolve yields the dominant eigenpairs of the prior-preconditioned Hessian on which the posterior covariance depends (Section 5.4).

5. Statistical Formulation and Uncertainty Quantification

The deterministic solvers of Section 4 return a point estimate and control the noise through early stopping. We now take the Bayesian view in which the same adjoint machinery additionally delivers a calibrated quantification of the uncertainty that the data leave in the reconstruction. We model the noise in (4) as ε N ( 0 , Σ ) and place Gaussian priors on the unknowns,
f N ( f ¯ , Γ f ) , u 0 N ( u ¯ 0 , Γ 0 ) ,
independent of each other and of ε , so that θ N ( θ ¯ , Γ ) with θ ¯ = ( f ¯ , u ¯ 0 ) and Γ = diag ( Γ f , Γ 0 ) . After discretization θ R n collects the coefficients of f in a nodal space–time basis together with the values of u 0 , and A h , Γ , Σ are matrices.

5.1. Prior Specification

The prior covariances encode the smoothness expected of the two fields. We use Matérn operators [35,36,37], whose covariance kernel
c ν ( z , z ) = σ 2 2 1 ν Γ ( ν ) 2 ν z z ν K ν 2 ν z z
is set by a marginal variance σ 2 , a correlation length , and a smoothness index ν (with K ν the modified Bessel function and Γ here the gamma function). Three features make this family well suited to the problem. First, the smoothness is explicit: a Matérn- ν field has sample paths in C k for every integer k < ν d / 2 , so that ν > d / 2 already yields continuous realizations and the point observations of Section 2 are almost surely well defined; we take ν = 5 / 2 , which gives continuously differentiable draws in one space dimension. Second, the hyperparameters σ and are physically interpretable. Third, through the stochastic partial differential equation representation of Matérn fields [36], the precision Γ 1 is a sparse elliptic differential operator; this both explains its poor conditioning, which motivates the preconditioning of Section 5.3, and renders the action of Γ 1 / 2 inexpensive. For the source we use the separable space–time covariance Γ f = σ f 2 ( R x R t ) , where R x and R t are unit-marginal-variance Matérn correlation operators with lengths x and t . This normalization ensures that the Kronecker product has marginal variance σ f 2 , rather than multiplying the scale once in each factor. For the initial condition, Γ 0 is a spatial Matérn operator with variance σ 0 2 and length 0 , and u ¯ 0 is the known boundary level.
The prior is thus determined by the hyperparameters η = ( σ f , x , t , σ 0 , 0 ) together with the noise level in Σ . These may be fixed from physical knowledge, as in our experiments, or estimated from the data by empirical Bayes: because the model is linear and Gaussian, the marginal likelihood is available in closed form,
p ( y η ) = N y ; A h θ ¯ , A h Γ A h + Σ ,
and maximizing it over η selects the hyperparameters without reference to the truth [38]; the same forward and adjoint solves, and the low-rank structure of Section 5.4, keep each evaluation affordable. Section 6.2.8 quantifies the sensitivity of the errors and credible-band widths to one-at-a-time variations of ( σ f , x , t , σ 0 ) around the nominal values, and reports the marginal likelihood (19) that the empirical-Bayes route would maximize.

5.2. The Posterior

With the hyperparameters fixed, Bayes’ theorem gives a posterior density proportional to exp ( J ( θ ) ) , where
J ( θ ) = 1 2 Σ 1 / 2 ( A h θ y ) 2 + 1 2 ( θ θ ¯ ) Γ 1 ( θ θ ¯ ) = Φ ( θ ) + 1 2 ( θ θ ¯ ) Γ 1 ( θ θ ¯ ) ,
the data misfit Φ of (5) augmented by the prior term. Because the forward map is linear, J is quadratic and the posterior is exactly Gaussian, θ | y N ( θ MAP , H 1 ) , with
H = A h Σ 1 A h + Γ 1 = H mis + Γ 1 , θ MAP = θ ¯ + H 1 A h Σ 1 y A h θ ¯ ,
where H mis = A h Σ 1 A h is the data-misfit Hessian of Section 4.1. No Laplace or Gauss–Newton approximation is involved: H is the exact Hessian of J and (21) is the exact posterior, which are the only approximations entering through the discretization and the low-rank covariance of Section 5.4. Being Gaussian, the posterior mean coincides with the MAP estimate (maximum a posteriori, the mode of the posterior density) (and with the conditional mean), so one linear solve already yields the Bayes estimator.
The exact Gaussian formulas rely on a linear forward map and fixed hyperparameters. For a nonlinear forward model, replacing A h by the Jacobian gives a Gauss–Newton approximation, whereas the exact Hessian also contains residual-weighted second derivatives; the accuracy of such approximations is not assessed here [27,29]. Unknown hyperparameters may instead be estimated by maximizing the evidence (19); a fully hierarchical treatment would produce a non-Gaussian joint posterior [39,40]. The experiments below remain in the linear fixed-hyperparameter setting.

5.3. Computing the MAP Estimate

The MAP estimate minimizes J and hence solves the regularized normal equations
H ( θ θ ¯ ) = A h Σ 1 y A h θ ¯ , H = H mis + Γ 1 .
Its gradient J ( θ ) = A h Σ 1 ( A h θ y ) + Γ 1 ( θ θ ¯ ) is, by (8), available from one forward and one adjoint solve, so the adjoint-based iterations of Section 4 carry over to (22) unchanged, now regularized by the prior rather than by early stopping. Gradient descent on J,
θ k + 1 = θ k ω A h Σ 1 A h θ k y + Γ 1 θ k θ ¯ ,
is the prior-augmented Landweber iteration and converges to θ MAP for 0 < ω < 2 / λ max ( H ) ; preconditioning by the prior covariance yields the better-scaled iteration
θ k + 1 = θ k ω Γ A h Σ 1 A h θ k y + θ k θ ¯ ,
whose convergence is governed by the spectrum of I + H ˜ , with
H ˜ = Γ 1 / 2 A h Σ 1 A h Γ 1 / 2 = Γ 1 / 2 H mis Γ 1 / 2
the prior-preconditioned data-misfit Hessian. Exactly as in Section 4, this first-order iteration is slow when the data are informative: with λ 1 = λ max ( H ˜ ) = 3.7 × 10 6 in Section 6.2 the per-step contraction factor is 1 2 / ( 2 + λ 1 ) , whereas prior-preconditioned conjugate gradients on (22) reaches θ MAP in a number of solves set by the effective rank [14]. We therefore compute θ MAP by symmetrically prior-preconditioned conjugate gradients (equivalently, conjugate gradients in prior-whitened coordinates). The dominant eigenpairs of H ˜ needed for the posterior covariance are then computed by the separate matrix-free Lanczos or randomized eigensolve described in Section 5.4; the timing table reports this eigensolve as a distinct stage.

5.4. Posterior Covariance and Pointwise Uncertainty

The posterior covariance H 1 quantifies the uncertainty that the data leave in θ . Its diagonal yields the pointwise variances of the source and the initial condition, while the off-diagonal blocks give the correlation between the two fields. For the moderate problem sizes considered in this paper, H can be formed and factorized directly, and we do so in order to obtain reference values. At a larger scale, however, one never assembles H explicitly; the structure that makes its inverse accessible is the rapid spectral decay of H ˜ in (25).
The action of H ˜ on a vector costs one forward and one adjoint solve, together with applications of Γ 1 / 2 . Let ( λ i , v i ) i = 1 r denote the dominant eigenpairs of H ˜ , computed by a Krylov or randomized method [27,41]. Writing V r = [ v 1 , , v r ] and D r = diag λ i / ( 1 + λ i ) , the Sherman–Morrison–Woodbury identity gives
H 1 = Γ 1 / 2 I + H ˜ 1 Γ 1 / 2 Γ Γ 1 / 2 V r D r Γ 1 / 2 V r ,
with an error controlled by λ r + 1 : the directions with λ i 1 are dominated by the prior and contribute negligibly to the correction. This approximation is optimal, in a well-defined sense, among all rank-r updates of the prior covariance [28], and it underlies large-scale linear Bayesian inversion [26]. The number of eigenvalues above one, 116 in Example 1 and 262 in the two-dimensional example, measures how many directions in the n-dimensional parameter space the data actually inform. The remaining directions, with λ i 1 , span the near-null space of A h that diffusion and the sparse sampling leave uninformed; there the posterior reverts to the prior, which is precisely what regularizes the reconstruction and what the wide credible bands in those regions report.
The pointwise posterior variance of the fields follows by projecting the coefficient covariance onto the evaluation functionals: for the source at ( x , t ) , Var f ( x , t ) | y = ϕ ( x , t ) H 1 f f ϕ ( x , t ) , where ϕ ( x , t ) is the vector of basis function values, and similarly for u 0 . An alternative that avoids the eigendecomposition is Hutchinson’s randomized estimator of the diagonal [42], which averages z H 1 z over Rademacher probes z and requires one linear solve with H per probe. Its error decays only as n s 1 / 2 in the number of probes; as shown in Section 6.2, it is therefore far less efficient here than the low-rank approach, which exploits the spectral decay rather than working against it.

5.5. A Calibrated Discrepancy Diagnostic

The whitened discrepancy at the MAP estimate,
Q MAP = Σ 1 / 2 A h θ MAP y 2 ,
is a natural truth-free, prior-predictive check of the model: gross inconsistency between the data and the assumed forward model, noise level, or prior mean inflates it. Its reference distribution requires care. Because θ MAP is estimated from the same data, Q MAP is not χ m 2 : the fit shrinks the residual in precisely the directions the data inform. The correct null law is available in closed form. Under the joint prior-predictive model, z = y A h θ ¯ N ( 0 , S ) with S = A h Γ A h + Σ , and (21) gives A h θ MAP y = Σ S 1 z ; whitening z then yields
Q MAP = d i = 1 m χ 1 , i 2 1 + λ i , E Q MAP = m i = 1 m λ i 1 + λ i , Var Q MAP = 2 i = 1 m 1 ( 1 + λ i ) 2 ,
a generalized χ 2 law, where χ 1 , i 2 are independent and λ i are the eigenvalues of Σ 1 / 2 A h Γ A h Σ 1 / 2 , equivalently, the nonzero spectrum of (25) padded with zeros. These moments are byproducts of the low-rank spectrum. With only its leading r < m eigenvalues retained and the omitted eigenvalues approximated by zero, we use
μ r = m i = 1 r λ i 1 + λ i , v r = 2 ( m r ) + i = 1 r 1 ( 1 + λ i ) 2 .
The ( m r ) term retains the unresolved directions. We flag misspecification when Q MAP > μ r + 2.58 v r , using the normal approximation to (28); the reported flags lie well beyond this threshold. This diagnostic does not alter the discrepancy stopping rule (15), which is calibrated to the noise residual of the true parameter.

5.6. Summary: The Reconstruction and Uncertainty-Quantification (UQ) Algorithm

Algorithm 1 collects the complete procedure used in the experiments. Every step accesses the heat equation only through the forward and adjoint solves of Section 3; no operator is assembled, and the dominant cost is the O ( r ) forward/adjoint pairs of the eigenvalue computation.
Algorithm 1 Adjoint-based MAP reconstruction and Gaussian uncertainty quantification for the joint source and initial-condition problem.
Input: data y; noise covariance Σ ; prior mean θ ¯ and covariance Γ (hyperparameters η fixed or set by empirical Bayes); forward and adjoint solvers for A h and A h .
1.
(Optional) hyperparameters. Maximize the closed-form evidence (19) over η (empirical Bayes).
2.
MAP estimate. Solve H ( θ θ ¯ ) = A h Σ 1 ( y A h θ ¯ ) by symmetrically Γ -preconditioned conjugate gradients (one forward and one adjoint solve per step) to obtain θ MAP .
3.
Dominant spectrum. Compute the leading eigenpairs ( λ i , v i ) i = 1 r of H ˜ = Γ 1 / 2 H mis Γ 1 / 2 by a matrix-free Lanczos or randomized method, with r chosen so that λ r + 1 1 .
4.
Posterior covariance. Form H 1 Γ ( Γ 1 / 2 V r ) D r ( Γ 1 / 2 V r ) with D r = diag λ i / ( 1 + λ i ) [Equation (26)].
5.
Model check. Evaluate the whitened discrepancy Q MAP = Σ 1 / 2 ( A h θ MAP y ) 2 and refer it to its prior-predictive null law (28). With the rank-r spectrum of step 3 and the omitted eigenvalues approximated by zero, use μ r = m i = 1 r λ i / ( 1 + λ i ) and v r = 2 [ ( m r ) + i = 1 r ( 1 + λ i ) 2 ] ; flag misspecification when Q MAP > μ r + 2.58 v r .
6.
Pointwise uncertainty. For each ( x , t ) form Var f ( x , t ) y = ϕ ( x , t ) H 1 f f ϕ ( x , t ) , and analogously for u 0 .
Output: MAP estimate θ MAP ; pointwise posterior standard deviations; and θ MAP ± 1.96 sd credible bands. Every step uses only forward and adjoint solves of the heat equation.

6. Numerical Experiments

6.1. Setup and Verification

In Examples 1 and 2, we set D = ( 0 , 0.2 ) m, T = 10 s and κ = 10 3   m 2 / s . The forward problem is discretized with N x = 60 intervals ( Δ x 3.3 mm) and N t = 200 Crank–Nicolson steps ( Δ t = 0.05 s). Six sensors are placed at x = 0.03 , 0.06 , , 0.18 m and sampled at every second time step, including t = 0 , which gives m = 606 observations. The source is represented on a bilinear nodal basis with 30 nodes in space and 41 in time ( n f = 1230 coefficients), and the initial condition is represented by its values at the 59 interior grid nodes, so that n = 1289 . The boundary temperature is held at 20 K above ambient at both ends. The priors are of Matérn-5/2 type: for the source, a separable covariance with standard deviation 1.5 K/s and correlation lengths 0.03 m and 1.5 s; for the initial condition, standard deviation 1 K, correlation length 0.05 m, and mean equal to the boundary value of 20 K. These values reflect the physical setting: the correlation lengths are of the order of the expected width of a heating event and of the sensor spacing, and the marginal standard deviations of the expected source amplitude and initial-state uncertainty; their influence is quantified in Section 6.2.8. The noise is independent and identically distributed (i.i.d.) Gaussian, Σ = σ 2 I , with σ set to 1% of the dynamic range of the clean data unless stated otherwise ( σ = 0.019 K in Example 1). All computations were performed in MATLAB; wall-clock times are collected in Section 6.5.
Before any inversion, we verify the underlying machinery. The adjoint identity A h θ , w = θ , A h w (in the Euclidean coefficient inner products of Section 3) holds with relative error below 5 × 10 15 over random probes, and the matrix-free maps agree with an independently assembled matrix A h to the same precision. Central finite differences of the objective (20) match the adjoint gradient with relative error 9 × 10 11 at step h = 10 3 , which is consistent with the accuracy floor of second-order differences in double precision. The preconditioned iterations converge to the closed-form MAP estimate (21), and the credible intervals are verified by the coverage experiment described below.

6.2. Example 1: Deterministic Versus Bayesian Reconstruction

The true source is the separable Gaussian pulse f ( x , t ) = 2 exp ( x 0.12 ) 2 / ( 2 · 0 . 02 2 ) exp ( t 4 ) 2 / ( 2 · 1 2 ) K/s, and the true initial condition is the parabola u 0 ( x ) = 20 + 5 ( x / L ) ( 1 x / L ) K, which deviates from the prior mean by up to 1.25 K. Figure 1 displays the configuration and the data. We contrast the deterministic reconstruction, a point estimate from the data misfit alone, regularized by early stopping (Section 4), with the Bayesian reconstruction, which adds the prior and returns calibrated uncertainty (Section 5).

6.2.1. Deterministic Reconstruction

The deterministic estimate minimizes the data misfit (9) by the Landweber–Fridman and conjugate-gradient (CGLS) iterations of Section 4, started from f 0 , u 0 20 and stopped by the discrepancy principle (15). Both exhibit the classical semiconvergence (Figure 2): the source error first falls and then rises as the iteration begins to fit the noise. The two methods differ sharply in cost. At 1% noise the Landweber–Fridman iteration reaches the discrepancy only at k * = 203 , whereas conjugate-gradient least squares reaches it at k * = 11 ; at 5% noise, the counts are 41 and 6. Conjugate gradients thus attains the same discrepancy and a comparable source error, 0.24 at 1% and 0.40 at 5% noise, in roughly an order of magnitude fewer forward and adjoint solves. The initial condition is recovered to about 1% relative error in both cases, reflecting its direct observation at t = 0 .

6.2.2. Bayesian Reconstruction

Adding the Gaussian priors of Section 5.1 and computing the posterior (21) lowers the source error to 0.12 (about half the deterministic value at the same noise level) and the initial-condition error to 0.002. The smoothness prior removes the oscillatory artifacts that early stopping leaves in the deterministic estimate, as Figure 3 and Figure 4 show. Beyond the improved point estimate, the Bayesian formulation supplies pointwise credible bands, which behave as the sensor geometry dictates: narrow for the initial condition everywhere, narrow for the source near the sensors (hence across the well-instrumented region in which the pulse happens to lie), and wide near the spatial boundaries, which the sensors barely observe; the widening at the temporal ends of the source window is mild because the observations extend to t = T and the prior correlates the source in time. For fixed A h , Γ , and Σ the posterior covariance is independent of the observed data, so the bands narrow where the forward operator and the prior make the data informative, not because a source is present there. The posterior standard deviation field of Figure 3 renders the sensor geometry directly visible.
Figure 4 displays the two estimates against the truth along two time slices and for the initial condition. The discrepancy-stopped deterministic estimate (orange, dashed) oscillates around the truth: at the stopping index the iteration has recovered the singular directions the data resolve and left the rest at zero, and this near-truncation of the spectrum rings around the pulse, much as a truncated singular-value expansion would (the conjugate-gradient filter factors are adaptive polynomials, close to one on the resolved directions and close to zero on the rest, not an exact 0–1 cutoff). It is nevertheless the correct benchmark, fitting the data to the discrepancy tolerance (15) while using no prior beyond the stopping rule. The posterior mean replaces the truncation by the smooth spectral weights λ i / ( 1 + λ i ) of (26), suppressing the ringing, and its 95% band, narrow near sensors and wide toward the domain corners, prices the undetermined directions. The initial condition (right panel) is recovered accurately by both, being observed directly at t = 0 ; only the Bayesian band certifies this without reference to the truth.

6.2.3. Convergence to the MAP Point

We compared the preconditioned first-order iteration (24) with preconditioned conjugate gradients, both matrix-free at one forward and one adjoint solve per step. With λ 1 = 3.7 × 10 6 , the first-order method contracts by roughly 1 5 × 10 7 per step in the worst direction and reaches a relative error of 6 × 10 2 after 600 steps, whereas conjugate gradients reaches 2 × 10 7 in the same number of forward/adjoint solve pairs. The practical implication is that the adjoint structure of the Landweber–Fridman method carries over to the statistical setting unchanged, but the fixed-point iteration itself should be replaced by a Krylov method once a prior term is present.

6.2.4. Low-Rank Posterior Covariance

Figure 5 shows the eigenvalues of H ˜ : they fall below one near index 117 and decay by thirteen orders of magnitude within the first 500 indices, so that the data inform roughly 116 of the 1289 directions. Truncating (26) at rank 120 reproduces the pointwise variances with a median relative error of 1.8 × 10 3 , and rank 160 reaches 5.9 × 10 5 . By contrast, Hutchinson’s estimator still has a median relative error of 0.18 after 1000 probe solves and follows the n s 1 / 2 rate: a budget three orders of magnitude costlier in time than the low-rank route while still more than three orders of magnitude less accurate, and matching 5.9 × 10 5 at that rate would take 1000 × 0.18 / ( 5.9 × 10 5 ) 2 10 10 probes (each probe requires a full linear solve with H; in wall-clock terms, ten measured probes take 16 s, extrapolating to 1.6 × 10 3 s for 1000, against 1.2 s for the rank-160 route; Section 6.5). When the spectrum decays in this manner, the eigendecomposition is clearly the more appropriate tool.
To perform an end-to-end verification of the linear-Gaussian implementation, we drew 300 parameter vectors from the prior, simulated data for each, and computed the corresponding posterior. Across the 1289 parameter components, the pointwise 95% credible intervals attained a mean empirical coverage of 0.9496, with componentwise coverage ranging from 0.910 to 0.980, consistent with binomial variation at 300 replicates. Robustness to prior misspecification is examined next.

6.2.5. Coverage Under Prior Misspecification and a Discontinuous Source

We assess prior misspecification, with the prior, sensors, and noise level ( σ = 0.019 K) of Example 1 held fixed. We first consider the discontinuous source
f ( x , t ) = 2 1 { | x 0.12 | 0.02 } 1 { 3 t 5 } K / s ,
which violates the smoothness assumption of the Matérn-5/2 prior while leaving the forward problem linear. The posterior mean recovers the location and magnitude of the block but smooths its edges, giving a relative source error of 0.41, compared with 0.43 for the deterministic estimate. Although the pointwise 95% bands cover 96.3% of the full space–time grid, their coverage falls to 0.63 over the block and 0.03 within one grid cell of its boundary, where the smoothing bias is concentrated (Figure 6).
The normalized discrepancy is Q MAP / m = 1.00 . Its prior-predictive null distribution (28) has normalized mean 0.81 and standard deviation 0.051, placing the observed value approximately 3.8 standard deviations above the null mean and above the calibrated threshold 0.81 + 2.58 ( 0.051 ) 0.94 . By contrast, the inappropriate χ m 2 threshold 1 + 2.58 2 / m 1.15 would not flag the misspecification. The discrepancy is nevertheless much smaller than the value of approximately 53 in Section 6.3, indicating that the diagnostic is more sensitive to forward-model inconsistency than to prior mismatch in weakly informed directions.
We next repeat the experiment over 300 realizations from each of two out-of-prior ensembles: narrow pulses, with random amplitudes in [ 1 , 3 ] K/s, random locations, and widths s x [ 8 , 15 ] mm and s t [ 0.3 , 0.8 ] s; and discontinuous blocks of the form above. These scales are smaller than the prior correlation lengths x = 30 mm and t = 1.5 s. Because these truths need not lie in the source basis span, coverage is evaluated on the space–time grid rather than for the basis coefficients.
Table 2 reports a mean field-level coverage of 0.950 for the prior-drawn reference, 0.996 for the narrow pulses, and 0.957 for the blocks. The high aggregate values partly reflect that the compact sources are zero or negligible over most of the domain. For the block ensemble, mean coverage restricted to the active support is only 0.48 and falls to 0.11 within one grid cell of the discontinuity. The calibrated discrepancy diagnostic flags none of the narrow-pulse realizations and 53% of the block realizations, compared with 1% of the prior draws. Thus, global coverage can mask substantial local undercoverage near sharp interfaces. When such interfaces are expected, an edge-preserving prior, such as a Besov or hierarchical prior [23,25], is more appropriate, at the cost of losing the exact Gaussian posterior.

6.2.6. Effect of the Noise Level

Table 3 and the left panel of Figure 7 report the reconstruction errors of both methods for noise between 0.5% and 5% of the data range, at a fixed realization per level. The Bayesian source error is about half the deterministic one at the lower noise levels (ratios 0.41 at 0.5% and 0.53 at 1%), the advantage narrowing as the noise grows (0.70 at 2% and 0.90 at 5%, where the heavily regularized deterministic estimate is nearly as accurate); the gap on the initial condition is larger still: the prior, together with the direct observation at t = 0 , holds u 0 to ∼ 10 3 relative error, whereas the unregularized deterministic estimate stalls near 10 2 . Both source errors grow sublinearly: over the tenfold noise increase, the deterministic error roughly doubles, while the Bayesian error grows by about a factor of four.

6.2.7. Effect of Numerical Error

We probe the influence of the discretization by generating the data on a fine mesh ( N x = 240 , N t = 800 ) and inverting them on a sequence of coarser meshes, so that no inverse crime is committed: inverting data with the same discretization that generated them would artificially remove the forward-model error. The right panel of Figure 7 shows the result. The Bayesian source error is essentially flat ( 0.12 ) from N x = 20 to 120: the prior supplies a mesh-independent, scale-selective regularization, so refining the grid neither helps nor harms. The deterministic error, by contrast, is markedly discretization-sensitive (about 0.16 at N x = 40 but rising to 0.33 at N x = 120 ) because early stopping does not control the finer parameter modes that refinement introduces, and the iteration expends its budget fitting noise into them. Inverting data generated on the same mesh (the inverse crime, crosses in Figure 7) changes the deterministic error by less than 0.01, confirming that the Crank–Nicolson model resolves the forward problem well enough that the fine-mesh data are honest: the discretization sensitivity is a property of the regularization, not of the forward solver. Figure 7 summarizes both studies. In the left panel the initial-condition curves are flat across the noise range, since u 0 is observed directly at t = 0 , and the Bayesian advantage on the source is a factor of about two at moderate noise, narrowing at 5% (Table 3); each level uses a single fixed noise realization, so the precise ratios carry sampling variability; in the right panel the monotone rise of the deterministic curve under refinement, against the flat Bayesian one, is the practical warning of this section: for discrepancy-stopped iterations the discretization acts as an implicit regularization parameter, so refining the mesh without strengthening the regularization degrades the reconstruction.

6.2.8. Sensitivity to the Prior Hyperparameters

The hyperparameters η = ( σ f , x , t , σ 0 ) were fixed in Section 6.1 based on physical considerations, with the correlation lengths, in particular, controlling how aggressively the prior smooths the source. To quantify the dependence we repeat the Bayesian reconstruction of Example 1 with each hyperparameter halved and doubled, relative to its nominal value, one at a time, with the data, noise, and other hyperparameters fixed. Table 4 reports the source and initial-condition errors, the mean 95% band width for each field, and the log marginal likelihood (19) that the empirical-Bayes route of Section 5.1 would maximize.
The source error stays between 0.090 and 0.170 across the eight perturbed settings, against 0.119 nominal—at most a factor of about 1.4 under any twofold change—and the initial-condition error remains 0.002 throughout, so the reconstruction is stable and not an artifact of a prior tuned to the truth, t being the most influential parameter. The band widths respond as the prior dictates, scaling with the marginal variances (mean 95% band for f from 0.62 to 2.40 K/s across σ f , for u 0 from 0.20 to 0.50 K across σ 0 ) and widening as x shortens (2.53 against 0.43 K/s), which makes explicit that credible bands are conditional on the prior scales. The evidence ranks the settings usefully: its two largest values, at t × 2 and σ f × 1 2 , are precisely the two smallest source errors (0.090 and 0.100), both better than nominal. The one-at-a-time evidence thus broadly tracks the reconstruction quality, suggesting that empirical-Bayes maximization of (19)—a joint optimization we have not performed—may improve on the physically chosen values. This is an indication from the one-at-a-time study, not an established consequence of joint evidence maximization; we recommend empirical Bayes when physical knowledge is weak, while full propagation of hyperparameter uncertainty lies beyond the present study.

6.3. Example 2: Two-Component Source and an Initial Condition Offset

The second example mimics an experiment in which the nominal initial state is known only up to a uniform offset, a common situation when sensors are calibrated to relative rather than absolute temperature. The true source is a sum of two Gaussian pulses, located at ( x , t ) = ( 0.07 m , 2.5 s ) with amplitude 1.5 K/s and at ( 0.14 m , 6 s ) with amplitude 2 K/s. The true initial condition is the nominal parabolic profile of Example 1 shifted by c = 1.5 K, and the unknowns are the source coefficients together with the scalar offset c, to which we assign the prior c N ( 0 , 2 2 ) . The noise level is 1% ( σ = 0.023 K).
Joint estimation recovers the offset as c = 1.500 ± 0.008 K and the source with relative error 0.25, and the normalized discrepancy at the MAP point is 0.83, in agreement with its null expectation of 0.83 for this configuration (Section 5.5). Fixing c = 0 instead, as a deterministic formulation with a trusted initial state would do, drives the source error to 2.81: the inversion fabricates a strong spurious source sheet at early times near the boundaries in order to mimic the missing initial heat, as is clearly visible in the third panel of Figure 8. The statistical formulation flags this problem without reference to the truth, since the normalized discrepancy of the misspecified fit is approximately 53, three orders of magnitude beyond the spread of the null law of Section 5.5 (mean 0.83, standard deviation 0.05). The discrepancy diagnostic is thus a model-error indicator, and the joint formulation removes the bias at the cost of one additional scalar parameter.

6.4. Example 3: A Two-Dimensional Plate

To confirm that the framework and its uncertainty quantification carry over to higher dimensions, we repeat the joint reconstruction on a rectangular plate Ω = ( 0 , 0.2 ) × ( 0 , 0.1 ) m with homogeneous Dirichlet conditions, discretized by N x = 40 and N y = 20 cells and N t = 80 Crank–Nicolson steps (741 interior nodes). The true source is a localized space–time pulse centered at ( 0.12 , 0.05 ) m and t = 4 s, and the true initial condition is the smooth interior bump u 0 = 5 sin ( π x / L x ) sin ( π y / L y ) K; both are unknown. Temperatures are recorded at a 6 × 4 grid of 24 interior sensors, sampled at every second step including t = 0 , giving m = 984 observations of a parameter of dimension n = 1326 (a 9 × 5 × 13 nodal source basis together with the initial condition on the interior grid). The priors are of Matérn-5/2 type as before, and the discrete adjoint again satisfies the identity A h θ , w R m = θ , A h w R n to machine precision.
The reconstructions of Figure 9 reproduce the one-dimensional picture. The deterministic CGLS estimate, stopped by the discrepancy principle at k * = 8 , recovers the source to relative error 0.41 but leaves the initial condition essentially unrecovered away from the sensors (relative error 0.97), because the data constrain u 0 only at the few observation points. The Bayesian posterior mean is more accurate on both fields (source error 0.38 and initial-condition error 0.08) because the smoothness prior fills in the unobserved interior, and it additionally supplies the pointwise standard-deviation fields of the right-hand panels, which narrow near the sensors (the source region being well instrumented) and widen where the plate is poorly observed. The prior-preconditioned data-misfit Hessian retains its rapid spectral decay, with λ 1 = 4.5 × 10 5 and the eigenvalues falling below one at index 263: of the 1326 parameter directions, only about 262 are informed by the data, so the low-rank covariance of Section 5.4 is as effective in two dimensions as in one. Every step uses the same forward and adjoint solves, now of the two-dimensional heat equation. The pipeline is inexpensive at this resolution: the deterministic reconstruction takes 0.07 s, the matrix-free MAP estimate 3.3 s, and 300 dominant eigenpairs with the pointwise variances a further 2.7 s (Table 5), the matrix-free quantities agreeing with the dense reference to 10 5 or better. We emphasize the scope: with n = 1326 unknowns this example shows that the formulation, the discrete adjoint, and the low-rank uncertainty quantification transfer unchanged to d = 2 , not that the pipeline has been exercised at large scale; the ingredients required at 10 5 10 6 parameters (finite element discretizations, mesh-independent prior operators, randomized eigensolvers) are established in the literature [26,27,28] and not re-demonstrated here.

6.5. Computational Cost

Table 5 reports the wall-clock times for the deterministic reconstruction, the MAP solve, the posterior uncertainty quantification, and the complete Bayesian pipeline. Example 2 uses a direct posterior computation, so its MAP and uncertainty-quantification costs are included in a single reported time. All runs used MATLAB R2025b on two threads of an Intel Core i7-1355U (1.70 GHz, 16 GB RAM). The complete Bayesian pipeline costs 2.6 s in Example 1 and 6.0 s for the plate; the Hutchinson timing comparison is reported in Section 6.2.

7. Conclusions

The contributions of this work are fourfold. First, a single adjoint solve of the heat equation yields the misfit gradient with respect to both an internal space–time source and the initial temperature—the adjoint state in the interior and its trace at t = 0 —so the joint reconstruction costs no more per iteration than the source-only problem, whereas existing joint procedures were restricted to spacewise-dependent sources from temperature snapshots. Second, on this gradient we build a unified framework in which a deterministic estimate (conjugate-gradient least squares stopped by the statistical discrepancy principle) and a Bayesian estimate (the MAP point of an exactly Gaussian posterior, by prior-preconditioned conjugate gradients) share the identical forward and adjoint machinery, with Landweber–Fridman retained as a baseline. Third, the framework delivers an exact finite-dimensional Gaussian posterior with verifiable uncertainty at the cost of forward and adjoint solves alone: the low-rank identity (26) converts the rapid spectral decay of the prior-preconditioned data-misfit Hessian into pointwise credible bands, and the exact discrete adjoint makes the pipeline verifiable, with the bands attaining nominal coverage over prior-drawn truths (prior-predictive calibration). Fourth, the whitened MAP discrepancy, referred to as its exact prior-predictive generalized- χ 2 null law (28)—itself a byproduct of the low-rank spectrum—serves as a truth-free, prior-predictive model-error indicator, detecting both a misspecified initial condition that a least-squares fit silently absorbs into the source and a discontinuous source that violates the prior.
The experiments support these contributions while marking their limits. Conjugate gradients is substantially faster than the Landweber baseline, and the Bayesian reconstruction is more robust to noise and mesh refinement. Prior-predictive coverage is nominal, whereas the out-of-prior experiments show that uncertainty failures concentrate near sharp interfaces; the discrepancy diagnostic detects consequential model mismatch but is less sensitive to features weakly informed by the data. The sensitivity and two-dimensional studies support robustness and dimensional transfer at the moderate scales tested here.
We close with the natural extensions, distinguishing what has been demonstrated from what has not. The experiments are one- and two-dimensional with at most 1326 unknowns; at a larger scale, the required ingredients—finite element discretizations, mesh-independent prior operators, randomized matrix-free eigensolvers—are established [26,27,28], and their integration here is a natural next step we have not exercised; discrete-adjoint consistency also needs care under adaptive time stepping. Treating the diffusivity as uncertain renders the problem nonlinear (unknown additive boundary data, by contrast, enter affinely and would remain within the linear Gaussian framework as a third unknown) and the posterior non-Gaussian; a Laplace or Gauss–Newton approximation about the MAP point is then available, whose accuracy is not addressed by the present linear experiments and would need a dedicated assessment against sampling or ensemble methods [43,44]. Sources with sharp interfaces are better served by edge-preserving than Matérn priors—as the discontinuous-source experiment makes this quantitative—at the price of the exact Gaussian posterior. Finally, joint inference of noise and prior hyperparameters would relax the fixed-hyperparameter assumption but lies beyond the present study.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

The author would like to acknowledge the support provided by the Department of Mathematics and the support provided by the Interdisciplinary Research Center for Refining & Advanced Chemicals at King Fahd University of Petroleum & Minerals (KFUPM).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Beck, J.V.; Blackwell, B.; St. Clair, C.R. Inverse Heat Conduction: Ill-Posed Problems; Wiley: New York, NY, USA, 1985. [Google Scholar]
  2. Alifanov, O.M. Inverse Heat Transfer Problems; Springer: Berlin, Germany, 1994. [Google Scholar]
  3. Özışık, M.N.; Orlande, H.R.B. Inverse Heat Transfer: Fundamentals and Applications; Taylor & Francis: New York, NY, USA, 2000. [Google Scholar]
  4. Cannon, J.R. Determination of an unknown heat source from overspecified boundary data. SIAM J. Numer. Anal. 1968, 5, 275–286. [Google Scholar] [CrossRef] [Scilit]
  5. Prilepko, A.I.; Orlovsky, D.G.; Vasin, I.A. Methods for Solving Inverse Problems in Mathematical Physics; Marcel Dekker: New York, NY, USA, 2000. [Google Scholar]
  6. Isakov, V. Inverse Problems for Partial Differential Equations, 3rd ed.; Springer: Cham, Switzerland, 2017. [Google Scholar]
  7. Yamamoto, M. Conditional stability in determination of force terms of heat equations in a rectangle. Math. Comput. Model. 1993, 18, 79–88. [Google Scholar] [CrossRef] [Scilit]
  8. Landweber, L. An iteration formula for Fredholm integral equations of the first kind. Am. J. Math. 1951, 73, 615–624. [Google Scholar] [CrossRef] [Scilit]
  9. Fridman, V.M. Method of successive approximations for a Fredholm integral equation of the first kind. Uspekhi Mat. Nauk. 1956, 11, 233–234. [Google Scholar]
  10. Morozov, V.A. On the solution of functional equations by the method of regularization. Sov. Math. Dokl. 1966, 7, 414–417. [Google Scholar] [CrossRef] [Scilit]
  11. Engl, H.W.; Hanke, M.; Neubauer, A. Regularization of Inverse Problems; Kluwer Academic Publishers: Dordrecht, The Netherlands, 1996. [Google Scholar]
  12. Hanke, M.; Neubauer, A.; Scherzer, O. A convergence analysis of the Landweber iteration for nonlinear III-posed problems. Numer. Math. 1995, 72, 21–37. [Google Scholar] [CrossRef] [Scilit]
  13. Kirsch, A. An Introduction to the Mathematical Theory of Inverse Problems, 2nd ed.; Springer: New York, NY, USA, 2011. [Google Scholar]
  14. Hanke, M. Conjugate Gradient Type Methods for III-Posed Problems; Longman Scientific & Technical: Harlow, UK, 1995. [Google Scholar]
  15. Paige, C.C.; Saunders, M.A. LSQR: An algorithm for sparse linear equations and sparse least squares. ACM Trans. Math. Softw. 1982, 8, 43–71. [Google Scholar] [CrossRef] [Scilit]
  16. Saad, Y. Iterative Methods for Sparse Linear Systems, 2nd ed.; SIAM: Philadelphia, PA, USA, 2003. [Google Scholar]
  17. Johansson, T.; Lesnic, D. Determination of a spacewise dependent heat source. J. Comput. Appl. Math. 2007, 209, 66–80. [Google Scholar] [CrossRef] [Scilit]
  18. Johansson, B.T.; Lesnic, D. A variational method for identifying a spacewise-dependent heat source. IMA J. Appl. Math. 2007, 72, 748–760. [Google Scholar] [CrossRef] [Scilit]
  19. Hasanov, A. Identification of spacewise and time dependent source terms in 1D heat conduction equation from temperature measurement at a final time. Int. J. Heat Mass Transf. 2012, 55, 2069–2080. [Google Scholar] [CrossRef] [Scilit]
  20. Hasanov Hasanoğlu, A.; Romanov, V.G. Introduction to Inverse Problems for Differential Equations; Springer: Cham, Switzerland, 2017. [Google Scholar]
  21. Kozlov, V.A.; Maz’ya, V.G.; Fomin, A.V. An iterative method for solving the Cauchy problem for elliptic equations. USSR Comput. Math. Math. Phys. 1991, 31, 45–52. [Google Scholar]
  22. Johansson, B.T.; Lesnic, D. A procedure for determining a spacewise dependent heat source and the initial temperature. Appl. Anal. 2008, 87, 265–276. [Google Scholar] [CrossRef] [Scilit]
  23. Kaipio, J.; Somersalo, E. Statistical and Computational Inverse Problems; Springer: New York, NY, USA, 2005. [Google Scholar]
  24. Stuart, A.M. Inverse problems: A Bayesian perspective. Acta Numer. 2010, 19, 451–559. [Google Scholar] [CrossRef] [Scilit]
  25. Dashti, M.; Stuart, A.M. The Bayesian approach to inverse problems. In Handbook of Uncertainty Quantification; Ghanem, R., Higdon, D., Owhadi, H., Eds.; Springer: Cham, Switzerland, 2017; pp. 311–428. [Google Scholar]
  26. Flath, H.P.; Wilcox, L.C.; Akçelik, V.; Hill, J.; van Bloemen Waanders, B.; Ghattas, O. Fast algorithms for Bayesian uncertainty quantification in large-scale linear inverse problems based on low-rank partial Hessian approximations. SIAM J. Sci. Comput. 2011, 33, 407–432. [Google Scholar] [CrossRef] [Scilit]
  27. Bui-Thanh, T.; Ghattas, O.; Martin, J.; Stadler, G. A computational framework for infinite-dimensional Bayesian inverse problems Part I: The linearized case, with application to global seismic inversion. SIAM J. Sci. Comput. 2013, 35, A2494–A2523. [Google Scholar] [CrossRef] [Scilit]
  28. Spantini, A.; Solonen, A.; Cui, T.; Martin, J.; Tenorio, L.; Marzouk, Y. Optimal low-rank approximations of Bayesian linear inverse problems. SIAM J. Sci. Comput. 2015, 37, A2451–A2487. [Google Scholar] [CrossRef] [Scilit]
  29. Ruggeri, F.; Sawlan, Z.; Scavino, M.; Tempone, R. A hierarchical Bayesian setting for an inverse problem in linear parabolic PDEs with noisy boundary conditions. Bayesian Anal. 2017, 12, 407–433. [Google Scholar] [CrossRef] [Scilit]
  30. Iglesias, M.; Sawlan, Z.; Scavino, M.; Tempone, R.; Wood, C. Bayesian inferences of the thermal properties of a wall using temperature and heat flux measurements. Int. J. Heat Mass Transf. 2018, 116, 417–431. [Google Scholar] [CrossRef] [Scilit]
  31. Sharahy, A.; Sawlan, Z. Estimation of Temperature-Dependent Thermal Conductivity and Heat Capacity Given Boundary Data. Computation 2023, 11, 184. [Google Scholar] [CrossRef] [Scilit]
  32. Evans, L.C. Partial Differential Equations, 2nd ed.; Graduate Studies in Mathematics; American Mathematical Society: Providence, RI, USA, 2010; Volume 19. [Google Scholar]
  33. Tröltzsch, F. Optimal Control of Partial Differential Equations: Theory, Methods and Applications; Graduate Studies in Mathematics; American Mathematical Society: Providence, RI, USA, 2010; Volume 112. [Google Scholar]
  34. Plessix, R.-E. A review of the adjoint-state method for computing the gradient of a functional with geophysical applications. Geophys. J. Int. 2006, 167, 495–503. [Google Scholar] [CrossRef] [Scilit]
  35. Stein, M.L. Interpolation of Spatial Data: Some Theory for Kriging; Springer: New York, NY, USA, 1999. [Google Scholar]
  36. Lindgren, F.; Rue, H.; Lindström, J. An explicit link between Gaussian fields and Gaussian Markov random fields: The stochastic partial differential equation approach. J. R. Stat. Soc. Ser. B 2011, 73, 423–498. [Google Scholar] [CrossRef] [Scilit]
  37. Roininen, L.; Huttunen, J.M.J.; Lasanen, S. Whittle-Matérn priors for Bayesian statistical inversion with applications in electrical impedance tomography. Inverse Probl. Imaging 2014, 8, 561–586. [Google Scholar] [CrossRef] [Scilit]
  38. Rasmussen, C.E.; Williams, C.K.I. Gaussian Processes for Machine Learning; MIT Press: Cambridge, MA, USA, 2006. [Google Scholar]
  39. Calvetti, D.; Somersalo, E. Hypermodels in the Bayesian imaging framework. Inverse Probl. 2008, 24, 034013. [Google Scholar] [CrossRef] [Scilit]
  40. Bardsley, J.M. Computational Uncertainty Quantification for Inverse Problems; SIAM: Philadelphia, PA, USA, 2018. [Google Scholar]
  41. Halko, N.; Martinsson, P.G.; Tropp, J.A. Finding structure with randomness: Probabilistic algorithms for constructing approximate matrix decompositions. SIAM Rev. 2011, 53, 217–288. [Google Scholar] [CrossRef] [Scilit]
  42. Hutchinson, M.F. A stochastic estimator of the trace of the influence matrix for Laplacian smoothing splines. Commun. Stat. —Simul. Comput. 1989, 18, 1059–1076. [Google Scholar] [CrossRef] [Scilit]
  43. Iglesias, M.A.; Law, K.J.H.; Stuart, A.M. Ensemble Kalman methods for inverse problems. Inverse Probl. 2013, 29, 045001. [Google Scholar] [CrossRef] [Scilit]
  44. Iglesias, M.; Sawlan, Z.; Scavino, M.; Tempone, R.; Wood, C. Ensemble-marginalized Kalman filter for linear time-dependent PDEs with noisy boundary conditions: Application to heat transfer in building walls. Inverse Probl. 2018, 34, 075008. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Example 1. (Left): true initial condition (solid) and prior mean (dashed). (Middle): measured temperatures at two sensors (dots) and the noise-free signals (lines). (Right): true source f , a Gaussian pulse centered at x = 0.12 m, t = 4 s; horizontal lines mark the sensors.
Figure 1. Example 1. (Left): true initial condition (solid) and prior mean (dashed). (Middle): measured temperatures at two sensors (dots) and the noise-free signals (lines). (Right): true source f , a Gaussian pulse centered at x = 0.12 m, t = 4 s; horizontal lines mark the sensors.
Computation 14 00162 g001
Figure 2. Deterministic reconstruction in Example 1 at two noise levels: Landweber–Fridman (solid) versus conjugate-gradient least squares (CGLS) (dashed). (Left): relative source error against the iteration index, with the discrepancy-principle stop marked (circles, LF; squares, CGLS). (Right): normalized discrepancy Σ 1 / 2 r k 2 / m ; the dotted line is the threshold τ 2 , τ = 1.05 . CGLS reaches the discrepancy in roughly an order of magnitude fewer iterations.
Figure 2. Deterministic reconstruction in Example 1 at two noise levels: Landweber–Fridman (solid) versus conjugate-gradient least squares (CGLS) (dashed). (Left): relative source error against the iteration index, with the discrepancy-principle stop marked (circles, LF; squares, CGLS). (Right): normalized discrepancy Σ 1 / 2 r k 2 / m ; the dotted line is the threshold τ 2 , τ = 1.05 . CGLS reaches the discrepancy in roughly an order of magnitude fewer iterations.
Computation 14 00162 g002
Figure 3. Example 1, 1% noise. True source, the deterministic (CGLS) reconstruction, and the Bayesian posterior mean (first three panels, shared color scale), with the pointwise posterior standard deviation of the source (right; white lines mark the sensors). The deterministic estimate carries oscillatory artifacts that the smoothness prior removes.
Figure 3. Example 1, 1% noise. True source, the deterministic (CGLS) reconstruction, and the Bayesian posterior mean (first three panels, shared color scale), with the pointwise posterior standard deviation of the source (right; white lines mark the sensors). The deterministic estimate carries oscillatory artifacts that the smoothness prior removes.
Computation 14 00162 g003
Figure 4. Example 1, 1% noise. Source profiles at t = 3 s and t = 4.5 s (left, middle) and the initial condition (right): truth (black), Bayesian posterior mean with 95 % credible band (blue), and the discrepancy-stopped deterministic estimate (orange, dashed).
Figure 4. Example 1, 1% noise. Source profiles at t = 3 s and t = 4.5 s (left, middle) and the initial condition (right): truth (black), Bayesian posterior mean with 95 % credible band (blue), and the discrepancy-stopped deterministic estimate (orange, dashed).
Computation 14 00162 g004
Figure 5. Example 1. (Left): spectrum of the prior-preconditioned data-misfit Hessian H ˜ (the dotted line is λ = 1 ). (Middle): relative error of the pointwise posterior variances for the rank-r approximation (26). (Right): the same error for Hutchinson’s diagonal estimator against the number of probes.
Figure 5. Example 1. (Left): spectrum of the prior-preconditioned data-misfit Hessian H ˜ (the dotted line is λ = 1 ). (Middle): relative error of the pointwise posterior variances for the rank-r approximation (26). (Right): the same error for Hutchinson’s diagonal estimator against the number of probes.
Computation 14 00162 g005
Figure 6. Discontinuous source, 1% noise. True source and Bayesian posterior mean (third and fourth panels), and profiles at t = 4 s and x = 0.12 m: truth (black), posterior mean with pointwise 95% band (blue), and discrepancy-stopped deterministic estimate (orange, dashed). The prior smooths the block edges, causing local undercoverage near the discontinuity.
Figure 6. Discontinuous source, 1% noise. True source and Bayesian posterior mean (third and fourth panels), and profiles at t = 4 s and x = 0.12 m: truth (black), posterior mean with pointwise 95% band (blue), and discrepancy-stopped deterministic estimate (orange, dashed). The prior smooths the block edges, causing local undercoverage near the discontinuity.
Computation 14 00162 g006
Figure 7. Robustness of the deterministic (orange) and Bayesian (blue) reconstructions in Example 1. (Left): relative L 2 error of f and u 0 against the noise level. (Right): relative source error against the inversion mesh N x for honest fine-mesh data, with the inverse-crime values marked by crosses. The Bayesian reconstruction is mesh-robust, whereas the deterministic one degrades under refinement.
Figure 7. Robustness of the deterministic (orange) and Bayesian (blue) reconstructions in Example 1. (Left): relative L 2 error of f and u 0 against the noise level. (Right): relative source error against the inversion mesh N x for honest fine-mesh data, with the inverse-crime values marked by crosses. The Bayesian reconstruction is mesh-robust, whereas the deterministic one degrades under refinement.
Computation 14 00162 g007
Figure 8. Example 2. True two-component source (left); posterior mean with joint estimation of the offset (second panel); reconstruction with the offset wrongly fixed at zero (third panel); posterior of the offset c with the truth marked (right).
Figure 8. Example 2. True two-component source (left); posterior mean with joint estimation of the offset (second panel); reconstruction with the offset wrongly fixed at zero (third panel); posterior of the offset c with the truth marked (right).
Computation 14 00162 g008
Figure 9. Example 3 (two-dimensional plate). (Top row): the source at t = 4 s; (bottom row): the initial condition. Columns: truth, the deterministic (CGLS) reconstruction, the Bayesian posterior mean, and the pointwise posterior standard deviation (dots mark the sensors). The deterministic estimate fails to recover the initial condition away from the sensors, whereas the prior fills it in.
Figure 9. Example 3 (two-dimensional plate). (Top row): the source at t = 4 s; (bottom row): the initial condition. Columns: truth, the deterministic (CGLS) reconstruction, the Bayesian posterior mean, and the pointwise posterior standard deviation (dots mark the sensors). The deterministic estimate fails to recover the initial condition away from the sensors, whereas the prior fills it in.
Computation 14 00162 g009
Table 1. Adjoint-based iterative solvers for the least-squares problem (9). Every method costs one forward and one adjoint solve per iteration and is stopped by the discrepancy principle (15); s 1 is the largest singular value of Σ 1 / 2 A h and s * the smallest one above the noise level. Conjugate gradients trades the dependence on the condition number s 1 / s * for a dependence on the effective rank.
Table 1. Adjoint-based iterative solvers for the least-squares problem (9). Every method costs one forward and one adjoint solve per iteration and is stopped by the discrepancy principle (15); s 1 is the largest singular value of Σ 1 / 2 A h and s * the smallest one above the noise level. Conjugate gradients trades the dependence on the condition number s 1 / s * for a dependence on the effective rank.
MethodIterations to Reach (15)Free Parameters
Landweber–Fridman O ( s 1 / s * ) 2 step ω
steepest descent O ( s 1 / s * ) 2 none
conjugate gradient (CGLS/LSQR) O # { i : s i s * } none
Table 2. Coverage under prior misspecification for 300 replicates per ensemble, with the nominal prior and σ = 0.019 K fixed. The columns report the mean (minimum) field-level coverage of the pointwise 95 % bands for f, the mean coverage for u 0 , the mean normalized discrepancy Q MAP / m , and the fraction exceeding the calibrated MAP-residual threshold 0.94 from (28).
Table 2. Coverage under prior misspecification for 300 replicates per ensemble, with the nominal prior and σ = 0.019 K fixed. The columns report the mean (minimum) field-level coverage of the pointwise 95 % bands for f, the mean coverage for u 0 , the mean normalized discrepancy Q MAP / m , and the fraction exceeding the calibrated MAP-residual threshold 0.94 from (28).
Truth EnsembleCoverage f, Mean (min)Coverage u 0 Discrepancy/mFlag Rate
prior draws (reference)0.950 (0.79)0.9520.800.01
narrow pulses0.996 (0.97)0.9950.790.00
discontinuous blocks0.957 (0.91)0.9950.970.53
Table 3. Example 1: relative L 2 reconstruction errors of the deterministic (CGLS, discrepancy-stopped) and the Bayesian (MAP) estimate at four noise levels.
Table 3. Example 1: relative L 2 reconstruction errors of the deterministic (CGLS, discrepancy-stopped) and the Bayesian (MAP) estimate at four noise levels.
Noise Level0.5%1%2%5%
σ (K)0.00950.0190.0380.095
deterministic, f0.2080.2190.2660.414
deterministic, u 0 0.0120.0130.0120.013
Bayesian, f0.0860.1190.1870.371
Bayesian, u 0 0.0020.0030.0020.004
Table 4. Example 1, 1 % noise: sensitivity of the Bayesian reconstruction to one-at-a-time variations of the prior hyperparameters about their nominal values ( σ f = 1.5 K/s, x = 0.03 m, t = 1.5 s, σ 0 = 1 K; 0 = 0.05 m fixed). Columns: relative L 2 errors of the posterior mean, mean 95 % band widths, and the log marginal likelihood (19).
Table 4. Example 1, 1 % noise: sensitivity of the Bayesian reconstruction to one-at-a-time variations of the prior hyperparameters about their nominal values ( σ f = 1.5 K/s, x = 0.03 m, t = 1.5 s, σ 0 = 1 K; 0 = 0.05 m fixed). Columns: relative L 2 errors of the posterior mean, mean 95 % band widths, and the log marginal likelihood (19).
Prior SettingError fError u 0 Band f (K/s)Band u 0 (K) log p ( y | η )
nominal0.1190.0021.2140.3131269.6
x × 1 2 0.1150.0022.5250.3251267.5
x × 2 0.1340.0020.4310.3001292.2
t × 1 2 0.1700.0021.2230.3331183.9
t × 2 0.0900.0021.2070.2991334.2
σ f × 1 2 0.1000.0020.6220.2991325.4
σ f × 2 0.1460.0022.4020.3331198.5
σ 0 × 1 2 0.1200.0021.2130.1971272.1
σ 0 × 2 0.1190.0021.2150.4991263.6
Table 5. Wall-clock times (s) for the deterministic reconstruction, the MAP solve, the posterior uncertainty quantification, and the complete Bayesian pipeline. The posterior-UQ time includes the low-rank covariance computation and pointwise variance projection.
Table 5. Wall-clock times (s) for the deterministic reconstruction, the MAP solve, the posterior uncertainty quantification, and the complete Bayesian pipeline. The posterior-UQ time includes the low-rank covariance computation and pointwise variance projection.
ExampleDeterministic CGLSMAPPosterior UQTotal Bayesian
1 (1D, n = 1289 , m = 606 )0.041.41.22.6
2 (1D offset, n = 1231 , m = 606 )0.30.3
3 (2D, n = 1326 , m = 984 )0.073.32.76.0
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Sawlan, Z. Adjoint-Based Joint Reconstruction of Heat Source and Initial Condition with Uncertainty Quantification. Computation 2026, 14, 162. https://doi.org/10.3390/computation14070162

AMA Style

Sawlan Z. Adjoint-Based Joint Reconstruction of Heat Source and Initial Condition with Uncertainty Quantification. Computation. 2026; 14(7):162. https://doi.org/10.3390/computation14070162

Chicago/Turabian Style

Sawlan, Zaid. 2026. "Adjoint-Based Joint Reconstruction of Heat Source and Initial Condition with Uncertainty Quantification" Computation 14, no. 7: 162. https://doi.org/10.3390/computation14070162

APA Style

Sawlan, Z. (2026). Adjoint-Based Joint Reconstruction of Heat Source and Initial Condition with Uncertainty Quantification. Computation, 14(7), 162. https://doi.org/10.3390/computation14070162

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop