Separating Ore Signals from Unfamiliar Rock Along Drill Holes

When geologists hunt for buried ore, they drill holes and measure the chemistry of rock every meter or so down each hole. Machine-learning models then turn those measurements into a map of where ore is likely. The current models are anomaly detectors: they learn what ordinary rock looks like and flag anything unusual. In deep exploration, though, "unusual" has two meanings that call for opposite responses. One is the chemical halo around a buried orebody, which is what the drilling is looking for. The other is a rock type the model has never seen, such as a barren intrusion, a different sedimentary unit, or a different fluid event, which calls for caution. A reconstruction-error detector raises the same alarm for both.

We propose a scoring system that keeps these two cases apart. A small network reads a window of consecutive measurements along the hole rather than one sample at a time, and is trained to classify known rock and alteration types. On its internal features we fit one Gaussian per known class. The class posterior gives the ore-prospectivity estimate. The Mahalanobis distance to the nearest class gives a separate "outside everything I know" score. Mahalanobis distance is the distance from a point to a Gaussian's center after rescaling each direction by how much the data normally varies along it. When the second score is high, the system abstains instead of reporting ore. The bet is that sequence context along the hole is what makes this distance usable on geochemistry. Single samples of a new rock type often look like a blend of known ones. Their down-hole zoning patterns do not.

Core Claim

Covariance-scaled distance in the feature space of a depth-context encoder separates novel lithologies from known ore halos far better than per-sample latent distance, raw-concentration Mahalanobis distance, or reconstruction error. It does this without lowering prospectivity accuracy on known rock. Two things would be new. The first is treating unseen geology as an out-of-distribution (OOD) problem distinct from ore anomaly detection. The second is showing that the loss of context from treating drill-core assays independently is what breaks distance-based detection on geochemical data. The score we use is the relative Mahalanobis distance on radially rescaled features:

$$s(x) = \min_c \left[ M_c(\phi_\beta(z)) - M_0(\phi_\beta(z)) \right], \qquad \phi_\beta(z) = z / \|z\|^\beta .$$

Here $z$ is the encoder's feature vector for a window $x$ centered on one sample. $M_c$ is the Mahalanobis distance to the Gaussian of known class $c$. $M_0$ is the distance to a single Gaussian fitted to all training features. $\beta \in [0,1]$ controls how much feature norm is discounted.

Where This Sits

Two papers motivate the gap directly.

3D Mineral Prospectivity Mapping of Zaozigou Gold Deposit builds a 3D block model from 72 drill holes and 5,028 twelve-element halo assays. It scores ore with a student-teacher reconstruction error (STOAD) and reports AUC 0.97. The authors note that accuracy decays with depth and that every block is forced into a prospectivity value. Nothing in the method lets it say "this is rock I don't recognize."

A Multi-Convolutional Autoencoder Approach to Multivariate Geochemical Anomaly Recognition beats raw-input Mahalanobis distance with per-element convolutional autoencoders, reaching AUC 0.89. It works on 2D surface stream-sediment grids, so it has no depth and no learned-feature distance. Its loss to raw Mahalanobis distance is evidence against raw-space distance. It says nothing about distance in learned features.

The method comes from the OOD literature.

One result constrains the proposal. Confidence-Based Out-of-Distribution Detection finds that Mahalanobis distance collapses from AUROC 0.987 on CIFAR-10 vs. SVHN to 0.526 on CheXpert, where heavily overlapping classes defeat it, while ODIN holds 0.84–0.86. Geochemical classes overlap in the same way: on the apatite database of Visual Interpretation of Machine Learning, the IOCG class reaches only F1 0.69. We take this failure seriously. Our hypothesis is specifically that the context window reduces the overlap. If it does not, Mahalanobis scoring will fail here as it did on X-rays, and we will report that.

The context argument borrows from imaging work.

  • Deep convolutional networks for pancreas segmentation in CT imaging shows that slice-independent prediction fragments 3D structure.
  • CARVE shows that volumetric evidence is sparse and localized, but must be read against surrounding slices.
  • ReCAP shifts normal prototypes according to image context using a bounded tanh gate. It does this only on 2D slices, and its authors leave depth stacks as future work.

We differ from ReCAP in two ways. We use exact covariance-scaled distances rather than heuristic gates. And our "volume" is the drill trajectory, so geochemists' front halos (Au–As–Sb–Hg) and trailing halos (W–Bi–Mo) become patterns the encoder can see.

Research Program

Input representation. Each sample is its twelve element concentrations under a centered log-ratio transform. This is the standard way to remove the constant-sum and log-skew problems of compositional data. Each sample also carries its depth offset relative to the window center, because sampling intervals along real holes are irregular. A window holds the $k$ samples above and below the center within the same hole. A small 1D convolution or transformer with relative-distance encoding maps the window to a 32-dimensional feature vector. Keeping the dimension this low means a few thousand samples can estimate the covariance stably.

Training. The encoder is trained with cross-entropy on known classes. These are logged lithology and alteration units plus a mineralized/barren label, so the softmax–Gaussian equivalence from Lee et al. applies to its penultimate layer. We then fit class means, a shared covariance with shrinkage, and the background Gaussian.

Analyses. We will measure how much the context window reduces class overlap, using within-class spectral slope and Bhattacharyya overlap between classes. We will also test whether the "background" class mean drifts systematically with depth. Such drift is the false-alarm mechanism that ReCAP's conditioning targets.

Data and leakage. We work on raw down-hole samples, not the interpolated block model. Interpolation smears information across holes, and that would leak test information into training. Every split is by whole hole.

Data access. Lacuna's registry has no packaged geochemical datasets. The primary dataset therefore depends on obtaining Zaozigou halo assays together with the drill logs, which we assume record lithology per interval. Failing that, we would use any comparable logged drill-hole compilation.

Secondary test. The apatite LA-ICP-MS database (1,551 analyses, five deposit types) has no depth sequence. It isolates the distance-scoring half of the proposal: do the relative-distance and radial-rescaling fixes help on compositional data even without context?

Baselines

Naive reference. The naive score is maximum softmax probability from the same encoder, with abstention when confidence is low. It costs nothing extra, and every other method must beat it.

Raw-space Mahalanobis. Classical raw-space Mahalanobis distance is run on log-ratio-transformed assays in two forms: per sample, and on the concatenated window of neighboring samples. This is the geochemist's default, and the windowed version is the cheapest way to give it the same context our encoder receives. The windowed form uses the identical window size, plus shrinkage tuned on known-class validation data.

Reconstruction error. STOAD from the Zaozigou paper, with a plain deep autoencoder as a weaker variant, is the strongest published method on this data. It reports AUC 0.97 for ore prospectivity, with the deep autoencoder at 0.92. That figure was measured on interpolated blocks, so we retrain STOAD on our hole-level splits rather than quote it. No reported result found on Lacuna for any OOD or novel-lithology detection on drill-hole geochemistry.

ODIN. ODIN rescales the classifier's outputs by a temperature and perturbs the input. It is included because it was the method that survived on CheXpert. Its temperature and perturbation size are tuned only on known-class data, the same budget our $\beta$ selection receives.

Ablation of the key ingredient. The decisive ablation is per-sample latent Mahalanobis distance. It uses the same architecture with window size $k=0$, the same relative-distance score, and the same $\beta$ procedure. Comparing it with the full method isolates the contribution of context.

Further ablations remove the background subtraction or set $\beta=0$, and compare shared covariance against per-class covariance.

What counts as beating the baselines. All methods receive the same splits, the same 32-dimensional feature budget where applicable, and equal hyperparameter search. The proposal wins only if both of the following hold. First, it exceeds every baseline on novel-lithology AUROC, with a 95% bootstrap interval over held-out holes that excludes zero. Second, its prospectivity AUC on known rock stays within 0.01 of retrained STOAD.

Why not just…?

Why not just use windowed log-ratio Mahalanobis on raw assays? This is the real threat. The Chen et al. result, where the autoencoder beat raw Mahalanobis, was on untransformed surface data without depth context, so it does not rule this alternative out. If windowed raw-space distance matches the learned encoder on held-out lithologies, the learned features are unnecessary. The contribution would then shrink to the evaluation protocol plus the finding that context, not depth of the network, is what matters. We would report it that way.

Why not just threshold STOAD's reconstruction error? Reconstruction error rises for anything unfamiliar, so it cannot tell a novel barren unit from ore. The direct test is the false-ore rate: the fraction of held-out-lithology samples scored above the ore threshold. We expect reconstruction methods to score high on it by construction. If they do not, our premise is wrong for this deposit.

Why not just compute latent Mahalanobis per sample, as standard OOD work does? Per-sample latent distance is exactly the ablation above. The CheXpert collapse suggests that when classes overlap, per-sample features are where Mahalanobis scoring fails. The spectral-slope and overlap analyses tell us whether the window actually separates the classes, or merely adds parameters.

Why not just use ODIN, since it won on X-rays? It might win here too. Input perturbation on log-ratio features is cheap, and we give ODIN equal tuning access. Even if it does, it provides no class-wise geometry for diagnosing which known unit a novel rock most resembles, which is a useful output for a geologist. The headline comparison, however, is on detection metrics alone.

Proposed Experiments

Leave-one-unit-out. For each logged lithology or alteration unit in turn, we remove every hole interval belonging to that unit from training. We then score the held-out unit's samples against known-class samples from held-out holes. Metrics are AUROC, false-positive rate at 95% true-positive rate, and false-ore rate.

Shallow-to-deep shift. We train on samples above a depth cutoff and test below it. This mirrors how exploration actually proceeds, and probes the depth decay the Zaozigou paper reports. Here we also report selective prospectivity AUC: accuracy on the samples the system does not abstain on, as a function of how many it abstains on.

Window-size sweep. We sweep $k$ from 0 to roughly 15 neighbors. The full method should improve over $k=0$, and the gap should be largest for held-out units whose single-sample chemistry overlaps known units most.

Apatite check. On the apatite database we hold out one deposit type at a time and test whether relative distance and radial rescaling improve on plain Mahalanobis distance. The reference point is a closed-set SVM with 89% test accuracy, which has no reported OOD result.

Kill criterion. The core claim fails if the full method does not beat windowed raw-space Mahalanobis on leave-one-unit-out AUROC, or if novel-lithology AUROC sits near the 0.5 that CheXpert produced.