Repository logo
  • English
  • Italiano
Log In
Have you forgotten your password?
  1. Home
  2. PRODOTTI RICERCA INAF
  3. 1 CONTRIBUTI IN RIVISTE (Journal articles)
  4. 1.01 Articoli in rivista
  5. Interpreting automatic AGN classifiers with saliency maps
 

Interpreting automatic AGN classifiers with saliency maps

Journal
ASTRONOMY & ASTROPHYSICS  
Date Issued
2021
Author(s)
Peruzzi, T.
•
PASQUATO, MARIO  
•
Ciroi, S.
•
Berton, M.
•
MARZIANI, Paola  
•
NARDINI, EMANUELE  
DOI
10.1051/0004-6361/202038911
Abstract
Classification of the optical spectra of active galactic nuclei (AGN) into different types is currently based on features such as line widths and intensity ratios. Although well founded on AGN physics, this approach involves some degree of human oversight and cannot scale to large datasets. Machine learning (ML) tackles this classification problem in a fast and reproducible way, but is often (and not without reason) perceived as a black box. However, ML interpretability and are active research areas in computer science that are providing us with tools to mitigate this issue. We apply ML interpretability tools to a classifier trained to predict AGN types from spectra. Our goal is to demonstrate the use of such tools in this context, obtaining for the first time insight into an otherwise black box AGN classifier. In particular, we want to understand which parts of each spectrum most affect the predictions of our classifier, checking that the results make sense in the light of our theoretical expectations. We trained a support-vector machine on 3346 high-quality, low-redshift AGN spectra from SDSS DR15. We considered either two-class classification (type 1 versus 2) or multiclass (type 1 versus 2 versus intermediate-type). The spectra were previously and independently hand-labeled and divided into types 1 and 2, and intermediate-type (i.e., sources in which the Balmer line profile consists of a sharp narrow component superimposed on a broad component). We performed a train-validation-test split, tuning hyperparameters and independently measuring performance via a variety of metrics. On a selection of test-set spectra, we computed the gradient of the predicted class probability at a given spectrum. Regions of the spectrum were then color-coded based on the direction and the amount by which they influence the predicted class, effectively building a saliency map. We also visualized the high-dimensional space of AGN spectra using t-distributed stochastic neighbor embedding (t-SNE), showing where the spectra for which we computed a saliency map are located. Our best classifier reaches an F-score of 0.942 on our test set (with 0.948 precision and 0.936 recall). We computed saliency maps on all misclassified spectra in the test set and on a sample of randomly selected spectra. Regions that affect the predicted AGN type often coincide with physically relevant features, such as spectral lines. t-SNE visualization shows good separability of type 1 and type 2 spectra. Intermediate-type spectra either lie in-between, as expected, or appear mixed with type 2 spectra. Misclassified spectra are typically found among the latter. Some clustering structure is apparent among type 2 and intermediate-type spectra, though this may be an artifact. Saliency maps show why a given AGN type was predicted by our classifier resulting in a physical interpretation in terms of regions of the spectrum that affected its decision, making it no longer a black box. These regions coincide with those used by human experts, for example relevant spectral lines, and are even used in a similar way; the classifier effectively measures the width of a line by weighing its center and its tails oppositely.

The code on which this work is based can be found at the following link https://gitlab.com/tobia.peruzzi/agn_spectra

Volume
652
Start page
A19
Uri
http://hdl.handle.net/20.500.12386/32241
Url
https://www.aanda.org/articles/aa/full_html/2021/08/aa38911-20/aa38911-20.html
Issn Identifier
0004-6361
Ads BibCode
2021A&A...652A..19P
Rights
open.access
File(s)
Loading...
Thumbnail Image
Name

Peruzzi.et.al.2021.aa38911-20.pdf

Description
Pdf editoriale
Size

2.3 MB

Format

Adobe PDF

Checksum (MD5)

8f05b3a438ddc54f37db591ab7da2a19

Explore By
  • Communities and Collection
  • Research Outputs
  • Researchers
  • Organizations
  • Projects
Information and guides for authors
  • https://openaccess-info.inaf.it: all about open access in INAF
  • How to enter a product: guides to OA@INAF
  • The INAF Policy on Open Access
  • Downloadable documents and templates

Built with DSpace-CRIS software - Extension maintained and optimized by 4Science

  • Privacy policy
  • End User Agreement
  • Send Feedback