Photovoltaic station power prediction method and device, electronic equipment and storage medium
By using the target spatio-temporal feature data and error discrimination model of the photovoltaic station, the current predicted power and error type of the photovoltaic station are determined, which solves the problem of the limited number of sample station features in the existing technology and achieves efficient and accurate photovoltaic power predict.
Patent Information
- Application Number
- CN202410855883.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-22
AI Technical Summary
In the existing photovoltaic power prediction methods, the number of sample station features is limited, resulting in incomplete coverage of the prediction power error, affecting the accuracy of the prediction results, and the efficiency of the traversal process is low.
Based on the target spatio-temporal characteristic data of the photovoltaic site to be predicted and the pre-built power prediction model, the current predicted power is determined, and the pre-trained error discrimination model is used to determine the error type, thereby correcting the prediction results and improving prediction accuracy and efficiency.
The error level is reflected by the error type, and the prediction power error is accurately determined without traversing sample site characteristics, which improves the accuracy and efficiency of photovoltaic site power prediction.
Smart Images

Figure CN118822014A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of new energy technology, and in particular to a photovoltaic station power prediction method, device, electronic equipment and storage medium. Background Art
[0002] As the proportion of photovoltaic installed capacity increases, large-scale photovoltaic access has brought great challenges to the safe and stable operation of the power grid. Accurate photovoltaic power prediction is an effective means to meet the challenges.
[0003] In the prior art, photovoltaic power prediction mainly builds a prediction model based on the characteristics of the photovoltaic station to be predicted, and obtains the target predicted power through the characteristics of the photovoltaic station to be predicted and the prediction model. In addition, the sample station characteristics of the sample photovoltaic stations where the predicted power and the actual power have errors are collected in advance, and the sample station characteristics are traversed. If there are sample station characteristics that match the characteristics of the station to be predicted, it means that there is an error in the target predicted power, and the target predicted power is corrected.
[0004] However, in the process of implementing the present invention, it was found that the prior art has at least the following technical problems: the number of pre-collected sample station features is limited, and the coverage of the station features corresponding to the predicted power with errors is not comprehensive, resulting in the inability to accurately determine whether there are errors in the target predicted power, thereby affecting the accuracy of the power prediction results of the photovoltaic station to be predicted; and, the sample station features are traversed, resulting in low efficiency in the power prediction process. Summary of the invention
[0005] The embodiments of the present invention provide a photovoltaic power station power prediction method, device, electronic device and storage medium to achieve the purpose of ensuring the accuracy of target predicted power and improving prediction efficiency.
[0006] According to one aspect of the present invention, a photovoltaic station power prediction method is provided, comprising:
[0007] Determine the current predicted power corresponding to the photovoltaic station to be predicted based on the target spatiotemporal characteristic data of the photovoltaic station to be predicted and the pre-built power prediction model;
[0008] Based on the target spatiotemporal feature data and a pre-trained error discrimination model, an error type corresponding to the current predicted power is obtained; wherein the error type is used to reflect the error level of the current predicted power;
[0009] Based on the error type and the current predicted power, a target predicted power corresponding to the photovoltaic station to be predicted is determined.
[0010] According to another aspect of the present invention, a photovoltaic station power prediction device is provided, the device comprising:
[0011] A current predicted power determination module is used to determine the current predicted power corresponding to the photovoltaic station to be predicted based on the target spatiotemporal characteristic data of the photovoltaic station to be predicted and a pre-built power prediction model;
[0012] An error type determination module, used to obtain the error type corresponding to the current predicted power based on the target spatiotemporal feature data and a pre-trained error discrimination model; wherein the error type is used to reflect the error level of the current predicted power;
[0013] The target predicted power determination module is used to determine the target predicted power corresponding to the photovoltaic station to be predicted based on the error type and the current predicted power.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the photovoltaic station power prediction method described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the photovoltaic station power prediction method described in any embodiment of the present invention when executed.
[0019] The technical solution of the embodiment of the present invention determines the current predicted power corresponding to the photovoltaic station to be predicted based on the target spatiotemporal feature data of the photovoltaic station to be predicted and a pre-built power prediction model; obtains the error type corresponding to the current predicted power based on the target spatiotemporal feature data and a pre-trained error discrimination model; since the error type is used to reflect the error level of the current predicted power, the error type determined by the error discrimination model can reflect the error situation of the current predicted power, and there is no need to traverse the sample station features according to the prior art to make the determination, and it is not affected by the number of sample station features, and the error type can be accurately determined for each current predicted power; based on the error type and the current predicted power, the target predicted power corresponding to the photovoltaic station to be predicted is determined, which ensures the accuracy of the target predicted power while improving the prediction efficiency.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of a photovoltaic station power prediction method provided according to an embodiment of the present invention;
[0023] Figure 2 is a flow chart of another photovoltaic station power prediction method provided according to an embodiment of the present invention;
[0024] Figure 3 is a schematic diagram of the structure of a photovoltaic station power prediction device provided according to an embodiment of the present invention;
[0025] Figure 4 It is a structural schematic diagram of an electronic device for implementing the photovoltaic station power prediction method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "etc." and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Figure 1 This is a flow chart of a photovoltaic station power prediction method provided according to an embodiment of the present invention. This embodiment is applicable to the case of predicting the power generated by a photovoltaic station. The method can be performed by a photovoltaic station power prediction device, which can be implemented in the form of hardware and / or software.
[0029] like Figure 1 As shown, the method of this embodiment may specifically include:
[0030] S110 : Determine the current predicted power corresponding to the photovoltaic station to be predicted based on the target spatiotemporal characteristic data of the photovoltaic station to be predicted and a pre-built power prediction model.
[0031] The target spatiotemporal characteristic data is used to reflect the meteorological characteristics of the photovoltaic station to be predicted within the time period to be predicted. For example, if the time period to be predicted is a certain day, the target spatiotemporal characteristic data is the numerical weather forecast of the photovoltaic station to be predicted on that day, and the time resolution of the numerical weather forecast can be 15 minutes.
[0032] In a specific implementation, based on the target spatiotemporal characteristic data of the photovoltaic station to be predicted and a pre-built power prediction model, the current predicted power corresponding to the photovoltaic station to be predicted is determined, including: inputting the first meteorological observation data and the second meteorological observation data into the power prediction model, and outputting the current predicted power corresponding to the photovoltaic station to be predicted.
[0033] Among them, the adjacent area is the area connected to the photovoltaic station to be predicted. The target spatiotemporal feature data includes the first meteorological observation data of the photovoltaic station to be predicted and the second meteorological observation data of the adjacent area corresponding to the photovoltaic station to be predicted; the power prediction model includes a neural network model (TNC-LSTM) obtained by combining a temporal convolutional neural network with a long short-term memory neural network.
[0034] In this embodiment, the output result of the power prediction model is used as the current predicted power corresponding to the photovoltaic station to be predicted. In order to more accurately determine the current predicted power, the ledger data of the photovoltaic station to be predicted can also be obtained. The ledger data can reflect information such as the working parameters and working status of the photovoltaic station to be predicted.
[0035] In this embodiment, the neural network model obtained by combining the time convolutional neural network with the long short-term memory neural network is used as a power prediction model, which is conducive to quickly determining the current predicted power corresponding to the photovoltaic station to be predicted; and when determining the current predicted power of the photovoltaic station to be predicted, not only the meteorological observation conditions of the photovoltaic station to be predicted are taken into account, but also the meteorological observation conditions of the adjacent areas associated with the photovoltaic station to be predicted are combined, and the factors affecting the power output are considered from multiple aspects, which is conducive to improving the accuracy of the current predicted power.
[0036] S120: Based on the target spatiotemporal feature data and a pre-trained error discrimination model, an error type corresponding to the current predicted power is obtained.
[0037] Among them, the error discrimination model can be a pre-trained neural network model, and the error type is used to reflect the error level of the current predicted power. The higher the error level, the higher the error of the current predicted power determined by the error discrimination model relative to the actual output power; conversely, the lower the error of the current predicted power determined by the error discrimination model relative to the actual output power. Optionally, the error type includes a high error type and a low error type. Alternatively, the error type may also include a high error type, a medium error type, and a low error type. It should be noted that those skilled in the art can determine the number of levels of error type division according to actual application conditions, and this embodiment is not limited to this.
[0038] In a specific implementation, the target spatiotemporal feature data can be directly input into the error discrimination model, and the output result of the error discrimination model can be used as the error type corresponding to the current predicted power. Furthermore, in order to combine the characteristics of the target spatiotemporal feature data in a more detailed and comprehensive manner and determine the error type more accurately, the implementation method of obtaining the error type corresponding to the current predicted power based on the target spatiotemporal feature data and the pre-trained error discrimination model includes: performing linear transformation processing on the target spatiotemporal feature data based on the extreme value normalization method to obtain image data; converting the image data into a grayscale image, inputting the grayscale image into the error discrimination model, and outputting the error type corresponding to the current predicted power;
[0039] Among them, the error discrimination model includes a convolutional neural network model.
[0040] Specifically, the extreme value normalization method can be used to perform linear transformation on the target time feature data to obtain image data, so that the image data is between [0, 255]. Further, the image data is converted into a grayscale image, and the grayscale image is used as the input of the error discrimination model, so that the error discrimination model outputs the error type corresponding to the current predicted power.
[0041] This embodiment uses the grayscale image after image processing as input, so as to more comprehensively reflect the characteristics of the target spatiotemporal feature data, which is conducive to accurately determining the error type.
[0042] S130: Determine the target predicted power corresponding to the photovoltaic station to be predicted based on the error type and the current predicted power.
[0043] In this embodiment, when the error type includes a high error type and a low error type, the target predicted power corresponding to the photovoltaic station to be predicted is determined based on the error type and the current predicted power, including: when the error type corresponding to the current predicted power is a high error type, the target spatiotemporal characteristic data and the current predicted power are input into a pre-constructed error correction model to obtain the target predicted power corresponding to the photovoltaic station to be predicted.
[0044] It should be noted that when the error type corresponding to the current predicted power is a high error type, it means that the error between the current predicted power and the actual power is large, and the current predicted power needs to be corrected.
[0045] Specifically, the target spatiotemporal feature data and the current predicted power can be simultaneously input into a pre-built error correction model to correct the current predicted power, and the output result of the error correction model is used as the target predicted power. The error correction model includes a neural network model (TNC-LSTM) obtained by combining a temporal convolutional neural network with a long short-term memory neural network.
[0046] In this embodiment, the current predicted power with a high error type is corrected by using an error correction model to obtain a target predicted power with higher accuracy.
[0047] Furthermore, based on the error type and the current predicted power, determining the target predicted power corresponding to the photovoltaic station to be predicted may also include: when the error type corresponding to the current predicted power is a low error type, determining the current predicted power as the target predicted power.
[0048] It should be noted that when the error type corresponding to the current predicted power is a low error type, it means that the error between the predicted current predicted power and the actual power is small, that is, the accuracy of the current predicted power is high. There is no need to correct the current predicted power, and the current predicted power can be directly used as the target predicted power.
[0049] In this embodiment, when the error type is a low error type, the current predicted power is used as the target predicted power, so that the target predicted power can be quickly determined without affecting the accuracy of the power prediction result of the photovoltaic station to be predicted, thereby improving the efficiency of determining the target predicted power.
[0050] The technical solution of the embodiment of the present invention determines the current predicted power corresponding to the photovoltaic station to be predicted based on the target spatiotemporal feature data of the photovoltaic station to be predicted and a pre-built power prediction model; obtains the error type corresponding to the current predicted power based on the target spatiotemporal feature data and a pre-trained error discrimination model; since the error type is used to reflect the error level of the current predicted power, the error type determined by the error discrimination model can reflect the error situation of the current predicted power, and there is no need to traverse the sample station features according to the prior art to make the determination, and it is not affected by the number of sample station features, and the error type can be accurately determined for each current predicted power; based on the error type and the current predicted power, the target predicted power corresponding to the photovoltaic station to be predicted is determined, which ensures the accuracy of the target predicted power while improving the prediction efficiency.
[0051] Figure 2 is a flow chart of another photovoltaic station power prediction method provided according to an embodiment of the present invention. Before determining the current predicted power corresponding to the photovoltaic station to be predicted, this embodiment also trains the power prediction model. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here. Figure 2 As shown, the method includes:
[0052] S210, obtaining a first sample training set; training a prediction model to be trained based on the first spatiotemporal feature data and the first actual power to obtain a power prediction model.
[0053] The first sample training set includes a plurality of first spatiotemporal feature data and a plurality of first actual powers.
[0054] Specifically, the historical spatiotemporal characteristic data of the photovoltaic station to be predicted generated in the historical time period and the regional historical spatiotemporal characteristic data of the adjacent area corresponding to the photovoltaic station to be predicted can be obtained, and the historical spatiotemporal characteristic data of the station and the regional historical spatiotemporal characteristic data are used as the first spatiotemporal characteristic data; and the historical actual power corresponding to the historical spatiotemporal characteristic data of the photovoltaic station to be predicted in the historical time period is obtained as the first actual power.
[0055] In this embodiment, the prediction model to be trained includes a neural network model obtained by combining a time convolutional neural network with a long short-term memory neural network. The first spatiotemporal feature data is input into the prediction model to be trained, and the first predicted power corresponding to the first spatiotemporal feature data is output. Based on the first predicted power and the first actual power, a loss value is determined, and the model parameters of the prediction model to be trained are corrected based on the loss value, and a power prediction model that meets the preset training objectives is trained. Exemplarily, the preset training objectives include the convergence of the loss function of the prediction model to be trained.
[0056] Furthermore, the first sample training set may also include training ledger data of the photovoltaic station to be predicted in the historical time period. The training ledger data may reflect information such as the working parameters and working status of the photovoltaic station to be predicted in the historical time period. The prediction model to be trained may also be trained based on the training ledger data, the first spatiotemporal feature data and the first actual power to obtain a power prediction model.
[0057] In this embodiment, the prediction model to be trained is trained by using the first sample training set to obtain a power prediction model, thereby facilitating the determination of the current predicted power of the photovoltaic station to be predicted.
[0058] S220: Determine the current predicted power corresponding to the photovoltaic station to be predicted based on the target spatiotemporal characteristic data of the photovoltaic station to be predicted and a pre-built power prediction model.
[0059] S230: Based on the target spatiotemporal feature data and a pre-trained error discrimination model, obtain the error type corresponding to the current predicted power.
[0060] In this embodiment, before obtaining the error type corresponding to the current predicted power based on the target spatiotemporal feature data and a pre-trained error discrimination model, it also includes: obtaining a second sample training set; wherein the second sample training set includes second spatiotemporal feature data and second actual power; for each second spatiotemporal feature data in the second sample training set, inputting the second spatiotemporal feature data into the power prediction model to obtain the second predicted power corresponding to the second spatiotemporal feature data, and determining the prediction error value corresponding to the second predicted power based on the second predicted power and the second actual power corresponding to the second spatiotemporal feature data; determining the error type corresponding to each second predicted power based on each prediction error value and preset screening conditions; and training the pre-constructed discrimination model to be trained based on the second spatiotemporal feature data and the error type corresponding to the second spatiotemporal feature data to obtain an error discrimination model.
[0061] In a specific implementation, an error discrimination model is trained through the second spatiotemporal feature data and the second actual power in the second sample training set. Specifically, for each second spatiotemporal feature data, the difference between the second predicted power corresponding to the second spatiotemporal feature data and the second actual power is used as a prediction error value. Optionally, based on each prediction error value and a preset screening condition, the implementation method for determining the error type corresponding to each second predicted power includes: determining the error type of the second predicted power whose prediction error value is greater than a preset error threshold as a high error type; determining the error type of the second predicted power whose prediction error value is less than or equal to the preset error threshold as a low error type. Alternatively, the method for determining the error type may also include: sorting the second predicted powers from large to small according to the prediction error value, determining the error type of the second predicted power whose sequence value is greater than the preset sequence value as a high error type; determining the error type of the second predicted power whose sequence value is less than or equal to the preset sequence value as a low error type. Alternatively, the method for determining the error type may also include: sorting the second predicted powers from large to small according to the prediction error value, determining the error type of the second predicted power whose sequence value is greater than the preset sequence value as a high error type; determining the error type of the second predicted power whose sequence value is less than or equal to the preset sequence value as a low error type.
[0062] Furthermore, each second spatiotemporal feature data may be subjected to a linear transformation according to an extreme value normalization method, the data obtained after the linear transformation processing may be converted into a grayscale image, the converted grayscale image may be input into the discriminant model to be trained, and the model parameters of the discriminant model to be trained may be corrected based on the output result of the discriminant model to be trained and the error type corresponding to the second spatiotemporal feature data, so as to train and obtain an error discriminant model. The discriminant model to be trained includes a convolutional neural network model.
[0063] This embodiment determines the error type of the second prediction power through the prediction error value and the preset screening condition, and trains the discriminant model to be trained based on the error type of the second prediction power, so as to effectively obtain the error discriminant model for determining the error type of the spatiotemporal feature data.
[0064] S230: Determine the target predicted power corresponding to the photovoltaic station to be predicted based on the error type and the current predicted power.
[0065] In this embodiment, before determining the target predicted power corresponding to the photovoltaic station to be predicted, the correction model to be trained can also be trained to obtain an error correction model. Specifically, the third spatiotemporal feature data corresponding to the high error type can be screened out to train the correction model to be trained, and the correction model to be trained includes a neural network model obtained by combining a temporal convolutional neural network with a long short-term memory neural network.
[0066] Furthermore, in order to ensure the accuracy of the target predicted power, a sample test set can be obtained, which includes multiple fourth spatiotemporal feature data and multiple third actual powers; the ratio of the total amount of data of the first sample training set and the second sample training set to the amount of data of the sample test set can be set to 3:1. The trained power prediction model, error discrimination model and error correction model are combined to construct a comprehensive prediction model corresponding to the photovoltaic site to be predicted. The model performance of the comprehensive prediction model is tested by the sample test set. Exemplarily, the root mean square error and the mean absolute error are used as the performance evaluation criteria of the comprehensive prediction model.
[0067] This embodiment trains the prediction model to be trained, the discrimination model to be trained and the correction model to be trained through the first sample training set, the second sample training set and the sample test set, thereby effectively constructing a power prediction model, an error discrimination model and an error correction model.
[0068] Figure 3 1 is a schematic diagram of the structure of a photovoltaic station power prediction device provided according to an embodiment of the present invention, and the device is used to execute the photovoltaic station power prediction method provided by any of the above embodiments. The device and the photovoltaic station power prediction method of the above embodiments belong to the same inventive concept, and the details not described in detail in the embodiments of the photovoltaic station power prediction device can refer to the embodiments of the photovoltaic station power prediction method. Figure 3 As shown, the device comprises:
[0069] The current predicted power determination module 10 is used to determine the current predicted power corresponding to the photovoltaic station to be predicted based on the target spatiotemporal characteristic data of the photovoltaic station to be predicted and the pre-built power prediction model;
[0070] The error type determination module 11 is used to obtain the error type corresponding to the current predicted power based on the target spatiotemporal feature data and the pre-trained error discrimination model; wherein the error type is used to reflect the error level of the current predicted power;
[0071] The target predicted power determination module 12 is used to determine the target predicted power corresponding to the photovoltaic station to be predicted based on the error type and the current predicted power.
[0072] Based on any optional technical solution in the embodiment of the present invention, optionally, the error type determination module 11 includes:
[0073] A linear transformation unit is used to perform linear transformation processing on the target spatiotemporal feature data based on an extreme value normalization method to obtain image data;
[0074] A data conversion unit, used to convert the image data into a grayscale image, input the grayscale image into an error discrimination model, and output the error type corresponding to the current predicted power;
[0075] Among them, the error discrimination model includes a convolutional neural network model.
[0076] Based on any optional technical solution in the embodiment of the present invention, optionally, the error type includes a high error type and a low error type;
[0077] The target predicted power determination module 12 comprises:
[0078] The first target predicted power determination unit is used to input the target spatiotemporal characteristic data and the current predicted power into a pre-built error correction model when the error type corresponding to the current predicted power is a high error type, so as to obtain the target predicted power corresponding to the photovoltaic station to be predicted.
[0079] Based on any optional technical solution in the embodiment of the present invention, optionally, the target predicted power determination module 12 includes:
[0080] The second target predicted power determining unit is configured to determine the current predicted power as the target predicted power when the error type corresponding to the current predicted power is a low error type.
[0081] On the basis of any optional technical solution in the embodiments of the present invention, optionally, the target spatiotemporal characteristic data includes first meteorological observation data of the photovoltaic station to be predicted and second meteorological observation data of an adjacent area corresponding to the photovoltaic station to be predicted; the power prediction model includes a neural network model obtained by combining a time convolutional neural network with a long short-term memory neural network;
[0082] The current predicted power determination module 10 comprises:
[0083] The current predicted power determination unit is used to input the first meteorological observation data and the second meteorological observation data into the power prediction model, and output the current predicted power corresponding to the photovoltaic station to be predicted.
[0084] Based on any optional technical solution in the embodiments of the present invention, optionally, the device further includes:
[0085] A first sample training set acquisition module is used to acquire a first sample training set before determining the current predicted power corresponding to the photovoltaic station to be predicted; wherein the first sample training set includes first spatiotemporal feature data and first actual power;
[0086] The training module of the prediction model to be trained is used to train the prediction model to be trained based on the first spatiotemporal feature data and the first actual power to obtain a power prediction model.
[0087] Based on any optional technical solution in the embodiments of the present invention, optionally, the device further includes:
[0088] A second sample training set acquisition module is used to acquire a second sample training set before obtaining the error type corresponding to the current predicted power based on the target spatiotemporal feature data and the pre-trained error discrimination model; wherein the second sample training set includes the second spatiotemporal feature data and the second actual power;
[0089] A prediction error value determination module is used to input the second spatiotemporal feature data into the power prediction model for each second spatiotemporal feature data in the second sample training set, obtain a second predicted power corresponding to the second spatiotemporal feature data, and determine a prediction error value corresponding to the second predicted power based on the second predicted power and a second actual power corresponding to the second spatiotemporal feature data;
[0090] A type determination module, used to determine the error type corresponding to each second predicted power based on each predicted error value and a preset screening condition;
[0091] The training module of the discriminant model to be trained is used to train the pre-constructed discriminant model to be trained based on the second spatiotemporal feature data and the error type corresponding to the second spatiotemporal feature data to obtain an error discriminant model.
[0092] The technical solution of the embodiment of the present invention determines the current predicted power corresponding to the photovoltaic station to be predicted based on the target spatiotemporal feature data of the photovoltaic station to be predicted and a pre-built power prediction model; obtains the error type corresponding to the current predicted power based on the target spatiotemporal feature data and a pre-trained error discrimination model; since the error type is used to reflect the error level of the current predicted power, the error type determined by the error discrimination model can reflect the error situation of the current predicted power, and there is no need to traverse the sample station features according to the prior art to make the determination, and it is not affected by the number of sample station features, and the error type can be accurately determined for each current predicted power; based on the error type and the current predicted power, the target predicted power corresponding to the photovoltaic station to be predicted is determined, which ensures the accuracy of the target predicted power while improving the prediction efficiency.
[0093] It is worth noting that in the above-mentioned embodiment of the photovoltaic station power prediction device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0094] Figure 4It is a structural schematic diagram of an electronic device for implementing the photovoltaic station power prediction method of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0095] like Figure 4 As shown, the electronic device 20 includes at least one processor 21, and a memory connected to the at least one processor 21, such as a read-only memory (ROM) 22, a random access memory (RAM) 23, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 21 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 22 or the computer program loaded from the storage unit 28 to the random access memory (RAM) 23. In RAM23, various programs and data required for the operation of the electronic device 20 can also be stored. The processor 21, ROM22 and RAM23 are connected to each other through a bus 24. An input / output (I / O) interface 25 is also connected to the bus 24.
[0096] A number of components in the electronic device 20 are connected to the I / O interface 25, including: an input unit 26, such as a keyboard, a mouse, etc.; an output unit 27, such as various types of displays, speakers, etc.; a storage unit 28, such as a disk, an optical disk, etc.; and a communication unit 29, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 29 allows the electronic device 20 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0097] The processor 21 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 21 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 21 executes the various methods and processes described above, such as a photovoltaic station power prediction method.
[0098] In some embodiments, the photovoltaic power station power prediction method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 28. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 20 via the ROM 22 and / or the communication unit 29. When the computer program is loaded into the RAM 23 and executed by the processor 21, one or more steps of the photovoltaic power station power prediction method described above can be performed. Alternatively, in other embodiments, the processor 21 can be configured to execute the photovoltaic power station power prediction method in any other appropriate manner (for example, by means of firmware).
[0099] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0100] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0101] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer 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 of the foregoing.
[0102] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0103] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0104] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0105] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0106] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A photovoltaic station power prediction method, characterized in that: include: Determine the current predicted power corresponding to the photovoltaic station to be predicted based on the target spatiotemporal characteristic data of the photovoltaic station to be predicted and the pre-built power prediction model; Based on the target spatiotemporal feature data and a pre-trained error discrimination model, an error type corresponding to the current predicted power is obtained; wherein the error type is used to reflect the error level of the current predicted power; Based on the error type and the current predicted power, a target predicted power corresponding to the photovoltaic station to be predicted is determined.
2. The method according to claim 1, characterized in that The obtaining of the error type corresponding to the current predicted power based on the target spatiotemporal feature data and the pre-trained error discrimination model includes: Based on the extreme value standardization method, the target spatiotemporal feature data is subjected to linear transformation processing to obtain image data; Converting the image data into a grayscale image, inputting the grayscale image into the error discrimination model, and outputting the error type corresponding to the current predicted power; Wherein, the error discrimination model includes a convolutional neural network model.
3. The method according to claim 1, characterized in that The error types include high error types and low error types; The determining, based on the error type and the current predicted power, a target predicted power corresponding to the photovoltaic station to be predicted includes: When the error type corresponding to the current predicted power is the high error type, the target spatiotemporal characteristic data and the current predicted power are input into a pre-built error correction model to obtain the target predicted power corresponding to the photovoltaic station to be predicted.
4. The method according to claim 3, characterized in that The determining, based on the error type and the current predicted power, a target predicted power corresponding to the photovoltaic station to be predicted includes: In a case where the error type corresponding to the current predicted power is the low error type, the current predicted power is determined as the target predicted power.
5. The method according to claim 1, characterized in that The target spatiotemporal characteristic data includes first meteorological observation data of the photovoltaic station to be predicted and second meteorological observation data of an adjacent area corresponding to the photovoltaic station to be predicted; the power prediction model includes a neural network model obtained by combining a time convolutional neural network with a long short-term memory neural network; The step of determining the current predicted power corresponding to the photovoltaic station to be predicted based on the target spatiotemporal characteristic data of the photovoltaic station to be predicted and the pre-built power prediction model includes: The first meteorological observation data and the second meteorological observation data are input into the power prediction model, and the current predicted power corresponding to the photovoltaic station to be predicted is output.
6. The method according to claim 1, characterized in that Before determining the current predicted power corresponding to the photovoltaic station to be predicted, the method further includes: Acquire a first sample training set; wherein the first sample training set includes first spatiotemporal feature data and first actual power; Based on the first spatiotemporal feature data and the first actual power, the prediction model to be trained is trained to obtain the power prediction model.
7. The method according to claim 1, characterized in that Before obtaining the error type corresponding to the current predicted power based on the target spatiotemporal feature data and the pre-trained error discrimination model, the method further includes: Acquire a second sample training set; wherein the second sample training set includes second spatiotemporal feature data and second actual power; For each second spatiotemporal feature data in the second sample training set, input the second spatiotemporal feature data into the power prediction model to obtain a second predicted power corresponding to the second spatiotemporal feature data, and determine a prediction error value corresponding to the second predicted power based on the second predicted power and a second actual power corresponding to the second spatiotemporal feature data; Based on each of the prediction error values and a preset screening condition, determining an error type corresponding to each of the second prediction powers; Based on the second spatiotemporal feature data and the error type corresponding to the second spatiotemporal feature data, a pre-constructed discriminant model to be trained is trained to obtain the error discriminant model.
8. A photovoltaic station power prediction device, characterized in that: include: A current predicted power determination module is used to determine the current predicted power corresponding to the photovoltaic station to be predicted based on the target spatiotemporal characteristic data of the photovoltaic station to be predicted and a pre-built power prediction model; An error type determination module, used to obtain the error type corresponding to the current predicted power based on the target spatiotemporal feature data and a pre-trained error discrimination model; wherein the error type is used to reflect the error level of the current predicted power; The target predicted power determination module is used to determine the target predicted power corresponding to the photovoltaic station to be predicted based on the error type and the current predicted power.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the photovoltaic station power prediction method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the photovoltaic station power prediction method according to any one of claims 1 to 7 when executed.
