Skip to main content

Blog

Vug Ratio, Not IoU: Choosing a Metric That Matches the Labels You Actually Have

A vug-quantification study for a mid-sized Middle East carbonate operator had exactly one comparator: incumbent-software vug ratios, a subjective human read with no per-vug masks, on a task that predicts a continuous ratio. That single fact about the labels ruled out the metrics reviewers reached for first. IoU needs per-vug masks the labels never held; a confusion matrix needs discrete classes on what is a regression task; a cross-plot would imply an objective truth the read cannot claim. So we relabeled the baseline 'incumbent-estimation' rather than 'ground truth' and added a two-series comparison plot in place of a cross-plot. This is a short argument for picking the metric your labels can support, and for not dressing a subjective baseline as an objective one.

Tannistha Maitiby Tannistha Maiti8 min read
EarthScan insight

The comparator was never a mask

We built a classical computer-vision pipeline that reads a static borehole-image log and reports a vug ratio: the fraction of a depth interval taken up by dissolution pores, computed every 0.1 m along with per-vug area, count, and circularity. The mechanics of that detector, its eight frozen parameters and how it stays within about 1.21 cm2 of expert picks at a 10 cm scale, are covered elsewhere. This piece is about a narrower question that decided how we were allowed to report the results at all: what do you measure a vug detector against, when the only comparator is a human's software-assisted vug ratio?

That sounds like a formality. It is not. The comparator we were handed was a set of vug ratios produced by a reservoir interpreter working in the incumbent borehole-image software: one number per interval, a subjective read, carrying no per-vug contours. Nobody drew a boundary around each pore. The interpreter looked at the image, judged how much of the wall was vuggy, and wrote down a percentage. That is the entire label, and everything downstream follows from it.

Three metrics a reviewer reaches for, and why the labels reject all three

When you present a detection-shaped result, reviewers ask for detection-shaped metrics. We were asked, at various points, for intersection-over-union, for a confusion matrix, and for a cross-plot against ground truth. Each request is reasonable in the abstract and impossible against these labels.

Intersection-over-union is an area-overlap metric: the intersecting area of a predicted region and a reference region divided by their union [1]. To compute it you need a region on both sides, a mask or box around each predicted vug and a matching one around each reference vug. Our comparator has no reference regions. There is no per-vug boundary in a vug-ratio number, so there is no union to divide into. IoU is not a weak metric here, it is undefined. Reporting one would mean inventing reference masks the interpreter never produced, then scoring against our own invention.

A confusion matrix has a different problem. It counts true and false positives and negatives across discrete classes. Our task is regression: predict a continuous vug ratio, compare it to another continuous ratio. There is no class boundary to be right or wrong about. You can force a threshold and manufacture classes, but then you grade a discretisation you chose, not the quantity the pipeline estimates.

Why IoU is undefined against a ratio-only comparator
IoU=ApredArefApredArefrequires per-vug regions Aref the labels never held\mathrm{IoU} = \frac{\lvert A_{\text{pred}} \cap A_{\text{ref}} \rvert}{\lvert A_{\text{pred}} \cup A_{\text{ref}} \rvert} \quad\text{requires per-vug regions } A_{\text{ref}} \text{ the labels never held}

The cross-plot is the subtle one, because it looks honest. Plot the interpreter's ratio on one axis and ours on the other, draw the y = x line, and let the scatter speak. The trouble is what the y = x line asserts: that one axis is truth and the other is the estimate under test. Our comparator is not truth. It is a subjective interpretation with a known bias toward missing small pores, made in software that under-resolves secondary porosity. Drawing it as the reference axis of a cross-plot silently promotes a human's opinion to an objective standard. That is the overclaim we refused to make.

METRIC-LABEL FIT · WHAT THE COMPARATOR ACTUALLY IS1 of 4metrics the labels can supportThe only comparator is incumbent-software vug ratios, with no per-vug masks, on a regression taskSo a metric is honest only if the labels can meet what it needs. Three cannot. One can.COMPARATOR = SUBJECTIVE SOFTWARE READ, RELABELEDbaseline term 'GT' becomes 'incumbent-estimation' (not ground truth)CANDIDATE METRICIT NEEDSLABELS PROVIDEVERDICTIoU / mIoUproposed, then ruled outper-vug masksrequirementno masks existwhat we actually haveINAPPLICABLEConfusion matrixproposed, then ruled outdiscrete classesrequirementtask is regressionwhat we actually haveINAPPLICABLECross-plot vs GTproposed, then ruled outobjective truthrequirementsubjective readwhat we actually haveREJECTEDVug-ratio comparethe honest choicetwo ratio seriesrequirementboth series existwhat we actually haveRETAINEDWHAT "RETAINED" LICENSES0102025comparison plotshow the rejectedcross-plotbars fixed 0-25%; Fig 10x-axis cut to 10% (was 25%)FROZEN ACROSS ALL WELLS (SOURCED)k = 5modesdelta-m = 5mode gap0.3-1.0circularity31 pxblock, C=meanA metric can only be applied where the labels meet what it needs. Here, exactly one does.
Metric-label fit for a vug-quantification study whose only comparator is incumbent-software vug ratios: a subjective interpretation with no per-vug masks, on a task that predicts a continuous vug ratio. Each candidate metric is a row scored on what it needs against what the labels provide. IoU needs per-vug masks the labels do not have, so it is inapplicable; a confusion matrix needs discrete classes on what is a regression task, so it is inapplicable; a cross-plot would imply an objective truth the subjective read cannot claim, so it was rejected. The one metric whose requirement the labels can meet is a vug-ratio comparison of two series, incumbent versus proposed, which is why the baseline was relabeled 'incumbent-estimation' rather than 'ground truth' and a comparison plot was added in place of a cross-plot. The orange RETAINED row is the only element that argues. The toggle shows the plot that row licenses: the comparison plot with bars fixed 0-25% and the Fig-10 x-axis cut to 10%, versus the rejected cross-plot stamped in place. All plotted items - the metric verdicts, the relabeling, the 0-25% and 10% axis scales, and the frozen constants k=5, delta-m=5, circularity 0.3-1.0, block size 31 with C=mean - are sourced from the study's reviewer correspondence; the per-interval bar heights in the comparison panel are drawn to sourced scale to show the two-series form, not to report specific intervals.

What we did instead: relabel the baseline, add a comparison plot

The fix was small and mostly a matter of honesty. First, we stopped calling the comparator "ground truth." Throughout the manuscript, the term "GT" became "incumbent-estimation." The rename is not cosmetic. "Ground truth" tells a reader the labels are correct by construction; "estimation" tells the reader they are one instrument's read, which is what they are. Once the baseline is named for what it is, the pressure to score against it as if it were objective goes away, and so does the temptation to reach for IoU or a cross-plot.

Second, we replaced the cross-plot with a comparison plot: two ratio series over depth, the incumbent estimate and ours, drawn side by side rather than one against the other. Neither series sits on a truth axis. A reader sees where the two agree and where they diverge, and can judge the divergence without being told in advance which one is right. Where our pipeline reports more vugs than the incumbent, that is an observation to explain, not an error to penalise, because in several intervals the extra pores our method caught are real pores the software missed. A comparison plot lets that show; a cross-plot against "ground truth" would have scored those same catches as false positives.

The plot scales are part of the same honesty. The vug-percentage bar plots are fixed to a 0-25% range so no interval is visually inflated by an auto-scaled axis, and the comparison-plot x-axis was reduced to 10% for the one figure (Fig 10) whose intervals never exceeded that, so empty white space does not read as low vug density. These choices change no number, only what the reader concludes.

The metric is a property of the labels, not of the model

There is a general rule under this specific story. The right metric is fixed the moment you know your labels, not the moment you know your model. Our detector could have supported a mask-IoU evaluation perfectly well; it extracts per-vug contours internally and could report them. What it could not do was conjure a reference mask on the comparator side, because that side is a ratio and nothing else. The binding constraint was the label schema, and no amount of model sophistication relaxes it.

This is also why the parameter regime is the same story told from the other direction. The pipeline's constants, k = 5 modes, delta-m = 5 intensity separation, circularity kept to 0.3-1.0, the merge threshold at 20% IoU between overlapping contours, block size 31 with C set to the patch mean, are all frozen across every well and depth section, so the results are not the product of per-well metric tuning [2]. The one metric we report against the incumbent is fixed by the labels; the parameters that produce our estimate are fixed in advance. Neither was chosen to flatter the comparison.

If you take one thing from this, take the discipline of checking your comparator before you pick your score. If the only thing you can compare against is a subjective number with no boundaries, then IoU, confusion matrices, and cross-plots against ground truth are not available to you, whatever the reviewers or your own instinct suggest. What is available is a named, honest baseline and a plot that puts two estimates next to each other and lets the reader see the difference. That is a smaller claim than an objective benchmark, and it is the true one.

Limitations

This is an argument about metric selection, not a validation study, and it inherits that boundary. Because the comparator carries no per-vug masks, we also cannot report a per-vug precision or recall against it: the claim that the extra pores we catch are genuine rests on interval-level agreement and spot inspection, not a boundary-level audit the labels could never support. The comparison plot shows where two estimates diverge but cannot attribute a divergence to a miss by the incumbent versus a false positive by us, since deciding that would itself need the mask-level reference we lack. The plot-scale choices, 0-25% bars and the 10% Fig-10 axis, are honest for these intervals but not universal; a denser interval would need a wider axis, and the point is that the axis follows the data, not auto-scale. Finally, some apparent vugs are acquisition artefacts rather than rock [2], and the circularity gate only filters the elongated ones, so absolute vug ratios from either source should be read as estimates, not measured porosity.

References

[1] Rezatofighi, H., Tsoi, N., Gwak, J., Sadeghian, A., Reid, I., and Savarese, S. Generalized Intersection over Union: A Metric and a Loss for Bounding Box Regression. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2019: 658-666. Defines intersection-over-union as the ratio of the intersecting area to the union area of two regions, which requires a per-object region on both the prediction and the reference to be computed at all. https://doi.org/10.1109/CVPR.2019.00075

[2] Lofts, J. C., and Bourke, L. T. The recognition of artefacts from acoustic and resistivity borehole imaging devices. Geological Society, London, Special Publications 159(1) (1999): 59-76. A taxonomy of mechanical, electrical, and processing artefacts in borehole image logs, and why a feature that looks like a pore may be an acquisition artefact rather than rock. https://doi.org/10.1144/GSL.SP.1999.159.01.03

Go to Top

© 2026 Copyright. Earthscan