Advancements in machine learning, deep learning, and data fusion techniques for XRF spectrometry in heavy metal detection: a critical review

Abstract

X-ray fluorescence (XRF) spectroscopy is a vital analytical technique that is widely employed for determining the elemental composition of diverse materials, particularly soils, ores, and alloys, owing to its non-destructive nature, rapid analysis, and cost-effectiveness. These advantages allow the simultaneous detection of multiple elements with high precision, facilitating critical applications in environmental monitoring, agriculture, and materials science. Nevertheless, extracting accurate elemental information from complex XRF spectra remains challenging due to spectral interference, matrix effects, and data complexity. Recent advancements in machine learning (ML) and deep learning (DL) over the last five years have significantly improved the accuracy, reliability, and efficiency of XRF spectral analyses. Classical ML algorithms, such as partial least squares regression (PLSR), support vector regression (SVR), and random forest (RF), have been successfully utilized for feature extraction and elemental quantification. Concurrently, advanced DL architectures, notably convolutional neural networks (CNNs) and recurrent neural networks (RNNs), demonstrate superior performance in predicting heavy metal concentrations, ash content, and mineral phases owing to their powerful capability to automatically learn hierarchical features from high-dimensional spectral data. Furthermore, integrating XRF spectrometry with complementary techniques such as near-infrared spectroscopy (NIRS) and laser-induced breakdown spectroscopy (LIBS) has considerably enhanced the comprehensive characterization of soils, ores, and industrial materials by providing multidimensional elemental and molecular information. Despite these promising advances, critical challenges persist, including the requirement for extensive and representative datasets, computational demands, limited model interpretability, challenges associated with real-world applicability, and calibration robustness. Future research directions include exploring novel ML and DL algorithms, optimizing transfer-learning strategies to mitigate dataset limitations, and developing robust approaches for uncertainty quantification. This review systematically synthesizes state-of-the-art ML and DL applications for XRF spectrometry from studies published over the past five years, highlighting their transformative potential for elemental analyses across multiple domains.

Graphical abstract: Advancements in machine learning, deep learning, and data fusion techniques for XRF spectrometry in heavy metal detection: a critical review

Article information

Article type
Critical Review
Submitted
19 Nov 2025
Accepted
06 Feb 2026
First published
09 Mar 2026

J. Anal. At. Spectrom., 2026, Advance Article

Advancements in machine learning, deep learning, and data fusion techniques for XRF spectrometry in heavy metal detection: a critical review

A. A. AL-Tameemi, F. Li, Z. Xiao and G. Raza, J. Anal. At. Spectrom., 2026, Advance Article , DOI: 10.1039/D5JA00458F

To request permission to reproduce material from this article, please go to the Copyright Clearance Center request page.

If you are an author contributing to an RSC publication, you do not need to request permission provided correct acknowledgement is given.

If you are the author of this article, you do not need to request permission to reproduce figures and diagrams provided correct acknowledgement is given. If you want to reproduce the whole article in a third-party publication (excluding your thesis/dissertation for which permission is not required) please go to the Copyright Clearance Center request page.

Read more about how to correctly acknowledge RSC content.

Social activity

Spotlight

Advertisements