Abstract
We propose a method to accelerate small-angle scattering experiments by exploiting spatial correlation in two-dimensional data. We applied kernel density estimation to the average of a hundred short scans and evaluated noise reduction effects of kernel density estimation (smoothing). Although there is no advantage of using smoothing for isotropic data due to the powerful noise reduction effect of radial averaging, smoothing with a statistically and physically appropriate kernel can shorten measurement time by less than half to obtain sector averages with comparable statistical quality to that of sector averages without smoothing. This benefit will encourage researchers not to use full radial average on anisotropic data sacrificing anisotropy for statistical quality. We also confirmed that statistically reasonable estimation of measurement time is feasible on site by evaluating how intensity variances improve with accumulating counts. The noise reduction effect of smoothing will bring benefits to a wide range of applications from efficient use of beamtime at laboratories and large experimental facilities to stroboscopic measurements suffering low statistical quality.
Introduction
Small-Angle Scattering (SAS) is a cornerstone of materials science, enabling the study of microstructures at the nanoscale. However, the technique is often limited by the slow pace of data acquisition. Whether using synchrotron X-ray sources (SAXS) or neutron sources (SANS), beamtime is a precious and expensive resource. Traditionally, noise reduction relies on long exposure times (temporal correlation) or radial averaging. While radial averaging is highly effective for isotropic samples, it is unsuitable for anisotropic samples where directional information must be preserved. In such cases, researchers must rely on sector averages, which suffer from significantly lower statistical quality, leading to a trade-off between data fidelity and measurement time.
Methodology: Exploiting Spatial Correlation
To address the limitations of traditional noise reduction, we propose using Kernel Density Estimation (KDE) to exploit the spatial correlation inherent in 2D detector data. Most SAS data is continuous; the count in one pixel is statistically related to its neighbors. By treating the scattering pattern as a probability density distribution and applying a Gaussian kernel (e.g., 9×9), we can "borrow" information from adjacent pixels to cancel out Poisson noise.
The study utilized SANS data from the SANS-I instrument at the Paul Scherrer Institute. Samples included Polystyrene and Silica at various concentrations and sizes. We evaluated the method using Euclidean distance and Kullback–Leibler (KL) divergence against a "ground truth" derived from 100 accumulated scans.
Key Results and Insights
The application of KDE yielded a significant performance boost:
- 2x Speedup for Anisotropic Analysis: For sector averages, smoothed data from only 20 scans achieved statistical quality comparable to 100 non-smoothed scans.
- Efficient Stopping Criteria: We developed a variance-based "improvement rate" metric. This allows researchers to monitor data quality in real-time and stop measurements once gains drop below a threshold (e.g., 1%), preventing oversampling.
- Computational Efficiency: The smoothing algorithm is extremely fast, taking approximately 0.01 seconds on a standard laptop, making it suitable for live experimental monitoring.
Discussion and Future Work
While KDE offers a clear advantage for anisotropic samples, there is an inherent trade-off between noise reduction and spatial resolution. Using a kernel bandwidth comparable to the direct beam size helps mitigate the risk of smearing sharp physical features.
Future developments will focus on:
- Uncertainty Propagation: Developing robust methods to calculate error bars after the smoothing process, as traditional Poisson statistics are altered by KDE.
- Adaptive Kernels: Implementing kernels that adjust their size or shape based on local Q-resolution or specific sample features.
Conclusion
By shifting the focus from purely temporal accumulation to exploiting spatial correlations, we can significantly accelerate SAS experiments. This approach is particularly transformative for the study of anisotropic materials, allowing for high-quality data collection in less than half the time previously required.
Summary updated