Photovoltaic system generation power prediction method and device based on edge cluster

By using the photovoltaic system power generation power prediction method in the edge cluster, processing multi -dimensional input data, conducting feature screening and extraction, training power generation prediction models, solving the problem of predicting the power prediction of distributed photovoltaic power generation in the existing technology, and realizing accurate accurate accurate Short -term power generation power forecast.

CN119362429AActive Publication Date: 2025-01-24GUANGDONG POWER GRID CO LTD +1

Patent Information

Application Number
CN202411470905.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-21
Publication Date
2025-01-24
Estimated Expiration
2044-10-21

Smart Images

  • Figure CN119362429A_ABST
    Figure CN119362429A_ABST
Patent Text Reader

Abstract

The invention provides a photovoltaic system generation power prediction method and device based on an edge cluster, and the method is suitable for a distributed photovoltaic power generation system, and the method comprises the steps: obtaining first generation power, first position information, second generation power, second position information, a first maintenance plan, and first environment data at a first preset time interval, performing preprocessing to obtain a first training data set; performing feature screening on the first training data set according to a recursive feature elimination method to obtain a second training data set; performing feature extraction on the second training data set based on a factor analysis method to obtain a third training data set; performing prediction model training based on the third training data set to obtain a power generation prediction model; and obtaining a target prediction parameter, and inputting the target prediction parameter into the power generation prediction model to obtain target power generation power. The method solves the problem that a distributed photovoltaic power generation power prediction method based on multi-dimensional feature data is lacked in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power monitoring technology, and in particular to a method, device, computer-readable storage medium and monitoring system for predicting power generation of a photovoltaic system based on an edge cluster. Background Art

[0002] At present, the construction of the edge cluster system of the cloud-edge integrated intelligent scheduling and operation platform (CEP) requires the realization of distributed photovoltaic power generation prediction.

[0003] The main architecture is based on a cloud-edge fusion intelligent dispatching and operation platform. The bottom layer is model data service, operation data service and real-time data service, which provide data foundation for load forecasting. The second layer includes computing engine and artificial intelligence engine, which provide basic services such as data cleaning, deep learning environment and power forecasting function for applications. The top layer is the application layer, which pushes power forecasting models or results, displays visual data and manages forecasting results.

[0004] In summary, the prior art lacks a distributed photovoltaic power prediction method based on an edge cluster system, and a method for predicting short-term power generation within different ranges based on multi-dimensional input data. Summary of the invention

[0005] The main purpose of this application is to provide a photovoltaic system power generation prediction method, device, computer-readable storage medium and monitoring system based on edge clusters, so as to at least solve the problem in the prior art of lacking a distributed photovoltaic power generation prediction method based on multi-dimensional feature data.

[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for predicting power generation of a photovoltaic system based on an edge cluster is provided, and the method is applicable to a distributed photovoltaic power generation system, and the distributed photovoltaic power generation system includes a metering system, a scheduling management system and a meteorological system. The method includes: at each interval of a first preset time, respectively obtaining the power generation power and location information of the distributed photovoltaic from the metering system to obtain the first power generation power and the first location information, obtaining the power generation power of the distributed photovoltaic directly connected to the grid on the user side from the metering system to obtain the second power generation power, obtaining the feeder corresponding to the distributed photovoltaic directly connected to the grid on the user side from the scheduling management system to obtain the second location information, obtaining the maintenance record from the scheduling management system to obtain the first maintenance plan, obtaining the environmental data from the meteorological system to obtain the first environmental data, and performing the first power generation power, the first location information, the second power generation power, the second location information, the first maintenance plan and the first The environmental data is preprocessed to obtain a first training data set, and the preprocessing includes at least data cleaning, data clipping and data completion; the first training data set is feature screened according to a recursive feature elimination method to obtain a second training data set; the second training data set is feature extracted based on a factor analysis method to obtain a third training data set; a prediction model is trained based on the third training data set to obtain a power generation prediction model, and the power generation prediction model is used to predict the power generation power of the distributed photovoltaic power generation system within a second preset time period in the future based on one or more of the first power generation power, the second power generation power, the first maintenance plan and the first environmental data; a target prediction parameter is obtained, and the target prediction parameter is input into the power generation prediction model to obtain a target power generation power, and the target prediction parameter includes at least one of the first power generation power, the second power generation power, the first maintenance plan and the first environmental data within the first preset time period in the past.

[0007] Optionally, the first power generation, the first location information, the second power generation, the second location information and the first environmental data are preprocessed to obtain a first training data set, including: determining the substation corresponding to the first power generation based on the first location information, and summing the first power generation corresponding to each substation to obtain a corresponding third power generation; determining the substation to which the feeder corresponding to the second power generation belongs based on the second location information, and accumulating the power generation corresponding to each feeder according to the relationship between the feeder and the substation, the second power generation and the third power generation to obtain a corresponding fourth power generation; constructing a fourth training data set according to the third power generation, the fourth power generation, the first maintenance plan and the first environmental data; and performing missing value processing, continuous constant value processing, mutation outlier processing and trend outlier processing on the fourth training data set in turn to obtain the first training data set.

[0008] Optionally, the fourth training data set is sequentially subjected to missing value processing and continuous constant value processing, including: traversing the fourth training data set to determine the null value or NAN value of the sample data therein, and determining it as the missing value; replacing the missing value based on a first preset value to complete the missing value processing; calculating the difference between the sample data at each adjacent moment to obtain a first power increment, summing the adjacent first power increments, and when the second power increment is less than a first threshold, determining the sample data corresponding to the second power increment as the continuous constant value; when the duration corresponding to the continuous constant value is less than the second threshold, processing is performed based on the linear filling method, and when the duration corresponding to the continuous constant value is greater than or equal to the second threshold, processing is performed based on the similarity day method.

[0009] Optionally, performing mutation outlier processing on the fourth training data set includes: based on a preset formula The sample data in the fourth training data set is screened to obtain the mutation outlier value, where prob() is a probability function, ΔP t is the change in sample data corresponding to adjacent moments, and E is ΔP t Corresponding to the expectation, k represents the degree to which the sample deviates from the expectation; the mutation outliers are deleted and filled based on linear interpolation.

[0010] Optionally, trend outlier processing is performed on the fourth training data set, including: taking the irradiance in the first environmental data in the fourth training data set as a reference, determining the changing trend of the irradiance, and when the changing trend of the third power generation or the fourth power generation in the fourth training data set is opposite to the changing trend of the irradiance, repairing the changing trend of the third power generation or the fourth power generation based on the linear complement method.

[0011] Optionally, the first training data set is feature screened according to a recursive feature elimination method to obtain a second training data set, including: taking the first training data set as an initial feature set, testing the performance of the preset learner based on the initial feature set to obtain a performance score; when the performance score of the preset learner is less than a third threshold, performing a feature score according to the weight coefficient of each feature in the initial feature set to obtain a target feature score; arranging each feature from small to large based on the target feature score and deleting a preset number of features; re-testing the performance of the preset learner based on the updated initial feature set and updating the initial feature set until the performance score is greater than or equal to the third threshold, and determining the initial feature set as the second training data set.

[0012] Optionally, feature extraction is performed on the second training data set based on factor analysis to obtain a third training data set, including: constructing a sample sequence based on the second training data set, wherein each row of the sample sequence represents a sample, and each column of the sample sequence represents a characteristic variable; calculating a correlation coefficient matrix between each of the characteristic variables, and performing factor analysis based on the correlation coefficient matrix to determine a first target factor; expressing the characteristic variables as a linear combination of the common first target factors to obtain factor loadings of each of the characteristic variables on each common factor; screening main factors corresponding to each of the characteristic variables based on the factor loadings, and determining the characteristic variables whose factor loadings corresponding to the corresponding main factors are greater than a fourth threshold as target variables; and constructing the third training data set based on the target variables.

[0013] According to another aspect of the present application, a method for predicting power generation of a photovoltaic system based on an edge cluster is provided, and the device is applicable to a distributed photovoltaic power generation system, and the distributed photovoltaic power generation system includes a metering system, a scheduling management system and a meteorological system, and the device includes: a first acquisition unit, which is used to obtain the power generation power and location information of the distributed photovoltaic from the metering system at intervals of a first preset time to obtain the first power generation power and the first location information, obtain the power generation power of the distributed photovoltaic directly connected to the grid on the user side from the metering system to obtain the second power generation power, obtain the feeder corresponding to the distributed photovoltaic directly connected to the grid on the user side from the scheduling management system to obtain the second location information, obtain the maintenance record from the scheduling management system to obtain the first maintenance plan, obtain the environmental data from the meteorological system to obtain the first environmental data, pre-process the first power generation power, the first location information, the second power generation power, the second location information, the first maintenance plan and the first environmental data to obtain A first training data set, wherein the preprocessing includes at least data cleaning, data clipping and data completion; a first calculation unit, used to perform feature screening on the first training data set according to a recursive feature elimination method to obtain a second training data set; a second calculation unit, used to perform feature extraction on the second training data set based on a factor analysis method to obtain a third training data set; a prediction unit, used to perform prediction model training based on the third training data set to obtain a power generation prediction model, wherein the power generation prediction model is used to predict the power generation of the distributed photovoltaic power generation system within a second preset time period in the future based on one or more of the first power generation, the second power generation, the first maintenance plan and the first environmental data; obtain target prediction parameters, input the target prediction parameters into the power generation prediction model to obtain target power generation, wherein the target prediction parameters include at least one of the first power generation, the second power generation, the first maintenance plan and the first environmental data within the first preset time period in the past.

[0014] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described.

[0015] According to another aspect of the present application, a monitoring system is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of the described methods.

[0016] By applying the technical solution of the present application, in the above-mentioned photovoltaic system power generation prediction method based on edge cluster, first, at each first preset time interval, the power generation power and location information of the distributed photovoltaic are respectively obtained from the above-mentioned metering system to obtain the first power generation power and the first location information, the power generation power of the distributed photovoltaic directly connected to the grid on the user side is obtained from the above-mentioned metering system to obtain the second power generation power, the feeder corresponding to the above-mentioned distributed photovoltaic directly connected to the grid on the user side is obtained from the above-mentioned dispatching and management system to obtain the second location information, the maintenance record is obtained from the above-mentioned dispatching and management system to obtain the first maintenance plan, the environmental data is obtained from the above-mentioned meteorological system to obtain the first environmental data, the first power generation power, the first location information, the second power generation power, the second location information, the first maintenance plan and the first environmental data are pre-processed to obtain a first training data set, and the pre-processing at least includes data cleaning and data trimming. Cut and complete the data; then, perform feature screening on the first training data set according to the recursive feature elimination method to obtain a second training data set; then, perform feature extraction on the second training data set based on the factor analysis method to obtain a third training data set; then, perform prediction model training based on the third training data set to obtain a power generation prediction model, the power generation prediction model is used to predict the power generation of the distributed photovoltaic power generation system within the second preset time period in the future based on the first power generation, the second power generation, the first maintenance plan and the first environmental data; finally, obtain the target prediction parameter, input the target prediction parameter into the power generation prediction model to obtain the target power generation, the target prediction parameter includes at least one of the first power generation, the second power generation, the first maintenance plan and the first environmental data within the first preset time period in the past. This application proposes a distributed photovoltaic power generation power prediction method based on marginal groups, which uses power generation, meteorological data and maintenance plan data as input to predict the distributed photovoltaic power generation power converged to different substations and feeders, and realizes the accurate prediction of distributed photovoltaic power generation, which solves the problem of the lack of a distributed photovoltaic power generation power prediction method based on multi-dimensional feature data in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A hardware structure block diagram of a mobile terminal according to a photovoltaic system power generation prediction method based on edge clusters provided in an embodiment of the present application is shown;

[0018] Figure 2 A schematic diagram of a process of predicting photovoltaic system power generation based on edge clusters according to an embodiment of the present application is shown;

[0019] Figure 3A structural block diagram of a photovoltaic system power generation prediction device based on edge clusters provided according to an embodiment of the present application is shown.

[0020] The above drawings include the following reference numerals:

[0021] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION

[0022] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] As introduced in the background technology, the prior art lacks a distributed photovoltaic power prediction method based on an edge cluster system, and a method for predicting short-term power generation within different ranges based on multi-dimensional input data. In order to solve the problem that the prior art lacks a distributed photovoltaic power prediction method based on multi-dimensional feature data, the embodiments of the present application provide a photovoltaic system power prediction method, device, computer-readable storage medium and monitoring system based on an edge cluster.

[0026] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0027] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal of a photovoltaic system power generation prediction method based on edge clusters according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0028] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the display method of device information in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0029] In this embodiment, a photovoltaic system power generation prediction method based on an edge cluster that runs on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.

[0030] Figure 2 FIG. 1 is a flow chart of a photovoltaic system power generation prediction method based on edge cluster according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:

[0031] Step S201, at each first preset time interval, respectively obtain the power generation and location information of the distributed photovoltaic from the metering system to obtain the first power generation and the first location information, obtain the power generation of the distributed photovoltaic directly connected to the grid on the user side from the metering system to obtain the second power generation, obtain the feeder corresponding to the distributed photovoltaic directly connected to the grid on the user side from the dispatching management system to obtain the second location information, obtain the maintenance record from the dispatching management system to obtain the first maintenance plan, obtain the environmental data from the meteorological system to obtain the first environmental data, pre-process the first power generation, the first location information, the second power generation, the second location information, the first maintenance plan and the first environmental data to obtain a first training data set, wherein the pre-processing at least includes data cleaning, data clipping and data completion;

[0032] Specifically, the distributed power generation data and the distribution of distributed photovoltaics are obtained from the metering system on a daily basis to obtain the above-mentioned first power generation and the above-mentioned first location information. The power generation of distributed photovoltaics directly connected to the grid on the user side is obtained from the metering system on a daily basis to obtain the above-mentioned second power generation, the feeder corresponding to the distributed photovoltaics is obtained from the above-mentioned dispatching and management system to obtain the above-mentioned second location information, and the maintenance plan is obtained from the above-mentioned dispatching and management system to obtain the above-mentioned first maintenance plan, and environmental data is obtained from the meteorological system to obtain the above-mentioned first environmental data, and then the distributed photovoltaic power generation prediction data processing algorithm configured in this application is used for preprocessing, and the processed distributed photovoltaic power generation data and meteorological data are merged according to time to obtain a multidimensional data set, and the above-mentioned first training data set is obtained.

[0033] Step S202, performing feature screening on the first training data set according to a recursive feature elimination method to obtain a second training data set;

[0034] Specifically, feature selection selects important features of distributed photovoltaic historical power data, gridded meteorological data and power grid maintenance planning based on the recursive feature elimination method, and generates new features based on the important features to enrich the data dimension of the training data set to obtain the above-mentioned second training data set.

[0035] Step S203, extracting features from the second training data set based on factor analysis to obtain a third training data set;

[0036] Specifically, the intrinsic structure of the feature data is fully mined from the selected features based on factor analysis, new features are further derived, and further changes are performed based on mathematical principles to provide more features for subsequent model training, thereby obtaining the third data set mentioned above.

[0037] Step S204, performing prediction model training based on the third training data set to obtain a power generation prediction model, wherein the power generation prediction model is used to predict the power generation of the distributed photovoltaic power generation system within a second preset time period in the future based on one or more of the first power generation power, the second power generation power, the first maintenance plan and the first environmental data;

[0038] Specifically, model training is performed based on the data in the third training data set to obtain a model for predicting power generation based on multi-dimensional data.

[0039] Step S205, obtain target prediction parameters, input the above target prediction parameters into the above power generation prediction model to obtain target power generation power, the above target prediction parameters include at least one of the above first power generation power, the above second power generation power, the above first maintenance plan and the above first environmental data within the above first preset time period in the past.

[0040] Specifically, relevant data are obtained from the metering system, the dispatching management system and the meteorological system at preset intervals to obtain the target prediction parameters, which are then input into the power generation prediction model to predict the power generation to obtain the target power generation.

[0041] Through this embodiment, first, at each first preset time interval, the power generation and location information of the distributed photovoltaic are respectively obtained from the above-mentioned metering system to obtain the first power generation and the first location information, the power generation of the distributed photovoltaic directly connected to the grid on the user side is obtained from the above-mentioned metering system to obtain the second power generation, the feeder corresponding to the above-mentioned distributed photovoltaic directly connected to the grid on the user side is obtained from the above-mentioned dispatching and management system to obtain the second location information, the maintenance record is obtained from the above-mentioned dispatching and management system to obtain the first maintenance plan, the environmental data is obtained from the above-mentioned meteorological system to obtain the first environmental data, the first power generation, the first location information, the second power generation, the second location information, the first maintenance plan and the first environmental data are pre-processed to obtain a first training data set, and the pre-processing at least includes data cleaning, data clipping and data completion; then, according to the iteration The feature elimination method is used to perform feature screening on the first training data set to obtain a second training data set; then, the feature extraction is performed on the second training data set based on the factor analysis method to obtain a third training data set; then, the prediction model is trained based on the third training data set to obtain a power generation prediction model, and the power generation prediction model is used to predict the power generation of the distributed photovoltaic power generation system within the second preset time period in the future based on one or more of the first power generation, the second power generation, the first maintenance plan and the first environmental data; finally, the target prediction parameter is obtained, and the target prediction parameter is input into the power generation prediction model to obtain the target power generation, and the target prediction parameter includes at least one of the first power generation, the second power generation, the first maintenance plan and the first environmental data within the first preset time period in the past. The present application proposes a distributed photovoltaic power generation power prediction method based on marginal groups, which uses power generation, meteorological data and maintenance plan data as inputs to predict the distributed photovoltaic power generation power converged to different substations and feeders, and realizes accurate prediction of distributed photovoltaic power generation, which solves the problem of the lack of a distributed photovoltaic power generation power prediction method based on multi-dimensional feature data in the prior art.

[0042] In order to obtain the first training data set, in an optional implementation, the step S201 includes:

[0043] Step S2011, determining the substation corresponding to the first power generation based on the first location information, and summing the first power generation corresponding to each substation to obtain the corresponding third power generation;

[0044] Specifically, based on the first power generation and the first location information, the first power generation of all distributed photovoltaics under the station area is accumulated to obtain the third power generation.

[0045] Step S2012, determining the substation to which the feeder corresponding to the second power generation belongs based on the second position information, and accumulating the power generation corresponding to each of the feeders according to the relationship between the feeder and the substation, the second power generation and the third power generation to obtain a corresponding fourth power generation;

[0046] Specifically, based on the correspondence between distributed photovoltaics and substations, and the subordinate relationship between feeders and substations, the distributed power generation gathered in the substations is decomposed, and then the power generation gathered in the feeders is accumulated to obtain the fourth power generation mentioned above.

[0047] Step S2013, constructing a fourth training data set according to the third power generation, the fourth power generation, the first maintenance plan and the first environmental data;

[0048] Specifically, the third generated power, the fourth generated power, the first maintenance plan and the first environmental data are stored in a database for maintenance to obtain the fourth training data set.

[0049] Step S2014, sequentially performing missing value processing, continuous constant value processing, sudden change outlier processing and trend outlier processing on the fourth training data set to obtain the first training data set.

[0050] Specifically, the fourth training data set is subjected to identification and filling of abnormal data such as missing values, sudden change values, and continuous constant values ​​to obtain a training data set with redundant data removed, namely, the first training data set.

[0051] In order to obtain the first training data set, in an optional implementation, the step S2014 includes:

[0052] Step S20141, traversing the fourth training data set to determine the null value or NAN value of the sample data therein, and determining it as the missing value;

[0053] Specifically, the null value or NAN value of the fourth training data and the sample data is detected, and the detection result is determined as the missing value.

[0054] Step S20142, replacing the missing value based on the first preset value to complete the missing value processing;

[0055] Specifically, all the missing values ​​mentioned above are filled with 0.

[0056] It is understandable that the sample data filled with 0 values ​​will become other types of abnormal data, and then further processed by other methods.

[0057] Step S20143, calculating the difference between the sample data at each adjacent moment to obtain a first power increment, summing the adjacent first power increments, and when the second power increment is less than the first threshold, determining the sample data corresponding to the second power increment as the continuous constant value;

[0058] Specifically, for continuous constant values, the load difference between two adjacent moments is calculated to obtain the load increment, and then the adjacent load increments are summed up in pairs. When the sum result is less than or equal to a certain minimum value (the first threshold mentioned above), the sample data of the three moments corresponding to the sum result are determined to be continuous constant values.

[0059] Step S20144, when the duration corresponding to the above-mentioned continuous constant value is less than the second threshold, processing is performed based on the linear filling method; when the duration corresponding to the above-mentioned continuous constant value is greater than or equal to the second threshold, processing is performed based on the similar day method.

[0060] Specifically, when the time points corresponding to the continuous constant values ​​are less than five time points, correction is performed based on linear filling, and when the time points corresponding to the continuous constant values ​​are greater than or equal to five time points, filling is performed based on the similar day method.

[0061] In order to obtain the first training data set, in an optional implementation, the step S2014 further includes:

[0062] Step S20145, based on the preset formula The sample data in the fourth training data set are screened to obtain the above mutation outlier value, where prob() is the probability function, ΔP t is the change in sample data corresponding to adjacent moments, and E is ΔP t The corresponding expectation, k represents the degree to which the sample deviates from the expectation;

[0063] Specifically, for mutation outliers, Chebyshev's inequality is used for detection. Chebyshev's inequality is applicable to data of any distribution. Based on the above formula, the probability that a sample deviates from the expected k times the standard deviation is less than

[0064] In a specific implementation, if the value of k is 5, at least 96% of the samples should be distributed within the ±5D interval around the mean, and those points that deviate from the incremental mean outside the 5D interval are regarded as mutation outliers.

[0065] Step S20146, delete the above-mentioned mutation outliers and fill them based on linear interpolation.

[0066] Specifically, the above-mentioned mutation outliers are deleted and filled based on the linear interpolation method.

[0067] In order to obtain the first training data set, in an optional implementation, the step S2014 further includes:

[0068] Step S20147, taking the irradiance in the above-mentioned first environmental data in the above-mentioned fourth training data set as a reference, determine the changing trend of the irradiance, and when the changing trend of the above-mentioned third power generation or the above-mentioned fourth power generation in the above-mentioned fourth training data set is opposite to the changing trend of the irradiance, repair the changing trend of the above-mentioned third power generation or the above-mentioned fourth power generation based on the linear complement method.

[0069] Specifically, taking the irradiance data as a benchmark, the rising or falling trends of the power generation data and the meteorological irradiance data are compared, and the power generation data that are opposite to the irradiance trend are repaired. For example, at a certain moment, the irradiance data is on an upward trend, but the power generation data is on a downward trend. At this time, the power generation data can be regarded as data anomalies and repaired using linear filling.

[0070] In a specific embodiment, gridded meteorological information is obtained from the meteorological system on a daily basis, and the obtained meteorological information includes temperature, humidity, rainfall, air pressure, etc., and the data time interval is 15 minutes; a distributed photovoltaic power generation prediction data processing algorithm is used to detect and fill in abnormal points in the meteorological data to obtain meteorological data.

[0071] The irradiance, temperature, rainfall and other data in the meteorological data are processed, including the detection and filling of missing value anomalies, continuous constant values ​​and mutation anomalies.

[0072] In order to obtain the second training data set, in an optional implementation, the step S202 includes:

[0073] Step S2021, using the first training data set as an initial feature set, testing the performance of the preset learner based on the initial feature set to obtain a performance score;

[0074] Specifically, the recursive feature elimination method is a model-based feature selection method, which first constructs a preset learner based on the above first training data set as the initial feature combination. In one embodiment, the preset learner can be constructed based on a logistic regression algorithm. Then, the initial performance of the preset learner is determined based on the above initial feature set to obtain the above performance score.

[0075] Step S2022, when the performance score of the preset learner is less than a third threshold, performing feature scoring according to the weight coefficient of each feature in the initial feature set to obtain a target feature score;

[0076] Specifically, when the performance of the preset learner does not meet the standard (the performance score of the preset learner is less than the third threshold), a feature score is performed according to the weight coefficient of each feature in the initial feature set to obtain the target feature score.

[0077] Step S2023, arranging the above features from small to large based on the above target feature scores and deleting a preset number of the above features;

[0078] Specifically, feature screening is performed based on the target feature score by deleting features corresponding to several smaller performance scores. First, the features are arranged from small to large based on the target feature score and a preset number of features are deleted in sequence, that is, a preset number of features are eliminated.

[0079] Step S2024, re-performing the performance test of the preset learner based on the updated initial feature set and updating the initial feature set until the performance score is greater than or equal to the third threshold, and determining the initial feature set as the second training data set.

[0080] Specifically, the screening process is repeated until the number of features reaches a threshold or the model performance index reaches a preset requirement.

[0081] In order to obtain the third training data set, in an optional implementation, the step S203 includes:

[0082] Step S2031, constructing a sample sequence according to the second training data set, wherein each row of the sample sequence represents a sample, and each column of the sample sequence represents a feature variable;

[0083] Specifically, the correlation between features can be eliminated, the internal structure of the data set can be extracted, and feature compression can be achieved while maintaining information integrity. First, a sample sequence is constructed based on the second training data set, each row represents a sample, and each column of the sample sequence represents a feature variable.

[0084] Step S2032, calculating the correlation coefficient matrix between the above characteristic variables, performing factor analysis based on the above correlation coefficient matrix, and determining the first target factor;

[0085] Specifically, the correlation coefficient matrix between the characteristic variables is calculated, and factor analysis is performed based on the correlation coefficient matrix to determine the common factors, thereby obtaining the above-mentioned first target factor.

[0086] It can be understood that the common factors reflect the inherent correlation structure of the original characteristic variables.

[0087] Step S2033, expressing the above characteristic variables as a linear combination of the common first target factor, and obtaining the factor loading of each of the above characteristic variables on each common factor;

[0088] Specifically, each original characteristic variable is represented as a linear combination of common factors, and the factor loading of each characteristic on each common factor is obtained.

[0089] Step S2034, based on the factor loading, the main factors corresponding to the characteristic variables are screened, and the characteristic variables whose factor loadings corresponding to the main factors are greater than a fourth threshold are determined as target variables;

[0090] Step S2035: construct the third training data set based on the target variable.

[0091] Specifically, according to the size of the factor loading, determine which common factors each feature is mainly related to, and select the original features with larger factor loadings on the main factors as the new feature set.

[0092] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0093] The embodiment of the present application also provides a photovoltaic system power generation prediction device based on an edge cluster. It should be noted that the photovoltaic system power generation prediction device based on an edge cluster in the embodiment of the present application can be used to execute the photovoltaic system power generation prediction method based on an edge cluster provided in the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and those that have been described will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0094] The following is an introduction to the photovoltaic system power generation prediction device based on edge cluster provided in an embodiment of the present application.

[0095] Figure 3 is a structural block diagram of a photovoltaic system power generation prediction device based on edge cluster according to an embodiment of the present application. Figure 3 As shown, the device comprises:

[0096] The first acquisition unit 10 is used to obtain the power generation and location information of the distributed photovoltaic from the above-mentioned metering system at intervals of a first preset time to obtain the first power generation and the first location information, obtain the power generation of the distributed photovoltaic directly connected to the grid on the user side from the above-mentioned metering system to obtain the second power generation, obtain the feeder corresponding to the above-mentioned distributed photovoltaic directly connected to the grid on the user side from the above-mentioned dispatching and management system to obtain the second location information, obtain the maintenance record from the above-mentioned dispatching and management system to obtain the first maintenance plan, obtain the environmental data from the above-mentioned meteorological system to obtain the first environmental data, pre-process the above-mentioned first power generation, the above-mentioned first location information, the above-mentioned second power generation, the above-mentioned second location information, the above-mentioned first maintenance plan and the above-mentioned first environmental data to obtain a first training data set, wherein the above-mentioned pre-processing at least includes data cleaning, data clipping and data completion;

[0097] Specifically, the distributed power generation data and the distribution of distributed photovoltaics are obtained from the metering system on a daily basis to obtain the above-mentioned first power generation and the above-mentioned first location information. The power generation of distributed photovoltaics directly connected to the grid on the user side is obtained from the metering system on a daily basis to obtain the above-mentioned second power generation, the feeder corresponding to the distributed photovoltaics is obtained from the above-mentioned dispatching and management system to obtain the above-mentioned second location information, and the maintenance plan is obtained from the above-mentioned dispatching and management system to obtain the above-mentioned first maintenance plan, and environmental data is obtained from the meteorological system to obtain the above-mentioned first environmental data, and then the distributed photovoltaic power generation prediction data processing algorithm configured in this application is used for preprocessing, and the processed distributed photovoltaic power generation data and meteorological data are merged according to time to obtain a multidimensional data set, and the above-mentioned first training data set is obtained.

[0098] A first computing unit 20, configured to perform feature screening on the first training data set according to a recursive feature elimination method to obtain a second training data set;

[0099] Specifically, feature selection selects important features of distributed photovoltaic historical power data, gridded meteorological data and power grid maintenance planning based on the recursive feature elimination method, and generates new features based on the important features to enrich the data dimension of the training data set to obtain the above-mentioned second training data set.

[0100] A second calculation unit 30 is used to extract features from the second training data set based on a factor analysis method to obtain a third training data set;

[0101] Specifically, the intrinsic structure of the feature data is fully mined from the selected features based on factor analysis, new features are further derived, and further changes are performed based on mathematical principles to provide more features for subsequent model training, thereby obtaining the third data set mentioned above.

[0102] A training unit 40 is used to perform prediction model training based on the third training data set to obtain a power generation prediction model, wherein the power generation prediction model is used to predict the power generation of the distributed photovoltaic power generation system within a second preset time period in the future based on one or more of the first power generation power, the second power generation power, the first maintenance plan and the first environmental data;

[0103] Specifically, model training is performed based on the data in the third training data set to obtain a model for predicting power generation based on multi-dimensional data.

[0104] The prediction unit 50 is used to obtain target prediction parameters, input the above target prediction parameters into the above power generation prediction model, and obtain the target power generation power. The above target prediction parameters include at least one of the above first power generation power, the above second power generation power, the above first maintenance plan and the above first environmental data within the above first preset time period in the past.

[0105] Specifically, relevant data are obtained from the metering system, the dispatching management system and the meteorological system at preset intervals to obtain the target prediction parameters, which are then input into the power generation prediction model to predict the power generation to obtain the target power generation.

[0106] Through this embodiment, the first acquisition unit obtains the power generation and location information of the distributed photovoltaic from the above-mentioned metering system at intervals of a first preset time length to obtain the first power generation and the first location information, obtains the power generation of the distributed photovoltaic directly connected to the grid on the user side from the above-mentioned metering system to obtain the second power generation, obtains the feeder corresponding to the above-mentioned distributed photovoltaic directly connected to the grid on the user side from the above-mentioned dispatching and management system to obtain the second location information, obtains the maintenance record from the above-mentioned dispatching and management system to obtain the first maintenance plan, obtains the environmental data from the above-mentioned meteorological system to obtain the first environmental data, pre-processes the above-mentioned first power generation, the above-mentioned first location information, the above-mentioned second power generation, the above-mentioned second location information, the above-mentioned first maintenance plan and the above-mentioned first environmental data to obtain a first training data set, and the above-mentioned pre-processing at least includes data cleaning, data clipping and data completion; the first calculation unit is based on the iterative The feature elimination method performs feature screening on the first training data set to obtain a second training data set; the second calculation unit performs feature extraction on the second training data set based on the factor analysis method to obtain a third training data set; the training unit performs prediction model training based on the third training data set to obtain a power generation prediction model, and the power generation prediction model is used to predict the power generation of the distributed photovoltaic power generation system within the second preset time period in the future based on one or more of the first power generation, the second power generation, the first maintenance plan and the first environmental data; the prediction unit obtains the target prediction parameter, inputs the target prediction parameter into the power generation prediction model to obtain the target power generation, and the target prediction parameter includes at least one of the first power generation, the second power generation, the first maintenance plan and the first environmental data within the past first preset time period. The present application proposes a distributed photovoltaic power generation power prediction method based on marginal groups, which uses power generation, meteorological data and maintenance plan data as inputs to predict the distributed photovoltaic power generation power converged to different substations and feeders, and realizes accurate prediction of distributed photovoltaic power generation, which solves the problem of the lack of a distributed photovoltaic power generation power prediction method based on multi-dimensional feature data in the prior art.

[0107] In order to obtain the first training data set, in an optional implementation manner, the first acquisition unit includes:

[0108] A first determination module is used to determine the substation corresponding to the first power generation based on the first location information, and sum the first power generation corresponding to each substation to obtain a corresponding third power generation;

[0109] Specifically, based on the first power generation and the first location information, the first power generation of all distributed photovoltaics under the station area is accumulated to obtain the third power generation.

[0110] A second determination module is used to determine the substation to which the feeder corresponding to the second power generation belongs based on the second position information, and to accumulate the power generation corresponding to each of the feeders according to the relationship between the feeder and the substation, the second power generation and the third power generation to obtain a corresponding fourth power generation;

[0111] Specifically, based on the correspondence between distributed photovoltaics and substations, and the subordinate relationship between feeders and substations, the distributed power generation gathered in the substations is decomposed, and then the power generation gathered in the feeders is accumulated to obtain the fourth power generation mentioned above.

[0112] A first construction module is used to construct a fourth training data set according to the third power generation, the fourth power generation, the first maintenance plan and the first environmental data;

[0113] Specifically, the third generated power, the fourth generated power, the first maintenance plan and the first environmental data are stored in a database for maintenance to obtain the fourth training data set.

[0114] The first processing module is used to sequentially perform missing value processing, continuous constant value processing, mutation outlier processing and trend outlier processing on the fourth training data set to obtain the first training data set.

[0115] Specifically, the fourth training data set is subjected to identification and filling of abnormal data such as missing values, sudden change values, and continuous constant values ​​to obtain a training data set with redundant data removed, namely, the first training data set.

[0116] In order to obtain the first training data set, in an optional implementation, the first processing module includes:

[0117] A first determination submodule is used to traverse the fourth training data set to determine the null value or NAN value of the sample data therein as the missing value;

[0118] Specifically, the null value or NAN value of the fourth training data and the sample data is detected, and the detection result is determined as the missing value.

[0119] A first processing submodule, used for replacing the missing value based on a first preset value to complete the missing value processing;

[0120] Specifically, all the missing values ​​mentioned above are filled with 0.

[0121] It is understandable that the sample data filled with 0 values ​​will become other types of abnormal data, and then further processed by other methods.

[0122] A second determination submodule is configured to calculate the difference between the sample data at each adjacent moment to obtain a first power increment, and when the adjacent first power increments are summed and the second power increment is obtained and is less than the first threshold, the sample data corresponding to the second power increment is determined as the continuous constant value;

[0123] Specifically, for continuous constant values, the load difference between two adjacent moments is calculated to obtain the load increment, and then the adjacent load increments are summed up in pairs. When the sum result is less than or equal to a certain minimum value (the first threshold mentioned above), the sample data of the three moments corresponding to the sum result are determined to be continuous constant values.

[0124] The second processing submodule is used to process based on the linear filling method when the duration corresponding to the above-mentioned continuous constant value is less than the second threshold, and to process based on the similar day method when the duration corresponding to the above-mentioned continuous constant value is greater than or equal to the second threshold.

[0125] Specifically, when the time points corresponding to the continuous constant values ​​are less than five time points, correction is performed based on linear filling, and when the time points corresponding to the continuous constant values ​​are greater than or equal to five time points, filling is performed based on the similar day method.

[0126] In order to obtain the first training data set, in an optional implementation, the first processing module further includes:

[0127] The third processing submodule is used to process the The sample data in the fourth training data set are screened to obtain the above mutation outlier value, where prob() is the probability function, ΔP t is the change in sample data corresponding to adjacent moments, and E is ΔP t The corresponding expectation, k represents the degree to which the sample deviates from the expectation;

[0128] Specifically, for mutation outliers, Chebyshev's inequality is used for detection. Chebyshev's inequality is applicable to data of any distribution. Based on the above formula, the probability that a sample deviates from the expected k times the standard deviation is less than

[0129] In a specific implementation, if the value of k is 5, at least 96% of the samples should be distributed within the ±5D interval around the mean, and those points that deviate from the incremental mean outside the 5D interval are regarded as mutation outliers.

[0130] The fourth processing submodule is used to delete the above-mentioned mutation outliers and fill them based on linear interpolation.

[0131] Specifically, the above-mentioned mutation outliers are deleted and filled based on the linear interpolation method.

[0132] In order to obtain the first training data set, in an optional implementation, the first processing module further includes:

[0133] The fifth processing submodule is used to determine the changing trend of the irradiance based on the irradiance in the first environmental data in the fourth training data set, and to repair the changing trend of the third power generation or the fourth power generation based on the linear complement method when the changing trend of the third power generation or the fourth power generation in the fourth training data set is opposite to the changing trend of the irradiance.

[0134] Specifically, taking the irradiance data as a benchmark, the rising or falling trends of the power generation data and the meteorological irradiance data are compared, and the power generation data that are opposite to the irradiance trend are repaired. For example, at a certain moment, the irradiance data is on an upward trend, but the power generation data is on a downward trend. At this time, the power generation data can be regarded as data anomalies and repaired using linear filling.

[0135] In a specific embodiment, gridded meteorological information is obtained from the meteorological system on a daily basis, and the obtained meteorological information includes temperature, humidity, rainfall, air pressure, etc., and the data time interval is 15 minutes; a distributed photovoltaic power generation prediction data processing algorithm is used to detect and fill in abnormal points in the meteorological data to obtain meteorological data.

[0136] The irradiance, temperature, rainfall and other data in the meteorological data are processed, including the detection and filling of missing value anomalies, continuous constant values ​​and mutation anomalies.

[0137] In order to obtain the second training data set, in an optional implementation, the first calculation unit includes:

[0138] A testing module, configured to use the first training data set as an initial feature set, and to test the performance of the preset learner based on the initial feature set to obtain a performance score;

[0139] Specifically, the recursive feature elimination method is a model-based feature selection method, which first constructs a preset learner based on the above first training data set as the initial feature combination. In one embodiment, the preset learner can be constructed based on a logistic regression algorithm. Then, the initial performance of the preset learner is determined based on the above initial feature set to obtain the above performance score.

[0140] A second processing module is used for performing feature scoring according to the weight coefficient of each feature in the initial feature set to obtain a target feature score when the performance score of the preset learner is less than a third threshold value;

[0141] Specifically, when the performance of the preset learner does not meet the standard (the performance score of the preset learner is less than the third threshold), a feature score is performed according to the weight coefficient of each feature in the initial feature set to obtain the target feature score.

[0142] A third processing module is used to arrange the above features in ascending order based on the above target feature scores and delete a preset number of the above features;

[0143] Specifically, feature screening is performed based on the target feature score by deleting features corresponding to several smaller performance scores. First, the features are arranged from small to large based on the target feature score and a preset number of features are deleted in sequence, that is, a preset number of features are eliminated.

[0144] The third determination module is used to re-perform the performance test of the preset learner based on the updated initial feature set and update the initial feature set until the performance score is greater than or equal to the third threshold, and determine the initial feature set as the second training data set.

[0145] Specifically, the screening process is repeated until the number of features reaches a threshold or the model performance index reaches a preset requirement.

[0146] In order to obtain the third training data set, in an optional implementation manner, the second calculation unit includes:

[0147] A second construction module is used to construct a sample sequence according to the second training data set, wherein each row of the sample sequence represents a sample, and each column of the sample sequence represents a feature variable;

[0148] Specifically, the correlation between features can be eliminated, the internal structure of the data set can be extracted, and feature compression can be achieved while maintaining information integrity. First, a sample sequence is constructed based on the second training data set, each row represents a sample, and each column of the sample sequence represents a feature variable.

[0149] A first calculation module is used to calculate the correlation coefficient matrix between the above-mentioned characteristic variables, perform factor analysis based on the above-mentioned correlation coefficient matrix, and determine the first target factor;

[0150] Specifically, the correlation coefficient matrix between the characteristic variables is calculated, and factor analysis is performed based on the correlation coefficient matrix to determine the common factors, thereby obtaining the above-mentioned first target factor.

[0151] It can be understood that the common factors reflect the inherent correlation structure of the original characteristic variables.

[0152] A second calculation module is used to express the above characteristic variables as a linear combination of the common first target factor to obtain the factor loading of each of the above characteristic variables on each common factor;

[0153] Specifically, each original characteristic variable is represented as a linear combination of common factors, and the factor loading of each characteristic on each common factor is obtained.

[0154] A third calculation module is used to screen the main factors corresponding to each of the above-mentioned characteristic variables based on the above-mentioned factor loading, and determine the above-mentioned characteristic variables whose above-mentioned factor loading corresponding to the above-mentioned main factors is greater than a fourth threshold as target variables;

[0155] The third construction module is used to construct the third training data set based on the target variable.

[0156] Specifically, according to the size of the factor loading, determine which common factors each feature is mainly related to, and select the original features with larger factor loadings on the main factors as the new feature set.

[0157] The photovoltaic system power generation prediction device based on edge cluster includes a processor and a memory. The first acquisition unit, the first calculation unit, the second calculation unit, the training unit and the prediction unit are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize the corresponding functions. The above modules are all located in the same processor; or, the above modules are located in different processors in any combination.

[0158] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the prediction accuracy can be improved by adjusting the kernel parameters.

[0159] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0160] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the photovoltaic system power generation prediction method based on edge clusters.

[0161] Specifically, the photovoltaic system power generation prediction method based on edge cluster includes:

[0162] Step S201, at each first preset time interval, respectively obtain the power generation and location information of the distributed photovoltaic from the metering system to obtain the first power generation and the first location information, obtain the power generation of the distributed photovoltaic directly connected to the grid on the user side from the metering system to obtain the second power generation, obtain the feeder corresponding to the distributed photovoltaic directly connected to the grid on the user side from the dispatching management system to obtain the second location information, obtain the maintenance record from the dispatching management system to obtain the first maintenance plan, obtain the environmental data from the meteorological system to obtain the first environmental data, pre-process the first power generation, the first location information, the second power generation, the second location information, the first maintenance plan and the first environmental data to obtain a first training data set, wherein the pre-processing at least includes data cleaning, data clipping and data completion;

[0163] Step S202, performing feature screening on the first training data set according to a recursive feature elimination method to obtain a second training data set;

[0164] Step S203, extracting features from the second training data set based on factor analysis to obtain a third training data set;

[0165] Step S204, performing prediction model training based on the third training data set to obtain a power generation prediction model, wherein the power generation prediction model is used to predict the power generation of the distributed photovoltaic power generation system within a second preset time period in the future based on one or more of the first power generation power, the second power generation power, the first maintenance plan and the first environmental data;

[0166] Step S205, obtaining target prediction parameters, inputting the target prediction parameters into the power generation prediction model, and obtaining target power generation, wherein the target prediction parameters include at least one of the first power generation, the second power generation, the first maintenance plan, and the first environmental data within the first preset time period in the past. An embodiment of the present invention provides a processor, the processor is used to run a program, wherein the program executes the photovoltaic system power generation prediction method based on the edge cluster when running.

[0167] Specifically, the photovoltaic system power generation prediction method based on edge cluster includes:

[0168] Step S201, at each first preset time interval, respectively obtain the power generation and location information of the distributed photovoltaic from the metering system to obtain the first power generation and the first location information, obtain the power generation of the distributed photovoltaic directly connected to the grid on the user side from the metering system to obtain the second power generation, obtain the feeder corresponding to the distributed photovoltaic directly connected to the grid on the user side from the dispatching management system to obtain the second location information, obtain the maintenance record from the dispatching management system to obtain the first maintenance plan, obtain the environmental data from the meteorological system to obtain the first environmental data, pre-process the first power generation, the first location information, the second power generation, the second location information, the first maintenance plan and the first environmental data to obtain a first training data set, wherein the pre-processing at least includes data cleaning, data clipping and data completion;

[0169] Step S202, performing feature screening on the first training data set according to a recursive feature elimination method to obtain a second training data set;

[0170] Step S203, extracting features from the second training data set based on factor analysis to obtain a third training data set;

[0171] Step S204, performing prediction model training based on the third training data set to obtain a power generation prediction model, wherein the power generation prediction model is used to predict the power generation of the distributed photovoltaic power generation system within a second preset time period in the future based on one or more of the first power generation power, the second power generation power, the first maintenance plan and the first environmental data;

[0172] Step S205, obtaining target prediction parameters, inputting the target prediction parameters into the power generation prediction model, and obtaining target power generation, wherein the target prediction parameters include at least one of the first power generation, the second power generation, the first maintenance plan, and the first environmental data within the first preset time period in the past. An embodiment of the present invention provides a monitoring system, the monitoring system includes a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:

[0173] Step S201, at each first preset time interval, respectively obtain the power generation and location information of the distributed photovoltaic from the metering system to obtain the first power generation and the first location information, obtain the power generation of the distributed photovoltaic directly connected to the grid on the user side from the metering system to obtain the second power generation, obtain the feeder corresponding to the distributed photovoltaic directly connected to the grid on the user side from the dispatching management system to obtain the second location information, obtain the maintenance record from the dispatching management system to obtain the first maintenance plan, obtain the environmental data from the meteorological system to obtain the first environmental data, pre-process the first power generation, the first location information, the second power generation, the second location information, the first maintenance plan and the first environmental data to obtain a first training data set, wherein the pre-processing at least includes data cleaning, data clipping and data completion;

[0174] Step S202, performing feature screening on the first training data set according to a recursive feature elimination method to obtain a second training data set;

[0175] Step S203, extracting features from the second training data set based on factor analysis to obtain a third training data set;

[0176] Step S204, performing prediction model training based on the third training data set to obtain a power generation prediction model, wherein the power generation prediction model is used to predict the power generation of the distributed photovoltaic power generation system within a second preset time period in the future based on one or more of the first power generation power, the second power generation power, the first maintenance plan and the first environmental data;

[0177] Step S205, obtaining target prediction parameters, inputting the target prediction parameters into the power generation prediction model, and obtaining target power generation, wherein the target prediction parameters include at least one of the first power generation, the second power generation, the first maintenance plan, and the first environmental data within the first preset time period in the past. The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with at least the following method steps:

[0178] Step S201, at each first preset time interval, respectively obtain the power generation and location information of the distributed photovoltaic from the metering system to obtain the first power generation and the first location information, obtain the power generation of the distributed photovoltaic directly connected to the grid on the user side from the metering system to obtain the second power generation, obtain the feeder corresponding to the distributed photovoltaic directly connected to the grid on the user side from the dispatching management system to obtain the second location information, obtain the maintenance record from the dispatching management system to obtain the first maintenance plan, obtain the environmental data from the meteorological system to obtain the first environmental data, pre-process the first power generation, the first location information, the second power generation, the second location information, the first maintenance plan and the first environmental data to obtain a first training data set, wherein the pre-processing at least includes data cleaning, data clipping and data completion;

[0179] Step S202, performing feature screening on the first training data set according to a recursive feature elimination method to obtain a second training data set;

[0180] Step S203, extracting features from the second training data set based on factor analysis to obtain a third training data set;

[0181] Step S204, performing prediction model training based on the third training data set to obtain a power generation prediction model, wherein the power generation prediction model is used to predict the power generation of the distributed photovoltaic power generation system within a second preset time period in the future based on one or more of the first power generation power, the second power generation power, the first maintenance plan and the first environmental data;

[0182] Step S205, obtain target prediction parameters, input the above target prediction parameters into the above power generation prediction model to obtain target power generation power, the above target prediction parameters include at least one of the above first power generation power, the above second power generation power, the above first maintenance plan and the above first environmental data within the above first preset time period in the past.

[0183] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0184] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0185] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0186] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0187] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0188] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0189] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0190] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0191] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0192] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0193] 1) The photovoltaic system power generation prediction method based on edge cluster of the present application, first, at each first preset time interval, the power generation and location information of the distributed photovoltaic are obtained from the above-mentioned metering system respectively, to obtain the first power generation and the first location information, the power generation of the distributed photovoltaic directly connected to the grid on the user side is obtained from the above-mentioned metering system, to obtain the second power generation, the feeder corresponding to the above-mentioned distributed photovoltaic directly connected to the grid on the user side is obtained from the above-mentioned dispatching and management system, to obtain the second location information, the maintenance record is obtained from the above-mentioned dispatching and management system, to obtain the first maintenance plan, the environmental data is obtained from the above-mentioned meteorological system, to obtain the first environmental data, the first power generation, the first location information, the second power generation, the second location information, the first maintenance plan and the first environmental data are pre-processed to obtain a first training data set, and the pre-processing at least includes data cleaning, data clipping and data According to the completion; then, the first training data set is feature screened according to the recursive feature elimination method to obtain the second training data set; then, the second training data set is feature extracted based on the factor analysis method to obtain the third training data set; then, the prediction model is trained based on the third training data set to obtain the power generation prediction model, and the power generation prediction model is used to predict the power generation of the distributed photovoltaic power generation system within the second preset time period in the future based on the first power generation, the second power generation, the first maintenance plan and the first environmental data; finally, the target prediction parameter is obtained, and the target prediction parameter is input into the power generation prediction model to obtain the target power generation, and the target prediction parameter includes at least one of the first power generation, the second power generation, the first maintenance plan and the first environmental data within the first preset time period in the past. This application proposes a distributed photovoltaic power generation power prediction method based on marginal groups, which uses power generation, meteorological data and maintenance plan data as inputs to predict the distributed photovoltaic power generation power converged to different substations and feeders, and realizes the accurate prediction of distributed photovoltaic power generation, which solves the problem of the lack of a distributed photovoltaic power generation power prediction method based on multi-dimensional feature data in the prior art.

[0194] 2) The photovoltaic system power generation prediction device based on edge cluster of the present application, the first acquisition unit obtains the power generation and location information of the distributed photovoltaic from the above-mentioned metering system at intervals of a first preset time length, obtains the first power generation and the first location information, obtains the power generation of the distributed photovoltaic directly connected to the grid on the user side from the above-mentioned metering system, obtains the second power generation, obtains the feeder corresponding to the above-mentioned distributed photovoltaic directly connected to the grid on the user side from the above-mentioned dispatching and management system, obtains the second location information, obtains the maintenance record from the above-mentioned dispatching and management system, obtains the first maintenance plan, obtains the environmental data from the above-mentioned meteorological system, obtains the first environmental data, pre-processes the above-mentioned first power generation, the above-mentioned first location information, the above-mentioned second power generation, the above-mentioned second location information, the above-mentioned first maintenance plan and the above-mentioned first environmental data, and obtains the first training data set, and the above-mentioned pre-processing at least includes data cleaning, data clipping and data completion ; The first calculation unit performs feature screening on the first training data set according to the recursive feature elimination method to obtain the second training data set; The second calculation unit performs feature extraction on the second training data set based on the factor analysis method to obtain the third training data set; The training unit performs prediction model training based on the third training data set to obtain a power generation prediction model, and the power generation prediction model is used to predict the power generation of the distributed photovoltaic power generation system within the second preset time period in the future based on one or more of the first power generation, the second power generation, the first maintenance plan and the first environmental data; The prediction unit obtains the target prediction parameter, inputs the target prediction parameter into the power generation prediction model, and obtains the target power generation, and the target prediction parameter includes at least one of the first power generation, the second power generation, the first maintenance plan and the first environmental data within the first preset time period in the past. The present application proposes a distributed photovoltaic power generation power prediction method based on marginal groups, which uses power generation, meteorological data and maintenance plan data as inputs to predict the distributed photovoltaic power generation power converged to different substations and feeders, and realizes the accurate prediction of distributed photovoltaic power generation, which solves the problem of the lack of a distributed photovoltaic power generation power prediction method based on multi-dimensional feature data in the prior art.

[0195] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A photovoltaic system power generation prediction method based on edge cluster, characterized in that: The method is applicable to a distributed photovoltaic power generation system, which includes a metering system, a dispatching management system and a meteorological system. The method includes: At every first preset time interval, the power generation and location information of the distributed photovoltaic are obtained from the metering system to obtain the first power generation and the first location information; the power generation of the distributed photovoltaic directly connected to the grid on the user side is obtained from the metering system to obtain the second power generation; the feeder corresponding to the distributed photovoltaic directly connected to the grid on the user side is obtained from the dispatching and management system to obtain the second location information; the maintenance record is obtained from the dispatching and management system to obtain the first maintenance plan; the environmental data is obtained from the meteorological system to obtain the first environmental data; the first power generation, the first location information, the second power generation, the second location information, the first maintenance plan and the first environmental data are preprocessed to obtain a first training data set, wherein the preprocessing at least includes data cleaning, data clipping and data completion; Performing feature screening on the first training data set according to a recursive feature elimination method to obtain a second training data set; Performing feature extraction on the second training data set based on factor analysis to obtain a third training data set; Performing prediction model training based on the third training data set to obtain a power generation prediction model, wherein the power generation prediction model is used to predict the power generation power of the distributed photovoltaic power generation system within a second preset time period in the future based on one or more of the first power generation power, the second power generation power, the first maintenance plan, and the first environmental data; Obtain target prediction parameters, input the target prediction parameters into the power generation prediction model to obtain target power generation power, the target prediction parameters including at least one of the first power generation power, the second power generation power, the first maintenance plan and the first environmental data within the first preset time period in the past.

2. The method according to claim 1, characterized in that: Preprocessing the first generated power, the first position information, the second generated power, the second position information, and the first environmental data to obtain a first training data set includes: Determine the substation corresponding to the first power generation based on the first location information, and sum the first power generation corresponding to each substation to obtain a corresponding third power generation; Determine the substation to which the feeder corresponding to the second power generation belongs based on the second location information, and accumulate the power generation corresponding to each feeder according to the relationship between the feeder and the substation, the second power generation and the third power generation to obtain a corresponding fourth power generation; constructing a fourth training data set according to the third generated power, the fourth generated power, the first maintenance plan and the first environmental data; The fourth training data set is processed in sequence with missing values, continuous constant values, mutation outliers and trend outliers to obtain the first training data set.

3. The method according to claim 2, characterized in that The fourth training data set is sequentially subjected to missing value processing and continuous constant value processing, including: Traversing the fourth training data set to determine null values ​​or NAN values ​​of sample data therein, and determining them as the missing values; Replacing the missing value based on a first preset value to complete the missing value processing; Calculate the difference between the sample data at each adjacent moment to obtain a first power increment, sum the adjacent first power increments, and when the second power increment is less than the first threshold, determine the sample data corresponding to the second power increment as the continuous constant value; When the duration corresponding to the continuous constant value is less than the second threshold, processing is performed based on the linear filling method; when the duration corresponding to the continuous constant value is greater than or equal to the second threshold, processing is performed based on the similar day method.

4. The method according to claim 2, characterized in that: Performing mutation outlier processing on the fourth training data set includes: Based on preset formula The sample data in the fourth training data set is screened to obtain the mutation outlier value, where prob() is a probability function, ΔP t is the change in sample data corresponding to adjacent moments, and E is ΔP t The corresponding expectation, k represents the degree to which the sample deviates from the expectation; The mutation outliers are deleted and filled based on linear interpolation.

5. The method according to claim 2, characterized in that: Performing trend outlier processing on the fourth training data set includes: Taking the irradiance in the first environmental data in the fourth training data set as a reference, determine the changing trend of the irradiance. When the changing trend of the third power generation or the fourth power generation in the fourth training data set is opposite to the changing trend of the irradiance, repair the changing trend of the third power generation or the fourth power generation based on the linear complement method.

6. The method according to claim 1, characterized in that The first training data set is subjected to feature screening according to a recursive feature elimination method to obtain a second training data set, including: Taking the first training data set as an initial feature set, testing the performance of the preset learner based on the initial feature set to obtain a performance score; When the performance score of the preset learner is less than a third threshold, performing feature scoring according to weight coefficients of each feature in the initial feature set to obtain a target feature score; Arrange the features in ascending order based on the target feature score and delete a preset number of features; Based on the updated initial feature set, the performance test of the preset learner is re-performed and the initial feature set is updated until the performance score is greater than or equal to the third threshold, and the initial feature set is determined as the second training data set.

7. The method according to claim 6, characterized in that The feature extraction of the second training data set is performed based on the factor analysis method to obtain a third training data set, including: Construct a sample sequence according to the second training data set, wherein each row of the sample sequence represents a sample, and each column of the sample sequence represents a feature variable; Calculating the correlation coefficient matrix between each of the characteristic variables, performing factor analysis based on the correlation coefficient matrix, and determining the first target factor; Expressing the characteristic variables as linear combinations of the common first target factors, and obtaining factor loadings of the characteristic variables on the common factors; Based on the factor load, the main factors corresponding to each of the characteristic variables are screened, and the characteristic variables whose factor loads corresponding to the main factors are greater than a fourth threshold are determined as target variables; The third training data set is constructed based on the target variable.

8. A photovoltaic system power generation prediction device based on edge cluster, characterized in that: The device is applicable to a distributed photovoltaic power generation system, which includes a metering system, a dispatching management system and a meteorological system. The device includes: A first acquisition unit is used to acquire the power generation and location information of the distributed photovoltaic from the metering system at intervals of a first preset time to obtain the first power generation and the first location information, acquire the power generation of the distributed photovoltaic directly connected to the grid on the user side from the metering system to obtain the second power generation, acquire the feeder corresponding to the distributed photovoltaic directly connected to the grid on the user side from the dispatching and management system to obtain the second location information, acquire the maintenance record from the dispatching and management system to obtain the first maintenance plan, acquire the environmental data from the meteorological system to obtain the first environmental data, and pre-process the first power generation, the first location information, the second power generation, the second location information, the first maintenance plan and the first environmental data to obtain a first training data set, wherein the pre-processing at least includes data cleaning, data clipping and data completion; A first computing unit, configured to perform feature screening on the first training data set according to a recursive feature elimination method to obtain a second training data set; a second computing unit, configured to perform feature extraction on the second training data set based on a factor analysis method to obtain a third training data set; a training unit, configured to perform prediction model training based on the third training data set to obtain a power generation prediction model, wherein the power generation prediction model is configured to predict the power generation of the distributed photovoltaic power generation system within a second preset time period in the future based on one or more of the first power generation power, the second power generation power, the first maintenance plan, and the first environmental data; A prediction unit is used to obtain target prediction parameters, input the target prediction parameters into the power generation prediction model, and obtain target power generation power, wherein the target prediction parameters include at least one of the first power generation power, the second power generation power, the first maintenance plan, and the first environmental data within the first preset time period in the past.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.

10. A monitoring system, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of claims 1 to 7.

Citation Information

Patent Citations

  • New energy power prediction feature recursive screening method based on random forest

    CN116341767A

  • Distributed photovoltaic power prediction method based on characteristic power

    CN116432874A

  • Photovoltaic power prediction method and system

    CN116826733A

  • Distributed photovoltaic power generation power prediction method

    CN117013527A

  • Method and system for predicting photovoltaic power generation power

    CN117217591A

Cited By

  • Optical network rule discovery method and system based on data enhancement and decision tree

    CN121619518A