Carbon emission prediction method and device of photovoltaic system, storage medium and terminal

By using a method based on the similar day algorithm and the pvlib model, combined with historical data and weather information, the carbon emissions of the photovoltaic system are predicted, which solves the problem of insufficient prediction accuracy of the carbon emissions of the photovoltaic system in the existing technology and achieves more accurate carbon emissions. quantity assessment and energy management.

CN118657534APending Publication Date: 2024-09-17ALPHA ESS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410758494.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing technology cannot fully consider the operating characteristics and environmental factors of photovoltaic systems, resulting in limited precision and accuracy in predicting carbon emissions from photovoltaic systems in virtual power plants.

Method used

Using a method based on the similar day algorithm and the pvlib model, by obtaining historical data of the photovoltaic system, the electricity consumption and power generation on similar dates are screened out, and combined with weather data and location information, the power consumption and power generation on the date to be predicted are calculated. thereby predicting carbon emissions.

Benefits of technology

It improves the prediction accuracy and accuracy of carbon emissions of photovoltaic systems, helps virtual power plants optimize resource allocation, reduce operating costs, and improve energy utilization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657534A
    Figure CN118657534A
Patent Text Reader

Abstract

The invention discloses a carbon emission prediction method and device of a photovoltaic system, a storage medium and a terminal. The photovoltaic system comprises photovoltaic power generation equipment and power consumption equipment. The carbon emission prediction method comprises the following steps: obtaining historical data and a to-be-predicted date of a photovoltaic system, wherein the historical data at least comprises M historical dates, M historical power generation amounts of photovoltaic power generation equipment in one-to-one correspondence with the M historical dates, and M historical power consumption amounts of power consumption equipment in one-to-one correspondence with the M historical dates; and on the basis of a similar day algorithm, n similar dates corresponding to the date to be predicted are obtained from the M historical dates, the predicted electricity consumption E of the date to be predicted is calculated by using the historical electricity consumption of the n similar dates, and the predicted photovoltaic generating capacity PV of the date to be predicted is calculated on the basis of the pvlib model and the historical data. And calculating the carbon emission C of the to-be-predicted date by using the predicted electricity consumption E and the predicted photovoltaic generating capacity PV, thereby realizing accurate prediction of the carbon emission of the photovoltaic system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of photovoltaic systems, and in particular to a method, device, storage medium and terminal for predicting carbon emissions of photovoltaic systems. Background Art

[0002] Virtual power plants use advanced communication technology and software architecture to achieve the aggregation and coordinated optimization of various geographically dispersed distributed systems, so as to participate in the power market and power grid operation as a special power plant. By integrating a variety of distributed energy resources, including renewable energy such as photovoltaics and wind power, as well as energy storage systems and controllable loads, centralized management and optimized scheduling of electric energy can be achieved, thereby improving energy utilization efficiency, reducing system operating costs, and helping to promote the greening and low-carbonization of the power system.

[0003] At present, the prediction methods for the carbon emissions of photovoltaic systems in virtual power plants are mainly based on traditional mathematical models or statistical models. These methods often fail to fully consider the operating characteristics and environmental factors of photovoltaic systems in virtual power plants, so the prediction precision and accuracy are limited. At the same time, the integrated management of virtual power plants makes the operating status of photovoltaic systems affected by many factors, such as grid demand, renewable energy output, energy storage system status, etc. Changes in these factors may affect the carbon emissions of photovoltaic systems.

[0004] Therefore, how to solve the deficiencies and shortcomings of existing technologies through effective carbon emissions prediction methods has become an important issue that researchers in this field need to solve urgently. Summary of the invention

[0005] The purpose of the present invention is to address the above-mentioned problems and to provide a method, device, storage medium and terminal for predicting carbon emissions of a photovoltaic system.

[0006] The technical solution of the present invention is: a method for predicting carbon emissions of a photovoltaic system, wherein the photovoltaic system comprises: a photovoltaic power generation device and a power consumption device, wherein the power consumption device can receive the electric energy generated by the photovoltaic power generation device; and comprises the following steps: obtaining historical data of the photovoltaic system and a date to be predicted, wherein the historical data at least comprises: M historical dates, M historical power generation amounts of the photovoltaic power generation device corresponding to the M historical dates, and M historical power consumption amounts of the power consumption device corresponding to the M historical dates, wherein M is a positive integer; based on a similar day algorithm, obtaining n similar dates corresponding to the date to be predicted from the M historical dates, calculating the predicted power consumption E of the date to be predicted using the historical power consumption amounts of the n similar dates, and calculating the predicted photovoltaic power generation PV of the date to be predicted based on a pvlib model and historical data, wherein n is a positive integer; and calculating the carbon emissions C of the date to be predicted using the predicted power consumption E and the predicted photovoltaic power generation PV.

[0007] As an improvement of the embodiment of the present invention, the “based on the similar day algorithm, obtaining n similar dates corresponding to the date to be predicted from M historical dates, and using the historical power consumption of n similar dates to calculate the predicted power consumption E of the date to be predicted” specifically includes: performing the following operations on any historical date i: based on the similar day algorithm, obtaining the first similarity δ of the historical date i i and the second similarity γ i , the total similarity F i =w δ,i δ i +w γ,i γ i , where w δ,i is the first similarity δ i The weight, w γ,i is the second similarity γ i The weight of, where M and i are both natural numbers, i = 1, 2, ..., M, w δ,i >0vw γ,i > 0; sort the M historical dates in descending order of total similarity, and the historical dates with the top n total similarities are similar dates. Among them, F j is the total similarity corresponding to similar day j, E j is the power generation corresponding to the similar day j; obtain the official predicted power consumption G for the date to be predicted, predicted power consumption E = k*E 1 +(1-k)*G, where k is the adjustment coefficient k∈(0, 1).

[0008] As an improvement of the embodiment of the present invention, the “based on the similarity day algorithm, obtaining the first similarity δ of the historical date i” i and the second similarity γ i ”Specifically include: First similarity Among them, β 1 , β 2 , β 3 are attenuation coefficients, β 1 , β 2 , β 3 The value range of S is 0.9~0.98; i Indicates whether the historical date i is a holiday. If the historical date i is a holiday, S i The value of S is 1. If the historical date i is not a holiday, i The value is 0; Δx is the number of days between the historical date i and the date to be predicted, N 1 =N 2 =7,N 3 =350; Second similarity where ω iis the week type mapping value corresponding to historical date i, ω 0 The mapping value of the week type corresponding to the date to be predicted, and the "mapping value of the week type" specifically includes: Monday to Sunday are mapped to 2, 3, 4, 5, 6, 7, 1 respectively.

[0009] As an improvement of the embodiment of the present invention, the first similarity δ i The weight w δ,i and the second similarity γ i The weight w γ,i The CRITIC method is used to allocate income.

[0010] As an improvement of an embodiment of the present invention, the "calculating the predicted photovoltaic power generation PV on the date to be predicted based on the pvlib model and historical data" specifically includes: obtaining the location information and parameter information of the photovoltaic power generation equipment, obtaining the weather data corresponding to M historical dates at the location of the photovoltaic power generation equipment, and processing the location information, the parameter information, M historical power generation and M weather data based on the GFS module, NAM module and ModelChain module in the pvlib model to obtain the predicted photovoltaic power generation PV on the date to be predicted.

[0011] As an improvement of the embodiment of the present invention, the “calculating the carbon emissions C on the predicted date using the predicted electricity consumption E and the predicted photovoltaic power generation PV” specifically includes: carbon emissions C = E*C elec -PV*C pv , where C elec is the carbon emission factor of electricity, C pv is the carbon emission reduction factor of photovoltaic power generation.

[0012] To achieve one of the above-mentioned purposes of the invention, an embodiment of the present invention provides a device for predicting carbon emissions of a photovoltaic system, wherein the photovoltaic system comprises: a photovoltaic power generation device and a power consumption device, wherein the power consumption device is capable of receiving the electric energy generated by the photovoltaic power generation device; and comprises the following modules: an information acquisition module, used to obtain historical data and a date to be predicted of the photovoltaic system, wherein the historical data comprises at least: M historical dates, M historical power generation amounts of the photovoltaic power generation device corresponding to the M historical dates, and M historical power consumption amounts of the power consumption device corresponding to the M historical dates, wherein M is a positive integer; a processing module, used to obtain n similar dates corresponding to the date to be predicted from the M historical dates based on a similar day algorithm, calculate the predicted power consumption E of the date to be predicted using the historical power consumption amounts of the n similar dates, and calculate the predicted photovoltaic power generation PV of the date to be predicted based on a pvlib model and historical data, wherein n is a positive integer; and a prediction module, used to calculate the carbon emissions C of the date to be predicted using the predicted power consumption E and the predicted photovoltaic power generation PV.

[0013] As an improvement of the embodiment of the present invention, the “based on the similar day algorithm, obtaining n similar dates corresponding to the date to be predicted from M historical dates, and using the historical power consumption of n similar dates to calculate the predicted power consumption E of the date to be predicted” specifically includes: performing the following operations on any historical date i: based on the similar day algorithm, obtaining the first similarity δ of the historical date i i and the second similarity γ i , the total similarity F i =w δ,i δ i +w γ,i γ i , where w δ,i is the first similarity δ i The weight, w γ,i is the second similarity γ i The weight of, where M and i are both natural numbers, i = 1, 2, ..., M, w δ,i >0,w γ,i > 0; Sort M historical dates in descending order of total similarity, and the historical dates with the top n total similarities are similar dates. Among them, F j is the total similarity corresponding to similar day j, E j is the power generation corresponding to the similar day j; obtain the official predicted power consumption G for the date to be predicted, predicted power consumption E = k*E 1 +(1-k)*G, where k is the adjustment coefficient k∈(0,1)

[0014] To achieve one of the above objects of the invention, an embodiment of the present invention provides a storage medium storing program instructions, which, when executed, implement the carbon emission prediction method as described in any one of the above items.

[0015] To achieve one of the above-mentioned objects of the invention, an embodiment of the present invention provides a terminal, including a processor and a memory, wherein the memory stores program instructions, and the processor executes the program instructions to implement the carbon emission prediction method as described in any one of the above items.

[0016] The carbon emission prediction method, device, storage medium and terminal of the photovoltaic system provided by the embodiment of the present invention have the following advantages: The embodiment of the present invention discloses a carbon emission prediction method of the photovoltaic system, which is mainly for obtaining the historical data and the date to be predicted of the photovoltaic system. Based on the similar day algorithm, n similar dates corresponding to the date to be predicted are obtained from M historical dates, and the predicted power consumption E of the date to be predicted is calculated using the historical power consumption of the n similar dates, and the predicted photovoltaic power generation PV of the date to be predicted is calculated based on the pvlib model and historical data. The carbon emissions C of the date to be predicted are calculated using the predicted power consumption E and the predicted photovoltaic power generation PV, thereby realizing the accurate prediction of the carbon emissions of the photovoltaic system. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a flow chart of a method for predicting carbon emissions of a photovoltaic system provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0018] The present invention will be described in detail below in conjunction with the specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present invention, and any structural, methodological, or functional changes made by a person skilled in the art based on these embodiments are all within the scope of protection of the present invention.

[0019] If the present invention involves directions (for example, up, down, left, right, front, back, outside, inside, etc.) when describing, it is necessary to define the directions involved.

[0020] The scope of the embodiments herein includes the entire scope of the claims, and all available equivalents of the claims.Herein, the terms "first", "second", etc. are only used to distinguish one element from another, without requiring or implying any actual relationship or order between these elements.In fact, the first element can also be called the second element, and vice versa.Moreover, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the structure, device or equipment including a series of elements not only include those elements, but also include other elements not clearly listed, or also include elements inherent to such structure, device or equipment.In the absence of more restrictions, the elements limited by the statement "include one..." do not exclude the existence of other identical elements in the structure, device or equipment including the elements.Each embodiment herein is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same similar parts between each embodiment can be referred to each other.

[0021] The terms "longitudinal", "lateral", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. in this document indicate the orientation or position relationship based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing this document and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In the description of this document, unless otherwise specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a mechanical connection or an electrical connection, it can also be the internal communication of two elements, it can be a direct connection, or it can be indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.

[0022] Embodiment 1 of the present invention provides a method for predicting carbon emissions of a photovoltaic system, wherein the photovoltaic system comprises: a photovoltaic power generation device and a power consumption device, wherein the power consumption device is capable of receiving electric energy generated by the photovoltaic power generation device; Figure 1 As shown, the carbon emission prediction method includes the following steps: Step 101: Acquire the historical data of the photovoltaic system and the date to be predicted, the historical data at least including: M historical dates, M historical power generation corresponding to each other in the M historical dates of the photovoltaic power generation equipment, and M historical power consumption corresponding to each other in the M historical dates of the power consumption equipment, wherein M is a positive integer;

[0023] In practice, the historical power generation data of the photovoltaic system can be obtained through the data management system of the virtual power plant. These data should include key information such as the power generation and cumulative power generation of the photovoltaic system in different time periods. Here, the selection of the time range of historical data should be comprehensively considered based on the forecasting needs, data availability, relevance and seasonal factors. Through reasonable historical data selection, the accuracy and reliability of the carbon emission prediction of the photovoltaic system can be improved. Preferably, the time range of the historical data is two months, one of which is one month before the forecast date, and the other is 15 days before and after the same day of the date to be predicted. For example, if the date to be predicted is June 7, 2024, then the time range of the historical data includes one month before the forecast date: May 7, 2024 to June 6, 2024; 15 days before and after the same day of the date to be predicted: May 23, 2023 to June 22, 2023. It can be understood that this can make full use of the recent changes and long-term trends in the operation of the photovoltaic system to improve the accuracy and reliability of the carbon emission prediction.

[0024] At the same time, it is also necessary to obtain weather data corresponding to the historical date, which may include meteorological parameters such as light intensity, temperature, humidity, wind speed, etc. It is understandable that these data can be used to analyze the operating efficiency and carbon emission characteristics of the photovoltaic system under different weather conditions. According to the prediction requirements, the specific date or time period of the prediction is clearly specified to predict the carbon emissions C of the photovoltaic system within the time range.

[0025] Step 102: Based on the similar day algorithm, n similar dates corresponding to the date to be predicted are obtained from the M historical dates, the predicted power consumption E of the date to be predicted is calculated using the historical power consumption of the n similar dates, and the predicted photovoltaic power generation PV of the date to be predicted is calculated based on the pvlib model and historical data, where n is a positive integer;

[0026] Here, based on the similar day algorithm, n similar dates with similar operating characteristics to the date to be predicted are screened out from M historical data, and the historical electricity consumption of the n similar dates is used to calculate the predicted electricity consumption E of the date to be predicted. The predicted photovoltaic power generation PV of the date to be predicted is calculated based on the pvlib model and historical data. It can be understood that this method fully combines a variety of influencing factors, such as grid demand, renewable energy output, energy storage system status, etc., and more comprehensively reflects the actual operation of the photovoltaic system in the virtual power plant and the influence of environmental factors, which can improve the prediction precision and accuracy.

[0027] Step 103: Calculate the carbon emissions C on the date to be predicted using the predicted electricity consumption E and the predicted photovoltaic power generation PV.

[0028] Here, it can be understood that by using the predicted electricity consumption E and the predicted photovoltaic power generation PV to calculate the carbon emissions C on the predicted date, it is possible to more accurately evaluate the actual effect of the virtual power plant in energy conservation and emission reduction, which will help the virtual power plant to better formulate energy management strategies, optimize resource allocation, reduce system operating costs, and improve energy utilization efficiency.

[0029] In this embodiment, the “based on the similar day algorithm, obtaining n similar dates corresponding to the date to be predicted from M historical dates, and using the historical power consumption of n similar dates to calculate the predicted power consumption E of the date to be predicted” specifically includes:

[0030] The following operations are performed for any historical date i: Based on the similarity day algorithm, the first similarity δ of the historical date i is obtained. i and the second similarity γ i , the total similarity F i =w δ,i δ i +w γ,i γ i , where w δ,i is the first similarity δi The weight, w γ,i is the second similarity γ i The weight of, where M and i are both natural numbers, i = 1, 2, ..., M, w δ,i >0,w γ,i >0;

[0031] In practice, the first similarity δ i The weight w δ,i and the second similarity γ i The weight w γ,i The results are all allocated using the CRITIC method. Here, the CRITIC method is an objective weighting method. Its basic idea is to determine the objective weight of the indicator based on the comparison strength and the conflict between the evaluation indicators. The comparison strength is expressed in the form of standard deviation to represent the difference in the values ​​of the various evaluation schemes for the same indicator. The larger the standard deviation, the greater the difference in the values ​​of the schemes. The conflict between the evaluation indicators is based on the correlation between the indicators. If there is a strong positive correlation between the two indicators, it means that the conflict between the two indicators is low. It can be understood that the weight w is obtained using this method. δ,i and weight w γ,i Can objectively reflect the first similarity δ i and the second similarity γ i The importance and influence of carbon emission prediction methods ensure that the weight distribution is consistent with the actual distribution of data. At the same time, based on the first similarity δ i and the second similarity γ i Using the correlation between them to evaluate the conflict helps to identify indicators that are independent of each other and have a significant impact on the prediction results, thereby avoiding information redundancy and unreasonable weight distribution and improving the accuracy and reliability of the prediction.

[0032] Sort the M historical dates in descending order of total similarity, and the historical dates with the top n total similarities are similar dates. Among them, F j is the total similarity corresponding to similar day j, E j is the power generation corresponding to the similar day j;

[0033] Get the official forecast electricity consumption G for the forecast date, forecast electricity consumption E = k*E 1 +(1-k)*G, where k is the adjustment coefficient k∈(0, 1).

[0034] Here, the top five historical dates in terms of total similarity can be selected as similar days. It can be understood that selecting five similar days can reduce the computational complexity while maintaining a certain accuracy, and can more accurately predict photovoltaic power generation or evaluate performance. Although increasing the number of similar days may improve the accuracy of prediction or evaluation, too much data will also increase the computational complexity, which may lead to an increase in computing time and increased consumption of computing resources.

[0035] In practice, the official forecast electricity consumption G for the predicted date can be obtained from energy meteorological data platforms such as Xihe Data Source, European Medium-Term Weather Centre or other related platforms by selecting the corresponding geographical location of the photovoltaic power station and the parameters of the photovoltaic system.

[0036] In this embodiment, the “based on the similarity day algorithm, obtain the first similarity δ of the historical date i” i and the second similarity γ i ”Specifically include: First similarity Among them, β 1 , β 2 , β 3 are attenuation coefficients, β 1 , β 2 , β 3 The value range of S is 0.9~0.98; i Indicates whether the historical date i is a holiday. If the historical date i is a holiday, S i The value of S is 1. If the historical date i is not a holiday, i The value is 0; Δx is the number of days between the historical date i and the predicted date, N 1 =N 2 =7,N 3 =350; Second similarity where ω i is the week type mapping value corresponding to historical date i, ω 0 The mapping value of the week type corresponding to the date to be predicted, and the "mapping value of the week type" specifically includes: Monday to Sunday are mapped to 2, 3, 4, 5, 6, 7, 1 respectively.

[0037] Here, the similarity algorithm mainly evaluates the similarity between the historical date and the predicted date by factors such as the time interval between them, holidays, and week types. It can be understood that this can find days with similar characteristics to the predicted date from historical data, thereby improving the prediction accuracy. i is the time interval between the historical date and the date to be predicted and whether the historical date is a holiday. 1 , β 2 , β 3Both are attenuation coefficients, which are used to measure the impact of time intervals on similarity. Their values ​​usually range from 0.9 to 0.98. It is understandable that as the number of days between intervals increases, the similarity will gradually decrease. The second similarity γ i is the week type of the historical date and the date to be predicted. The week type is usually mapped to a value, and then the similarity between the week type mapping values ​​corresponding to the historical date and the date to be predicted is calculated. Preferably, the week types from Monday to Sunday are mapped to 2, 3, 4, 5, 6, and 1 respectively. Finally, the first similarity δ i and the second similarity γ i Different weights are assigned to calculate the total similarity between the historical date and the date to be predicted.

[0038] In this embodiment, the "calculating the predicted photovoltaic power generation PV on the date to be predicted based on the pvlib model and historical data" specifically includes: obtaining the location information and parameter information of the photovoltaic power generation equipment, obtaining the weather data corresponding to M historical dates at the location of the photovoltaic power generation equipment, and processing the location information, the parameter information, M historical power generation and M weather data based on the GFS module, NAM module and ModelChain module in the pvlib model to obtain the predicted photovoltaic power generation PV on the date to be predicted.

[0039] Here, pvlib is an open source Python library for simulation, performance evaluation and power generation prediction of solar photovoltaic systems. It provides an open, reliable and interactive benchmark implementation for computational models related to photovoltaic power generation systems. When using pvlib to calculate the predicted power generation of a photovoltaic system, it is necessary to obtain the location information and parameter information of the photovoltaic system, as well as the weather data corresponding to the historical date of the geographical location of the photovoltaic system. The weather data can be obtained through the detection equipment installed in the photovoltaic power station or the API interface provided by other open data platforms. After that, the location information and parameter information of the photovoltaic system and the weather data of the historical date are used as the input of the ModelChain module through the GFS module and NAM module of pvlib. The ModelChain module combines these data into a chain for prediction. Finally, pvlib will output the predicted photovoltaic power generation PV.

[0040] In this embodiment, the “calculating the carbon emissions C on the predicted date using the predicted electricity consumption E and the predicted photovoltaic power generation PV” specifically includes: carbon emissions C = E*C elec -PV*C pv , where C elec is the carbon emission factor of electricity, C pv is the carbon emission reduction factor of photovoltaic power generation.

[0041] In practice, the carbon emission factor of electricity Celec It is an important indicator used to quantify the carbon dioxide emissions generated by each unit of electricity in the power production process. It reflects the energy efficiency and environmental impact of the power production process. It is a key parameter for evaluating the carbon emission intensity of the power system, formulating emission reduction strategies, and measuring the cleanliness of electricity. Preferably, the power carbon emission factor C elec It can be 0.96. Photovoltaic power generation carbon emission reduction factor C pv It indicates the amount of carbon dioxide emissions reduced by the photovoltaic system for each kilowatt-hour of electricity generated compared with traditional coal-fired power generation. Its calculation is usually based on the emission factor of coal-fired power generation (i.e. the amount of carbon dioxide generated for each kilowatt-hour of electricity generated) and the actual operating efficiency of the photovoltaic system. Preferably, the photovoltaic power generation carbon emission reduction factor C pv It can be 0.667.

[0042] Embodiment 2 of the present invention provides a device for predicting carbon emissions of a photovoltaic system, wherein the photovoltaic system comprises: a photovoltaic power generation device and a power consumption device, wherein the power consumption device is capable of receiving the electric energy generated by the photovoltaic power generation device; and comprises the following modules:

[0043] An information acquisition module, used to acquire historical data of the photovoltaic system and a date to be predicted, wherein the historical data at least includes: M historical dates, M historical power generation amounts of the photovoltaic power generation equipment corresponding to the M historical dates, and M historical power consumption amounts of the power consumption equipment corresponding to the M historical dates, wherein M is a positive integer;

[0044] A processing module is used to obtain n similar dates corresponding to the date to be predicted from M historical dates based on a similar day algorithm, calculate the predicted power consumption E of the date to be predicted using the historical power consumption of the n similar dates, and calculate the predicted photovoltaic power generation PV of the date to be predicted based on the pvlib model and historical data, where n is a positive integer;

[0045] The prediction module is used to calculate the carbon emissions C on the date to be predicted using the predicted electricity consumption E and the predicted photovoltaic power generation PV.

[0046] In this embodiment, the “based on the similar day algorithm, obtaining n similar dates corresponding to the date to be predicted from M historical dates, and using the historical power consumption of n similar dates to calculate the predicted power consumption E of the date to be predicted” specifically includes:

[0047] The following operations are performed for any historical date i: Based on the similarity day algorithm, the first similarity δ of the historical date i is obtained. i and the second similarity γ i , the total similarity F i =w δ,i δ i +w γ,i γ i , where wδ,i is the first similarity δ i The weight, w γ,i is the second similarity γ i The weight of, where M and i are both natural numbers, i = 1, 2, ..., M, w δ,i >0,w γ,i >0;

[0048] Sort the M historical dates in descending order of total similarity, and the historical dates with the top n total similarities are similar dates. Among them, F j is the total similarity corresponding to similar day j, E j is the power generation corresponding to the similar day j;

[0049] Get the official forecast electricity consumption G for the forecast date, forecast electricity consumption E = k*E 1 +(1-k)*G, where k is the adjustment coefficient k∈(0, 1).

[0050] Embodiment 3 of the present invention provides a storage medium storing program instructions, which implement the carbon emission prediction method as described in any one of the above items when executed.

[0051] Embodiment 4 of the present invention provides a terminal, including a processor and a memory, wherein the memory stores program instructions, and the processor executes the program instructions to implement the carbon emission prediction method as described in any one of the above items.

[0052] The series of detailed descriptions listed above are only specific descriptions of feasible implementation methods of the present invention. They are not intended to limit the scope of protection of the present invention. Any equivalent implementation methods or changes that do not deviate from the technical spirit of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for predicting carbon emissions of a photovoltaic system, the photovoltaic system comprising: Photovoltaic power generation equipment and power consumption equipment, wherein the power consumption equipment can receive the electric energy generated by the photovoltaic power generation equipment; characterized in that it includes the following steps: Acquire historical data of the photovoltaic system and the date to be predicted, wherein the historical data at least includes: M historical dates, M historical power generation amounts of the photovoltaic power generation equipment corresponding to the M historical dates, and M historical power consumption amounts of the power consumption equipment corresponding to the M historical dates, wherein M is a positive integer; Based on the similar day algorithm, n similar dates corresponding to the date to be predicted are obtained from M historical dates, and the predicted power consumption E of the date to be predicted is calculated using the historical power consumption of n similar dates. The predicted photovoltaic power generation PV of the date to be predicted is calculated based on the pvlib model and historical data, where n is a positive integer. The carbon emissions C on the predicted date are calculated using the predicted electricity consumption E and the predicted photovoltaic power generation PV.

2. The carbon emission prediction method according to claim 1, characterized in that: The "based on the similar day algorithm, obtaining n similar dates corresponding to the date to be predicted from M historical dates, and using the historical power consumption of n similar dates to calculate the predicted power consumption E of the date to be predicted" specifically includes: The following operations are performed for any historical date i: Based on the similarity day algorithm, the first similarity δ of the historical date i is obtained. i and the second similarity γ i , the total similarity F i =w δ, δ i +w γ, γ i , where w δ, is the first similarity δ i The weight, w γ, is the second similarity γ i The weight of, where M and i are both natural numbers, i = 1, 2, ..., M, w δ, >0,w γ, >0; Sort the M historical dates in descending order of total similarity, and the historical dates with the top n total similarities are similar dates. where F j is the total similarity corresponding to similar day j, E j is the power generation corresponding to the similar day j; Get the official forecast electricity consumption G for the forecast date, forecast electricity consumption E = k*E1+(1-k)*G, where k is the adjustment coefficient k∈(0,1).

3. The carbon emission prediction method according to claim 2, characterized in that: The "based on the similarity day algorithm, obtain the first similarity δ of the historical date i i and the second similarity γ i Specifically include: First similarity Among them, β1, β2, β3 are all attenuation coefficients, and the value range of β1, β2, β3 is 0.9~0.98; S i Indicates whether the historical date i is a holiday. If the historical date i is a holiday, S i The value of S is 1. If the historical date i is not a holiday, i The value of is 0; Δx is the number of days between the historical date i and the date to be predicted, N1 = N2 = 7, N3 = 350; Second similarity where ω i is the week type mapping value corresponding to historical date i, ω0 is the week type mapping value corresponding to the date to be predicted, and the "week type mapping value" specifically includes: Monday to Sunday are mapped to 2, 3, 4, 5, 6, 7, 1 respectively.

4. The carbon emission prediction method according to claim 2, characterized in that: The first similarity δ i The weight w δ, and the second similarity γ i The weight w γ, The CRITIC method is used to allocate income.

5. The carbon emission prediction method according to claim 2, characterized in that: The "calculating the predicted photovoltaic power generation PV on the date to be predicted based on the pvlib model and historical data" specifically includes: obtaining the location information and parameter information of the photovoltaic power generation equipment, obtaining the weather data corresponding to M historical dates at the location of the photovoltaic power generation equipment, and processing the location information, the parameter information, M historical power generation and M weather data based on the GFS module, NAM module and ModelChain module in the pvlib model to obtain the predicted photovoltaic power generation PV on the date to be predicted.

6. The carbon emission prediction method according to claim 1, characterized in that: The "calculating the carbon emissions C on the predicted date using the predicted electricity consumption E and the predicted photovoltaic power generation PV" specifically includes: carbon emissions C = E*C elec -PV*C ov , where C elec is the carbon emission factor of electricity, C ov is the carbon emission reduction factor of photovoltaic power generation.

7. A device for predicting carbon emissions of a photovoltaic system, the photovoltaic system comprising: Photovoltaic power generation equipment and power consumption equipment, wherein the power consumption equipment is capable of receiving the electric energy generated by the photovoltaic power generation equipment; characterized in that it comprises the following modules: An information acquisition module, used to acquire historical data of the photovoltaic system and a date to be predicted, wherein the historical data at least includes: M historical dates, M historical power generation amounts of the photovoltaic power generation equipment corresponding to the M historical dates, and M historical power consumption amounts of the power consumption equipment corresponding to the M historical dates, wherein M is a positive integer; A processing module is used to obtain n similar dates corresponding to the date to be predicted from M historical dates based on a similar day algorithm, calculate the predicted power consumption E of the date to be predicted using the historical power consumption of the n similar dates, and calculate the predicted photovoltaic power generation PV of the date to be predicted based on the pvlib model and historical data, where n is a positive integer; The prediction module is used to calculate the carbon emissions C on the date to be predicted using the predicted electricity consumption E and the predicted photovoltaic power generation PV.

8. The carbon emission prediction device according to claim 7, characterized in that: The "based on the similar day algorithm, obtaining n similar dates corresponding to the date to be predicted from M historical dates, and using the historical power consumption of n similar dates to calculate the predicted power consumption E of the date to be predicted" specifically includes: The following operations are performed for any historical date i: Based on the similarity day algorithm, the first similarity δ of the historical date i is obtained. i and the second similarity γ i , the total similarity F i =w δ, δ i +w γ, γ i , where w δ, is the first similarity δ i The weight, w γ, is the second similarity γ i The weight of, where M and i are both natural numbers, i = 1, 2, ..., M, w δ, >0,w γ, >0; Sort the M historical dates in descending order of total similarity, and the historical dates with the top n total similarities are similar dates. where F j is the total similarity corresponding to similar day j, E j is the power generation corresponding to the similar day j; Get the official forecast electricity consumption G for the forecast date, forecast electricity consumption E = k*E1+(1-k)*G, where k is the adjustment coefficient k∈(0,1).

9. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the carbon emission prediction method according to any one of claims 1 to 6 is implemented.

10. A terminal, characterized in that: It includes a processor and a memory, the memory stores program instructions, and is characterized in that the processor runs the program instructions to implement the carbon emission prediction method according to any one of claims 1 to 6.