All Projects

Machine Learning · Renewable Energy · Forecasting

SolarGenix

Predicting solar energy generation from weather conditions and solar panel specifications.

  • Python
  • Machine Learning
  • Open-Meteo
  • Scikit-learn
  • Data Analysis

Project overview

SolarGenix is a machine-learning application designed to estimate daily solar energy generation using weather conditions and solar panel characteristics. It combines weather forecast data with a trained regression model to provide an estimate that can help users understand the potential output of a solar installation.

The problem

Solar generation varies with sunlight availability, sunshine duration, and environmental conditions. Estimating expected output from these changing inputs is useful for planning and understanding the potential performance of a solar installation.

What I built

  • Weather data integration: Uses Open-Meteo weather data to obtain relevant solar and environmental inputs.
  • Feature engineering: Processes solar radiation, sunshine duration, and ambient temperature alongside panel count and efficiency.
  • Regression modelling: Explores Random Forest and Gradient Boosting models to estimate daily energy generation.
  • Prediction workflow: Connects input features to the trained model to generate an estimated daily output in kWh.
  • Model evaluation: Uses regression metrics such as MAE, RMSE, and R² to assess prediction errors and compare candidate models.

Technical approach

The application combines weather-data retrieval, preprocessing, feature engineering, model inference, and presentation of the predicted output. Keeping these stages separate makes the workflow easier to test and maintain.

What I learned

  • How to transform raw weather data into model-ready features.
  • How to compare regression models using more than one evaluation metric.
  • Why realistic training data and validation on independent observations matter for trustworthy predictions.
  • How external API data can be integrated into a machine-learning application.

Future improvements

Validate predictions against real solar-generation measurements, quantify uncertainty, handle missing weather data, and evaluate performance across different seasons and locations.