Quantum Convolutional Neural Networks for the detection of Gamma-Ray Bursts in the AGILE space mission data

A. Rizzo,1 N. Parmiggiani,2, A. Bulgarelli 2, A. Macaluso3, V. Fioretti2, L. Castaldini2, A. Di Piano4,2, G. Panebianco5,2, C. Pittori6,7, M. Tavani8, C. Sartori9, C. Burigana10, V. Cardone6, F. Farsian11, M. Meneghetti2, G. Murante12, R. Scaramella6, F. Schillirò11, V. Testa6 and T. Trombetti10
Abstract

Quantum computing represents a cutting-edge frontier in artificial intelligence. It makes use of hybrid quantum-classical computation which tries to leverage quantum mechanic principles that allow us to use a different approach to deep learning classification problems. The work presented here falls within the context of the AGILE space mission, launched in 2007 by the Italian Space Agency. We implement different Quantum Convolutional Neural Networks (QCNN) that analyze data acquired by the instruments onboard AGILE to detect Gamma-Ray Bursts from sky maps or light curves. We use several frameworks such as TensorFlow-Quantum, Qiskit and PennyLane to simulate a quantum computer. We achieved an accuracy of 95.1% on sky maps with QCNNs, while the classical counterpart achieved 98.8% on the same data, using however hundreds of thousands more parameters.

1 University of Bologna, Department of Computer Science and Engineering (DISI), Viale del Risorgimento 2, 40136, Bologna, Italy; alessandro.rizzo14@studio.unibo.it

2 INAF/OAS Bologna, Via P. Gobetti 93/3, 40129 Bologna, Italy

3 German Research Center for Artificial Intelligence (DFKI), 66123 Saarbruecken, Germany.

4 Università degli Studi di Modena e Reggio Emilia, DIEF, Via Pietro Vivarelli 10, 41125, Modena, Italy

5 Department of Physics and Astronomy, University of Bologna, Via Gobetti 93/2, 40129, Bologna, Italy

6 INAF/OA Roma, Via Frascati 33, I-00078 Monte Porzio Catone, Roma, Italy.

7 ASI/SSDC Roma, Via del Plitecnico snc, I-00133, Roma, Italy.

8 INAF/IAPS Roma, Via del Fosso del Cavaliere 100, 00133, Roma, Italy.

9 University of Bologna, Department of Computer Science and Engineering (DISI), Via dell’Università 50, I-4572 Cesena, Italy

10 INAF/IRA Bologna, Via P. Gobetti, 101, 40129 Bologna, Italy

11 INAF/OA Catania, Via S. Sofia 78, 95123, Catania, Italy

12 INAF/OA Trieste, Via Giambattista Tiepolo 11, 34131, Trieste, Italy

1 Introduction

AGILE, (Tavani et al. 2008), is a space mission launched in 2007 by the Italian Space Agency. The AGILE payload consists of the Silicon Tracker (ST), the SuperAGILE X-ray detector, the Mini-Calorimeter (MCAL) and an AntiCoincidence System (ACS). The combination of those elements composes the Gamma-Ray Imaging Detector (GRID) (Bulgarelli et al. 2010). The latter is used to detect different transient astronomical events, such as Gamma-Ray Bursts (GRBs). The goal of this work is to test several Quantum Convolutional Neural Networks (QCNN), the quantum counterpart of a classical Convolutional Neural Network, in order to detect GRBs from sky maps and time series generated by the AGILE data called light curves. In this work, sky maps are considered as intensity maps which are count maps divided by the exposure and they are produced by the GRID instrument; the dataset of sky maps has been simulated using an AGILE software which creates both new GRB and background maps (Parmiggiani et al. 2021). Light curves show the number of photon counts detected during time and binned in time windows with the same size. We analyzed the light curves obtained with the ratemeters of the ACS (Parmiggiani et al. 2023) and compared the results with those obtained with classical deep learning.
We used quantum computing techniques to analyze these data. A quantum machine works on quantum bits, called qubits. Those can exist in multiple states simultaneously, known as superposition, and can be entangled. Those properties can bring an advantage over the classical approach. The fundamental building block of a quantum deep learning architecture is a parameterized quantum circuit, also known as ansatz. We implement a quantum data encoding layer to efficiently represent and input classical data into a quantum system.

Refer to caption
Figure 1.: Example of sky maps representing background noise (on the left) and a GRB signal (on the right).
Refer to caption
Figure 2.: Example of a rebinned light curve representing the signal GRB100719D. The x-axis represents the time window with bins of 2.048 seconds. On the y-axis, the count rate of photons detected by the ACS over time.

2 Methodology

The two datasets used to train the models are composed of two classes: GRB and background noise. Sky maps are split between 400 GRBs and 400 background maps and each image is of size 33×33333333\times 3333 × 33 pixels with a diameter of 50superscript5050^{\circ}50 start_POSTSUPERSCRIPT ∘ end_POSTSUPERSCRIPT and with each pixel being 1.5superscript1.51.5^{\circ}1.5 start_POSTSUPERSCRIPT ∘ end_POSTSUPERSCRIPT. We had to reduce the original size of sky maps, which was 100×100100100100\times 100100 × 100, in order to ease the training process of the quantum model. We also applied Gaussian smoothing to represent the point spread function of the AGILE satellite.
Regarding light curves, we used a dataset of univariate time series composed of 43 GRBs samples and 101 background samples. We applied rebinning and normalization to reduce the size of the data to use them as input to a QNN.
We used different types of encoding such as angle embedding, amplitude embedding and data re-uploading (Pérez-Salinas et al. 2020) to encode the classical data into quantum states. We tested all of them with sky maps, but only the latter with light curves. We trained solely the parameters that compose the quantum convolutional circuit. We tested different QCNNs using Tensorflow-Quantum (Broughton et al. 2021), Qiskit (Qiskit contributors 2023) and PennyLane (Bergholm et al. 2022). We tried both fully quantum and hybrid classical-quantum architectures.

3 Results

We tested each QCNN using a training set composed of either sky maps or light curves and different embedding techniques. In the top part of Table 1 the reader can see the best results obtained with sky maps. The best performing ansatz for the fully quantum network was taken from (Hur et al. 2022), implemented over a QCNN composed of 8 qubits. The results we achieved with light curves tend to be worse as it is shown in the bottom part of Table 1. This might be due to the limitation of the very small dataset of time series available for this work. As with sky maps, the fully quantum network which reached the best results is composed of 8 qubits.

Approach
Best train
accuracy
Best validation
accuracy
Training
time
Number of
epochs
Parameters
Sky Maps
Classical 0.977 0.988 4.2 s 12 1,072,000
Hybrid 0.976 0.981 8 min 15 s 53 288
Fully Quantum 0.945 0.951 25 min 50 s 101 51
Light Curves
Classical 0.990 0.955 10.8 s 91 2,680
Hybrid 0.988 0.828 1 min 58 s 59 580
Fully Quantum 0.862 0.810 8 min 39 s 200 16
Table 1.: Results obtained with sky maps (above) and light curves (below).

4 Conclusions & Future Works

We developed several QCNN architectures to detect GRBs from the sky maps and light curves obtained with the AGILE detectors. We evaluated the trained models on a separated test set obtaining promising results. We managed to achieve a good accuracy with QCNNs, very close to the classical models, using anyway fewer parameters. However, the training times are longer with the quantum approach; in fact we used a simulator instead of a real quantum machine, for this reason we plan to test the QCNNs on a real quantum computer to see if the training times can be sped up. Moreover, quantum deep learning is still in its early stages, and optimization and training algorithms are still not very well suited for a fully quantum approach. It is also possible to further explore the possibilities offered by quantum deep learning to analyze the data captured from other AGILE detectors, this is left for future work. Finally, the knowledge acquired in this project can be used in the next generation of high-energy facilities such as CTA (Acharya et al. 2018) or COSI (Tomsick et al. 2019).

Acknowledgments

The AGILE Mission is funded by the Italian Space Agency (ASI) with scientific and programmatic participation by the Italian National Institute for Astrophysics (INAF) and the Italian National Institute for Nuclear Physics (INFN). This investigation is supported by the ASI grant I/028/12.7-2022 and also partially funded with an INAF "Mini-Grant" 2022. We thank the ASI management for unfailing support during AGILE operations. We acknowledge the effort of ASI and industry personnel in operating the ASI ground station in Malindi (Kenya), the Telespazio Mission Control Center at Fucino, and the data processing done at the ASI/SSDC in Rome: the success of AGILE scientific operations depends on the effectiveness of the data flow from Kenya to SSDC and the data analysis and software management.

References

  • Acharya et al. (2018) Acharya, B. S., et al. 2018, Science with the Cherenkov Telescope Array (WORLD SCIENTIFIC). URL http://dx.doi.org/10.1142/10986
  • Bergholm et al. (2022) Bergholm, V., et al. 2022, Pennylane: Automatic differentiation of hybrid quantum-classical computations. 1811.04968
  • Broughton et al. (2021) Broughton, M., et al. 2021, Tensorflow quantum: A software framework for quantum machine learning. 2003.02989
  • Bulgarelli et al. (2010) Bulgarelli, A., et al. 2010, Nuclear Instruments and Methods in Physics Research Section A: Accelerators, Spectrometers, Detectors and Associated Equipment, 614, 213. URL https://www.sciencedirect.com/science/article/pii/S0168900209023882
  • Hur et al. (2022) Hur, T., Kim, L., & Park, D. K. 2022, Quantum Machine Intelligence, 4. URL http://dx.doi.org/10.1007/s42484-021-00061-x
  • Parmiggiani et al. (2021) Parmiggiani, N., et al. 2021, The Astrophysical Journal, 914, 67. URL https://doi.org/10.3847%2F1538-4357%2Fabfa15
  • Parmiggiani et al. (2023) — 2023, The Astrophysical Journal, 945, 106. URL https://dx.doi.org/10.3847/1538-4357/acba0a
  • Pérez-Salinas et al. (2020) Pérez-Salinas, A., Cervera-Lierta, A., Gil-Fuster, E., & Latorre, J. I. 2020, Quantum, 4, 226. URL http://dx.doi.org/10.22331/q-2020-02-06-226
  • Qiskit contributors (2023) Qiskit contributors 2023, Qiskit: An open-source framework for quantum computing
  • Tavani et al. (2008) Tavani, M., et al. 2008, Nuclear Instruments and Methods in Physics Research A, 588, 52
  • Tomsick et al. (2019) Tomsick, J. A., et al. 2019, The compton spectrometer and imager. 1908.04334