Research on the Effect of the Activation Functions in the Hidden Layer and Features in NARX Models to Improve the Photovoltaic Power Generation Forecasting

Photovoltaic power forecasting is important because solar generation varies with weather conditions. Accurate forecasts help improve grid operation, reduce costs, enhance system stability, and support battery management. This paper presents a hybrid methodology that combines statistical analysis and machine learning to forecast photovoltaic power generation. First, the data are cleaned and preprocessed. Then, the input vector is selected using two criteria: collinearity analysis to remove redundant variables, and Granger causality to identify variables with predictive value in a nonlinear autoregressive with exogenous inputs artificial neural network (NARX-ANN) framework. Next, an experimental design is used to evaluate two training algorithms and activation functions for the hidden layer available in Matlab® version 26.1.0.3276743 (R2026a Update 3, MathWorks Inc., Natick, MA, USA). The methodology is validated by comparing hundreds of input-variable combinations generated through binomial coefficients. A case study using data from Sonora, Mexico, shows that the best model is the Collinearity–Causality (CC)-NARX-4 model, which uses four input variables, a radial basis function in the hidden layer, and Bayesian regularization backpropagation. This model achieves a root-mean-square error (RMSE) of approximately 132 watts (W) for the forecasting stage/forecasting horizon. The results are also compared with a nonlinear autoregressive (NAR) model to assess the predictive benefit of including exogenous inputs. The final outcome is a robust methodology for improving multivariable neural networks through (i) optimized input-vector selection using collinearity and causality tests, validated by an exhaustive combinatorial algorithm; and (ii) a systematic procedure for configuring the hidden-layer transfer function and the neural network training function.

Authors

Institutions

Publication Details

Journal
Energies
Published
2026-06-17
DOI
https://doi.org/10.3390/en19122879
Primary Topic
Solar Radiation and Photovoltaics
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Research on the Effect of the Activation Functions in the Hidden Layer and Features in NARX Models to Improve the Photovoltaic Power Generation Forecasting

Oscar D. Sánchez, Itzel Aranguren, Erasmo Correa Gómez, Beatriz A. Rivera-Aguilar et al.
Energies
Solar Radiation and Photovoltaics
article

Research on the Effect of the Activation Functions in the Hidden Layer and Features in NARX Models to Improve the Photovoltaic Power Generation Forecasting

Oscar D. Sánchez, Itzel Aranguren, Erasmo Correa Gómez, Beatriz A. Rivera-Aguilar, Víctor E. Moreno, Eduardo Rangel-Heras
article en

Abstract

Photovoltaic power forecasting is important because solar generation varies with weather conditions. Accurate forecasts help improve grid operation, reduce costs, enhance system stability, and support battery management. This paper presents a hybrid methodology that combines statistical analysis and machine learning to forecast photovoltaic power generation. First, the data are cleaned and preprocessed. Then, the input vector is selected using two criteria: collinearity analysis to remove redundant variables, and Granger causality to identify variables with predictive value in a nonlinear autoregressive with exogenous inputs artificial neural network (NARX-ANN) framework. Next, an experimental design is used to evaluate two training algorithms and activation functions for the hidden layer available in Matlab® version 26.1.0.3276743 (R2026a Update 3, MathWorks Inc., Natick, MA, USA). The methodology is validated by comparing hundreds of input-variable combinations generated through binomial coefficients. A case study using data from Sonora, Mexico, shows that the best model is the Collinearity–Causality (CC)-NARX-4 model, which uses four input variables, a radial basis function in the hidden layer, and Bayesian regularization backpropagation. This model achieves a root-mean-square error (RMSE) of approximately 132 watts (W) for the forecasting stage/forecasting horizon. The results are also compared with a nonlinear autoregressive (NAR) model to assess the predictive benefit of including exogenous inputs. The final outcome is a robust methodology for improving multivariable neural networks through (i) optimized input-vector selection using collinearity and causality tests, validated by an exhaustive combinatorial algorithm; and (ii) a systematic procedure for configuring the hidden-layer transfer function and the neural network training function.

EnergiesVol. 19(12)
Universidad Autónoma de Guadalajara (MX), Autonomous University of Queretaro (MX), Universidad de Guadalajara (MX), Universidad Aeronáutica en Querétaro (MX), Universidad Nacional Autónoma de México (MX)
Universidad de Guadalajara
Affordable and clean energy
Openalex Percentile: Top 5%
Solar Radiation and Photovoltaics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.