Rock Classification through Knowledge-Enhanced Deep Learning: A Hybrid Mineral-Based Approach

Iye Szin Ang, Martin Johannes Findl, Elisabeth Hauzinger, Klaus Philipp Sedlazeck, Jyrki Savolainen, Ronald Bakker, Robert Galler, Elmar RueckertarXiv 2025 · DOI

Introduction

In industries ranging from mining to construction, the rapid and accurate identification of rock types is essential for effective resource management. While Raman spectroscopy provides a high-fidelity "molecular fingerprint" for individual minerals, translating these findings into a definitive rock classification remains a significant challenge. Rocks are complex composite materials; for instance, granite and sandstone often share primary minerals like quartz and feldspar, differing primarily in their proportions and formation conditions. This paper introduces a hybrid machine learning pipeline designed to bridge this "mineral-to-rock" deduction gap by combining deep learning with geological domain expertise.

Methodology: A Hybrid Pipeline

The researchers proposed a dual-layer architecture that integrates data-driven pattern recognition with rule-based geological logic.

The hybrid pipeline architecture, transitioning from raw rock samples to mineral detection and final confidence-based classification.

1. Mineral Identification Layer

The first stage utilizes a One-dimensional Convolutional Neural Network (1D-CNN) to identify minerals from Raman spectra. To handle real-world variability, the authors implemented an uncertainty-aware variant (1D-CNN-UNK) using Monte Carlo dropout. This allows the model to estimate predictive variance and flag "unknown" minerals not present in the training set, enhancing the system's robustness.

2. Knowledge-Enhanced Expert System

Detected minerals are passed into a rule-based framework grounded in established geological standards, such as QAPF and ternary classification diagrams. This system uses a weighted composition formula to calculate a "confidence score" for specific rock types based on whether the observed mineral proportions align with known geological ranges.

Mineral association rules for Granite, illustrating the percentage-based thresholds used by the expert system to deduce rock type from mineral composition.

Data and Validation

The model was trained using the RRUFF database (~7,000 mineral spectra) and augmented with PCA-based synthetic data to address class imbalances. Validation was conducted using 30 expert-curated test cases representing granite, sandstone, and limestone, including both typical and ambiguous mineral compositions.

Key Results and Insights

The 1D-CNN achieved a high mineral identification accuracy of 98.37%, significantly outperforming traditional Support Vector Machines (88.43%). However, the transition to rock classification revealed nuances:

  • Limestone classification was the most stable, achieving a precision of 66.7% and an F1-score of 0.62.
  • Granite showed 100% recall but lower precision (<35%), as the system frequently flagged sandstones as granite due to their overlapping mineralogy.
  • Uncertainty Quantification proved vital; by quantifying "doubt," the model avoids overconfident misclassifications, though it can lead to over-caution in complex assemblages like sandstone.

Conclusion and Future Directions

The study demonstrates that while deep learning is highly effective for mineral identification, accurate rock classification requires the integration of "hard-coded" geological logic. Future work will focus on expanding the validation dataset, refining the binary logic to better capture subtle mineral ratios, and investigating spectral interactions within composite rock samples.

Summary updated

BibTeX
@misc{ang2025rock,
  author = {Iye Szin Ang and Martin Johannes Findl and Elisabeth Hauzinger and Klaus Philipp Sedlazeck and Jyrki Savolainen and Ronald Bakker and Robert Galler and Elmar Rueckert},
  title = {{Rock Classification through Knowledge-Enhanced Deep Learning: A Hybrid Mineral-Based Approach}},
  year = {2025},
  eprint = {2510.13937},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.13937},
}
Figure