Skip to main content

Advances, Systems and Applications

Short-term forecasting of surface solar incident radiation on edge intelligence based on AttUNet

Abstract

Solar energy has emerged as a key industry in the field of renewable energy due to its universality, harmlessness, and sustainability. Accurate prediction of solar radiation is crucial for optimizing the economic benefits of photovoltaic power plants. In this paper, we propose a novel spatiotemporal attention mechanism model based on an encoder-translator-decoder architecture. Our model is built upon a temporal AttUNet network and incorporates an auxiliary attention branch to enhance the extraction of spatiotemporal correlation information from input images. And utilize the powerful ability of edge intelligence to process meteorological data and solar radiation parameters in real-time, adjust the prediction model in real-time, thereby improving the real-time performance of prediction. The dataset utilized in this study is sourced from the total surface solar incident radiation (SSI) product provided by the geostationary meteorological satellite FY4A. After experiments, the SSIM has been improved to 0.86. Compared with other existing models, our model has obvious advantages and has great prospects for short-term prediction of surface solar incident radiation.

Introduction

Against the backdrop of a series of ecological and environmental issues caused by the large-scale development and utilization of traditional energy, solar energy has gradually become one of the key industries in the field of new energy due to its universality, harmlessness, and durability [1]. Renewable energy refers to energy that is constantly updated and inexhaustible in nature, and its use will not cause sustained damage to the environment. Renewable energy includes various forms such as solar energy, wind energy, hydro energy, geothermal energy, etc. Solar energy has become an increasingly important source of clean energy by capturing sunlight and converting it into electrical or thermal energy. The World Energy Outlook predicts that by 2040, approximately two-thirds of global investment in new power plant construction will be focused on renewable energy, with the largest portion coming from solar energy.

Solar power generation harnesses the shortwave radiation emitted by the sun, converting it into electrical energy through atmospheric propagation and scattering, either directly or indirectly. This process is characterized by its environmental friendliness, as it generates no pollutants and releases no greenhouse gases, particulate matter, or harmful substances. Compared to traditional fossil fuel power generation, solar power generation has a significantly lower impact on atmospheric quality and the environment, contributing to reductions in air and water pollution, carbon emissions, and efforts to mitigate climate change.

Moreover, the operational expenses associated with solar power generation systems are relatively modest [2]. Although the initial investment may be relatively high, in the long term, solar power generation can lead to decreased energy costs and yield substantial economic benefits. Photovoltaic power generation stands as the most prevalent technology in the solar power generation sector, with solar radiation serving as its primary energy source. However, it is important to note that solar energy bears resemblance to hydroelectric energy and is subject to atmospheric conditions, resulting in some challenges such as the intermittent nature and volatility of power generation, as well as potential fluctuations in voltage and frequency [3]. Presently, the utilization of energy storage systems represents a common approach to address the instability of photovoltaic power generation. However, challenges including high costs, limited lifespan, energy conversion losses, and environmental impacts still require further resolution [4].

Therefore, accurate short-term prediction of solar radiation plays an important role in photovoltaic power generation, which can optimize energy scheduling, improve energy supply reliability, improve photovoltaic power generation efficiency, and help optimize the operation of photovoltaic power generation projects economically.Solar radiation forecasting can be segmented based on the projected time frames, encompassing extremely short-term, short-term, medium-term, and long-term predictions. While extremely short-term forecasts of 5 to 30 minutes prove invaluable for power system management and network stability, accurate short-term forecasts spanning hours to several days are vital for informed decision-making, supply equilibrium, and meticulous scheduling.Therefore, extremely short and short-term accurate solar radiation forecasts are crucial for the successful operation of different solar applications [5].

With the rapid development of meteorological satellites, facing the demand for massive meteorological data processing, the existing cloud computing service mode can no longer meet the performance requirements of meteorological satellite data quality control. It is crucial to introduce edge cloud collaboration into meteorological data quality control and expand it into edge devices with computing and storage capabilities.In summary, the main contributions of this paper are as follows:

  • Introducing edge-cloud collaboration into meteorological data quality control and extending it to edge devices with computational and storage capabilities.

  • Proposing the EDA-AttUNet prediction model based on the Encoder-Translator-Decoder architecture, where the encoder extracts spatial features through multi-layer stacking. The translator introduces a UNet network architecture, forming a standalone encoder-decoder structure. Additionally, an attention mechanism is incorporated into the translator to allow the network to capture both local details and global contextual information simultaneously. The decoder reconstructs the actual surface solar incident radiation through multi-layer stacking.

  • Conducting a comprehensive evaluation of the predictive performance and generalization ability of the model through the analysis of SSI data for the China region from FY4A during the entire year of 2021-2022, as well as predictions for different seasons.

Related work

At present, the adoption of edge cloud models in the field of meteorology is gaining momentum, exerting a significant influence on the management of weather-related big data [6]. Within the realm of intelligent services for edge cloud collaboration, a central challenge lies in the real-time control of data quality and the acquisition of highly dependable raw data. In our forthcoming endeavors, we plan to integrate the physical resources of the meteorological network with densely deployed edge servers in 5G environments, aiming to facilitate cross-network resource sharing and further enhance the overall quality of user experience.

In recent years, the methods for short-term and imminent forecasting of solar energy resources can be mainly divided into numerical weather forecasting methods, statistical model methods, and artificial intelligence methods based on the different data used.The numerical prediction model is one of the effective means for conducting solar energy resource assessment and prediction. It can use methods such as solar radiation output from the model, other variables, model prediction, and observation data to establish prediction models for solar energy assessment and prediction [7]. Based on the initial meteorological field data and the establishment of simulation domain and grids, the atmospheric dynamical processes within the specified region are simulated. By combining the simulated atmospheric dynamics with solar radiation data, solar energy resource forecasts are generated. However, due to factors such as data quality and the highly complex and dynamic nature of the atmospheric system, this method has certain limitations and uncertainties. System errors caused by physical processes have not been properly addressed in numerical weather prediction models [8].

The main method of artificial intelligence is machine learning. Machine learning models can solve problems that cannot be represented by explicit algorithms, and with strong extraction ability for nonlinear features, They have demonstrated commendable accuracy in their solar energy forecasting endeavors [9]. Guijo Rubio et al. The performance of various evolutionary neural networks in predicting solar radiation in Toledo was evaluated by [10]. In their experimental testing, they found that the best model was achieved through the design of the S-shaped unit with evolutionary training.Huang and Liu [11] used set wavelet transform to decompose input data and predicted solar radiation based on an autoregressive model of an external input neural network [12].

In addition to their widespread application in time series analysis, recurrent neural networks (RNNs), particularly LSTM networks, have gained prominence for their adeptness in capturing both short-term and long-term dependencies [13]. Amit et al. [14] employed a combination of CNN and BiLSTM for predicting mid-term solar radiation. The assessment conducted at three distinct stations of varying locations demonstrated the robustness of this approach. Similarly, it was observed that the CNN-LSTM architecture exhibits favorable performance across different seasons and weather conditions. Furthermore, CNN has found utility in conjunction with various models for solar radiation prediction.In addition to combining with RNN, CNN is also used to predict solar radiation in conjunction with other models [15]. Omaima et al. The CNN-MLP model was used for solar radiation prediction, and it achieved a stable determination coefficient between 0.99 and 0.94. These results demonstrate its ability to deliver good performance even in cloudy weather [16]. In [17], the research demonstrates that by synergistically integrating two powerful deep learning techniques, namely CNN and LSTM, the resulting approach surpassed the performance of different benchmark methods in predicting Global Solar Radiation. This superiority was evident in terms of accuracy, forecasting speed, and the stability of prediction outcomes.The combined model showcased its potential for significantly improving solar radiation prediction, presenting a notable advancement in this field. Nielsen et al. A combination of quantitative measurements used inspired [18] to propose a new transformer-based framework. The results showed that IrradianceNet, inspired by the latest developments in deep learning spatiotemporal prediction models based on post feature level fusion, used SARAH-2.1 satellite data to predict surface solar irradiance in Europe for the next 4 hours, demonstrating superior performance over persistent models and optical flow methods. Zhang et al. [19] compared the sky imager image with the classic CNN model of solar radiation, and the transformer-based framework, incorporating early feature-level prediction, demonstrated notable enhancements in slope event balance accuracy. Specifically, it achieved an improvement of 9.3% at the 2-minute scale and 3.91% at the 6-minute scale. Furthermore, propelled by advancements in deep learning and harnessing the strengths of CNNs, the deep fully convolutional neural network has found extensive applications in diverse domains, including image segmentation and classification [20]. These methods are gradually beginning to be applied to satellite images. Zhang et al. [21] introduced a specially designed deep fully convolutional network to learn depth patterns for detecting clouds and snow from multispectral satellite images. Numerous experiments have shown that the proposed depth model outperforms the most advanced methods in both quantitative and qualitative performance [22].

Preliminary

Convolutional neural network

Convolutional Neural Network(CNN) is a feedforward neural network that is particularly suitable for processing data with grid structures, such as images and videos. As shown in Fig. 1, it usually consists of multiple convolutional layers, pooling layers, and fully connected layers. By stacking multiple layers for feature extraction and abstraction, it can automatically learn and extract features from input data, and has certain robustness to changes such as translation, scaling, and rotation.

Fig. 1
figure 1

Basic architecture of a CNN

Convolutional layers are the core components of CNN. In the convolutional layer, feature maps are generated through linear convolutional filters and nonlinear activation functions (corrector, sigmoid, tanh, etc.). These convolutional kernels can extract spatial features of images, such as edges, textures, etc [23]. Taking a linear rectifier as an example, the calculation method for feature mapping is as follows:

$$\begin{aligned} {f_{i,j,k}} = \max \left( {w_k^T{x_{i,j}},0} \right) \end{aligned}$$
(1)

Where (ij) is the pixel index in the feature map, \({x_{i,j}}\) is the input patch centered on position (ij), k is the channel index of the feature map, and f represents the output feature values after activation function.

The CNN pooling layer plays a role in reducing dimensionality, extracting important features, translation invariance, and reducing overfitting in convolutional neural networks, helping to improve network efficiency, extract more representative features, and possess certain image spatial invariance. The mathematical expression for pooling layers can be represented as follows: where P represents pooling operations (such as maximum pooling or average pooling), S represents the step size of pooling, f represents the input feature map, while the resulting output feature map is represented as Y:

$$\begin{aligned} Y(i,j,k) = P\left( {f\left( {{i_s}:{i_{s + k}},{j_s}:{j_{s + k}},K} \right) } \right) \end{aligned}$$
(2)

Among them, i and j represent the position coordinates of the output feature map, and k represents the channel of the output feature map divided by the depth. K represents the size of the pooling window, usually a square. In maximum pooling, the P operation selects the maximum value in the input window as the output; In average pooling, the P operation calculates the average value in the input window as the output. Finally, the Fully Connected Layer flattens the feature map into a one-dimensional vector and integrates the features from various positions. The formula can be expressed as follows:

$$\begin{aligned} y = F\left( {WY + b} \right) \end{aligned}$$
(3)

Among them, y stands for the output of the fully connected layer, and Y signifies the one-dimensional vector derived from the output feature map of the convolutional layer. W stands for the weight matrix of the fully connected layer, and b denotes the bias vector. F denotes the activation function, typically using nonlinear functions such as ReLU, Sigmoid, or Tanh.

Depthwise separable convolution

Deepwise Separable Convolution (DWConv) is a special convolutional operation used in convolutional neural networks [24, 25]. As shown in Fig. 2, deep separable convolution divides the convolution operation into two independent steps: deep convolution and point by point convolution. Compared with traditional convolution operations, it greatly reduces the number of parameters, especially when there are many input channels, the reduction in the number of parameters is very significant. The deep convolution stage of deep separable convolution only performs convolution operations on each channel, avoiding computational redundancy between channels and reducing the risk of overfitting while maintaining model performance.

Fig. 2
figure 2

Deepwise Separated Convolution work process diagram

When the input feature map is X and the output feature map is Y, the calculation formula for depth separable convolution can be expressed in the following form: For each channel k of input feature map X, a deep filter \(D\left( k\right)\) is used for convolution operation. Assuming the size of the input feature map k is \(H \times W\), the number of channels is C, and the size of the depth filter is \(K \times K\). The calculation formula for deep convolution is:

$$\begin{aligned} Q = \sum \limits _{i,j = 1}^{H,W} {\sum \limits _{p,q = 1}^K {\sum \limits _{k = 1}^C {X\left( {i + p,j + q,k} \right) }}} \end{aligned}$$
(4)
$$\begin{aligned} Y(i,j,k) = sum\sum \limits _{p,q = 1}^K {\sum \limits _{k = 1}^C {\left( {D\left( k \right) \left( {p,q} \right) *Q} \right) }} \end{aligned}$$
(5)

Among them, \(Y\left( {i,j,k} \right)\) represents the value of the element with position \(\left( {i,j} \right)\) and channel k in the output feature map Y. \(D\left( k \right) \left( {p,q} \right)\) represents the value of depth filter D(k) at position \(\left( {p,q} \right)\). \(X\left( {i + p,j + q,k} \right)\) represents the value of input feature map X at position \(\left( {i + q,j + q,k} \right)\). S represents a sum operation. Perform point by point convolution on the output feature map of deep convolution using a 1\(\times\)1 Convolutional kernel of. Assuming the output feature map size of deep convolution is \(H^{\prime } \times W^{\prime }\), the number of channels is \({\text {C}}\). The calculation formula for point by point convolution is:

$$\begin{aligned} Z(i^{\prime },j^{\prime },k^{\prime }) = sum\sum \limits _{i,j = 1}^{H^{\prime },W^{\prime }} {\sum \limits _{k^{\prime }}^{C^{\prime }} {\left( {W\left( {c,k^{\prime }} \right) *Y\left( {i^{\prime },j^{\prime },k^{\prime }} \right) } \right) } } \end{aligned}$$
(6)

Among them, \(Z\left( {i^{\prime },j^{\prime },k^{\prime }} \right)\) represents the value of the element with position \(\left( {i^{\prime },j^{\prime }} \right)\) and channel \(k^{\prime }\) in the output feature map Z of point by point convolution. \(W\) \(\left( {c,k^{\prime }} \right)\) represents the value of position \(\left( {c,k^{\prime }} \right)\) in the weight matrix of point by point convolution. \(Y\left( {i^{\prime },j^{\prime },k^{\prime }} \right)\) represents the value of the element with position \(\left( {i^{\prime },j^{\prime }} \right)\) and channel \(k^{\prime }\) in the output feature map of deep convolution. sum represents the sum operation.

Convolutional block attention module

The Convolutional Block Attention Module (CBAM) is an attention mechanism employed to augment the capabilities of CNNs [26]. As shown in Fig. 3, this introduces two modules: channel attention and spatial attention. These modules enable the network to dynamically select and adjust crucial information within the feature map, thereby enhancing the model’s expressive capacity and overall performance.

Fig. 3
figure 3

Convolutional Block Attention Module structure diagram

The channel attention module serves to discern the relationships and significance of feature maps within the channel dimension. This is achieved by learning channel attention weights through global average pooling and fully connected layers, which are then applied to each channel within the input feature map. On the other hand, the spatial attention module is designed to grasp the relationships and importance of feature maps in the spatial dimension. It accomplishes this by learning spatial attention weights through a combination of maximum pooling and average pooling operations, and subsequently applying these weights to each spatial position within the input feature map.By concatenating channel attention modules and spatial attention modules, CBAM can simultaneously consider the importance of both channels and spaces, thereby improving the performance of the network in various computer vision tasks. Assuming the input feature map is X, where \({M_C}\) and \({M_S}\) represent the channel attention and spatial attention functions, the expression for this attention can be expressed as follows:

$$\begin{aligned} {M_C}\left( X \right) = \sigma \left( {MLP\left( {AvgPool\left( X \right) + MLP\left( {MaxPool\left( X \right) } \right) } \right) } \right) \end{aligned}$$
(7)
$$\begin{aligned} X^{\prime } = {M_C}\left( X \right) \otimes X \end{aligned}$$
(8)
$$\begin{aligned} {M_S}\left( X \right) = \sigma \left( {{f^{b \times b}}\left[ {AvgPool\left( X \right) ,MaxPool\left( X \right) } \right] } \right) \end{aligned}$$
(9)
$$\begin{aligned} X^{\prime \prime } = {M_S}\left( {X^{\prime }} \right) \otimes X^{\prime } \end{aligned}$$
(10)

Among them, MaxPool and AvgPool represent maximum pooling and average pooling operations, respectively, MLP represents shared weight multi-layer perceptron, \(\sigma\) represents the Sigmoid function, \(\otimes\) represents element by element multiplication, \(X^{\prime }\) represents the output feature map of channel attention, and \(X^{\prime \prime }\) represents the output feature map of spatial attention.

Atrous spatial pyramid pooling

ASPP (Atrous Spatial Pyramid Pooling) is a deep learning technique used for semantic segmentation tasks. As shown in Fig. 4, ASPP can capture contextual information of different scales and expand the receptive field by using parallel convolutional branches with different sampling rates to process input feature maps. This multi-scale perception ability enables ASPP to better understand objects of different scales and improve its understanding of complex scenes. Secondly, ASPP adopts dilated convolution operation to avoid information loss and resolution reduction, while retaining more detailed information. The effectiveness of this feature representation helps to improve the performance and accuracy of the model. In addition, ASPP also combines global pooling operations to aggregate features across a larger range of contextual information, providing a more global perspective. This helps the model to better understand the overall structure and contextual relationships.

Fig. 4
figure 4

Atrous Spatial Pyramid Pooling structure diagram

Taking the input feature map Z and Dilation rate list [r1, r2, r3, r4] as an example, the formula can be expressed as:

$$\begin{aligned} {X_r} = Pooling\left( {Conv\left( {Z, W, dilation\_rate = r} \right) } \right) \end{aligned}$$
(11)
$$\begin{aligned} {Z^{\prime }} =Concatenate\left( X_1, X_2, X_3, X_4\right) \end{aligned}$$
(12)

Among them, W represents the convolutional kernel weight corresponding to the void ratio, and \(X_{r}\) represents the result of convolution operation and pooling operation for each Dilation ratio r and the weight W of void convolution Rate represents porosity, Pooling represents pooling operation, Concatenate represents cascading operation, and Sum represents adding operation by channel.\(Z^{\prime }\) represents concatenating all pooled feature maps to obtain the final ASPP output feature map.

Method

Figure 5 illustrates the research scheme adopted in this article. Establish a deep learning model for predicting surface solar incident radiation based on satellite images. This method is mainly divided into three parts: the data preprocessing part, which performs region selection, quality control, interpolation, and normalization processing on the original data, and finally groups it into a format that conforms to deep learning training; The second part is to train the model, which inputs the allocated training set during preprocessing into the model for training. With the powerful learning ability of convolutional neural networks, the model can gradually improve the accuracy and generalization ability of predictions. Each round of training will undergo a validation set test, and based on the performance indicators on the validation set, hyperparameters can be adjusted and network structure modified to improve the performance of the model. The final section compares the predicted results of the input model output of the test set with the actual results, and evaluates the performance and generalization ability of multiple models in real scenarios by evaluating them on the test set.

Fig. 5
figure 5

Overall framework for predicting surface solar incident radiation

EDA-AttUNet

This subsection will describe the method behind the EDA-AttUNet model, as shown in Fig. 6, which is our spatiotemporal prediction model based on encoder-translator-decoder.

Fig. 6
figure 6

Surface solar incident radiation prediction model EDA-AttUNet based on Encoder-Translator-Decoder

Encoder The encoder extracts spatial features by stacking residual blocks composed of DWConv, LayerNorm, and LeakyRelu. Assuming the input data time step is T, the number of channels is C, and the height and width of the image are H and W, respectively, that is, the input feature shape is (T, C, H, W). The expression for the encoder can be represented as follows:

$$\begin{aligned} {X^{\prime }_i} = {X_i} \odot \left( {\sigma \left( {LayerNorm\left( {DWConv\left( {{X_i}} \right) } \right) } \right) } \right) \end{aligned}$$
(13)

Among them, the shapes of input \({X_i}\) and output \({X^{\prime }_i}\) are (T, C, H, W). \(\sigma\) represents the Sigmoid function, \(\odot\) represents the Hadamard product.

Translator By introducing AttUNet [27, 28], which includes a skip connection mechanism, the translator constructs an Encode-Decode structure separately. The encoder part plays a role in extracting temporal features, while the decoder part is used to restore the feature map to the resolution of the original image. By connecting feature maps at different levels in the encoder and decoder, the fusion of low-level and high-level features is achieved. This feature fusion capability helps to improve the accuracy of segmentation results and the ability to retain details. By using skip connections and feature fusion, the model can simultaneously utilize feature information at different levels, enabling it to capture contextual information at different scales. And an attention module combining CBAM was introduced between the encoder and decoder. These attention modules are used to calculate the importance weights of features and apply them to the feature representation of the decoder. Taking the (t-th) layer as an example, the upsampling output of the (t-th) layer can be expressed as:

$$\begin{aligned} {X^{\prime }_t} = concat\left( {deconv\left( {{X_{t - 1}}} \right) ,A\left( {X^{\prime }}_{t - 1},{X_t} \right) } \right) \end{aligned}$$
(14)

Among them, \({X_t}\) represents the feature map of encoder t-layer, \({X^{\prime }_{t - 1}}\) represents the feature map of encoder t-1 layer, and \({X^{\prime }_t}\) represents the feature map of encoder t-layer. Here, A represents the Attention Gate function.

As shown in Fig. 5, the Attention Gate first undergoes an ASPP (Hole Space Pyramid Pooling) to convolution the input features using different hole rates, while maintaining computational efficiency while obtaining multiple receptive fields of different scales. This enables the network to simultaneously capture local details and global contextual information, improving the performance of the model. Then, the ASPP output results are fed into the channel attention mechanism and spatial attention mechanism to adaptively learn the importance of features and improve the model’s expressive and perceptual abilities. Taking the t-layer as an example, the calculation formula for Attention Gate is as follows:

$$\begin{aligned} {\text {Z}} = Conv\left( {{{X^{\prime }}_{t - 1}}} \right) + Conv\left( {{X_t}} \right) \end{aligned}$$
(15)
$$\begin{aligned} Z^{\prime } = concat\left( {b1,b6,b12,b18,mean\left( {Conv\left( {upsample\left( Z \right) } \right) } \right) } \right) \end{aligned}$$
(16)
$$\begin{aligned} Z^{\prime \prime } = {{\text {M}}_{\text {C}}}\left( {Z^{\prime }} \right) \otimes Z^{\prime } \end{aligned}$$
(17)
$$\begin{aligned} Z^{\prime \prime \prime } = {M_S}\left( {Z^{\prime \prime }} \right) \otimes Z^{\prime \prime } \end{aligned}$$
(18)

Among them, \({X_t}\) represents the feature map of the encoder t-layer, \({X^{\prime }_{t - 1}}\) represents the feature map of the encoder t-1 layer, concat represents stitching,b1 ,b6 ,b12 and b18 are the outputs of different partition rates in ASPP, mean represents the adaptive average pooling layer, and upsample represents the upsampling operation.

Decoder The decoder reconstructs the real surface solar incident radiation by stacking blocks composed of ConvTranspose2d, LayerNorm, and LeakyRelu. The expression for the decoder can be represented as follows:

$$\begin{aligned} {X_k} = \sigma \left( {LayerNorm\left( unConv2d\left( {X_{k - 1}} \right) \right) } \right) \end{aligned}$$
(19)

Among them, the input \({X_{k - 1}}\) and output shapes of \({X_k}\) are (T, C, H, W).The ConvTranspose2d mentioned in the article is represented in the formula as unConv2d.

Dynamic weighted loss function

The loss function used in this article is the sum of the weighted mean square error(MSE) and the mean absolute error(MAE) . By multiplying by the given weight, high radiation data with fewer samples can have a greater “contribution” and improve prediction accuracy. The formula is as follows:

$$\begin{aligned} loss = \frac{1}{N} \sum \limits _{n = 1}^N \sum \limits _{p,q} \left( {{w_{n,i,q}}\left( {{{\left( {{\hat{y}_{n,p,q}} - {y_{n,p,q}}} \right) }^2} + \left| {{\hat{y}_{n,p,q}} - {y_{n,p,q}}} \right| } \right) } \right) \end{aligned}$$
(20)

The equation involves variables where \({w_{n,p,q}}\) denotes the weight of the radiation value at position (pq) in the nth image, \({y_{n,p,q}}\) represents the radiation value at position (pq) in the nth image, and \({\hat{y}_{n,p,q}}\) stands for the ground truth radiation value at position (pq) in the nth image. The value of dynamic weight W is shown in (19):

$$\begin{aligned} W\left( y \right) = \left\{ \begin{array}{ll} 1 &{} 0< y\left( i,j\right)< 200\\ 5 &{} 200< = y\left( i,j\right)< 600\\ 20 &{} 600< = y\left( i,j\right)< 1000\\ 50 &{} 1000 < = y\left( i,j\right) \end{array} \right. \end{aligned}$$
(21)

In the given context, The variable y represents the solar radiation value, measured in \(W/{m^2}\). When \(W=1\), it represents a relatively low solar radiation value at locations (ij), indicating a lower photovoltaic power generation efficiency. When \(W=5\), it represents a gradually improving solar radiation value at locations (ij), enabling the photovoltaic system to generate a considerable amount of electricity. When \(W=20\), it represents a high solar radiation value at locations (ij), allowing the photovoltaic system to generate a large amount of electricity. When \(W=50\), it represents a solar radiation value at locations (ij) that maximizes the efficiency of the photovoltaic system, resulting in the highest power output.

Experiments

Study area and data

The data used in this experiment is the surface solar incident radiation(SSI) full disk data product provided by the geostationary meteorological satellite FY4A. This product considers parameters such as clouds, aerosols, water vapor content, surface albedo, and surface elevation, which can better grasp the impact of different weather conditions on solar radiation and make up for the shortage of radiation observation data in photovoltaic power generation meteorological forecasting services. The time resolution of this product is generally 1 hour, with a maximum of 15 minutes. The experimental preprocessing interpolates the parts less than 15 minutes. This experiment extracts China’s regional data for training from the full disk data center based on the product manual provided by the China Meteorological Data Network. Due to the limitations of the radiation transfer software package plane parallel algorithm currently used by FY-4A, when the solar zenith angle is greater than 70 degrees, the plane parallel mode is no longer applicable due to the influence of Earth’s curvature. Therefore, in the inversion process, to ensure the accuracy of the calculation results, Set the critical value of the solar zenith angle to 70, and when the critical value is exceeded, there will be no output of irradiance products. This has resulted in a large area of high latitude areas being without radiation for a long time from the end of December to the beginning of February, resulting in a small number of samples.

Therefore, utilizing the computing and storage capabilities of edge devices [29, 30], performing data quality control tasks, and optimizing data transmission and processing through edge cloud collaboration, such as transmitting data results processed on edge devices to the cloud for further analysis and storage [31]. Ensure that the edge cloud collaboration system has real-time and scalability by optimizing data transmission and processing latency, and dynamically adjusting the workload of the edge and cloud. Through this approach, edge cloud collaboration can effectively introduce meteorological data quality control and extend it to edge devices with computing and storage capabilities, improving the accuracy and reliability of meteorological data [32, 33].

We select the data for the entire year 2021, with the last 10 days of each month as the validation and testing sets, and the rest as the training set. The data preprocessing involved using bilinear interpolation to interpolate the temporal resolution of the hourly data to every 15 minutes. As a result, the final total number of samples is 28,670, with 6,820 samples in spring, 8,530 samples in summer, 8,040 samples in autumn, and 5,280 samples in winter.Each sequence has 16 radiation data in chronological order within two hours. In the experiment, the model uses the radiation maps from the first 8 hours as input to predict the radiation maps from the next 8 hours. The initial size of each radiation map is 386 \(\times\) 256, downsampling will be performed to improve the performance of the model. Due to the large amount of solar radiation data and varying peak values at different time periods, in order to facilitate processing, it is necessary to normalize the data before training. The specific normalization method for converting the data into the 0-1 range is shown in expression (20) as follows:

$$\begin{aligned} {I_{norm}} = \frac{{I - \min \left( I \right) }}{{\max \left( I \right) - \min \left( I \right) }} \end{aligned}$$
(22)

Among them, \({\min \left( I \right) }\) denotes the lowest recorded solar radiation value within the entirety of the dataset under consideration, while \({\max \left( I \right) }\) signifies the highest recorded solar radiation value within the same dataset. Here, I represents a solar radiation data point.

Experiment setup and evaluation metrics

This experiment analyzes the performance of the SSI Dataset for predicting ground incident solar radiation in different seasons throughout the year 2021-2022.

In order to test the performance of the model in predicting radiation tasks, some typical benchmark models were selected for comparative experiments, including ConvLSTM [34], PhyDNet [35], E3D-LSTM [36], Traj-GRU [37], PredRNN [38], PredRNN++ [39]. All models are built using the Python framework, and equivalent parameters are used for all models in each experiment to ensure the fairness of test results. The encoder and decoder as well as \(N_E\) and \(N_D\) in the model proposed in this article are all 4. The model uses an Adam optimizer to optimize parameters. Each model uses early stop and sets the number of iterations to 50. The initial learning rate and batch size are set to 0.001 and 8, respectively. All experiments were conducted on a personal computer equipped with a Windows 10 operating system, 64.0 GB of RAM, 3.60GHz Intel (R) Core (TM) i7-11700KF CPU, and NVIDIA GeForce RTX 3090 GPU.

$$\begin{aligned} MAE = \frac{1}{N}\sum \limits _{i = 1}^N {\left| {{\hat{y}_i} - {y_i}} \right| } \end{aligned}$$
(23)
$$\begin{aligned} RMSE = \frac{1}{N}\sum \limits _{i = 1}^N {\sqrt{{{\left( {{\hat{y}_i} - {y_i}} \right) }^2}} } \end{aligned}$$
(24)
$$\begin{aligned} nRMSE = \frac{{\frac{1}{N}\sum \limits _{i = 1}^N {\sqrt{{{\left( {{\hat{y}_i} - {y_i}} \right) }^2}} } }}{{{y_{avg}}}} \times 100\% \end{aligned}$$
(25)
$$\begin{aligned} SSIM\left( {{\hat{y}_i},{y_i}} \right) = \frac{{\left( {2{\mu _{{y_i}}}{\mu _{{\hat{y}_i}}} + {C_1}} \right) \left( 2\sigma _{\hat{y}_{_i} y_{_i}} + {C_2} \right) }}{{\left( {\mu _{{y_i}}^2 + \mu _{{\hat{y}_i}}^2 + {C_1}} \right) \left( {\sigma _{{y_i}}^2 + \sigma _{{\hat{y}_i}}^2 + {C_2}} \right) }} \end{aligned}$$
(26)

In the formula, \(\hat{y}_{i}\) represents the i-th predicted value, and \({y_i}\) represents the i-th true value. \({y_{avg}}\) and \({\hat{y}_{avg}}\) represent the average predicted value and the average true value, while N represents the current total number of observations. \(\mu\) is the average value, and \(\sigma\) is the standard deviation. \({C_1}\) and \({C_2}\) are constants used to prevent the denominator from reaching zero when \(\mu\) and \(\sigma\) are too small.

Experiment results and analysis

In Fig. 7, we show the visualization of the predicted results of each model within two hours, with a time resolution of 15 minutes. From the graph, it can be seen that the PhyDNet and ConvLSTM models have weaker ability to extract spatiotemporal changes. Although the ConvLSTM model made adjustments to the changes on the right side after one hour, it is clear that the model did not truly learn the spatiotemporal characteristics of radiation variations. It is unable to extract effective spatiotemporal state changes at 60 minutes, and no corresponding movement state changes are made in the following hour. Although the PredRNN model made adjustments to the changes in spatiotemporal state within 60 minutes, it was not outstanding and to some extent relied on the performance of the previous moment. The PredRNN++ model, with its stacked structure compared to the single-layer recurrent prediction units of PredRNN, exhibits better temporal modeling capabilities, resulting in improved predictive performance. However, it is worth noting that the training time for PredRNN++ is twice as long as PredRNN. Finally, the model proposed in this article not only significantly predicted the true distribution of solar radiation within 60 minutes, but also predicted the distribution changes of radiation more accurately after 60 minutes.

Fig. 7
figure 7

Prediction examples of each model relative to the true value of SSI. 15 minutes, 30 minutes, 45 minutes, 60 minutes, 75 minutes, 90 minutes, 105 minutes, and 120 minutes refer to the future predicted time relative to the initial start time at 2021-07-22 09:59

The results of various indicators for all models from 2021 to 2022 are displayed in Table 1. From the table, it can be seen that the performance indicators of our model have achieved the best.The SSIM metric reached 0.86, and both PredRNN and PredRNN++ achieved high levels of SSIM, but from our experimental process, it is evident that they required significantly more training time compared to EDA-AttUNet. ConvLSTM, PhyDNet, and Traj GRU are far inferior to the other models in terms of both visual results and experimental indicators.

Table 1 Comparison of all statistical indicators for all models throughout the year

The comparison of root mean square error indicators for 8 predicted time steps of surface solar incident radiation using different models from 2021 to 2022 is shown in Table 2. From the table, it can be seen that our model not only achieved good results within 1 hour, but also achieved better results within 1-2 hours. Although the PredRNN and PredRNN++ models performed slightly better in the initial prediction time steps, their performance declined more significantly in subsequent predictions. In contrast, EDA-AttUNet demonstrated greater stability as the prediction horizon increased. Similarly, PhyDNet performed better than Traj-GRU in predicting within 1 hour, but with increasing prediction frequency, the root mean square error increased more significantly.The E3D-LSTM model also struggles to accurately predict the distribution of radiation as the prediction horizon increases.

Table 2 Comparison of Root Mean Square Error indicators for prediction results of different time steps of various models throughout the year

Due to the seasonal influence of solar radiation, the results of various performance indicators in spring, summer, and autumn from 2021 to 2022 are presented in Table 3. In the inversion algorithm of FY-4A, the solar zenith angle of 70 degrees is the critical value, which results in a small number of effective samples in some regions of China during winter. Therefore, seasonal testing is not conducted here. From the table, it can be seen that the error in spring is higher than that in summer and autumn. It is worth noting that the PredRNN and PredRNN++ models have lower MAE values in summer compared to the proposed model, with a difference of 0.59 and 2.74, and lower RMSE values with a difference of 13.79 and 15.83. We tentatively attribute this to the significantly larger number of effective samples and higher radiation values during the summer season. The stacked structure of PredRNN++ clearly has an advantage in handling such data.

Table 3 Comparison of all performance indicators for spring, summer, and autumn 2021-2022

Conclusion

The paper introduces a novel encoder-decoder based on AttUNet, which incorporates an attention mechanism. This enhancement aims to capture the spatial variations and temporal dependencies of radiation motion, thereby improving the model’s ability to evolve with radiation dynamics. Compared to traditional methods, this model can better capture the complex spatial and temporal characteristics of radiation motion, thereby improving the accuracy of prediction. In addition, this method also has good generalization ability and is suitable for radiation prediction in different regions and time scales. The experimental results of the proposed model demonstrate its effectiveness in practical radiation forecasting.Future research will focus on advancing the integration of satellite data with ground observations, as well as considering the impact of weather conditions on solar radiation to enhance the accuracy of radiation prediction.

Availability of data and materials

The dataset and materials generated in this research process can be obtained from the corresponding author upon reasonable request.

References

  1. Gürel AE, Ağbulut Ü, Biçen Y (2020) Assessment of machine learning, time series, response surface methodology and empirical models in prediction of global solar radiation. J Clean Prod 277:122353. https://doi.org/10.1016/j.jclepro.2020.122353

    Article  Google Scholar 

  2. Osman AI et al (2023) Cost, environmental impact, and resilience of renewable energy under a changing climate: a review. Environ Chem Lett 21(2):741–764. https://doi.org/10.1007/s10311-022-01532-8

    Article  Google Scholar 

  3. Jung J, Onen A, Arghandeh R, Broadwater RP (2014) Coordinated control of automated devices and photovoltaic generators for voltage rise mitigation in power distribution circuits. Renew Energy 66:532–540. https://doi.org/10.1016/j.renene.2013.12.039

    Article  Google Scholar 

  4. Paulescu M, Paulescu E, Gravila P, Badescu V (2013) Weather Modeling and Forecasting of PV Systems Operation. in Green Energy and Technology. Springer London, London. https://doi.org/10.1007/978-1-4471-4649-0

    Book  Google Scholar 

  5. Kumari P, Toshniwal D (2021) Extreme gradient boosting and deep neural network based ensemble learning approach to forecast hourly solar irradiance. J Clean Prod 279:123285. https://doi.org/10.1016/j.jclepro.2020.123285

    Article  Google Scholar 

  6. Hu Z et al (2022) Cloud-edge cooperation for meteorological radar big data: a review of data quality control. Complex Intell Syst 8(5):3789–3803. https://doi.org/10.1007/s40747-021-00581-w

    Article  Google Scholar 

  7. Thaker J, Höller R (2023) Evaluation of High Resolution WRF Solar. Energies 16(8):3518. https://doi.org/10.3390/en16083518

    Article  Google Scholar 

  8. Deo RC et al (2023) Cloud cover bias correction in numerical weather models for solar energy monitoring and forecasting systems with kernel ridge regression. Renew Energy 203:113–130. https://doi.org/10.1016/j.renene.2022.12.048

    Article  Google Scholar 

  9. Voyant C et al (2017) Machine learning methods for solar radiation forecasting: A review. Renew Energy 105:569–582. https://doi.org/10.1016/j.renene.2016.12.095

    Article  Google Scholar 

  10. Huang X et al (2021) Hybrid deep neural model for hourly solar irradiance forecasting. Renew Energy 171:1041–1060. https://doi.org/10.1016/j.renene.2021.02.161

    Article  Google Scholar 

  11. Huang J, Liu H (2021) A hybrid decomposition-boosting model for short-term multi-step solar radiation forecasting with NARX neural network. J Cent South Univ 28(2):507–526. https://doi.org/10.1007/s11771-021-4618-9

    Article  Google Scholar 

  12. Li D, Zhang H, Cheng J, Liu B (2024) Improving efficiency of DNN-based relocalization module for autonomous driving with server-side computing. J Cloud Comp 13(1):25. https://doi.org/10.1186/s13677-024-00592-1

    Article  Google Scholar 

  13. Van Houdt G, Mosquera C, Nápoles G (2020) A review on the long short-term memory model. Artif Intell Rev 53(8):5929–5955. https://doi.org/10.1007/s10462-020-09838-1

    Article  Google Scholar 

  14. Duan J et al (2023) A multistep short-term solar radiation forecasting model using fully convolutional neural networks and chaotic aquila optimization combining WRF-Solar model results. Energy 271:126980. https://doi.org/10.1016/j.energy.2023.126980

    Article  Google Scholar 

  15. Pérez E, Pérez J, Segarra-Tamarit J, Beltran H (2021) A deep learning model for intra-day forecasting of solar irradiance using satellite-based estimations in the vicinity of a PV power plant. Sol Energy 218:652–660. https://doi.org/10.1016/j.solener.2021.02.033

    Article  Google Scholar 

  16. Feng C, Zhang J (2020) SolarNet: A sky image-based deep convolutional neural network for intra-hour solar forecasting. Sol Energy 204:71–78. https://doi.org/10.1016/j.solener.2020.03.083

    Article  Google Scholar 

  17. Wang Q, Wu B, Zhu P, Li P, Zuo W, Hu Q (2020) ECA-Net: Efficient Channel Attention for Deep Convolutional Neural Networks. arXiv. [Online]. http://arxiv.org/abs/1910.03151. Accessed 19 Aug 2023

  18. Nielsen AH, Iosifidis A, Karstoft H (2021) IrradianceNet: Spatiotemporal deep learning model for satellite-derived solar irradiance short-term forecasting. Sol Energy 228:659–669. https://doi.org/10.1016/j.solener.2021.09.073

    Article  Google Scholar 

  19. Zhang L, Wilson R, Sumner M, Wu Y (2023) Advanced multimodal fusion method for very short-term solar irradiance forecasting using sky images and meteorological data: A gate and transformer mechanism approach. Renew Energy 216:118952. https://doi.org/10.1016/j.renene.2023.118952

    Article  Google Scholar 

  20. Ca V, Mannem R, Ghosh PK (2018) Air-Tissue Boundary Segmentation in Real-Time Magnetic Resonance Imaging Video Using Semantic Segmentation with Fully Convolutional Networks. In Interspeech 2018. ISCA, pp 3132–3136. https://doi.org/10.21437/Interspeech.2018-1939

  21. Zhan Y, Wang J, Shi J, Cheng G, Yao L, Sun W (2017) Distinguishing Cloud and Snow in Satellite Images via Deep Convolutional Network. IEEE Geosci Remote Sens Lett 14(10):1785–1789. https://doi.org/10.1109/LGRS.2017.2735801

    Article  Google Scholar 

  22. Humayun M, Alsirhani A, Alserhani F, Shaheen M, Alwakid G (2024) Transformative synergy: SSEHCET-bridging mobile edge computing and AI for enhanced eHealth security and efficiency. J Cloud Comp 13(1):37. https://doi.org/10.1186/s13677-024-00602-2

    Article  Google Scholar 

  23. Lin M, Chen Q, Yan S (2014) Network In Network. arXiv. [Online]. http://arxiv.org/abs/1312.4400. Accessed 18 Sep 2023

  24. Chollet F (2017) Xception: Deep Learning with Depthwise Separable Convolutions. In: 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, Honolulu, pp 1800–1807. https://doi.org/10.1109/CVPR.2017.195

  25. Xiao L, Cao Y, Gai Y, Khezri E, Liu J, Yang M (2023) Recognizing sports activities from video frames using deformable convolution and adaptive multiscale features. J Cloud Comp 12(1):167. https://doi.org/10.1186/s13677-023-00552-1

    Article  Google Scholar 

  26. Woo S, Park J, Lee J-Y, Kweon IS (2018) CBAM: Convolutional Block Attention Module. In: Ferrari V, Hebert M, Sminchisescu C, Weiss Y (eds) Computer Vision - ECCV 2018. Lecture Notes in Computer Science, vol 11211. Springer International Publishing, Cham, pp 3–19. https://doi.org/10.1007/978-3-030-01234-2-1

    Chapter  Google Scholar 

  27. Oktay O, et al (2018) Attention U-Net: Learning Where to Look for the Pancreas. arXiv. [Online]. http://arxiv.org/abs/1804.03999. Accessed 21 Sep 2023

  28. Ronneberger O, Fischer P, Brox T (2015) U-Net: Convolutional Networks for Biomedical Image Segmentation. arXiv. [Online]. http://arxiv.org/abs/1505.04597. Accessed 21 Sep 2023

  29. Xu X, Tang S, Qi L, Zhou X, Dai F, Dou W (2023) CNN Partitioning and Offloading for Vehicular Edge Networks in Web3. IEEE Commun Mag 61(8):36–42. https://doi.org/10.1109/MCOM.002.2200424

    Article  Google Scholar 

  30. Li Z, Li G, Bilal M, Liu D, Huang T, Xu X (2023) Blockchain-Assisted Server Placement With Elitist Preserved Genetic Algorithm in Edge Computing. IEEE Internet Things J 10(24):21401–21409. https://doi.org/10.1109/JIOT.2023.3290568

    Article  Google Scholar 

  31. Xu X, Liu Z, Bilal M, Vimal S, Song H (2022) Computation Offloading and Service Caching for Intelligent Transportation Systems With Digital Twin. IEEE Trans Intell Transport Syst 23(11):20757–20772. https://doi.org/10.1109/TITS.2022.3190669

    Article  Google Scholar 

  32. Zhou X et al (2023) Edge Computation Offloading With Content Caching in 6G-Enabled IoV. IEEE Trans Intell Transport Syst 1–15. https://doi.org/10.1109/TITS.2023.3239599

  33. Xu X, Gu J, Yan H, Liu W, Qi L, Zhou X (2023) Reputation-Aware Supplier Assessment for Blockchain-Enabled Supply Chain in Industry 4.0. IEEE Trans Ind Inf 19(4):5485–5494. https://doi.org/10.1109/TII.2022.3190380

    Article  Google Scholar 

  34. Shi X, Chen Z, Wang H, Yeung D-Y, Wong W, Woo W (2015) Convolutional LSTM Network: A Machine Learning Approach for Precipitation Nowcasting. arXiv. [Online]. http://arxiv.org/abs/1506.04214. Accessed 19 Aug 2023

  35. Le Guen V, Thome N (2020) Disentangling Physical Dynamics From Unknown Factors for Unsupervised Video Prediction. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, Seattle, pp 11471–11481. https://doi.org/10.1109/CVPR42600.2020.01149

    Chapter  Google Scholar 

  36. Wang Y, Jiang L, Yang M-H, Li L-J, Long M, Fei-Fei L (2019) Eidetic 3D LSTM: A Model for Video Prediction and Beyond. International Conference on Learning Representations (ICLR). https://openreview.net/forum?id=B1lKS2AqtX

  37. Shi X, et al (2017) Deep Learning for Precipitation Nowcasting: A Benchmark and A New Model. arXiv. [Online]. http://arxiv.org/abs/1706.03458. Accessed 08 Oct 2023

  38. Wang Y, et al (2022) PredRNN: A Recurrent Neural Network for Spatiotemporal Predictive Learning. arXiv. [Online]. http://arxiv.org/abs/2103.09504. Accessed 19 Aug 2023

  39. Wang Y, Gao Z, Long M, Wang J, Yu PS (2018) PredRNN++: Towards A Resolution of the Deep-in-Time Dilemma in Spatiotemporal Predictive Learning. arXiv. [Online]. http://arxiv.org/abs/1804.06300. Accessed 31 Jan 2024

Download references

Funding

This work was supported by the National Natural Science Foundation of China under Grant (No. 92267104 and 62372242), China Meteorological Service Association Meteorological Technology Innovation Project (No. CMSA2023MD004) and in part by Natural Science Foundation of Jiangsu Province of China under Grant (No. BK20211284).

Author information

Authors and Affiliations

Authors

Contributions

Cui: Conceptualization, Methodology, Software, Data curation. Zhao: Investigation, Writing-Reviewing and Editing. Yao:Formal analysis,Supervision, Writing-Reviewing and Editing.

Corresponding author

Correspondence to Mengmeng Cui.

Ethics declarations

Ethics approval and consent to participate

The research in this paper does not involve any illegal or unethical practices.

Consent for publication

The authors read and approved the final manuscript.

Competing interests

The authors declare no competing interests.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Cui, M., Zhao, S. & Yao, J. Short-term forecasting of surface solar incident radiation on edge intelligence based on AttUNet. J Cloud Comp 13, 67 (2024). https://doi.org/10.1186/s13677-024-00624-w

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s13677-024-00624-w

Keywords