Work

Data and Software for Large Solar Flare Prediction Using Multimodal Fusion Models with High-energy-density Parameters and Nonpotentiality-parameter Maps

Year: 2026
Type: dataset
Abstract: Overview This deposit provides the datasets, trained models, and associated codes used in the study entitled "Large Solar Flare Prediction Using Multimodal Fusion Models with High-Energy-Density Parameters and Nonpotentiality-Parameter Maps." It includes the materials for the experiments reported in the article. The uploaded materials are organized into four main archives: Datasets: Contains four types of datasets used in this study: High-Energy-Density (HED) parameters, Nonpotentiality-Parameter (NP) maps, SHARP parameters, and SHARP magnetograms. Models: Contains model implementation codes, trained model weights, and corresponding performance evaluation results for the main experiments. The models include parameter-based Transformer models, image-based MViT models, and multimodal fusion models. Interpretability Analysis: Contains the codes and related materials for interpreting model predictions using SHAP and Grad-CAM++ methods. Loss Function Additional Experiments: Contains the experimental codes for comparing Focal Loss (FL) and Class-Balanced Loss (CBL) with the Weighted Cross-Entropy Loss (WCE) adopted in the study. Dataset Description The four types of datasets contain flaring active regions (ARs) observed between 2010 June 30 and 2024 June 30. They comprise the same 473 ARs, including 280 C-class, 172 M-class, and 21 X-class flaring ARs. Each dataset is divided into 10 independent cross-validation (CV) datasets, indexed from 0 to 9. The corresponding CV datasets across the four data types are aligned and share identical AR distributions. The four types of datasets are described as follows: HED Parameters: Contains six parameters calculated from HED regions, including Efree, Ψ, Jz, hc, α, and ∇Bh. SHARP Parameters: Contains 10 magnetic parameters derived from SDO/HMI vector magnetograms: TOTUSJZ, TOTUSJH, TOTPOT, ABSNJZH, SAVNCPP, USFLUX, AREA_ACR, MEANPOT, R_VALUE, and SHRGT45. NP Maps: Contains four types of two-dimensional maps representing the spatial distributions of nonpotentiality parameters: photospheric free energy density (ρfree) maps, magnetic shear angle (Sht) maps, vertical current density (Jz) maps, and current helicity (Hc) maps. SHARP Magnetograms: Contains vector magnetograms in the Cylindrical Equal-Area (CEA) projection provided by SDO/HMI, consisting of three magnetic field components: Br, Bt, and Bp. Model Description This study develops a parameter-based Transformer model and an image-based Multiscale Vision Transformer (MViT) model for large solar flare prediction. Based on these two architectures, two multimodal fusion approaches are further investigated: Parameter-based Transformer: Uses HED parameters and SHARP parameters as inputs. Image-based MViT: Uses NP maps and SHARP magnetograms as inputs. Cross-Attention Fusion: Integrates HED parameters and NP maps through a cross-attention-based fusion architecture. Probability-Weighted Fusion: Combines the prediction probabilities of independently trained Transformer and MViT models through probability-weighted ensemble learning. The model archive includes experiments using HED parameters, SHARP parameters, four types of NP maps, and SHARP magnetograms, together with the corresponding multimodal fusion models. The implementation codes, trained model weights, and performance evaluation results for the main experiments are provided. Experiments on Loss Functions To further investigate the effects of different loss functions under class-imbalanced conditions, supplementary experiments were conducted using Focal Loss (FL) and Class-Balanced Loss (CBL), in comparison with the Weighted Cross-Entropy Loss (WCE) adopted in the main study. These experiments cover four model types: Cross-attention fusion models using HED parameters and NP maps. Models using HED parameters. Models using NP maps. Probability-weighted fusion models combining HED-parameter-based and NP-map-based models. For each model type, FL and CBL are employed as alternative loss functions, and their prediction performance is compared with that of the corresponding WCE-trained models. The associated experimental codes are included as supplementary materials for reproducing the loss function comparison experiments discussed in the revised manuscript. Interpretability Analysis Description The interpretability analysis uses SHAP and Grad-CAM++ methods to investigate the contributions of input features and spatial regions to model predictions. The interpretability analysis archive contains the corresponding Python codes and related materials: SHAP: Analyzes the contributions of HED parameters to Transformer model predictions. Grad-CAM++: Visualizes the spatial regions in NP maps that contribute to MViT model predictions. These materials support the interpretability analysis presented in the associated article. File Formats and Software Requirements The uploaded materials are provided in the following formats: CSV files (.csv): HED parameters, SHARP parameters, model performance metrics, loss values, and data file paths associated with the CV datasets. NumPy array files (.npy): NP maps and SHARP magnetograms. Python source files (.py): Codes for data loading and preprocessing, model implementation, training, evaluation, interpretability analysis. PyTorch checkpoint files (.pth): Trained model weights. The codes are implemented using Python 3.8 or later and PyTorch 2.3.1 or later. NumPy and Pandas are required for loading and processing the NPY and CSV files, respectively. PyTorch is used for model implementation, training, and inference. Download and Extraction Instructions Due to the large size of the datasets and model files, the compressed Datasets and Models archives have been split into multiple volumes before uploading. To recover the complete archives, all volumes belonging to the same archive should first be downloaded and placed in the same directory, followed by extraction using a compatible archive utility. The README files included with the uploaded materials provide further details about the contents, file organization, and directory structures of the individual archives. These materials are intended to support the reproduction, verification, and further investigation of the solar flare prediction methods presented in the associated study.
Language: English
Open Access status: green
OpenAlex ID: W7204174956
Cites:
Cited by:
Related to: 10