A green electricity consumption traceability method and device, electronic equipment and storage medium
By collecting electricity time series data and dynamically updating the green electricity tag value using the state of charge of energy storage devices, verifiable green electricity consumption certificates are generated, solving the problems of coarse time accuracy and unverifiable authenticity of green electricity consumption certification in existing technologies, and realizing hourly traceability of green electricity consumption.
Patent Information
- Application Number
- CN202611541198.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-30
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies cannot achieve hourly traceability of green electricity consumption, lack real-time consumption proof at the physical level, and third parties cannot verify the authenticity of green electricity consumption. The existing green certificate system cannot distinguish between genuine green electricity consumption and the use of thermal power after purchasing green certificates.
By synchronously collecting multiple power time series data, using the state of charge of energy storage devices as a carrier, the green electricity tag value of energy storage is dynamically updated, the green electricity consumption ratio is determined based on the net green electricity absorption power and green electricity consumption, verifiable green electricity consumption certificates are generated, and their digital digest values are written into the evidence storage service.
It enables hourly traceability of green electricity consumption, provides real-time consumption proof at the physical level, and can be independently verified by third parties, thus improving the time accuracy and authenticity of green electricity consumption certification.
Smart Images

Figure CN123144083A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of green electricity consumption certification technology, and more specifically, to a green electricity consumption traceability method, device, electronic device, and storage medium. Background Technology
[0002] With the deepening of the East-West Data Center project and the implementation of dual-carbon goals, the transparency and credibility of green electricity consumption by data centers, as high-energy-consuming loads, are subject to increasingly stringent regulatory requirements and market demands. In the scenario of computing-power collaboration (i.e., the collaborative optimization of data center computing load scheduling and power system operation status), the time-dimensional matching relationship between computing load and renewable energy output directly determines the authenticity of green electricity consumption. This necessitates the evolution of green electricity consumption certification from long-term power matching to hourly-level time matching.
[0003] Currently, in the green electricity consumption certification process, mainstream green certificate systems adopt an annual or monthly electricity matching model. Even if a data center purchases sufficient annual green certificates, it cannot prove that the computing load for a specific hour is indeed driven by green electricity. Furthermore, existing green certificates (such as GEC and I-REC) are essentially accounting tools; one electronic certificate corresponds to 1 MWh of renewable energy generation, without being linked to real-time physical consumption evidence. Third-party auditing institutions cannot distinguish between genuine green electricity consumption and situations where green certificates have been purchased but thermal power is actually used. Meanwhile, the state-of-charge curves of energy storage devices deployed in data centers completely record the time series of energy inflow and outflow, constituting natural physical evidence. However, current technology does not utilize this physical information for green electricity consumption certification, and there is currently no engineered hourly-level green electricity traceability solution in the domestic data center field, resulting in the inability to independently verify the authenticity of green electricity consumption by a third party. Summary of the Invention
[0004] In view of this, the purpose of this application is to provide a method, apparatus, electronic device and storage medium for tracing green electricity consumption, so as to overcome at least one of the above-mentioned defects.
[0005] In a first aspect, embodiments of this application provide a method for tracing the source of green electricity consumption, including: Multiple power time series data are collected synchronously with a fixed sampling period. These data include the output power of new energy sources, the power received by the grid, the power load of computing power, the state of charge and charging / discharging power of energy storage devices. Based on the power output of new energy sources, the power received by the grid, the charging and discharging power, and the computing load power, the net green electricity consumption power within the preset statistical window is determined. The net green electricity consumption power includes the direct consumption component supplied directly to the computing load by the power output of new energy sources and the indirect consumption component indirectly consumed through the charging and discharging of energy storage devices. The energy storage green electricity label value of the energy storage device is established based on the state of charge. The energy storage green electricity label value is dynamically updated according to the state of charge and the charging and discharging power. The energy storage green electricity label value represents the proportion of green electricity in the energy currently stored by the energy storage device. For each preset statistical window, the green electricity consumption within the preset statistical window is determined based on the net green electricity absorption capacity, the total electricity consumption within the preset statistical window is determined based on the computing power load capacity, and the green electricity consumption ratio is determined based on the ratio of green electricity consumption to total electricity consumption. The proportion of green electricity consumption is compared with a preset matching threshold. Based on the comparison result, a green electricity consumption certificate corresponding to the preset statistical window is generated. The digital digest value in the green electricity consumption certificate is written into the evidence storage service to verify the tampering of the green electricity consumption certificate based on the digital digest value.
[0006] In an optional implementation, the step of dynamically updating the energy storage green electricity tag value based on the state of charge and charging / discharging power includes: when the energy storage device is charging, determining a first product corresponding to the energy storage green electricity tag value and the state of charge before charging, and a second product corresponding to the green electricity charging power and the charging time, wherein the green electricity charging power is determined based on the power output of new energy sources and the computing power load power; determining the ratio of the sum of the first product and the second product to the state of charge after charging as the energy storage green electricity tag value after charging; when the energy storage device is discharging, the energy storage green electricity tag value remains unchanged; when the state of charge is zero, the energy storage green electricity tag value is reset to zero.
[0007] In an optional implementation, the step of determining the net green electricity consumption power within a preset statistical window based on the power output of new energy sources, the power received by the grid, the charging and discharging power, and the computing power load power includes: within the preset statistical window, determining the load coverage power by summing the difference between the computing power load power and the power received by the grid with the charging and discharging power; comparing the load coverage power with the power output of new energy sources, and determining the net green electricity consumption power within the preset statistical window based on the comparison result.
[0008] In an optional implementation, the step of comparing the green electricity consumption ratio with a preset matching threshold and generating a green electricity consumption certificate corresponding to the preset statistical window based on the comparison result includes: generating a green electricity consumption certificate when the green electricity consumption ratio is greater than or equal to the preset matching threshold; generating a partial green electricity consumption certificate when the green electricity consumption ratio is less than the preset matching threshold, and marking the actual green electricity consumption ratio in the partial green electricity consumption certificate.
[0009] In an optional implementation, the green electricity consumption certificate also includes at least one of the following: the state of charge value of the energy storage device at the start and end times of the preset statistical window, the energy storage green electricity tag value of the energy storage device at the start and end times of the preset statistical window, the type and composition of new energy sources within the preset statistical window, and the digital signature of each data source.
[0010] In an optional implementation, the method further includes: aggregating the digital digest values of green electricity consumption certificates for each of multiple preset statistical windows to obtain a root digital digest value; and writing the root digital digest value into the blockchain to verify the green electricity consumption certificate within a single preset statistical window based on the digest value path.
[0011] In an optional implementation, the method further includes: performing cross-validation on multiple power time series data based on power balance constraints; wherein, the cross-validation includes: determining the total supply power based on the power output of new energy sources, the power received by the grid, the charging and discharging power, and the transmission loss power, and determining the difference between the computing load power and the total supply power as the power deviation; when the absolute value of the power deviation is greater than a preset tolerance, the data at the corresponding time is marked as abnormal, and the abnormal period is marked in the green electricity consumption certificate in the corresponding preset statistical window.
[0012] Secondly, embodiments of this application also provide a green electricity consumption traceability device, the device comprising: The data acquisition module is used to synchronously acquire multiple power time series data at a fixed sampling period. The multiple power time series data include the output power of new energy sources, the power received by the grid, the power load of computing power, the state of charge and charging and discharging power of energy storage devices. The power absorption calculation module is used to determine the net green electricity absorption power within a preset statistical window based on the power output of new energy sources, the power received by the grid, the charging and discharging power, and the computing load power. The net green electricity absorption power includes the direct absorption component that is directly supplied to the computing load by the power output of new energy sources, and the indirect absorption component that is indirectly absorbed through the charging and discharging of energy storage devices. The tag update module is used to establish the energy storage green electricity tag value of the energy storage device based on the state of charge. The energy storage green electricity tag value is dynamically updated according to the state of charge and the charging and discharging power. The energy storage green electricity tag value represents the proportion of green electricity in the energy currently stored by the energy storage device. The consumption ratio determination module is used to determine the green electricity consumption within each preset statistical window based on the net green electricity absorption capacity, determine the total electricity consumption within the preset statistical window based on the computing power load capacity, and determine the green electricity consumption ratio based on the ratio of green electricity consumption to total electricity consumption. The consumption certificate generation module is used to compare the proportion of green electricity consumption with a preset matching threshold, generate a green electricity consumption certificate corresponding to the preset statistical window based on the comparison result, and write the digital digest value in the green electricity consumption certificate into the evidence storage service to verify the green electricity consumption certificate against tampering based on the digital digest value.
[0013] Thirdly, embodiments of this application also provide an electronic device, including: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the steps of the green electricity consumption traceability method described above are performed.
[0014] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the green electricity consumption traceability method described above.
[0015] The embodiments of this application bring the following beneficial effects: This application provides a method for tracing green electricity consumption, comprising: synchronously collecting multiple power time series data at a fixed sampling period, the multiple power time series data including renewable energy output power, grid input power, computing load power, and the state of charge and charging / discharging power of energy storage devices; determining the net green electricity consumption power within a preset statistical window based on renewable energy output power, grid input power, charging / discharging power, and computing load power; establishing a green electricity storage tag value for energy storage devices using the state of charge as a carrier, and dynamically updating the green electricity storage tag value using the state of charge and charging / discharging power; for each preset statistical window, determining the green electricity consumption based on the net green electricity consumption power, determining the total electricity consumption based on the computing load power, and determining the green electricity consumption ratio based on the ratio of green electricity consumption to total electricity consumption; comparing the green electricity consumption ratio with a preset matching threshold, generating a green electricity consumption certificate corresponding to the preset statistical window based on the comparison result, writing the digital digest value of the green electricity consumption certificate into a notarization service, and verifying the green electricity consumption certificate by tampering based on the digital digest value.
[0016] The green electricity consumption traceability method provided in this application can dynamically mark the proportion of green electricity in the energy storage energy using the state of charge of the energy storage device as a carrier, and use the physically measurable state of charge curve as physical evidence of green electricity consumption. This improves the time accuracy of green electricity consumption certification from annual or monthly to hourly. Compared with the existing green electricity consumption traceability methods, this method solves the problems of the existing certification system lacking real-time consumption proof at the physical level, having coarse time matching accuracy, and being unable to independently verify the authenticity of green electricity consumption by a third party.
[0017] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0018] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 A flowchart of the green electricity consumption traceability method provided in an embodiment of this application is shown; Figure 2 This illustration shows a schematic diagram of multiple power time series data provided in an embodiment of this application; Figure 3 A schematic diagram of the state of charge change provided in the embodiments of this application is shown; Figure 4 A schematic diagram illustrating the dynamic updating process of the energy storage green electricity tag value provided in the embodiments of this application is shown; Figure 5 A schematic diagram of the green electricity consumption traceability device provided in an embodiment of this application is shown; Figure 6 A schematic diagram of the structure of the electronic device provided in the embodiments of this application is shown. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. Based on the embodiments of this application, every other embodiment obtained by those skilled in the art without inventive effort falls within the scope of protection of this application.
[0021] In computing-power collaboration scenarios, the temporal matching relationship between the data center's computing load and renewable energy output directly determines the authenticity of its green electricity consumption. The core components involved include power meters at renewable energy sites, power grid gateway meters, energy storage devices and their local controllers, and data center energy management systems. In related technologies, green electricity consumption certification is typically achieved through annual or monthly electricity matching. This involves using electronic certificates such as Green Energy Certificates (GEC) or International Renewable Energy Certificates (I-REC) to correspond to a certain amount of renewable energy generation, which is then periodically offset against the data center's total electricity consumption.
[0022] However, the above methods have the following drawbacks: First, the time matching accuracy is coarse, and annual or monthly electricity matching cannot prove that the computing load for a specific hour is indeed driven by green electricity; Second, there is a lack of physical consumption proof, as electronic vouchers are not linked to real-time physical consumption evidence, and third-party auditing agencies cannot distinguish between genuine green electricity consumption and the purchase of green certificates for actual use of thermal power; Third, the physical state information of energy storage devices is not utilized. The state of charge curve of energy storage devices fully records the time series of energy inflow and outflow, which is natural physical evidence, but existing technologies have not incorporated it into the green electricity consumption certification chain.
[0023] Based on the above problems, this application provides a green electricity consumption traceability method, which can determine the net green electricity consumption power and the proportion of green electricity consumption in a preset statistical window, and realize hourly green electricity consumption traceability that can be independently verified by a third party.
[0024] To facilitate understanding of this embodiment, the following describes each of the exemplary steps provided in this embodiment, taking the green electricity consumption traceability method provided in this application as an example applied to a computing and power collaborative data center.
[0025] Please see Figure 1 , Figure 1 This is a flowchart illustrating a method for tracing green electricity consumption provided in an embodiment of this application. Figure 1 As shown in the embodiments of this application, the green electricity consumption traceability method includes: Step S101: Simultaneously collect multiple power time series data at a fixed sampling period; Step S102: Based on the power output of new energy sources, the power received by the grid, the charging and discharging power, and the computing power load power, determine the net green electricity consumption power within the preset statistical window; Step S103: Establish the energy storage green electricity tag value of the energy storage device based on the state of charge, and dynamically update the energy storage green electricity tag value according to the state of charge and the charging and discharging power. Step S104: For each preset statistical window, determine the green electricity consumption within the preset statistical window based on the net green electricity absorption power, determine the total electricity consumption within the preset statistical window based on the computing power load power, and determine the green electricity consumption ratio based on the ratio of green electricity consumption to total electricity consumption. Step S105: Compare the green electricity consumption ratio with a preset matching threshold, generate a green electricity consumption certificate corresponding to the preset statistical window based on the comparison result, and write the digital digest value of the green electricity consumption certificate into the evidence storage service to verify the tampering of the green electricity consumption certificate based on the digital digest value.
[0026] The data includes multiple power time series data such as renewable energy output power, grid input power, computing load power, state of charge and charging / discharging power of energy storage devices; net green electricity consumption power includes the direct consumption component supplied directly to computing load by renewable energy output, and the indirect consumption component indirectly consumed through the charging and discharging of energy storage devices; green electricity consumption proof includes digital digest values; and energy storage green electricity tag values characterize the proportion of green electricity in the energy currently stored by energy storage devices.
[0027] The green electricity consumption traceability method provided in this application establishes and dynamically updates the green electricity tag value of energy storage based on the state of charge of the energy storage device. The proportion of green electricity absorbed by the energy storage device during charging is traced back to the computing load according to the proportion during discharging. The net green electricity consumption power, green electricity consumption and green electricity consumption ratio are determined in units of preset statistical windows. This can improve the time accuracy of green electricity consumption certification from annual or monthly to hourly and make the green electricity consumption process have physical and tamper-proof evidence. This solves the problems of the existing green electricity consumption certification system lacking real-time physical consumption proof and having coarse time matching accuracy.
[0028] In step S101, multiple power time series data are collected synchronously with a fixed sampling period.
[0029] Multiple power time series data include power output series from new energy sources, power input series from the power grid, power load series from computing power, state of charge series of energy storage devices, and charging and discharging power series.
[0030] The new energy output power sequence includes the new energy output power P_renew(t) at different times; the grid input power sequence includes the grid input power P_grid(t) at different times; the computing load power sequence includes the computing load power P_load(t) at different times; the energy storage device state of charge sequence includes the state of charge SOC_fly(t) at different times; and the charge and discharge power sequence includes the charge and discharge power P_fly(t) at different times.
[0031] Among them, the new energy output power P_renew(t) is the real-time active power output of new energy power plants such as wind power and photovoltaic power plants, which can be provided by the power meter on the power plant side or the Supervisory Control and Data Acquisition (SCADA) system; the grid input power is the active power received by the data center from the grid, which can be provided by the gateway electricity meter; the computing load power is the total active power of the computing equipment in the data center, which can be provided by the data center energy management system (EMS); the state of charge and charging / discharging power of the energy storage device can be reported by the local controller of the energy storage device, wherein the charging / discharging power is positive for discharging and negative for charging.
[0032] The fixed sampling period can be set according to the characteristics of the data source, and its value range can be from 1 second to 60 seconds.
[0033] In this embodiment of the application, multiple power time series data can be labeled with timestamps, with the timestamps accurate to the millisecond level, and all data sources uniformly adopt Coordinated Universal Time (UTC).
[0034] Then, multiple power time series data from different data sources are aligned based on timestamps to ensure that the time alignment accuracy across data sources does not exceed 100 milliseconds. For example, time synchronization of each data source is performed through a Network Time Protocol (NTP) time synchronization server to ensure that the time deviation between each data source does not exceed 100 milliseconds.
[0035] Finally, the time-aligned power time series data are stored according to the data source identifier for subsequent steps such as green electricity consumption power calculation, tag value update and cross-validation.
[0036] The following reference Figure 2 This section will introduce several power time series data.
[0037] Figure 2 This illustration shows a schematic diagram of multiple power time series data provided in an embodiment of this application, such as... Figure 2As shown in the figure, the graph illustrates example waveforms of four types of electricity time series data within a typical day, along with the trigger points for generating green electricity consumption proofs. From top to bottom, the electricity time series data are: renewable energy output power series, grid input power series, computing power load power series, and charging / discharging power series. During periods of abundant renewable energy output (e.g., 10:00 to 16:00), renewable energy output power exceeds computing power load power, and energy storage devices enter a charging state. The state of charge and the energy storage green electricity label value subsequently increase, indicating that the energy stored in the energy storage devices is primarily green electricity. During periods of insufficient renewable energy output (e.g., 18:00 to 23:00), energy storage devices enter a discharging state, and their discharged energy is traced back to green electricity according to the energy storage green electricity label value, thus significantly increasing the proportion of green electricity consumption during this period. Figure 2 The preset statistical window (hourly level) marked by the middle shade is the period when the proportion of green electricity consumption reaches the preset matching threshold and triggers the generation of green electricity consumption proof.
[0038] In step S102, the net green electricity consumption power within a preset statistical window is determined based on the power output of new energy sources, the power received by the grid, the charging and discharging power, and the computing load power.
[0039] Specifically, the preset statistical window is the time window for statistically analyzing green electricity consumption. The window length can be set according to the certification accuracy requirements. For example, if the window length T is set to 3600 seconds, the statistics are performed based on natural hours.
[0040] Net green electricity consumption includes the direct consumption component, which is supplied directly to computing loads by renewable energy output, and the indirect consumption component, which is consumed indirectly through the charging and discharging of energy storage devices. The direct consumption component refers to the portion of green electricity or power consumed by computing loads at any given time, generated by renewable energy sources without passing through energy storage devices. The indirect consumption component refers to the portion of green electricity stored in energy storage devices during periods of surplus renewable energy output, which is then discharged by the energy storage devices to supply computing loads during subsequent periods of insufficient renewable energy output. This portion of green electricity stored first and then used is the indirect consumption component.
[0041] When determining the net green electricity consumption power, the difference between the computing power load power and the grid power received can be summed with the charging and discharging power within a preset statistical window to determine the load coverage power. The load coverage power is then compared with the power output of new energy sources. Based on the comparison results, the net green electricity consumption power within the preset statistical window is determined. That is, the net green electricity consumption power does not exceed the power output of new energy sources, nor does it exceed the portion of the computing power load power that is not covered by the grid power received.
[0042] Net green energy absorption capacity is denoted as: The formula for calculating net green energy consumption capacity is: In the above formula, Power output for new energy sources For computing power load power, Power received by the power grid This refers to the charging and discharging power of the energy storage device.
[0043] As can be seen from the formula for calculating net green electricity consumption, net green electricity consumption is limited by the physical upper limit of renewable energy output power, and only the portion of computing power load not covered by the grid's power input is counted as green electricity consumption, thereby avoiding the repeated counting of renewable energy power transmitted to the grid as green electricity consumption.
[0044] For indirect consumption components, when the energy storage device is in a charging state (i.e. When the energy storage device is in a state of discharge (i.e., less than zero) and the charging power comes from new energy sources, this portion of energy is recorded in step S103 by increasing the energy storage green electricity tag value, and is traced back as green electricity during subsequent discharge; when the energy storage device is in a state of discharge (i.e., When the value is greater than zero, the discharge power of the energy storage device is used to supplement the power gap of the computing load. The proportion of green electricity in the discharge energy is determined by the green electricity label value of the energy storage, and this part constitutes the indirect consumption component.
[0045] For example: at a certain statistical moment, the power output of new energy sources is 120,000 kW, the computing load power is 162,000 kW, the grid input power is 30,000 kW, and the charging and discharging power of energy storage devices is... 36000kW (charging), then the load coverage power is The larger value between 0 and 96000kW is then compared with 120000kW, resulting in a net green energy absorption capacity of 96000kW.
[0046] In step S103, the energy storage green electricity tag value of the energy storage device is established based on the state of charge, and the energy storage green electricity tag value is dynamically updated according to the state of charge and the charging and discharging power.
[0047] The energy storage green electricity label is a continuous variable established based on the state of charge of the energy storage device. Its value range is [0,1]. The energy storage green electricity label is used to characterize the proportion of green electricity in the energy currently stored by the energy storage device.
[0048] The green electricity label value for energy storage uses a physically measurable state of charge as a carrier, which enables the proportion of green electricity inside the energy storage device to be dynamically tracked during the charging and discharging process, thereby solving the problems of mixed energy sources when the energy storage device is charged and the ambiguous ownership of green electricity when discharging.
[0049] In one embodiment, the dynamic update of the energy storage green electricity tag value includes three cases: charging, discharging, and zero state of charge.
[0050] In one scenario, during charging, the energy storage device can determine the first product of the green electricity tag value and the state of charge before charging, and the second product of the green electricity charging power and the charging time. The ratio of the sum of the first and second products to the state of charge after charging is then used as the green electricity tag value after charging. The green electricity charging power is determined based on the power output of new energy sources and the computing load power.
[0051] For example, the dynamic update of the energy storage green electricity tag value can be determined according to the following formula: .in, Let be the state of charge of the energy storage device at time t. Let be the energy storage green electricity tag value of the energy storage device at time t. Power for charging green electricity This refers to the charging time.
[0052] Green electricity charging power is the portion of charging power derived from renewable energy sources, and can be determined by the following formula: ,in, This is the absolute value of the charging power for energy storage devices. This formula is used to characterize the portion of the remaining power from new energy sources after meeting computing load requirements that is actually used for charging as green electricity charging power.
[0053] In another scenario, when the energy storage device discharges, the green electricity label value remains unchanged. That is, the discharge does not change the green electricity label ratio of the remaining energy storage, and the proportion of green electricity in the discharged energy is traced back according to the green electricity label value of the energy storage. In the third case, when the state of charge is zero, the energy storage green electricity tag value is reset to zero to avoid the energy from the previous charging and discharging cycle being left over to the next cycle.
[0054] The following reference Figure 3 and Figure 4 This section will introduce the dynamic update process of the green electricity tag value for energy storage.
[0055] Figure 3 A schematic diagram of the state of charge change provided in an embodiment of this application is shown, as follows: Figure 3 As shown, the horizontal axis represents time, and the vertical axis represents the state of charge. (Unit: %). In the green electricity charging phase, the flywheel absorbs excess green electricity, and its state of charge (SOC) continuously increases from its initial value until it reaches 100%, at which point it enters the standby holding phase, where the SOC remains constant. Subsequently, it enters the discharging phase, where the flywheel releases electrical energy to supply computing power loads, and the SOC decreases. When the discharge reaches 25%, it stops discharging, and the flywheel's SOC remains unchanged at that level.
[0056] Figure 4 This illustration shows a schematic diagram of the dynamic update process of the energy storage green electricity tag value provided in an embodiment of this application, such as... Figure 4 As shown, during the green electricity charging phase, the green electricity label value of the energy storage device increases weighted according to the green electricity charging power, rising from a relatively low proportion before charging to close to 1; during the discharging phase, the green electricity label value of the energy storage device remains unchanged; when the state of charge reaches zero, the green electricity label value of the energy storage device is reset to zero. This mechanism enables the energy storage device to accurately distinguish the proportion of green electrical energy to other energy sources after multiple rounds of charging and discharging.
[0057] The above-described implementation method for establishing green electricity tag values for energy storage based on state of charge is not limited to flywheel energy storage devices. In other embodiments, for other types of energy storage devices such as lithium battery energy storage devices, compressed air energy storage devices, and pumped hydro storage devices, the same method is used to establish and dynamically update green electricity tag values based on their state of charge or equivalent energy storage state, thereby tracking the proportion of green electricity belonging to the energy storage device.
[0058] In step S104, for each preset statistical window, the green electricity consumption within the preset statistical window is determined based on the net green electricity absorption power, the total electricity consumption within the preset statistical window is determined based on the computing power load power, and the green electricity consumption ratio is determined based on the ratio of green electricity consumption to total electricity consumption.
[0059] Specifically, for each natural hour j (each natural hour is a preset statistical window), the green electricity consumption is the integral of the net green electricity absorption capacity within that natural hour, and the green electricity consumption is denoted as: ,Right now .
[0060] Total electricity consumption is the integral of computing power load power within that natural hour, and is denoted as: ,Right now .
[0061] Green electricity consumption ratio This is the ratio of green electricity consumption to total electricity consumption, i.e. .
[0062] Among them, the proportion of green electricity consumption per natural hour j This characterizes the degree to which the computing load within the preset statistical window j is driven by green electricity. Its value ranges from [0,1]. The higher the value, the more fully the green electricity is consumed within the window.
[0063] The method for determining the proportion of green electricity consumption is as follows: the proportion of green electricity consumption is compared with a preset matching threshold, and the comparison result determines the generation method of green electricity consumption certificate corresponding to the preset statistical window.
[0064] In step S105, the proportion of green electricity consumption is compared with a preset matching threshold. Based on the comparison result, a green electricity consumption certificate corresponding to the preset statistical window is generated. The digital digest value of the green electricity consumption certificate is written into the evidence storage service to verify the tampering of the green electricity consumption certificate based on the digital digest value.
[0065] The preset matching threshold is the threshold value for determining whether green electricity consumption meets the target. It can be set according to the green electricity consumption target. For example, the preset matching threshold is set to 95%.
[0066] The green electricity consumption certificate is an electronic credential used to represent the green electricity consumption within a preset statistical window. Its digital digest value is calculated based on the original data within the preset statistical window. Therefore, any modification to the original data will cause the digital digest value to change, thus making the consumption certificate verifiable.
[0067] Proof of green electricity consumption includes at least one of the following: a digital digest value (proof number), a statistical period, green electricity consumption / total electricity consumption, the proportion of green electricity consumption, the type and composition of new energy sources within a preset statistical window (e.g., the proportion of wind power, photovoltaic power, and energy storage discharge), the state of charge value of the energy storage device at the start and end of the preset statistical window, the green electricity tag value of the energy storage device at the start and end of the preset statistical window, and the digital signatures of each data source. The above information together constitutes the physical evidence chain of green electricity consumption, which third parties can use to cross-verify the authenticity of green electricity consumption.
[0068] In one embodiment, when generating green electricity consumption certificates, if the green electricity consumption ratio is greater than or equal to a preset matching threshold, a green electricity consumption certificate corresponding to the preset statistical window is generated; if the green electricity consumption ratio is greater than zero and less than the preset matching threshold, a partial green electricity consumption certificate is generated, and the actual green electricity consumption ratio is marked in the partial green electricity consumption certificate; if the green electricity consumption ratio is zero, no green electricity consumption certificate is generated. The green electricity consumption certificates are output in JSON format with an appended root digital digest value to achieve batch verification.
[0069] Taking cloudy or overcast days as an example, when the output of new energy sources is lower than expected, the energy storage device releases the energy stored during the day and marked as green electricity to supplement the power gap of the computing load. Since the energy stored in the energy storage device has a high proportion of green electricity, the proportion of its discharged energy that can be traced back to green electricity is correspondingly high, thus maintaining a certain proportion of green electricity consumption even during periods of insufficient new energy output. When the proportion of green electricity consumption in this preset statistical window is less than the preset matching threshold but greater than zero, a partial green electricity consumption certificate is generated and the actual green electricity consumption proportion is marked in it; when the proportion of green electricity consumption is zero, no green electricity consumption certificate is generated.
[0070] It is evident that energy storage devices are equivalent to charging with green electricity when renewable energy output is sufficient, and releasing green-labeled energy when renewable energy output is insufficient, thus smoothing the distribution of green electricity consumption over time.
[0071] The evidence storage service can be based on blockchain or a trusted timestamp service. After the digital digest value is written to the evidence storage service, a third party can verify the green electricity consumption certificate by recalculating the digital digest value of the green electricity consumption certificate and comparing it with the digital digest value of the stored certificate. If the two match, it means that the green electricity consumption certificate has not been tampered with.
[0072] A digital digest value is a fixed-length string calculated using a one-way hash algorithm, taking all or key fields of a green electricity consumption certificate as input. Any modification to the original data will result in a completely different recalculated digital digest value. For example, a digital digest value can refer to a hash value.
[0073] In one example, after determining the green electricity consumption proof, the digital digest values of the green electricity consumption proofs of multiple preset statistical windows can be aggregated to obtain the root digital digest value, and the root digital digest value can be written into the blockchain to verify the green electricity consumption proof within a single preset statistical window according to the digest value path.
[0074] Aggregation can be achieved using tree-like aggregation structures such as Merkle trees, where the digital digest values of each green electricity consumption certificate are aggregated layer by layer to the root of the tree, with each leaf node serving as a leaf node. In this way, green electricity consumption certificates from multiple preset statistical windows only need to be uploaded to the blockchain once using the root digital digest value for batch storage and verification. The authenticity of any green electricity consumption certificate can be independently verified through the path of its digital digest value within the aggregation structure, without needing to upload all the original data to the blockchain, thus balancing storage efficiency and verifiability.
[0075] For example, the root digital digest value can refer to the Merkle root digital digest value. The digital digest values of the green electricity consumption certificates from 24 preset statistical windows are aggregated to form a Merkle root digital digest value. The entire set of green electricity consumption certificates can be stored by simply putting them on the blockchain once.
[0076] In one embodiment, multiple power time series data can also be subjected to data anomaly detection to identify sensor failures, communication packet loss, or data tampering, thereby further enhancing the credibility of the proof.
[0077] Specifically, cross-validation is performed on multiple power time series data based on power balance constraints; the total supply power is determined based on the output power of new energy sources, the power received by the grid, the charging and discharging power, and the transmission loss power, and the difference between the computing load power and the total supply power is determined as the power deviation; when the absolute value of the power deviation is greater than the preset tolerance, the data at the corresponding time is marked as abnormal, and the abnormal period and reason are marked in the green electricity consumption certificate in the corresponding preset statistical window.
[0078] Power deviation is denoted as: Then the power deviation It can be calculated using the following formula: ,in, This is the transmission loss power estimated based on line and transformer parameters; the preset tolerance can be determined based on the accuracy of each data source, for example, taking twice the sum of the accuracies of all data sources (sensors). This cross-validation utilizes the physical constraints of power balance to identify sensor failures, communication packet loss, or data tampering, further enhancing the credibility of green electricity consumption certificates.
[0079] The green electricity consumption traceability method provided in this application can be divided into three layers: a physical sensing layer, a green electricity marking layer, and a trusted evidence storage layer. The physical sensing layer consists of power meters at new energy power plants, grid-connected energy meters, local controllers for energy storage devices, and a data center energy management system. It is responsible for synchronously collecting data on new energy output power, grid input power, computing load power, the state of charge (SOC) of energy storage devices, and charging / discharging power at a fixed sampling period, and completing millisecond-level timestamp labeling and time alignment. The green electricity marking layer establishes and dynamically updates the green electricity marking value of energy storage devices based on the SOC. It traces the proportion of green electricity absorbed by the energy storage device during charging to the computing load proportionally during discharging, and then determines the net green electricity consumption power, green electricity consumption, and green electricity consumption ratio using a preset statistical window as a unit. The trusted evidence storage layer generates a green electricity consumption certificate based on the comparison result between the green electricity consumption ratio and a preset matching threshold, and aggregates the digital digest value of the green electricity consumption certificate before writing it into a blockchain or a trusted timestamp service. The three levels mentioned above work together to form an end-to-end trusted closed loop from physical evidence and dynamic marking to on-chain evidence storage, enabling the authenticity of green electricity consumption to be independently verified by a third party.
[0080] Based on the same inventive concept, this application also provides a green electricity consumption traceability device corresponding to the green electricity consumption traceability method. Since the principle of the device in this application is similar to the green electricity consumption traceability method described above in this application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.
[0081] Please see Figure 5 , Figure 5 This is a schematic diagram of a green electricity consumption traceability device provided in an embodiment of this application. Figure 5 As shown, the green electricity consumption traceability device 200 includes: Data acquisition module 201 is used to synchronously acquire multiple power time series data at a fixed sampling period. The multiple power time series data include the output power of new energy sources, the power received by the grid, the power load of computing power, the state of charge and charging and discharging power of energy storage devices. The power absorption calculation module 202 is used to determine the net green electricity absorption power within a preset statistical window based on the power output of new energy sources, the power received by the grid, the charging and discharging power, and the computing load power. The tag update module 203 is used to establish the energy storage green electricity tag value of the energy storage device based on the state of charge, and to dynamically update the energy storage green electricity tag value according to the state of charge and the charging and discharging power. The consumption ratio determination module 204 is used to determine the green electricity consumption within each preset statistical window based on the net green electricity absorption power, determine the total electricity consumption within the preset statistical window based on the computing power load power, and determine the green electricity consumption ratio based on the green electricity consumption and the total electricity consumption. The consumption certificate generation module 205 is used to compare the green electricity consumption ratio with a preset matching threshold, generate a green electricity consumption certificate corresponding to the preset statistical window based on the comparison result, and write the digital digest value of the green electricity consumption certificate into the evidence storage service to verify the green electricity consumption certificate against tampering based on the digital digest value.
[0082] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 6 As shown, the electronic device 300 includes a processor 310, a memory 320, and a bus 330.
[0083] The memory 320 stores machine-readable instructions executable by the processor 310. When the electronic device 300 is running, the processor 310 and the memory 320 communicate via the bus 330. When the machine-readable instructions are executed by the processor 310, they can perform the operations described above. Figure 1 The steps of the green electricity consumption traceability method in the illustrated method embodiment can be found in the method embodiment for specific implementation methods, which will not be repeated here.
[0084] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can perform the above-described actions. Figure 1 The steps of the green electricity consumption traceability method in the illustrated method embodiment can be found in the method embodiment for specific implementation methods, which will not be repeated here.
[0085] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0086] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0087] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0088] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0089] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0090] Finally, it should be noted that the above-described embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The scope of protection of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this application. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for tracing the source of green electricity consumption, characterized in that, include: Multiple power time series data are collected synchronously at a fixed sampling period. The multiple power time series data include the output power of new energy sources, the power received by the grid, the computing load power, the state of charge of energy storage devices, and the charging and discharging power. Based on the power output of the new energy source, the power received by the power grid, the charging and discharging power, and the computing power load power, the net green electricity consumption power within a preset statistical window is determined. The net green electricity consumption power includes the direct consumption component supplied directly to the computing power load by the power output of the new energy source and the indirect consumption component indirectly consumed through the charging and discharging of the energy storage device. The energy storage green electricity label value of the energy storage device is established based on the state of charge. The energy storage green electricity label value is dynamically updated according to the state of charge and the charging and discharging power. The energy storage green electricity label value represents the proportion of green electricity in the energy currently stored by the energy storage device. For each preset statistical window, the green electricity consumption within the preset statistical window is determined based on the net green electricity absorption power, the total electricity consumption within the preset statistical window is determined based on the computing power load power, and the green electricity consumption ratio is determined based on the ratio of the green electricity consumption to the total electricity consumption. The green electricity consumption ratio is compared with a preset matching threshold. Based on the comparison result, a green electricity consumption certificate corresponding to the preset statistical window is generated. The digital digest value in the green electricity consumption certificate is written into the evidence storage service to verify the tampering of the green electricity consumption certificate based on the digital digest value.
2. The method according to claim 1, characterized in that, The step of dynamically updating the energy storage green electricity label value based on the state of charge and the charging / discharging power includes: When the energy storage device is being charged, a first product of the energy storage green electricity tag value and the state of charge before charging and a second product of the green electricity charging power and the charging time are determined, wherein the green electricity charging power is determined based on the power output of the new energy source and the computing power load power. The ratio of the sum of the first product and the second product to the state of charge after charging is determined as the green electricity tag value of the energy storage after charging. When the energy storage device discharges, the energy storage green electricity mark value remains unchanged; When the state of charge is zero, the energy storage green electricity flag value is reset to zero.
3. The method according to claim 1, characterized in that, The step of determining the net green electricity consumption power within a preset statistical window based on the power output of the new energy source, the power received by the grid, the charging and discharging power, and the computing power load power includes: Within the preset statistical window, the sum of the difference between the computing power load power and the power received by the power grid and the charging and discharging power is determined as the load coverage power; The load coverage power is compared with the new energy output power, and the net green electricity consumption power within the preset statistical window is determined based on the comparison result.
4. The method according to claim 1, characterized in that, The step of comparing the green electricity consumption ratio with a preset matching threshold and generating a green electricity consumption certificate corresponding to the preset statistical window based on the comparison result includes: When the green electricity consumption ratio is greater than or equal to a preset matching threshold, a hotel consumption certificate is directly generated; When the green electricity consumption ratio is less than the preset matching threshold, a partial green electricity consumption certificate is generated, and the actual green electricity consumption ratio is marked in the partial green electricity consumption certificate.
5. The method according to claim 1, characterized in that, The green electricity consumption certificate also includes at least one of the following: The state of charge value of the energy storage device at the start and end times of the preset statistical window, the energy storage green electricity tag value of the energy storage device at the start and end times of the preset statistical window, the type and composition of new energy sources within the preset statistical window, and the digital signature of each data source.
6. The method according to claim 1, characterized in that, The method further includes: The digital digest values of green electricity consumption certificates from multiple preset statistical windows are aggregated to obtain the root digital digest value. The root digital digest value is written into the blockchain to verify the green electricity consumption proof within a single preset statistical window based on the digest value path.
7. The method according to claim 1, characterized in that, Also includes: Cross-validation of the multiple power time series data based on power balance constraints; The cross-validation includes: determining the total supply power based on the power output of the new energy source, the power received by the grid, the charging and discharging power, and the transmission loss power, and determining the difference between the computing power load power and the total supply power as the power deviation; When the absolute value of the power deviation is greater than the preset tolerance, the data at the corresponding time is marked as abnormal, and the abnormal period is marked in the green electricity consumption certificate in the corresponding preset statistical window.
8. A green electricity consumption traceability device, characterized in that, include: The data acquisition module is used to synchronously acquire multiple power time series data at a fixed sampling period. The multiple power time series data include the output power of new energy sources, the power received by the grid, the power load of computing power, the state of charge and charging and discharging power of energy storage devices. The power absorption calculation module is used to determine the net green electricity absorption power within a preset statistical window based on the power output of the new energy source, the power received by the power grid, the charging and discharging power, and the computing power load power. The net green electricity absorption power includes the direct absorption component that is directly supplied to the computing power load by the power output of the new energy source and the indirect absorption component that is indirectly absorbed through the charging and discharging of the energy storage device. The tag update module is used to establish the energy storage green electricity tag value of the energy storage device based on the state of charge, and to dynamically update the energy storage green electricity tag value according to the state of charge and the charging and discharging power. The energy storage green electricity tag value represents the proportion of green electricity in the energy currently stored by the energy storage device. The consumption ratio determination module is used to determine the green electricity consumption within each preset statistical window based on the net green electricity absorption power, determine the total electricity consumption within the preset statistical window based on the computing power load power, and determine the green electricity consumption ratio based on the ratio of the green electricity consumption to the total electricity consumption. The consumption certificate generation module is used to compare the green electricity consumption ratio with a preset matching threshold, generate a green electricity consumption certificate corresponding to the preset statistical window based on the comparison result, and write the digital digest value in the green electricity consumption certificate into the evidence storage service to verify the tampering of the green electricity consumption certificate based on the digital digest value.
9. An electronic device, characterized in that, include: The device includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus, and the processor executes the machine-readable instructions to perform the steps of the green electricity consumption traceability method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the green electricity consumption traceability method as described in any one of claims 1 to 7.
