Answers are grounded in this paper and cite their sources.
Grazing-incidence wide-angle X-ray scattering (GIWAXS) is a powerful tool for thin-film and surface characterization, allowing for structural analysis with high temporal and spatial resolution. High-brilliance X-ray sources enable non-invasive characterization of novel materials, even during in situ and operando experiments. The volume of scattering data collected in such experiments creates new challenges, as conventional data analysis is relatively slow due to high computational costs and the need for human input. Here, we present two analysis packages (mlgidDETECT and pygidFIT) for fast and reliable detection and fitting of Bragg peaks and Debye–Scherrer rings. The mlgidDETECT package uses machine-learning-based object detection to locate relevant features and generate bounding boxes. The detected features are classified and grouped into clusters and then processed according to their type by pygidFIT: rings are fitted with 1D Gaussians, while peaks are fitted with 2D Gaussians. The resulting feature list with peak parameters can be further used to resolve crystal structures or to track their evolution during temporal or spatial scans. The performance of the packages is demonstrated using experimental GIWAXS data from metal-halide perovskite and molecular thin films. This automated approach is fast, reliable and provides improved structural insights compared with conventional analysis based on averaged radial profiles. The software packages are expected to improve the quality, consistency and efficiency of future GIWAXS studies, which have become routine in many research settings. The developed packages are accessible at https://github.com/mlgid-project.
No takes yet. Share an insight, caveat, or question.
Kneschaurek et al. (2026) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: