Skip to content

emaldonadocruz/Robust-Spatial-Uncertainty-Modeling-Workflow-Surrogate-Flow-Model

Repository files navigation

Robust Spatial Uncertainty Modeling Workflow Surrogate Flow Model

Example code for our journal publication https://doi.org/10.1016/j.petrol.2022.110244

This repository contains a new and general workflow to generate accurate and precise machine learning-based surrogate flow models to predict the relationship between the reservoir rock and fluids, development parameters, and the reservoir flow simulation responses. We train a deep convolutional neural network using the results from a three-dimensional two-phase flow simulator. Next, we use the dropout hyperparameter to generate ensemble predictions from the flow surrogate to evaluate the accuracy and precision of the model. The machine learning-based surrogate model uses exhaustive subsurface predictor features, porosity, permeability, well position, and an engineered feature representing non-dimensional time as input to predict exhaustive subsurface response features, pressure, and saturation distribution over discrete time steps as the output. The proposed workflow integrates the spatiotemporal aspect of subsurface flow modeling.

Executive summary

To evaluate uncertainty, we rely on multiple geostatistical subsurface heterogeneity realizations paired with flow simulation forecasts to test the sensitivity of various reservoir development parameters and build an uncertainty model of reservoir performance. However, with large reservoir models, numerical flow simulation time increases, leading to a significant amount of professional time and computational effort that increases project costs, and increases cycle times resulting in delay or diminished decision quality. This issue motivates the utilization of surrogate, computationally efficient approximative flow models. Current methods focus on prediction accuracy and minimizing prediction error. When uncertainty is significant, prediction accuracy is insufficient, and we must consider the entire uncertainty distribution. We propose a new and general workflow to generate accurate and precise machine learning-based surrogate flow models to predict the relationship between the reservoir rock and fluids, development parameters, and the reservoir flow simulation responses.

Data

For this notebook example we have prepared a dataset containing the results of a numerical flow simulator that considers a three dimension, two phase displacement problem.

Notebook contents

  1. Introduction
  2. Convolutional Neural Networks
  3. Problem statement
  4. Library importing
  5. Functions
  6. GPU definition
  7. Truth image generation
  8. Training images
  9. Testing images
  10. UNET definition
  11. Model optimization
  12. Single model analysis
  13. Summary statistics
    1. Train-test histograms
    2. Test out of distribution
    3. Volumetric calculations
    4. Cross validation
    5. Error in terms of volume

NOTE: The hyperparameter space exploration section might be too long to run, we have included the results of the grid search in Flow_surrogates_study.csv. Feel free to skip this section and load the results in Summary of the training subsection

About

This repository contains a new and general workflow to generate accurate and precise machine learning-based surrogate flow models. https://doi.org/10.1016/j.petrol.2022.110244

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published