Solar Flare Forecast: A Comparative Analysis of Machine Learning Algorithms for Solar Flare Class Prediction

Julia Bringewald
5/6/2025
astro-ph.SRastro-ph.IMcs.LG

No official code found. Best implementation: juliabringewald/Solar-Flare-Forecast (4 stars, MIT, last commit 2025-12-29).

Abstract

Solar flares are among the most powerful and dynamic events in the solar system, resulting from the sudden release of magnetic energy stored in the Sun's atmosphere. These energetic bursts of electromagnetic radiation can release up to 10^32 erg of energy, impacting space weather and posing risks to technological infrastructure and therefore require accurate forecasting of solar flare occurrences and intensities. This study evaluates the predictive performance of three machine learning algorithms: Random Forest, k-Nearest Neighbors (KNN), and Extreme Gradient Boosting (XGBoost) for classifying solar flares into 4 categories (B, C, M, X). Using the dataset of 13 SHARP parameters, the effectiveness of the models was evaluated in binary and multiclass classification tasks. The analysis utilized 8 principal components (PC), capturing 95% of data variance, and 100 PCs, capturing 97.5% of variance. Our approach uniquely combines binary and multiclass classification with different levels of dimensionality reduction, an innovative methodology not previously explored in the context of solar flare prediction. Employing a 10-fold stratified cross-validation and grid search for hyperparameter tuning ensured robust model evaluation. Our findings indicate that Random Forest and XGBoost consistently demonstrate strong performance across all metrics, benefiting significantly from increased dimensionality. The insights of this study enhance future research by optimizing dimensionality reduction techniques and informing model selection for astrophysical tasks. By integrating this newly acquired knowledge into future research, more accurate space weather forecasting systems can be developed, along with a deeper understanding of solar physics.

View on arXivView PDF

Code Implementations(1)

MIT

A Comparative Analysis of Machine Learning Algorithms for Predicting Solar Flare Classes

41Jupyter NotebookApr 14, 20259 months agoMIT

Similar Papers

Cite this paper

@article{bringewald2025solar,
  title  = {Solar Flare Forecast: A Comparative Analysis of Machine Learning Algorithms for Solar Flare Class Prediction},
  author = {Julia Bringewald},
  year   = {2025},
  eprint = {2505.03385},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.03385v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.03385.svg)](https://codeofpaper.com/paper/2505.03385)

Discussion