Well2Flow: Reconstruction of reservoir states from sparse wells using score-based generative models

Shiqin Zeng, Haoyun Li, Abhinav Prakash Gahlot, Felix J. Herrmann · 2025

Read Well2Flow: Reconstruction of reservoir states from sparse wells using score-based generative models by Shiqin Zeng, Haoyun Li, Abhinav Prakash Gahlot, Felix J. Herrmann (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2504-06305.txt.

Introduction

Shiqin Zeng, Haoyun Li, Abhinav Gahlot, and Felix Herrmann rebuild underground flow maps from just two wells in a paper from 2025. Storing carbon in saline aquifers needs a clear picture of the rock below. Wells are few and maps between them are guesswork. Generative models can fill the gaps with plausible geology.

Their method, Well2Flow, trains on high-fidelity flow simulations. It learns how permeability and water saturation patterns evolve together. At use time, thin well-log profiles from two wells steer the generation. Physical constraints keep the rebuilt fields believable. Sparse data plus learned physics beats either alone. Carbon storage sites could be charted before drilling budgets balloon.

Catalog record

CREATORShiqin Zeng, Haoyun Li, Abhinav Prakash Gahlot, Felix J. Herrmann
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE15 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2504-06305

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Well2Flow: Reconstruction of reservoir states from sparse wells using score-based generative models Shiqin Zeng, Haoyun Li, Abhinav Prakash Gahlot, Felix J. Herrmann Abstract This study investigates the use of score-based generative models for reservoir simulation, with a focus on reconstructing spatially varying permeability and saturation fields in saline aquifers, inferred from sparse observations at two well locations. By modeling the joint distribution of permeability and saturation derived from high-fidelity reservoir simulations, the proposed neural network is trained to learn the complex spatiotemporal dynamics governing multiphase fluid flow in porous media. During inference, the framework effectively reconstructs both permeability and saturation fields by conditioning on sparse vertical profiles extracted from well log data. This approach introduces a novel methodology for incorporating physical constraints and well log guidance into generative models, significantly enhancing the accuracy and physical plausibility of the reconstructed subsurface states. Furthermore, the framework demonstrates strong generalization capabilities across varying geological scenarios, highlighting its potential for practical deployment in data-scarce reservoir management tasks. 1 Introduction Understanding and predicting subsurface flow is crucial for the sustainable management of natural resources and environmental systems. Recent advances in deep learning (DL) [ 1 ] have opened new avenues in this field by enabling the development of fast and accurate surrogate models that capture the spatiotemporal dynamics of fluid states, such as gas saturation and reservoir pressure. However, the heterogeneity of geological formations limits the accuracy of subsurface characterization, reducing the adaptability of both surrogate models and traditional simulations. And integrating well log data into history matching remains challenging due to limited spatial coverage and model alignment complexity. To overcome these limitations, we propose a novel framework based on score-based generative models, in which the sampling process is conditioned on sparse well log measurements and constrained by physical laws expressed as partial differential equations (PDEs). By incorporating physical constraints and well log information directly into the generative process, our approach produces physically consistent reconstructions that align with both observational data and governing physics. Experimental results demonstrate that the proposed method can accurately reconstruct complex reservoir states, effectively leveraging limited well log data to capture fine-scale geological features and enhance predictive performance. 2 Guided diffusion framework 2.1 Diffusion models Recent advancements in diffusion models have demonstrated their capacity to learn robust implicit priors from complex data distributions. For example, score-based generative modeling [ 2 ] illustrated that by matching the gradient of the log density ( \nabla_{x}\log p(x) ), these models can effectively capture intricate structures inherent in the data. Diffusion posterior sampling (DPS) [ 3 ] highlights the potential to incorporate the logarithmic likelihood gradient to guide the denoising process, allowing the approximation of posterior samples based on sparse observations. Additionally, DiffusionPDE [ 4 ] demonstrates how learned generative priors can be applied to solve a wide range of PDEs under partial observations, further emphasizing the potential of diffusion models to integrate with physical modeling in real-world applications. In our cases, we train the diffusion model on the joint distribution of full permeability K and saturation S of the final states based on the JutulDarcy.jl [ 5 , 6 ] . During inference, the model begins from Gaussian noise and iteratively denoises the samples, guided by both sparse well log observations and the governing PDE constraints. This physics-informed generative approach enables the accurate reconstruction of both permeability and saturation fields, ensuring consistency with the observed data and underlying physical laws. 2.2 Observation guidance Elucidating the design space of diffusion-based generative models (EDM) [ 7 ] proposed to learn the denoiser function D(x;\sigma) that effectively approximates the score function such that \nabla_{x}\log p(x;\sigma(t))=\frac{D(x;\sigma(t))-x}{\sigma^{2}(t)} . This equation is then applied to the probability flow Ordinary Differential Equation (ODE), which provides a deterministic trajectory for sample generation [ 2 ] . At each timestep t , the denoised sample x follows: \frac{dx}{dt}=-\sigma^{\prime}(t)\sigma(t)\left(\frac{D(x;\sigma(t))-x}{\sigma^{2}(t)}\right) (1) Here -\sigma^{\prime}(t)\sigma(t) serves as a time-dependent scaling factor for the score function, controlling the rate and stability of the sample generation process. The inpainting problem in DPS [ 3 ] is well-suited for reservoir reconstruction, where a complete permeability-saturation field is inferred from limited observed well log data. To incorporate the guidance of well log information y , DPS modifies the probability flow ODE by adding a likelihood guidance term: dx=-\dot{\sigma}(t)\sigma(t)(\nabla_{x}\log p(x;\sigma(t))+\nabla_{x}\log p(y|x;\sigma(t)))dt (2) Applying Bayes’ rule, the posterior distribution of the permeability and saturation field given well log observations ( y ) is p(x|y)\propto p(x)p(y|x) , and the posterior at each denoising step i is approximated as: p(x_{i}|y)\propto p(x_{i})p(y_{i}|x_{i})\dots p(x_{1})p(y_{1}|x_{1}) (3) Under the assumption that measurement errors follow a gaussian distribution, the log-likelihood gradient is approximated as: \nabla_{x}\log p(y|x_{i};\sigma(t_{i}))\approx-\frac{1}{\delta^{2}}\nabla_{x_{i}}\|y-Mx_{i}\|^{2}_{2} (4) Guided by the observation data, the gradient direction of the diffusion is therefore: \nabla_{x_{i}}\log p(x_{i}|y)\approx s(x_{i})-\zeta_{\text{obs}}\nabla_{x_{i}}\|y-Mx_{i}\|_{2}^{2} (5) where s(x)=\nabla_{x}\log p(x) is the score function learned by the diffusion model, M is a 2D binary mask indicating the coordinates of well locations, and the second term enforces data consistency with the well log observations. 2.3 Physical guidance We use Geological Carbon Sequestration (GCS) as a case study to evaluate the proposed methodology. The CO 2 injection process is constrained by phase mass conservation and Darcy’s law, formulated as: \nabla\cdot(\rho\vec{v})=q, (6) \vec{v}=-\frac{K}{\mu}(\nabla P-g\nabla z), (7) where \rho is the CO 2 mass density, \vec{v} is the fluid flow velocity, and q is the source term representing CO 2 injection or production. Here, \mu is the CO 2 viscosity, P is the pressure, g is the gravitational acceleration, and z is the depth. To couple P and S based on the Brooks-Corey model, we can rewrite the equation as: h=-\nabla\cdot(K\nabla S)-q=0 (8) Once the diffusion model D_{\theta} is trained, the physical constraint \nabla h=0 can be enforced during the denoising step i [ 4 ] by adding the PDE loss term: \nabla_{x_{i}}\log p(x_{i}|y,h)\approx s(x_{i})-\zeta_{\text{obs}}\nabla_{x_{i}}\|y-Mx_{i}\|_{2}^{2}-\zeta_{\text{pde}}\nabla_{x_{i}}\|h(x_{i})\|_{2}^{2}. (9) The details of the sampling process are outlined in Algorithm 1 , while the framework of the guided diffusion is illustrated in Fig. 1 . Figure 1: Work flow Algorithm 1 Sampling process with well log observation and physical information guidance 0: trained diffusion model D_{\theta}(x;\sigma) , denoising steps N , \sigma(t_{i})_{i\in\{0\ldots,N-1\}} , well locations M , well log observation y , physical constraints h , weights \zeta_{\text{obs}} , \zeta_{\text{pde}} 1: Sample x_{0}\sim\mathcal{N}(0,\sigma(t_{0})^{2}I) \triangleright Generate the initial sampling noise 2: for i\in\{0,\ldots,N-1\} do 3: \hat{x}_{i}\leftarrow D_{\theta}(x_{i};\sigma(t_{i})) 4: d_{i}\leftarrow(x_{i}-\hat{x}_{i})/\sigma(t_{i}) 5: x_{i+1}\leftarrow x_{i}+(\sigma(t_{i+1})-\sigma(t_{i}))d_{i} \triangleright Euler step from \sigma(t_{i}) to \sigma(t_{i+1}) in Eq. ( 1 ) \triangleright Second correction using trapezoidal rule 6: if \sigma(t_{i+1})\neq 0 then 7: \hat{x}_{i}\leftarrow D_{\theta}(x_{i+1};\sigma(t_{i+1})) 8: d_{i}^{\prime}\leftarrow(x_{i+1}-\hat{x}_{i})/\sigma(t_{i+1}) 9: x_{i+1}\leftarrow x_{i}+(\sigma(t_{i+1})-\sigma(t_{i}))\left(\frac{1}{2}d_{i}+\frac{1}{2}d_{i}^{\prime}\right) 10: end if 11: L_{\text{obs}}\leftarrow\left\|y-M\hat{x}_{i}\right\|_{2}^{2} \triangleright Well log information guidance 12: L_{\text{pde}}\leftarrow\left\|h(\hat{x}_{i})\right\|_{2}^{2} \triangleright Physical constraints 13: x_{i+1}\leftarrow x_{i+1}-\zeta_{\text{obs}}\nabla_{x_{i}}L_{\text{obs}}-\zeta_{\text{pde}}\nabla_{x_{i}}L_{\text{pde}} \triangleright Guide sampling 14: end for 15: return x_{N} \triangleright Return the reconstruction data 3 Experiments 3.1 Results comparison With two well log data points located at horizontal distances of 775 m and 1050 m , corresponding to the injection and production wells respectively, we conduct a series of experiments to evaluate the impact of different input configurations on reconstructing unseen data. The quantitative results are summarized in Table 1 , while the qualitative results are presented in Fig. 2 through Fig. 4 . Compared to the baseline scenario using only two wells, the reconstruction significantly improves in terms of both

Read the complete text