Skip to main content

Case Study

From Pixels to Pores: Automated Vug Detection in Carbonate Reservoirs

A computer vision pipeline achieved 2,000× finer granularity than manual interpretation, recovering vugs missed by experts and delivering per-vug geometry at 0.1 m resolution across 200+ m of Middle East carbonate borehole image logs.

Tannistha Maitiby Tannistha Maiti
Case study

A global energy operator in the Middle East replaced zone-level manual vug picking with an AI-native computer vision pipeline that quantifies individual vugs — area, circularity, azimuth — at 0.1 m resolution across 200+ m of carbonate borehole image logs, recovering secondary porosity features experts missed and turning qualitative interpretation into structured reservoir geometry.

At a glance

Three metrics frame the shift from manual zone-level picking to automated contour-level quantification.

0.1 m intervals
2,000× finer than manual

Depth resolution

4+ intervals
across 2 wells

Missed vugs recovered

2–3 of 10+
ΔL, Δμ, block size

Parameters retuned per new well

The challenge

Carbonate reservoirs store hydrocarbons in fractures, vugs, and inter-crystalline pores — a heterogeneity that matrix-porosity models alone cannot resolve. Secondary porosity — the voids created by dissolution, dolomitization, or karst processes — often controls flow capacity and sweep efficiency, yet traditional manual interpretation from borehole image logs captures only zone-level averages.

The operator's petrophysicists were working with static logs from two different microresistivity imaging tools spanning over 200 m per well in a Middle East carbonate field. Manual picking in the interpretation software yielded porosity percentages for broad intervals but missed individual vug geometry: size, shape, azimuthal distribution, and vertical clustering. The logs held the signal — dark resistivity anomalies marking fluid-filled voids — but human interpretation was fundamentally limited by pixel-scale resolution, tool variability (high-resolution borehole image log depth of investigation ~30 inches vs. compact microresistivity tool ~0.90 inches), and the sheer repetitive effort required to trace thousands of contours.

Without vug-scale quantification, reservoir models treated secondary porosity as a statistical smear rather than discrete geometric objects. The team needed a way to see what experts could not: every vug, its circularity, its orientation, its neighbors — at resolution finer than any manual workflow could sustain.

What we did

We built an AI-native computer vision pipeline that treats borehole image logs as structured image stacks rather than depth plots — segmenting raw static logs from two different microresistivity imaging tools into 1 m processing zones, each decomposed into 0.1 m reporting intervals, and applying a five-stage detection cascade tuned to carbonate vug morphology.

The pipeline starts with top-k mode subtraction, removing the k=5 most frequent pixel intensity values to suppress banding artifacts and tool noise. Then Gaussian-modulated adaptive thresholding isolates candidate dark anomalies — the resistivity signature of fluid-filled vugs — using a locally adaptive threshold rather than a global cutoff, preserving vugs in both high- and low-resistivity zones.

Five-stage vug detection cascade

  1. Top-k mode subtraction

    k=5 to suppress banding

  2. Gaussian-adaptive thresholding

    Locally adaptive, zone-specific

  3. Contour extraction

    Circularity filter 0.3–1.0

  4. Dual-layer filtering

    Laplacian edge + mean deviation

  5. Vug catalog output

    Area, circularity, azimuth, resistivity

Contour extraction follows, filtered by circularity (0.3–1.0) to reject linear fractures and wellbore-parallel artifacts. Each contour is then subjected to dual-layer filtering: Laplacian edge strength to confirm sharp boundaries, and mean resistivity deviation to reject noise patches. What survives is a vug: a discrete geometric object with measured area (1–12 cm² in this field), circularity (0.28–0.85), and azimuthal position across four quadrants.

CARBONATE VUG DETECTION · CIRCULARITY FILTER0.30circularity gate — keep round, drop linear3 / 3 expert-missed vugs in catalogOne geometric gate turns contours into a vug catalogCircularity 0.3–1.0 rejects fractures & wellbore-parallel artifacts; orange = vugs manual picking missed.rejected (grey)catalogued vug (teal)expert-missed vug (orange)12 cm²1 cm²vugarea0.28 elongated0.85 round · circularity →← drag the gate · right of it = catalogued, left = dropped — orange vugs the expert missedSourced: gate 0.3–1.0, circ 0.28–0.85, area 1–12 cm², 3 recovered vugs · contour coords schematic
The pipeline's single geometric decision, made tactile. Each contour the detector traces sits on a circularity axis — 0.28 (elongated, dissolution-aligned) to 0.85 (near-circular). A circularity gate of 0.3–1.0 rejects linear fractures and wellbore-parallel artifacts while keeping true vugs. Drag the gate: contours left of it fall out as rejected fractures (grey), contours right of it enter the vug catalog (teal), and the three orange contours are vugs that meet every geometric criterion the expert applied — yet manual picking missed across two of the validation wells. The gate bounds, circularity span, 1–12 cm² area, and three recovered intervals are the article's own; each contour's exact coordinate is schematic (a plausible population, not a published catalog).
CARBONATE VUG DETECTION · CIRCULARITY FILTER0.30circularity gate — keep round, drop linear3 / 3 expert-missed vugs in catalogOne geometric gate turns contours into a vug catalogCircularity 0.3–1.0 rejects fractures & wellbore-parallel artifacts; orange = vugs manual picking missed.rejected (grey)catalogued vug (teal)expert-missed vug (orange)12 cm²1 cm²vugarea0.28 elongated0.85 round · circularity →← drag the gate · right of it = catalogued, left = dropped — orange vugs the expert missedSourced: gate 0.3–1.0, circ 0.28–0.85, area 1–12 cm², 3 recovered vugs · contour coords schematic
The pipeline's single geometric decision, made tactile. Each contour the detector traces sits on a circularity axis — 0.28 (elongated, dissolution-aligned) to 0.85 (near-circular). A circularity gate of 0.3–1.0 rejects linear fractures and wellbore-parallel artifacts while keeping true vugs. Drag the gate: contours left of it fall out as rejected fractures (grey), contours right of it enter the vug catalog (teal), and the three orange contours are vugs that meet every geometric criterion the expert applied — yet manual picking missed across two of the validation wells. The gate bounds, circularity span, 1–12 cm² area, and three recovered intervals are the article's own; each contour's exact coordinate is schematic (a plausible population, not a published catalog).

We deployed the pipeline across three wells — two vertical, one horizontal — with varying tool types (high-resolution borehole image logs in the two vertical wells, a compact microresistivity tool in the horizontal well) and resistivity ranges. The processing stack required only 2–3 parameter adjustments per new well (ΔL for brightness normalization, Δμ for mean deviation threshold, and adaptive block size), preserving the core detection logic across tool and orientation shifts.

The output is not a zone-level percentage but a vug catalog: depth, area, circularity, azimuth, resistivity profile — every 10 cm, over 200+ m. We cross-validated against the expert's interpretation-software ground truth and identified three discrete depth intervals across the two vertical wells where the pipeline recovered vugs the expert interpreter had missed — vugs that met every geometric and resistivity criterion but fell below the threshold of manual attention.

The outcome

The pipeline processed 200+ m of log per well and delivered vug-level quantification at 0.1 m resolution — a 2,000-fold refinement over the zone-level (tens of meters) granularity of manual picking. Individual vugs ranged from 1 to 12 cm² in area, with circularity spanning 0.28 (elongated, dissolution-aligned) to 0.85 (near-circular, isotropic voids).

Cross-validation against the expert's interpretation-software ground truth revealed that the pipeline recovered vugs in three discrete depth intervals across the two vertical wells that the expert had missed — not because the signal was absent, but because pixel-scale manual tracing cannot sustain attention across thousands of candidate anomalies. The automated contour filter applied the same geometric and resistivity criteria uniformly, without fatigue or subjective thresholding drift.

Parameter retuning for new wells was minimal: only 2–3 of the 10+ tunable parameters (ΔL for brightness normalization, Δμ for mean deviation threshold, adaptive block size) required adjustment when moving between imaging tools or from vertical to horizontal orientations. The core detection logic — top-k subtraction, Gaussian-adaptive thresholding, circularity filtering — generalized across tool types and well geometries without retraining or architecture changes.

What changed

  1. Depth resolution improved from zone-level (tens of meters) to 0.1 m intervals — 2,000× finer granularity
  2. Three discrete depth intervals showed vugs recovered by automation that manual picking missed
  3. Minimal retuning (2–3 parameters) enabled deployment across two different imaging tools and vertical and horizontal wells

What this unlocked

Vug-level geometry — not zone-level porosity percentages — is what reservoir simulators need to honor flow heterogeneity. The catalog of per-vug area, circularity, azimuth, and vertical clustering feeds directly into discrete fracture network (DFN) models, allowing engineers to condition flow simulations on measured void architecture rather than statistical averages.

Azimuthal distribution across four quadrants revealed systematic vug alignment in the two vertical wells — a dissolution fabric invisible in zone-averaged picks but critical for understanding preferential flow pathways and optimizing completion design. In the horizontal well, logged with a compact microresistivity tool, the pipeline quantified vug density variation along the lateral, informing stage spacing and perforation placement.

The workflow's generalization across tool types and well orientations means the operator can now process legacy high-resolution borehole image log archives and live compact microresistivity logs with the same detection stack, building a field-scale vug catalog without per-well model retraining. Secondary porosity, once a qualitative nuisance term in petrophysical models, becomes a structured data asset — searchable by geometry, depth, and azimuth.

Lessons and next steps

The richest signal in borehole image logs is not binary presence-or-absence but geometric detail: vug shape, orientation, clustering. Manual interpretation, constrained by pixel-scale attention and subjective thresholding, cannot capture that detail at scale. Computer vision, tuned to carbonate morphology and backed by adaptive filtering, can — and does so uniformly across hundreds of meters and multiple tool modalities.

The pipeline's minimal retuning burden (2–3 parameters per new well) suggests that the core detection logic has captured something generalizable about vug resistivity signatures, not overfitted to a single tool or field. The next deployment will test this hypothesis on a different carbonate play — Jurassic Arab formations in Saudi Arabia — where vug size distribution and circularity profiles differ from the Middle East dataset.

Automated contour-level quantification doesn't just speed up what experts already do — it sees what they cannot.

Depth resolution transformation

Before

Zone-level

After

0.1 m intervals

Go to Top

© 2026 Copyright. Earthscan