Bacteria living together on steel can drill deeper pits than either species alone, even when the metal loses less mass overall. On L245 pipeline steel after seven days, a mixed culture of iron-oxidizing bacteria and Shewanella algae reached a maximum pit depth of 26.96 µm. The iron-oxidizers alone reached 19.55 µm and S. algae alone 6.42 µm. Yet the mixed culture's uniform corrosion rate (0.11 mm/a) fell between the two single cultures (0.25 and 0.02 mm/a) (Zhu et al.). Every number in that comparison comes from the end of the experiment: the coupon is pulled out, stripped of its biofilm, and scanned under a confocal microscope. Nobody sees when the mixed culture's pits overtake the single-culture pits, or whether the biofilm first protects the metal and then turns aggressive, as several studies suspect (cast-iron reclaimed water study, Ti–6Al–4V in SRB). We propose to watch pit depth grow through a single fixed camera looking at a live coupon in a flow cell. The camera's readings would be calibrated by tiny wells of known depth machined into the coupon itself, so that they sit under the same biofilm as the pits.
The link to monocular depth estimation is that the familiar ambiguity of single-image depth changes form at this scale. In a microscope or close-focus camera the lateral pixel size is fixed by the optics, so ordinary perspective scale is not the issue. Depth recovered from one image, whether by a learned network or from shading, is still only known up to an unknown multiplier, which we call the relief gain, plus an offset. The relief gain is not a constant of the camera. It drifts as gelatinous biofilm, wet films and corrosion crusts change how light scatters and reflects. Our core claim is that wells of known depth, under the same optical cover as the pits, can re-estimate that drifting gain in every frame. When the wells stop "looking deep", they also tell us that the biofilm has become too opaque to measure through. That second signal is a test of whether the measurement is valid at all, something no existing anchoring method provides.
What Is New Relative to Prior Anchoring Work
Our method builds most directly on sparse-anchor depth estimation. LiDARTouch feeds as few as four LiDAR beams into a depth network to fix metric scale on roads (LiDARTouch). Guizilini et al. do the same with about 77 points per image. Wofk et al. fit a global scale and shift from visual-inertial points and then learn a per-pixel scale correction, which they call ScaleMapLearner. We reuse Wofk et al.'s two-stage structure of a global fit followed by a dense correction almost directly.
We depart from it in three ways. First, our anchors are fabricated features of known geometry rather than sensor returns, and they live inside the corroding scene. Second, the gain is modeled as varying over time under biological fouling, so we estimate it in each frame and smooth it over time, where those papers estimate a scale per image of a scene whose optics are stable. Third, we use the anchors to decide when the depth reading cannot be trusted.
The closest analogy is the surgical-tool anchor of Wei et al., which recovers endoscopic scale from an instrument of known radius. That method fails once the tool leaves the frame, and it works at millimeter error (6.347 mm MAE), three orders of magnitude coarser than these pits. Our anchors are permanently in view and are sized to the micrometer regime.
The language-guided scale methods ScaleDepth and RSA predict scale from CLIP text descriptions of macro scenes. They have no vocabulary for this domain, so they serve only as a negative reference. The 2D corrosion segmenter of Nash et al. supplies the pixel mask of corroded regions but gives no depth. On the materials side, the confocal studies of L245 steel, B10 copper-nickel (Cu-Ni study) and Ti–6Al–4V provide the target phenomena and the ground-truth instrument.
Core Claim
Let $d_r(p,t)$ be a relative depth map at pixel $p$ and time $t$ from any single-image source. We model metric depth as
$$D(p,t) = g(t)\,s(p,t)\,d_r(p,t) + b(t).$$
Here $g(t)$ is the global relief gain, $b(t)$ an offset, and $s(p,t)$ a smooth spatial correction near 1. We estimate $g$ and $b$ at each frame by least squares on the fiducial wells, whose true depths $D_k$ were measured by confocal microscopy before inoculation. A temporal filter then smooths these estimates. The spatial correction $s$ comes from a small network trained, in the style of Wofk et al., on confocal ground truth from sacrificial coupons.
The observability signal is the fiducial fit residual together with the apparent-to-true depth ratio of the deepest well. Once that ratio drops below a threshold, we report the region as unmeasurable rather than as a shallow pit. The claim we will test is that per-frame fiducial anchoring tracks true maximum pit depth within a few micrometers through the protective-to-aggressive biofilm transition, and that a calibration fixed at time zero drifts badly over the same period.
Research Program
The physical setup is a parallel-plate flow cell, with flow rates chosen to bracket the 0.8 m/s optimum reported for Cu-Ni. It holds L245 coupons imaged by a fixed-focus long-working-distance camera with a ring of individually switchable LEDs. Each coupon carries a laser-machined fiducial island of wells 5, 10, 20 and 40 µm deep. We give the island a thin gold coating so the wells do not themselves corrode appreciably, and we re-measure them at the end to confirm.
We run the three cultures of Zhu et al. (S. algae, iron-oxidizing bacteria, and the mixture) plus a sterile control, at 38°C. For ground truth we remove sacrificial coupons from parallel cells at days 1, 2, 3, 5 and 7, plus a 14-day extension, then clean them and scan them by confocal microscopy. This yields a time series of pit-depth distributions that the in-situ camera must reproduce. A smaller Ti–6Al–4V arm, with sulfate-reducing bacteria and samples out to 31 days, tests the method on micrometer-scale pits on a passive alloy.
For relative depth sources we compare a monocular network fine-tuned on paired camera/confocal images from extra coupons, photometric stereo from the LED ring, and both combined. Pits are localized with a Nash-style segmenter retrained on our images.
Baselines
The naive reference is a single global gain and offset fitted to the fiducials at time zero, before inoculation, and then held fixed. This is what a careful experimenter would do with a calibrated camera. Beating it shows that the drift of the gain under biofilm is real and that re-anchoring corrects it. We run it on exactly the same images and relative-depth maps, so the only difference is the anchoring schedule.
The strongest existing method is the pipeline of Wofk et al., with their global alignment and ScaleMapLearner, given our fiducial wells as its sparse metric points and retrained on our data with the same compute and tuning budget. On VOID they report that ScaleMapLearner reduces inverse RMSE by "up to 30%" over global alignment alone, and that with 150 points it achieves "over 50% lower iRMSE than KBNet". No result for this or any comparable method on micro-scale corrosion relief was found on Lacuna. Beating it means lower error in maximum pit depth on held-out coupons and time points. If it ties, our contribution reduces to the observability test, and we will say so.
A zero-shot foundation model, Metric3D v2, which reports zero-shot AbsRel of 0.044 on KITTI and 0.047 on NYUv2, is included in two forms. One uses its raw metric output. The other fits its relative output to the fiducials. The raw form is expected to fail at this scale, and the fitted form tests whether a general model's relative depth is good enough once anchored.
Three ablations isolate the key ingredient. We remove the temporal smoothing, remove the spatial correction $s$, and replace in-scene fiducials with wells on a separate clean reference coupon in the same cell. The last ablation tests whether sharing the biofilm cover is what makes calibration work.
Why not just…?
Why not just use focus stacking or depth from defocus? A motorized focus sweep gives metric depth directly, and in the lab flow cell it is a real competitor. We include it as an upper reference arm. The proposal targets fixed-focus hardware such as borescopes, where a sweep is unavailable, but if focus stacking through biofilm matches confocal ground truth, it also becomes a better source of training labels than sacrificial coupons. More importantly, depth from focus also reads the top of an opaque biofilm as the surface. Our observability test applies to it unchanged, and we will report it in that form.
Why not just use photometric stereo, since known pixel size plus integrated surface normals already gives metric heights? This is the most serious threat. In principle it removes the scale ambiguity entirely. In practice, the reflectance of wet metal and slime is not the matte surface the method assumes, so slopes are mis-scaled by exactly the drifting gain we model. Its relief error will therefore drift over time much like the naive baseline does. Photometric stereo is one of our relative-depth sources, so the experiment compares raw photometric stereo with fiducial-corrected photometric stereo. If the raw version stays accurate across days, the fiducial idea is unnecessary for this hardware, and we will report that outcome.
Why not just use stereo cameras or structured light? A stereo baseline fixes scale, but at micrometer relief and short working distance it needs microscope-grade calibration that confined pipes cannot host, as Wei et al. note for miniature instruments. Projected patterns are also scattered by fluid and biofilm. We do not test this arm. The claim here is limited to single-aperture hardware.
Why not just pull more sacrificial coupons? Destructive sampling at dense time points works and serves as our ground truth. However, each point is a different coupon with different pit statistics, so it cannot follow the same pit across the biofilm transition. It also cannot be deployed in a running pipe.
Why not just rely on electrochemical monitoring? In Zhu et al. the corrosion current ranked the mixed culture as less aggressive than the iron-oxidizer culture, while its pits were deepest. An area-averaged signal therefore gives the wrong ranking on exactly the case we care about. We record impedance alongside imaging to show this divergence over time.
Decisive Checks
The first check is per-pit and maximum pit-depth error in micrometers against confocal ground truth at each sampling day, on held-out coupons. We also report rank correlation of pit depths and AbsRel on the relief. The scientific check is whether the in-situ curves reproduce the day-7 ordering of maximum depths (S. algae < iron-oxidizers < mixed), and when the mixed culture's curve crosses the iron-oxidizer curve. The engineering check compares the naive time-zero calibration with per-frame anchoring over the full exposure. We expect the fixed calibration to drift and the anchored one not to.
The observability check compares the regions the method flags as unmeasurable with regions where confocal imaging after cleaning shows pits the camera missed. The flag should catch most of them. If the flag does not catch them, the method is unsafe to deploy through mature biofilm, and that negative result would itself be worth publishing.
References
- Microbial Corrosion Behavior of L245 Pipeline Steel in the Presence of Iron-Oxidizing Bacteria and Shewanella algae
- The bacterial community significantly promotes cast iron corrosion in reclaimed wastewater distribution systems
- Corrosion Behavior of the Ti–6Al–4V Alloy in Sulfate-Reducing Bacteria Solution
- LiDARTouch: Monocular metric depth estimation with a few-beam LiDAR
- Robust Semi-Supervised Monocular Depth Estimation with Reprojected Distances
- Monocular Visual-Inertial Depth Estimation
- Enhanced Scale-aware Depth Estimation for Monocular Endoscopic Scenes with Geometric Modeling
- ScaleDepth: Decomposing Metric Depth Estimation into Scale Prediction and Relative Depth Estimation
- RSA: Resolving Scale Ambiguities in Monocular Depth Estimators through Language Descriptions
- Deep learning corrosion detection with confidence
- Effects of Medium and Flow Rate on the Film-Forming Structures of B10 Cu-Ni Alloys and Their Resistance to Corrosion Caused by Sulfate-Reducing Bacteria
- Metric3D v2: A Versatile Monocular Geometric Foundation Model for Zero-shot Metric Depth and Surface Normal Estimation