Skip to content

About

Tucker/HOSVD-based tensor modal decomposition and QR sparse-sensor placement for reservoir field reconstruction (arXiv:2607.09687)

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

279 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tensor-Based Modal Decomposition Method

A Python research library for Tucker/HOSVD decomposition, tensor QR sensor placement and sparse reconstruction of spatiotemporal fields. The current reservoir benchmark lives in studies/brugge_sparse_sensing. Physical URANS forecasting is maintained in the separate private tbmd-forecasting repository.

Synthetic example Brugge benchmark Verify results

Inspect a synthetic reconstruction

Open the complete example to see how a tensor basis, sparse locations, and observations are combined to reconstruct a field. The plot below comes from the recorded synthetic run. To check the reservoir numbers, follow the separate Brugge reproducibility guide.

Synthetic TBMD pipeline output

At a glance

What Python/PyTorch library for Tucker/HOSVD modal decomposition, tensor QR sensor placement and sparse (ADMM / compressive) reconstruction of spatiotemporal fields.
Benchmark Ten Brugge reservoir control scenarios, leave-one-scenario-out testing with three-fold inner model selection (study).
Main finding Shared spatial factors with property-specific coefficients beat a rigid joint formulation: at 30 common grid channels, pressure/saturation anomaly-relative error falls from 1.167/0.844 to 0.350/0.465. Energy-weighted POD remains strongest at existing joint-property wells.
Reproducibility Committed results are verified by studies/brugge_sparse_sensing/verify_outputs.sh; CI runs tests, ruff and mypy on Python 3.10–3.12. The quantitative results of arXiv v1 are not reproducible and are superseded — see REPRODUCIBILITY.md and Supplementary S2.
Status Revised manuscript in preparation; software v2.2.0; v2.1.0 archived on Zenodo.

Paper

Nested optimization of tensor-based modal decomposition for sparse reservoir-state reconstruction: accuracy–compression regimes on Brugge — D. Samatov, B. Merzlikin, G. Shishaev.

The canonical manuscript and supplement are in this checkout. The revised manuscript supersedes the unreproduced quantitative results of arXiv:2607.09687. Submission remains pending archival publication of the reviewed revision, three transferred-portal checks; see the paper README.

Installation

The library supports Python 3.10–3.12. The maintained software-validation profile uses Python3.12 on macOS ARM64; other platforms need separate resolution/acceptance:

python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install --require-hashes -r requirements-execution.txt
python -m pip install --no-deps -e .

requirements-execution.txt is generated from requirements-execution.in; do not hand-edit it. The old studies/brugge_sparse_sensing/requirements-lock.txt remains a historical study snapshot and is not the default fresh-install command. A new software environment does not reproduce the paper by itself; follow the reproducibility guide with permitted raw inputs and compare raw numerical artifacts before making new scientific claims.

Reproducibility

From the checkout root, verify committed results without restricted raw data:

studies/brugge_sparse_sensing/verify_outputs.sh
MPLBACKEND=Agg python -m pytest

The verifier checks checksums, rebuilds all tables/statistics/number macros in a disposable scratch directory and checks the canonical manuscript. It also regenerates the figures when the input files are available. Software tests and stored-result verification do not replace a full independent scientific rerun; see REPRODUCIBILITY.md.

A compact software demonstration needs no external data:

python examples/basic/04_complete_pipeline.py --spatial-points 40 --time-steps 12 --n-modes 8 --n-sensors 6 --solver admm

Data and full study

The study requires the exact author-generated data_exp_4_.h5 and all_wells_exp_4.json under $TBMD_DATA_DIR/brugge/; their hashes and acquisition/provenance limitations are in the study data guide. The TNO Brugge model and the derived simulation inputs are not redistributed here. The corresponding author may provide the transformed HDF5/JSON inputs upon reasonable request, subject to applicable data-use and access conditions. The simulator is confirmed as t-Navigator; its version, HDF5 exporter, vertical reduction and physical pressure unit are not recoverable from the current archive. Obtaining the base model alone does not recreate the exact simulation exports.

Run into temporary output directories to preserve the paper's canonical results:

cd studies/brugge_sparse_sensing
TBMD_DATA_DIR=/path/to/data BSS_OUT=/tmp/brugge-rerun/outputs BSS_FIG=/tmp/brugge-rerun/figures BSS_LOG=/tmp/brugge-rerun/logs ./run_all.sh 8
python scripts/compare_rerun.py /tmp/brugge-rerun/outputs

E1–E5/E7 results are deterministic for the recorded environment; E6 timings and original-library E0 re-executions have separate variability. Remove temporary rerun outputs after reviewing the comparison.

Structure and outputs

src/TBMD/                     reusable library, public configuration and compatibility imports
studies/brugge_sparse_sensing/ config, bss library, stage scripts and verified inputs manifest
  outputs/                    canonical experiment results, tables and number macros
  figures/                    canonical publication PDFs
  run_logs/                   recorded independent-run evidence
  scripts/                    experiments, generators and verification
examples/                     basic and geometry-aware software demonstrations
tests/                        unit and repository/paper integration checks
docs/                         library guides; paper/manuscript, submission sources and audit

Documentation index · Repository audit (local audit material, not distributed) · Cleanup and validation report (local audit material, not distributed).

Build the paper

Install tectonic and pdftotext separately, then run:

python docs/paper/build_submission_ready.py --arxiv

This generates ignored docs/paper/submission_ready/, arxiv_v2/ and arxiv_v2.tar.gz. Build success verifies the local package but does not perform or authorise an upload.

Citation and licence

Cite this software using CITATION.cff. The recorded software release v2.1.0 is identified by Zenodo DOI 10.5281/zenodo.22814377. The v2.2.0 GitHub release includes nested optimization and E9. Its version-specific archival DOI is pending; the old DOI does not identify this revision. The current paper title is above; the earlier arXiv entry retains its original title until the authors replace it. Code is MIT licensed (LICENSE); TNO data rights are separate. Contribution guide.

CPU numerical qualification

The 2026-10-31 numerical qualification checks Tucker subspaces and masked Lasso against independent analytic oracles, and fixes a zero-measurement error metric. The maintained software profile passed these checks but failed exact stored-table replay: two near-tied Wilcoxon p-values depend on CSV floating-point parsing. Historical artifacts and the separate scientific environment are preserved; software success is not a full Brugge scientific replay or independent physical validation.

About

Tucker/HOSVD-based tensor modal decomposition and QR sparse-sensor placement for reservoir field reconstruction (arXiv:2607.09687)

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages