Feature Construction and Selection for PV Solar Power Modeling

Yang Yu, Jia Mao, Richard Nguyen, Annas Tohmeh, Hen‐Geul Yeh · DOI

TL;DR

This paper introduces a machine learning framework for 1-hour ahead solar power prediction that prioritizes "smart" feature engineering over model complexity. By expanding weather and time data into a high-dimensional space using Chebyshev polynomials and employing a weather-specific feature selection wrapper, the authors achieve higher accuracy than popular "black-box" methods like Random Forests and Gradient Boosting.

What Problem Does This Paper Address?

Solar power is notoriously intermittent. Rapid changes in cloud cover can cause massive fluctuations in energy output, threatening grid stability and making it difficult for industrial operators to plan their energy usage.

While many models exist—ranging from simple "persistence" models (assuming the future looks like the right now) to complex Neural Networks—they often struggle with the non-linear relationship between weather variables (temperature, humidity, wind) and actual power output. The authors identify a gap: instead of just throwing raw data at a complex algorithm, can we mathematically transform the input data to better represent the underlying physics of the atmosphere?

Methods

The authors propose a multi-stage pipeline for 1-hour ahead (four 15-minute intervals) prediction:

  1. Detrending: They don't predict raw power. Instead, they calculate a "mean power profile" for a given time and predict the deviation from that mean. This removes the obvious diurnal cycle (sun rises/sets) and lets the model focus on weather-driven anomalies.
  2. Feature Construction: This is the core innovation. They take basic inputs (temperature, dew point, humidity, wind speed, and time) and expand them into a higher-dimensional space using:
  3. Chebyshev Polynomials: These are used to create 10 levels of non-linear combinations of the input features, allowing the model to capture complex, high-order interactions.
  4. Trigonometric Functions: Sine and cosine transforms are applied to time data to better capture the "bell shape" of daily solar cycles.
  5. Interaction Terms: New features are created by multiplying "cloudy type" indicators with time to account for the fact that clouds matter more at noon than at sunset.
  6. Weather-Specific Modeling: They categorize weather into three types (Cloudy, Fair, Haze) and build separate predictors for each.
  7. The Wrapper Method: They use a sequential forward selection and backward elimination algorithm. This "wrapper" iteratively adds or removes features from the pool, keeping only those that minimize the Mean Squared Error (MSE) on a validation dataset.
  8. Constrained Least Squares (LS): To ensure the model doesn't produce physically impossible results (like negative power), they solve the regression using a constrained optimization approach.

Datasets

The study uses two primary data sources from Long Beach, California (January to June 2014):

  • Solar Output: 15-minute interval data from the California Solar Initiative (CSI), representing 414 solar systems.
  • Weather Data: Hourly records from the Long Beach airport, including temperature, dew point, humidity, wind speed, and sky cover (categorized into Fair, Haze, and various Cloudy states).

The authors created six distinct datasets, each consisting of 25 days for training, 5 days for validation, and 5 days for testing.

Key Insights and Ideas

  • Feature Engineering > Model Complexity: The paper demonstrates that a relatively simple linear regression model can outperform state-of-the-art ensembles (like GBDT) if the input features are mathematically transformed to represent the problem space better.
  • The "Noon" Factor: The authors realized that cloud cover isn't a constant penalty. A cloud at 12:00 PM causes a much larger power drop than a cloud at 6:00 PM. By creating interaction features between cloud type and time ($C_{11}-C_{13}$), they successfully captured this non-linear behavior.
  • Stability via Constraints: By embedding a constraint into the Least Squares solver, they ensured the multi-step prediction remains bounded and physically realistic, preventing the "error accumulation" that often plagues recursive time-series forecasts.

Key Results

The proposed model was compared against Support Vector Regression (SVR), Random Forest (RF), and LightGBM (a popular GBDT implementation).

  • Superior Accuracy: In 5 out of 6 testing datasets, the proposed model achieved a lower MSE than RF and LightGBM.
  • Competitive with SVR: The model outperformed SVR in 5 out of 6 datasets, often by a significant margin (e.g., in Dataset 3, the proposed model's MSE was $3.007e^{-4}$ vs. SVR's $5.722e^{-4}$).
  • Weather Sensitivity: The model performed exceptionally well in "Fair" and "Haze" conditions but, like most models, saw a decrease in accuracy during "Cloudy" weather due to the high volatility of cloud movement.

Limitations and Future Work

  • Cloud Quantification: The current model uses categorical weather data (e.g., "mostly cloudy"). The authors note that quantitative cloud data (like sky images or satellite-derived cloud optical depth) would likely improve the "Cloudy" weather sub-model.
  • Short Horizon: The study is limited to 1-hour ahead predictions. Extending this to day-ahead forecasting would require integrating Numerical Weather Predictions (NWPs), which are less accurate than the local airport data used here.
  • Sub-optimal Selection: The "wrapper" method for feature selection finds a "good" subset of features but does not guarantee the absolute global optimum. The authors suggest Bayesian optimization as a potential future improvement for feature selection.

Summary updated

Abstract

Using solar power in the process industry can reduce greenhouse gas emissions and make the production process more sustainable. However, the intermittent nature of solar power renders its usage challenging. Building a model to predict photovoltaic (PV) power generation allows decision-makers to hedge energy shortages and further design proper operations. The solar power output is time-series data dependent on many factors, such as irradiance and weather. A machine learning framework for 1-hour ahead solar power prediction is developed in this paper based on the historical data. Our method extends the input dataset into higher dimensional Chebyshev polynomial space. Then, a feature selection scheme is developed with constrained linear regression to construct the predictor for different weather types. Several tests show that the proposed approach yields lower mean squared error than classical machine learning methods, such as support vector machine (SVM), random forest (RF), and gradient boosting decision tree (GBDT).
BibTeX
@misc{yu2022feature,
  author = {Yang Yu and Jia Mao and Richard Nguyen and Annas Tohmeh and Hen‐Geul Yeh},
  title = {{Feature Construction and Selection for PV Solar Power Modeling}},
  year = {2022},
  eprint = {2202.06226},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.06226},
}
Figure