Spatiotemporal learning improves quantification of pore-space evolution and fluid displacement

Zhuangzhuang Ma, Rukuan Chai, Qianqian Ma, Yanghua Wang, Branko Bijeljic, Martin J. BluntarXiv 2026 · arXiv

TL;DR

Researchers have developed PoreTimeNet, a transformer-based 4D segmentation framework that uses temporal context to accurately track how pore spaces in rocks evolve over time. By looking across sequences of micro-CT images rather than treating them as independent snapshots, the model significantly reduces "segmentation noise," allowing for far more precise measurements of mineral dissolution, fluid displacement, and resulting permeability changes.

What Problem Does This Paper Address?

Understanding how fluids move through porous rock is critical for technologies like geological carbon sequestration, hydrogen storage, and groundwater management. Scientists use time-resolved micro-CT imaging to watch these processes happen at the pore scale. However, a single experiment can generate hundreds of 3D volumes that must be "segmented"—labeled voxel-by-voxel as rock, oil, or brine.

The bottleneck is that traditional 3D deep learning models process each time step independently. Because of image noise and low contrast, a model might misclassify a voxel as "rock" in one frame and "pore" in the next, even if nothing physically changed. These flickering errors are often indistinguishable from actual physical processes like mineral dissolution. This "segmentation noise" corrupts the physical simulations (like permeability calculations) that rely on these images.

Methods

The authors introduce PoreTimeNet, which moves from 3D to 4D (spatiotemporal) learning.

  • Architecture: It builds on the SwinUNETR design, utilizing a hierarchical transformer encoder.
  • Temporal Attention: Unlike standard 3D models, PoreTimeNet uses temporal self-attention modules that link corresponding spatial locations across multiple time steps. This allows the network to "see" the history and future of a specific voxel to resolve current ambiguities.
  • Decoder Fusion: Information from different time steps is fused at multiple scales within the decoder to refine the final segmentation.
  • Training: The model can be trained with "sparse supervision," meaning it only needs labels for a few selected time steps but can still leverage the unlabeled images in the sequence to learn temporal consistency.
The PoreTimeNet framework combines spatial and temporal attention to improve segmentation and physics-based analysis.

Datasets

The study evaluated the model across six distinct sequences:

  1. Ketton Limestone (Dissolution): Three sequences (water-wet and mixed-wet) showing rock dissolving as CO2-saturated brine is injected.
  2. Ketton Limestone (Displacement): Drainage and imbibition sequences where the rock structure is fixed, but fluids move through it.
  3. Luxembourg Sandstone: A fast laboratory CT sequence of oil flooding, characterized by high noise and low contrast.

Key Insights and Ideas

  • Temporal Context Resolves Ambiguity: In fast CT scans, fluid motion can cause "temporal blurring," making a pore look like rock. By looking at adjacent frames where the fluid is stationary, PoreTimeNet correctly identifies the pore space that 3D models miss.
  • Separating Error from Evolution: By enforcing temporal consistency, the model can distinguish between a real change in geometry (dissolution) and a random classification error.
  • Physics-First Evaluation: The authors argue that segmentation shouldn't just be judged by pixel-matching scores (like Dice). They show that small boundary errors—even if porosity remains the same—can lead to massive errors (20%+) in calculated permeability. PoreTimeNet's superior boundary accuracy leads to much more reliable physical predictions.
Comparison of 3D vs 4D segmentation during mineral dissolution, showing how 4D learning better captures evolving pore-rock boundaries.

Key Results

  • Accuracy: In dissolution experiments, PoreTimeNet reduced the mean absolute porosity error from 0.97 to 0.28 percentage points compared to a 3D model.
  • Boundary Precision: The rock boundary F1 (BF1) score improved from 0.833 to 0.941.
  • Permeability: The 3D model underestimated the permeability increase during dissolution by 27%, while the 4D model's estimate was within 6.7% of the reference.
  • Consistency: During fluid displacement in fixed rock, the 4D model reduced spurious changes in the predicted rock matrix by one-third.
  • Generalization: A model trained on one dissolution sequence performed well on others with different wettability conditions without any retraining.
The impact of segmentation on simulated flow and dissolution rates, highlighting the 4D model's superior performance in capturing permeability increases.

Limitations and Future Work

  • Relative vs. Absolute Time: The current model uses relative image positions in a sequence. Incorporating actual elapsed time could further improve accuracy for processes with non-linear rates.
  • Physical Constraints: While the model uses an optional consistency loss, future versions could explicitly bake in physical laws (e.g., "rock cannot spontaneously appear in a fluid-filled pore during drainage").
  • Computational Cost: 4D transformers are more memory-intensive than 3D models, which may limit the size of the temporal window or spatial resolution on standard hardware.

Summary updated

Abstract

Pore-space evolution and fluid displacement influence how rocks transmit and store fluids, affecting geological carbon storage, underground hydrogen storage and groundwater contaminant transport. A single time-resolved micro-CT experiment may produce tens to hundreds of three-dimensional images, and segmentation is required to quantify physical properties and run image-based simulations. Traditional methods such as thresholding perform poorly on noisy, low-contrast images and need manual adjustment per image; 3D deep learning networks segment each image without temporal information, so their errors vary between images and could be mistaken for physical change. Here we introduce a transformer-based 4D segmentation framework combining spatial and temporal information. It uses sequential images to resolve ambiguous phase assignments and separate physical change from segmentation error. The method is tested on images of mineral dissolution: it measures pore-volume growth and rock boundaries more accurately than an equivalent 3D model that ignores temporal information. It also captures the increase in permeability verified against reference segmentations and flow simulations. The advantage transfers to another dissolution sample without retraining. On two other datasets of fluid displacement, it reduces spurious changes in predicted rock and porosity fluctuations and accurately identifies filling events. Spatiotemporal segmentation turns sequences of hundreds of three-dimensional images into more reliable quantitative measurements of pore-space evolution and fluid displacement without per-image parameter adjustment to support the analysis of time-resolved CT imaging.
BibTeX
@misc{ma2026spatiotemporal,
  author = {Zhuangzhuang Ma and Rukuan Chai and Qianqian Ma and Yanghua Wang and Branko Bijeljic and Martin J. Blunt},
  title = {{Spatiotemporal learning improves quantification of pore-space evolution and fluid displacement}},
  year = {2026},
  eprint = {2611.17111},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.17111},
}
Figure