AI-Powered Space Weather Prediction & Impact Assessment System Forecasting solar flares and geomagnetic storms to protect India's critical infrastructure
π Live Demo β’ π Documentation β’ π§ Installation β’ π€ Contributing
AetherGuard-INDIA is a machine learning-powered platform that predicts space weather events β solar flares and geomagnetic storms β and assesses their potential impact on satellites, power grids, communication networks, and other infrastructure. The system combines historical space weather data with a trained prediction model to deliver early warnings through a simple, accessible web interface.
Give India's infrastructure operators, researchers, and the public an early-warning system for space weather disruptions, so that satellite operators, grid operators, and aviation/communication services can prepare before an event hits.
- Machine learning model trained on historical space weather data (
space_weather_model.joblib) - Forecasts the likelihood and severity of solar flare / geomagnetic storm activity
- Continuously retrainable pipeline via
train_model.py
- Translates raw predictions into practical impact categories (
impact.py) β e.g. effects on satellites, power grids, GPS, and radio communications - Helps non-technical users understand what a prediction means rather than just a raw probability
- Lightweight Flask web app (
app.py) for running predictions and viewing results - Simple interface designed for quick checks without needing to run scripts manually
- Prediction history logged per session/user (
history_Space.csv,history_default_username.csv,prediction_history.csv) - Enables trend review and comparison of past forecasts against outcomes
- Basic user accounts (
users.txt) for tracking who ran which predictions - Subscriber list (
subscribers.txt) to support alert/notification distribution
Space Weather Data β Feature Preparation β Trained ML Model (predict.py) β
Risk/Impact Scoring (impact.py) β Web Dashboard (app.py) β History Log
- π§ Prediction Engine:
predict.pyβ loadsspace_weather_model.jobliband generates forecasts - π Impact Engine:
impact.pyβ converts predictions into infrastructure impact assessments - ποΈ Training Pipeline:
train_model.pyβ trains/retrains the space weather model - π Web Interface:
app.pyβ Flask-based dashboard for interacting with the system - πΎ Data Store: CSV-based history logs for predictions and user activity
- Python 3.8+
- pip package manager
- Git for version control
git clone https://github.com/hiralM001/Aetherlite-project.git
cd Aetherlite-projectpip install -r requirements.txtpython app.pyOpen your browser and navigate to:
- Main Dashboard: https://aetherlite-project-ehaceuxwfwyfhbdd7txgqh.streamlit.app/
- Open the dashboard in your browser after starting
app.py - Run a prediction using the current/latest space weather inputs
- Review results, including the predicted event likelihood and impact assessment
- Check history to compare against past predictions
# Run a prediction directly
python predict.py
# Assess impact of a given prediction
python impact.py
# Retrain the model on updated data
python train_model.pyAetherlite-project/
βββ π .devcontainer/ # Dev container configuration
βββ π app.py # Flask web application (main entry point)
βββ ποΈ app_backup.py # Backup copy of the web application
βββ π§ predict.py # Prediction script using the trained model
βββ π impact.py # Converts predictions into impact assessments
βββ ποΈ train_model.py # Model training / retraining script
βββ π€ space_weather_model.joblib # Trained ML model artifact
βββ π history_Space.csv # Space weather prediction history
βββ π history_default_username.csv# Per-user prediction history
βββ π prediction_history.csv # General prediction log
βββ π€ users.txt # Registered users
βββ π§ subscribers.txt # Alert subscriber list
βββ π requirements.txt # Python dependencies
βββ π README.md # This file
- Anticipate solar activity that may affect satellite electronics or communications
- Early warning for geomagnetically induced currents that can stress transformers
- Study space weather trends using logged historical prediction data
- Experiment with retraining the model on new data
- Check current space weather risk through a simple web dashboard
# Clone repository
git clone https://github.com/hiralM001/Aetherlite-project.git
cd Aetherlite-project
# Create virtual environment
python -m venv venv
source venv/bin/activate # Linux/Mac
# venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txt
# Run the app
python app.pypython train_model.pyThis regenerates space_weather_model.joblib using the latest training data.
Contributions are welcome! Here's how to get involved:
- π§ Model Improvements: Improve prediction accuracy or add new features
- π Impact Logic: Refine how predictions map to real-world impact categories
- π¨ UI/UX: Improve the Flask dashboard
- π Documentation: Help others understand and use the system
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Submit a Pull Request with a detailed description
No license has been specified for this project yet. Consider adding one (e.g. MIT) so others know how they can use and contribute to it.
- π Bug Reports: GitHub Issues
- π¬ Discussions: GitHub Discussions
π Forecasting the Skies to Protect What's on the Ground