Accurate and Data-Efficient Micro-XRD Phase Identification Using Multi-Task Learning: Application to Hydrothermal Fluids

Yanfei Li, Juejing Liu, Xiaodong Zhao, Wenjun Liu, Tong Geng, Ang Li, Xin ZhangarXiv 2024 · OpenReview

Abstract

Traditional analysis of highly distorted micro-X-ray diffraction (μ-XRD) patterns from hydrothermal fluid environments is a time-consuming process, often requiring substantial data preprocessing and labeled experimental data. This study demonstrates the potential of deep learning with a multitask learning (MTL) architecture to overcome these limitations. We trained MTL models to identify phase information in μ-XRD patterns, minimizing the need for labeled experimental data and masking preprocessing steps. Notably, MTL models showed superior accuracy compared to binary classification CNNs. Additionally, introducing a tailored cross-entropy loss function improved MTL model performance. Most significantly, MTL models tuned to analyze raw and unmasked XRD patterns achieved close performance to models analyzing preprocessed data, with minimal accuracy differences. This work indicates that advanced deep learning architectures like MTL can automate arduous data handling tasks, streamline the analysis of distorted XRD patterns, and reduce the reliance on labor-intensive experimental datasets.

Introduction

Micro-X-ray diffraction (μ-XRD) is a critical technique for mapping minerals in complex environments, such as hydrothermal fluids. However, these settings present significant challenges: the liquid phase absorbs X-rays, and crystals often exhibit defects or poor orientation, resulting in weak, noisy, and distorted diffraction patterns. Traditionally, researchers must manually "mask" these images to remove background noise before identification, a process that is slow, labor-intensive, and prone to subjective bias. While deep learning has shown promise in automating this, previous models often required large amounts of hand-labeled experimental data. This study introduces a Multi-Task Learning (MTL) architecture that achieves high accuracy using primarily synthetic data and can process raw, unmasked experimental patterns directly.

Methodology

Multi-Task Learning Architecture

The researchers developed an MTL model designed to identify three specific phases simultaneously: bastnaesite, calcite, and rhenium metal. Unlike standard Convolutional Neural Networks (CNNs) that classify a single phase, the MTL architecture consists of two main components:

  1. Shared Backbone: A series of 1D convolutional layers that extract general "latent features"—such as peak locations and shapes—common to all XRD patterns.
  2. Task-Specific Branches: Three independent branches that diverge from the backbone, each optimized to identify one of the target phases.
The Multi-Task Learning (MTL) architecture featuring a shared backbone for feature extraction and task-specific branches for mineral phase identification.

Data and Training

The study utilized three datasets to evaluate the model: a Synthetic (S) Dataset of 1,056 patterns for initial training, an Experimental Masked (EM) Dataset of 110 cleaned patterns, and an Experimental Unmasked (EU) Dataset of 110 raw patterns. To address the class imbalance in experimental data (where minerals are present in only ~30% of samples), a weighted cross-entropy loss function was implemented to prevent the model from biasing toward "not present" predictions.

Results and Discussion

Performance and Data Efficiency

The MTL model demonstrated superior accuracy over independent CNN architectures. When trained on synthetic data alone, it achieved accuracies of 85% for bastnaesite, 72% for calcite, and 90% for rhenium. Performance further improved with a "hybrid" approach—adding a small amount of labeled experimental data—reaching accuracies of 95%, 92%, and 98%, respectively.

Robustness to Noise and Preprocessing

A major breakthrough of this work is the model's ability to handle raw, unmasked data. The difference in accuracy between analyzing clean (masked) data and raw (unmasked) data was less than 2% when using the hybrid training method. This suggests that the arduous manual task of background removal and masking may be unnecessary when using advanced deep learning architectures.

Overview of the MTL workflow, illustrating (a) training on synthetic datasets and (b) the retrieval of phase information from both processed and raw experimental XRD data.

By incorporating random Gaussian noise into the synthetic training data, the researchers successfully bridged the gap between theoretical patterns and the distorted reality of experimental hydrothermal fluid data.

Conclusion

This research demonstrates that MTL architectures can significantly streamline the analysis of distorted μ-XRD patterns. By sharing features across multiple identification tasks, the model becomes more robust and data-efficient than traditional classifiers. The ability to achieve high accuracy on raw, unmasked data represents a major step toward fully automating mineral mapping in complex geological and chemical systems, reducing the reliance on labor-intensive manual preprocessing.

Summary updated

BibTeX
@misc{li2024accurate,
  author = {Yanfei Li and Juejing Liu and Xiaodong Zhao and Wenjun Liu and Tong Geng and Ang Li and Xin Zhang},
  title = {{Accurate and Data-Efficient Micro-XRD Phase Identification Using Multi-Task Learning: Application to Hydrothermal Fluids}},
  year = {2024},
  eprint = {2403.10042},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.10042},
}
Figure