Skip to main content
Back

University of Western Australia's GeoChemFormer Finds Buried Minerals With 0.77 AUC

A new open benchmark and transformer framework for detecting mineral deposits from geochemical survey data, targeting reproducibility gaps in exploration research.

Pro

  • New open benchmark GeoChemAD covers 8 subsets across sediment, rock chip and soil samples.
  • Targets four commodities (Au, Cu, Ni, W) across regions from 6 km2 to 8,500 km2 in Western Australia.
  • GeoChemFormer uses two-stage transformer: spatial context learning then element dependency reconstruction.
  • Achieves 0.7712 average AUC, beating VAE-GAN (0.7279) and vanilla transformer (0.7147) baselines.
  • LLM-assisted feature selection outperformed manual expert selection by roughly 10 AUC points.
  • Data sourced from Geological Survey of Western Australia, with raw abnormal values preserved.

Finding a new gold or copper deposit often starts with a chemistry lesson. Surveyors collect thousands of soil, sediment, or rock chip samples across a region, then hunt for spots where element concentrations deviate from the local baseline. Those deviations, called geochemical anomalies, can hint at buried mineralization. The catch: most machine learning work in this space has been run on proprietary datasets in a single Chinese region, targeting a single element (usually gold), which makes it nearly impossible to reproduce results or compare methods fairly.

A team from The University of Western Australia is trying to fix that with GeoChemAD, an open benchmark for unsupervised geochemical anomaly detection, paired with a new transformer-based model called GeoChemFormer. Both the dataset and code are on GitHub.

Why the field has been stuck

Supervised methods rely on labelled positive samples (known mineralization sites) and often struggle to generalize to regions with sparse or unknown mineralization, so most recent work has moved to unsupervised approaches that learn what "normal" looks like and flag deviations. But there are two big holes: most existing studies evaluate their models on privately collected datasets, which limits reproducibility and hinders fair comparison, and the research predominantly focuses on one specific region using single-source geochemical data, typically sediment samples, restricting exploration of model generalizability.

There is also a subtler problem: an unsupervised model might flag anomalies that have nothing to do with the element you actually care about. A gold explorer does not want alerts driven by unrelated iron variation.

Diagram of the geochemical anomaly detection task with sampling points and anomaly scoring

Inside the benchmark

GeoChemAD is built from the Geological Survey of Western Australia's DMPE Data platform, using datasets from the Accelerated Geoscience Program that include GSWA-verified geological, geochemical, and geophysical records. The result is eight subsets that vary along three axes exploration teams actually care about:

  • Sampling medium: two sediment, three rock chip, and three soil subsets
  • Target commodity: gold (Au), copper (Cu), nickel (Ni), and tungsten (W), rather than gold alone
  • Spatial scale: sampling point counts and area sizes vary from approximately 6 km2 to 8,500 km2, supporting evaluations under both sparse and dense sampling conditions

Each subset ships as two CSVs, one with sample coordinates and multi-element concentrations, one with verified mineralization sites for evaluation. Notably, the raw abnormal entries (like -9999 sentinel values) are kept in, forcing methods to handle real-world messiness rather than assuming clean input.

How GeoChemFormer works

GeoChemFormer is a two-stage transformer trained without labels. The first stage learns spatial context; the second uses that context to reconstruct element concentrations, and flags samples with high reconstruction error as anomalies.

GeoChemFormer architecture with spatial context learning and element dependency modelling stages

Stage one, Spatial Context Learning, is the interesting bit. Rather than using the geochemical value at the query location, the model predicts the target element concentration solely from its surrounding neighbours, forcing the model to learn geological context from nearby samples. Neighbours are pulled with a KD-tree, each represented as a token containing its spatial offset from the query point plus its element concentrations. A special target-element token tells the model which commodity matters, which is how it becomes target-element-aware.

Stage two conditions on that learned spatial representation and reconstructs every element concentration at the query location. The anomaly score is simply the mean squared reconstruction error across all elements. Samples where the actual chemistry cannot be predicted from context and inter-element dependencies get high scores.

The numbers

The paper benchmarks twelve methods, from Z-score and Mahalanobis distance up through Isolation Forest, one-class SVM, autoencoders, VAE-GAN, VAE-Diffusion, and a vanilla transformer. Averaged over the eight subsets:

  • Statistical baselines (Z-score, Mahalanobis, kNN): AUC of 0.5 to 0.58, reflecting their inability to capture complex geochemical relationships
  • Autoencoder: 0.7046 average AUC
  • VAE-GAN: 0.7279
  • Vanilla transformer: 0.7147
  • GeoChemFormer: 0.7712, outperforming the vanilla transformer and other deep generative baselines

The gap is largest on soil datasets: GeoChemFormer hits 0.8704 on soil1 and 0.8334 on soil3, versus low-0.6s for most baselines. It is not universally best though. AE achieves 0.9185 on rock2, while GeoChemFormer achieves 0.8334 on soil3, suggesting that different models may perform better under specific geological settings.

Preprocessing lessons worth stealing

The ablations also produced some practical takeaways that generalize beyond this paper. Log-ratio transforms (CLR and ILR) help with the compositional closure problem inherent to concentration data, with ILR edging out CLR on average. For feature selection across dozens of elements, an LLM-assisted strategy beat manual expert selection (0.7412 vs 0.6419 average AUC), and PCA-selected features hit 0.9427 with GeoChemFormer on one Au subset. For interpolation, IDW worked better for gold, Kriging for nickel, so choice tracks data characteristics more than model architecture.

Who should care

If you work anywhere near mineral prospectivity mapping, remote sensing for exploration, or spatial anomaly detection more broadly, this is the first properly reproducible playing field for the task. The transformer recipe of pretraining on neighbourhood prediction, then using reconstruction error over element tokens as an anomaly score, is also a template that could travel to other spatial-tabular problems like soil contamination monitoring or hydrogeochemistry. What it will not do is replace a geologist. AUCs in the high 0.7s are useful for narrowing exploration targets, not for making drilling decisions on their own.