Skip to main content
PLOS One logoLink to PLOS One
. 2026 Jul 28;21(7):e0354512. doi: 10.1371/journal.pone.0354512

Very short-term production prediction for photovoltaic plants using Temporal Convolutional Networks

Loukas Samaras 1,*, Elena García-Barriocanal 1, Miguel-Angel Sicilia 1, Lino González García 2
Editor: Dinesh Kumar Nishad3
PMCID: PMC13411920  PMID: 42520037

Abstract

Very short-term forecasting of solar photovoltaic energy production at national scale is challenging due to the high variability and spatial aggregation of generation across large territories. This paper evaluates Temporal Convolutional Networks (TCN) — a deep learning architecture based on causal and dilated convolutions — for nowcasting national-level solar production at one-hour and fifteen-minute horizons, using data from Spain sourced from the European Network of Transmission System Operators for Electricity. Multivariate models augmented with past weather observations (solar irradiance and sun height) are compared against linear regression baselines. Results demonstrate that the multivariate TCN substantially outperforms linear regression at the one-hour horizon, and achieves consistent improvement at the fifteen-minute horizon. The relative contribution of architecture and weather features is resolution-dependent: at hourly granularity, the TCN architecture itself provides the dominant gain, while at the fifteen-minute scale the inclusion of weather covariates becomes the primary driver of accuracy, reflecting the greater atmospheric variability at finer temporal scales. A key finding is that past-only weather inputs are sufficient for accurate nowcasting, eliminating the need for future meteorological forecasts as model inputs. The results support the practical applicability of TCN-based models for national-level solar energy integration and provide a data-driven feature-selection criterion for similar renewable energy forecasting tasks.

1. Introduction

From 1974, the global energy demand grew from around 5,000 TWh to almost 22,000 in 2019, four and a half times more, with an average annual increase of 3.32% [1–3]. This growth can be approximately expressed by the following equation:

Ed = 5388.9e0.032x (1)

where Ed is the energy demand and x stands for the year factor = y – 1973, with y= {1974, 1975,... 2019}.

Although the International Energy Agency (IEA) reported that, during 2019, the total power consumption increase was reduced by around 1.1% in OECD countries, the rise in the non-OECD countries was much higher, specifically 3.8% in the previous year. Furthermore, according to the above equation, global consumption is estimated to double over the next twenty years to around 50,000 TWh. Fig 1 shows the global energy consumption, total and by sector:

Fig 1. The global energy consumption (TWh) 1974-2019 (image by IEA).

Fig 1

Meanwhile, the world population has not increased at the same rate, as it almost doubled from 4 billion in 1974 to almost 7.7 billion in 2019 with a continuously declining annual rate (from 1.94% in 1974 to 1.05% in 2019) [4]. Despite the declining rate of population increase, some sectors, such as industry, absorb so much energy, amounting to around three-quarters of the total consumption (74.08%) [5]. The updated global electricity demand, according to IEA’s 2024 report, is expected to rise at a faster rate over the next three years, growing by an average of 3.4% annually through 2026 [3].

It seems that the dominant reasons for this high energy demand could also be found in the financial growth and the income development of the world population [6]. In any case, improving energy efficiency and energy production may be the key to meeting the world’s high energy demand. This, combined with using more environmentally friendly energy sources, such as photovoltaic or wind energy, would allow tackling global climate change. Therefore, an accurate forecast can be considered of great importance for achieving the proper balance of energy supply for the years to come. During the last decade, an increasing number of researchers have approached the challenge of developing and extending ideas on ‘strategic niche management’. These ideas include developing desirable sustainable innovations by experimenting with new technologies and socio-technical systems to achieve more sustainable development. In the energy domain, this discussion encompasses the importance of shared long-term objectives, the necessity of harmonizing energy policies, and the requirement for continual monitoring and adaptation to energy and climate changes [7]. Prediction, on the other hand, is needed both in the short term and in the medium or long term to maintain the optimal balance of power production and demand, as stated in [8]: “The optimal investment and operations of integrated local energy systems require medium to long-term prediction of energy consumption”.

Solar energy is one of the cleanest sources of energy and one of the most abundant, with over 63 million PV systems, heat pumps and EV chargers already installed in European homes. Its magnitude is globally estimated 1,017 joules, which can be delivered per second. In contrast, the oil reserve in the total world is estimated to be 1.7*1022 joules [9]. Furthermore, it has been found that an accurate prediction of the energy load can result in an increase in the efficiency of solar Photovoltaic Cells (PV), e.g., the Maximum Power Point Tracking algorithm (MPPT) [10]. In a recent study of 2023 [11], modern artificial neural networks are proposed to forecast a solar PV System for a standalone household system. This study aimed to achieve a 24-hour ahead forecast of the energy load of a standalone system to prepare the battery for future use. The forecasting uses machine learning techniques and deep learning networks like RNN, LSTM, and Gated Recurrent Units (GRU) to predict the weather, the solar irradiance and the temperature.

ENTSO-E is the European Network of Transmission System Operators for Electricity, the association for the cooperation of European Transmission System Operators (TSOs). It has 39 TSO members and represents 35 countries responsible for the secure and coordinated operation of the European electricity system, the largest interconnected electrical grid in the world. These operators are responsible for safe and efficient electricity production and/or distribution. By monitoring and maintaining equipment and this system, they can ensure they operate at peak efficiency. The network offers its data online, including data on electricity production from renewable resources, such as solar and wind farms, onshore and offshore. In addition to the hourly power produced (changed to a 15-minute window from mid-2022 for most countries), it also provides production or consumption forecast data for the next day. According to the ENTSO-E demand methodology [12], the prediction system utilizes a temperature regression and a load projection model that incorporates an analysis under various climate conditions. More specifically, it uses a regression algorithm with input variables split into two profiles and one parameter profile that includes a) electricity load data (training years 2012–2016), b) climate variable profiles (e.g., city temperature, irradiance, wind speed and holidays for the same training period) and c) parameters for the regression settings (e.g., order, p-value), for days groups and pod functions. Finally, all these variables are adjusted by applying different coefficients for temperature dependence and independent loads to produce the final prediction model.

A short or mid-term estimation will be helpful in order to achieve the power balance (of production and demand) and take advantage of the novel prediction models and methods, especially in the field of renewable energy generation based on DL techniques and domain knowledge [13]. For instance, some models estimate the energy consumption of buildings based on specific parameters, such as the power load density, the area, the heat gain, the outdoor air, the existence of internal or external walls or doors, etc. [14]. As noted above, it is not only residential energy consumption that has increased over the last decades but also the power draw related to other activities, such as industrial operations. It is crucial to bear in mind that, at least for now, the energy generation from renewable resources, such as wind farms, cannot cover a large portion of the demand. In the case of our study, the daily average of the energy production by the wind industry is limited, and for Spain, it is only 168,473.3 (kilo Watts by hour) KWh, less than 170 MWh daily. Nevertheless, the constantly increasing global demand, along with climate change and the need for sustainable growth with the careless protection of the natural ecosystem, may result in a generalized and extended use of these alternative resources. On the other hand, current ENTSO-E data show that solar energy production in Spain is even more limited and covered only 5.07% of the total energy load until 2018. However, after 2022, this had doubled to over 11% of the total demand, while the wind plants produced 19.10% until 2018 and increased to 26.42% of the total demand in 2022, as shown in the following Fig 2. This means that energy production from PV cells still falls short of the energy produced by wind plants.

Fig 2. Production of solar and wind energy in Spain (2015-2022). Source: ENTSO-E [10,12].

Fig 2

In recent years, empirical tests have revealed that Convolutional Networks, such as the Temporal Convolutional Networks (TCN), substantially outperform generic recurrent architectures such as LSTMs and GRUs, while they can provide certain benefits, such as flexible receptive field size, stable gradients, low memory requirement for training and variable length inputs [15] Furthermore, Nvidia Corporation has been using convolutional neural networks [16] for years in their graphics cards to manage upscaling of images and video and finally increase the efficiency of this hardware. Therefore, it could be of particular interest to apply such models for energy forecasting.

In the recent work by Li et al. (2023) [17], the TCN model was found to provide a significantly better forecast of the solar energy from PV cells from 95 utility scale PV farms in North Carolina, USA, from January 1 to November 30, 2020 over other models, such as the linear regression or even the LSTM neural networks.

Furthermore, the research has been extended to evaluate solar energy production with external weather data and artificial neural networks, such as in the research on the solar PV power output for 250MW solar farms by G. Balraj, et al. (2022) [18], or by Zameer A, et al. (2023) [19]. However, current literature provides studies on limited-area forecasts with specific power plants located there. On broader areas, such as on a national level, the work of T. Cabello-López et al. (2023) [20], focuses on the entire Spanish territory, consisting of hundreds of solar farms. The main goal of the latter was to develop a methodology to integrate solar irradiance forecasts with historical data from solar power plants in Spain to improve the performance of multivariate models, including neural networks.

Given that the prediction of a standalone power system is feasible and more accessible because it is studied in a specific location with specific weather conditions, as in the work of [11], it is interesting to investigate the feasibility of forecasting the solar energy production of an entire country, such as Spain, which consists of multiple power stations and several households and enterprises in different areas, and therefore with different weather conditions. This context raises the following challenges:

- The high volatility of the data, e.g., the variance or standard deviation, which is much higher than the energy load.

- The aggregated values of solar energy production of all plants in Spain.

- The different climatic conditions of each power plant across the country.

The solar irradiation, for example, varies across different parts of Spain, as shown in the following Fig 3, which depicts the global irradiance in the five major areas of this country:

Fig 3. Global irradiance in the most significant areas of Spain (January 2015).

Fig 3

Existing national-level solar energy forecasting for Spain has been addressed by Cabello-López et al., who apply a multivariate CNN-LSTM to System Operator Information System (E-SIOS) data across 1-hour, 24-hour, and 48-hour horizons, outperforming the official system operator forecast by 47.58% for the 1-hour case. However, their study does not address sub-hourly horizons, which are critical for intra-day electricity market operations. On the methodological side, Li et al. [17] demonstrate that TCN architectures outperform CNN-LSTM and other deep learning models for utility-scale PV forecasting on individual farms. The present work bridges these two directions: it applies TCN to the national-level Spain forecasting problem at the 15-minute resolution — a horizon not addressed by prior national-level studies — reporting nMAE values of 4.10% (1-hour) and 1.79% (15-minute) for the multivariate model.

Given the above, taking into account the existing literature and the aforementioned challenges, we expand the current research with more data by setting the following research questions:

- RQ1: Is it possible to predict the solar energy production of a whole country consisting of many power production units?

- RQ2: In this scenario, is the efficiency of forecasting with AI algorithms much higher than that of traditional methods, e.g., linear regression?

- RQ3: Can weather data further improve forecasting?

- RQ4: If RQ3 is true, is it needed first to forecast weather data for a short-term prediction?

The ultimate goal of the research presented in this paper is to produce short or very short-term forecasts of solar energy production based on one-hour and fifteen-minute data for a multi-stakeholder country. To this end, six different models are presented in this study, three for one-hour data and three for fifteen-minute data, and all of them are compared.

The current paper is structured in four sections. This Introduction contextualizes the problem and reviews related work. Section 2 (Materials and Methods) describes the data, models, and evaluation metrics. Section 3 (Results and Discussion) presents and interprets the experimental findings. Finally, Section 4 presents the Conclusions.

2. Materials and Methods

This research has been conducted according to the following chart flow, as shown in the following Fig 4:

Fig 4. The flowchart of the research.

Fig 4

The first two steps (the problem identification and the study of the current literature) were presented in the preceding sections. The analysis from now on will focus on the following:

  • • The data acquisition (energy and weather data). All datasets we used have been uploaded to a GitHub repository (https://github.com/luxorsatellite/Darts_tcn/tree/main)

  • • The software builds with the best optimizations

  • • The model selection and the inclusion of exogenous variables

  • • Training univariate and multivariate models with 80% of the data and

  • • backtesting the remaining 20% and evaluating models’ performance and finally,

  • • A real-world scenario, in which we predict the future of the solar energy production out of the sample, meaning after the end of the dataset. In this scenario, we present, not only the outcome, but also the computer hardware resources and total time needed for this. For this scenario, there are no separate training and validation sets; all data are trained in order to achieve out-of-the-sample predictions. When training on the full dataset, the best model was saved and loaded to provide the best forecast out-of-the sample.

2.1. Energy data

The power data represent the aggregated solar generation in Mega Watts (MW) and are the energy production generated by the solar PV cells from solar stations all over Spain. The ENTSO-E system has available hourly data from 2015-01-01 until 2022-05-22, while afterwards, the data are published at a 15-minute resolution. Until 2018, solar energy production was 5.07% of the total power demand; during 2022 only, it was over doubled to 11.38%. For this study, two datasets come from the ENTSO-E system:

All energy and weather data can be found on the Kaggle website [21]. Solar energy production data can also be found in the python darts dataset’s library and can be directly downloaded by writing the python command “series = EnergyDataset ().load()”. Solar energy data include the following:

  • i) hourly data extending from 01.01.2015 until 31.12.2018 (4 years). The mean value of these data is 1,432.82 MW and the standard deviation is 1,679.96 MW.

  • ii) 15-minute data from 23.05.2022 until 31.12.2023 (2 years) with a mean value of 4,319.52 MW and a standard deviation of 5,263.24 MW, over the mean.

As already mentioned in the Introduction, solar energy production has a standard deviation of over 100% of its mean, while for the energy total load (consumption) from all over Spain (years 2015–2022), the mean is 28,268.69 MW per hour and the standard deviation is only 16.51%, 4,565.86 MW/h.

In this research, the first four-year dataset is combined into a single series with weather data of the same period. The second one, covering almost two years, starting from 23.05.2022, has been used in combination with solar irradiation of the same period, as there are no 15-minute solar irradiation data before. No more data of this kind (hourly or 15-minute) exist after 2023.

Data are provided from solar PV cells located in cities that represent the major areas of Spain, from approximately the four cardinal directions: North, South, East and West, as shown in the following Fig 5:

Fig 5. The most significant areas of Spain.

Fig 5

As mentioned in the Introduction as a challenge, it should be considered that these values are aggregated at country level, and their standard deviation is much higher than the energy consumption data. Therefore, the power demand is more predictable since it drops after 23:00 almost daily. However, solar energy production significantly drops after the sun sets, which is not always the same for each day and season of the year. The above considerations result in a significant forecast loss, even hourly.

Finally, it should be noted that although power demand increases in summer and winter, solar energy production is affected not only by the current month, solar radiation and cloud coverage but also by the season, as shown in the following Fig 6:

Fig 6. The decomposition of solar energy.

Fig 6

Fig 6 shows that the maximum (aggregated) production can reach its maximum capacity even in winter (e.g., in January of 2016, almost 5,800 MW) despite lower temperatures and significantly less cloud cover. This happens because the heat loss is lower, so the energy loss, although it cannot be sustained for as long as during summer. One type of loss in PV systems is thermal loss: the more heat, the more loss, and, thus, the less power. This is why, even in winter, the energy production from PV can reach a similar peak production capacity as in summer months, although for shorter time, as the sun shines less.

2.2. Weather data

For the purpose of this research, we compare univariate models with only energy data and models with weather data as explanatory variables of two datasets: one with hourly values and another one with values every 15 minutes.

These data are gathered from the following sources:

These data include temperature (average, minimum and maximum, pressure, humidity, wind speed, wind direction (degrees), one- and three-hour rainfall and three-hour snowfall, as well as cloud sky coverage data,

  • ii) Weather data from the European Commission Photovoltaic Geographical Information System (PVGIS) [23] website for the same five largest cities, which are available through the PVGIS-ERA5 system and the radiation database PVGIS-SARAH2. This dataset includes the following data:

- Global irradiance on the inclined plane (plane of the array), in W/m2

- Sun height, in degrees

- 2 m. air temperature, in Celsius degrees

- 10 m. total wind speed, in m/s

2.3. Past and future variables

External variables (called ‘covariates’ in Python Darts) can be used to predict each target variable in two ways:

  • i) As future unknown: In the case of solar energy production, we could predict the target variables (energy values) based on our knowledge of the future exogenous variables, such as the irradiance data in this case. For instance, if we have target energy data for January of a specific year and want to predict February of this year, we definitely need to know the weather data for February in advance.

The problem, however, is twofold:

First, we don’t actually know the future irradiance data. One solution would be to first conduct a forecast of them and then insert them as future inputs into the target data and make a second forecast of the target, but this way, the forecast results of the target data will be lowered, because two forecast procedures would be executed; one for the external data and another for the target data. Since it is impossible for the first ones to reveal a correlation of 100%, the second forecast will inevitably be less accurate. This is mostly done in the current research, as depicted in the current literature.

Second, most models (e.g., the Auto-Regression Moving Average model with exogenous variables-ARIMAX, the TCN model, etc.) do not accept future covariates, but only past covariates.

  • ii) As past known: in this case, external data are treated as past covariates, meaning the same way as the target data. This way, we save time and accuracy, as we do not have to perform two forecasts.

2.4. Datasets and Missing data

The first dataset of one-hour values contains no missing data but in the second one there nine missing energy values. To deal with this, we use linear interpolation to fill in the nan values with the following python command: df = df.resample(resamplimg_interval).interpolate(limit_direction = ‘both’), where:

  • • df is the dataframe,

  • • resampling_interval = 15 minutes

  • • limit_direction = interpolation direction: both, meaning forward and backward

2.5. Model selection

This subsection describes different models designed and developed to predict solar energy production. Implementations of all models were developed within Python version 3.11 [24] environment with Darts version 0.29 [25]. All models were trained with a modern computer system of a CPU with 24 cores and 32 threads (i9-13980HX) and a powerful graphics card (GPU) consisting of 7,144 Cuda cores (Nvidia RTX 4080M) with a compute capability of 8.9.

Models and their architecture were progressively enriched in an attempt to improve results. Initially, a multivariate linear regression model with only the energy data was taken as a baseline, then a univariate TCN and finally, a multivariate TCN model with weather features was tested. All of them were tested for both hourly and 15-minute data. In total, six models were evaluated, three with the hourly data and three with the 15-minute data.

The baseline model serves as a fast and reasonably precise estimate for the current dataset, in order to be compared to more complex models later on. Since we use the python darts library, we could use as baseline any classic model, such as ARIMA, naïve model, exponential smoothing, etc. We opted for linear regression, because it can support both past and future covariates, datetime cyclical features and it is very fast compared to other models, e.g., ARIMA, for datasets of over 35,000 values. The ARIMA model, for example, for back testing estimation, needs around three hours in the first 35K+ dataset, while the second 56K+ dataset took over 9 hours, because it is executed on a CPU single-thread instance, while the linear regression is executed on multi-thread instance.

The datasets were divided into training sets of 80% of all the values, while the remaining 20% was left as a validation set. It should be noted that the Python Darts library, when backtesting, does not allow different training, validation and test sizes as in traditional neural networks without this library (e.g., 80% training, 10% validation and 10% test size), but only training and validation datasets. This means that the training is done with the training data and the best-found model is directly applied to the validation dataset.

The entered weather data were selected according to their correlation to the energy values. The weather variables used are as follows:

  • • The G(i), which means the global irradiance on the inclined plane, showed an average correlation coefficient of 0.796 with the energy data of one hour and much lower, 0.548 for the 15-minute data.

  • • The H_sun, meaning the sun height (degree), with an average correlation of 0.785 and 0.552 respectively.

  • • The temperature has an average correlation with solar energy of only 0.369 and a very low and negative correlation of −0.0452 respectively.

The feature selection was based on the best correlation coefficients between energy and weather values. The above Fig 7 shows the respective correlation matrix, while Table 1 shows these correlations, both of the entire data and the training data only.

Fig 7. The correlation heatmap.

Fig 7

Table 1. Best correlations.

Dataset variable name R R (train)
hourly 0 generation solar 1 1
“ 8 Madrid_H_sun 0.804021 0.799143
“ 4 Seville_G(i) 0.803871 0.800096
“ 3 Madrid_G(i) 0.800787 0.796690
15-minute 17 generation solar 1 1
“ 29 Seville_H_sun 0.772861 0.776642
“ 24 Seville_G(i) 0.769252 0.766909
“ 28 Madrid_H_sun 0.750504 0.755526

2.6. Neural network: the TCN model

Generally, a convolutional equation h is the result of a mathematical operation on two (or more) functions f and g. Given t is the time, it is estimated as follows:

h=f*g(t):=∫−∞∞f(τ)·g(t−τ)·dτ (2)

where:

h: the integral of the product of two functions f and g

t and τ, time or numerical spots (e.g., 1,2.3…n). It is the area under the function f(τ), weighted by the function g(τ) and shifted by the amount t, where:

f(τ) and g(τ) are the input functions.

TCN employs causal convolutions to ensure that outputs at each time step depend only on past inputs, eliminating any risk of information leakage from the future. A causal convolution layer computes:

yt=∑i=0k−1f(i)·xt−i (3)

where:

y_t, the output at time t

x_{t − i}, the input at lag i (only past and present values are used)

f(i), the filter coefficient at position i

k, the filter size (kernel size)

The causal constraint ensures that y_t depends only on x_t, x_{t − 1}, …, x_{t − k + 1}, with no access to future inputs.

Dilated causal convolutions extend Equation (3) by introducing a dilation factor d, which creates gaps between filter taps and allows the network to capture exponentially larger temporal contexts without increasing the filter size. The dilation factor is typically set to d = 21 at layer l, so that a network of L layers with filter size k achieves a receptive field of 1 + 2·(k − 1)·(2ᴸ − 1). The specific values of k, L, and the dilation base used in this work were determined by hyperparameter optimisation and are reported in Section 2.6. The dilated causal convolution operation is:

F(s)=(x·df(s))=∑k=1f(i)·xs−d·i (4)

For a 1-D sequence input x ∈ ℝ and a filter f: {0... k-1} -- > ℝ. Note that, for a given sequence length, the maximum input sequence must not exceed the total validation size minus the output length.

F, the dilation operation

s, the element of the sequence

d, the dilation factor,

k, the filter size

s-d*i stands for the direction of the past. When d = 1, a dilated convolution reduces to a regular convolution.

Residual connections allow the TCN to be trained as a very deep network by letting gradients bypass convolutional layers. Each TCN residual block computes:

o=ReLU(x+F(x)) (5)

where:

F(x), the dilated causal convolution transformation of the block input

x, the block input; a 1 × 1 convolution is applied to x when input and output dimensions differ. In the following Fig 8 a description of the TCN model architecture and its main components is depicted:

Fig 8. TCN architecture.

Fig 8

  • A. Residual Block Pipeline (Block Architecture):

The left section of the diagram illustrates the internal processing flow of a standard TCN Residual Block. The data passes sequentially through two stages of 1D Causal Convolutions, each paired with Weight Normalization to stabilize training, a ReLU activation function to introduce non-linearity, and Spatial Dropout to prevent overfitting. The dashed green line represents the Residual Skip Connection, which adds the original input directly back to the final transformed output, enabling efficient deep network training by eliminating the vanishing gradient problem.

  • B. Multi-Layer 3D Tensor Flow (Three-Dimensional Data Stream):

The right section geometrically maps out the data dimensions as they move upward through the 4 stacked hidden layers. Each layer is visualized as a 3D tensor block to demonstrate how 24 independent filters extract features concurrently across all 25 timesteps of the sequence. The shaded orange area at the base highlights the dense kernel operation where k=24 and dilation d=1; a single hidden node compiles a continuous historical window of 24 consecutive steps without skipping any entries, while the vertical red dashed line (Causal Boundary) guarantees that no future data leaks backward in time.

  • C. Receptive Field Formula (Mathematical Foundation):

The card at the bottom explains the global system awareness using the Receptive Field equation: RF = 1 + L times (k - 1 times d). Given 4 layers (L=4), a massive kernel size (k=24), and a fixed dilation (d=1), the model builds a maximum contextual reach of 93 past timesteps. Because the actual input sequence length of 25 is well within this 93-step coverage window, the final top layer possesses full historical memory of the entire sequence from the very first step, utilizing an implicit left-side causal zero padding of 23 steps to keep tensor dimensions perfectly uniform throughout the pipeline.

The general TCN framework supports dilated causal convolutions. Nevertheless, the optimized configuration selected in this study used a dilation base of 1. Therefore, the final implemented model corresponds to a causal convolutional TCN residual architecture without dilation expansion.

2.7. Model optimizations

One of the more difficult tasks in neural networks is to determine the appropriate parameters of the selected model. To achieve this, we used the following methods provided by the Python Darts library, which are not available in other frameworks, as described below:

Seasonality check: Statistical seasonality testing identified seasonality periods of twenty-four hours, nine days, four weeks, and twelve months; these were used to determine the minimum kernel size and number of filters.

Encoders (datetime attributes): Cyclic encodings of datetime attributes were used as past covariates. For the 1-hour dataset these comprised month, week, day, day-of-week, and hour; for the 15-minute dataset, minute was additionally included. All encoded features were normalised using a MinMax scaler.

Optimization libraries-Optuna

There are two popular Python libraries for hyperparameter optimization, named Optuna [26] and Ray Tune [27].

We used the open-source Optuna library for the hyperparameter optimization, and the Darts’ TCN Model, and found that the best layers are four, while the best dilation base parameter was 1, meaning a regular convolution process will be executed, as by the abovementioned equation 4.

Learning rate tuner

An automated learning rate finder was applied before training, scanning candidate values and selecting the one associated with the steepest loss decrease.

For example, given a lr_decay = 0, the best learning rate for the best TCN network (forecast horizon 1h) was found to be ≈ 0.0011, as shown in Fig 9.

Fig 9. The learning rate tuner (TCN).

Fig 9

Scaling: Data were normalised to the [0, 1] range using a MinMax scaler, which speeds up training and reduces RAM and VRAM usage.

Neural networks were trained using the PyTorch library [28] with Nadam as the optimiser, together with a ReduceLROnPlateau learning rate scheduler and early stopping monitoring validation loss.

The hyperparameters of the best model are: input length 25 (seasonality of 24 plus forecast horizon of 1), batch size 24, kernel size 24, dilation base 1, maximum 100 training epochs with early stopping patience of 20 epochs, dropout 0.2, weight normalisation enabled, 4 layers, and weight decay 0. A fixed random seed was used throughout to ensure reproducibility.

2.8. Error metrics and evaluation

Mean Absolute Error.

To evaluate the trained models, we used the mean absolute error (MAE) (single and normalized), the mean absolute percentage error (MAPE), and finally, the Squared Pearson correlation coefficient (R), which denotes the forecast’s final efficiency metric.

MAE=1n∑i=1n|Xi−Yi| (6)

MAE normalized: To eliminate the scale differences of the different data samples, we also used a normalized type of MAE and MAPE, expressed as a percentage, according to the mean value, as follows:

nMAE=1001n∑i=1n|Xi−Yi|1n∑i=1nXi=100·∑i=1n|Xi−Yi|∑i=1nXi=100·maemean (7)

Symmetric Mean Absolute Percentage Error:

sMAPE=1001n∑i=1n|Xi−Yi|(|Xi|+|Yi|)/2 (8)

Correlation Coefficient:

Rxy=∑i=1n(Xi−X―)(Yi−Y―)∑i=1n(Xi−X―)2∑i=1n(Yi−Y―)2 (9)

In all equations, X stands for the true values of solar energy, whereas Y represents the predicted (expected) values, produced by each model. The last correlation equation calculates the correlation coefficient of X and Y values, which means the correlation between the actual values (X) and the predicted values (Y).

Both nMAE and sMAPE are similar most times, such as in predicting the total energy load (demand), but they differ substantially for solar energy. For example, even for the one-hour forecast of the total energy load in Spain, using a simple univariate linear regression, the nMAE is 0.585%, while the MAPE is 0.598%. By contrast, the one-hour forecast of solar energy production is very different: 7.71% and 134.74% calculated by a linear regression model respectively, as a 100% MAPE in the second case would concern too low values (e.g., 40 MW true value vs. 80 MW forecasted value is 100% deviation, but at a very small value compared to 1,432.96 of the mean value).

Success rate: This metric denotes the directional accuracy of the forecast, meaning how many forecasts correctly predict whether the future values will be higher or lower than the previous step, i.e., the expected difference (‘df’), regardless of how much lower or higher are expected to be. It is classified as binary; no success or success (0 and 1), where:

1:ifdft+1=(Xt+1−Yt/|Xt+1−Yt|).(Yt+1−Yt/|YYt+1−Yt|)=1,else0,foreachifdf(t)>0, (10)

where X are the true values and Y are the expected values and dft + 1 is the expected difference for the next step in the future. When future actual values are the same as of the previous step, the actual difference is zero and is excluded from the calculation.

Accuracy: multiclass F1 score and cross-validation: Similar to the previous, but without exclusion. F1 score calculates the mean accuracy of all classes, while in k-fold cross-validation, the dataset is split into k smaller sets and calculates the average score of every smaller set. These values are from 0 (no accuracy) to 1 (absolute accuracy), but we present them as a percentage to match the result format of our research.

These scores evaluate how well the models distinguish between different production-level categories. A multiclass score, for example, calculates the accuracy of forecast among different categories, which are substantial to calculate, especially to datasets with a high variance. This should be done, because the success of prediction sometimes can be achieved and be high on the classes with higher values and not on the low values, resulting in a low or misleading average. For instance, for the first dataset (hourly values), the minimum value is observed zero and the maximum 5,792. Therefore, we have created through Python’s scikit-learn library six classes; from 0 to 1,000, 1,000–2,000 etc. until 5,000–6,000. The final measured accuracy is the global ratio of correctly predicted instances out of the total instances and can be determined by the following formula:

Accuracy=Total−Correct−Predictions/Total−Support

where:

- Total_Correct_Predictions= the count of all samples where a forecasted class matched the true class exactly and

- Total_Support= the total number of rows/samples in the dataset testing pool.

Feature contribution: with this metric we will gauge, which independent variables (weather) have an effect on the target (energy) and to what extent by calculating the coefficients of every model. The coefficients’ score is classified as 0, when there is no effect, otherwise the weather features contribute to the forecast. For comparison purposes and, in order to eliminate the difference of the scales of every variable and of every dataset, we adjust the coefficients according to the standard deviation of the independent variables, according to the following equation. This way, all coefficients will scale from −1–1.

y=∑i=1ncoefiXi=∑i=1n(coefiXisdti)(Xisdti) (11)

For n = total number of variables and coefi is the coefficient of each variable

3. Results and discussion

3.1. Summary results

The results for a test size of 20% can be summarized in the following Table 2:

Table 2. The summary results.

# Forecast Horizon Model sMAPE (%) MAE (MW) nMAE (%) Success rate (%) R Time (sec)
1 1h LR (baseline) multivariate 45.38 109.10 7.71 84.81 0.99470 0.55
2 1h TCN_univariate 22.01 59.40 4.17 90.91 0.99827 1051.69
3 1h TCN_multivariate 20.93 58.37 4.10 91.28 0.99827 803.14
1h TCN_improvement (%) 53.88% 46.50% 46.82% 7.63% 0.36%
4 15 min LR (baseline) multivariate 21.04 69.41 2.00 81.80 0.99968 0.77
5 15 min TCN_univariate 33.52 82.55 2.38 71.66 0.99965 1093.30
6 15 min TCN_multivariate 20.34 62.05 1.79 85.79 0.99973 979.78
15 min TCN_improvement (%) 3.33% 10.60% 10.50% 4.88% 0.01%

The above table shows the results for every one of the three models tested for each forecast horizon: one hour and fifteen minutes ahead. Additionally, the green highlighting shows how much the best model improves over the linear regression baseline.

In the one-hour scenario, the TCN architecture demonstrates clear standalone value: TCN_univariate (Model 2, using only past energy values, no weather covariates) achieves sMAPE 22.01% and MAE 59.40 MW, already outperforming the multivariate linear regression baseline (Model 1, sMAPE 45.38%, MAE 109.10 MW) by a wide margin. Adding weather covariates to TCN (Model 3) yields a further modest improvement to sMAPE 20.93%.

The 15-minute scenario reveals a different balance between architecture and feature effects. Here, TCN_univariate (Model 5, sMAPE 33.52%, MAE 82.55 MW) performs below the multivariate linear regression baseline (Model 4, sMAPE 21.04%, MAE 69.41 MW). This comparison is not, however, a controlled test of architecture: it pits a univariate TCN against a multivariate LR, conflating the architecture effect with the feature effect simultaneously. The architecturally controlled comparison — multivariate LR (Model 4) versus multivariate TCN (Model 6, sMAPE 20.34%, MAE 62.05 MW) — shows that TCN still outperforms LR when both models receive the same weather covariates (3.3% sMAPE improvement, 10.6% MAE improvement). What the univariate result reveals is that at 15-minute resolution, weather covariates carry substantially more predictive signal than the autocorrelation structure of the energy series alone: the feature effect (TCN_univariate to TCN_multivariate: −39% sMAPE) dominates the architecture effect (LR_multivariate to TCN_multivariate: −3.3% sMAPE). This is consistent with the feature importance analysis in Section 3.4, which shows the linear regression model relying heavily on weather inputs, while the TCN model places greater weight on the lagged energy series. The overall forecast improvement is illustrated in Fig 10:

Fig 10. The forecast improvement using TCN.

Fig 10

Figs 11 and 12 show the distribution of real and forecasted values of the best model (TCN_multivariate) for both forecasting horizons.

Fig 11. Forecast with weather data (hour ahead).

Fig 11

Fig 12. Forecast (15-minutes ahead).

Fig 12

The above figures depict the last 10-day data, although the shown MAE errors concern the entire 20% of the validation data; 7,012 values for the first dataset and 11,289 values for the second respectively, which represents a very substantial test set. The maximum training iterations (epochs) of these networks were set to 100 with an early stopper patience value of 20 epochs.

3.2. Training and validation loss

Every neural network calculates in every iteration a loss value, which represents the mean squared error between real and forecasted data. This loss value reflects the mean squared error on data that are pre-scaled to [0, 1] using the MinMax scaler, which speeds up the training process.

To assess the training performance of the neural network in our case, we can see that this is also evident from the training and validation losses, as shown for hourly-window data in Fig 13 (Fig 13a and Fig 13b):

Fig 13. Training loss Fig. 13b Validation loss.

Fig 13

The above figures clearly show that, both training and validation loss values decline over time as training progresses indicating good training performance, despite some natural fluctuations, mainly in the training data, until the error is minimized and approaches a horizontal line.

The minimum training loss for the 15-minute data was 1.66e-05 and the validation loss 4.47e-05. For the one-hour forecast, both values were 1.94e-04 and 3.18e-04 respectively.

Of all values in the test set, the success rate is 91.28% for the forecast horizon of one hour and 85.79% for the data with the forecast horizon of 15 minutes.

3.3. Accuracy: cross-validation and F1 scores

The accuracy achieved by all neural network models exceeds that of the linear regression models, both in F1 score and cross-validation, as shown in the following Table 3.

Table 3. Model accuracy: F1 scores and cross-validation.

# model f1_score (accuracy) cross-validation (accuracy)
1 LR (baseline) multivariate 92.07% 92.07%
2 TCN_univariate 95.38% 95.38%
3 TCN_multivariate 95.65% 95.65%
TCN_improvement (%) 3.89% 3.89%
4 LR (baseline) multivariate 94.06% 93.95%
5 TCN_univariate 94.55% 94.43%
6 TCN_multivariate 94.69% 94.58%
TCN_improvement (%) 0.67% 0.67%

As we can see from table 3, the accuracy scores of the neural net are all above 95.50% (0.9550) for the first dataset and over 94.60% for the second one. This means that the precision is achieved through all six classes of data; both of low and high data values. In a more detail, we found out that the lower precision was observed in the data of range 3,000–4,000 MW (class #3: accuracy 87%) and the higher on the low ranges (0–1,000 MW, class #0: 99%). However, even for the last class #5 (5,000–6,000 MW, the accuracy is 97%.

3.4. A real-world scenario: prediction out of the sample

Using the neural network models, we were able to predict the energy production after the end of the datasets; since the first dataset ends on 31.12.2018 23:00–00:00 and the second one ends in 31.12.2023 23:45–00:00, the starting points were 01.01.2019 00:00 and 01.01.2024 00:00 respectively.

The following figures (Fig 14 and Fig 15) show the 24-hour forecast, 24 steps ahead for the first dataset and 96 steps ahead on the 15-minute interval for the second one.

Fig 14. Prediction out-of-the sample (1-hour dataset).

Fig 14

Fig 15. Prediction out-of-the sample (15-minute dataset).

Fig 15

Regarding hardware resources, we measured the maximum resource requirements for this real-world scenario, including RAM usage and Video RAM used by the Graphics card [29], as well as the total time to complete each dataset. The following Table 4 shows how much RAM and Video RAM is required to complete the scenario, as well as the total training time for each dataset.

Table 4. Prediction out-of-the sample. Hardware resources and time.

dataset RAM (GB) VRAM (MB) time (sec) time (min)
1-hour 19.7 289.1 1,539.8 25.6
15-minute 21.3 527.3 2,702.7 45.0

RAM usage was around 20 GB, more or less, for both models, but video RAM is much less, although almost double for the larger 15-minute dataset, which is nearly twice the size of the first. At this point, we should mention that these amounts of VRAM usage are relatively low, considering that 12,228 MB of the total VRAM of the specific graphics card (only 2.36% and 4.31% for each dataset) and this is a result of the data conversion into ‘float32’ types.

On the other hand, total time ranges from around twenty and a half minutes for the first case and around forty in the second. This means that, if we were asked to predict the next hour (or the next 24 hours) within a time frame of less than an hour (e.g., to publish the early prediction of the upcoming hour or hours online), we would have succeeded. Nevertheless, by using the second dataset, we would certainly not be able to complete a 15-minute forecast with the 15-minute time window.

3.5. Feature importance and collinearity

The importance coefficients of regression for both multivariate models are shown in the following Fig 16

Fig 16. Feature importance.

Fig 16

Regression coefficients on validation data.

What we observe here is:

  • i) There is no variable without an importance, as no coefficient is zero.

  • ii) The past data of the target variable (solar energy production) play a more important role in the TCN models (coefficients 0.93 and 1 for the two datasets respectively), while the linear regression mostly relies on the external features, such as the height of the sun (variable ‘H-sun’ measured in degrees), with the coefficients being lower than 0.2 and 0.5 respectively.

  • iii) The sun’s height is an important factor for all models, although with a negative coefficient in the case of the TCN model and the 15-minute dataset.

  • iv) As shown in the above figure, g(i) variables of irradiance do not seem to play an important role. Nevertheless, we cannot exclude them, since they are statistically significant and, in this case, we could get a bigger error (nMAE). For the one-hour dataset the error would increase from 4.10% to 4.13%, and 1.88% from 1.79% for 15-minute dataset respectively. For the entire dataset, without training and validation sets, we can measure the correlation importance of each input variable to the target, as shown in the following Table 5:

Table 5. Regression coefficients and impact (all data).

Coefficientsa
Model Unstandardized Coefficients Standardized Coefficients t Sig. Collinearity Statistics
B Std. Error Beta Tolerance VIF
1 (Constant) 420.423 6,431 65.374 0.000
Madrid_G(i) 1.259 ,065 .216 19.477 .000 .076 13.181
Seville_G(i) 2.322 ,082 .406 28.378 .000 .046 21.907
Madrid_H_sun 89.163 2,464 1.082 36.184 .000 .010 95.734
Seville_H_sun −69.172 2,459 −.877 28.128 .000 .010 104.226

a. Dependent Variable: generation solar

In the real-world scenario, when all data are treated both as training and validation sets, from the above table, we can see that all input variables are important with a statistical significance below 0.05 (column ‘Sig’ for a two-tailed significance) with the standardized coefficient (column ‘beta’ unnormalized) being above 1 for the variable ‘Madrid_H_sun’ and too low for the others. Nevertheless, because all variables have a statistical significance, this is why the errors would be higher for the validation data, if we exclude the less important variables.

Finally, collinearity is observed when the weather variables are related to each other as they have similar or even higher correlation to the target data, e.g., Madrid global irradiance and Madrid sun height show similar correlation to the energy of round 0.80, while there is a stronger correlation between them (around 0.94). In the above table, the VIF (Variance Inflation Factor) column confirms that several weather predictors — particularly the sun-height variables — exceed the conventional multicollinearity threshold of VIF > 10, and in the case of Seville_H_sun (VIF ≈ 104) even surpass the threshold of 100. It is important to recognise, however, that VIF is a diagnostic tool developed for ordinary least-squares (OLS) linear regression, where multicollinearity inflates the variance of coefficient estimates and undermines their interpretability. In a neural network context no such linear coefficients are estimated, so high VIF values do not compromise model stability or predictive accuracy. This is confirmed empirically by the model results: the multivariate TCN achieves R² values of 0.9983 and 0.9997 for the 1-hour and 15-minute datasets respectively, demonstrating that the correlated weather features collectively provide highly informative signals. The VIF analysis was therefore included to characterise inter-feature collinearity structure, not to apply regression-style exclusion criteria.

3.6. Discussion

3.6.1. Energy forecast.

Forecasting for a single area or power station is less complex than forecasting for an entire country. In the latter case, both energy and weather values must be calculated as averages or totals across different regions, each with its own unique characteristics. For example, solar energy production may be higher in Central Spain, where larger generators are located, compared to the northern regions. Additionally, although summer weather is generally similar throughout Spain, specific days may be cloudy in some areas while sunny in others. Despite these challenges, this study has confirmed the feasibility of predicting solar energy production for an entire country composed of numerous power production units, as posed by the research questions in the Introduction

According to Mousa Afrasiabi et al. [30], the objective of the analysis and forecast should be to minimize energy loss and the agent’s operation cost. These include all power production means, such as conventional distributed generators, and emerging more environment-friendly technologies like wind turbines, photovoltaics, battery storage systems, etc. For this purpose, the current research’s forecast horizon has been extended from short-term up to mid-term forecast, i.e., from just one hour to a week [31] or even an entire month [32]. The latter highlights the need to address the problem of estimating the energy consumption on the customer level. At the same time, from the study described in this paper, it is observed that the problem of energy consumption forecasting is a time series regression task, as this is evident from the current literature and provided that a kind of linearity should exist (linear or logarithmic), and seasonality as well.

Deep learning algorithms, with the help of artificial neural networks, especially LSTM models, are now commonly used, as they provide higher capabilities and potentials than traditional forecasting tools, such as linear regression models. It is crucial, however, not to overestimate these potentials, especially in long-term forecasting and, more specifically, in the field of energy, as energy production or consumption is affected by various conditions and parameters. Long-term estimates of energy potential for the next 100 years, for example, cannot be reliable as it is not possible to foresee the parameters that influence it, such as climate behavior, population growth, development of the economy, etc.

Among prior studies targeting national-level solar energy production in Spain, Cabello-López et al. [20] provide the most direct point of comparison. Using ESIOS data with a multivariate CNN-LSTM architecture, they achieve a mean absolute error of 67.32 MWh for the 1-hour horizon, outperforming the official Spanish system operator forecast by 47.58%. The present work achieves 58.37 MW for the same horizon, a broadly comparable result; a direct numerical comparison is limited, however, by differences in dataset coverage periods (2015–2018 in our 1-hour dataset versus 2015–2021 in Cabello-López et al.), during which Spain’s installed solar capacity grew substantially. In relative terms, our multivariate TCN achieves nMAE values of 4.10% (1-hour) and 1.79% (15-minute). The 15-minute resolution at national level has not been addressed by prior studies, making the latter result a novel contribution without a direct published benchmark.

Bhatt et al. (2022) [33] used a total dataset of 18,277 values from average 15-minute interval global solar irradiance data collected from January 1, 2016, to January 6, 2017, from the Asian Institute of Technology (AIT) Meteorological station to train and evaluate the performance of the DL models. This work aimed to forecast the solar irradiance for various forecast horizons/steps, from 1 step (15 minutes) to 6 steps (1 hour 30 min) ahead. Although the results regard the solar irradiance and not the solar energy production itself, it is interesting to look at the results since the researchers used (among others) a neural network (an LSTM model) to predict the irradiance on which the solar energy is based and highly associated. The MAPE in that research was calculated (for the best model) at 10.19% for a 15-minute forecast, and the correlation was 0.999, similar to our model of 0.9997. For the one-hour-ahead forecast, the MAPE was found to be relatively 70.51%, and the correlation was 0.979, certainly worse than in our model. At this point, it should be noted that forecasted irradiance values do not mean that the possible solar energy forecasted values would give the same results when the first (solar irradiance) values are used as future inputs to the second (solar energy), but rather would definitely result in lower than those due to the learning and regression process of the used model, while require a 100% correlation of solar irradiance data with solar energy to be so, which may not always be the case.

Y. Li et al. (2023) [17] use 5-minute field data collected from 95 utility-scale PV farms in North Carolina spanning January to November 2020, split into training (70%), validation (10%), and testing (20%), to develop and validate a hybrid TCN-based forecasting framework. The Root Mean Square Error (RMSE) between real and forecasted values was found 43.17, given that the maximum production was 400 KW in October. This work incorporates a physics-based model, meaning weather data, such as cloud data. Considering that in our work we have no weather data for this period, but only solar energy data, we tested a TCN model with scaled data from 0 to 400 MW, and the RMSE was found to be only 12.64, although the data distribution is quite different from those in the US, as shown in the following Fig 17 (on the left is the forecast provided by Y. Li et al).

Fig 17. Solar energy forecast (one hour ahead).

Fig 17

Solar energy forecast in Spain.

Comparing our correlation of true and forecasted values of the 15-minute dataset with 56,445 values our TCN model, to the one found in the work of Aman et al. (2023) [34] with 52,560 10-minute values (from 24 November, 2021 to 24 November, 2022) with a hybrid CNN-LSTM model, we measure correlation coefficient of 0.99973 (for every sun condition) against the 0.9898, which is the best found of this study (with sunny weather conditions). It is evident that our model seems better in this comparison too.

The TCN model was also found to achieve the best performance in the study of M. Abdelsattar et al. (2025) [35] on forecasting the solar energy production. This comparative research has been conducted with 4,200 samples of historical records of solar power generation along with a total of 20 meteorological and solar positional features input features. From a total of eight models, TCN gave the best results; R of 0.7786 and RMSE of 429.4863. While these results are very good, they fall far short of our TCN model’s metrics, but we have to keep in mind that we have used far more data than just 4,200 records. All models, but especially neural networks show better performance as more data are available.

Apart from the above models, our TCN model also outperforms older one-hour ahead forecasting techniques (e.g., by using python keras [36] LSTM with the same epochs and at a similar running time), the forecast errors are clearly better than those of a linear regression, but worse than a darts TCN; MAE and nMAE were calculated 64.05 and 4.50% respectively (around 10% worse), while MAPE was 50.21 (around 30% worse). The correlation 0.9982 and success rate 87.81% are also lower than the TCN model. Around half of these differences can be observed for the 15-minute forecast.

The following Table 6 below provides a structured comparison of these studies and the proposed system.

Table 6. Comparison with prior studies on short-term solar energy forecasting.
Study Method Target/ Scale Horizon Key Error Metric R²/ r
Cabello-López et al. [20] (2023) CNN-LSTM (multivariate) National solar energy, Spain (ESIOS data) 1h, 24h, 48h MAE: 67.32 MWh —
Y. Li et al. [17] (2023) Hybrid TCN (physics-informed) PV farm energy, US (95 plants) Up to 6h (5-min resolution) RMSE: 43.17 kW (rainy, 6h horizon) —
Bhatt et al. [33] (2022) LSTM Solar irradiance, Thailand (single site) 15-min to 90-min MAPE: 10.19% (15-min) r = 0.999
Aman et al. [34] (2023) CNN-LSTM Solar energy, 10-min interval 10-min — R² = 0.9898
Abdelsattar et al. [35] (2025) TCN Solar energy (4,200 samples) Short-term RMSE: 429.49 R² = 0.779
This work TCN (past-covariate, multivariate) National solar energy, Spain 1h + 15-min sMAPE: 20.93%/20.34%; MAE: 58.37/62.05 MW; nMAE: 4.10%/1.79% R = 0.9983/0.9997

A further observation concerns the separation of architecture effects from feature augmentation effects. Across both forecasting horizons, the dominant driver of improvement differs. In the one-hour scenario, the TCN architecture itself provides the larger share of the gain: even without weather covariates, TCN_univariate reduces sMAPE by 51% relative to the multivariate LR baseline, and the subsequent addition of weather features yields only a marginal further reduction of approximately 5%. In the 15-minute scenario, the pattern reverses: the architecture contribution is modest (3.3% sMAPE improvement when comparing multivariate LR to multivariate TCN), while the feature contribution is dominant (weather covariates reduce TCN sMAPE by 39% relative to the univariate TCN). This asymmetry is consistent with the physics of solar forecasting: at hourly granularity, production is strongly autocorrelated and a temporal architecture can exploit this structure effectively; at 15-minute granularity, rapid cloud-cover transitions break autocorrelation more severely, making real-time weather inputs proportionally more valuable. These findings suggest that the two model components — TCN architecture and multivariate weather features — are complementary rather than redundant, and that their relative contributions are resolution-dependent.

3.6.2. Limitations and benefits.

From a technical point of view, artificial networks show great potential compared to traditional methods. They allow for extensive customization and optimization and can be used to forecast various values, including energy.

Regarding modelling energy forecasting, it is observed that the optimal investment and operations of integrated local energy systems require medium to long-term prediction of energy consumption [8]. The problem, though, is that a very long-term energy prediction could be problematic as all prediction models lose accuracy as the forecast horizon grows. Furthermore, it is questionable how useful a prediction of this kind would be. For instance, if we have to predict an entire month for each hour of solar energy prediction, the error of the estimate would be enormous. In the aforementioned work of Bhatt et al. (2022), six forecast horizons were used to predict solar irradiance as steps of 15 minutes: from one step (15 minutes) to six steps ahead (90 minutes). The results showed that, in the last case of six steps, the MAE was increased almost seven times with the better model.

In contrast, it would be more feasible to accomplish monthly daily predictions as a summary or by using trend analysis or a combination of these two methods. Establishing predictions of shorter periods and then estimating more extended periods on greater scales is undoubtedly more reliable. If the goal is to preserve sustainable development with the protection of the environment, monitoring the energy demand on a shorter scale would provide certain benefits. These may include the following:

- Better forecast accuracy enables more efficient integration of solar energy into the grid.

- Improvement of network management and system balancing by allowing grid operators to anticipate fluctuations in solar power generation and better plan for grid stability.

- On the other hand, renewable energy generators also benefit from optimizing their intra-day and day-ahead electricity market trading strategies, increasing the profitability and efficiency of their operations [37].

As far as the needed technological infrastructure is concerned, as shown in the results, the training of neural networks requires a lot more time compared to traditional models. In addition, the requirements include modern equipment, such as powerful graphics cards and very powerful computer system configurations overall. The training time of neural networks is significantly longer than that of a simple linear regression, as our tests showed that the best forecast was found almost at the end of the training of almost 100 epochs. In addition, when using Python libraries for neural networks (e.g., PyTorch, Keras, etc.), some minor differences may be observed when neural models are executed on graphics cards on dissimilar hardware (CPU or GPU) or even with operating systems. As an example, when we executed both neural models in Ubuntu 22.04 and Windows 11 with the same libraries on the same machine, we measured a nMAE difference of 1% and 3% for the two tested datasets (4.09% in Ubuntu instead of 4.10% on Windows and 1.82% instead of 1.79% respectively). Although not very significant, we should point out that this is caused by the different computation of floating points and how these two operating systems treat python computing.

3.6.3. Electricity optimization and efficiency.

With our research, we show how to optimize the forecast of the solar energy production with the use of modern AI techniques, in terms of a robust and early prediction in short or very short-term intervals; one hour or fifteen minutes. Higher precision enables better balancing of energy demand and production, allowing grid operators to monitor and intervene early in the production process. However, electricity estimation exceeds this aspect. Consistent monitoring and maintenance are crucial to guarantee dependable energy generation from PV panels. It has been found [38] that PV panels can develop cracks that can have a substantial effect on their overall performance and efficiency. Therefore, by using Deep Learning (DL) and Residual Network (ResNet) techniques, it is feasible that accurate cracking detection can be achieved using Electroluminescence (EL) images of solar panels. Another approach [39] has been used to track these panels failures by using image processing techniques and imaging technologies, based on neural networks. Other researchers [40] perform digital simulations to investigate the efficiency of a power control system by checking parameters of uncertainties and load disturbances of the frequencies inside the power grid.

In our study, we use weather data from the five major areas of Spain, taking into account that these areas can cover the most significant points of the horizon; from north to south and from west to east. In another approach of 2023 [41], not for solar energy, but for energy from wind turbines, the researchers propose to find out the advantages of specific areas in Egypt, which could be ideal for setting up major wind power generation projects, based on huge historical wind speed datasets obtained at 50 m height over 20–30 years. Finally, optimizing energy use for electric vehicles, would have a double goal: the energy efficiency and the reduction of the environmental load. This kind of research [42–45] can contribute to successfully address these two challenges by using neural networks and special engine controllers towards a motor efficiency. Specifically, the work of S. Patel, S. Yadav and N. Tiwari (2025) [44] targets to reduce environmental issues and decrease dependency on fossil fuels by optimizing driving with two engine controllers; a custom neural (CN) and an integrating deep learning (DL) adaptive controller. They prove that they have achieved a 17.5% improvement in energy efficiency compared to a traditional speed controller. The adaptive DL controller provides a 20% faster response time in regulating the torque output during dynamic driving conditions.

4. Conclusions

The multivariate Temporal Convolutional Network achieves R² of 0.9983 and 0.9997 for the 1-hour and 15-minute datasets respectively, with nMAE of 4.10% and 1.79%, and reduces sMAPE by 54% relative to the linear regression baseline in the hourly scenario. These results — obtained on national-level aggregated solar production for Spain using ENTSO-E data — confirm that very short-term photovoltaic nowcasting is feasible at the national grid scale, extending prior work that addressed either hourly horizons only or individual-site architectures.

The principal theoretical contribution is the demonstration that past-only weather covariates — solar irradiance and sun height — are sufficient for accurate forecasting without requiring future meteorological predictions as input. This eliminates a key circular dependency present in many feature-augmented forecasting pipelines. A secondary finding is a resolution-dependent asymmetry: at 1-hour granularity, temporal autocorrelation carries most predictive signal and the TCN architecture alone surpasses the multivariate linear baseline; at 15-minute granularity, rapid atmospheric variability reduces autocorrelation and makes weather inputs proportionally more valuable. This asymmetry has practical implications for sensor infrastructure and system design.

Feature selection showed that solar irradiance and sun height — with average correlations of approximately 0.79 (1-hour) and 0.55 (15-minute), substantially higher than temperature — were the only covariates that contributed meaningfully; temperature was excluded as insufficiently correlated (r ≈ 0.37 for 1-hour, r ≈ −0.05 for 15-minute).

Limitations include the restriction to Spanish national aggregates and fixed training windows (2015–2018 for the hourly dataset; 2022–2023 for the 15-minute dataset); as installed PV capacity grows, periodic retraining will be necessary. Future work could explore probabilistic TCN variants for uncertainty quantification, extend the forecasting horizon beyond 15 minutes, and investigate transfer learning across national grids.

Acknowledgments

We acknowledge the contribution of the Computer Science Department of the University of Alcalá de Henares and the private corporation ‘In2AI - Artificial Intelligence (AI) Consulting and Solutions’ for their support to complete this research. We declare and verify that the work described has not been published previously or submitted elsewhere

Abbreviations

AI

Artificial Intelligence

ANN

Artificial Neural Networks

API

Application Program Interface

BES

Battery Energy Storage

CNN

Convolutional Neural Networks

CPU

Central Processing Unit

DL

Deep Learning

ENTSO-E

European Network of Transmission System Operators for Electricity

E-SIOS

System Operator Information System (e-sios)

GRU

Gated Recurrent Units (Neural Networks)

GPU

Graphics Processing Unit

Km/h

Kilometers per hour

KWh

Kilowatt-hours

LSTM

Long short-term memory

MAE

Mean Absolute Error

MAPE

Mean Absolute Percentage Error

MW

Mega Watts

nMAE

Normalized Mean Absolute Error

OECD

Organization for Economic Co-operation and Development

PV

Photovoltaic Plant

PVGIS

Photovoltaic Geographical Information System

RNN

Recurrent Neural Networks

TCN

Temporal Convolutional Network

TSOs

European transmission System operators

TWh

Terawatt-hours

VIF

Variance Inflation Factor

Data Availability

Data can be found free on the following GitHub repository: https://github.com/luxorsatellite/Darts_tcn/tree/main. Alternatively, it can be downloaded from its original sources through the websites referred to in the manuscript.

Funding Statement

The author(s) received no specific funding for this work.

References

  • 1.International Energy Agency-IEA. Electricity Information. 2021.
  • 2.Electricity Overview. https://www.iea.org/reports/electricity-information-overview. 2021. Accessed 2025 August 31.
  • 3.Electricity 2024 analysis and forecast to 2026. 2024. https://iea.blob.core.windows.net/assets/18f3ed24-4b26-4c83-a3d2-8a1be51c8cc8/Electricity2024-Analysisandforecastto2026.pdf
  • 4.Worldometer. From 1950 to current year: elaboration of data by United Nations, Department of Economic and Social Affairs, Population Division, World Population Prospects: The 2019 Revision. http://www.Worldometers.info. 2020. Accessed 2025 August 31.
  • 5.International Energy Agency IEA. IEA electricity information (2022 edition). 2022. http://wds.iea.org/wds/pdf/ele_documentation.pdf/
  • 6.Paramati SR, Shahzad U, Doğan B. The role of environmental technology for energy demand and energy efficiency: Evidence from OECD countries. Renewable and Sustainable Energy Reviews. 2022;153:111735. doi: 10.1016/j.rser.2021.111735 [DOI] [Google Scholar]
  • 7.Sorrell S. Reducing energy demand: A review of issues, challenges and approaches. Renewable and Sustainable Energy Reviews. 2015;47:74–82. doi: 10.1016/j.rser.2015.03.002 [DOI] [Google Scholar]
  • 8.Taheri S, Jooshaki M, Moeini-Aghtaie M. Long-term planning of integrated local energy systems using deep learning algorithms. International Journal of Electrical Power & Energy Systems. 2021;129:106855. doi: 10.1016/j.ijepes.2021.106855 [DOI] [Google Scholar]
  • 9.Castro R. An introduction to renewable energies. 1st ed. Portugal: IST Press. 2011. [Google Scholar]
  • 10.Singh A, Shimi SL. MATLAB / SIMULINK Simulation of PV System Based on MPPT in Variable Irradiance with EV Battery as Load. In: 2017 IEEE International Conference on Computational Intelligence and Computing Research (ICCIC), 2017. 1–4. 10.1109/iccic.2017.8524563 [DOI]
  • 11.Sabareesh SU, Aravind KSN, Chowdary KB, Syama S, Devi V S K. LSTM Based 24 hours Ahead Forecasting of Solar PV System for Standalone Household System. Procedia Computer Science. 2023;218:1304–13. doi: 10.1016/j.procs.2023.01.109 [DOI] [Google Scholar]
  • 12.ENTSO-E. Demand forecasting methodology V1.1. 2019. https://eepublicdownloads.entsoe.eu/clean-documents/sdc-documents/MAF/2020/Demand_forecasting_methodology_V1_1.pdf
  • 13.Nam K, Hwangbo S, Yoo C. A deep learning-based forecasting model for renewable energy scenarios to guide sustainable energy policy: A case study of Korea. Renewable and Sustainable Energy Reviews. 2020;122:109725. doi: 10.1016/j.rser.2020.109725 [DOI] [Google Scholar]
  • 14.Soroush R, Amir A. Effective energy consumption parameters in residential buildings using Building Information Modeling. Global Journal of Environmental Science and Management. 2020;6(4):467–80. doi: 10.22034/gjesm.2020.04.04 [DOI] [Google Scholar]
  • 15.Bai S, Kolter JZ, Koltun V. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. CoRR. 2018. doi: 10.48550/arXiv.1803.01271 [DOI] [Google Scholar]
  • 16.Nvidia. Convolutional Neural Network – What Is It and Why Does It Matter. https://www.nvidia.com/en-eu/glossary/convolutional-neural-network/. 2025. Accessed 2025 August 31.
  • 17.Li Y, Song L, Zhang S, Kraus L, Adcox T, Willardson R, et al. A TCN-Based Hybrid Forecasting Framework for Hours-Ahead Utility-Scale PV Forecasting. IEEE Trans Smart Grid. 2023;14(5):4073–85. doi: 10.1109/tsg.2023.3236992 [DOI] [Google Scholar]
  • 18.Balraj G, Victoire AA, S J, Victoire A. Variational mode decomposition combined fuzzy-Twin support vector machine model with deep learning for solar photovoltaic power forecasting. PLoS One. 2022;17(9):e0273632. doi: 10.1371/journal.pone.0273632 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Zameer A, Jaffar F, Shahid F, Muneeb M, Khan R, Nasir R. Short-term solar energy forecasting: Integrated computational intelligence of LSTMs and GRU. PLoS One. 2023;18(10):e0285410. doi: 10.1371/journal.pone.0285410 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Cabello-López T, Carranza-García M, Riquelme JC, García-Gutiérrez J. Forecasting solar energy production in Spain: A comparison of univariate and multivariate models at the national level. Applied Energy. 2023;350:121645. doi: 10.1016/j.apenergy.2023.121645 [DOI] [Google Scholar]
  • 21.Kaggle. Hourly energy demand generation and weather. https://www.kaggle.com/datasets/nicholasjhana/energy-consumption-generation-prices-and-weather. 2019. Accessed 2025 August 31.
  • 22.OpenWeather. Weather API. https://openweathermap.org/api/. 2025. Accessed 2025 August 31.
  • 23.European Commission. Photovoltaic Geographical Information System (PVGIS). https://joint-research-centre.ec.europa.eu/photovoltaic-geographical-information-system-pvgis_en. 2024. Accessed 2025 August 31.
  • 24.Python. https://www.python.org/. Accessed 2025 August 31.
  • 25.PyPi.org. Darts. https://pypi.org/project/darts/. Accessed 2025 August 31.
  • 26.Optuna. A hyperparameter optimization framework. https://optuna.org/. Accessed 2025 August 31.
  • 27.Ray D. Using PyTorch Lightning with Tune — Ray 2.41.0. https://docs.ray.io/en/latest/tune/examples/tune-pytorch-lightning.html/. Accessed 2025 August 31. [Google Scholar]
  • 28.Pytorch. https://pytorch.org/. Accessed 2025 August 31.
  • 29.Nvidia D. Nvidia Toolkit. https://developer.nvidia.com/cuda-toolkit. Accessed 2025 August 31. [Google Scholar]
  • 30.Afrasiabi M, Mohammadi M, Rastegar M, Kargarian A. Multi-agent microgrid energy management based on deep learning forecaster. Energy. 2019;186:115873. doi: 10.1016/j.energy.2019.115873 [DOI] [Google Scholar]
  • 31.Berriel RF, Lopes AT, Rodrigues A, Varejao FM, Oliveira-Santos T. Monthly energy consumption forecast: A deep learning approach. In: 2017 International Joint Conference on Neural Networks (IJCNN), 2017. 4283–90. 10.1109/ijcnn.2017.7966398 [DOI]
  • 32.Ahmad T, Chen H. Deep learning for multi-scale smart energy forecasting. Energy. 2019;175:98–112. doi: 10.1016/j.energy.2019.03.080 [DOI] [Google Scholar]
  • 33.Bhatt A, Ongsakul W, M. NM, Singh JG. Sliding window approach with first-order differencing for very short-term solar irradiance forecasting using deep learning models. Sustainable Energy Technologies and Assessments. 2022;50:101864. doi: 10.1016/j.seta.2021.101864 [DOI] [Google Scholar]
  • 34.Aman R, Rizwan M, Kumar A. Novel and efficient hybrid deep learning approach for solar photovoltaic power forecasting considering meteorological parameters. 2023. doi: 10.21203/rs.3.rs-3260351/v1 [DOI] [Google Scholar]
  • 35.Abdelsattar M, Azim MA, AbdelMoety A, Emad-Eldeen A. Comparative analysis of deep learning architectures in solar power prediction. Sci Rep. 2025;15(1):31729. doi: 10.1038/s41598-025-14908-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Python keras. https://pypi.org/project/keras/. 2025. Accessed 2025 August 31.
  • 37.GridX. Home Energy Management System, HEMS Report. 2024. https://www.linkedin.com/pulse/ai-machine-learning-solar-discuss-how-artificial-optimizing-gupta-lhdtf/
  • 38.Abdelsattar M, AbdelMoety A, Emad-Eldeen A. ResNet-based image processing approach for precise detection of cracks in photovoltaic panels. Sci Rep. 2025;15(1):24356. doi: 10.1038/s41598-025-09101-z [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Abdelsattar M, AbdelMoety A, Emad-Eldeen A. A Review on Detection of Solar PV Panels Failures Using Image Processing Techniques. In 2023 24th International Middle East Power System Conference (MEPCON). Mansoura, Egypt, 2023. pp. 1–6. doi: 10.1109/MEPCON58725.2023.10462371 [DOI] [Google Scholar]
  • 40.Diab AAZ, El-Sattar MA. Adaptive model predictive based load frequency control in an interconnected power system. In: Moscow and St. Petersburg, Russia, 2018. 604–10. 10.1109/EIConRus.2018.8317170 [DOI]
  • 41.Hafez WA, Elbaset AA. Economic Evaluation of Electrical Wind Energy in Egypt. Power Quality Enhancement of Wind Energy Systems. Springer Nature Switzerland. 2023. p. 161–71. doi: 10.1007/978-3-031-43243-9_7 [DOI] [Google Scholar]
  • 42.Nitesh T, Shekhar Y, Sabha RA. Performance enhancement of DC motor drive for electric vehicle application by using deep neural network. 2023;July:151–82. doi: 10.1504/IJEHV.2023.132034 [DOI] [Google Scholar]
  • 43.Tiwari N, Yadav S, Arya SR. Artificial intelligence and PI gain optimisation for sensorless indirect vector control of induction motor-based electric vehicle drives. International Journal of Ambient Energy. 2024;45(1). doi: 10.1080/01430750.2024.2315485 [DOI] [Google Scholar]
  • 44.Patel S, Yadav S, Tiwari N. Deep learning-enhanced direct torque control of BLDC motors for optimized electric vehicle performance. SAE Int J CAV. 2025;8(4):551–69. doi: 10.4271/12-08-04-0036 [DOI] [Google Scholar]
  • 45.Anurag S, Shekhar Y, Nitesh T, Sandesh P. Performance enhancement of DC motor drive for electric vehicle application by using deep neural network. InterSc. 2025;:145–55. doi: 10.1504/IJICA.2025.148630 [DOI] [Google Scholar]

Decision Letter 0

Dinesh Nishad

29 Jan 2026

-->PONE-D-25-68879-->-->Very short-term production prediction (now-casting) for photovoltaic plants using Artificial Intelligence and Temporal Convolution Networks-->-->PLOS One

Dear Dr. Samaras,

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

-->-->Please submit your revised manuscript by Mar 15 2026 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:-->

  • A letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.

  • A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

  • An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: https://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols.

We look forward to receiving your revised manuscript.

Kind regards,

Dinesh Kumar Nishad, PhD

Academic Editor

PLOS One

Journal Requirements:

When submitting your revision, we need you to address these additional requirements.

1. Please ensure that your manuscript meets PLOS ONE's style requirements, including those for file naming. The PLOS ONE style templates can be found at

https://journals.plos.org/plosone/s/file?id=wjVg/PLOSOne_formatting_sample_main_body.pdf and

https://journals.plos.org/plosone/s/file?id=ba62/PLOSOne_formatting_sample_title_authors_affiliations.pdf

2. Please note that PLOS One has specific guidelines on code sharing for submissions in which author-generated code underpins the findings in the manuscript. In these cases, we expect all author-generated code to be made available without restrictions upon publication of the work. Please review our guidelines at https://journals.plos.org/plosone/s/materials-and-software-sharing#loc-sharing-code and ensure that your code is shared in a way that follows best practice and facilitates reproducibility and reuse.

3. Thank you for stating the following in the Acknowledgments Section of your manuscript:

“We acknowledge the contribution of Computer Science Department the University of Alcalá de Henares and the private corporation ‘In2AI - Artificial Intelligence (AI) Consulting and Solutions’ for their support to complete this research.”

We note that you have provided funding information that is not currently declared in your Funding Statement. However, funding information should not appear in the Acknowledgments section or other areas of your manuscript. We will only publish funding information present in the Funding Statement section of the online submission form.

Please remove any funding-related text from the manuscript and let us know how you would like to update your Funding Statement. Currently, your Funding Statement reads as follows:

“The author(s) received no specific funding for this work.”

Additionally, because some of your funding information pertains to commercial funding we ask you to provide an updated Competing Interests statement, declaring all sources of commercial funding.

In your Competing Interests statement, please confirm that your commercial funding does not alter your adherence to PLOS ONE Editorial policies and criteria by including the following statement: "This does not alter our adherence to PLOS ONE policies on sharing data and materials.” as detailed online in our guide for authors  http://journals.plos.org/plosone/s/competing-interests.  If this statement is not true and your adherence to PLOS policies on sharing data and materials is altered, please explain how.

Please include the updated Competing Interests Statement and Funding Statement in your cover letter. We will change the online submission form on your behalf.

4. Please note that your Data Availability Statement is currently missing the repository name and or the DOI/accession number of each dataset OR a direct link to access each database. If your manuscript is accepted for publication, you will be asked to provide these details on a very short timeline. We therefore suggest that you provide this information now, though we will not hold up the peer review process if you are unable.

5. Thank you for stating the following in the Competing Interests section:

“The authors have declared that no competing interests exist.”

We note that one or more of the authors are employed by a commercial company:  In2AI - Artificial Intelligence (AI) Consulting and Solutions

1.  Please provide an amended Funding Statement declaring this commercial affiliation, as well as a statement regarding the Role of Funders in your study. If the funding organization did not play a role in the study design, data collection and analysis, decision to publish, or preparation of the manuscript and only provided financial support in the form of authors' salaries and/or research materials, please review your statements relating to the author contributions, and ensure you have specifically and accurately indicated the role(s) that these authors had in your study. You can update author roles in the Author Contributions section of the online submission form.

Please also include the following statement within your amended Funding Statement.

“The funder provided support in the form of salaries for authors [insert relevant initials], but did not have any additional role in the study design, data collection and analysis, decision to publish, or preparation of the manuscript. The specific roles of these authors are articulated in the ‘author contributions’ section.”

If your commercial affiliation did play a role in your study, please state and explain this role within your updated Funding Statement.

2. Please also provide an updated Competing Interests Statement declaring this commercial affiliation along with any other relevant declarations relating to employment, consultancy, patents, products in development, or marketed products, etc.

Within your Competing Interests Statement, please confirm that this commercial affiliation does not alter your adherence to all PLOS ONE policies on sharing data and materials by including the following statement: "This does not alter our adherence to  PLOS ONE policies on sharing data and materials.” (as detailed online in our guide for authors http://journals.plos.org/plosone/s/competing-interests) . If this adherence statement is not accurate and  there are restrictions on sharing of data and/or materials, please state these. Please note that we cannot proceed with consideration of your article until this information has been declared.

Please include both an updated Funding Statement and Competing Interests Statement in your cover letter. We will change the online submission form on your behalf.

6. Please include your full ethics statement in the ‘Methods’ section of your manuscript file. In your statement, please include the full name of the IRB or ethics committee who approved or waived your study, as well as whether or not you obtained informed written or verbal consent. If consent was waived for your study, please include this information in your statement as well.

7. Please ensure that you refer to Figures 3, 5, 6, 8 and 12 in your text as, if accepted, production will need this reference to link the reader to the figure.

8. We note that Figure 4 in your submission contain [map/satellite] images which may be copyrighted. All PLOS content is published under the Creative Commons Attribution License (CC BY 4.0), which means that the manuscript, images, and Supporting Information files will be freely available online, and any third party is permitted to access, download, copy, distribute, and use these materials in any way, even commercially, with proper attribution. For these reasons, we cannot publish previously copyrighted maps or satellite images created using proprietary data, such as Google software (Google Maps, Street View, and Earth). For more information, see our copyright guidelines: http://journals.plos.org/plosone/s/licenses-and-copyright.

We require you to either (1) present written permission from the copyright holder to publish these figures specifically under the CC BY 4.0 license, or (2) remove the figures from your submission:

1. You may seek permission from the original copyright holder of Figure 4 to publish the content specifically under the CC BY 4.0 license.

We recommend that you contact the original copyright holder with the Content Permission Form (http://journals.plos.org/plosone/s/file?id=7c09/content-permission-form.pdf) and the following text:

“I request permission for the open-access journal PLOS ONE to publish XXX under the Creative Commons Attribution License (CCAL) CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). Please be aware that this license allows unrestricted use and distribution, even commercially, by third parties. Please reply and provide explicit written permission to publish XXX under a CC BY license and complete the attached form.”

Please upload the completed Content Permission Form or other proof of granted permissions as an "Other" file with your submission.

In the figure caption of the copyrighted figure, please include the following text: “Reprinted from [ref] under a CC BY license, with permission from [name of publisher], original copyright [original copyright year].”

2. If you are unable to obtain permission from the original copyright holder to publish these figures under the CC BY 4.0 license or if the copyright holder’s requirements are incompatible with the CC BY 4.0 license, please either i) remove the figure or ii) supply a replacement figure that complies with the CC BY 4.0 license. Please check copyright information on all replacement figures and update the figure caption with source information. If applicable, please specify in the figure caption text when a figure is similar but not identical to the original image and is therefore for illustrative purposes only.

The following resources for replacing copyrighted map figures may be helpful:

USGS National Map Viewer (public domain): http://viewer.nationalmap.gov/viewer/

The Gateway to Astronaut Photography of Earth (public domain): http://eol.jsc.nasa.gov/sseop/clickmap/

Maps at the CIA (public domain): https://www.cia.gov/library/publications/the-world-factbook/index.html and https://www.cia.gov/library/publications/cia-maps-publications/index.html

NASA Earth Observatory (public domain): http://earthobservatory.nasa.gov/

Landsat: http://landsat.visibleearth.nasa.gov/

USGS EROS (Earth Resources Observatory and Science (EROS) Center) (public domain): http://eros.usgs.gov/#

Natural Earth (public domain): http://www.naturalearthdata.com/

9. If the reviewer comments include a recommendation to cite specific previously published works, please review and evaluate these publications to determine whether they are relevant and should be cited. There is no requirement to cite these works unless the editor has indicated otherwise.

Additional Editor Comments:

Please prepare a substantially revised version of the manuscript addressing all substantive points raised by the reviewers. You are encouraged to thoroughly evaluate, and where appropriate defend, your original reference choices rather than adding references suggested by reviewers; include only those you consider genuinely necessary and justified in your response letter. Please also examine Reviewer 3 comments carefully and correct only those that are factually or methodologically sound, as some uploaded remarks appear to be erroneous or not applicable to your work

[Note: HTML markup is below. Please do not edit.]

Reviewers' comments:

Reviewer's Responses to Questions

-->Comments to the Author

1. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented. -->

Reviewer #1: Partly

Reviewer #2: Yes

Reviewer #3: Partly

**********

-->2. Has the statistical analysis been performed appropriately and rigorously? -->

Reviewer #1: No

Reviewer #2: Yes

Reviewer #3: No

**********

-->3. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.-->

Reviewer #1: No

Reviewer #2: Yes

Reviewer #3: Yes

**********

-->4. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.-->

Reviewer #1: No

Reviewer #2: Yes

Reviewer #3: Yes

**********

-->5. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)-->

Reviewer #1: 1. The writing of the paper needs a lot of improvement in terms of grammar, spelling, and presentation.

2. What is the novelty of this paper?

3. Add a flowchart to show what is done in this study.

4. Most Figures are blurred.

5. The mathematics used throughout the article is still not very strict. Please try to update and illustrate some elements in the mathematical model that are not defined very strictly.

6. The result part is week, results and discussion should be better explained.

7. Revise the conclusions and make it concise, (Better to write the main outcomes)

8. Include some Key Suggested References:

https://doi.org/10.1038/s41598-025-16828-2

https://doi.org/10.1038/s41598-025-14908-x

https://doi.org/10.1038/s41598-025-09101-z

https://doi.org/10.1038/s41598-025-98607-7

DOI: 10.1109/MEPCON58725.2023.10462371

10.1007/978-3-031-43243-9_7

10.1109/EIConRus.2018.8317170

Reviewer #2: The topic is relevant for grid integration of renewables; however, several methodological and reporting issues should be addressed to ensure technical rigor, fair benchmarking, and reproducibility.

1. Please clarify the exact backtesting protocol (rolling/expanding window, retraining frequency, forecast origin) and ensure strict chronological separation (no future covariate leakage via scaling/encoders).

2. You claim irradiance variables are used as “past variables” so no need to forecast weather, but the now-casting setup still needs a clear statement of what is known at prediction time (e.g., at time t, are G(i) and H_sun available up to t only, and prediction is for t+1?).

3. Linear regression alone is too weak for a time-series benchmark. Add classical TS models (e.g., persistence/naïve, SARIMA/ARIMAX, ETS), and modern ML baselines (XGBoost/LightGBM with lag features). Comprehensive Assessment of Solar Agrivoltaics Potential: Systematic Review and Techno-Economic Assessment Modeling Toward Sustainable Food and Energy Production

4. Table 2 shows TCN_univariate performing worse than LR for 15-min (higher sMAPE/MAE, lower success), while multivariate improves. Explain why the univariate TCN degrades (architecture mismatch, insufficient receptive field, scaling, seasonality settings), and include an ablation on receptive field / kernel size / dilation and lag length.

5. Covariates are selected primarily by correlation. Please justify scientifically (and avoid target leakage) by reporting: (a) correlation computed only on training data, (b) lagged correlation/cross-correlation vs lead/lag structure, and (c) multicollinearity handling (many city variables likely correlated).

6. The manuscript discusses MAPE instability for low solar outputs, but still uses MAPE in discussion; also please verify the sMAPE equation formatting/denominator and report confidence intervals (bootstrapped) for MAE/nMAE/sMAPE.

7. Provide full hyperparameters (input length, output length, batch size, epochs actually used after early stopping, optimizer settings, weight decay, random seeds) and code for Darts pipeline. Energy-exergy and environ-economic (4E) analysis of heat storage-based single-slope solar stills integrated with solar air heater

8. “Data can be found free by the appropriate websites…” is not sufficient.

Reviewer #3: 1. The manuscript reports strong aggregate performance metrics; however, class-wise precision, recall, and F1-score are not sufficiently analyzed. Given the multi-class nature of the problem, per-class evaluation and error distribution analysis are required to assess model reliability.

2. The dataset preparation process is described, but statistical details regarding class balance before and after preprocessing are missing. A quantitative summary of class distribution and its impact on training should be included.

3. The model evaluation relies on a single train–validation–test split. The absence of cross-validation or repeated experiments limits confidence in generalization and robustness of the reported results.

4. Comparisons with existing approaches are based on reported results from the literature rather than evaluation under identical experimental conditions. This limits the strength of comparative performance claims.

5. The proposed architecture has a high parameter count, yet no analysis of inference time, computational complexity, or memory footprint is provided, which is critical for assessing real-world applicability.

6. While data augmentation techniques are applied, their individual contribution to performance improvement is not analyzed. An ablation study would strengthen the methodological justification.

7. Reproducibility is insufficiently addressed. The manuscript does not clearly state whether the code, trained models, and configuration details are publicly available, which is essential for PLOS ONE compliance.

8. The discussion section focuses mainly on performance gains and lacks analysis of failure cases or limitations, such as visually similar classes or adverse imaging conditions, which are important for a balanced scientific assessment.

9. The literature review can be strengthened by including additional references related to deep learning and neural network–based approaches.

doi.org/10.1504/IJEHV.2023.132034

https://doi.org/10.1080/01430750.2024.2315485

https://doi.org/10.4271/12-08-04-0036

https://doi.org/10.1504/IJICA.2025.148630

**********

-->6. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review?  For information about this choice, including consent withdrawal, please see our Privacy Policy.-->

Reviewer #1: No

Reviewer #2: No

Reviewer #3: No

**********

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

To ensure your figures meet our technical requirements, please review our figure guidelines: https://journals.plos.org/plosone/s/figures

You may also use PLOS’s free figure tool, NAAS, to help you prepare publication quality figures: https://journals.plos.org/plosone/s/figures#loc-tools-for-figure-preparation.

NAAS will assess whether your figures meet our technical requirements by comparing each figure against our figure specifications.

PLoS One. 2026 Jul 28;21(7):e0354512. doi: 10.1371/journal.pone.0354512.r002

Author response to Decision Letter 1


25 Feb 2026

Thank you all for the very interesting and useful comments. We have created a major revision of the manuscript according to your comments, rewriting and enriching most parts especially after the first Section of Introduction. You can find our responses to all comments in the letter named 'Response to Reviewers.docx'

Attachment

Submitted filename: Response to Reviewers.docx

pone.0354512.s002.docx (552.1KB, docx)

Decision Letter 1

Dinesh Nishad

18 Apr 2026

-->PONE-D-25-68879R1-->-->Very short-term production prediction (now-casting) for photovoltaic plants using Artificial Intelligence and Temporal Convolution Networks-->-->PLOS One

Dear Dr. Samaras,

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

Please submit your revised manuscript by Jun 02 2026 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:-->

  • A letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.

  • A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

  • An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: https://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols.

As the corresponding author, your ORCID iD is verified in the submission system and will appear in the published article. PLOS supports the use of ORCID, and we encourage all coauthors to register for an ORCID iD and use it as well. Please encourage your coauthors to verify their ORCID iD within the submission system before final acceptance, as unverified ORCID iDs will not appear in the published article. Only  the individual author can complete the verification step; PLOS staff cannot  verify ORCID iDs on behalf of authors.

We look forward to receiving your revised manuscript.

Kind regards,

Dinesh Kumar Nishad, PhD

Academic Editor

PLOS One

Journal Requirements:

1. If the reviewer comments include a recommendation to cite specific previously published works, please review and evaluate these publications to determine whether they are relevant and should be cited. There is no requirement to cite these works unless the editor has indicated otherwise.

Additional Editor Comments:

1. Rewrite Abstract in a single para and remove heading Background:, Objective:, Methods: and Results

2. Replace Figure 1, Figure 2 with large size Axis fonts

3. Fig. 4 Flowchart is not clearly visible so replace it , and text should be in black colour.

4. Replace Fig. 8, Fig. 12a, Fig. 12b, and Fig. 14 with large axis font

5. Rewrite section 4 conclusion in 2-3 para, 200-300 words avoid numbering

6. Refer Already published research papers in Plos one for better presentation of this work.

[Note: HTML markup is below. Please do not edit.]

Reviewer's Responses to Questions

-->Comments to the Author

1. If the authors have adequately addressed your comments raised in a previous round of review and you feel that this manuscript is now acceptable for publication, you may indicate that here to bypass the “Comments to the Author” section, enter your conflict of interest statement in the “Confidential to Editor” section, and submit your "Accept" recommendation.-->

Reviewer #4: (No Response)

**********

-->2. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented. -->

Reviewer #4: Partly

**********

-->3. Has the statistical analysis been performed appropriately and rigorously? -->

Reviewer #4: No

**********

-->4. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.-->

Reviewer #4: Yes

**********

-->5. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.-->

Reviewer #4: No

**********

-->6. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)-->

Reviewer #4: 1. Title & Abstract

• The title is clear and representative of the study.

• The abstract states the problem, data source, methods, and some numerical results.

• However, the abstract uses vague or potentially misleading wording such as “regression score” without defining whether this refers to correlation or coefficient of determination.

• The abstract would be stronger if it emphasized the practical significance of the forecast for grid balancing and clarified the exact metric names.

2. Introduction

• The problem is clearly important, and the manuscript explains why short-term solar forecasting matters for energy balancing.

• The introduction is broad and contains useful context, but it is too long and sometimes drifts into general energy background not essential to the research question.

• The research questions are explicitly stated, which is a strength.

• The motivation is relevant, but the research gap should be framed more sharply against prior solar forecasting studies rather than against very broad energy-forecasting literature.

3. Related Work

• The paper cites a substantial body of prior work, including solar forecasting, wind forecasting, and deep learning approaches.

• However, the comparison is often descriptive rather than critical.

• The literature review mixes directly relevant studies with less relevant material from NLP, speech, and generic convolutional-network applications, which weakens focus.

• The manuscript should compare more directly against recent solar forecasting studies using comparable targets, horizons, and datasets.

4. Methodology

• This is the most serious weakness of the paper.

• The section labeled as TCN includes LSTM-style equations for input, forget, cell, and output gates. These are not TCN equations and should not be used to describe a temporal convolutional network.

• The manuscript later mentions dilated convolutions, kernel size, and dilation base, but the overall architectural description remains conceptually inconsistent.

• The reported hyperparameters are useful, but reproducibility is still incomplete because the forecasting protocol, retraining schedule, scaler fitting procedure, and exact backtesting design are not fully specified.

• The “real-world scenario” is especially problematic because it states that all data are used simultaneously as training and validation, which is not a valid evaluation setup.

• Covariate selection is based mainly on correlation, while strong multicollinearity is acknowledged but not handled rigorously. The response that the network can learn the best lag structure is not a sufficient methodological justification.

5. Results

• Results are presented numerically in tables and visually in plots, which is good.

• The hourly multivariate TCN improves clearly over the reported linear-regression baseline, especially in sMAPE and nMAE.

• However, the 15-minute univariate TCN performs worse than the linear-regression baseline, while the multivariate TCN gives only modest gains. This deserves a fuller explanation.

• The benchmark is too weak: comparison only against linear regression is not enough to support strong claims about superiority of AI or deep learning.

• Metrics are also not fully satisfactory. The manuscript uses MAE, nMAE, MAPE/sMAPE, “success,” F1 score, and cross-validation “accuracy,” but the classification-style metrics are insufficiently justified for a regression problem.

• The manuscript also refers to Pearson correlation as R2, which is conceptually confusing.

6. Discussion

• The discussion identifies some practical implications of improved short-term forecasting.

• However, several claims are overstated. The manuscript argues that its results are better than most previous studies, but many of those comparisons are not like-for-like because they involve different targets, geographies, horizons, and covariates.

• Some parts of the discussion move too far from the core contribution, especially the subsection on “electricity optimization and efficiency,” which reads more like a general expansion than a focused interpretation of the present results.

• Limitations are mentioned, but they should be discussed more directly: dependence on selected weather variables, potential leakage issues, limited baseline set, and uncertain generalizability beyond Spain.

7. Conclusion

• The conclusion restates the main findings and links them back to the research questions.

• However, it repeats some over-strong claims and should be moderated.

• A stronger conclusion would summarize the real contribution more carefully: country-level PV now-casting with public data, evidence that past weather covariates help, and a need for stronger future validation and benchmarking.

8. References

• The paper includes both older foundational references and some recent works.

• That said, the reference list is unevenly curated. Some citations are only indirectly relevant, and the literature review should be tightened around recent solar-energy forecasting studies.

• Formatting and consistency also need attention.

Originality

The application of TCN-style forecasting to aggregated national PV generation is potentially valuable, especially with both hourly and 15-minute public data. The idea is not wholly novel at the algorithmic level, but the application context has some originality.

Contribution

The paper’s main contribution is practical rather than theoretical: it explores whether short-term country-scale PV now-casting is feasible and whether weather covariates improve it. That contribution is useful, but it is currently weakened by poor benchmarking and unclear methodology.

Technical quality

Currently not strong enough. The incorrect TCN description, weak validation design, unclear regression/classification metrics, and limited baselines all reduce confidence in the technical rigor.

Clarity

The manuscript is difficult to read in places because of grammar issues, inconsistent terminology, and formatting artifacts.

Organization

The paper has a recognizable structure, but numbering, section flow, and presentation need cleanup. Discussion material is not always well separated from results.

Main weaknesses

• Incorrect TCN methodological description.

• Weak baseline comparison.

• Unclear temporal validation and possible leakage concerns.

• Poorly justified use of classification-style accuracy metrics for regression.

• Overstated comparative claims.

• Serious formatting and manuscript-hygiene problems.

**********

-->7. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review?  For information about this choice, including consent withdrawal, please see our Privacy Policy.-->

Reviewer #4: Yes: Waleed A. Ali

**********

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

To ensure your figures meet our technical requirements, please review our figure guidelines: https://journals.plos.org/plosone/s/figures

You may also use PLOS’s free figure tool, NAAS, to help you prepare publication quality figures: https://journals.plos.org/plosone/s/figures#loc-tools-for-figure-preparation.

NAAS will assess whether your figures meet our technical requirements by comparing each figure against our figure specifications.

PLoS One. 2026 Jul 28;21(7):e0354512. doi: 10.1371/journal.pone.0354512.r004

Author response to Decision Letter 2


14 May 2026

Dear Editor and Reviewers,

Thank you all for your comments. We have created a second revision of the manuscript, by modifying and rewriting to achieve the best outcome. You can see our responses to comments in the Response to Reviewers.docx file.

Attachment

Submitted filename: Response_to_Reviewers_auresp_2.docx

pone.0354512.s003.docx (82.1KB, docx)

Decision Letter 2

Dinesh Nishad

27 May 2026

-->PONE-D-25-68879R2-->-->Very short-term production prediction (now-casting) for photovoltaic plants using Artificial Intelligence and Temporal Convolution Networks-->-->PLOS One

Dear Dr. Samaras,

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

Please submit your revised manuscript by Jul 11 2026 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.-->--> -->-->Please include the following items when submitting your revised manuscript:-->

  • A letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.

  • A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

  • An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: https://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols.

As the corresponding author, your ORCID iD is verified in the submission system and will appear in the published article. PLOS supports the use of ORCID, and we encourage all coauthors to register for an ORCID iD and use it as well. Please encourage your coauthors to verify their ORCID iD within the submission system before final acceptance, as unverified ORCID iDs will not appear in the published article. Only  the individual author can complete the verification step; PLOS staff cannot  verify ORCID iDs on behalf of authors.

We look forward to receiving your revised manuscript.

Kind regards,

Dinesh Kumar Nishad, PhD

Academic Editor

PLOS One

Journal Requirements:

If the reviewer comments include a recommendation to cite specific previously published works, please review and evaluate these publications to determine whether they are relevant and should be cited. There is no requirement to cite these works unless the editor has indicated otherwise.

Additional Editor Comments:

At this stage fulfill and answer all the reviewers' comments carefully.

[Note: HTML markup is below. Please do not edit.]

Reviewers' comments:

Reviewer's Responses to Questions

-->Comments to the Author

1. If the authors have adequately addressed your comments raised in a previous round of review and you feel that this manuscript is now acceptable for publication, you may indicate that here to bypass the “Comments to the Author” section, enter your conflict of interest statement in the “Confidential to Editor” section, and submit your "Accept" recommendation.-->

Reviewer #5: (No Response)

Reviewer #6: (No Response)

**********

-->2. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented. -->

Reviewer #5: Partly

Reviewer #6: Yes

**********

-->3. Has the statistical analysis been performed appropriately and rigorously? -->

Reviewer #5: No

Reviewer #6: Yes

**********

-->4. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.-->

Reviewer #5: Yes

Reviewer #6: Yes

**********

-->5. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.-->

Reviewer #5: No

Reviewer #6: Yes

**********

-->6. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)-->

Reviewer #5: This manuscript was read with genuine interest and careful attention throughout. The study addresses a practically important and timely research problem: the very short-term forecasting of aggregated solar photovoltaic energy production at the national level using Temporal Convolutional Networks and weather covariates. The work is built on a substantial volume of real-world data sourced from ENTSO-E, and the overall research design - including the use of both hourly and 15-minute intervals, the incorporation of exogenous meteorological variables, and the real-world out-of-sample scenario - reflects a genuine effort to bridge methodological rigor with practical applicability. The comparative analysis across multiple model configurations and the transparent reporting of hardware requirements further add to the value of the work. The topic is well-suited for the scope of PLOS ONE, and the manuscript shows clear potential. However, a number of issues were identified during the review that require the authors' attention before the manuscript can be considered for publication. These are detailed below.

1-

Section 2.5 (“The TCN model”) contains equations that correspond to a standard LSTM architecture rather than a Temporal Convolutional Network (TCN). Specifically, Equations (3)-(8) define recurrent gating mechanisms and hidden/cell state transitions ((i_t, f_t, o_t, c_t, h_t)), which are characteristic of LSTM-based recurrent neural networks.

However, TCN architectures are fundamentally convolution-based and typically rely on causal convolutions, dilated convolutions, receptive fields, and residual connections instead of recurrent hidden states and gating operations. Therefore, the current formulation creates substantial methodological ambiguity regarding the actual implemented architecture.

The authors should carefully revise this section to ensure consistency between the theoretical description and the implemented model. In particular, the manuscript should include equations and architectural explanations specifically related to TCN operations and clarify whether Equations (3)-(8) are included for conceptual background purposes only, or whether recurrent components were actually incorporated into the implemented architecture.

2-

Equation (12), intended to define the Symmetric Mean Absolute Percentage Error (sMAPE), appears to be inconsistent with the standard formulation commonly used in the forecasting literature.

The denominator is written as:

[(X_i - Y_i)/2]

whereas the conventional sMAPE definition generally uses:

[(|X_i| + |Y_i|)/2]

This distinction is important because replacing the average magnitude term with the prediction error term substantially changes the mathematical behavior of the metric. In the current formulation, both the numerator and denominator are derived from the same difference quantity, causing the expression to simplify toward nearly constant values (approximately ±2 for each term depending on the sign of the error), rather than functioning as a normalized symmetric percentage error metric.

As written, Equation (12) therefore does not appear to preserve the intended properties of sMAPE as a scale-independent forecasting evaluation metric.

The authors should carefully verify whether this issue is only a typographical error in the manuscript or whether the metric was also implemented in this form during the experimental evaluation, since this could directly affect the validity and interpretation of the reported forecasting results.

3-

The interpretation of Table 2 would benefit from further clarification regarding the sources of performance gains across different model configurations.

Although the TCN_multivariate model consistently outperforms the Linear Regression baseline across both forecasting horizons, the TCN_univariate model performs worse than the baseline in the 15-minute forecasting scenario (sMAPE: 33.52 vs 21.04; MAE: 82.55 vs 69.41).

This suggests that the observed improvements are primarily driven by the inclusion of external weather-related covariates (e.g., irradiance and solar position features), rather than by the TCN architecture itself. In other words, the contribution of exogenous variables appears to dominate the predictive gain.

The manuscript would therefore benefit from a clearer separation between (i) the effect of the neural network architecture and (ii) the effect of multivariate feature augmentation, in order to avoid attributing performance improvements solely to the TCN model. A more controlled ablation-style discussion would strengthen the validity of the conclusions.

4-

The discussion of Variance Inflation Factor (VIF) values requires clarification from a methodological standpoint.

Several predictor variables exhibit very high VIF values, including Madrid_H_sun (VIF = 95.734) and Seville_H_sun (VIF = 104.226), which are typically considered indicative of severe multicollinearity in standard statistical practice.

However, the manuscript interprets these values as “relatively low” based on a comparison with the mean magnitude of the dependent variable (solar energy generation). This approach is not consistent with standard interpretations of VIF, as VIF is a dimensionless measure of multicollinearity among explanatory variables and is not defined relative to the scale of the dependent variable.

Clarification is recommended regarding whether this interpretation is intentional and based on a specific methodological framework or whether a conventional VIF interpretation (e.g., commonly used thresholds such as 5 or 10) should be applied.

5-

Several citation inconsistencies have been identified in the manuscript that require careful verification and correction.

First, the manuscript cites “Y. Li et al. (2023) [33]” in the context of solar energy forecasting within the Discussion section; however, the corresponding reference entry [33] appears to describe a different study (Lv M. et al., 2022) focused on wind energy forecasting. This suggests a potential mismatch between the in-text citation and the reference list. It is possible that the intended citation was another work by Y. Li et al. (2023), which may be listed under a different reference number in the manuscript.

Second, in Section 3.6.2, the statement regarding medium- to long-term prediction requirements for integrated local energy systems is supported by reference [37] (Shewalkar et al., 2019). However, this reference focuses on performance evaluation of deep neural networks applied to speech recognition using RNN/LSTM/GRU models and has no relevance to energy systems or forecasting applications. Notably, a more appropriate reference already present in the manuscript - reference [6] (Taheri et al., 2021), which explicitly addresses long-term planning of integrated local energy systems - appears to directly support this statement.

Additionally, minor formatting issues were observed in the reference list (e.g., reference [15], where an extraneous character “B” appears before the author name), which should be corrected for consistency.

The authors are therefore requested to carefully verify all citations throughout the manuscript to ensure full consistency between in-text references and the bibliography, particularly in the related work and comparative analysis sections.

6-

Equation (13) may contain a minor rendering or typography issue in the PDF version. In the displayed equation, some subscript indices, particularly the subscript “i” in the Y terms, visually appear as the character “ı” (dotless i) rather than a standard mathematical subscript index. This behavior persists even when zooming into the PDF, suggesting a possible font embedding, Unicode, or PDF rendering artifact.

7-

The manuscript organization paragraph in the Introduction appears to be inconsistent with the final structure of the paper.

The text states that the paper is structured in six sections, including the Introduction, and refers to a separate “state of the art” section. However, the current manuscript appears to contain four main sections: Introduction, Materials and Methods, Results and Discussion, and Conclusions.

A distinct standalone “state of the art” section is not clearly identifiable in the revised version, suggesting that the roadmap paragraph may not have been updated following manuscript revisions.

The authors are therefore encouraged to revise the introductory organization paragraph to accurately reflect the final structure and section numbering of the manuscript to ensure consistency and clarity.

8-

The term “photovoltaic shells” appears to be non-standard in the context of photovoltaic energy systems. In the solar energy literature, commonly accepted terminology includes photovoltaic cells, modules, panels, or systems.

9-

A careful proofreading pass is recommended prior to publication, as the manuscript contains several typographical errors, including apparent OCR or formatting artifacts (e.g., “201minu9” instead of “2019”) and misspellings (e.g., “miniute” instead of “minute”, appearing in both the main text figure caption and the Appendix II list).

10-

There is a systematic inconsistency between the figure numbering in the main text and the figure list in Appendix II. In the main text, the US/Spain solar energy forecast comparison appears as Fig. 16a and Fig. 16b, while Appendix II lists these same figures as Fig. 13a and Fig. 13b. As a consequence, all subsequent figures are shifted by one number between the two locations: for example, what the main text calls Fig. 13 (1-hour out-of-sample prediction) appears as Fig. 14 in Appendix II, and what the main text calls Fig. 15 (Feature importance) appears as Fig. 16 in Appendix II. This discrepancy has a direct practical consequence: in Section 3.6.1, the text refers to ‘Fig 16’ to show the US/Spain forecast comparison, whereas a reader consulting Appendix II would find an entirely different figure (Feature importance) under that number. The figure list in Appendix II appears not to have been updated following the repositioning of these figures during revision.

11-

An internal numerical inconsistency has been identified in the reported nMAE values for the 15-minute multivariate TCN model (Model 6).

Table 2 and Figure 11 report an nMAE value of 1.79%, whereas Section 3.6.1 states a value of 1.96% when comparing the results against Bouquet et al. (2023).

The authors are kindly requested to verify this discrepancy and ensure consistency across all sections of the manuscript. If the difference arises from distinct evaluation settings or subsets of data, this should be explicitly clarified in the text.

12-

A lack of definition has been identified for the metric labeled “profits” appearing in Figures 10 and 11.

While Figure 10 reports a value of 4,827.66 and Figure 11 reports “inf”, this metric is not defined or discussed anywhere in the manuscript, including the methodology, evaluation metrics section, or results discussion. As a result, the interpretation of this quantity is unclear to the reader.

Moreover, the occurrence of an infinite value (“inf”) suggests a potential computational or scaling issue that is not addressed in the manuscript.

The authors are therefore requested to clarify the definition, computation method, and relevance of this metric, or remove it if it is not part of the formal evaluation framework.

13-

An inconsistency has been identified between the statistical notation used in Table 1 and its interpretation in Section 2.4.

Table 1 reports a column labeled “R²”, whereas the corresponding text describes these values as “correlation coefficients” or “average correlation coefficients.” However, the numerical values reported in the table do not appear consistent with the standard mathematical relationship between Pearson correlation (r) and the coefficient of determination (R²).

For example, if the reported value 0.800787 corresponds to R², the implied correlation coefficient would be approximately √0.800787 ≈ 0.895, which does not align with the reported correlation value (~0.796). Similar inconsistencies are observed for other entries.

This suggests that either the table header is mislabeled (R² vs. correlation coefficient), or the textual interpretation of the results is inconsistent with the reported statistics. The authors should carefully verify and correct the statistical notation throughout the manuscript to ensure consistency between tables, formulas, and narrative descriptions.

Additionally, minor language revision is recommended (e.g., “a average correlation coefficient” -> “an average correlation coefficient”).

14-

A minor inconsistency was identified between the Abstract and Table 2 regarding the reported improvements for the 15-minute forecasting scenario.

In the Abstract, the manuscript states that the forecasts were improved by “3.33% and 10.50% respectively” following the mention of “MAE and sMAPE”. However, Table 2 reports the 15-minute improvements as 3.33% for sMAPE, 10.60% for MAE, and 10.50% for nMAE.

Therefore, the ordering and metric correspondence in the Abstract appear inconsistent with the values presented in Table 2. In addition, the Abstract refers to “MAE”, whereas the table separately reports both MAE and nMAE, which are different evaluation metrics.

The authors are kindly encouraged to verify and align the reported values, metric names, and ordering between the Abstract and Table 2 for consistency and clarity.

15-

The 15-minute dataset available in the GitHub repository contains nine missing values in the solar generation column. These missing entries are not acknowledged anywhere in the manuscript, and no information is provided regarding how they were handled during preprocessing, model training, or evaluation. In the interest of reproducibility and methodological transparency, the authors are encouraged to briefly describe the missing value handling procedure applied to this dataset.

Additionally, a minor discrepancy was noted regarding the reported end timestamp of the 15-minute dataset: the manuscript states "31.12.2023 23:45" whereas the last recorded entry in the deposited file is 2023-12-31 23:00:00. The authors may wish to verify this point for completeness.

Reviewer #6: TITLE AND ABSTRACT - Provide comments and recommendations for the title and abstract.

Title:

o I prefer to remove the phrase "now-casting" from the manuscript's title, as the energy prediction not acquire at real time.

o Instead, I'd prefer the title: Very short-term production prediction for photovoltaic plants using Artificial Intelligence and Temporal Convolution Networks.

Abstract:

o The abstract mentions " of solar energy production can be successful on a short-term basis." Can you explain it in terms of the results you obtained?

o The abstract mentions “99.83% for the first case and 99.97% for the second case” ، How many training times did you use to achieve this accuracy percentage?

INTRODUCTION - Provide comments and recommendations

Introduction:

o Fig. 2: What is the reference of these values within Fig.2? it is preferable to cite the Ref. used for this study.

o Literature Survey: In previous studies, why did the authors not highlight the accuracy and error metrics (such as MAE or MSE) of those studies? Which previous studies used the same dataset as the proposed manuscript? A simpler comparison with the most relevant previous studies related to the proposed work in this manuscript is recommended. In addition, some key results from each referenced study should be included to better demonstrate the contribution and performance of the proposed system

METHOD - Provide comments and recommendations.

section (2.5 and 2.6):

It would be beneficial to include a detailed diagram of the proposed model illustrating the architecture design, network layers, interconnections, and internal model configurations to provide a clearer understanding of the system structure and operational flow. )To minimize excessive software-related details and emphasize the essential design equations, the concept of the proposed model should be clearly illustrated through an appropriate schematic diagram.)

RESULTS AND DISCUSSION - Provide comments and recommendations for the research results and discussion.

Results:

o Table 2. The summary results:

Please review the symbols and the results presented in the table more carefully to ensure their accuracy and consistency.

o Section 3.5:

It requires better organization and arrangement.

o 3.6.1. Energy Forecast

I recommend creating a simplified comparison table between the previous studies and the proposed system in terms of accuracy, error rates (MAE), utilized datasets, and the methodology proposed by the researchers.

CONCLUSIONS - Provide comments and recommendations for conclusions.

- Update the conclusion to include the newly formulated theoretical contributions;

- Mention the limitations of the study and prospects for future research;

- Summarize the key results in a compact form and re-emphasize their significance;

- Summarize how the article contributes to new knowledge in the domain.

- Add future work to motivate other researchers to continue the research.

**********

-->7. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review?  For information about this choice, including consent withdrawal, please see our Privacy Policy.-->

Reviewer #5: No

Reviewer #6: Yes: Zahraa Talib

**********

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

To ensure your figures meet our technical requirements, please review our figure guidelines: https://journals.plos.org/plosone/s/figures

You may also use PLOS’s free figure tool, NAAS, to help you prepare publication quality figures: https://journals.plos.org/plosone/s/figures#loc-tools-for-figure-preparation.

NAAS will assess whether your figures meet our technical requirements by comparing each figure against our figure specifications.

PLoS One. 2026 Jul 28;21(7):e0354512. doi: 10.1371/journal.pone.0354512.r006

Author response to Decision Letter 3


29 Jun 2026

We have uploaded a separate file named "Response_to_Reviewers_R3.docx"

Attachment

Submitted filename: Response_to_Reviewers_R3.docx

pone.0354512.s004.docx (71.8KB, docx)

Decision Letter 3

Dinesh Nishad

3 Jul 2026

-->PONE-D-25-68879R3-->-->Very short-term production prediction for photovoltaic plants using Temporal Convolutional Networks-->-->PLOS One

Dear Dr. Samaras,

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

-->-->Please submit your revised manuscript by Aug 17 2026 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:-->

  • A letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.

  • A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

  • An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: https://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols.

As the corresponding author, your ORCID iD is verified in the submission system and will appear in the published article. PLOS supports the use of ORCID, and we encourage all coauthors to register for an ORCID iD and use it as well. Please encourage your coauthors to verify their ORCID iD within the submission system before final acceptance, as unverified ORCID iDs will not appear in the published article. Only  the individual author can complete the verification step; PLOS staff cannot  verify ORCID iDs on behalf of authors.

We look forward to receiving your revised manuscript.

Kind regards,

Dinesh Kumar Nishad, PhD

Academic Editor

PLOS One

Journal Requirements:

If the reviewer comments include a recommendation to cite specific previously published works, please review and evaluate these publications to determine whether they are relevant and should be cited. There is no requirement to cite these works unless the editor has indicated otherwise.

[Note: HTML markup is below. Please do not edit.]

Reviewers' comments:

Reviewer's Responses to Questions

-->Comments to the Author

1. If the authors have adequately addressed your comments raised in a previous round of review and you feel that this manuscript is now acceptable for publication, you may indicate that here to bypass the “Comments to the Author” section, enter your conflict of interest statement in the “Confidential to Editor” section, and submit your "Accept" recommendation.-->

Reviewer #5: (No Response)

Reviewer #6: All comments have been addressed

**********

-->2. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented. -->

Reviewer #5: Partly

Reviewer #6: Yes

**********

-->3. Has the statistical analysis been performed appropriately and rigorously? -->

Reviewer #5: No

Reviewer #6: Yes

**********

-->4. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.-->

Reviewer #5: Yes

Reviewer #6: Yes

**********

-->5. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.-->

Reviewer #5: No

Reviewer #6: Yes

**********

-->6. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)-->

Reviewer #5: I would like to thank the authors for their substantial revision of the manuscript. The revised version is clearly improved compared with the previous submission. In particular, the title and abstract are more focused, the previous LSTM-related equations have been replaced with a more appropriate TCN description, the sMAPE formula has been corrected, the distinction between architectural contribution and weather-feature contribution is now clearer, the discussion of the 15-minute forecasting case is more balanced, and the comparison with previous studies and the conclusion section have been improved.

However, I do not yet consider the manuscript ready for acceptance, because several important issues remain unresolved or insufficiently clarified.

1. The inconsistency between Table 1 and the surrounding text has not been fully resolved. The text describes the reported values as “correlation coefficients”, whereas Table 1 still labels the corresponding columns as “R²” and “R² (train)”. Pearson correlation coefficients and coefficients of determination are not the same quantity. If the values are Pearson correlation coefficients, the table headings should be changed accordingly. If they are R² values, the text should be revised and the interpretation should be corrected throughout the manuscript. This is an important point for statistical clarity.

2. My previous comment regarding the 15-minute dataset still appears to be unaddressed. The manuscript should explicitly state whether the 15-minute solar-generation dataset contains missing values and, if so, how these were handled during preprocessing, model training, and evaluation. In addition, the reported end timestamp of the 15-minute dataset should be checked for consistency with the deposited data. This clarification is important for reproducibility.

3. The manuscript should clarify a possible inconsistency in the TCN architecture description. Figure 8 and Section 2.5 describe dilated causal convolutions with increasing dilation factors, whereas the hyperparameter discussion indicates a dilation base of 1, which corresponds to regular causal convolution. Please clarify whether the final optimized model used dilated causal convolutions or regular causal convolutions, and revise the terminology accordingly.

4. Table 3 reports multiclass F1-score and cross-validation accuracy. Since the main task is a continuous forecasting/regression problem, the manuscript should more clearly explain how the classes were defined, what these classification-oriented metrics represent in this context, and why they are needed in addition to MAE, nMAE, sMAPE, and R/R²-type measures. If these metrics are not central to the forecasting evaluation, the authors may consider removing them or moving them to supplementary material.

5. The manuscript still needs careful proofreading and formatting correction before publication. Examples include the metadata short title “using using AI”, typographical errors in the Data Availability Statement such as “oroginal” and “web sotes”, inconsistent singular/plural keyword usage, inconsistent decimal formatting in Table 5, and some remaining unclear or grammatically incomplete sentences. Numerical formatting should also be checked carefully, especially scientific notation/exponent formatting.

6. The authors should ensure that the funding statement, acknowledgements, author affiliations, and competing interest statement are fully consistent with PLOS ONE requirements. The submission form states that the authors received no specific funding and have no competing interests. However, the manuscript lists an author affiliated with In2AI and acknowledges support from this private corporation. The authors should clarify whether this support involved salaries, materials, infrastructure, software/data support, or only non-financial institutional support, and revise the Funding Statement and Competing Interest Statement accordingly. I leave the final assessment of this disclosure issue to the editorial office.

Overall, I appreciate the authors’ considerable effort in revising the manuscript. The study addresses an important and practically relevant problem in national-level photovoltaic production forecasting, and the revised manuscript is much stronger than the previous version. Nevertheless, the remaining issues above concern statistical notation, reproducibility, model-description consistency, manuscript hygiene, and disclosure transparency. I therefore recommend a targeted major revision before the manuscript can be considered for acceptance.

Reviewer #6: The authors are sincerely thanked for their careful revision of the manuscript and for adequately addressing the reviewers' comments and suggestions. Their efforts have significantly improved the quality and clarity of the paper. Only one minor comment remains and should be carefully addressed before publication. I look forward to seeing more high-quality research from the authors in this important and promising research area.

Fig. 7 (Correlation Heatmap): Please improve the figure resolution and adjust its size to enhance readability and ensure that all labels and details are clearly visible. Also, Fig. no. 8.

**********

-->7. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review?  For information about this choice, including consent withdrawal, please see our Privacy Policy.-->

Reviewer #5: No

Reviewer #6: Yes: Zahraa Talib

**********

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

To ensure your figures meet our technical requirements, please review our figure guidelines: https://journals.plos.org/plosone/s/figures

You may also use PLOS’s free figure tool, NAAS, to help you prepare publication quality figures: https://journals.plos.org/plosone/s/figures#loc-tools-for-figure-preparation.

NAAS will assess whether your figures meet our technical requirements by comparing each figure against our figure specifications.

PLoS One. 2026 Jul 28;21(7):e0354512. doi: 10.1371/journal.pone.0354512.r008

Author response to Decision Letter 4


4 Jul 2026

A letetr with the filename "Response_to_Reviewers_R4.docx" was uploaded, containing our response to all comments

Attachment

Submitted filename: Response_to_Reviewers_R4.docx

pone.0354512.s005.docx (30.9KB, docx)

Decision Letter 4

Dinesh Nishad

6 Jul 2026

-->PONE-D-25-68879R4-->-->Very short-term production prediction for photovoltaic plants using Temporal Convolutional Networks-->-->PLOS One

Dear Dr. Samaras,

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

-->-->

Please submit your revised manuscript by Aug 20 2026 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:-->

  • A letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.

  • A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

  • An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

-->

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: https://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols.

As the corresponding author, your ORCID iD is verified in the submission system and will appear in the published article. PLOS supports the use of ORCID, and we encourage all coauthors to register for an ORCID iD and use it as well. Please encourage your coauthors to verify their ORCID iD within the submission system before final acceptance, as unverified ORCID iDs will not appear in the published article. Only  the individual author can complete the verification step; PLOS staff cannot  verify ORCID iDs on behalf of authors.

We look forward to receiving your revised manuscript.

Kind regards,

Dinesh Kumar Nishad, PhD

Academic Editor

PLOS One

Journal Requirements:

If the reviewer comments include a recommendation to cite specific previously published works, please review and evaluate these publications to determine whether they are relevant and should be cited. There is no requirement to cite these works unless the editor has indicated otherwise.

Please review your reference list to ensure that it is complete and correct. If you have cited papers that have been retracted, please include the rationale for doing so in the manuscript text, or remove these references and replace them with relevant current references. Any changes to the reference list should be mentioned in the rebuttal letter that accompanies your revised manuscript. If you need to cite a retracted article, indicate the article’s retracted status in the References list and also include a citation and full reference for the retraction notice.

[Note: HTML markup is below. Please do not edit.]

Reviewers' comments:

Reviewer's Responses to Questions

-->Comments to the Author

1. If the authors have adequately addressed your comments raised in a previous round of review and you feel that this manuscript is now acceptable for publication, you may indicate that here to bypass the “Comments to the Author” section, enter your conflict of interest statement in the “Confidential to Editor” section, and submit your "Accept" recommendation.-->

Reviewer #5: (No Response)

**********

-->2. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented. -->

Reviewer #5: Yes

**********

-->3. Has the statistical analysis been performed appropriately and rigorously? -->

Reviewer #5: Yes

**********

-->4. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.-->

Reviewer #5: Yes

**********

-->5. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.-->

Reviewer #5: Yes

**********

-->6. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)-->

Reviewer #5: I would like to sincerely thank the authors for their careful revision of the manuscript. The revised version is much improved, and I appreciate the effort made to address the previous comments. At this stage, I do not see major scientific obstacles to publication. However, I recommend a minor revision to resolve a few remaining presentation and clarification issues before acceptance.

1. Typographical, metadata, and formatting issues

Please correct the remaining typographical, metadata, and formatting issues wherever these fields are editable by the authors. If some of these items belong to the submission system metadata and are no longer editable by the authors, I kindly ask that they be checked during editorial or production processing.

In particular, the short title currently appears as “Very short-term production prediction for photovoltaic plants using using AI”. This should be corrected to a non-repetitive form, such as:

Very short-term production prediction for photovoltaic plants using Temporal Convolutional Networks

In the Data Availability Statement, please correct typographical/character issues such as “orginal” and “web stes”. A corrected version could be:

Data can be found free on the following GitHub repository: https://github.com/luxorsatellite/Darts_tcn/tree/main. Alternatively, it can be downloaded from its original sources through the websites referred to in the manuscript.

I also noticed the phrase “A letetr...” in the submission information. If this field is editable and intended to remain part of the submission record, it should be corrected to “A letter...”. If it is only an internal submission-system note and not editable by the authors, this point can simply be ignored or handled by the editorial office.

2. Numerical formatting

Please standardize numerical formatting in the tables, especially Table 4. For example, values such as 19.73, 289.10, 1.539,89, and 25,66 should follow a single decimal/thousand-separator convention throughout the manuscript.

3.Clarification of the final TCN architecture

The TCN description has improved, but there is still a minor terminology inconsistency. The manuscript describes TCNs in terms of dilated causal convolutions, while the optimized model is reported to use dilation base = 1, which corresponds to a regular causal convolution rather than an expanded dilated convolution.

Suggested correction:

Please add one clarifying sentence in the TCN architecture/hyperparameter section, for example:

Although the general TCN framework supports dilated causal convolutions, the optimized configuration selected in this study used a dilation base of 1. Therefore, the final implemented model corresponds to a causal convolutional TCN residual architecture without dilation expansion.

Alternatively, if the authors prefer to keep the term “dilated causal convolution”, please explicitly explain that dilation base = 1 is the special case of dilated convolution that reduces to regular causal convolution. This would avoid any possible misunderstanding about the final optimized architecture.

4.Clarification of Table 3 classification-oriented metrics

Table 3 reports F1-score and cross-validation accuracy, but the main task of the paper is continuous solar-production forecasting/regression. It is therefore still not fully clear how the continuous target variable was converted into classes, what thresholds or bins were used, and what “multiclass” means in this forecasting context.

Suggested correction:

Please either remove these classification-oriented metrics from the main manuscript or move them to supplementary material if they are not central to the forecasting evaluation. If the authors wish to keep Table 3 in the main text, please add a short explanation such as:

For the supplementary classification-oriented evaluation reported in Table 3, the continuous solar-production values were discretized into [number] classes using [equal-width / quantile-based / domain-defined] thresholds. The F1-score and cross-validation accuracy therefore do not replace the main regression metrics, but provide an additional indication of how well the models distinguish between different production-level categories.

Please specify the exact number of classes and the class-definition method. This clarification would make the purpose of Table 3 much clearer for readers.

Overall, I appreciate the authors’ substantial improvements and constructive responses during the revision process. The manuscript is now much stronger, and I wish the authors continued success with this valuable research direction. After the minor points above are addressed, I believe the manuscript can be considered suitable for publication.

**********

-->7. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review?  For information about this choice, including consent withdrawal, please see our Privacy Policy.-->

Reviewer #5: No

**********

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

To ensure your figures meet our technical requirements, please review our figure guidelines: https://journals.plos.org/plosone/s/figures

You may also use PLOS’s free figure tool, NAAS, to help you prepare publication quality figures: https://journals.plos.org/plosone/s/figures#loc-tools-for-figure-preparation.

NAAS will assess whether your figures meet our technical requirements by comparing each figure against our figure specifications.

-->

PLoS One. 2026 Jul 28;21(7):e0354512. doi: 10.1371/journal.pone.0354512.r010

Author response to Decision Letter 5


7 Jul 2026

A A letter with the filename "Response_to_Reviewers_R5.docx" has been uploaded, containing all responses to the reviewers' comments

Attachment

Submitted filename: Response_to_Reviewers_R5.docx

pone.0354512.s006.docx (31.2KB, docx)

Decision Letter 5

Dinesh Nishad

10 Jul 2026

Very short-term production prediction for photovoltaic plants using Temporal Convolutional Networks

PONE-D-25-68879R5

Dear Dr. Samaras,

We’re pleased to inform you that your manuscript has been judged scientifically suitable for publication and will be formally accepted for publication once it meets all outstanding technical requirements.

Within one week, you’ll receive an e-mail detailing the required amendments. When these have been addressed, you’ll receive a formal acceptance letter and your manuscript will be scheduled for publication.

An invoice will be generated when your article is formally accepted. Please note, if your institution has a publishing partnership with PLOS and your article meets the relevant criteria, all or part of your publication costs will be covered. Please make sure your user information is up-to-date by logging into Editorial Manager at Editorial Manager® and clicking the ‘Update My Information' link at the top of the page. For questions related to billing, please contact billing support.

If your institution or institutions have a press office, please notify them about your upcoming paper to help maximize its impact. If they’ll be preparing press materials, please inform our press team as soon as possible -- no later than 48 hours after receiving the formal acceptance. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information, please contact onepress@plos.org.

Kind regards,

Dinesh Kumar Nishad, PhD

Academic Editor

PLOS One

Additional Editor Comments (optional):

Reviewers' comments:

Reviewer's Responses to Questions

-->Comments to the Author

1. If the authors have adequately addressed your comments raised in a previous round of review and you feel that this manuscript is now acceptable for publication, you may indicate that here to bypass the “Comments to the Author” section, enter your conflict of interest statement in the “Confidential to Editor” section, and submit your "Accept" recommendation.-->

Reviewer #5: All comments have been addressed

**********

-->2. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented. -->

Reviewer #5: Yes

**********

-->3. Has the statistical analysis been performed appropriately and rigorously? -->

Reviewer #5: Yes

**********

-->4. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.-->

Reviewer #5: Yes

**********

-->5. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.-->

Reviewer #5: Yes

**********

-->6. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)-->

Reviewer #5: I would like to sincerely thank the authors for their careful and thoughtful revision of the manuscript. I read and evaluated this work with great interest and pleasure, and I appreciate the effort the authors have made throughout the revision process.

In my opinion, the current version of the manuscript is much improved. The revised manuscript is clearer, more consistent, and of higher overall quality. The authors have satisfactorily addressed the previous comments, and the additional clarifications have strengthened both the methodological presentation and the interpretation of the results.

I only noticed a few very minor editorial/production issues that do not affect the scientific content: the submission metadata still appears to contain “A A letter…”, and some numerical formatting in Table 5 may still benefit from final editorial standardization. These are minor presentation issues and should not delay publication.

Overall, I believe that the manuscript is now suitable for publication in PLOS ONE. I congratulate the authors on their work and wish them continued success in their future research. I would also be pleased to see future high-quality contributions from the authors, including in PLOS ONE.

**********

-->7. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review?  For information about this choice, including consent withdrawal, please see our Privacy Policy.-->

Reviewer #5: No

**********

Acceptance letter

Dinesh Nishad

PONE-D-25-68879R5

PLOS One

Dear Dr. Samaras,

I'm pleased to inform you that your manuscript has been deemed suitable for publication in PLOS One. Congratulations! Your manuscript is now being handed over to our production team.

At this stage, our production department will prepare your paper for publication. This includes ensuring the following:

* All references, tables, and figures are properly cited

* All relevant supporting information is included in the manuscript submission,

* There are no issues that prevent the paper from being properly typeset

You will receive further instructions from the production team, including instructions on how to review your proof when it is ready. Please keep in mind that we are working through a large volume of accepted articles, so please give us a few days to review your paper and let you know the next and final steps.

Lastly, if your institution or institutions have a press office, please let them know about your upcoming paper now to help maximize its impact. If they'll be preparing press materials, please inform our press team within the next 48 hours. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information, please contact onepress@plos.org.

You will receive an invoice from PLOS for your publication fee after your manuscript has reached the completed accept phase. If you receive an email requesting payment before acceptance or for any other service, this may be a phishing scheme. Learn how to identify phishing emails and protect your accounts at https://explore.plos.org/phishing.

If we can help with anything else, please email us at customercare@plos.org.

Thank you for submitting your work to PLOS ONE and supporting open access.

Kind regards,

PLOS ONE Editorial Office Staff

on behalf of

Dr. Dinesh Kumar Nishad

Academic Editor

PLOS One

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Supplementary Materials

    Attachment

    Submitted filename: Response to Reviewers.docx

    pone.0354512.s002.docx (552.1KB, docx)
    Attachment

    Submitted filename: Response_to_Reviewers_auresp_2.docx

    pone.0354512.s003.docx (82.1KB, docx)
    Attachment

    Submitted filename: Response_to_Reviewers_R3.docx

    pone.0354512.s004.docx (71.8KB, docx)
    Attachment

    Submitted filename: Response_to_Reviewers_R4.docx

    pone.0354512.s005.docx (30.9KB, docx)
    Attachment

    Submitted filename: Response_to_Reviewers_R5.docx

    pone.0354512.s006.docx (31.2KB, docx)

    Data Availability Statement

    Data can be found free on the following GitHub repository: https://github.com/luxorsatellite/Darts_tcn/tree/main. Alternatively, it can be downloaded from its original sources through the websites referred to in the manuscript.


    Articles from PLOS One are provided here courtesy of PLOS

    RESOURCES