Export citation

Export citation

Choose format for download:

Download Citation
  • Access by Xinjiang University

AGN x-ray reflection spectroscopy with ml_mytorus: Neural posterior estimation with training on observation-driven parameter grids

Ingrid Vanessa Daza-Perilla1,2,3,*, Panayiotis Tzanavaris1,2,3,4, V. Madurga-Favieres1,2,3,5, M. Yukita2,6, A. Ptak2,6, and T. Yaqoob1,2,3

  • *Contact author: vanessa.daza@unc.edu.ar

Phys. Rev. D 114, 083003 – Published 1 October, 2026

DOI: https://doi.org/10.1103/xmdh-6ld8

Abstract

X-ray spectroscopy of active galactic nuclei (AGN) reveals key information about the circumnuclear matter geometry. Many AGN are known to show a narrow Fe Kα line at 6.4 keV and associated Compton-scattered continua in their x-ray spectra, due to primary continuum scattering in cold, neutral material far from the central supermassive black hole. We present a novel approach that uses simulation-based inference (SBI) with neural posterior estimation to train a machine learning (ML) model based on Nuclear Spectroscopic Telescope Array (NuSTAR) spectral fitting results from the literature, employing the physically motivated mytorus-decoupled model, which distinguishes line of sight from global equivalent neutral hydrogen column density (NH,Z vs NH,S). To overcome the limitations of traditional frequentist fitting—such as lack of automation, reproducibility, and computational cost—we implement normalizing flows and autoregressive networks to learn flexible posterior distributions from simulated spectra. From 34 NuSTAR spectral fitting results reported in the literature, we generated 34,000 synthetic spectra for both a uniform and a Gaussian parameter distribution and show that the latter is more strongly observationally driven. We train our neural network to determine four key MYTORUS parameters, NH,Z, NH,S, power-law spectral index Γ, and relative normalization AS. Mutual information analysis identifies optimal spectral regions and justifies the inclusion of redshift, exposure time, and Galactic absorption. The observation-based grid significantly outperforms uniform sampling, achieving predictive accuracy for individual parameters greater than 90% (NH,S and AS), 89% (NH,Z), and 82% for Γ within ±1σ. For all four parameters simultaneously, predictive accuracy remains high at ∼70%. We make ml_mytorus, the trained model, publicly available with a web interface that enables fast and reproducible parameter inference from NuSTAR spectra. Its application to NGC 4388 illustrates the promise of the approach. ml_mytorus offers a reproducible and accessible alternative for exploring MYTORUS-type models and performs well in a statistical sense, highlighting the potential of SBI methods for future studies of distant x-ray reflection in x-ray spectra of AGN and potentially other compact accreting x-ray sources such as Galactic x-ray binaries.

Physics Subject Headings (PhySH)

Article Text

References (61)

  1. G. Ghisellini, F. Haardt, and G. Matt, Mon. Not. R. Astron. Soc. 267, 743 (1994).
  2. G. Matt, A. C. Fabian, and R. R. Ross, Mon. Not. R. Astron. Soc. 278, 1111 (1996).
  3. J. W. Sulentic, P. Marziani, T. Zwitter, M. Calvani, and D. Dultzin-Hacyan, Astrophys. J. 501, 54 (1998).
  4. J. Gelbord and K. A. Weaver, in X-Ray Astronomy: Stellar Endpoints, AGN, and the Diffuse X-ray Background, American Institute of Physics Conference Series, Vol. 599, edited by N. E. White, G. Malaguti, and G. G. C. Palumbo (AIP, Melville, NY, 2001), pp. 622–625.
  5. K. A. Weaver, J. Gelbord, and T. Yaqoob, Astrophys. J. 550, 261 (2001).
  6. T. Yaqoob, I. M. George, K. Nandra, T. J. Turner, P. J. Serlemitsos, and R. F. Mushotzky, Astrophys. J. 546, 759 (2001).
  7. T. Yaqoob and U. Padmanabhan, Astrophys. J. 604, 63 (2004).
  8. K. Nandra, Mon. Not. R. Astron. Soc. 368, L62 (2006).
  9. X. W. Shu, T. Yaqoob, and J. X. Wang, Astrophys. J. Suppl. Ser. 187, 581 (2010).
  10. X. W. Shu, T. Yaqoob, and J. X. Wang, Astrophys. J. 738, 147 (2011).
  11. A. Zoghbi, J. M. Miller, and E. Cackett, Astrophys. J. 884, 26 (2019).
  12. A. Marinucci, G. Miniutti, S. Bianchi, G. Matt, and G. Risaliti, Mon. Not. R. Astron. Soc. 436, 2500 (2013).
  13. M. Guainazzi, G. Risaliti, H. Awaki, P. Arevalo, F. E. Bauer et al., Mon. Not. R. Astron. Soc. 460, 1954 (2016).
  14. A. Marinucci, S. Bianchi, G. Fabbiano, G. Matt, G. Risaliti, E. Nardini, and J. Wang, Mon. Not. R. Astron. Soc. 470, 4039 (2017).
  15. G. Fabbiano, M. Elvis, A. Paggi, M. Karovska, W. P. Maksym, J. Raymond, G. Risaliti, and J. Wang, Astrophys. J. Lett. 842, L4 (2017).
  16. XRISM Collaboration et al., Astrophys. J. Lett. 973, L25 (2024).
  17. D. Barret et al., Exp. Astron. 55, 373 (2023).
  18. R. Antonucci, Annu. Rev. Astron. Astrophys. 31, 473 (1993).
  19. C. M. Urry and P. Padovani, Publ. Astron. Soc. Pac. 107, 803 (1995).
  20. S. Ikeda, H. Awaki, and Y. Terashima, Astrophys. J. 692, 608 (2009).
  21. M. Brightman and K. Nandra, Mon. Not. R. Astron. Soc. 413, 1206 (2011).
  22. Y. Liu and X. Li, Astrophys. J. 787, 52 (2014).
  23. M. Baloković, M. Brightman, F. A. Harrison, A. Comastri, C. Ricci, J. Buchner, P. Gandhi, D. Farrah, and D. Stern, Astrophys. J. 854, 42 (2018).
  24. J. Buchner, M. Brightman, K. Nandra, R. Nikutta, and F. E. Bauer, Astron. Astrophys. 629, A16 (2019).
  25. B. Vander Meulen, P. Camps, M. Tsujimoto, and K. Wada, Astron. Astrophys. 688, L33 (2024).
  26. S. Furui, Y. Fukazawa, H. Odaka, T. Kawaguchi, M. Ohno, and K. Hayashi, Astrophys. J. 818, 164 (2016).
  27. K. D. Murphy and T. Yaqoob, Mon. Not. R. Astron. Soc. 397, 1549 (2009).
  28. T. Yaqoob, Mon. Not. R. Astron. Soc. 423, 3360 (2012).
  29. P. Tzanavaris, T. Yaqoob, S. LaMassa, M. Yukita, and A. Ptak, Astrophys. J. 885, 62 (2019).
  30. K. A. Arnaud, in Astronomical Data Analysis Software and Systems V, Astronomical Society of the Pacific Conference Series, Vol. 101, edited by G. H. Jacoby and J. Barnes (Astronomical Society of the Pacific, San Francisco, CA, USA, 1996), p. 17.
  31. J. Buchner, A. Georgakakis, K. Nandra, L. Hsu, C. Rangel, M. Brightman, A. Merloni, M. Salvato, J. Donley, and D. Kocevski, Astron. Astrophys. 564, A125 (2014).
  32. V. Stodden, F. Leisch, and R. D. Peng, Implementing Reproducible Research (CRC Press, Boca Raton, FL, 2014).
  33. D. Barret and S. Dupourqué, Astron. Astrophys. 686, A133 (2024).
  34. V. Acquaviva, Machine Learning for Physics and Astronomy (Princeton University Press, Princeton, NJ, 2023).
  35. S. A. Webb and S. R. Goode, An astronomers guide to machine learning, in Machine Learning in Astronomy: Possibilities and Pitfalls, IAU Symposium No. 368, edited by J. McIver, A. Mahabal, and C. Fluke (Cambridge University Press, Cambridge, UK, 2025), pp. 40–49.
  36. R. Silver, N. Torres-Albà, X. Zhao, S. Marchesi, A. Pizzetti, I. Cox, and M. Ajello, Astron. Astrophys. 675, A65 (2023).
  37. R. Zhang, X. Guo, Q. Gu, G. Fang, J. Xu, H.-C. Feng, Y. Chen, R. Li, N. Ding, and H. Wang, Astrophys. J. 987, 46 (2025).
  38. S. Dupourqué and D. Barret, Astron. Astrophys. 699, A179 (2025).
  39. Y. Ichinohe, S. Yamada, N. Miyazaki, and S. Saito, Mon. Not. R. Astron. Soc. 475, 4739 (2018).
  40. M. L. Parker, M. Lieu, and G. A. Matzeu, Mon. Not. R. Astron. Soc. 514, 4061 (2022).
  41. E. Tregidga, J. F. Steiner, C. Garraffo, C. Rhea, and M. Aubin, Mon. Not. R. Astron. Soc. 529, 1654 (2024).
  42. K. C. Gendreau, Z. Arzoumanian, and T. Okajima, in Space Telescopes and Instrumentation 2012: Ultraviolet to Gamma Ray, Society of Photo-Optical Instrumentation Engineers (SPIE) Conference Series, Vol. 8443, edited by T. Takahashi, S. S. Murray, and J.-W. A. den Herder (SPIE, Bellingham, WA, USA, 2012), p. 844313.
  43. D. Barret and S. Dupourqué, Astron. Astrophys. 708, A280 (2026).
  44. T. Dauser, J. García, D. J. Walton, W. Eikmann, T. Kallman, J. McClintock, and J. Wilms, Astron. Astrophys. 590, A76 (2016).
  45. M. Germain, K. Gregor, I. Murray, and H. Larochelle, arXiv:1502.03509.
  46. T. Yaqoob and K. D. Murphy, Mon. Not. R. Astron. Soc. 412, 277 (2011).
  47. S. M. LaMassa, T. Yaqoob, A. F. Ptak, J. Jia, T. M. Heckman, P. Gandhi, and C. M. Urry, Astrophys. J. 787, 61 (2014).
  48. T. Yaqoob, T. J. Turner, M. M. Tatum, M. Trevor, and A. Scholtes, Mon. Not. R. Astron. Soc. 462, 4038 (2016).
  49. http://mytorus.com/manual.

  50. F. A. Harrison et al., Astrophys. J. 770, 103 (2013).
  51. N. Torres-Albà, S. Marchesi, X. Zhao, I. Cox, A. Pizzetti, D. Sengupta, M. Ajello, and R. Silver, Astron. Astrophys. 678, A154 (2023).
  52. A. Pizzetti, N. Torres-Albà, S. Marchesi, J. Buchner, I. Cox, X. Zhao, S. Neal, D. Sengupta, R. Silver, and M. Ajello, Astrophys. J. 979, 170 (2025).
  53. A. Jana, C. Ricci, S. Naik, A. Tanimoto, N. Kumari, H.-K. Chang, P. Nandi, A. Chatterjee, and S. Safi-Harb, Mon. Not. R. Astron. Soc. 512, 5942 (2022).
  54. https://heasarc.gsfc.nasa.gov.
  55. In the box-plot diagrams, the right and left vertical line segments of each box represent the 25th and 75th percentiles, while the shorter line segments inside a box represent the medians. Notches indicate the 95% confidence interval (CI) symmetrically about the median. For skewed distributions or small-sized samples, the CI might be wider than the 25th or 75th percentile, therefore the plot will display a somewhat “inside out” shape. The lines extending beyond the boxes are called whiskers. The leftmost whisker extends down to the minimum value where the 25th percentile ends, and the rightmost whisker extends up to the maximum value where the 75th percentile begins. The whisker lengths might not be symmetrical since they must end at an observed data point.

  56. https://www.nustar.caltech.edu/page/response-files 27 Feb. 2025, version 3.
  57. F. F. Rosales-Ortega, S. Arribas, and L. Colina, Astron. Astrophys. 539, A73 (2012).
  58. C. E. Shannon, Bell Syst. Tech. J. 27, 379 (1948).
  59. I. V. Daza-Perilla, P. Tzanavaris, V. Madurga-Favieres, M. Yukita, A. Ptak, and T. Yaqoob, ml_mytorus: Neural posterior estimation software and trained model, GitHub, 2026, https://github.com/vanedaza/viva-streamlit.
  60. I. V. Daza-Perilla, P. Tzanavaris, V. Madurga-Favieres, M. Yukita, A. Ptak, and T. Yaqoob, ml_mytorus web interface, 2026, https://web-ml-mytorus.streamlit.app/.
  61. M. Gloeckler, M. Deistler, C. Weilbach, F. Wood, and J. H. Macke, arXiv:2404.09636.

Outline

Information

Sign In to Your Journals Account

Filter

Filter

Article Lookup

Enter a citation