Bypassing the static input size of neural networks in flare forecasting by using spatial pyramid pooling

Context. The spatial extension of active regions of the Sun (hence their associated images) can strongly vary from one case to the next. This inhomogeneity is a problem when using convolutional neural networks (CNNs) to study solar flares, as they generally use input images of a fixed size. Different processes can be performed to retrieve a database with homogeneous-sized images, such as coarse resizing, cropping, or padding of raw images. Unfortunately, key features can be lost or distorted beyond recognition during these processes. This can lead to a deterioration of the ability of CNNs to classify flares of different soft X-ray classes, especially those from active regions with structures of great complexity. Aims. This study aims to implement and test a CNN architecture that retains features of characteristic scales as fine as the original resolution of the input images. Methods. We compared the performance of two CNN architectures for solar flare prediction. The first one is a traditional CNN with convolution layers, batch normalization layers, max pooling layers, and resized input, whereas the other implements a spatial pyramid pooling (SPP) layer instead of a max pooling layer before the flattening layer and without any input resizing. Both were trained on the Spaceweather HMI Active Region Patch (SHARP) line of sight magnetogram database, which was generated from data collected by the Helioseismic and Magnetic Imager on board the Solar Dynamics Observatory from May 2010 to August 2021 only using images within 45°of the central meridian of the Sun. We also studied two cases of binary classification. In the first case, our model had to distinguish active regions producing flares in less than 24 h of class ≥C1.0 from active regions producing flares in more than 24 h or never. In the second case, it had to distinguish active regions producing flares in less than 24 h of class ≥M1.0 from active regions producing flares in more than 24 h or never, or flares in less than 24 h but of class < M1.0. The impact of the use of a score-oriented loss (SOL) function optimizing the true skill statistics (TSS) metric instead of a binary cross-entropy (BCE) loss function is also studied and discussed in this work. Results. Our models implementing an SPP layer and trained using a BCE loss function outperform the traditional CNN models, with an average increase of 0.1 in TSS and 0.17 in precision metrics when predicting flares ≥C1.0 within 24 h. However, their performances degrade sharply along the other models studied in this paper when trained to classify images of ≥M1.0 flares. Conclusions. We prove the higher efficiency of a CNN model that includes an SPP layer in predicting solar flares. The degradation of prediction performance of this model when the images of active regions producing a C class flare are classified as negative may be attributed to its success in identifying features that appear in active regions only a few hours before the flare, independent of their soft X-ray class. The development of explainable artificial intelligence tools adapted to this architecture in future projects will be interesting for the study of solar flare-triggering mechanisms.

Authors

Institutions

Publication Details

Journal
Astronomy and Astrophysics
Published
2025-02-07
DOI
https://doi.org/10.1051/0004-6361/202449671
Citations
1
Primary Topic
Oil, Gas, and Environmental Issues
Type
article
Field-Weighted Citation Impact
0.36

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Bypassing the static input size of neural networks in flare forecasting by using spatial pyramid pooling

Ekaterina Dineva, Laurent Dolla, Jacques Gustin, Alexandros Koukras et al.
1 citations
Astronomy and Astrophysics
Oil, Gas, and Environmental Issues
0.36
article

Bypassing the static input size of neural networks in flare forecasting by using spatial pyramid pooling

Ekaterina Dineva, Laurent Dolla, Jacques Gustin, Alexandros Koukras, Giovanni Lapenta, Jorge Amaya, P. Vong
article en
1 citations

Abstract

Context. The spatial extension of active regions of the Sun (hence their associated images) can strongly vary from one case to the next. This inhomogeneity is a problem when using convolutional neural networks (CNNs) to study solar flares, as they generally use input images of a fixed size. Different processes can be performed to retrieve a database with homogeneous-sized images, such as coarse resizing, cropping, or padding of raw images. Unfortunately, key features can be lost or distorted beyond recognition during these processes. This can lead to a deterioration of the ability of CNNs to classify flares of different soft X-ray classes, especially those from active regions with structures of great complexity. Aims. This study aims to implement and test a CNN architecture that retains features of characteristic scales as fine as the original resolution of the input images. Methods. We compared the performance of two CNN architectures for solar flare prediction. The first one is a traditional CNN with convolution layers, batch normalization layers, max pooling layers, and resized input, whereas the other implements a spatial pyramid pooling (SPP) layer instead of a max pooling layer before the flattening layer and without any input resizing. Both were trained on the Spaceweather HMI Active Region Patch (SHARP) line of sight magnetogram database, which was generated from data collected by the Helioseismic and Magnetic Imager on board the Solar Dynamics Observatory from May 2010 to August 2021 only using images within 45°of the central meridian of the Sun. We also studied two cases of binary classification. In the first case, our model had to distinguish active regions producing flares in less than 24 h of class ≥C1.0 from active regions producing flares in more than 24 h or never. In the second case, it had to distinguish active regions producing flares in less than 24 h of class ≥M1.0 from active regions producing flares in more than 24 h or never, or flares in less than 24 h but of class < M1.0. The impact of the use of a score-oriented loss (SOL) function optimizing the true skill statistics (TSS) metric instead of a binary cross-entropy (BCE) loss function is also studied and discussed in this work. Results. Our models implementing an SPP layer and trained using a BCE loss function outperform the traditional CNN models, with an average increase of 0.1 in TSS and 0.17 in precision metrics when predicting flares ≥C1.0 within 24 h. However, their performances degrade sharply along the other models studied in this paper when trained to classify images of ≥M1.0 flares. Conclusions. We prove the higher efficiency of a CNN model that includes an SPP layer in predicting solar flares. The degradation of prediction performance of this model when the images of active regions producing a C class flare are classified as negative may be attributed to its success in identifying features that appear in active regions only a few hours before the flare, independent of their soft X-ray class. The development of explainable artificial intelligence tools adapted to this architecture in future projects will be interesting for the study of solar flare-triggering mechanisms.

Astronomy and AstrophysicsVol. 695
Royal Observatory of Belgium (BE), Institute of Mathematical Statistics (US), Columbia University (US)
National Aeronautics and Space Administration, European Space Agency, Department for Environment, Food and Rural Affairs, UK Government, Belgian Federal Science Policy Office
Openalex Percentile: Top 46%
Oil, Gas, and Environmental Issues
0.36
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.