Skip to content

A machine learning project leveraging LSTM, GRU, and Bidirectional LSTM + GRU models for accurate prediction of solar flare peak current per second (c/s) and energy magnitude, with comprehensive hyperparameter tuning for optimal performance

Notifications You must be signed in to change notification settings

akash-r34/Solar-flare-prediction-using-machine-learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Solar flare prediction using machine learning

Team members

Abstract

This project focuses on predicting solar flare peak current per second (c/s) and energy magnitude using a variety of recurrent neural network architectures, including LSTM, GRU, and Bidirectional LSTM + GRU. Through systematic hyperparameter tuning, we aim to optimize model performance, offering an advanced tool for forecasting solar activities with enhanced accuracy and reliability. The project is implemented in a modular and transparent manner, making it a valuable resource for researchers and practitioners in the field of space weather prediction. The codebase is available on GitHub, providing an accessible platform for further exploration and collaboration.

├── Dataset
│   └── hessi.solar.flare.2002to2016.csv
├── Code
│   └── solar_flare_prediction.ipynb
├── Results
│   └── (various model outputs and visualizations)
├── README.md
└── requirements.txt

Getting Started

To run the code, make sure you have the required dependencies installed. You can install them using the following command:

pip install -r requirements.txt

Open the Jupyter Notebook solar_flare_prediction.ipynb to explore the code and run the machine learning models.

Data Collection

The dataset is collected by utilizing SHARP summary parameters as input data for the prediction model. SHARPs are derived from vector magnetograms captured by the HMI on the SDO. Summary parameters are computed based on the HMI Active Region (AR) patches (HARPs), which are rectangular boxes encompassing the ARs and moving with solar rotation.

Solar Flare Event Identification

Solar flare events are identified using the NOAA Geostationary Operational Environmental Satellite (GOES) flare list. The GOES flare list includes flare events with class, start, end, and peak intensity times for each event. The peak time of the flare events is designated as the "event time" when constructing the data samples for the prediction model.

Dataset Information

The dataset contains information about solar flares, including peak count rates, total counts, energy levels, and various flags indicating flare characteristics.

Machine Learning Models

The project includes the following machine learning models:

  • LSTM model for predicting 'peak.c/s'
  • GRU model for predicting 'energy.keV'
  • Combined LSTM and GRU model for predicting flare categories
  • Hyperparameter tuning and custom-weighted loss function
  • Bidirectional LSTM and GRU model for predicting flare categories

Results


Various visualizations and evaluation metrics are provided in the Jupyter Notebook to assess the performance of the models.

Contributing

Feel free to contribute to this project by opening issues or submitting pull requests. Your feedback and contributions are highly appreciated!

About

A machine learning project leveraging LSTM, GRU, and Bidirectional LSTM + GRU models for accurate prediction of solar flare peak current per second (c/s) and energy magnitude, with comprehensive hyperparameter tuning for optimal performance

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published