Model training method and device, storage medium and electronic device

By training a photovoltaic system power prediction model that considers temperature and radiation, the problem of low prediction accuracy caused by the failure to consider the influence of temperature in the existing technology is solved, achieving more accurate fault identification and increasing power generation.

CN118690878APending Publication Date: 2024-09-24HUANENG CLEAN ENERGY RES INST +2
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410787880.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing technology does not consider the impact of temperature on power generation when training the photovoltaic system power prediction model, resulting in low prediction accuracy.

Method used

By obtaining the radiation data and temperature data of the target component, dividing it into multiple environmental parameter sets, training the basic learner and meta-learner, forming a trained power prediction model, taking into account the impact of temperature and radiation on power generation.

Benefits of technology

The prediction accuracy of the photovoltaic system power prediction model is improved, faults can be identified in a timely manner, economic losses are reduced, and the power generation and efficiency of the photovoltaic power station are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690878A
    Figure CN118690878A
Patent Text Reader

Abstract

The invention discloses a model training method and device, a storage medium and an electronic device, and the method comprises the steps: obtaining a plurality of environment parameters corresponding to a target component, and dividing the environment parameters into a first environment parameter set and a second environment parameter set, the environment parameters comprise first radiation data and first temperature data of the target component; training each basic learner in the basic learner set according to the first environment parameter set, and inputting the second environment parameter set into the trained basic learner set to obtain a first prediction data set corresponding to the basic learner set, the first prediction data set comprises the generated power of the target component predicted by each basic learner; and inputting the first prediction data set into a meta-learner to train the meta-learner to obtain a trained power prediction model, the trained power prediction model comprising a trained basic learner set and a trained meta-learner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and more specifically, to a model training method and device, a storage medium, and an electronic device. Background Art

[0002] Solar energy is a reliable, sustainable and clean energy source. The rapid development and progress of photovoltaic technology in recent years has enabled the effective use of solar energy and injected new life into the sustainable development of future energy. Improving energy production and maximizing profits remain key goals throughout the life cycle of building photovoltaic power plants. As a result, grid-connected photovoltaic technology has been rapidly developed. However, photovoltaic systems may always have faults that affect their efficiency, such as shadows, dirt, module aging, and module failure. If not discovered and corrected in time, it may cause significant losses to energy production. Therefore, performance evaluation can prevent or reduce economic losses by determining fast and accurate fault warnings, thereby potentially increasing the power generation of photovoltaic power plants.

[0003] There are two main methods for fault detection in photovoltaic systems.

[0004] One method is to locate and detect faults directly at the PV module level, usually with the help of auxiliary equipment for fault identification, including thermal methods such as drone-based vision, infrared, and thermal imaging.

[0005] Another method is to rely on monitoring and data acquisition systems to detect faults by establishing prediction models; prediction models are divided into: fault prediction models and operation index prediction models. It depends on whether there is pre-labeled fault data. In the fault prediction model, that is, the real-time monitoring data and pre-labeled fault data are directly used to train the fault prediction model, and the location of component-level faults requires the introduction of additional equipment, so the response timeliness to the indicated fault is limited. In addition, a disadvantage of the fault prediction model based on pre-labeled data is that most actual power plants do not have a large amount of pre-labeled data, making it difficult to detect the state of early faults and difficult to implement widely. In the operation index prediction model, that is, only the real-time monitoring data is used to establish a normal operation index prediction model. The principle is that compared with normal photovoltaic equipment, the operating indicators such as power and power generation of faulty photovoltaics are lower. Therefore, the fault is detected based on the residual or ratio between the measured value and the predicted value.

[0006] Both of the above methods do not take into account the impact of temperature on the power generation of photovoltaic modules. That is, in the prior art, when training a power prediction model, only radiation data is input into a power prediction model for training, and the impact of temperature on the power generation of the predicted target component is not considered. This leads to the problem of low prediction accuracy of the power prediction model, and no effective solution has been found yet. Summary of the invention

[0007] The embodiments of the present application provide a model training method and device, storage medium and electronic device, so as to at least solve the problem in the prior art that when training a power prediction model, only radiation data is input into a power prediction model for training, and the influence of temperature on the power generation power of the predicted target component is not considered, resulting in low prediction accuracy of the power prediction model.

[0008] According to an embodiment of the embodiments of the present application, a model training method is provided, including: obtaining multiple environmental parameters corresponding to a target component, and dividing the multiple environmental parameters into a first environmental parameter set and a second environmental parameter set, wherein the environmental parameters include: first radiation data and first temperature data of the target component; training each basic learner in a basic learner set according to the first environmental parameter set, and inputting the second environmental parameter set into the trained basic learner set to obtain a first prediction data set corresponding to the basic learner set, wherein the first prediction data set includes: the generated power of the target component predicted by each basic learner; inputting the first prediction data set into a meta-learner to train the meta-learner to obtain a trained power prediction model, wherein the trained power prediction model includes: the trained basic learner set and the trained meta-learner.

[0009] In an exemplary embodiment, after a first prediction data set is input into a meta-learner to train the meta-learner and a trained power prediction model is obtained, the method further includes: obtaining a third environmental parameter corresponding to the target component, wherein the third environmental parameter includes: second radiation data and second temperature data of the target component; inputting the third environmental parameter into the trained basic learner set to obtain second prediction data corresponding to the trained basic learner set, wherein the second prediction data includes: the power generation power of the target component predicted by the basic learner set based on the third environmental parameter; inputting the second prediction data into the trained meta-learner to obtain third prediction data, wherein the third prediction data is used to indicate the power generation power of the target component predicted by the trained power prediction model based on the third environmental parameter; and determining whether the trained power prediction model has passed the test according to the third prediction data.

[0010] In an exemplary embodiment, the third environmental parameter is input into the trained basic learner set to obtain second prediction data corresponding to the basic learner set, including: inputting the second radiation data into a target classification model to determine a weather pattern corresponding to the second radiation data; determining a target basic learner corresponding to the third environmental parameter based on the weather pattern, wherein the trained basic learner set includes: the target basic learner; inputting the third environmental parameter into the target basic learner to obtain second prediction data corresponding to the basic learner set.

[0011] In an exemplary embodiment, determining whether the power prediction model has passed the test based on the third prediction data includes: upon determining that the target component has not failed at the target time, obtaining the actual power generation of the target component at the target time, and obtaining the first predicted power generation of the target component at the target time in the third prediction result; comparing the first predicted power generation with the actual power generation, and determining whether the trained power prediction model has passed the test based on the comparison result.

[0012] In an exemplary embodiment, the first predicted power generation and the actual power generation are compared, and whether the trained power prediction model passes the test is determined based on the comparison result, including: determining a first difference between the first predicted power generation and the actual power generation; when the comparison result indicates that the first difference is greater than or equal to a first preset threshold, determining that the power prediction model test has failed; when the comparison result indicates that the first difference is less than the first preset threshold, determining that the power prediction model test has passed.

[0013] In an exemplary embodiment, after inputting the first prediction data set into the meta-learner to train the meta-learner and obtain a trained power prediction model, the method further includes: acquiring a fourth environmental parameter corresponding to the target component, and inputting the fourth environmental parameter into the trained basic learner set to obtain fourth prediction data corresponding to the trained basic learner set, wherein the fourth environmental parameter includes: third radiation data and third temperature data of the target component, and the fourth prediction data includes: the power generation power of the target component predicted by the basic learner set based on the fourth environmental parameter; inputting the fourth prediction data into the trained meta-learner to obtain fifth prediction data, wherein the fifth prediction data is used to indicate the power generation power of the target component predicted by the trained power prediction model based on the fourth environmental parameter; and determining whether the target component is faulty according to the fifth prediction data.

[0014] In an exemplary embodiment, determining whether the target component has a fault based on the fifth prediction data includes: determining a plurality of second predicted power generation of the target component within a preset time period in the fifth prediction data; determining whether there is a third predicted power generation greater than a maximum preset power generation among the plurality of second predicted power generation, and / or determining whether there is a fourth predicted power generation less than a minimum preset power generation among the plurality of second predicted power generation; in the case where it is determined that the third predicted power generation exists among the plurality of second predicted power generation, and the fourth predicted power generation exists among the plurality of second predicted power generation; determining the sum of the quantities of the third predicted power generation and the fourth predicted power generation, and determining the ratio of the sum to the quantity of the second predicted power generation; in the case where the ratio is greater than or equal to a second preset threshold value, determining that the target component has a fault within the preset time period.

[0015] According to another embodiment of the embodiment of the present application, a model training device is also provided, including: an acquisition module, used to acquire multiple environmental parameters corresponding to the target component, and divide the multiple environmental parameters into a first environmental parameter set and a second environmental parameter set, wherein the environmental parameters include: first radiation data and first temperature data of the target component; a training module, used to train each basic learner in a basic learner set according to the first environmental parameter set, and input the second environmental parameter set into the trained basic learner set to obtain a first prediction data set corresponding to the basic learner set, wherein the first prediction data set includes: the generated power of the target component predicted by each basic learner; an input module, used to input the first prediction data set into a meta-learner to train the meta-learner to obtain a trained power prediction model, wherein the trained power prediction model includes: the trained basic learner set and the trained meta-learner.

[0016] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above method when running.

[0017] According to another aspect of the embodiments of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method through the computer program.

[0018] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program, wherein the computer program is executed by a processor to perform the method.

[0019] In an embodiment of the present application, multiple environmental parameters corresponding to the target component are obtained, and the environmental parameters include: the first radiation data and the first temperature data of the target component, and the multiple environmental parameters are divided into a first environmental parameter set and a second environmental parameter set; each basic learner in the basic learner set is trained according to the first environmental parameter set, and the second environmental parameter set is input into the trained basic learner set to obtain the power generation power of the target component predicted by each basic learner, that is, the first prediction data set. The first prediction data set is input into the meta-learner to train the meta-learner, and then the trained basic learner set and the trained meta-learner are obtained, and the trained basic learner set and the trained meta-learner are the trained power prediction model. That is to say, the present application trains the basic learner set in the power prediction model through the first radiation data and the first temperature data of the target component, taking into account the influence of temperature and radiation on the power generation power of the target component, and then the second radiation data and the second temperature data are input into the trained basic learner set to obtain the first prediction result, and the first preset result is used as the training data of the meta-learner, which can further improve the prediction accuracy of the power prediction model. Through the above-mentioned technical scheme, the problem of low prediction accuracy of the power prediction model caused by only inputting radiation data into a power prediction model for training in the prior art, without considering the influence of temperature on the power generation power of the predicted target component, can be solved, thereby improving the prediction accuracy of the power prediction model. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0021] Figure 1 It is a hardware structure block diagram of a computer terminal of a model training method according to an embodiment of the present application;

[0022] Figure 2 is a flowchart of a method for training a model according to an embodiment of the present application;

[0023] Figure 3 is a schematic diagram of a training and prediction process of a hybrid fitting model according to an optional embodiment of the present application;

[0024] Figure 4 It is a structural block diagram of a training device for a model according to an embodiment of the present application. DETAILED DESCRIPTION

[0025] 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.

[0026] 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 sequence. 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 herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices; "plurality" means two or more.

[0027] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal or similar computing device or cloud platform or independent physical server or software platform, wherein the above software platform is run through one or more servers. Taking running on a computer terminal as an example, Figure 1 1 is a hardware structure block diagram of a computer terminal for a model training method according to an embodiment of the present application. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 and memory 104 for storing data. In an exemplary embodiment, the computer terminal may also include a transmission device 106 for communication functions and an input and output device 108, wherein the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. A person skilled in the art can understand that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Equivalent functions or comparisons shown Figure 1 A different configuration with more features is shown.

[0028] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the methods in the embodiments of the present application. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, that is, the above-mentioned methods are 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 may be connected to the computer 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 combinations thereof.

[0029] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer 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 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0030] In this embodiment, a model training method is provided, which is applied to the above-mentioned computer terminal. Figure 2 : is a flow chart of a method for training a model according to an embodiment of the present application, the process comprising the following steps:

[0031] Step S202, acquiring multiple environmental parameters corresponding to the target component, and dividing the multiple environmental parameters into a first environmental parameter set and a second environmental parameter set, wherein the environmental parameters include: first radiation data and first temperature data of the target component;

[0032] The embodiment of the present application trains a basic learner set through the first radiation data and the first temperature data.

[0033] Step S204: training each basic learner in the basic learner set according to the first environmental parameter set, and inputting the second environmental parameter set into the trained basic learner set to obtain a first prediction data set corresponding to the basic learner set, wherein the first prediction data set includes: the power generation power of the target component predicted by each basic learner;

[0034] It can be understood that the environmental parameters of the embodiment of the present application are respectively input into each basic learner to train the basic learner set. For example: the basic learner set includes: basic learner 1 and basic learner 2, and the environmental parameters include: radiation data 11 and temperature data 12, radiation data 21 and temperature data 22. The radiation data 11 and temperature data 21 are input into the basic learner 1, the radiation data 11 and temperature data 21 are input into the basic learner 2, the radiation data 12 and temperature data 22 are input into the basic learner 1, and the radiation data 12 and temperature data 22 are input into the basic learner 2 to train the basic learner set.

[0035] Among them, the basic learner set may include: K-nearest neighbor (ie KNN algorithm), gradient boosting regression (ie GRB algorithm), multi-layer perceptron (ie MLP algorithm) and random forest (RF algorithm).

[0036] The nature of k-nearest neighbor (KNN), gradient boosting regression (GBR), multilayer perceptron (MLP) and random forest (RF) are very different. The four algorithms have good fitting performance in different weather modes, so they can be used as basic learners. In addition, considering the linear trend and nonlinear relationship of electricity under hourly weather types, the specific combination structure is determined.

[0037] (1) KNN is suitable for low-dimensional data and can handle linear and nonlinear data well. It is particularly suitable for power prediction under conditions where weather patterns do not change much.

[0038] (2) GBR can effectively process high-dimensional data and complex nonlinear relationships, capture the nonlinear characteristics of the photovoltaic system under different weather patterns, and improve the prediction accuracy.

[0039] (3) MLP is good at dealing with complex nonlinear problems and can model the complex relationship between environmental parameters and power output in photovoltaic systems.

[0040] (4) RF performs well in processing high-dimensional data and nonlinear problems, has high stability and noise resistance, and is suitable for power prediction under various weather conditions.

[0041] By combining these four algorithms and taking advantage of their respective strengths, the robustness and prediction accuracy of the overall model can be improved. The integration of multiple algorithms can effectively reduce the deviation and error of a single algorithm, reduce the false alarm rate in fault detection, and improve the accuracy of alarms.

[0042] In summary, the four algorithms of KNN, GBR, MLP and RF are selected and mixed in order to take advantage of their respective advantages to accurately predict the power output of the PV system under different weather patterns, so as to effectively detect and warn faults and improve the overall performance and reliability of the PV system.

[0043] Step S206: input the first prediction data set into a meta-learner to train the meta-learner to obtain a trained power prediction model, wherein the trained power prediction model includes: the trained basic learner set and the trained meta-learner.

[0044] In an embodiment of the present application, multiple environmental parameters corresponding to the target component are obtained, and the environmental parameters include: the first radiation data and the first temperature data of the target component, and the multiple environmental parameters are divided into a first environmental parameter set and a second environmental parameter set; each basic learner in the basic learner set is trained according to the first environmental parameter set, and the second environmental parameter set is input into the trained basic learner set to obtain the power generation power of the target component predicted by each basic learner, that is, the first prediction data set. The first prediction data set is input into the meta-learner to train the meta-learner, and then the trained basic learner set and the trained meta-learner are obtained, and the trained basic learner set and the trained meta-learner are the trained power prediction model. That is to say, the present application trains the basic learner set in the power prediction model through the first radiation data and the first temperature data of the target component, taking into account the influence of temperature and radiation on the power generation power of the target component, and then the second radiation data and the second temperature data are input into the trained basic learner set to obtain the first prediction result, and the first preset result is used as the training data of the meta-learner, which can further improve the prediction accuracy of the power prediction model. Through the above-mentioned technical scheme, the problem of low prediction accuracy of the power prediction model caused by only inputting radiation data into a power prediction model for training in the prior art, without considering the influence of temperature on the power generation power of the predicted target component, can be solved, thereby improving the prediction accuracy of the power prediction model.

[0045] Optionally, after inputting the first prediction data set into the meta-learner in the above step S204 to train the meta-learner and obtain the trained power prediction model, the method further includes: obtaining a third environmental parameter corresponding to the target component, wherein the third environmental parameter includes: second radiation data and second temperature data of the target component; inputting the third environmental parameter into the trained basic learner set to obtain second prediction data corresponding to the trained basic learner set, wherein the second prediction data includes: the power generation power of the target component predicted by the basic learner set based on the third environmental parameter; inputting the second prediction data into the trained meta-learner to obtain third prediction data, wherein the third prediction data is used to indicate the power generation power of the target component predicted by the trained power prediction model based on the third environmental parameter; and determining whether the trained power prediction model has passed the test according to the third prediction data.

[0046] Wherein, the third environmental parameter is input into the trained basic learner set to obtain the second prediction data corresponding to the basic learner set, including: inputting the second radiation data into the target classification model to determine the weather pattern corresponding to the second radiation data; determining the target basic learner corresponding to the third environmental parameter according to the weather pattern, wherein the trained basic learner set includes: the target basic learner; inputting the third environmental parameter into the target basic learner to obtain the second prediction data corresponding to the basic learner set.

[0047] Among them, determining whether the power prediction model has passed the test based on the third prediction data includes: when it is determined that the target component has not failed at the target time, obtaining the actual power generation of the target component at the target time, and obtaining the first predicted power generation of the target component at the target time in the third prediction result; comparing the first predicted power generation with the actual power generation, and determining whether the trained power prediction model has passed the test based on the comparison result.

[0048] Among them, the first predicted power generation and the actual power generation are compared, and whether the trained power prediction model passes the test is determined based on the comparison result, including: determining a first difference between the first predicted power generation and the actual power generation; when the comparison result indicates that the first difference is greater than or equal to a first preset threshold, determining that the power prediction model test has failed; when the comparison result indicates that the first difference is less than the first preset threshold, determining that the power prediction model test has passed.

[0049] It is understandable that after training the basic learner set and the meta-learner, the trained power prediction model needs to be tested. Only when it is determined that the test passes can it be determined that the power prediction model training is successful.

[0050] Specifically: the third environmental parameter is input into the trained basic learning period model to obtain the second prediction data, and the second prediction data is input into the trained meta-learner to obtain the third prediction data.

[0051] Among them, if the third environmental parameter includes: radiation data 13 and temperature data 31, radiation data 14 and temperature data 41. Input the radiation data 13 and 14 into the target classification model, determine the weather mode corresponding to the radiation data, and determine the basic learner 3 corresponding to the radiation data 13 and temperature data 31 according to the weather mode. Similarly, determine the temperature data 41 and the basic learner 4 corresponding to the radiation data 14 according to the radiation data 14, then input the radiation data 14 and temperature data 41 into the basic learner 4, input the obtained second prediction data into the meta learner, and obtain the third prediction data. Input the radiation data 13 and temperature data 31 into the basic learner 3, input the obtained second prediction data into the meta learner, and obtain the third prediction data.

[0052] Furthermore, the first predicted power generation of the target component at the first time is determined, and the actual power generation of the target component at the first time is determined, and the first difference between the first predicted power generation and the actual power generation is determined. When the first difference is greater than or equal to the first preset threshold, it is determined that the power prediction model test has failed, that is, the power prediction model training has not been successful, and the power prediction model needs to be retrained; when the first difference is less than the first preset threshold, it is determined that the power prediction model test has passed, that is, the power prediction model training has been successful.

[0053] Optionally, after inputting the first prediction data set into the meta-learner in the above step S206 to train the meta-learner and obtain a trained power prediction model, the method further includes: acquiring a fourth environmental parameter corresponding to the target component, and inputting the fourth environmental parameter into the trained basic learner set to obtain fourth prediction data corresponding to the trained basic learner set, wherein the fourth environmental parameter includes: third radiation data and third temperature data of the target component, and the fourth prediction data includes: the power generation power of the target component predicted by the basic learner set based on the fourth environmental parameter; inputting the fourth prediction data into the trained meta-learner to obtain fifth prediction data, wherein the fifth prediction data is used to indicate the power generation power of the target component predicted by the trained power prediction model based on the fourth environmental parameter; and determining whether the target component is faulty according to the fifth prediction data.

[0054] Wherein, determining whether the target component has a fault according to the fifth prediction data includes: determining a plurality of second predicted power generation of the target component within a preset time period in the fifth prediction data; determining whether there is a third predicted power generation greater than the maximum preset power generation among the plurality of second predicted power generation, and / or determining whether there is a fourth predicted power generation less than the minimum preset power generation among the plurality of second predicted power generation; in the case where it is determined that the third predicted power generation exists among the plurality of second predicted power generation, and the fourth predicted power generation exists among the plurality of second predicted power generation; determining the sum of the quantities of the third predicted power generation and the fourth predicted power generation, and determining the ratio of the sum to the quantity of the second predicted power generation; in the case where the ratio is greater than or equal to a second preset threshold value, determining that the target component has a fault within the preset time period.

[0055] It is understandable that whether the target component fails within a preset time period can be determined based on the trained power prediction model. Specifically, the fourth environmental parameter is input into the trained basic learner model, and the fourth prediction data is input into the trained meta-learner to obtain the fifth prediction data.

[0056] Further, multiple second predicted power generation of the target component within a preset time is determined based on the fifth prediction data. When it is determined that there is a power generation greater than the maximum preset power generation and / or less than the minimum preset power generation among the multiple second predicted power generation, the sum of the third predicted power generation and the fourth predicted power generation is determined, and the number of multiple second predicted power generation is determined. The ratio of the sum and the number of multiple second predicted power generation is determined. When it is determined that the ratio is greater than or equal to the second preset threshold, it can be determined that the target component has a fault. When it is determined that the ratio is less than the second preset threshold, it can be determined that the target component has not a fault.

[0057] For example, if the sum is 10, the number of the second predicted power generation powers is 50, and the second preset threshold is 0.2, it can be determined that the ratio is 0.2, which is equal to the second preset threshold, that is, it is determined that the target component fails.

[0058] In order to better understand the process of the training method of the above-mentioned model, the training method of the above-mentioned model is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present application.

[0059] In the existing technology, prediction models can also be divided into physical models based on prior knowledge and data-driven artificial intelligence models.

[0060] Among them, the research work based on physical models uses empirical formula models of PV module radiation and temperature for power prediction, and realizes online fault detection through residual assumptions between predicted values ​​and measured values. The main advantage of physical model-based methods is high efficiency. However, there are also some disadvantages: first, they usually rely on specific empirical formulas, which are interfered by factors such as noise and measurement errors, and have poor prediction accuracy. Second, they need to collect data beyond the scope of the monitoring and data acquisition system, such as module temperature, which increases the cost of operation and maintenance activities of the entire system.

[0061] Data-driven AI models usually use AI algorithms instead of specific physical models and have high fault detection accuracy. For example: a method for detecting abnormal values ​​of power generation and control charts proposed in the related art, automatically detecting abnormal values ​​or faults in solar energy production of sister arrays of photovoltaic solar panels, a collaborative fault detection scheme based on collaborative filtering technology, which predicts the current value based on similar photovoltaic strings and detects faults by the long-term difference between the predicted value and the actual value, and a practical method for improving the evaluation of daily power generation of photovoltaic power stations, constructing a sub-model under daily weather conditions, comparing the normalized output of adjacent inverters, and finding abnormalities. These methods are effective in detecting obvious abnormalities in operating indicators caused by serious faults. However, in the early stage of the fault, the abnormality of the operating indicators is weak, and under low radiation conditions, the rapid movement of floating clouds will introduce noise, causing the power generation of normal photovoltaic modules to deviate slightly from the normal value; existing methods are difficult to distinguish it from the fault, resulting in insufficient normal operation data for prediction fitting. In addition, the monitoring alarm time usually takes a whole day, but in fact, photovoltaic power stations have higher requirements for the response time of fault detection and discovery. In addition, it is particularly economical to use the data acquisition system currently installed in photovoltaic power stations without providing new equipment to achieve timely and accurate monitoring.

[0062] Therefore, in response to the above problems, the optional embodiment of the present application proposes a hybrid model for photovoltaic fault detection based on weather conditions, which realizes hourly fault detection by relying only on the ambient temperature, radiation and other data collected by the data acquisition system required by each photovoltaic power station, and establishes a hybrid fitting model for hourly sub-weather conditions. Its first layer consists of multiple machine learning models, which produce independent prediction results; the second layer uses a hybrid algorithm to integrate the results of the previous layer model to generate the final result.

[0063] In order to obtain an accurate fitting model, we adopt a hybrid strategy to combine heterogeneous machine learning models for model fusion. Specifically, hybrid refers to an ensemble learning method that combines multiple classification or regression models through a meta-classifier or meta-regression, where "meta" means combination. Generally speaking, two layers of learners are stacked together. Because it highlights the best performance of each base learner and negates the base learners with poor performance, it will be better than a single learner.

[0064] Figure 3 is a schematic diagram of a training and prediction process of a hybrid fitting model according to an optional embodiment of the present application, such as Figure 3 As shown, the structure of the hybrid fitting model (i.e., the power prediction model of the present application) generally includes two layers:

[0065] The first layer: a set of multiple base learners (ie, the basic learner set of this application).

[0066] Follow the principle of "as accurate as possible, as diverse as possible".

[0067] The nature of KNN, GBR, MLP and RF is very different. The four algorithms have good fitting performance in different weather modes, so they are used as basic learners. In addition, considering the linear trend and nonlinear relationship of electricity under hourly weather types, the specific combination structure is determined.

[0068] KNN is suitable for low-dimensional data and can handle linear and nonlinear data well. It is particularly suitable for power forecasting under conditions where weather patterns do not change much. GBR can effectively handle high-dimensional data and complex nonlinear relationships. It can capture the nonlinear characteristics of photovoltaic systems under different weather patterns and improve prediction accuracy. MLP is good at handling complex nonlinear problems and can model the complex relationship between environmental parameters and power output in photovoltaic systems. RF performs well in handling high-dimensional data and nonlinear problems, has high stability and noise resistance, and is suitable for power forecasting under various weather conditions.

[0069] By combining these four algorithms and taking advantage of their respective advantages, the robustness and prediction accuracy of the overall model can be improved. The integration of multiple algorithms can effectively reduce the deviation and error of a single algorithm, reduce the false alarm rate in fault detection, and improve the accuracy of alarms. In summary, the four algorithms of KNN, GBR, MLP and RF are selected and mixed in order to take advantage of their respective advantages, accurately predict the power output of the photovoltaic system under different weather patterns, thereby effectively detecting and warning faults and improving the overall performance and reliability of the photovoltaic system.

[0070] Second layer: meta-learner.

[0071] Linear regression with linear nature is used as meta-learner. The component models used to develop the framework are selected from high-level machine learning algorithms. Moreover, these models perform well in prediction tasks, showing similar performance and acceptable computational cost.

[0072] The optional embodiment of the present application establishes a normal behavior fitting model which is a nonlinear mapping relationship between environmental parameters and photovoltaic power generation. In order to make the model widely adaptable, the selected environmental parameters are radiation and ambient temperature, both of which must be measured in all photovoltaic power plants.

[0073] In addition, improving response time and accurate alarm requires that the fitting model of the operating behavior has a finer time granularity, so higher performance requirements are placed on the fitting model.

[0074] The optional embodiment of the present application uses a hybrid fitting model under a sub-weather mode to accurately characterize the operating behavior of the photovoltaic system under different weather conditions. The data of the fitting model is averaged every 5 minutes, so the hybrid model can obtain 12 predicted theoretical power values ​​per hour. The hybrid fitting model is then trained for different weather conditions. During the fault detection process, the online radiation data is input into the trained classification model to classify the hourly weather pattern, and then the trained power fitting model is selected according to the attributes of the hourly weather pattern, and the error is calculated to determine whether it meets the alarm strategy, and finally decide whether to alarm.

[0075] Specific:

[0076] First, the data set of each sub-weather pattern is divided into a training set (i.e., the first environmental parameter set of this application), a validation set (i.e., the second environmental parameter set of this application), and a test set (i.e., the third environmental parameter set of this application), where the training set is used to train the four heterogeneous base learners of the first layer (i.e., the base learner set of this application).

[0077] Secondly, the trained first-layer model is used to predict the validation set to obtain the prediction results, and then the prediction values ​​of the validation set are used as the training set to train the meta-learner of the second layer.

[0078] Finally, the trained first-layer model is used to predict the test set to obtain the prediction results of the test set (i.e., the second prediction data of this application), and then the trained second-layer model is used to predict the test set results derived from the first layer. The result obtained is the final prediction of the entire test set (i.e., the third prediction data of this application).

[0079] In order to accurately detect faults and minimize false alarms, the following alarm strategies are adopted:

[0080] Every hour (i.e., the preset time period of this application) for 20 consecutive minutes, the ratio of the measured power exceeding the threshold value to the threshold range (used to indicate the maximum preset power generation power and the minimum preset power generation power of this application) exceeds 20% (i.e., the second preset threshold value of this application). The threshold value is used to help detect faults in the operation of the photovoltaic system every hour, and its value is determined based on the maximum error ratio of the test set predicted by the hybrid fitting model under the sub-weather mode. In the application of fault detection, the corresponding hybrid fitting model is selected according to the weather type of the hour, and whether to prompt an alarm is determined based on whether the prediction error meets the alarm strategy.

[0081] The hybrid model of photovoltaic fault detection based on weather conditions proposed in the optional embodiment of the present application can effectively improve the performance of the photovoltaic system, wherein the improvement of performance mainly refers to timely and accurate response to alarms. Effectively identify faults at the primary stage, timely warn of faults, and provide guidance for subsequent operation, maintenance and repair, such as preventive maintenance or timely repair of major faults, thereby improving the power generation and efficiency of the photovoltaic system.

[0082] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0083] The present application also provides a structural block diagram of a model training device. Figure 4 is a structural block diagram of a training device for a model according to an embodiment of the present application; Figure 4 As shown, including:

[0084] An acquisition module 42 is used to acquire multiple environmental parameters corresponding to the target component, and divide the multiple environmental parameters into a first environmental parameter set and a second environmental parameter set, wherein the environmental parameters include: first radiation data and first temperature data of the target component;

[0085] The training module 44 is used to train each basic learner in the basic learner set according to the first environmental parameter set, and input the second environmental parameter set into the trained basic learner set to obtain a first prediction data set corresponding to the basic learner set, wherein the first prediction data set includes: the power generation power of the target component predicted by each basic learner;

[0086] The input module 46 is used to input the first prediction data set into the meta-learner to train the meta-learner to obtain a trained power prediction model, wherein the trained power prediction model includes: the trained basic learner set and the trained meta-learner.

[0087] Through the above device, multiple environmental parameters corresponding to the target component are obtained, and the environmental parameters include: the first radiation data and the first temperature data of the target component, and the multiple environmental parameters are divided into a first environmental parameter set and a second environmental parameter set; each basic learner in the basic learner set is trained according to the first environmental parameter set, and the second environmental parameter set is input into the trained basic learner set to obtain the power generation power of the target component predicted by each basic learner, that is, the first prediction data set. The first prediction data set is input into the meta-learner to train the meta-learner, and then the trained basic learner set and the trained meta-learner are obtained. The trained basic learner set and the trained meta-learner are the trained power prediction model. In other words, the present application trains the basic learner set in the power prediction model through the first radiation data and the first temperature data of the target component, taking into account the influence of temperature and radiation on the power generation power of the target component, and then the second radiation data and the second temperature data are input into the trained basic learner set to obtain the first prediction result, and the first preset result is used as the training data of the meta-learner, which can further improve the prediction accuracy of the power prediction model. Through the above-mentioned technical scheme, the problem of low prediction accuracy of the power prediction model caused by only inputting radiation data into a power prediction model for training in the prior art, without considering the influence of temperature on the power generation power of the predicted target component, can be solved, thereby improving the prediction accuracy of the power prediction model.

[0088] In an exemplary embodiment, the training module 44 is also used to obtain a third environmental parameter corresponding to the target component, wherein the third environmental parameter includes: second radiation data and second temperature data of the target component; the third environmental parameter is input into the trained basic learner set to obtain second prediction data corresponding to the trained basic learner set, wherein the second prediction data includes: the power generation power of the target component predicted by the basic learner set based on the third environmental parameter; the second prediction data is input into the trained meta-learner to obtain third prediction data, wherein the third prediction data is used to indicate the power generation power of the target component predicted by the trained power prediction model based on the third environmental parameter; and whether the trained power prediction model has passed the test is determined according to the third prediction data.

[0089] In an exemplary embodiment, the training module 44 is also used to input the second radiation data into a target classification model to determine the weather pattern corresponding to the second radiation data; determine the target basic learner corresponding to the third environmental parameter based on the weather pattern, wherein the trained basic learner set includes: the target basic learner; input the third environmental parameter into the target basic learner to obtain the second prediction data corresponding to the basic learner set.

[0090] In an exemplary embodiment, the training module 44 is also used to obtain the actual power generation of the target component at the target time when it is determined that the target component has not failed at the target time, and to obtain the first predicted power generation of the target component at the target time in the third prediction result; compare the first predicted power generation with the actual power generation, and determine whether the trained power prediction model passes the test based on the comparison result.

[0091] In an exemplary embodiment, the training module 44 is also used to determine a first difference between the first predicted generated power and the actual generated power; when the comparison result indicates that the first difference is greater than or equal to a first preset threshold, it is determined that the power prediction model test has failed; when the comparison result indicates that the first difference is less than the first preset threshold, it is determined that the power prediction model test has passed.

[0092] In an exemplary embodiment, the input module 46 is also used to obtain a fourth environmental parameter corresponding to the target component, and input the fourth environmental parameter into the trained basic learner set to obtain fourth prediction data corresponding to the trained basic learner set, wherein the fourth environmental parameter includes: third radiation data and third temperature data of the target component, and the fourth prediction data includes: the power generation power of the target component predicted by the basic learner set based on the fourth environmental parameter; the fourth prediction data is input into the trained meta-learner to obtain fifth prediction data, wherein the fifth prediction data is used to indicate the power generation power of the target component predicted by the trained power prediction model based on the fourth environmental parameter; and whether the target component fails is determined according to the fifth prediction data.

[0093] In an exemplary embodiment, the input module 46 is also used to determine multiple second predicted power generation of the target component within a preset time period in the fifth prediction data; determine whether there is a third predicted power generation greater than the maximum preset power generation among the multiple second predicted power generation, and / or determine whether there is a fourth predicted power generation less than the minimum preset power generation among the multiple second predicted power generation; when it is determined that the third predicted power generation exists among the multiple second predicted power generation, and the fourth predicted power generation exists among the multiple second predicted power generation; determine the sum of the third predicted power generation and the fourth predicted power generation, and determine the ratio of the sum to the second predicted power generation; when the ratio is greater than or equal to a second preset threshold, determine that the target component has failed within the preset time period.

[0094] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.

[0095] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:

[0096] S1, acquiring multiple environmental parameters corresponding to a target component, and dividing the multiple environmental parameters into a first environmental parameter set and a second environmental parameter set, wherein the environmental parameters include: first radiation data and first temperature data of the target component;

[0097] S2, training each basic learner in the basic learner set according to the first environmental parameter set, and inputting the second environmental parameter set into the trained basic learner set to obtain a first prediction data set corresponding to the basic learner set, wherein the first prediction data set includes: the power generation power of the target component predicted by each basic learner;

[0098] S3, inputting the first prediction data set into a meta-learner to train the meta-learner to obtain a trained power prediction model, wherein the trained power prediction model includes: the trained basic learner set and the trained meta-learner.

[0099] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0100] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0101] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0102] S1, acquiring multiple environmental parameters corresponding to a target component, and dividing the multiple environmental parameters into a first environmental parameter set and a second environmental parameter set, wherein the environmental parameters include: first radiation data and first temperature data of the target component;

[0103] S2, training each basic learner in the basic learner set according to the first environmental parameter set, and inputting the second environmental parameter set into the trained basic learner set to obtain a first prediction data set corresponding to the basic learner set, wherein the first prediction data set includes: the power generation power of the target component predicted by each basic learner;

[0104] S3, inputting the first prediction data set into a meta-learner to train the meta-learner to obtain a trained power prediction model, wherein the trained power prediction model includes: the trained basic learner set and the trained meta-learner.

[0105] An embodiment of the present application further provides a computer program product, including a computer program, which is used by a processor to execute the steps in any of the above method embodiments.

[0106] Optionally, in this embodiment, the computer program product may be executed by a processor to perform the following steps:

[0107] S1, acquiring multiple environmental parameters corresponding to a target component, and dividing the multiple environmental parameters into a first environmental parameter set and a second environmental parameter set, wherein the environmental parameters include: first radiation data and first temperature data of the target component;

[0108] S2, training each basic learner in the basic learner set according to the first environmental parameter set, and inputting the second environmental parameter set into the trained basic learner set to obtain a first prediction data set corresponding to the basic learner set, wherein the first prediction data set includes: the power generation power of the target component predicted by each basic learner;

[0109] S3, inputting the first prediction data set into a meta-learner to train the meta-learner to obtain a trained power prediction model, wherein the trained power prediction model includes: the trained basic learner set and the trained meta-learner.

[0110] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0111] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0112] Obviously, those skilled in the art should understand that the above modules or steps of the present application 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, and optionally, 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 from that herein, 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 application is not limited to any specific combination of hardware and software.

[0113] 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 principles of the present application shall be included in the protection scope of the present application.

Claims

1. A model training method, characterized in that: include: Acquire multiple environmental parameters corresponding to the target component, and divide the multiple environmental parameters into a first environmental parameter set and a second environmental parameter set, wherein the environmental parameters include: first radiation data and first temperature data of the target component; Each basic learner in the basic learner set is trained according to the first environmental parameter set, and the second environmental parameter set is input into the trained basic learner set to obtain a first prediction data set corresponding to the basic learner set, wherein the first prediction data set includes: the power generation power of the target component predicted by each basic learner; The first prediction data set is input into a meta-learner to train the meta-learner to obtain a trained power prediction model, wherein the trained power prediction model includes: the trained basic learner set and the trained meta-learner.

2. The training method of the model according to claim 1, characterized in that: After inputting the first prediction data set into a meta-learner to train the meta-learner and obtaining a trained power prediction model, the method further includes: Acquire a third environmental parameter corresponding to the target component, wherein the third environmental parameter includes: second radiation data and second temperature data of the target component; Inputting the third environmental parameter into the trained basic learner set to obtain second prediction data corresponding to the trained basic learner set, wherein the second prediction data includes: the power generation power of the target component predicted by the basic learner set based on the third environmental parameter; Inputting the second prediction data into the trained meta-learner to obtain third prediction data, wherein the third prediction data is used to indicate the power generation power of the target component predicted by the trained power prediction model based on the third environmental parameter; Determine whether the trained power prediction model passes the test according to the third prediction data.

3. The training method of the model according to claim 2, characterized in that: Inputting the third environmental parameter into the trained basic learner set to obtain second prediction data corresponding to the basic learner set includes: inputting the second radiation data into a target classification model to determine a weather pattern corresponding to the second radiation data; Determining a target basic learner corresponding to the third environmental parameter according to the weather pattern, wherein the trained basic learner set includes: the target basic learner; The third environmental parameter is input into the target basic learner to obtain second prediction data corresponding to the basic learner set.

4. The training method of the model according to claim 2, characterized in that: Determining whether the power prediction model passes the test according to the third prediction data includes: When it is determined that the target component does not fail at the target time, obtaining the actual power generation of the target component at the target time, and obtaining the first predicted power generation of the target component at the target time in the third prediction result; The first predicted power generation is compared with the actual power generation, and it is determined whether the trained power prediction model passes the test according to the comparison result.

5. The training method of the model according to claim 4, characterized in that: Comparing the first predicted power generation with the actual power generation, and determining whether the trained power prediction model passes the test according to the comparison result, includes: Determining a first difference between the first predicted generated power and the actual generated power; If the comparison result indicates that the first difference is greater than or equal to a first preset threshold, determining that the power prediction model test fails; When the comparison result indicates that the first difference is less than the first preset threshold, it is determined that the power prediction model test has passed.

6. The training method of the model according to claim 1, characterized in that: After inputting the first prediction data set into the meta-learner to train the meta-learner and obtain a trained power prediction model, the method further includes: Acquire a fourth environmental parameter corresponding to the target component, and input the fourth environmental parameter into the trained basic learner set to obtain fourth prediction data corresponding to the trained basic learner set, wherein the fourth environmental parameter includes: third radiation data and third temperature data of the target component, and the fourth prediction data includes: the power generation power of the target component predicted by the basic learner set based on the fourth environmental parameter; Inputting the fourth prediction data into the trained meta-learner to obtain fifth prediction data, wherein the fifth prediction data is used to indicate the power generation power of the target component predicted by the trained power prediction model based on the fourth environmental parameter; It is determined whether the target component fails according to the fifth prediction data.

7. The training method of the model according to claim 6, characterized in that: Determining whether the target component fails according to the fifth prediction data includes: Determining a plurality of second predicted power generation powers of the target component within a preset time period in the fifth prediction data; Determine whether there is a third predicted power generation power greater than the maximum preset power generation power among the plurality of second predicted power generation powers, and / or determine whether there is a fourth predicted power generation power less than the minimum preset power generation power among the plurality of second predicted power generation powers; In the case where it is determined that the third predicted power generation exists among the plurality of second predicted power generation, and the fourth predicted power generation exists among the plurality of second predicted power generation; determining a sum of the quantities of the third predicted power generation and the fourth predicted power generation, and determining a ratio of the sum to the quantity of the second predicted power generation; When the ratio is greater than or equal to a second preset threshold, it is determined that the target component fails within the preset time period.

8. A model training device, characterized in that: include: An acquisition module, used for acquiring a plurality of environmental parameters corresponding to the target component, and dividing the plurality of environmental parameters into a first environmental parameter set and a second environmental parameter set, wherein the environmental parameters include: first radiation data and first temperature data of the target component; A training module, configured to train each basic learner in a basic learner set according to the first environmental parameter set, and input the second environmental parameter set into the trained basic learner set to obtain a first prediction data set corresponding to the basic learner set, wherein the first prediction data set includes: the power generation power of the target component predicted by each basic learner; An input module is used to input the first prediction data set into a meta-learner to train the meta-learner to obtain a trained power prediction model, wherein the trained power prediction model includes: the trained basic learner set and the trained meta-learner.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.

Citation Information

Patent Citations

  • Prediction method for short-term output of distributed photovoltaic power generation system

    CN111008728A

  • Short-term photovoltaic power prediction method based on Stacking-ensemble learning

    CN112561058A

  • Photovoltaic power generation power prediction model training method, prediction method and device

    CN115271242A

  • Method for training power generation amount prediction model of photovoltaic power station, power generation amount prediction method and device of photovoltaic power station, training system, prediction system and storage medium

    WO2020228568A1