Adaptive Image Sampling Using Deep Learning and Its Application on X-Ray Fluorescence Image Reconstruction

Qiqin Dai, Henry Chopp, Emeline Pouyet, Oliver Cossairt, Marc Walton, Aggelos K. KatsaggelosIEEE Trans. Multimedia 2018

Abstract

High-resolution imaging techniques like X-Ray Fluorescence (XRF) are often limited by the slow nature of point-by-point raster scanning. This paper presents a deep learning framework designed to accelerate this process through adaptive sampling. By utilizing a specialized Convolutional Neural Network (CNN) to generate sampling masks from easily obtainable RGB photographs, the proposed method can skip up to 95% of the scan while maintaining high reconstruction quality. Experimental results on the ImageNet dataset and real-world XRF data from 17th-century paintings demonstrate significant improvements in both processing speed and image fidelity compared to traditional model-based approaches.

Introduction

Techniques such as X-Ray Fluorescence (XRF), Lidar, and scanning probe microscopy provide invaluable data for material analysis and structural mapping. However, these methods typically rely on raster scanning, where a sensor moves across a surface point-by-point. Depending on the required dwell time for each pixel, scanning a single artwork can exceed 18 hours. While compressed sensing offers a path toward reconstruction from sparse samples, existing adaptive sampling methods are often computationally intensive or rely on rigid mathematical priors. This research introduces a data-driven approach that learns to identify informative pixels based on local image structure, significantly reducing acquisition time.

Methodology

The proposed framework consists of two primary components: a Mask Generation Network (NetM) and an Inpainting Network (NetE).

Mask Generation (NetM)

NetM is a fully convolutional network that processes an input image (e.g., an RGB photo) to produce a binary sampling mask. A key innovation is the Mean Adjustment Layer, which allows users to specify a target sampling rate (e.g., 10%), ensuring the method remains practical for hardware with fixed time budgets. To overcome the non-differentiable nature of binary masks during training, the authors utilize the expected value of the Bernoulli distribution to approximate gradients.

Comparison between (a) random sampling and (b) the proposed adaptive sampling mask, which focuses on structural edges.

Inpainting and XRF Fusion (NetE)

The reconstruction is handled by an encoder-decoder network (NetE) that fills in missing pixels. For XRF applications, the authors developed a fusion-based algorithm. Since XRF signals often correlate with visible pigment changes in RGB photos, the RGB image serves as a structural guide. The system models the XRF signal as a combination of visible components (correlated with RGB) and non-visible components (representing hidden layers), using coupled dictionary learning and Total Variation (TV) regularization to ensure high-fidelity reconstruction even for features not visible in the RGB guide.

Experimental Results

The framework was evaluated using the ImageNet dataset and a high-resolution XRF scan of Jan Davidsz. de Heem’s 1645 painting, Flowers and Insects.

Performance and Speed

NetM demonstrates a massive leap in efficiency. While traditional adaptive sampling algorithms like KbAS can take over 32,000 seconds to generate a mask, NetM completes the task in just 0.02 seconds. On ImageNet, the proposed method consistently outperformed random sampling and other state-of-the-art techniques (AIrS, Mascar) by approximately 2 dB in PSNR across various sampling rates.

XRF Reconstruction

In the specific context of XRF imaging, the method achieved significantly lower Root Mean Squared Error (RMSE) and superior Spectral Angle Mapper (SAM) scores. The ability to leverage "cheap" RGB data to guide "expensive" XRF acquisition proves highly effective for capturing complex elemental distributions.

The target application: (a) an XRF elemental map reconstructed from sparse samples compared to (b) the original RGB painting.

Conclusion

This research provides a robust deep learning solution for the bottleneck of raster-scanning imaging. By adaptively sampling only the most informative regions, the framework enables 5x to 20x speedups in scan times without sacrificing image quality. Future work will focus on direct hardware integration and improving robustness against registration errors between the guide image and the scanner's coordinate system.

Summary updated

BibTeX
@article{dai2018adaptive,
  author = {Qiqin Dai and Henry Chopp and Emeline Pouyet and Oliver Cossairt and Marc Walton and Aggelos K. Katsaggelos},
  title = {{Adaptive Image Sampling Using Deep Learning and Its Application on X-Ray Fluorescence Image Reconstruction}},
  journal = {IEEE Trans. Multimedia},
  year = {2018},
  doi = {10.1109/tmm.2019.2958760},
}
Figure