Solar radiation prediction method, device, storage medium and electronic device
By performing weather classification and modal decomposition on historical solar radiation data, combined with the whale optimization algorithm and deep extreme learning machine model, the problem of low solar radiation prediction accuracy is solved, the prediction accuracy and adaptability are improved, and the solar thermal power station is ensured stable energy supply.
Patent Information
- Application Number
- CN202410807131.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-06-21
AI Technical Summary
The accuracy of existing solar radiation prediction methods is low, mainly due to the small number of effective feature input variables and unreasonable selection of feature input variables, resulting in low prediction accuracy.
Weather classification is performed by obtaining historical solar radiation data, and modal decomposition is performed to obtain multiple solar radiation components. The whale optimization algorithm is used to iteratively optimize the parameters of the solar radiation prediction model. The components are input into the deep extreme learning machine model for prediction, and the total is obtained by accumulation. Solar radiation target data.
It improves the pertinence and accuracy of solar radiation prediction, adapts to complex and changeable climate environments, reduces blindness in parameter selection, enhances the adaptability and prediction accuracy of the model, achieves comprehensive and accurate prediction of the overall radiation level, and reduces The risk of energy supply interruption caused by sudden weather changes.
Smart Images

Figure CN118378150B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of energy prediction, and in particular to a solar radiation prediction method, a solar radiation prediction device, a computer-readable storage medium, and an electronic device. Background Art
[0002] Solar thermal power stations use large-scale concentrating systems to focus solar radiation and heat the heat transfer medium to generate thermal energy, and then generate high-temperature steam through a heat exchange system to drive the steam turbine to generate electricity. Compared with photovoltaic power generation, solar thermal power generation can store excess energy through a heat storage system, thereby achieving continuous and stable power generation and peak-shaving power generation.
[0003] The output of a CSP plant is mainly affected by solar radiation and the heat storage capacity of the heat storage system. Therefore, it is of great significance to conduct in-depth research on solar radiation prediction for CSP plants.
[0004] At present, solar radiation prediction refers to the calculation and prediction of solar radiation in the future based on existing meteorological observation data using mathematical statistics, computer science and other technologies and methods. Some experts and scholars have conducted research on solar radiation prediction through machine learning, but there are problems such as few effective feature input variables and unreasonable selection of feature input variables, resulting in low prediction accuracy.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] The purpose of the embodiments of the present disclosure is to provide a solar radiation prediction method, device, medium and equipment, thereby at least to a certain extent solving the problem of low accuracy of solar radiation prediction in related technologies.
[0007] According to a first aspect of an embodiment of the present disclosure, a solar radiation prediction method is provided, comprising:
[0008] Obtaining historical solar radiation data of the study area, and performing weather classification on the historical solar radiation data to obtain a variety of solar radiation classification data corresponding to different weather types;
[0009] Performing modal decomposition on each of the solar radiation classification data to obtain multiple solar radiation components;
[0010] Input each of the solar radiation components into the trained solar radiation prediction model to obtain corresponding solar radiation prediction data, and accumulate the solar radiation prediction data corresponding to each of the solar radiation components to obtain solar radiation target data for the study area;
[0011] The model parameters in the solar radiation prediction model are obtained by iterative optimization using the whale optimization algorithm.
[0012] In an exemplary embodiment of the present disclosure, performing modal decomposition on each of the solar radiation classification data to obtain multiple solar radiation components includes:
[0013] Constructing a corresponding objective function based on each of the solar radiation classification data;
[0014] Initializing a plurality of modal components and corresponding center frequencies, iteratively updating each of the modal components and the corresponding center frequencies based on the objective function, and obtaining the plurality of solar radiation components when a first iteration termination condition is met;
[0015] The objective function L is:
[0016] ;
[0017] Among them, K is the total number of solar radiation components, α, β, γ are weight factors, is the kth modal component at time t, is the center frequency corresponding to the kth solar radiation component, is the instantaneous frequency at time t, is the solar radiation classification data at time t, is a complex exponential function that represents the frequency dependence of the modal component.
[0018] In an exemplary embodiment of the present disclosure, the step of inputting each of the solar radiation components into a trained solar radiation prediction model to obtain corresponding solar radiation prediction data includes:
[0019] Normalizing each of the solar radiation components to obtain corresponding multiple input data;
[0020] Inputting each of the input data into the trained solar radiation prediction model to obtain corresponding solar radiation prediction data;
[0021] The trained solar radiation prediction model is a single hidden layer neural network including multiple input layer neurons, multiple hidden layer neurons and a single output layer neuron.
[0022] In an exemplary embodiment of the present disclosure, the trained solar radiation prediction model is a deep extreme learning machine model, and the model parameters in the solar radiation prediction model include an output weight matrix between hidden layer neurons and output layer neurons, which is:
[0023] ;
[0024] Among them, β is the output weight matrix between the hidden layer neurons and the output layer neurons in the deep extreme learning machine model, H is the output matrix of the hidden layer neurons in the deep extreme learning machine model, is the number of neurons in the hidden layer, N is the number of neurons in the output layer, H' is the sample output matrix in the deep extreme learning machine model, C is the regularization parameter, and X is the input data.
[0025] In an exemplary embodiment of the present disclosure, before inputting each of the solar radiation components into a trained solar radiation prediction model, the method further includes:
[0026] Obtain solar radiation training data for the study area;
[0027] Determine the parameters to be optimized of the preset neural network model, and preset the parameters to be optimized as the initial position vector of the whale optimization algorithm;
[0028] Initializing algorithm parameters in the whale optimization algorithm and constructing a fitness function using the solar radiation training data, wherein the algorithm parameters include at least the number of whale populations, the dimension of the search space, and the maximum number of iterations;
[0029] Calculating the fitness value of each individual whale based on the fitness function, and determining the current individual whale with the smallest fitness value;
[0030] Iteratively updating the initial position vector according to the fitness value of the current whale individual, and obtaining the target position vector of the optimal whale individual when the second iteration termination condition is met;
[0031] Target parameters are obtained according to the target position vector, and the target parameters are assigned to the preset neural network model to obtain the solar radiation prediction model.
[0032] In an exemplary embodiment of the present disclosure, weather classification is performed on the solar radiation historical data to obtain a plurality of solar radiation classification data corresponding to different weather types, including:
[0033] Determine the classification characteristic value corresponding to the solar radiation historical data;
[0034] The solar radiation historical data is weather classified according to the classification characteristic value to obtain a plurality of solar radiation classification data corresponding to different weather types;
[0035] Among them, the classification characteristic value includes at least the fluctuation degree of the solar radiation historical data, the maximum value in the solar radiation historical data, and the deviation between the solar radiation historical data and the solar radiation theoretical data, and the solar radiation theoretical data is determined by a trained clear sky model.
[0036] In an exemplary embodiment of the present disclosure, the solar radiation target data includes first solar radiation data and second solar radiation data;
[0037] The accumulating solar radiation prediction data corresponding to each of the solar radiation components to obtain solar radiation target data of the study area includes:
[0038] Accumulating the solar radiation prediction data corresponding to each of the solar radiation components to obtain the first solar radiation data;
[0039] The first solar radiation data is denormalized to obtain the second solar radiation data.
[0040] According to a second aspect of an embodiment of the present disclosure, there is provided a solar radiation prediction device, comprising:
[0041] A data classification module is used to obtain the historical solar radiation data of the study area, and perform weather classification on the historical solar radiation data to obtain a variety of solar radiation classification data corresponding to different weather types;
[0042] A modal decomposition module, used for performing modal decomposition on each of the solar radiation classification data to obtain multiple solar radiation components;
[0043] A radiation prediction module, used to input each of the solar radiation components into a trained solar radiation prediction model to obtain corresponding solar radiation prediction data, and accumulate the solar radiation prediction data corresponding to each of the solar radiation components to obtain solar radiation target data of the study area;
[0044] The model parameters in the solar radiation prediction model are obtained by iterative optimization using the whale optimization algorithm.
[0045] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, any step of the solar radiation prediction method described in the first aspect is implemented.
[0046] According to a fourth aspect of the present disclosure, there is provided an electronic device, including:
[0047] A processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, any step of the solar radiation prediction method described in the first aspect is implemented.
[0048] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0049] The solar radiation prediction method provided in the example embodiment of the present disclosure, on the one hand, can analyze the solar radiation characteristics under different weather conditions through weather classification, improve the pertinence and accuracy of the prediction, so as to adapt to the complex and changeable climate environment; on the other hand, by adaptively decomposing the time series data of solar radiation, the radiation change characteristics of different frequencies and scales can be separated, which is helpful to extract the key information affecting the radiation intensity; on the other hand, the whale optimization algorithm is used to iteratively optimize the prediction model parameters, which can effectively reduce the blindness of parameter selection and enhance the adaptability and prediction accuracy of the model; in addition, the decomposed radiation components are predicted and accumulated one by one, which not only takes into account the multi-scale characteristics of radiation changes, but also integrates the information of each component, so as to achieve a comprehensive and accurate prediction of the overall radiation level. Moreover, accurate solar radiation prediction helps to plan countermeasures in advance, reduce the risk of energy supply interruption caused by sudden weather changes, and thus ensure the safe and stable operation of the power system when the solar thermal power station is connected to the grid.
[0050] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0052] Figure 1 A schematic diagram of the system architecture of a solar radiation prediction method to which the embodiment of the present disclosure can be applied is shown.
[0053] Figure 2 A flow chart of a solar radiation prediction method in an embodiment of the present disclosure is shown.
[0054] Figure 3 A type of solar radiation classification data corresponding to a sunny day in an embodiment of the present disclosure is shown.
[0055] Figure 4 A type of solar radiation classification data corresponding to a cloudy day in an embodiment of the present disclosure is shown.
[0056] Figure 5 A type of solar radiation classification data corresponding to a cloudy day in an embodiment of the present disclosure is shown.
[0057] Figure 6 A flow chart of another solar radiation prediction method in an embodiment of the present disclosure is shown.
[0058] Figure 7 A schematic diagram of a solar radiation prediction device in an embodiment of the present disclosure is shown.
[0059] Figure 8 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure is shown.
[0060] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION
[0061] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. The singular forms "a", "the" and "the" used in this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0062] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0063] Figure 1 A schematic diagram of the system architecture of a solar radiation prediction method to which the embodiment of the present disclosure can be applied is shown.
[0064] like Figure 1 As shown, the system architecture 100 may include one or more of terminal devices such as a smart phone 101, a portable computer 102, a desktop computer 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the terminal device and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0065] The terminal device can be any electronic device with data processing function, which has a display screen for displaying historical solar radiation data of the study area, classified solar radiation data of different weather types, solar radiation forecast data, etc. to the user. The electronic device includes but is not limited to the above-mentioned desktop computers, portable computers, smart phones, tablet computers, etc.
[0066] The server 105 can communicate with the remote sensing device to obtain relevant data such as atmospheric parameters using the remote sensing device data. It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. For example, the server 105 may be a server cluster composed of multiple servers.
[0067] The solar radiation prediction method provided in the embodiment of the present disclosure can be executed by a terminal device, and accordingly, the solar radiation prediction device can be set in the terminal device. However, it is easy for those skilled in the art to understand that the solar radiation prediction method provided in the embodiment of the present disclosure can also be executed by the server 105, and accordingly, the solar radiation prediction device can also be set in the server 105, which is not particularly limited in this exemplary embodiment.
[0068] The embodiment of the present disclosure first provides a solar radiation prediction method. The method is described below by taking server execution as an example. Figure 2 The flowchart of a solar radiation prediction method in an embodiment of the present disclosure is schematically shown. Figure 2 As shown, the method may include steps S210 to S230:
[0069] Step S210, obtaining historical solar radiation data of the study area, and performing weather classification on the historical solar radiation data to obtain a plurality of solar radiation classification data corresponding to different weather types;
[0070] Step S220, performing modal decomposition on each of the solar radiation classification data to obtain multiple solar radiation components;
[0071] Step S230, inputting each of the solar radiation components into the trained solar radiation prediction model to obtain corresponding solar radiation prediction data, and accumulating the solar radiation prediction data corresponding to each of the solar radiation components to obtain solar radiation target data of the study area;
[0072] The model parameters in the solar radiation prediction model are obtained by iterative optimization using the whale optimization algorithm.
[0073] The solar radiation prediction method provided by the present disclosure can, on the one hand, analyze the solar radiation characteristics under different weather conditions through weather classification, improve the pertinence and accuracy of the prediction, and thus adapt to the complex and changeable climate environment; on the other hand, by adaptively decomposing the time series data of solar radiation, the radiation change characteristics of different frequencies and scales can be separated, which helps to extract the key information affecting the radiation intensity; on the other hand, the whale optimization algorithm is used to iteratively optimize the prediction model parameters, which can effectively reduce the blindness of parameter selection and enhance the adaptability and prediction accuracy of the model; in addition, the decomposed radiation components are predicted and accumulated one by one, which not only takes into account the multi-scale characteristics of radiation changes, but also integrates the information of each component, and realizes a comprehensive and accurate prediction of the overall radiation level. Moreover, accurate solar radiation prediction helps to plan countermeasures in advance, reduce the risk of energy supply interruption caused by sudden weather changes, and thus ensure the safe and stable operation of the power system when the solar thermal power station is connected to the grid.
[0074] The solar radiation prediction method in this example embodiment will be described in detail below.
[0075] In step S210, historical solar radiation data of the study area is obtained, and weather classification is performed on the historical solar radiation data to obtain a variety of solar radiation classification data corresponding to different weather types.
[0076] In the example implementation of the present disclosure, the study area refers to the area where the solar thermal power station is located. Solar thermal power generation refers to the use of a large-scale concentrating system to focus the direct normal radiation of the sun, heat the heat transfer medium to generate thermal energy, and then generate high-temperature steam through a heat exchange system to drive equipment such as steam turbines to generate electricity. Correspondingly, solar radiation historical data refers to continuous observation data obtained by observing and recording the amount of direct normal radiation from the sun over a period of time in the past. In this example embodiment, the time interval for collecting solar radiation historical data can be a few hours, a few days, a few months, etc., and the present disclosure does not specifically limit this.
[0077] For example, the historical solar radiation data may be acquired in real time from corresponding monitoring equipment such as a ground observation station, or the historical solar radiation data stored in advance may be acquired from a database, and this example embodiment does not specifically limit this.
[0078] It should be noted that after obtaining the original historical solar radiation data, the historical solar radiation data can be preprocessed, such as filling missing values to ensure the continuity and integrity of the data set, thereby ensuring the accuracy of time series analysis; outlier correction can also be performed to correct observations that deviate significantly from the normal range. Missing value filling and outlier correction can also be performed simultaneously to ensure the quality and reliability of the data, thereby ensuring the accuracy and effectiveness of subsequent data analysis and model prediction.
[0079] After obtaining the complete historical solar radiation data in the study area, the historical solar radiation data can be classified into weather types to facilitate the subsequent analysis of solar radiation intensity under different weather types.
[0080] In an example implementation, the classification characteristic value corresponding to the solar radiation historical data can be determined, and the solar radiation historical data can be classified into weather types according to the classification characteristic value to obtain a variety of solar radiation classification data corresponding to different weather types. Among them, the classification characteristic value at least includes the degree of fluctuation of the solar radiation historical data, the maximum value in the solar radiation historical data, and the deviation between the solar radiation historical data and the solar radiation theoretical data, and the solar radiation theoretical data is determined by a trained clear sky model. Different weather types can be distinguished according to the classification characteristic value, such as sunny, cloudy, overcast, etc.
[0081] Exemplarily, the degree of fluctuation of the historical solar radiation data can be characterized by calculating the standard deviation and variance of the historical solar radiation data or using a fluctuation index; the maximum value of solar radiation in a preset time period, such as every day, can be recorded, and this feature helps to identify clear weather; according to the geographical location, time data and atmospheric transparency of the study area, the clear sky model is used to calculate the theoretical solar radiation data, and the deviation between the historical solar radiation data and the theoretical solar radiation data is calculated. Among them, the geographical location of the study area can be any at least one of the longitude, latitude, time zone, altitude and other information, and the present disclosure does not specifically limit this. The clear sky model is a mathematical model used to simulate and predict the transmission of solar radiation in the earth's atmosphere. Correspondingly, the theoretical solar radiation data can refer to the theoretical amount of solar radiation under a clear sky.
[0082] For example, a set of classification characteristic values can be defined by the standard deviation of the solar radiation historical data, the maximum value of the solar radiation historical data in a preset time period, and the deviation between the solar radiation historical data and the solar radiation theoretical data. Furthermore, the classification characteristic values can be input into a preset classification algorithm to automatically classify the solar radiation historical data of different time periods into different categories according to the classification characteristic values, and each category represents a weather category, that is, a variety of solar radiation classification data can be obtained. It can be understood that the preset classification algorithm can be a clustering algorithm, a classification algorithm, etc. The clustering algorithm includes a K-means algorithm, a hierarchical clustering algorithm, etc. The classification algorithm includes a decision tree algorithm, a random forest algorithm, etc., and the present disclosure does not limit this.
[0083] refer to Figure 3-Figure 5 As shown in the figure, the solar radiation classification data corresponding to sunny days, cloudy days and overcast days are given schematically. Figure 3-Figure 5It can be seen that compared with the sunny day type and cloudy day type, the fluctuation degree of the solar radiation classification data corresponding to the cloudy day type is larger, and the maximum value of the solar radiation intensity is relatively low, which indicates that the maximum output power of the photothermal power station on cloudy days is also low.
[0084] In this example, the degree of fluctuation in the historical solar radiation data can reflect the instability of the weather and can directly affect the energy collection efficiency of the CSP plant. By identifying weather types with large fluctuations, the operating status of the energy storage system can be planned in advance to avoid energy surplus or shortage. The maximum value in the historical solar radiation data provides an upper limit on the light intensity, which is crucial for designing the maximum output power of the power station and determining the optimal operating point. The deviation of the historical solar radiation data from the clear sky model can help understand the impact of cloud cover and other atmospheric conditions on solar radiation, facilitating the establishment of a more accurate prediction model. Importantly, CSP plants can adjust their operating strategies according to different weather types, such as increasing energy storage charging when bad weather is expected, and maximizing power generation efficiency under high radiation conditions.
[0085] In step S220, modal decomposition is performed on each of the solar radiation classification data to obtain multiple solar radiation components.
[0086] After obtaining a plurality of solar radiation classification data corresponding to different weather types, in order to identify and extract the key features of solar radiation data under different weather types, each solar radiation classification data can be further modally decomposed to obtain multiple solar radiation components. For example, any one of principal component analysis, independent component analysis, singular value decomposition, variational mode decomposition and other methods can be used to perform modal decomposition on each solar radiation classification data.
[0087] Exemplarily, a corresponding objective function can be constructed based on each solar radiation classification data, multiple modal components and corresponding center frequencies can be initialized, and each modal component and the corresponding center frequency can be iteratively updated based on the objective function, and multiple solar radiation components can be obtained when the first iteration termination condition is met. The first iteration termination condition can be that the energy loss in the decomposition process reaches a predetermined threshold, or that a preset number of iterations is reached, or that the change amplitude of the modal component in several consecutive iterations is less than a set threshold, etc. The corresponding iteration termination condition can also be set according to the objective function and actual needs, and the present disclosure does not limit this.
[0088] For example, the objective function L constructed based on each solar radiation classification data is:
[0089] (1)
[0090] Among them, K is the total number of solar radiation components, α, β, γ are weight factors, is the kth modal component at time t, is the center frequency corresponding to the kth solar radiation component, is the instantaneous frequency at time t, is the solar radiation classification data at time t, is a complex exponential function that represents the frequency dependence of the modal component.
[0091] The objective function shown in formula (1) combines modal separation, modal orthogonality, and energy concentration. By minimizing this objective function, it is possible to ensure that each modal component decomposed is orthogonal to each other to ensure the independence of the decomposition; by minimizing the sum of the squares of the deviations between each modal component and its corresponding center frequency, the energy of each modal component is concentrated in a specific frequency band, which helps to separate dynamics of different time scales; by minimizing the residual sum of squares between the original signal and the sum of all modal components, the accuracy of modal decomposition is guaranteed.
[0092] For example, for each modal component and the corresponding center frequency Set the initial value and optimize the modal components alternately in each iteration and center frequency , the value of the objective function L is reduced by gradient descent or other optimization algorithms. When the decrease of the objective function L is lower than the convergence threshold or reaches the maximum number of iterations, the iteration is stopped, and finally multiple solar radiation components are obtained, each of which carries different dynamic characteristics of the original signal.
[0093] In step S230, each of the solar radiation components is input into the trained solar radiation prediction model to obtain corresponding solar radiation prediction data, and the solar radiation prediction data corresponding to each of the solar radiation components is accumulated to obtain the solar radiation target data of the study area; wherein the model parameters in the solar radiation prediction model are obtained by iterative optimization using the whale optimization algorithm.
[0094] In an example implementation, each solar radiation component obtained by decomposition may be normalized to obtain multiple input data. For example, each solar radiation component may be normalized by Min-Max (deviation normalization) or Z-Score (Z score) to avoid a situation where a certain weather type dominates the prediction result of the solar radiation prediction model due to its large value. Moreover, the scale difference between features may be reduced through normalization, thereby improving the prediction efficiency and accuracy.
[0095] Then, each input data obtained by normalization processing is input into the trained solar radiation prediction model to obtain the corresponding solar radiation prediction data. The trained solar radiation prediction model can be a single hidden layer neural network including multiple input layer neurons, multiple hidden layer neurons and a single output layer neuron.
[0096] Exemplarily, the trained solar radiation prediction model is a trained deep extreme learning machine model. The deep extreme learning machine model is a dynamically evolving neural network, which means that it can automatically adjust the network structure and model parameters according to the learning process. Therefore, the deep extreme learning machine model is suitable for processing nonlinear and time-varying data prediction problems.
[0097] For example, the solar radiation component is input into a single hidden layer neural network containing L input layer neurons, N hidden layer neurons and a single output layer neuron. The corresponding solar radiation prediction data output by the deep extreme learning machine model is:
[0098] (2)
[0099] in, is the i-th solar radiation forecast data, L is the number of neurons in the input layer, N is the number of neurons in the hidden layer, is the connection weight from the i-th hidden layer neuron to the output layer neuron, is the connection weight between the i-th input layer neuron and the j-th hidden layer neuron, is the activation function of the hidden layer neurons, is the jth input data, is the threshold of the jth hidden layer neuron.
[0100] Accordingly, the model parameters in the solar radiation prediction model may include the output weight matrix between the hidden layer neurons and the output layer neurons, which is:
[0101] (3)
[0102] Among them, β is the output weight matrix between the hidden layer neurons and the output layer neurons in the deep extreme learning machine model, H is the output matrix of the hidden layer neurons in the deep extreme learning machine model, T represents the transpose operation, C is the regularization parameter, X is the input data, N is the number of neurons in the output layer, is the number of neurons in the hidden layer, and H' is the sample output matrix in the deep extreme learning machine model.
[0103] It can be understood that the parameters in formula (2) is the weight matrix An element in represents the connection weight from the i-th hidden layer neuron to the output layer neuron.
[0104] After obtaining the solar radiation prediction data corresponding to each solar radiation component, the multiple prediction values output by the solar radiation prediction model can be integrated to obtain an overall prediction result.
[0105] Exemplarily, the predicted solar radiation target data includes first solar radiation data and second solar radiation data. For example, the solar radiation prediction data corresponding to each solar radiation component can be accumulated, such as tensor accumulation of the solar radiation prediction data corresponding to each solar radiation component to obtain the first solar radiation data. Of course, when integrating the solar radiation prediction data corresponding to each solar radiation component, all solar radiation prediction data can also be averaged to obtain solar radiation target data, or other data integration methods can be used, which is not limited in the present disclosure.
[0106] In order to make the prediction results meaningful, the first solar radiation data needs to be converted back to the original scale, that is, the first solar radiation data needs to be denormalized to obtain the second solar radiation data. The second solar radiation data can be used for comparative analysis with the historical solar radiation data.
[0107] In the exemplary implementation of the present disclosure, a solar radiation prediction model is constructed in combination with a deep extreme learning machine, which can predict the solar normal direct radiation of the same site at different time scales, and improve the accuracy and reliability of the prediction results. Moreover, it can be applied to the prediction of solar normal direct radiation of different sites at different time scales, and has good generalization performance.
[0108] In an example implementation, before inputting each solar radiation component into the trained solar radiation prediction model, the preset neural network model may be pre-trained to obtain the solar radiation prediction model. For example, the preset neural network model may be a deep extreme learning machine model under the initialization model parameters, the trained solar radiation prediction model may be an extreme learning machine model after iterative optimization of the model parameters, and the preset neural network model may be a single hidden layer neural network including multiple input layer neurons, multiple hidden layer neurons, and a single output layer neuron.
[0109] During the model training process, the solar radiation training data of the study area can be obtained first. The solar radiation training data includes a training data set and a test data set. For example, 70% of the solar radiation training data is divided into a training data set, and the remaining 30% is divided into a test data set. The training data set is used to train the preset neural network model, and the test data set is used to test and evaluate the model after the training of the preset neural network model is completed. If the evaluation result of the preset neural network model that has completed the training is unqualified, it is necessary to adjust the model parameters and retrain the model. If the evaluation result of the preset neural network model that has completed the training is qualified, it will be used as a trained solar radiation prediction model to predict the subsequent solar radiation.
[0110] In an example implementation, the model parameters of a preset neural network model can be iteratively optimized using a whale optimization algorithm. The whale optimization algorithm is a global optimization algorithm suitable for parameter optimization. Through the whale optimization algorithm, the parameters of the preset neural network model can be efficiently iterated to determine the parameter combination that optimizes the model performance.
[0111] Specifically, the parameters to be optimized of the preset neural network model can be determined, and the parameters to be optimized can be preset as the initial position vector of the whale optimization algorithm. The parameters to be optimized may include the output weight matrix between the hidden layer neurons and the output layer neurons in the model. This parameter can affect the stability and recognition accuracy of the model. Improper parameter selection may cause modal aliasing, overenvelope or underenvelope, and overfitting during the operation. Of course, the parameters to be optimized may also include the connection weights between the input layer neurons and the hidden layer neurons and the thresholds of the hidden layer neurons, etc., which are not limited in this disclosure. It can be understood that a set of parameters to be optimized is a whale individual.
[0112] Next, the algorithm parameters in the whale optimization algorithm are initialized, and the fitness function is constructed using the solar radiation training data, wherein the algorithm parameters include at least the population size of whales, the dimension of the search space, and the maximum number of iterations.
[0113] For example, the constructed fitness function F can be:
[0114] (4)
[0115] Among them, RMSE (Root Mean Square Error) is the root mean square error between the solar radiation prediction data and the solar radiation observation data in the solar radiation training data, MAE (Mean Absolute Error) is the mean absolute error between the solar radiation prediction data and the solar radiation observation data in the solar radiation training data, and CV (Coefficient of Variation) is the relative standard deviation between the solar radiation prediction data and the solar radiation observation data in the solar radiation training data. , is the weight coefficient, Used to adjust the balance between RMSE and MAE, Used to adjust the relative importance of CV in the fitness function.
[0116] In formula (4), we have:
[0117] (5)
[0118] (6)
[0119] (7)
[0120] Where n is the number of samples in the solar radiation training data, is the solar radiation observation data corresponding to the i-th sample, is the solar radiation prediction data corresponding to the i-th sample, is the standard deviation of the difference between the solar radiation prediction data and the solar radiation observation data, is the average value of solar radiation observation data.
[0121] Then, the fitness value of each whale individual is calculated based on the fitness function shown in formula (4) to formula (7), and the current whale individual with the smallest fitness value is determined. Furthermore, the initial position vector can be iteratively updated according to the fitness value of the current whale individual, and when the second iteration termination condition is met, the target position vector of the optimal whale individual is obtained. The second iteration termination condition can be reaching a preset number of iterations or the fitness function converges, which is not limited in the present disclosure.
[0122] For example, the position of the whale individual with the smallest fitness value in the current iteration process can be obtained, and the position of the whale individual is used as the optimal position of the current individual. The positions of all whale individuals are updated using the shrinking and encircling mechanism or the spiral equation, and then the next iteration is entered to calculate the fitness values of all whales after the updated positions. The loop is terminated after the error accuracy is met or the maximum number of iterations is reached, and the target position vector of the optimal whale individual is obtained.
[0123] The iterative process is:
[0124] (8)
[0125] Among them, z is the current iteration number, x(z) is the coordinate vector of the whale individual at the zth iteration, x(z+1) is the coordinate vector of the whale individual at the z+1th iteration, A and C are coefficient vectors, D is the calculated intermediate parameter, and x'(z) is the coordinate vector of the optimal whale individual.
[0126] The target position vector obtained is the target parameter, which can be assigned to the preset neural network model to obtain the solar radiation prediction model. Among them, the coordinate vector x'(z) of the optimal whale individual obtained when the whale optimization algorithm stops iterating is the target parameter, that is, the weight matrix β in the optimized preset neural network model.
[0127] refer to Figure 6 As shown, a flowchart of another solar radiation prediction method in an embodiment of the present disclosure is schematically shown. The method may include steps S601 to S613:
[0128] Step S601, obtaining the solar normal direct radiation in the historical time period: the obtained solar normal direct radiation can be divided into a training data set, a test data set and a prediction data set, the training data set and the test data set are used to optimize the parameters of the DELM (Deep Extreme Learning Machine) model, and the prediction data set is used to predict the solar normal direct radiation in the target time period through the optimized DELM model;
[0129] Step S602, performing weather classification on the direct solar radiation;
[0130] Step S603, using VMD (Variational Mode Decomposition) method to perform modal decomposition on the classified solar normal direct radiation;
[0131] Step S604, data normalization: normalizing the solar radiation components obtained by modal decomposition;
[0132] Step S605, setting the number of network nodes and parameters to be optimized of the DELM model, wherein the parameters to be optimized include the output weight matrix between the hidden layer neurons and the output layer neurons in the DELM model;
[0133] Step S606, initializing WOA (Whale Optimization Algorithm) algorithm parameters, which include at least the number of whale populations, the dimension of the search space, and the maximum number of iterations, and starting iterations so that individual whales reach the optimal position to surround the target prey;
[0134] Step S607, determine whether the number of iterations N is less than the maximum number of iterations: if so, execute step S608, if not, execute step S611;
[0135] Step S608, calculating the fitness of all individuals and selecting the best individual;
[0136] Step S609, judging whether the fitness value of the current best individual is less than the fitness value of the historical best individual: comparing the fitness value of the current best individual with the fitness value of the historical best individual, if the fitness value of the current best individual is less than the fitness value of the historical best individual, executing step S610, otherwise, executing step S607 to repeat the iteration;
[0137] Step S610, updating parameter values;
[0138] Step S611, outputting the optimal parameters: until the iteration termination condition is met, that is, the number of iterations N is not less than the maximum number of iterations, the optimal parameters are output;
[0139] Step S612, input into the DELM model: assign the optimal parameters to the DELM model to obtain an optimized DELM model, and input the normalized test data set into the optimized DELM model;
[0140] Step S613, predicting the solar normal direct radiation in the target time period.
[0141] In this example, first, the VMD method is used to adaptively decompose the solar normal direct radiation data; then, the whale optimization algorithm is used to iteratively optimize the input weights and hidden layer thresholds in the deep extreme learning machine, which solves the problem of blind selection of model parameters in the deep extreme learning machine and enhances the stability and generalization ability of the deep extreme learning machine classification model; finally, based on the decomposed solar normal direct radiation data, the whale optimization algorithm-deep extreme learning machine model is used to predict the solar normal direct radiation, with smaller prediction error fluctuations, higher prediction accuracy, and the best overall performance.
[0142] Taking the collected historical solar radiation data as an example, different prediction models are used for case analysis. The comparison methods include SSA-ELM (Sparrow Optimization Algorithm Optimized Extreme Learning Machine), WOA-ELM (Whale Optimization Algorithm Optimized Extreme Learning Machine), VMD-WOA-ELM (Variational Mode Decomposition-Whale Optimization Algorithm Optimized Extreme Learning Machine). The prediction results are shown in Table 1. The three performance indicators RMSE, MAE and R2 represent the root mean square error, mean absolute error and determination coefficient, respectively. The smaller the values of RMSE and MAE, the higher the accuracy of the model prediction. The larger the value of R2, the stronger the prediction ability of the model and the higher the prediction accuracy.
[0143] Table 1
[0144]
[0145] It can be seen from Table 1 that the solar radiation prediction method in the exemplary implementation of the present disclosure has a prediction result corresponding to RMSE, MAE and R2 of 43.15, 29.36 and 0.9786 respectively. Compared with the prediction model in the related art, VMD-WOA-DELM (Variational Mode Decomposition-Whale Optimization Algorithm Optimized Deep Extreme Learning Machine) can more accurately predict the solar radiation at a certain time scale.
[0146] The solar radiation prediction method provided in the example embodiment of the present disclosure, on the one hand, can analyze the solar radiation characteristics under different weather conditions through weather classification, improve the pertinence and accuracy of the prediction, so as to adapt to the complex and changeable climate environment; on the other hand, by adaptively decomposing the time series data of solar radiation, the radiation change characteristics of different frequencies and scales can be separated, which is helpful to extract the key information affecting the radiation intensity; on the other hand, the whale optimization algorithm is used to iteratively optimize the prediction model parameters, which can effectively reduce the blindness of parameter selection and enhance the adaptability and prediction accuracy of the model; in addition, the decomposed radiation components are predicted and accumulated one by one, which not only takes into account the multi-scale characteristics of radiation changes, but also integrates the information of each component, so as to achieve a comprehensive and accurate prediction of the overall radiation level. Moreover, accurate solar radiation prediction helps to plan countermeasures in advance, reduce the risk of energy supply interruption caused by sudden weather changes, and thus ensure the safe and stable operation of the power system when the solar thermal power station is connected to the grid.
[0147] In this exemplary embodiment, a solar radiation prediction device is also provided. Figure 7 As shown, the device may include a data classification module 710, a modal decomposition module 720 and a radiation prediction module 730, wherein:
[0148] The data classification module 710 is used to obtain the historical solar radiation data of the study area, and perform weather classification on the historical solar radiation data to obtain a variety of solar radiation classification data corresponding to different weather types;
[0149] A modal decomposition module 720 is used to perform modal decomposition on each of the solar radiation classification data to obtain multiple solar radiation components;
[0150] The radiation prediction module 730 is used to input each of the solar radiation components into the trained solar radiation prediction model to obtain corresponding solar radiation prediction data, and accumulate the solar radiation prediction data corresponding to each of the solar radiation components to obtain solar radiation target data of the study area;
[0151] The model parameters in the solar radiation prediction model are obtained by iterative optimization using the whale optimization algorithm.
[0152] In an exemplary embodiment of the present disclosure, the modal decomposition module 720 is configured to construct a corresponding objective function based on each of the solar radiation classification data;
[0153] Initializing a plurality of modal components and corresponding center frequencies, iteratively updating each of the modal components and the corresponding center frequencies based on the objective function, and obtaining the plurality of solar radiation components when a first iteration termination condition is met;
[0154] The objective function L is:
[0155] ;
[0156] Among them, K is the total number of solar radiation components, α, β, γ are weight factors, is the kth modal component at time t, is the center frequency corresponding to the kth solar radiation component, is the instantaneous frequency at time t, is the solar radiation classification data at time t, is a complex exponential function that represents the frequency dependence of the modal component.
[0157] In an example embodiment of the present disclosure, the radiation prediction module 730 is configured to normalize each of the solar radiation components to obtain corresponding multiple input data; input each of the input data into a trained solar radiation prediction model to obtain corresponding solar radiation prediction data; wherein the trained solar radiation prediction model is a single hidden layer neural network including multiple input layer neurons, multiple hidden layer neurons and a single output layer neuron.
[0158] In an exemplary embodiment of the present disclosure, the trained solar radiation prediction model is a deep extreme learning machine model, and the model parameters in the solar radiation prediction model include an output weight matrix between hidden layer neurons and output layer neurons, which is:
[0159] ;
[0160] Among them, β is the output weight matrix between the hidden layer neurons and the output layer neurons in the deep extreme learning machine model, H is the output matrix of the hidden layer neurons in the deep extreme learning machine model, is the number of neurons in the hidden layer, N is the number of neurons in the output layer, H' is the sample output matrix in the deep extreme learning machine model, C is the regularization parameter, and X is the input data.
[0161] In an example embodiment of the present disclosure, the solar radiation prediction device also includes a model optimization module, which is further configured to obtain solar radiation training data of a study area; determine the parameters to be optimized of a preset neural network model, and preset the parameters to be optimized as the initial position vector of a whale optimization algorithm; initialize the algorithm parameters in the whale optimization algorithm, and construct a fitness function using the solar radiation training data, wherein the algorithm parameters include at least the population size of whales, the dimension of the search space, and the maximum number of iterations; calculate the fitness value of each whale individual based on the fitness function, and determine the current whale individual with the smallest fitness value; iteratively update the initial position vector according to the fitness value of the current whale individual, and when the second iteration termination condition is met, obtain the target position vector of the optimal whale individual; obtain the target parameter according to the target position vector, assign the target parameter to the preset neural network model, and obtain the solar radiation prediction model.
[0162] In an example embodiment of the present disclosure, the data typing module 710 is configured to determine a typing characteristic value corresponding to the solar radiation historical data; the solar radiation historical data is weather typed according to the typing characteristic value to obtain a plurality of solar radiation classification data corresponding to different weather types; wherein the typing characteristic value includes at least the degree of fluctuation of the solar radiation historical data, the maximum value in the solar radiation historical data, and the deviation between the solar radiation historical data and the solar radiation theoretical data, and the solar radiation theoretical data is determined by a trained clear sky model.
[0163] In an example embodiment of the present disclosure, the solar radiation target data includes first solar radiation data and second solar radiation data; when the radiation prediction module 730 accumulates the solar radiation prediction data corresponding to each of the solar radiation components to obtain the solar radiation target data of the study area, it is configured to accumulate the solar radiation prediction data corresponding to each of the solar radiation components to obtain the first solar radiation data; and denormalize the first solar radiation data to obtain the second solar radiation data.
[0164] The specific details of each module of the above-mentioned solar radiation prediction device have been described in detail in the corresponding solar radiation prediction method, so they will not be repeated here.
[0165] The exemplary embodiments of the present disclosure also provide a computer-readable storage medium on which a program product capable of implementing the above-mentioned method of the present specification is stored. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on an electronic device, the program code is used to enable the electronic device to perform the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of the present specification.
[0166] The program product may be in the form of a portable compact disk read-only memory (CD-ROM) and include program code, and may be run on an electronic device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0167] The program product may adopt any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, a system, device or component of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0168] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0169] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0170] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C#, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0171] In addition, an exemplary embodiment of the present disclosure also provides an electronic device capable of implementing the above-mentioned solar radiation prediction method.
[0172] Refer to the following Figure 8 800 according to this embodiment of the present disclosure is described. Figure 8 The electronic device 800 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0173] like Figure 8 As shown, the electronic device 800 is in the form of a general computing device. The components of the electronic device 800 may include but are not limited to: the at least one processing unit 810, the at least one storage unit 820, a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810), and a display unit 840.
[0174] The storage unit 820 stores program codes, which can be executed by the processing unit 810, so that the processing unit 810 performs the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification. For example, the processing unit 810 can perform the method steps in the exemplary embodiments of the present disclosure.
[0175] The storage unit 820 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 821 and / or a cache memory unit (Cache) 822 , and may further include a read-only memory unit (ROM) 823 .
[0176] The storage unit 820 may also include a program / utility 824 having a set (at least one) of program modules 825, such program modules 825 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0177] Bus 830 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0178] The electronic device 800 can also communicate with one or more external devices 900 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable users to interact with the electronic device 800, and / or communicate with any device that enables the electronic device 800 to communicate with one or more other computing devices (e.g., routers, modems, etc.). This communication can be carried out through an input / output (I / O) interface 850. In addition, the electronic device 800 can also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs) and / or public networks, such as the Internet) through a network adapter 860. As shown in the figure, the network adapter 860 communicates with other modules of the electronic device 800 through a bus 830. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0179] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.
[0180] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0181] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.
[0182] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
[0183] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A solar radiation prediction method, It is characterized in that include: Obtaining historical solar radiation data of the study area, and performing weather classification on the historical solar radiation data to obtain a variety of solar radiation classification data corresponding to different weather types; Performing modal decomposition on each of the solar radiation classification data to obtain multiple solar radiation components; Input each of the solar radiation components into the trained solar radiation prediction model to obtain corresponding solar radiation prediction data, and accumulate the solar radiation prediction data corresponding to each of the solar radiation components to obtain solar radiation target data for the study area; Wherein, the model parameters in the solar radiation prediction model are obtained by iterative optimization using the whale optimization algorithm; The modal decomposition is performed on each of the solar radiation classification data to obtain multiple solar radiation components, including: Constructing a corresponding objective function based on each of the solar radiation classification data; Initializing a plurality of modal components and corresponding center frequencies, iteratively updating each of the modal components and the corresponding center frequencies based on the objective function, and obtaining the plurality of solar radiation components when a first iteration termination condition is met; The objective function L is: ; in, K is the total amount of solar radiation components, α, β, γ is the weight factor, for t The moment k modal components, For the k The central frequency corresponding to each solar radiation component is for t The instantaneous frequency at time, for t Solar radiation classification data at the moment, is a complex exponential function that represents the frequency dependence of the modal component.
2. The solar radiation prediction method according to claim 1, It is characterized in that The step of inputting each of the solar radiation components into a trained solar radiation prediction model to obtain corresponding solar radiation prediction data includes: Normalizing each of the solar radiation components to obtain corresponding multiple input data; Inputting each of the input data into the trained solar radiation prediction model to obtain corresponding solar radiation prediction data; The trained solar radiation prediction model is a single hidden layer neural network including multiple input layer neurons, multiple hidden layer neurons and a single output layer neuron.
3. The solar radiation prediction method according to claim 2, It is characterized in that The trained solar radiation prediction model is a deep extreme learning machine model. The model parameters in the solar radiation prediction model include the output weight matrix between the hidden layer neurons and the output layer neurons, which is: ; Among them, β is the output weight matrix between the hidden layer neurons and the output layer neurons in the deep extreme learning machine model, H is the output matrix of the hidden layer neurons in the deep extreme learning machine model, is the number of neurons in the hidden layer, N is the number of neurons in the output layer, is the sample output matrix in the deep extreme learning machine model, C is the regularization parameter, and X is the input data.
4. The solar radiation prediction method according to claim 1, It is characterized in that Before inputting each of the solar radiation components into the trained solar radiation prediction model, the method further includes: Obtain solar radiation training data for the study area; Determine the parameters to be optimized of the preset neural network model, and preset the parameters to be optimized as the initial position vector of the whale optimization algorithm; Initializing algorithm parameters in the whale optimization algorithm and constructing a fitness function using the solar radiation training data, wherein the algorithm parameters include at least the number of whale populations, the dimension of the search space, and the maximum number of iterations; Calculating the fitness value of each individual whale based on the fitness function, and determining the current individual whale with the smallest fitness value; Iteratively updating the initial position vector according to the fitness value of the current whale individual, and obtaining the target position vector of the optimal whale individual when the second iteration termination condition is met; Target parameters are obtained according to the target position vector, and the target parameters are assigned to the preset neural network model to obtain the solar radiation prediction model.
5. The solar radiation prediction method according to claim 1, It is characterized in that The weather classification of the solar radiation historical data is performed to obtain a plurality of solar radiation classification data corresponding to different weather types, including: Determine the classification characteristic value corresponding to the solar radiation historical data; The solar radiation historical data is weather classified according to the classification characteristic value to obtain a plurality of solar radiation classification data corresponding to different weather types; Among them, the classification characteristic value at least includes the fluctuation degree of the solar radiation historical data, the maximum value in the solar radiation historical data, and the deviation between the solar radiation historical data and the solar radiation theoretical data, and the solar radiation theoretical data is determined by a trained clear sky model.
6. The solar radiation prediction method according to claim 1, It is characterized in that The solar radiation target data includes first solar radiation data and second solar radiation data; The accumulating solar radiation prediction data corresponding to each of the solar radiation components to obtain solar radiation target data of the study area includes: Accumulating the solar radiation prediction data corresponding to each of the solar radiation components to obtain the first solar radiation data; The first solar radiation data is denormalized to obtain the second solar radiation data.
7. A solar radiation prediction device, It is characterized in that include: A data classification module is used to obtain the historical solar radiation data of the study area, and perform weather classification on the historical solar radiation data to obtain a variety of solar radiation classification data corresponding to different weather types; A modal decomposition module, used for performing modal decomposition on each of the solar radiation classification data to obtain multiple solar radiation components; A radiation prediction module, used to input each of the solar radiation components into a trained solar radiation prediction model to obtain corresponding solar radiation prediction data, and accumulate the solar radiation prediction data corresponding to each of the solar radiation components to obtain solar radiation target data of the study area; Wherein, the model parameters in the solar radiation prediction model are obtained by iterative optimization using the whale optimization algorithm; The modal decomposition is performed on each of the solar radiation classification data to obtain multiple solar radiation components, including: Constructing a corresponding objective function based on each of the solar radiation classification data; Initializing a plurality of modal components and corresponding center frequencies, iteratively updating each of the modal components and the corresponding center frequencies based on the objective function, and obtaining the plurality of solar radiation components when a first iteration termination condition is met; The objective function L is: ; in, K is the total amount of solar radiation components, α, β, γ is the weight factor, for t The moment k modal components, For the k The central frequency corresponding to each solar radiation component is for t The instantaneous frequency at time, for t Solar radiation classification data at the moment, is a complex exponential function that represents the frequency dependence of the modal component.
8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the solar radiation prediction method according to any one of claims 1 to 6 is implemented.
9. An electronic device, It is characterized in that include: processor; as well as A memory having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by the processor, implement the solar radiation prediction method according to any one of claims 1 to 6.
