Manual
Overview
LightshowAI is an AI-enabled web-based user interface (UI) that allows researchers to interactively refine the material structure from the measured XAS spectra. The basic usage provides a spectral matching utility, which compares measured XANES spectra against ML-predicted spectra from candidate structures. This capability helps users to identify the atomic structures associated with the measured spectra, although the solution may not be unique because XANES is a local structure probe.
Web UI Workflow & Features
Uploading Experimental Data
The Upload Experimental Spectrum panel is where the analysis workflow begins using either normalized or raw spectrum data. You can upload the spectral data file in supported formats such as .csv, .dat, .mat, or .xdi, and optionally add a material name. After uploading, use the radio buttons to select whether the data is normalized or raw. If your data is normalized, choose the X-axis (Energy) and Y-axis (Absorption) columns. For raw data, choose whether the measurement type is fluorescent or transmission, and define your Energy, i0, and it / iff columns. The interface can automatically detect the columns from the uploaded data. However, it is recommended to double check that the columns were assigned correctly. Lastly, hit the "Apply & Plot" button to show the measured spectrum in the spectral visualizer.
Load Structure
The Load Structure panel allows you to input candidate structures through two methods. The first method is a structure database search. Currently, we only support the Materials Project interface using Materials Project Search, where you can enter a Materials Project ID (such as mp-390). The second method you can use is the Batch Structure Upload feature which allows you to drag and drop single or multiple structure files in .cif, .vasp, .poscar, or .json formats. After the structures are loaded, the system will automatically generate the ML-predicted spectra for each one of them and compute corresponding matching score metrics against the experimental spectrum.
Crystal Structure Viewer
The Crystal Structure Viewer panel allows you to interactively explore the uploaded atomic model in a 3d environment. Clicking on specific atoms within the viewer will isolate and display site-specific predicted XANES spectra directly on the plot.
XAS Machine Learning Model
This panel lets you select the element type of the absorber and theory used to train model. Currently, we provide OmniXAS graph neural network models of 3d transition metal K-edge XANES trained on two levels of theory, FEFF (8 elements) and VASP (Ti and Cu only). For Ti VASP model, you are also provided with a toggle to turn the Shake-up Correction on or off.
Shake-up Corrections & Validation
Shake-up effects in XAS arise from the simultaneous excitation of valence electrons during a core-level transition. While these many-body effects manifest as satellite peaks in X-ray photoemission spectroscopy, they represent physics beyond the standard quasiparticle approximation typically used in simulations.
Currently, the shake-up implementation in LightshowAI is validated exclusively for VASP-based simulations of the Ti K-edge in materials featuring a TiO6 octahedral motif, including:
- Perovskites: SrTiO3, CaTiO3, BaTiO3
- TiO2 Polymorphs: Rutile, Anatase, Brookite
- Mixed Oxides: NiTiO3, FeTiO3
Users are advised to exercise caution when applying these corrections to chemical species or simulation frameworks outside of the Ti-VASP model. Comprehensive theoretical details and further benchmarks will be provided in an upcoming manuscript.
XANES Spectral Analysis
The XANES Spectral Analysis panel serves as the central visualization and manipulation workspace for comparing experimental and predicted spectra. This panel hosts the spectral visualization and the alignment utilities. Using the energy shift slider located directly beneath the plot, you can manually shift the predicted spectrum within a range of -50 eV to +50 eV to manually align it with the experimental data, while the spectra are initially aligned with a default algorithm.
Data Plot
The Data Plot is the interactive Plotly graph located within the spectrum analysis area. It overlays your uploaded experimental data, with the predicted spectra, shown as colored lines. The plot allows you to zoom, pan, and hover over data points to view exact energy and absorption values. To restore the original view, double click anywhere inside the plot.
Structure Matching Scores
The Structure Matching Scores section displays the similarity score rankings of all loaded candidate materials against the experimental data. This table automatically calculates and displays multiple metrics, which you can sort by Pearson, Spearman, Kendall, Cosine Derivative (Cos ∂), Cosine, and Wasserstein. Checkboxes next to each entry allow you to overlay multiple predicted spectra onto the main data plot for direct visual comparison.
Downloading Data
The Downloading Data utility allows you to export your analysis and processed datasets. Clicking the "Download Selected POSCARs and Data" button compiles your selected results into a ZIP file. This package contains the POSCAR structure files for the selected materials, a .csv file of the predicted spectra (including site-specific and mean data), and a separate .csv file containing your processed experimental spectrum.
About
LightshowAI is a web user interface that performs interactive X-ray absorption near edge structure (XANES) spectral analysis. One key utility is to predict XANES spectra from atomic structures using graph neural network models. Currently, the models we provide are OmniXAS models of 3d transition metal (Ti-Cu) K-edge at two levels of theory: FEFF model for all the 8 elements and VASP models for Ti and Cu only. We recommend users of LightshowAI to cite the following references: Benchmark [Phys. Rev. Materials 8, 013801 (2024)], Lightshow [Journal of Open Source Software 8 (87), 5182 (2023)], and OmniXAS [Phys. Rev. Materials 9, 043803 (2025)].
LightshowAI utilizes the Crystal Toolkit developed by the Materials Project (https://github.com/materialsproject/crystaltoolkit) to power its interactive structure visualization capabilities.
Please contact Deyu Lu (dlu@bnl.gov) if you have questions.
Funding Acknowledgment
This material is based upon work supported by the U.S. Department of Energy, Office of Science, Office of the Advanced Scientific Computing Research, for the Genesis Mission American Science Cloud project, under Contract No. DE-SC0012704, and Office Basic Energy Sciences, under Award Number FWP PS-030. This research used the Theory and Computation resources of the Center for Functional Nanomaterials (CFN), which is a U.S. Department of Energy Office of Science User Facility, at Brookhaven National Laboratory under Contract No. DE-SC0012704. The Software resulted from work developed under a U.S. Government Contract No. DE-SC0012704 and are subject to the following terms: the U.S. Government is granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable worldwide license in this computer software and data to reproduce, prepare derivative works, and perform publicly and display publicly.
BSD 3-Clause License
THE SOFTWARE IS SUPPLIED "AS IS" WITHOUT WARRANTY OF ANY KIND. THE UNITED STATES, THE UNITED STATES DEPARTMENT OF ENERGY, AND THEIR EMPLOYEES: (1) DISCLAIM ANY WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NON-INFRINGEMENT, (2) DO NOT ASSUME ANY LEGAL LIABILITY OR RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, OR USEFULNESS OF THE SOFTWARE, (3) DO NOT REPRESENT THAT USE OF THE SOFTWARE WOULD NOT INFRINGE PRIVATELY OWNED RIGHTS, (4) DO NOT WARRANT THAT THE SOFTWARE WILL FUNCTION UNINTERRUPTED, THAT IT IS ERROR-FREE OR THAT ANY ERRORS WILL BE CORRECTED. IN NO EVENT SHALL THE UNITED STATES, THE UNITED STATES DEPARTMENT OF ENERGY, OR THEIR EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, SPECIAL OR PUNITIVE DAMAGES OF ANY KIND OR NATURE RESULTING FROM EXERCISE OF THIS LICENSE AGREEMENT OR THE USE OF THE SOFTWARE.