Researchers have developed a machine learning model to predict never-before-determined material properties from energy loss near-edge structure (ELNES) and X-ray near-edge structure (XANES) spectra.