Abstract
Atomic data determined by analysis of observed atomic spectra are essential for plasma diagnostics. For each low-ionisation open d- and f-subshell atomic species, around 103 fine structure energy levels can be determined through years of analysis of 104 observable spectral lines. We propose a partial automation of this task by casting the analysis procedure as a Markov decision process and solving it by graph reinforcement learning using reward functions partly learned on historical human decisions. In our evaluations on existing spectral line lists and theoretical calculations for Co II, Nd II and Nd III, hundreds of energy levels were identified and determined in hours, agreeing with published values in 95% of cases for Co II and 54–87% for Nd II and Nd III. As the current efficiency in atomic fine structure determination struggles to meet growing atomic data demands, our artificial intelligence approach sets the stage for closing this gap.
Similar content being viewed by others
Data availability
All data used to generate results in this paper are made available on Zenodo (https://doi.org/10.5281/zenodo.18452552) and at the GitHub repository.
Code availability
All code used to generate results in this paper is made available on Zenodo (https://doi.org/10.5281/zenodo.18452552) and at the GitHub repository.
References
Johansson, S. Term analysis of a complex spectrum. Phys. Scr. T65, 7–14 (1996).
Pickering, J. C., Raassen, A. J. J., Uylings, P. H. M. & Johansson, S. The spectrum and term analysis of Co II. Astrophysical J. Suppl. Ser. 117, 261 (1998).
Ding, M. et al. Spectrum and energy levels of the low-lying configurations of Nd III. Astron. Astrophys. 692, A33 (2024).
Blaise, J., Wyart, J. F., Djerad, M. T. & Ahmed, Z. B. Revised interpretation of the spectrum of singly-ionised neodymium (Nd II). Phys. Scr. 29, 119 (1984).
Kramida, A., Ralchenko, Y. & Reader, J. NIST Atomic Spectra Database (version 5.12). National Institute of Standards and Technology, Gaithersburg, MD (2024). [Accessed September 2025].
Kramida, A. Legacy of Charlotte Moore Sitterly in the internet age. Proc. Int. Astronomical Union 18, 12–40 (2022).
Müller, A. Fusion-related ionization and recombination data for tungsten ions in low to moderately high charge states. Atoms 3, 120–161 (2015).
Marsh, B. A. Resonance ionization laser ion sources for on-line isotope separators. Rev. Sci. Instrum. 85, 02B923 (2014).
Safronova, M. S. et al. Search for new physics with atoms and molecules. Rev. Mod. Phys. 90, 025008 (2018).
Hu, J. et al. Measuring the fine-structure constant on a white dwarf surface; a detailed analysis of Fe V absorption in G191-B2B. Monthly Not. R. Astronomical Soc. 500, 1466–1475 (2021).
Atkins, J. & Baranov, P. V. Nailing fingerprints in the stars. Nature 503, 437 (2013).
Heiter, U. et al. Atomic data for the Gaia-ESO Survey. Astron. Astrophys. 645, A106 (2021).
Cowan, J. J. et al. Origin of the heaviest elements: The rapid neutron-capture process. Rev. Mod. Phys. 93, 015002 (2021).
Cowan, R. D. The Theory of Atomic Structure and Spectra (University of California Press, Berkeley, CA, 1981).
Gaigalas, G., Kato, D., Rynkun, P., Radžiūtė, L. & Tanaka, M. Extended calculations of energy levels and transition rates of Nd II-IV ions for application to neutron star mergers. Astrophysical J. Suppl. Ser. 240, 29 (2019).
Kramida, A. Assessing uncertainties of theoretical atomic transition probabilities with Monte Carlo random trials. Atoms 2, 86–122 (2014).
Concepcion, F., Clear, C. P., Ding, M. & Pickering, J. C. The laboratory astrophysics programme at Imperial College London. Eur. Phys. J. D. 77, 104 (2023).
Reader, J. Atomic spectroscopy at NIST: 2001. In Proc. Harnessing Light: Optical Science and Metrology at NIST, USA (2001).
Tchang-Brillet, W.-Ü L. & Azarov, V. I. Recent laboratory studies of multiply charged ion spectra using high resolution VUV spectrographs. Phys. Scr. T100, 104–113 (2002).
Azarov, V. I. Formal approach to the solution of the complex-spectra identification problem. I. Theory. Phys. Scr. 44, 528 (1991).
Azarov, V. I. Formal approach to the solution of the complex-spectra identification problem. II. Implementation. Phys. Scr. 48, 656 (1993).
Engström, L. GFit, a computer program to determine peak positions and intensities in experimental spectra. Lund Reports in Atomic Physics; Vol. LRAP-232, Atomic Physics, Department of Physics, Lund University (1998). https://portal.research.lu.se/files/5687231/2297167.pdf. note[Accessed August 2025].
Nave, G., Griesmann, U., Brault, J. & Abrams, M. Xgremlin: Interferograms and spectra from Fourier transform spectrometers analysis. Astrophysics Source Code Library, record ascl:1551.004 (2015). https://www.ascl.net/1511.004. [Accessed August 2025].
Ding, M., Lim, S. Z. J., Yu, X., Clear, C. P. & Pickering, J. C. A neural network approach for line detection in complex atomic emission spectra measured by high-resolution Fourier transform spectroscopy. Mach. Learn.: Sci. Technol. 6, 035008 (2025).
Azarov, V. I., Kramida, A. & Vokhmenstev, M. Y. IDEN2 - a program for visual identification of spectral lines and energy levels in optical spectra of atoms and simple molecules. Computer Phys. Commun. 225, 149–153 (2018).
Kramida, A. The program LOPT for least-squares optimization of energy levels. Computer Phys. Commun. 182, 419–434 (2011).
Connes, J. et al. Spectroscopie de Fourier avec transformation d’un million de points. Nouv. Rev. d.’Opt. Appliquée 1, 3 (1970).
Peterson, K. L. & Parsons, M. L. Spectral classification using pattern-recognition techniques. I. Feasibility with hydrogen as a model system. Phys. Rev. A 17, 261 (1978).
Peterson, K. L., Anderson, D. L. & Parsons, M. L. Spectral classification using pattern-recognition techniques. II. Application to curium energy levels. Phys. Rev. A 17, 270 (1978).
Mnih, V. et al. Human-level control through deep reinforcement learning. Nature 518, 529–533 (2015).
Darvariu, V.-A., Hailes, S. & Musolesi, M. Graph reinforcement learning for combinatorial optimization: A survey and unifying perspective. Transactions on Machine Learning Research (2024). https://openreview.net/forum?id=HduK51xNtS.
Scarselli, F., Gori, M., Tsoi, A. C., Hagenbuchner, M. & Monfardini, G. The graph neural network model. IEEE Trans. Neural Netw. 20, 61–80 (2009).
Sutton, R. S. & Barto, A. G. Reinforcement Learning: An Introduction (MIT Press, 2018).
Sivia, D. S. & Skilling, J. Data analysis: a Bayesian tutorial (Oxford University Press, 2006), 2nd edn.
Ng, A. Y. & Russell, S. J. Algorithms for Inverse Reinforcement Learning. In Proc. International Conference on Machine Learning (2000).
Ryabchikova, T., Ryabtsev, A., Kochukhov, O. & Bagnulo, S. Rare-earth elements in the atmosphere of the magnetic chemically peculiar star HD 144897. Astron. Astrophys. 456, 329–338 (2006).
Kramida, A. A suite of atomic structure codes originally developed by R. D. Cowan adapted for Windows-based personal computers. National Institute of Standards and Technology (2021).[Accessed August 2025].
Sugar, J. & Corliss, C. Atomic energy levels of the iron-period elements: potassium through nickel (American Chemical Society, Washington, DC, 1985). PB-86-165446/XAB/.
Johansson, S. & Litzén, U. Possibilities of obtaining laser action from singly ionised iron group elements through charge transfer in hollow cathode lasers. J. Phys. B: At. Mol. Phys. 13, L253 (1980).
Sutton, R. S., McAllester, D., Singh, S. & Mansour, Y. Policy gradient methods for reinforcement learning with function approximation. In Proc. Conference on Neural Information Processing Systems (1999).
Hessel, M. et al. Rainbow: Combining Improvements in Deep Reinforcement Learning. In Proc. AAAI Conference on Artificial Intelligence (2018).
Wang, Z. Dueling network architectures for deep reinforcement learning. In Proc. International Conference on Machine Learning (2016).
van Hasselt, H., Guez, A. & Silver, D. Deep reinforcement learning with double Q-learning. In Proc. AAAI Conference on Artificial Intelligence (2016).
Sutton, R. S. Learning to predict by the methods of temporal differences. Mach. Learn. 3, 9–44 (1988).
Fortunato, M. Noisy networks for exploration. In Proc. International Conference on Learning Representations (2018).
Browne, C. et al. A survey of Monte Carlo tree search methods. IEEE Transactions on Computational Intelligence and AI in Games 4 (2012).
Kocsis, L. & Szepesvári, C. Bandit based monte-carlo planning. In Proc. European Conference on Machine Learning (2006).
Schaul, T., Quan, J., Antonoglou, I. & Silver, D. Prioritized experience replay. In Proc. International Conference on Learning Representations (2016).
Wang, H. et al. Scientific discovery in the age of artificial intelligence. Nature 620, 47–60 (2023).
Kingma, D. P. & Ba, J. Adam: a method for stochastic optimization. In Proc. International Conference on Learning Representations (2018).
Brody, S., Alon, U. & Yahav, E. How attentive are graph attention networks? In Proc. International Conference on Learning Representations (2022).
Clevert, D.-A., Unterthiner, T. & Hochreiter, S. Fast and accurate deep network learning by exponential linear units (ELUs). In Proc. International Conference on Learning Representations (2016).
Lillicrap, T. P. et al. Continuous control with deep reinforcement learning. In Proc. International Conference on Learning Representations (2016).
Paszke, A. et al. PyTorch: an imperative style, high-performance deep learning library. In Proc. Conference on Neural Information Processing Systems (2019).
Fey, M. & Lenssen, J. E. Fast graph representation learning with PyTorch Geometric. In Proc. International Conference on Learning Representations (2019).
Darvariu, V.-A., Hailes, S. & Musolesi, M. Tree search in DAG space with model-based reinforcement learning for causal discovery. In Proc. of the Royal Society A: Mathematical, Physical and Engineering Sciences 481, 2312: 20240450 (2025).
Acknowledgements
M.D. and J.C.P. acknowledge support from the Science and Technology Facilities Council (STFC) of the UK under grant numbers ST/N000939/1, ST/S000372/1, ST/W000989/1, and UKRI1188, and The Bequest of Prof. Edward Steers. V.-A.D. and N.H. acknowledge support from the Natural Environment Research Council (NERC) Twinning Capability for the Natural Environment (TWINE) Programme NE/Z503381/1, the Engineering and Physical Sciences Research Council (EPSRC) From Sensing to Collaboration Programme Grant EP/V000748/1, and the Innovate UK AutoInspect Grant 1004416. A.N.R is grateful to the late Dr J.-F. Wyart for help in Nd II calculations and to the support from research project FFUU-2025-0005 of the Institute of Spectroscopy of the Russian Academy of Sciences.
Author information
Authors and Affiliations
Contributions
M.D. – planning, method design, execution, Co II calculations, manuscript preparation. V.-A.D. – planning, method design, manuscript preparation. A.N.R. – Nd II-III calculations, and manuscript review. N.H. – resource management, manuscript review. J.C.P. – resource management, progress and manuscript review.
Corresponding authors
Ethics declarations
Competing interests
The authors declare that they have no competing interests.
Peer review
Peer review information
Communications Physics thanks Andreas Flörs, Ricardo Ferreira da Silva, Alexander Kramida and the other, anonymous, reviewer(s) for their contribution to the peer review of this work.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Ding, M., Darvariu, VA., Ryabtsev, A.N. et al. Accelerating atomic fine structure determination with graph reinforcement learning. Commun Phys (2026). https://doi.org/10.1038/s42005-026-02582-y
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s42005-026-02582-y


