NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Watching Bacteria Fill Cracks: Mass-Balanced Segmentation of Time-Lapse Micro-CT

Bacteria can be made to grow rock. When certain soil bacteria break down urea, they raise the local pH, and dissolved calcium comes out of solution as calcium carbonate on and around the cells. This process is called microbially induced carbonate precipitation. It is being used to heal cracks in concrete, lock heavy metals into soils, and store carbon as stable minerals. What nobody can currently do is watch it happen inside an intact, opaque specimen.

Labs judge success by cutting samples open for electron microscopy or by bulk strength tests. Neither shows where the mineral formed, when, or why some cracks heal and others do not. X-ray micro-computed tomography (micro-CT) is the obvious non-destructive tool: it rotates a specimen in an X-ray beam and rebuilds a 3D density map. The trouble is twofold. Freshly precipitated carbonate, especially the hydrated amorphous precursor that forms first, looks almost the same as wet cement and pore fluid. Scans fast enough to keep up with a reaction lasting a day or two are also very noisy.

This note proposes to stop treating each scan as an isolated, hard boundary-detection problem. The reaction leaves two kinds of physical record that make the ambiguity solvable. The first is the specimen before treatment, which tells the model which material was already there. The second is the dissolved calcium the reaction used up, measurable continuously from solution conductivity, which fixes how much new mineral must exist in total at each time point. We will train a 3D segmentation network that outputs, for every voxel (3D pixel), the fraction of that voxel occupied by new carbonate. Training ties three things together. The network sees the registered pre-treatment scan as an input. The summed mineral volume must match the measured calcium uptake. Mineral fractions should not shrink from one time step to the next.

The scientific payoff is concrete. Crack Sealing in Concrete with Biogrout found that cracks 1 mm wide gained up to 11.4% in compressive strength after treatment, while 0.5 mm cracks gained almost nothing and 3 mm cracks too little. The authors attributed the narrow-crack failure to bacterial clumping and poor fluid penetration, but could not see inside. A per-voxel, time-resolved carbonate map would show whether narrow cracks fail because mineral plugs the crack mouth or because mineral never forms deep inside.

Core Claim

The boundary between new biogenic carbonate and its host is ambiguous within any single noisy scan. Across a time series with a known starting state and a known chemical budget, it is much less ambiguous. We claim that three cheap pieces of side information carry most of the missing signal: the registered pre-treatment reference, a mass-balance constraint from calcium consumption, and a temporal non-decrease prior. A per-voxel fraction output then handles films thinner than a voxel. Together these should beat single-frame boundary-aware architectures at estimating where carbonate is and how much of it there is.

The supporting quantitative expectation is that volume error should be governed mainly by the mass-balance term and placement error mainly by the reference conditioning. We will test that separation directly with ablations.

The core constraint can be written as one loss term. Let $f_t(x) \in [0,1]$ be the predicted new-carbonate fraction at voxel $x$ in scan $t$. Let $v$ be the voxel volume, $\bar V_m$ the molar volume of calcium carbonate, and $\Delta n_t$ the moles of calcium removed from solution by time $t$, inferred from conductivity. Then

$$\mathcal{L}_{\text{mass}} = \sum_t \left( \frac{v}{\bar V_m}\sum_x f_t(x) - \Delta n_t \right)^2 \Big/ \Delta n_t^2, \qquad \mathcal{L}_{\text{mono}} = \sum_t \sum_x \max\big(0,\, f_{t-1}(x) - f_t(x)\big).$$

These are added to a standard voxel loss computed on the few frames that have labels.

The monotonicity term is deliberately weighted softly. The amorphous precursor dissolves and recrystallizes, which can locally reduce mineral fraction; Impact of Amorphous Calcium Carbonate on Carbon Isotope Signatures of Biogenic Ca-Mg Carbonate shows this transformation dominating the first 20 days in Arthrobacter cultures. We will measure how often the network wants to violate the prior, rather than assume it never should.

Relation to Prior Work

The closest imaging work comes from mineral processing and digital rock physics, and none of it handles a reacting, biological system.

ParticleSeg3D builds on nnU-Net, a self-configuring 3D U-Net. It turns touching-particle instance segmentation into a semantic task by eroding each particle into a "core" surrounded by a "border" class. It reaches an F1 of 93.27% on unseen materials. However, it assumes static, solid grains and reports failure below roughly 3 voxels. It therefore supplies our backbone and our sliding-window inference strategy, but it also marks the limit our fractional output must get past.

TomoGAN-GVGG maps 7-minute noisy sandstone scans toward 9.5-hour quality. It uses a loss built on geometric descriptors (volume, surface, Euler characteristic) and achieves petrophysical errors "generally below 10%". It motivates our design in two ways. It shows that fast-versus-slow paired scans are a workable supervision source, and it warns that generative enhancement can invent features, which in our setting would look like false mineral fronts. It also stops at denoising followed by classical watershed segmentation.

Multi-scale Simulation, Calibration, and Optimization of Calcium Carbonate Precipitation in Microbial Communities couples cell metabolism to reaction-diffusion equations but never touches images. We reuse it as a simulator to produce synthetic ground truth inside real pore geometries.

The medical boundary-ambiguity literature supplies the strongest single-frame competitors.

All of these sharpen edges within one image. None can use a reference state or a conserved quantity. Our proposal departs from them on exactly this point.

This literature also constrains our design. The research file notes that contour branches tend to lock onto noise fringes in low-dose scans, which is the regime we are in. That is a reason to put the extra information in the physics rather than in more edge supervision. The bounding-map idea of Bounding Maps for Universal Lesion Detection, which replaces hard boxes with linearly graded targets, is close in spirit to our fractional output. Our fractions, however, are physical volume fractions, not a shape prior.

Research Program

Real data. We will build a time-lapse micro-CT dataset of treated mortar cracks, following the protocol of the biogrout study: Bacillus pasteurii used 24–36 h into culture, 1 mol/L calcium acetate with urea, and crack widths of 0.5, 1 and 3 mm. Specimens will be small enough that the entire crack and its fluid reservoir sit inside a sealed flow cell within the field of view. This makes calcium consumed in solution attributable to mineral the scanner can see, with effluent calcium measured to close the budget.

Each specimen receives the following measurements:

  • one long, high-quality scan before treatment, which serves as the reference;
  • fast scans at intervals of roughly 30–60 minutes through the reaction window;
  • continuous conductivity logging;
  • after the reaction is stopped, a final long scan;
  • serial sectioning with SEM-EDS (electron microscopy with elemental mapping), registered back to the final scan.

A subset of specimens will be stopped at intermediate times. These get a long scan plus Raman or XRD (spectroscopy and X-ray diffraction, which identify crystal phases), giving labeled intermediate frames and a check on amorphous-versus-crystalline phase.

Synthetic data. Real labels will be scarce, so we build a second dataset by running the reaction-diffusion simulator inside segmented pore and crack geometries from long scans. The simulated carbonate fraction fields are rendered into synthetic fast scans using measured noise and blur. This gives exact per-voxel fractions for training and for controlled tests.

Model. The network is a 3D nnU-Net. Its inputs are the current fast scan, the registered reference scan, and the previous frame's prediction. It outputs fractions through a sigmoid, and is trained with the voxel loss on labeled frames plus the mass and monotonicity terms on every frame. Registration uses rigid alignment followed by a small elastic correction. Registration error near crack walls is reported as its own quantity, because it bounds how thin a film any difference-based method can resolve.

Radiation dose. Repeated scanning could kill or slow the bacteria. We will compare the urea hydrolysis rate, measured by conductivity, in scanned cells against identical unscanned cells. A depressed rate would cap the scan frequency.

Baselines

The naive reference point is a global intensity threshold applied to each fast scan independently, followed by marker-based watershed. This mirrors the ThreshWater baseline in ParticleSeg3D, which scored 93.83% F1 but only 69.29% instance F1 in-distribution there. It shows what routine practice in rock and concrete labs would report.

The strongest simple competitor is registered difference imaging. We subtract the aligned pre-treatment scan from each fast scan, denoise lightly, and threshold the increase in attenuation. It uses the same reference scan our model gets, so it isolates whether learning adds anything beyond subtraction. It will be tuned by choosing the denoising strength and threshold on the same validation specimens we use for model selection.

The strongest existing learned method is single-frame 3D nnU-Net with the overlap loss, the learned-threshold loss, and two refinement passes from the left-atrium paper, plus a 10% contour loss. It is trained on exactly the labeled frames our model sees, with the same compute and the same nnU-Net hyperparameter search. No reported result exists on Lacuna for any method on biogenic carbonate micro-CT. The closest reported numbers are on other tasks: 92.24% Dice on the 2018 Atrial Segmentation Challenge for that loss combination, and 93.27% out-of-distribution F1 for ParticleSeg3D on mineral particles. Neither transfers directly. Their value is that they show these methods are well-tuned implementations, not straw men.

We also run TomoGAN-GVGG enhancement followed by this same segmenter. This tests whether denoising first closes the gap.

The proposal counts as winning on two conditions. First, on held-out specimens and on synthetic data, it must reduce total carbonate volume error and per-voxel fraction error by a clear margin over both difference imaging and the boundary-loss nnU-Net. Second, its predicted carbonate inside cracks must agree better with registered SEM-EDS sections at end-point. Ablations remove, one at a time, the reference input, the mass term, the monotonicity term, and fractional output in favor of binary masks. If removing the mass term leaves volume error unchanged, the central claim fails.

Why not just…?

Why not just subtract the before and after scans? This is the real threat, and it is a baseline for that reason. Subtraction works when the host is truly static and registration is perfect. In wet mortar, neither holds. Water saturation changes attenuation, cement keeps hydrating, and registration error at crack walls can be comparable to a film a few voxels thick. Subtraction also gives no principled way to convert a noisy attenuation increase into a volume, so it cannot respect the calcium budget. If subtraction matches our model on fraction and volume error, we will report that and recommend it, because it is cheaper. The synthetic experiments, where host changes and registration error can be switched on and off, will show exactly when it breaks.

Why not just use longer scans or a synchrotron? The 9.5-hour scans that give clean sandstone images in the TomoGAN-GVGG study are as long as a third of the 24–36 hour window in which the bacteria are active. The mineral would change during the scan. Synchrotron beamtime is scarce and high dose may harm the culture, which our dose controls will quantify. We do use long scans, but only where the specimen is static: before treatment and after it is stopped.

Why not just train a boundary-aware nnU-Net on whatever labels exist? Labels exist only at the reference scan, at the end-point, and at a handful of stopped intermediate specimens. The mid-reaction frames, where the amorphous films and partial fills live, are almost entirely unlabeled. The medical losses sharpen edges, but they cannot tell the network how much mineral should be present. The head-to-head with the boundary-loss nnU-Net, given identical labels, answers this directly.

Why not just denoise with a geometry-aware GAN and segment the result? The TomoGAN-GVGG authors themselves note that GANs can produce unrealistic features. In a reacting system, an invented edge is indistinguishable from a real mineral front. The enhancement-then-segment baseline measures whether this happens, and how often, against SEM-EDS truth.

Proposed Experiments

The first decisive check is on synthetic data. We sweep noise level, film thickness from 1 to 6 voxels, host drift, and registration error. For each setting we measure per-voxel fraction error and total-volume error for every baseline and ablation. The fractional, mass-balanced model should keep volume error low below the 3-voxel limit where ParticleSeg3D reports failure, while the single-frame methods degrade.

The second check is on real end-point specimens. We compare predicted carbonate against SEM-EDS sections registered into the final long scan, reporting Dice on sections, fraction error, and the mass-balance residual. Because conductivity also enters training, this residual is checked against held-out effluent calcium measurements, so the test is not circular.

The third check is scientific. Using the 0.5, 1 and 3 mm cracks, we report carbonate fraction as a function of depth and time and track the connectivity of the open crack using the Euler characteristic. This tests whether narrow cracks seal only at the mouth or receive no mineral at all.

As a secondary, explicitly tentative test, we ask whether intermediate fraction values that later rise mark amorphous precursor. We check this against Raman or XRD on the stopped intermediate specimens, and we drop the claim if the agreement is not there.