Machine learning improves crystal structure identification from x-ray patterns

Knowledge-Driven XRD Phase Identification via Multi-View Retrieval and Explanation

Machine Learning

Summary

Figuring out the tiny arrangement of atoms in crystals using X-ray diffraction data is tricky, especially when many new materials are tested and no known examples exist. The authors developed a system that learns to recognize patterns in the data and find the closest known examples to help identify the material's structure. Their method combines several steps to make predictions that come with explanations and confidence scores, which makes it easier for humans to trust and understand. Tests on simulated datasets showed that their system is accurate and can handle noise and measurement errors well.

What this means in practice

  • For materials discovery teams: Identify unknown crystal phases rapidly and reliably in high-throughput experiments without requiring prior reference patterns.
  • For industrial quality control teams: Automate analysis of XRD data to detect material phase composition with explanations aiding human validation in manufacturing processes.

Authors

Doaa Mohamed, Markus Stricker

Abstract

X-ray diffraction (XRD) is a experimental technique for determining the phase composition and structure of crystalline materials. However, interpreting XRD patterns is challenging, particularly in high-throughput materials discovery, where many novel materials may need to be characterized and no reference patterns are available. Consequently, machine learning is increasingly used to accelerate and automate the analysis while reducing errors associated with human interpretation. We propose a multi-decision framework for XRD phase analysis that integrates representation learning, similarity-based retrieval, and explainable decision support within a unified reference database. A convolutional autoencoder learns compact latent representations of XRD patterns that preserve structural similarity while remaining robust to variations arising from experimental noise and measurement conditions. By integrating multiple decision pathways within a shared latent space, the framework moves beyond single-label prediction toward ranked and interpretable phase analysis that mirrors expert practice. During inference, complementary decision mechanisms are applied, including latent-space classification and retrieval, explanation-guided similarity using Integrated Gradients, and composition-based similarity search. These mechanisms generate ranked candidate phase lists that are aggregated into a final prediction with an associated confidence score. Experiments on synthetic datasets demonstrate strong predictive performance, achieving 98.85\,\% accuracy for crystal system classification and 95.82\,\% accuracy for space group prediction on the test set, while maintaining robustness under realistic perturbations. The framework supports reliable, analyst-friendly identification of crystal phases and structures in high-throughput and exploratory materials discovery settings.