SkillAgentSearch skills...

Solar

Insight Data Science Project: Predicting Photovoltaic Solar Panel Generation Using Machine Learning

Install / Use

/learn @iborozan/Solar
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

GoSolar: accurately predicting photovoltaic installation power generation, cost and savings using machine learning and weather information

<p class="aligncenter"> <img src="./figures/solar-city-Japan.jpg" align="middle" width="100%" height="300"> </p>

Author Ivan Borozan

About

This is a short (3 week) data science project that I worked on as an Insight fellow. The project is about developing a machine learning regression model to accurately predict the energy output for residential solar panel installations in Ontario.

Data

The model is trained using real data obtained from two sources:

Solar and weather values for variables such as Global Horizontal Irradiance (GHI), Direct Horizontal Irradiance (DHI), Direct Normal Irradiance (DNI), Wind Speed, Temperature and Solar Zenith Angle downloaded from the NSRDB are averaged over a year.

EDA - short summary

Due to a significant difference in solar irradiance along the four cardinal directions North/South and East/West (as shown in the Figures A and B below)

<p float="left"> A. <img src="./figures/Solargis-North-America-DNI-solar-resource-map-en.png"" width="40%" height="30%"> B. <img src="./figures/DNI_irradiance2_gimp.png" width="470" height="360"> </p>

only solar installations in the US located within a blue rectangular region shown in Figure B above are included in the analysis.

In the Figure C below we show the same US installations (red) and their proximity to communities in Ontario (blue).

<p float="left"> C. <img src="./figures/Ontaro_communities2.png" width="400" height="400"> </p>

Data set used for machine learning regression model selection, training and validation

After data processing and feature selection 7 numerical features

  • Size (kW)
  • array tilt
  • Temperature
  • Wind Speed
  • Azimuth
  • Direct Normal Irradiance
  • Direct Horizontal Irradiance

and 76859 data points were used for training, validation, model selection and evaluation on the test set (for more details about the model and the analysis performed see the technical report).

Web app

The final product is a user friendly webb app developed to help Ontario residents predict their solar installation annual energy output and other key characteristics with improved accuracy.

Based on geographical location, panel size, roof pitch and its orientation the GoSolar web app provides predictions for:

  • Annual Energy Output (kWh/year)
  • Annual Return (CAD)
  • Installation cost (CAD)
  • Break Even Time (Years)
  • Optimal Tilt (degrees)
View on GitHub
GitHub Stars18
CategoryEducation
Updated1mo ago
Forks9

Languages

Jupyter Notebook

Security Score

75/100

Audited on Feb 17, 2026

No findings