Bayesian classification of astronomical spectra with class uncertainties
Organizations: Theoretical Astrophysics, Division of Astronomy and Space Physics, Department of Physics and Astronomy, Uppsala University, Box 524, 751 20 Uppsala, Sweden. · Observational Astrophysics, Division of Astronomy and Space Physics, Department of Physics and Astronomy, Uppsala University, Box 524, 751 20 Uppsala, Sweden · Division of High Energy Physics, Department of Physics and Astronomy, Uppsala University, Box 524, 751 20 Uppsala, Sweden · Dept. of Physics, TU Dortmund University, D-44221 Dortmund, Germany
Abstract
Context: We developed a probabilistic machine learning method with the aim of performing the O(10)-way classification of low- and high-resolution spectra of stellar and extragalactic targets for the upcoming 4MOST survey. In fulfilment of the survey requirements, this method should be able to express uncertainty in the input data as well as uncertainty introduced in its prediction. Aims: Four different methods are explored: (1) convolutional neural networks (CNNs), (2) the Dirichlet distribution, (3) Monte Carlo dropout (MCD), (4) Bayesian neural Networks (BNNs) + variational inference (VI). Training and validation was performed using labelled spectra from the SDSS database and a custom 4MOST mock dataset. All the methods were compared in terms of the same metrics: accuracy, area under the curve (AUC), expected calibration error (ECE), Shannon entropy, negative log-likelihood (NLL), Brier score, training time, and inference time. Methods: A CNN with simple architecture and about 20,000 parameters was trained to achieve classification accuracies of 91.5% on SDSS data and 92.8% on 4MOST mock data. The direct Dirichlet prediction and VI models tested provide uncertainties on class membership probabilities, but they confuse classes more often. The MCD on a CNN is found to be the most suitable; it boosts the point-estimate accuracies to 92.6% and 93.9%, while still providing fast training and sufficiently fast inference. Compared to a standard CNN, the method additionally provides well-calibrated uncertainties at marginal extra cost.
Figures & tables
| Results (SDSS dataset) | |||||||
| Model | Accuracy [ ] | AUC | ECE [ ] | NLL | Brier score | Training time [s] | Inference time [ms] |
| Baseline CNN | N/A | N/A | |||||
| Dirichlet | |||||||
| MCD100 ( ) | |||||||
| MCD1000 ( ) | |||||||
| VI ( , ) | |||||||
| Results (4MOST mock dataset) | |||||||
| Model | Accuracy [ ] | AUC | ECE [ ] | NLL | Brier score | Training time [s] | Inference time [ms] |
| Baseline CNN | N/A | N/A | |||||
| Dirichlet | |||||||
| MCD50 ( ) | |||||||
| MCD100 ( ) | |||||||
| MCD200 ( ) | |||||||
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.