Related Experiment Video
Updated: Apr 25, 2026

High Pressure Single Crystal Diffraction at PX^2
Published on: January 16, 2017
XRD-VisionTransformer: Effective Multiphase Identification Framework for X-ray Diffraction Patterns
Zhangpeng Wei1, Xin Peng1, Wenli Du1
1Key Laboratory of Smart Manufacturing in Energy Chemical Process, Ministry of Education, East China University of Science and Technology, 130 Meilong Road, Shanghai 200237, China.
Abstract:
X-ray diffraction (XRD) is a powerful analytical technique for identifying crystalline phases in unknown mixtures. However, traditional phase identification methods are time-consuming and require substantial human intervention. To accelerate this process, machine learning has become increasingly important in XRD phase identification. By framing phase identification as an image classification task, Convolutional Neural Network (CNN)-based methods have achieved notable performance. However, the inherent limitation of CNN on capturing long-range dependencies made it difficult to process multiphase identification tasks in which the characteristic peaks may be widely separated. The Vision Transformer (ViT) architecture, with its self-attention mechanism, offers a promising alternative by effectively modeling global relationships. However, the difference between XRD data and natural image limits ViT's model performance in the phase identification task. To align ViT architectures with XRD domain knowledge, we proposed the XRD-VisionTransformer (XViT), a new network for multiphase identification of XRD patterns. Additionally, to address ViT's sensitivity to datasize, we introduced a statistical positional embedding module in XViT that encodes crystallographic position priors using global intensity statistics rather than fully learnable embeddings. This ensures that the application runs on smaller data sets while maintaining performance. Furthermore, to better catch the interpeak dependencies, we introduced a deep classifier tail that uses all of the features in the last transformer layer. This ensures that the relationships between different characteristic peaks are well learned and gives a better phase (combinations of characteristic peaks) identification result. Comprehensive experiments on two inorganic data sets demonstrate that XViT outperforms both CNN and ViT models in XRD phase identification.
More Related Videos
11:48Microfluidic Chips for In Situ Crystal X-ray Diffraction and In Situ Dynamic Light Scattering for Serial Crystallography
Published on: April 24, 2018
11:27X-Ray Crystallography to Study the Oligomeric State Transition of the Thermotoga maritima M42 Aminopeptidase TmPep1050
Published on: May 13, 2020
Related Concept Videos
X-ray Diffraction of Biological Samples
According to Bragg's law, when X-rays strike the sample positioned on a stage, the rays are scattered by the electron clouds around the sample atoms. The X-ray diffraction or scattering is caused by constructive interference of the X-ray waves that reflect off the internal...
X-ray Crystallography
Diffraction
Diffraction is the change in the direction of travel experienced by an electromagnetic wave when it encounters a physical barrier whose dimensions are comparable to those of the wavelength of the light. X-rays are electromagnetic radiation with wavelengths about as long as the distance between neighboring...
Determination of Crystal Structures