Reuse & Permissions

It is not necessary to obtain permission to reuse this article or its components as it is available under the terms of the Creative Commons Attribution 4.0 International license. This license permits unrestricted use, distribution, and reproduction in any medium, provided attribution to the author(s) and the published article's title, journal citation, and DOI are maintained. Please note that some figures may have been included with permission from other third parties. It is your responsibility to obtain the proper permission from the rights holder directly for these figures.

Export citation

Export citation

Choose format for download:

Download Citation
  • Open Access

Interpretable neural network predictions of high-intensity femtosecond x-ray free-electron laser pulses using sulfur K-shell emission spectra

Harald Agelii1, Alfredo Bellisario1, Carl Caleman1,2, Nicusor Timneanu1,*, and Sebastian Cardoch1,†

  • *Contact author: nicusor.timneanu@physics.uu.se
  • †Contact author: sebastian.cardoch@physics.uu.se

Phys. Rev. Research 7, 033066 – Published 17 July, 2025

DOI: https://doi.org/10.1103/dwc6-7hvn

Abstract

The emergence of high-intensity femtosecond duration x-rays from Free-Electron Lasers has enriched our understanding of the structure and dynamics of biological molecules at the atomic level. In serial femtosecond crystallography experiments, the magnitude of the interaction between photons and matter can vary significantly due to variations in the x-ray pulse's intensity, energy bandwidth and duration, as well as fluctuations in the synchronicity between the x-ray pulse and the sample. Accurate characterization of the conditions from each exposure is valuable for experiment and theory. In this theoretical work, we propose using x-ray emission spectra emanating from sulfur atoms, which are prevalent in biomolecules, to obtain individual hit information. We train a neural network based on synthetic K-shell emission spectra from a lysozyme crystal to predict x-ray fluence and pulse duration. The model achieves a training relative error of <12% when predicting both parameters concurrently. We use interpretation methods to identify the regions in the spectra that have the most predictive power. For fluence predictions, the model emphasizes K-L emission shifts to higher energies due to the presence of highly charged sulfur ions. For pulse duration predictions, the model places a greater focus on the emission signal from double core hole K-L emission. These results demonstrate that it is possible to predict x-ray exposure information on the sample based on physically interpretable features in sulfur's K-shell emission spectra.

View figure in article

Physics Subject Headings (PhySH)

Article Text

References (66)

  1. I. Schlichting and J. Miao, Emerging opportunities in structural biology with X-ray free-electron lasers, Curr. Opin. Struct. Biol. 22, 613 (2012).
  2. J. C. H. Spence, XFELs for structure and dynamics in biology, IUCrJ 4, 322 (2017).
  3. E. A. Seddon, J. A. Clarke, D. J. Dunning, C. Masciovecchio, C. J. Milne, F. Parmigiani, D. Rugg, J. C. H. Spence, N. R. Thompson, K. Ueda, S. M. Vinko, J. S. Wark, and W. Wurth, Short-wavelength free-electron laser sources and science: A review, Rep. Prog. Phys. 80, 115901 (2017).
  4. T. R. M. Barends, B. Stauch, V. Cherezov, and I. Schlichting, Serial femtosecond crystallography, Nat. Rev. Methods Primers 2, 59 (2022).
  5. I. Schlichting, Serial femtosecond crystallography: the first five years, IUCrJ 2, 246 (2015).
  6. H. N. Chapman, C. Caleman, and N. Timneanu, Diffraction before destruction, Phil. Trans. R. Soc. B 369, 20130313 (2014).
  7. C. Pellegrini, A. Marinelli, and S. Reiche, The physics of x-ray free-electron lasers, Rev. Mod. Phys. 88, 015006 (2016).
  8. J. Grünert, M. P. Carbonell, F. Dietrich, T. Falk, W. Freund, A. Koch, N. Kujala, J. Laksman, J. Liu, T. Maltezopoulos, K. Tiedtke, U. F. Jastrow, A. Sorokin, E. Syresin, A. Grebentsov, and O. Brovko, X-ray photon diagnostics at the European XFEL, J. Synchrotron Radiat. 26, 1422 (2019).
  9. T. Maltezopoulos, F. Dietrich, W. Freund, U. F. Jastrow, A. Koch, J. Laksman, J. Liu, M. Planas, A. A. Sorokin, K. Tiedtke, and J. Grünert, Operation of X-ray gas monitors at the European XFEL, J. Synchrotron Radiat. 26, 1045 (2019).
  10. J. Grünert, W. Freund, J. Liu, T. Maltezopoulos, B. v. Kuiken, A. Scherz, Z. Konopkova, U. Zastrau, and T. Tanaka, Absolute photon power measurements at the European XFEL instruments, J. Phys.: Conf. Ser. 2380, 012083 (2022).
  11. Y. Feng, J. M. Feldkamp, D. M. Fritz, M. Cammarata, R. Aymeric, C. Caronna, H. T. Lemke, D. Zhu, S. Lee, S. Boutet, G. Williams, K. Tono, M. Yabashi, and J. B. Hastings, A single-shot intensity-position monitor for hard x-ray FEL sources, in X-Ray Lasers and Coherent X-ray Sources: Development and Applications IX, Vol. 8140, edited by J. Dunn and A. Klisnick (SPIE/International Society for Optics and Photonics, San Diego, 2011), p. 81400Q.
  12. R. J. Bean, A. Aquila, L. Samoylova, and A. P. Mancuso, Design of the mirror optical systems for coherent diffractive imaging at the SPB/SFX instrument of the European XFEL, J. Opt. 18, 074011 (2016).
  13. K. Ayyer et al., 3D diffractive imaging of nanoparticle ensembles using an x-ray laser, Optica 8, 15 (2021).
  14. K. Toyota, Z. Jurek, S.-K. Son, H. Fukuzawa, K. Ueda, N. Berrah, B. Rudek, D. Rolles, A. Rudenko, and R. Santra, xcalib: a focal spot calibrator for intense X-ray free-electron laser pulses based on the charge state distributions of light atoms, J. Synchrotron Radiat. 26, 1017 (2019).
  15. A. Echelmeier, M. Sonker, and A. Ros, Microfluidic sample delivery for serial crystallography using XFELs, Anal. Bioanal. Chem. 411, 6535 (2019).
  16. T. Gorkhover et al., Nanoplasma dynamics of single large xenon clusters irradiated with superintense X-ray pulses from the linac coherent light source free-electron laser, Phys. Rev. Lett. 108, 245005 (2012).
  17. P. Franz et al., Terawatt-scale attosecond X-ray pulses from a cascaded superradiant free-electron laser, Nat. Photonics 18, 698 (2024).
  18. P. J. Ho et al., The role of transient resonances for ultra-fast imaging of single sucrose nanoclusters, Nat. Commun. 11, 167 (2020).
  19. I. Inoue, J. Yamada, K. J. Kapcia, M. Stransky, V. Tkachenko, Z. Jurek, T. Inoue, T. Osaka, Y. Inubushi, A. Ito, Y. Tanaka, S. Matsuyama, K. Yamauchi, M. Yabashi, and B. Ziaja, Femtosecond reduction of atomic scattering factors triggered by intense x-ray pulse, Phys. Rev. Lett. 131, 163201 (2023).
  20. C.-C. Kao, Challenges and opportunities for the next decade of XFELs, Nat. Rev. Phys. 2, 340 (2020).
  21. A. Sanchez-Gonzalez et al., Accurate prediction of X-ray pulse properties from a free-electron laser using machine learning, Nat. Commun. 8, 15461 (2017).
  22. A. Hanuka, C. Emma, T. Maxwell, A. S. Fisher, B. Jacobson, M. J. Hogan, and Z. Huang, Accurate and confident prediction of electron beam longitudinal properties using spectral virtual diagnostics, Sci. Rep. 11, 2945 (2021).
  23. K. Dingel, T. Otto, L. Marder, L. Funke, A. Held, S. Savio, A. Hans, G. Hartmann, D. Meier, J. Viefhaus, B. Sick, A. Ehresmann, M. Ilchen, and W. Helml, Artificial intelligence for online characterization of ultrashort X-ray free-electron laser pulses, Sci. Rep. 12, 17809 (2022).
  24. N. Breckwoldt, S.-K. Son, T. Mazza, A. Rörig, R. Boll, M. Meyer, A. C. LaForge, D. Mishra, N. Berrah, and R. Santra, Machine-learning calibration of intense x-ray free-electron-laser pulses using Bayesian optimization, Phys. Rev. Res. 5, 023114 (2023).
  25. D. E. Ferreira de Lima, A. Davtyan, J. Laksman, N. Gerasimova, T. Maltezopoulos, J. Liu, P. Schmidt, T. Michelat, T. Mazza, M. Meyer, J. Grünert, and L. Gelisio, Machine-learning-enhanced automatic spectral characterization of x-ray pulses from a free-electron laser, Commun. Phys. 7, 400 (2024).
  26. K. K. Alaa El-Din, O. G. Alexander, L. J. Frasinski, F. Mintert, Z. Guo, J. Duris, Z. Zhang, D. B. Cesar, P. Franz, T. Driver, P. Walter, J. P. Cryan, A. Marinelli, J. P. Marangos, and R. Mukherjee, Efficient prediction of attosecond two-colour pulses from an X-ray free-electron laser with machine learning, Sci. Rep. 14, 7267 (2024).
  27. T.-W. Ke, A. S. Brewster, S. X. Yu, D. Ushizima, C. Yang, and N. K. Sauter, A convolutional neural network-based screening tool for X-ray serial crystallography, J. Synchrotron Radiat. 25, 655 (2018).
  28. Y. Sun and S. Brockhauser, Machine learning applied for spectra classification in x-ray free electron laser sciences, Data Sci. J. 21, 15 (2022).
  29. J. Kern et al., Simultaneous femtosecond x-ray spectroscopy and diffraction of photosystem II at room temperature, Science 340, 491 (2013).
  30. T. Fransson, R. Chatterjee, F. D. Fuller, S. Gul, C. Weninger, D. Sokaras, T. Kroll, R. Alonso-Mori, U. Bergmann, J. Kern, V. K. Yachandra, and J. Yano, X-ray emission spectroscopy as an in situ diagnostic tool for X-ray crystallography of metalloproteins using an X-ray free-electron laser, Biochemistry 57, 4629 (2018).
  31. B. Abraham, S. Nowak, C. Weninger, R. Armenta, J. Defever, D. Day, G. Carini, K. Nakahara, A. Gallo, S. Nelson, D. Nordlund, T. Kroll, M. S. Hunter, T. van Driel, D. Zhu, T.-C. Weng, R. Alonso-Mori, and D. Sokaras, A high-throughput energy-dispersive tender X-ray spectrometer for shot-to-shot sulfur measurements, a special issue on X-ray free-electron lasers., J. Synchrotron Radiat. 26, 629 (2019).
  32. H.-J. Kunze, Diagnostic applications, in Introduction to Plasma Spectroscopy, edited by H.-J. Kunze (Springer, Berlin, Heidelberg, 2009), pp. 179–204.
  33. F. B. Rosmej, V. A. Astapenko, and V. S. Lisitsa, Applications to plasma spectroscopy, in Plasma Atomic Physics, edited by F. B. Rosmej, V. A. Astapenko, and V. S. Lisitsa (Springer International Publishing, Cham, 2021), pp. 459–592.
  34. W. Samek, G. Montavon, S. Lapuschkin, C. J. Anders, and K.-R. Müller, Explaining deep neural networks and beyond: A review of methods and applications, Proc. IEEE 109, 247 (2021).
  35. L. Young et al., Femtosecond electronic response of atoms to ultra-intense X-rays, Nature (London) 466, 56 (2010).
  36. C. Caleman, G. Huldt, F. R. N. C. Maia, C. Ortiz, F. G. Parak, J. Hajdu, D. van der Spoel, H. N. Chapman, and N. Timneanu, On the feasibility of nanocrystal imaging using intense and ultrashort X-ray pulses, ACS Nano 5, 139 (2011).
  37. K. Nass, Radiation damage in protein crystallography at X-ray free-electron lasers, Acta Crystallogr. D 75, 211 (2019).
  38. H. A. Scott and R. W. Mayle, GLF - A simulation code for X-ray lasers, Appl. Phys. B 58, 35 (1994).
  39. H. A. Scott, Cretin—a radiative transfer capability for laboratory plasmas, J. Quant. Spectrosc. Radiat. Transfer 71, 689 (2001).
  40. S. Hansen, H.-K. Chung, C. Fontes, Y. Ralchenko, H. Scott, and E. Stambulchik, Review of the 10th non-LTE code comparison workshop, High Energy Density Phys. 35, 100693 (2020).
  41. A. Barty et al., Self-terminating diffraction gates femtosecond X-ray nanocrystallography measurements, Nat. Photonics 6, 35 (2012).
  42. K. R. Beyerlein, H. O. Jönsson, R. Alonso-Mori, A. Aquila, S. Bajt, A. Barty, R. Bean, J. E. Koglin, M. Messerschmidt, D. Ragazzon, D. Sokaras, G. J. Williams, S. Hau-Riege, S. Boutet, H. N. Chapman, N. Tîmneanu, and C. Caleman, Ultrafast nonthermal heating of water initiated by an X-ray free-electron laser, Proc. Natl. Acad. Sci. USA 115, 5652 (2018).
  43. I. Dawod, S. Cardoch, T. André, E. De Santis, J. E, A. P. Mancuso, C. Caleman, and N. Timneanu, MolDStruct: Modeling the dynamics and structure of matter exposed to ultrafast x-ray lasers with hybrid collisional-radiative/molecular dynamics, J. Chem. Phys. 160, 184112 (2024).
  44. M. F. Gu, The flexible atomic code, Can. J. Phys. 86, 675 (2008).
  45. J. Kubát, Statistical equilibrium equations for trace elements in stellar atmospheres, EAS Publ. Ser. 43, 43 (2010).
  46. H. van Regemorter, Rate of collisional excitation in stellar atmospheres, Astrophys. J. 136, 906 (1962).
  47. J. C. Stewart and K. D. Pyatt, Jr., Lowering of ionization potentials in plasmas, Astrophys. J. 144, 1203 (1966).
  48. F. Chollet et al., Keras (2015), https://github.com/fchollet/keras.
  49. T. O'Malley, E. Bursztein, J. Long, F. Chollet, H. Jin, L. Invernizzi et al., keras-team/keras-tuner, https://github.com/keras-team/keras-tuner.
  50. M. Abadi et al., TensorFlow: Large-scale machine learning on heterogeneous systems, 2015, software available from tensorflow.org.
  51. A. Shrikumar, P. Greenside, and A. Kundaje, Learning important features through propagating activation differences, in Proceedings of the 34th International Conference on Machine Learning, Proceedings of Machine Learning Research, edited by D. Precup and Y. W. Teh (PMLR, 2017), Vol. 70, pp. 3145–3153.
  52. S. M. Lundberg and S.-I. Lee, A unified approach to interpreting model predictions, in Advances in Neural Information Processing Systems, edited by I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, Vol. 30 (Curran Associates, Inc., Red Hook, NY, 2017).
  53. R. Alonso Mori, E. Paris, G. Giuli, S. G. Eeckhout, M. Kavčič, M. Žitnik, K. Bučar, L. G. M. Pettersson, and P. Glatzel, Electronic structure of sulfur studied by X-ray absorption and emission spectroscopy, Anal. Chem. 81, 6516 (2009).
  54. R. Deslattes, E. Kessler, P. Indelicato, L. d. Billy, E. Lindroth, J. Anton, J. Coursey, D. Schwab, J. Chang, R. Sukumar, K. Olsen, and R. Dragoset, X-ray transition energies database, 2005, https://dx.doi.org/10.18434/T4859Z.
  55. S. Poštić and M. Subašić, Extensive evaluation of image classifiers' interpretations, Neural Comput. Appl. 36, 20787 (2024).
  56. R. Jenkins, R. Manne, R. Robin, and C. Senemaud, IUPAC—nomenclature system for x-ray spectroscopy, X-Ray Spectrom. 20, 149 (1991).
  57. P. D. Pérez, A. C. Carreras, and J. C. Trincavelli, Structure of the sulfur K x-ray emission spectrum: influence of the oxidation state, J. Phys. B: At. Mol. Opt. Phys. 45, 025004 (2012).
  58. A. A. Sorokin, S. V. Bobashev, T. Feigl, K. Tiedtke, H. Wabnitz, and M. Richter, Photoelectric effect at ultrahigh intensities, Phys. Rev. Lett. 99, 213002 (2007).
  59. H. Fukuzawa et al., Deep inner-shell multiphoton ionization by intense X-ray free-electron laser pulses, Phys. Rev. Lett. 110, 173005 (2013).
  60. A. Rörig, S.-K. Son, T. Mazza, P. Schmidt, T. M. Baumann, B. Erk, M. Ilchen, J. Laksman, V. Music, S. Pathak, D. E. Rivas, D. Rolles, S. Serkez, S. Usenko, R. Santra, M. Meyer, and R. Boll, Multiple-core-hole resonance spectroscopy with ultraintense X-ray pulses, Nat. Commun. 14, 5738 (2023).
  61. M. O. Krause and J. H. Oliver, Natural widths of atomic K and L levels, Kα X-ray lines and several KLL Auger lines, J. Phys. Chem. Ref. Data 8, 329 (1979).
  62. S.-K. Son, L. Young, and R. Santra, Impact of hollow-atom formation on coherent x-ray scattering at high intensity, Phys. Rev. A 83, 033402 (2011).
  63. S.-K. Son, R. Boll, and R. Santra, Breakdown of frustrated absorption in x-ray sequential multiphoton ionization, Phys. Rev. Res. 2, 023053 (2020).
  64. W. Błachucki, Y. Kayser, A. Wach, R. Fanselow, C. Milne, J. Sá, and J. Szlachetko, Resonant X-ray emission spectroscopy with a SASE beam, Appl. Sci. 11, 8775 (2021).
  65. N. Rohringer and R. Santra, X-ray nonlinear optical processes using a self-amplified spontaneous emission free-electron laser, Phys. Rev. A 76, 033416 (2007).
  66. H. Agelii, A. Bellisario, C. Caleman, N. Timneanu, and S. Cardoch, Data for “Predicting high-intensity femtosecond x-ray exposure on protein crystals with simulated x-ray emission spectra” [Data set], Zenodo (2025), doi:10.5281/zenodo.14973455.

Outline

Information

Sign In to Your Journals Account

Filter

Filter

Article Lookup

Enter a citation