A data processing method and system for controlling carbon emissions based on new energy

CN123014446APending Publication Date: 2026-10-30TIANJIN CHENYU FUTURE TECHNOLOGY IND DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610946043.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-29
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

[0003]现有技术通常通过采集发电侧、储能侧、负荷侧、电能计量侧及交易侧数据,对碳排放量进行核算与分析,虽能够在一定程度上提升碳排放管理效率,但在实际应用中仍存在易被忽略的技术缺陷:

Benefits of technology

[0026]本发明能够提升多源新能源数据归属准确性与碳排放控制结果稳定性,并兼顾储能转移和结算场景下的一致性处理。本发明通过事件锁定点、局部形变校时及回代修正的配合,对不同时间粒度的数据进行统一校正,降低因采样周期差异、更新时间错位带来的减排归属失真,提高校时结果与能量关系的一致性;通过荷电仓位序列、来源继承片段、物理占用图、结算映射图及闭环冲突删边处理,能够对新能源电量在直供、储转、上网及结算过程中的流转关系进行连续追踪,减少同一电量重复占用和重复计算,使生成的碳排放控制结果更具可追溯性和可靠性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123014446A_ABST
    Figure CN123014446A_ABST
Patent Text Reader

Abstract

The application discloses a data processing method and system for controlling carbon emission based on new energy, which comprises the following steps: collecting new energy output sequence, energy storage power sequence, electric energy metering sequence, power flow direction sequence, switch state sequence, green electricity settlement sequence and carbon emission factor sequence in a target area; extracting event locking points from the new energy output sequence, the energy storage power sequence, the electric energy metering sequence and the switch state sequence; performing local deformation time correction on adjacent data sections according to the event locking points; and performing back substitution correction on the time correction result according to the energy conservation relationship corresponding to the electric energy metering sequence and the power flow direction sequence to obtain a corrected electric quantity segment. The application can improve the multi-source new energy data attribution accuracy and the stability of carbon emission control results, and also takes into account the consistency processing under the energy storage transfer and settlement scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of new energy data processing technology, and in particular to a data processing method and system for controlling carbon emissions based on new energy sources. Background Technology

[0002] With the continuous integration of photovoltaic, wind power, energy storage, charging facilities and key energy loads into industrial parks, the refined control of regional carbon emissions based on the operating status of new energy sources has become an important direction for data governance of new energy projects.

[0003] Existing technologies typically calculate and analyze carbon emissions by collecting data from the generation, storage, load, metering, and trading sides. While this can improve carbon emission management efficiency to some extent, it still has some easily overlooked technical shortcomings in practical applications:

[0004] First, the data sampling cycles and update times of different devices vary significantly. Data from photovoltaic inverters, wind turbine monitoring systems, electricity meters, and carbon emission factors often belong to different time granularities. If only conventional resampling or static alignment methods are used for processing, it is easy to incorrectly attribute the emission reduction effect of renewable energy in one period to other periods, leading to distorted emission reduction assessments. Second, in scenarios where shared energy storage, reverse power flow, and green electricity trading coexist, the same renewable energy power may go through multiple stages such as local consumption, energy storage transfer, and equity settlement. Existing methods often struggle to accurately identify its unique attribution relationship, easily resulting in double counting of emission reductions. Summary of the Invention

[0005] To address the aforementioned problems, embodiments of the present invention provide a data processing method for controlling carbon emissions based on new energy sources, the method comprising:

[0006] Collect the following sequences in the target area: new energy output sequence, energy storage power sequence, electricity metering sequence, power flow direction sequence, switch status sequence, green electricity settlement sequence, and carbon emission factor sequence.

[0007] Event lock points are extracted from the new energy output sequence, the energy storage power sequence, the power metering sequence and the switch state sequence. Local deformation time correction is performed on adjacent data segments based on the event lock points. Back-substitution correction is performed on the time correction results based on the energy conservation relationship corresponding to the power metering sequence and the power flow direction sequence to obtain the corrected power segment.

[0008] The corrected energy segment is written into the charged storage space sequence according to the energy storage power sequence, and released from the charged storage space sequence according to the discharge order to obtain the source inherited segment;

[0009] A physical occupancy map is established based on the network topology and the power flow direction sequence, and a settlement mapping map is established based on the green electricity settlement sequence. Closed-loop conflict deletion processing is performed on the corrected electricity segment and the source inheritance segment to obtain a unique belonging path.

[0010] Carbon emission control result data are generated based on the unique attribution path and the carbon emission factor sequence.

[0011] Furthermore, the event locking point is composed of the following moments: the moment of sudden change in power slope in the new energy output sequence, the moment of charge-discharge switching in the energy storage power sequence, the moment of frozen accounting in the power metering sequence, and the moment of opening and closing action in the switch state sequence; the local deformation time correction uses the time window enclosed by adjacent event locking points as the processing unit.

[0012] Furthermore, the local deformation time correction includes: dividing the time window into a locked segment and a drift segment, keeping the time position of the locked segment unchanged, and performing a monotonic mapping on the drift segment; the back-substitution correction includes performing reverse compensation on the monotonic mapping based on the difference between the input energy and the output energy within the time window.

[0013] Furthermore, the charge storage sequence consists of a charge write storage and a discharge release storage; when the correction charge segment is written to the charge write storage, its correction time boundary and source boundary are retained, and the discharge order is determined according to the writing order of the charge write storage.

[0014] Furthermore, the method for generating the source inheritance fragment includes: during discharge, reading the corresponding correction time boundary and the source boundary according to the discharge release bay to form a release fragment corresponding to the discharge power segment; when the discharge power segment crosses the write bay boundary, splitting the release fragment into a front source inheritance fragment and a back source inheritance fragment.

[0015] Furthermore, the physical occupancy graph uses the corrected power segment and the source inherited segment as nodes, and the network topology connection relationship and power flow direction relationship as physical occupancy edges; the settlement mapping graph uses the correspondence between the corrected power segment, the source inherited segment and the green electricity settlement record as settlement mapping edges; the closed-loop conflict deletion edge processing is performed on the juxtaposed graph formed by the physical occupancy graph and the settlement mapping graph; when the power flow direction sequence reverses, the physical occupancy edges between the affected nodes are reconstructed.

[0016] Furthermore, the physical occupancy edge is divided into direct supply edge, storage-to-transfer edge, and grid connection edge; the closed-loop conflict deletion edge processing includes identifying the closed-loop conflict subgraph composed of the direct supply edge, the storage-to-transfer edge, the grid connection edge, and the settlement mapping edge, and retaining valid edges according to the rules of continuous time boundary, consistent power flow direction, and consistent warehouse release order, while deleting edges that cause the same power segment to be repeatedly occupied.

[0017] Furthermore, the method for generating the carbon emission control result data includes: dividing the corrected electricity segment and the source inheritance segment on the unique attribution path according to the version boundary in the carbon emission factor sequence, matching the divided electricity segment with the corresponding version of the carbon emission factor sequence, and generating time-of-use attribution records and settlement attribution records based on the matching results.

[0018] A data processing method for controlling carbon emissions based on new energy sources further includes: for cases of supplementation, correction and replacement of frozen accounting records, green electricity settlement records and carbon emission factor versions, locating the influence domain interval based on the cross-sectional snapshot sequence, performing differential replay processing, and replacing and updating the carbon emission control result data within the influence domain interval.

[0019] A data processing system for controlling carbon emissions based on new energy sources, the system comprising:

[0020] Data acquisition module: The data acquisition module collects the new energy output sequence, energy storage power sequence, electricity metering sequence, power flow direction sequence, switch status sequence, green electricity settlement sequence, and carbon emission factor sequence in the target area;

[0021] Time correction module: The time correction module extracts event lock points from the new energy output sequence, the energy storage power sequence, the power metering sequence and the switch state sequence, performs local deformation time correction on adjacent data segments based on the event lock points, and performs back substitution correction on the time correction results based on the energy conservation relationship corresponding to the power metering sequence and the power flow direction sequence to obtain the corrected power segment;

[0022] Storage slot inheritance module: The storage slot inheritance module writes the corrected energy segment into the charged storage slot sequence according to the energy storage power sequence, and releases it from the charged storage slot sequence according to the discharge order to obtain the source inherited segment;

[0023] Path attribution module: The path attribution module establishes a physical occupancy map based on the network topology and the power flow direction sequence, establishes a settlement mapping map based on the green electricity settlement sequence, and performs closed-loop conflict deletion processing on the corrected power segment and the source inheritance segment to obtain a unique attribution path;

[0024] Result generation module: The result generation module generates carbon emission control result data based on the unique attribution path and the carbon emission factor sequence.

[0025] The technical effects and advantages of the data processing system for controlling carbon emissions based on new energy sources provided by this invention are as follows:

[0026] This invention improves the accuracy of multi-source renewable energy data attribution and the stability of carbon emission control results, while also ensuring consistency in energy storage transfer and settlement scenarios. Through a combination of event locking points, local deformation time synchronization, and back-substitution correction, this invention uniformly corrects data at different time granularities, reducing emission reduction attribution distortion caused by differences in sampling cycles and update time misalignments, and improving the consistency between time synchronization results and energy relationships. By using charge storage sequences, source inheritance fragments, physical occupancy maps, settlement mapping maps, and closed-loop conflict edge deletion processing, it continuously tracks the flow of renewable energy power in direct supply, storage-to-grid transfer, grid connection, and settlement processes, reducing duplicate occupancy and calculation of the same power, making the generated carbon emission control results more traceable and reliable. Attached Figure Description

[0027] Figure 1 This is a flowchart of a data processing method for controlling carbon emissions based on new energy sources, as shown in Example 1.

[0028] Figure 2 This is a flowchart of the differential replay update method based on cross-sectional snapshots in Example 2;

[0029] Figure 3 This is a schematic diagram of a data processing system for controlling carbon emissions based on new energy sources, as shown in Example 3. Detailed Implementation

[0030] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention. Example 1

[0031] Please see Figure 1 As shown, an embodiment of the present invention provides a data processing method for controlling carbon emissions based on new energy sources, the method comprising:

[0032] S1: Collect the new energy output sequence, energy storage power sequence, electricity metering sequence, power flow direction sequence, switch status sequence, green electricity settlement sequence, and carbon emission factor sequence in the target area;

[0033] S2: Extract event lock points from the new energy output sequence, the energy storage power sequence, the power metering sequence and the switch state sequence, perform local deformation time correction on adjacent data segments based on the event lock points, and perform back substitution correction on the time correction results based on the energy conservation relationship corresponding to the power metering sequence and the power flow direction sequence to obtain the corrected power segment;

[0034] S3: Write the corrected energy segment into the charged storage space sequence according to the energy storage power sequence, and release it from the charged storage space sequence according to the discharge order to obtain the source inherited segment;

[0035] S4: Establish a physical occupancy map based on the network topology and the power flow direction sequence, establish a settlement mapping map based on the green electricity settlement sequence, perform closed-loop conflict deletion processing on the corrected electricity segment and the source inheritance segment, and obtain a unique belonging path;

[0036] S5: Generate carbon emission control result data based on the unique attribution path and the carbon emission factor sequence.

[0037] In this embodiment, the event locking point is not any sampling fluctuation point, but refers to the moment that can characterize the confirmed switch of the equipment operating state and can serve as a time alignment boundary; the new energy output sequence is the sequence obtained by arranging the output data continuously sent by the new energy power generation equipment according to the source timestamp; the energy storage power sequence is the sequence obtained by arranging the charging power or discharging power of the energy storage equipment according to the source timestamp; the electricity metering sequence is the sequence obtained by arranging the cumulative electricity, settlement electricity or frozen electricity formed by the metering device according to the recording time; the switch status sequence is the sequence obtained by arranging the open, closed and their change records of circuit breakers, disconnecting switches or grid-connected switches according to the action time; wherein, the freeze accounting time refers to the moment when the metering device completes the periodic freeze, settlement freeze or corresponding freeze record writing, and the opening action time refers to the moment when the switch status changes from open to closed or from closed to open and is recorded.

[0038] During implementation, the new energy output sequence and the energy storage power sequence are first checked sequentially to remove duplicate records and obvious abnormal jump records formed after missing measurements. Then, candidate moments are extracted based on the change direction and continuous state of adjacent sampling points. Among them, the power slope change moment in the new energy output sequence refers to the moment when the power change slope jumps relative to the previous and next stable sections, and the jump continues in the same direction in subsequent continuous records; the charge and discharge switching moment in the energy storage power sequence refers to the moment when the power symbol or charge and discharge status identifier changes and is maintained by subsequent records; the frozen accounting moment in the energy metering sequence is directly taken from the accounting moment corresponding to the frozen record; the opening and closing action moment in the switch state sequence is directly taken from the action moment corresponding to the state bit flip. After deduplication and merging of each candidate moment, the event locking point set is formed and sorted in chronological order.

[0039] Using time windows enclosed by adjacent event lock points as processing units, each time window only performs time synchronization on the data within the window, without adjusting across windows. Local deformation time synchronization refers to fixing the event lock points corresponding to the start and end points of the current time window as boundary points. Under the premise that the boundary points remain unchanged, a local scaling mapping is performed on each source timestamp within the window to maintain the chronological order, so that the recorded times of the same physical event in different sequences converge to the same correction time. When there are multiple intermediate corresponding events within the time window, the local scaling mapping is performed in segments based on adjacent corresponding events. When there are only boundary events within the time window, the records within the window are sequentially expanded according to the boundary relationship. After completing the local deformation time synchronization, the power quantity obtained after time synchronization within the time window is back-compared with the power quantity change of the corresponding segment of the power metering sequence, and the consistency of the energy inflow relationship and energy outflow relationship is determined in conjunction with the power flow direction. If there is a discrepancy, the correction time of non-boundary records is only recalled within the current time window until the power quantity increase / decrease relationship within the time window is consistent with the power flow direction relationship, thereby obtaining the corrected power quantity segment corresponding to the time window.

[0040] For example: During a certain period, the output of new energy first increases, and then the energy storage switches from charging to discharging. The metering device forms a frozen record at the subsequent settlement time, and the switching equipment performs an opening and closing action later. The above times constitute a continuous time window in sequence. Each time window completes local deformation time correction and back substitution correction respectively. The time correction result of the previous time window does not directly cross the next time window, so that the event boundary, metering boundary and switching boundary maintain a corresponding relationship within the same processing chain.

[0041] In this embodiment, local deformation time correction is completed within a time window enclosed by adjacent event lock points. After the time window is formed, the correspondence of each sequence of records within the time window is sorted out. Record segments that directly correspond to the event lock points and whose physical meaning before and after can be determined are divided into lock sub-segments. Record segments located between adjacent lock sub-segments that have time scale drift but whose order can still be identified are divided into drift sub-segments. Lock sub-segments are segments whose time positions are reserved as time correction boundaries. Records in these segments are only used to define the alignment boundaries before and after and are no longer translated as a whole. Drift sub-segments are segments that allow adjustment of the record time scale between the aforementioned boundaries. Thus, the time window is not stretched or translated as a whole, but time correction is performed only on the drift sub-segments while maintaining boundary stability.

[0042] In practice, the window correspondence chain is first established based on the order of occurrence of the event lock points in each sequence, and then the start and end positions of each lock segment are fixed on the calibration time axis. For the drift segment between two adjacent lock segments, it is written into the calibration time axis one by one according to the original record order, and the calibration time of the later record is not earlier than the calibration time of the previous record to form a monotonic mapping. In this embodiment, the monotonic mapping is not an abstract function solution, but a sequential relocation process based on boundary constraints. The constraints include at least: not changing the original sorting relationship of each record in the drift segment, not crossing the boundary time of the lock segments, and not destroying the continuous correspondence of the same physical process in different sequences. After this processing, the power record, measurement record and status record in the drift segment are projected onto a unified time line to form the initial calibration result corresponding to the time window.

[0043] After obtaining the initial time synchronization results, a back-substitution correction is performed for any time window. The conservation bias constraint function for constructing this time window during back-substitution correction includes:

[0044] ;

[0045] In the formula, Indicates time window Comprehensive correction deviation within; Indicates time window The energy flowing into the object being processed; Indicates time window The energy output of the internally processed object; Indicates time window The equivalent energy corresponding to changes in the internal energy storage state; Indicates time window The set of drift segment records that participate in reverse compensation; Indicates the first The compensation amount for the correction time corresponding to each drift record. Indicates the first The compensation amount for the correction time corresponding to each drift record; Indicates the first The drift record is included in the correction time of the initial time synchronization result; Indicates time window A set of record pairs that have sequential constraints. Indicates the first The correction time is recorded in the initial time synchronization result; Indicates the weight of the compensation range constraint. The order constraint weight is obtained by constraining the conservation deviation constraint function to ensure that the energy input, energy output and the corresponding energy of the energy storage state change within the time window satisfy the consistency relationship, and to keep the order of each record in the drift segment intact.

[0046] The energy difference between input and output refers to the difference between the amount of electricity flowing into and out of the processed object, identified based on the power flow direction and metering boundary, within the same time window. The determination of the input and output sides is based on the combination of the power flow direction sequence and the power metering sequence. During back-substitution correction, the input and output energies corresponding to each drift segment within the time window are first statistically analyzed according to the initial time synchronization results. Then, the difference between the two is compared to see if it falls within a preset consistency range. If the consistency requirement is not met, the time position of the locked segment remains unchanged, and reverse compensation is only performed on the correction time of non-boundary records within the drift segment. The direction of reverse compensation is determined by the sign of the aforementioned difference. The landing point of reverse compensation is preferentially assigned to drift segments with a high correlation to the energy difference. After compensation, the energy difference between input and output within the time window is recalculated until the difference meets the consistency requirement. After completing the back-substitution correction, the corrected energy segment corresponding to the time window is output.

[0047] For example: The starting point of a certain time window is the moment when the output slope of new energy suddenly changes, and the ending point is the moment when energy storage charges and discharges. There is also a freezing accounting moment between the two. Then the recording segment before and after the freezing accounting moment can be used as a locked sub-segment. The power records located between the two locked sub-segments and from different sampling periods can be treated as drift sub-segments. At this time, the position corresponding to the frozen accounting record is fixed first, and then the records in the drift sub-segment are repositioned according to their original order. If the calculated amount of electricity flowing into the energy storage side in the window is greater than the corresponding amount of electricity released to the load side and the external transmission side after time calibration, and exceeds the allowable difference, then only the correction time of the relevant records in the drift sub-segment is reverted, without changing the position of the freezing accounting moment and the charging and discharging switching moment, until the electricity income and expenditure relationship in the time window is consistent with the power flow direction relationship.

[0048] Based on the foregoing, the charge storage sequence is used to sequentially register and release the corrected charge segments entering the energy storage device. To avoid confusion with the state of charge in the sense of battery remaining capacity, the charge storage sequence in this embodiment is not used to estimate the state of battery remaining capacity, but rather is a serialized record structure used to record the sequential relationship of each corrected charge segment entering the energy storage device, remaining in the energy storage device, and being released from the energy storage device. The charging write position refers to the logical record position established for the corresponding corrected charge segment entering the energy storage device when the energy storage device is in the charging process. The discharging release position refers to the logical release position corresponding to the sequential extraction of releasable charge from the charge storage sequence based on existing write records. Thus, the charge storage sequence does not rely on a black-box estimation model, but is formed segment by segment based on the correspondence between the energy storage power sequence and the corrected charge segments.

[0049] In practice, the charging and discharging sections of the energy storage device are first identified based on the energy storage power sequence. Then, the corrected power segments that fall within the charging section and have undergone the aforementioned local deformation time correction and back-substitution correction are written into the charging write bay segment by segment. During writing, for each corrected power segment, at least its segment identifier, segment power, writing order, correction time boundary, and source boundary are recorded. The correction time boundary refers to the start and end times of the corrected power segment on the correction time axis. The source boundary refers to the source range corresponding to the corrected power segment before entering the energy storage device, which is used to characterize which new energy output segment, which upstream corrected power segment, or which confirmed source inheritance relationship the segment comes from. Once the source boundary is written, it will not be rewritten due to subsequent release, so that the segments obtained from subsequent discharge can still be traced back to their source before entering the bay.

[0050] When the energy storage power sequence indicates that the energy storage device has entered the discharge phase, a new source is not generated. Instead, the power is released sequentially from the storage compartments that have been written and still have remaining power, according to the writing order of the charging storage compartments. If the current discharge demand is less than the remaining power of the storage compartment in front, only the corresponding part is released from that compartment, and the unreleased part is left in the original compartment. If the current discharge demand exceeds the remaining power of that compartment, all the remaining power of that compartment is released first, and then the release continues to the next compartment until the release amount corresponding to the current discharge phase is met. The source inheritance fragment formed in this way inherits the source boundary of its corresponding writing compartment and is associated with the release time period corresponding to the current discharge phase, so that when the unique path construction is performed later, it can simultaneously identify "where the power originally came from" and "when the power was released this time".

[0051] For example: During a charging process, two correction energy segments, A and B, are written to the energy storage device sequentially, with segment A written first and segment B written later. When a subsequent discharge occurs, the energy is first released from the storage compartment corresponding to segment A. If segment A is not exhausted during the discharge, the storage compartment corresponding to segment B does not participate in this release. If segment A is exhausted during the discharge and further discharge is needed, the energy is then released from the storage compartment corresponding to segment B. After this processing, the source inheritance segments formed later can still be clearly distinguished from their original sources, and the new energy energy entering the storage compartment earlier will not be mixed with the new energy energy entering the storage compartment later due to the intervention of the energy storage link.

[0052] In the above manner, a clear realization chain is formed between the charged storage space sequence, the charging write space, and the discharging release space: first, the charging segment and the discharging segment are identified based on the energy storage power sequence, then the correction power segment is registered into the storage space, and it is extracted sequentially according to the writing order during release, while the correction time boundary and source boundary are continuously retained.

[0053] In this embodiment, the source inheritance segment is obtained by further expanding the write record corresponding to the discharge release compartment when the energy storage device enters the discharge process. Specifically, firstly, the record segment with continuous discharge and consistent power direction is identified according to the energy storage power sequence, and this record segment is determined as the discharge power segment. The discharge power segment does not only represent a power value, but also represents the time range corresponding to the energy storage device in a continuous discharge process and the release demand within that time range. Subsequently, according to the reading order of the aforementioned discharge release compartments, the corresponding record is read from the write compartment that is currently in the first position and still has remaining power. The read content includes at least the correction time boundary and source boundary retained by the write compartment. The correction time boundary is used to characterize the original entry interval of the corresponding correction power segment on the correction time axis, and the source boundary is used to characterize the source range of the correction power segment before entering the energy storage device. The read boundary information is associated with the current discharge power segment to form a release segment corresponding to the discharge process. The release segment formed in this way corresponds to the actual release period in the current discharge process, and continues to retain its time source and upstream source before entering the compartment, so as not to lose the source chain due to the energy storage release action.

[0054] When a certain discharge power segment occupies only a single write bay during the release process, the release segment directly inherits the correction time boundary and the source boundary corresponding to that write bay. When a certain discharge power segment exhausts the current write bay during the release process and still needs to continue releasing, thus crossing to subsequent write bays, the entire discharge power segment is not treated as a single source. Instead, the original release segment is split into a front source inheritance segment and a back source inheritance segment, with the write bay boundary as the dividing point. The front source inheritance segment corresponds to the part of the current write bay that is being released, and its boundary information is taken from the current... Write position; the subsequent source inheritance segment corresponds to the part of the subsequent write position that is released. Its boundary information is taken from the subsequent write position. The write position boundary refers to the handover position of two adjacent write positions in the release order. Essentially, it corresponds to the boundary where the remaining power of the previous write position is released and the next write position begins to participate in the release. With this processing method, even if the same continuous discharge process consumes power from multiple different sources, it can be split into multiple continuous but independent source inheritance segments in the data structure, thereby providing segment-by-segment traceable input for the construction of the subsequent unique path.

[0055] In practice, the target release amount corresponding to the discharge power segment can be determined first, and then deducted one by one according to the order of the discharge release compartments. If the remaining power of the current write compartment is sufficient to cover the target release amount, a release segment is generated and the current processing ends. If the remaining power of the current write compartment is insufficient, a previous source inheritance segment is generated based on the current compartment, and the unmet release amount is carried over to the next write compartment for processing. Then, a subsequent source inheritance segment is generated based on the next write compartment. The previous source inheritance segment and the subsequent source inheritance segment are connected end to end in terms of discharge timing, but the correction time boundary and source boundary inherited by them are stored independently and are not merged or rewritten. In this way, when performing path determination, settlement mapping or environmental rights attribution on the energy storage discharge power in the future, it can be processed directly segment by segment without mixing the power from different sources into the same source.

[0056] For example: the previous write position corresponds to a correction power segment that entered the warehouse earlier, and the next write position corresponds to another correction power segment that entered the warehouse later; when a certain discharge power segment begins to be released, if the remaining power of the previous write position can only cover the first half of the discharge segment, and the second half needs to be released by the next write position, then the system first generates the source inheritance segment of the first segment corresponding to the previous write position, and then generates the source inheritance segment of the second segment corresponding to the next write position; the two together cover the same discharge power segment, but retain their own different correction time boundaries and source boundaries in the data, so as to distinguish which power in the "same discharge" comes from the earlier entry segment and which power comes from the later entry segment.

[0057] In this embodiment, the physical occupancy map and the settlement mapping map are constructed separately on the same batch of segments to be processed and then used in parallel. In specific implementation, the corrected power segments and the source inherited segments obtained from the aforementioned steps are first summarized, and each segment is registered as a graph node. Each node is associated with at least its segment identifier, correction time boundary, source boundary, and the metering location to which it belongs. Subsequently, the upstream and downstream reachability order of each node in terms of physical connection relationship is determined according to the network topology. Then, the actual energy flow direction of each node in the corresponding time period is determined by combining the power flow direction sequence. For node pairs that are topologically connected, time-overlapping or end-to-end connected, and have the same power flow direction, a directed physical occupancy edge is established. The physical occupancy edge is used to represent the occupancy relationship of related segments on the same physical transmission path, the same power receiving location, or the same power sending location in the corresponding time period, rather than an abstract association edge. The settlement mapping map is established based on the correspondence between the nodes in the same batch and each settlement record in the green electricity settlement sequence. When the time range, metering boundary, and transaction ownership range of a node match a certain settlement record, the settlement mapping edge is established between the node and the settlement record.

[0058] After completing the construction of the two graphs, the physical occupancy graph and the settlement mapping graph are juxtaposed as a unified processing object. Here, the juxtaposed graph means that while retaining the same set of nodes, both physical occupancy edges and settlement mapping edges are retained, and the two types of edges are jointly traversed. The closed-loop conflict edge deletion processing does not solve the entire graph as a whole, but starts from each corrected power segment and each source inheritance segment, and searches segment by segment along the physical occupancy edge and the settlement mapping edge to see if there is a closed path returning to the same node or the same settlement record. If a closed path exists, it means that the same segment is simultaneously pointed to multiple incompatible physical destinations, or the same settlement record simultaneously maps to multiple segments that cannot coexist physically. At this time, it is identified as a conflict loop. The processing order of the conflict loop includes: first verifying whether the physical occupancy edge satisfies the current network topology and power flow direction sequence, and then verifying whether the settlement mapping edge satisfies the correction time boundary, source boundary and settlement record range. Edges that do not meet the aforementioned verification relationship are deleted until the closed path is cut off. After this processing, each segment retains only the edge relationship consistent with the current physical flow direction and settlement range in the juxtaposed graph.

[0059] When the power flow direction sequence reverses, the moment of the reverse reversal is used as the edge update trigger point. The physical occupancy edges between the affected nodes are reconstructed. Specifically, this includes: first, locating the set of nodes that span the moment of the reverse reversal; for nodes that span the moment of the reversal, splitting them into pre-reversal nodes and post-reversal nodes according to the moment of the reversal; deleting the physical occupancy edges that were originally established based on the power flow direction before the reversal but are no longer valid after the reversal; and then reconstructing the physical occupancy edges between the newly formed post-reversal nodes according to the power flow direction after the reversal. The settlement mapping edges are not directly rewritten due to the change in power flow direction, but in the subsequent closed-loop conflict edge deletion process, any settlement mapping edges that are inconsistent with the reconstructed physical occupancy edges are deleted according to the aforementioned rules. Thus, the edge relationships before and after the power flow reversal are not directly flipped on the original graph, but are updated in the order of "locating affected nodes - splitting nodes - deleting invalid edges - reconstructing edges according to the new direction".

[0060] For example: In a previous time period, a source-inherited segment supplied load via an internal path within the park, and a corresponding physical occupancy edge pointing to the load-related node was established. In a subsequent time period, the power flow direction sequence showed that the branch underwent a reverse switch. Then, taking the switch time as the boundary, the source-inherited segment was split into two segments. The original physical occupancy edge was retained for the segment before the switch, and the edge pointing to the load-related node was deleted for the segment after the switch. The edge pointing to the grid connection outlet node was then reconstructed according to the reverse power flow. If a green electricity settlement record still attempts to map the segment after the switch to be consumed within the park, the settlement mapping edge will form a conflict loop with the reconstructed physical occupancy edge, and will be deleted in the closed-loop conflict edge deletion process.

[0061] In this embodiment, physical occupancy edges are further subdivided into direct supply edges, energy storage-to-grid edges, and grid connection edges. Direct supply edges refer to physical occupancy edges where the corrected power segment points directly to the load absorption location based on the network topology and power flow direction without entering the energy storage device. Energy storage-to-grid edges refer to physical occupancy edges where the corrected power segment is written by the energy storage device and subsequently forms a source inheritance segment, which then points to the corresponding power receiving location or downstream location. Grid connection edges refer to physical occupancy edges where the corrected power segment or the source inheritance segment points to the grid connection outlet or external transmission location based on the power flow direction. After edge classification, direct supply edges, energy storage-to-grid edges, grid connection edges, and settlement mapping edges are placed together in the aforementioned juxtaposition graph. Starting from the same corrected power segment or the same source inheritance segment, each edge is searched to determine if there is a closed relationship that returns to the same settlement record, the same physical destination, or the same segment identifier. Any situation where the same power segment occupies two or more incompatible destinations simultaneously within the same time period is identified as a closed-loop conflict subgraph.

[0062] The processing of the closed-loop conflict subgraph does not employ global optimization; instead, it deletes edges sequentially according to rules. First, it checks the continuity of time boundaries by comparing the correction time boundaries, release time boundaries, and settlement record coverage periods of the segments associated with candidate edges to ensure they are connected end-to-end or within the same continuous interval. Edges that are broken, misaligned, or exceed the corresponding settlement range in time are deleted. Second, it checks the consistency of power flow direction by verifying whether the physical destination indicated by the candidate edge is consistent with the power flow direction sequence of the corresponding time period. Edges whose physical destination is inconsistent with the current power flow direction are deleted. Third, it checks the consistency of the position release order by verifying whether the source inheritance segment corresponding to the storage-transfer edge conforms to the aforementioned reading order of the discharge release position when the closed-loop conflict subgraph contains a storage-transfer edge. Edges whose corresponding segments for later-written positions are occupied before those for earlier-written positions, or which incorrectly map the same discharge segment to a writing position that has not yet reached its release order, are deleted. After the aforementioned sequential processing, only valid edges that simultaneously satisfy the conditions of continuous time boundaries, consistent power flow direction, and consistent position release order are retained.

[0063] Among them, the duplicate occupation of the same power segment refers to the simultaneous retention of two or more direct supply edges, storage-to-transfer edges, and grid connection edges that cannot coexist with each other within the same processing period for the same corrected power segment or the same source inheritance segment, or the simultaneous retention of a physical occupation edge and a settlement mapping edge that conflicts with it. In order to avoid mixing power from different sources, if a continuous discharge process has been split into a front-end source inheritance segment and a back-end source inheritance segment according to the aforementioned steps, then the closed-loop conflict subgraph identification and edge deletion processing are performed independently on the front-end source inheritance segment and the back-end source inheritance segment, without re-merging and judging the two. After this processing, the power segments before and after the energy storage transfer still participate in path screening according to their respective source boundaries.

[0064] For example: A certain corrected power segment points to the park load via a direct supply edge and corresponds to a certain green power export settlement record via a settlement mapping edge. At the same time, this segment also forms a storage-to-transfer edge after subsequent energy storage release. In this case, the three types of edges and the settlement mapping edge may form a closed-loop conflict subgraph. First, verify whether the time period covered by the settlement record continuously corresponds to the correction time boundary. If it is not continuous, delete the corresponding settlement mapping edge. If it is continuous, verify whether the export direction is consistent with the power flow direction sequence at that time. If it is inconsistent, delete the corresponding grid connection edge or settlement mapping edge. If a storage-to-transfer edge is involved, continue to verify whether the segment corresponding to the storage-to-transfer edge is indeed released sequentially from the current discharge release position. Storage-to-transfer edges that do not conform to the release order are deleted. After this processing, only one set of coexisting valid edges is retained for the same power segment, thereby eliminating duplicate occupation.

[0065] In this embodiment, the carbon emission control result data is generated after the unique attribution path has been determined. Specifically, the carbon emission factor sequence is first read, and version boundaries are established according to the effective start and ineffective end of each factor version. The version boundary refers to the dividing position between two adjacent factor versions in the applicable time range, which is used to determine the carbon emission factor version that should be applicable in a certain period of time. Subsequently, the corrected electricity segment and source inheritance segment are read segment by segment along the unique attribution path. Segments that cross the version boundary are segmented. Segments that do not cross the version boundary remain unchanged, while segments that cross the version boundary are split into segmented electricity segments that fall into the applicable range of different versions according to the boundary position. This segmentation only changes the time coverage range of the segment in the attribution calculation, without changing its corresponding source boundary, path attribution, and settlement association. After the segmentation is completed, the corresponding version covering the time range is found in the carbon emission factor sequence based on the time range of the segmented electricity segment, and the factor value under the version is matched with the segmented electricity segment.

[0066] After matching is completed, time-based attribution records and settlement attribution records are generated respectively. Time-based attribution records refer to the time-based attribution results record formed for each segmented electricity consumption segment. It is associated with at least the segment identifier, unique attribution path identifier, correction time boundary, matched factor version identifier, and corresponding attribution electricity. It is used to characterize the segment in which time range, along which path, and with which version of carbon emission factor participates in the calculation of carbon emission control results. Settlement attribution records refer to the records formed after merging the segmented electricity consumption segments that have completed factor version matching into the corresponding settlement range, based on the retention of settlement batch relationships. It is associated with at least the settlement record identifier, unique attribution path identifier, matched factor version identifier, and corresponding attribution electricity. It is used to characterize the actual factor version composition corresponding to each electricity consumption segment within a certain settlement range. Thus, time-based attribution records reflect the attribution results in the time dimension, and settlement attribution records reflect the attribution results in the settlement dimension. The two originate from the same unique attribution path but correspond to different data accounting dimensions.

[0067] In practice, if a certain corrected electricity segment or the source inherited segment is continuous in time but crosses more than two version boundaries, it is continuously segmented according to the boundary order until each segment corresponds to only a single factor version. If a settlement record covers a time range that contains multiple factor versions, they are not merged into a single version result. Instead, multiple settlement attribution records are retained under the same settlement record, with each settlement attribution record corresponding to a factor version and its covered attribution electricity. This process avoids the incorrect application of electricity within the applicable time period of the previous version to the factor of the next version, and also avoids the mixing and recording of attribution results of multiple versions within a single settlement range.

[0068] For example: If a source-inherited segment has been determined to belong to the storage-transfer path through the aforementioned steps, and its release period spans the boundary time of two factor versions, then the source-inherited segment is first divided into two segmented electricity segments according to the boundary time; the first segment matches the carbon emission factor sequence of the previous version, and the second segment matches the carbon emission factor sequence of the second version; then, two time-based attribution records are generated respectively; if the two segments also belong to the coverage of a green electricity settlement record, then two settlement attribution records are generated under the same settlement record, instead of generating a mixed version of the settlement record; thus, the carbon emission control result data is ultimately composed of two types of records: time-based and settlement-based. Example 2

[0069] like Figure 2 As shown, this embodiment further improves upon the design of Embodiment 1. The difference lies in the fact that, in actual operation of Embodiment 1, it was found that when frozen accounting records, green electricity settlement records, or carbon emission factor versions are supplemented, corrected, or replaced after the generation of carbon emission control result data, it easily causes related changes in the segmentation position of the corrected electricity segment, the release order of the charged storage sequence, and the unique attribution path. This leads to the overall instability of the previously formed time-sharing attribution records and settlement attribution records, failing to reconstruct only the affected segments. Based on this, a data processing method for carbon emission control based on new energy sources further includes: establishing a cross-sectional snapshot sequence, locating the affected domain interval, performing differential replay processing, and performing result replacement and update processing.

[0070] Specifically, the timing of profile generation is based on the freezing of the accounting time, the writing of the position boundary, the discharge of the position boundary, the settlement record boundary, and the carbon emission factor version boundary. This solidifies the corrected electricity segment, the state of the charged position sequence, the state of the source inheritance segment, the unique attribution path, and the time-sharing attribution record and settlement attribution record that were determined before the current time, forming a profile snapshot sequence. When a new record, a corrected record, or a replaced record is detected, the change point is first located, and the most recent profile is used as the replay starting point. The last affected settlement boundary, position boundary, or version boundary is used as the endpoint of the influence domain, thereby determining the influence domain interval. Subsequently, the profile snapshot corresponding to the replay starting point is read. While keeping the results before the profile unchanged, only the event lock point extraction, local deformation time correction, back substitution correction, position writing and release, source inheritance segment generation, unique attribution path construction, and carbon emission control result data generation within the influence domain interval are re-executed. Finally, the newly generated time-sharing attribution record and settlement attribution record within the influence domain interval replace the original record, while the results outside the influence domain interval are retained.

[0071] For example: If a frozen accounting record is supplemented after the result is generated, and the supplemented record is located between the existing write position and the discharge release position, the system restores the previous snapshot processing context, performs differential replay only on the data between the supplemented record time and the affected settlement boundary, and updates the corresponding source inheritance fragment, unique attribution path, time-sharing attribution record and settlement attribution record, while the attribution results that have been stable before the supplemented record time remain unchanged. Example 3

[0072] like Figure 3 As shown, based on the same inventive concept as the data processing method for controlling carbon emissions based on new energy sources in the foregoing embodiments, this application provides a data processing system for controlling carbon emissions based on new energy sources. The system and method embodiments in this application are based on the same inventive concept. The system includes:

[0073] Data acquisition module: The data acquisition module collects the new energy output sequence, energy storage power sequence, electricity metering sequence, power flow direction sequence, switch status sequence, green electricity settlement sequence, and carbon emission factor sequence in the target area;

[0074] Time correction module: The time correction module extracts event lock points from the new energy output sequence, the energy storage power sequence, the power metering sequence and the switch state sequence, performs local deformation time correction on adjacent data segments based on the event lock points, and performs back substitution correction on the time correction results based on the energy conservation relationship corresponding to the power metering sequence and the power flow direction sequence to obtain the corrected power segment;

[0075] Storage slot inheritance module: The storage slot inheritance module writes the corrected energy segment into the charged storage slot sequence according to the energy storage power sequence, and releases it from the charged storage slot sequence according to the discharge order to obtain the source inherited segment;

[0076] Path attribution module: The path attribution module establishes a physical occupancy map based on the network topology and the power flow direction sequence, establishes a settlement mapping map based on the green electricity settlement sequence, and performs closed-loop conflict deletion processing on the corrected power segment and the source inheritance segment to obtain a unique attribution path;

[0077] Result generation module: The result generation module generates carbon emission control result data based on the unique attribution path and the carbon emission factor sequence.

[0078] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.

[0079] The above description is merely a preferred embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present application, based on the technical solution and concept of the present application, should be covered within the scope of protection of the present application.

Claims

1. A data processing method for controlling carbon emissions based on new energy sources, characterized in that the method... include: Collect the following sequences in the target area: new energy output sequence, energy storage power sequence, electricity metering sequence, power flow direction sequence, switch status sequence, green electricity settlement sequence, and carbon emission factor sequence. Event lock points are extracted from the new energy output sequence, the energy storage power sequence, the power metering sequence and the switch state sequence. Local deformation time correction is performed on adjacent data segments based on the event lock points. Back-substitution correction is performed on the time correction results based on the energy conservation relationship corresponding to the power metering sequence and the power flow direction sequence to obtain the corrected power segment. The corrected energy segment is written into the charged storage space sequence according to the energy storage power sequence, and released from the charged storage space sequence according to the discharge order to obtain the source inherited segment; A physical occupancy map is established based on the network topology and the power flow direction sequence, and a settlement mapping map is established based on the green electricity settlement sequence. Closed-loop conflict deletion processing is performed on the corrected electricity segment and the source inheritance segment to obtain a unique belonging path. Carbon emission control result data are generated based on the unique attribution path and the carbon emission factor sequence.

2. The data processing method for controlling carbon emissions based on new energy sources according to claim 1, characterized in that, The event locking points consist of the following moments: the moment of sudden change in power slope in the new energy output sequence, the moment of charge-discharge switching in the energy storage power sequence, the moment of frozen accounting in the power metering sequence, and the moment of opening and closing action in the switch state sequence; the local deformation time correction uses the time window enclosed by adjacent event locking points as the processing unit.

3. The data processing method for controlling carbon emissions based on new energy sources according to claim 2, characterized in that, The local deformation time correction includes: dividing the time window into a locked segment and a drift segment, keeping the time position of the locked segment unchanged, and performing a monotonic mapping on the drift segment; the back-substitution correction includes performing reverse compensation on the monotonic mapping based on the difference between the input energy and the output energy within the time window.

4. The data processing method for controlling carbon emissions based on new energy sources according to claim 3, characterized in that, The charge storage sequence consists of a charge write storage and a discharge release storage; when the correction charge segment is written to the charge write storage, its correction time boundary and source boundary are retained, and the discharge order is determined according to the writing order of the charge write storage.

5. The data processing method for controlling carbon emissions based on new energy sources according to claim 4, characterized in that, The method for generating the source inheritance fragment includes: during discharge, reading the corresponding correction time boundary and the source boundary according to the discharge release position to form a release fragment corresponding to the discharge power segment; when the discharge power segment crosses the write position boundary, splitting the release fragment into a front source inheritance fragment and a back source inheritance fragment.

6. The data processing method for controlling carbon emissions based on new energy sources according to claim 5, characterized in that, The physical occupancy graph uses the corrected power segment and the source inherited segment as nodes, and the network topology connection relationship and power flow direction relationship as physical occupancy edges; the settlement mapping graph uses the correspondence between the corrected power segment, the source inherited segment and the green electricity settlement record as settlement mapping edges; the closed-loop conflict deletion edge processing is performed on the juxtaposed graph formed by the physical occupancy graph and the settlement mapping graph; when the power flow direction sequence reverses, the physical occupancy edges between the affected nodes are reconstructed.

7. The data processing method for controlling carbon emissions based on new energy sources according to claim 6, characterized in that, The physical occupancy edge is divided into direct supply edge, storage-to-transfer edge, and grid connection edge; the closed-loop conflict deletion edge processing includes identifying the closed-loop conflict subgraph composed of the direct supply edge, the storage-to-transfer edge, the grid connection edge, and the settlement mapping edge, and retaining valid edges according to the rules of continuous time boundary, consistent power flow direction, and consistent position release order, and deleting edges that cause the same power segment to be repeatedly occupied.

8. The data processing method for controlling carbon emissions based on new energy sources according to claim 7, characterized in that, The method for generating carbon emission control result data includes: dividing the corrected electricity segment and the source inheritance segment on the unique attribution path according to the version boundary in the carbon emission factor sequence, matching the divided electricity segment with the corresponding version of the carbon emission factor sequence, and generating time-of-use attribution records and settlement attribution records based on the matching results.

9. The data processing method for controlling carbon emissions based on new energy sources according to claim 1, characterized in that, Also includes: For situations involving the supplementation, correction, and replacement of frozen accounting records, green electricity settlement records, and carbon emission factor versions, the influence domain interval is located based on the cross-sectional snapshot sequence, differential replay processing is performed, and the carbon emission control result data within the influence domain interval is replaced and updated.

10. A data processing system for controlling carbon emissions based on new energy sources, characterized in that the system... include: Data acquisition module: The data acquisition module collects the new energy output sequence, energy storage power sequence, electricity metering sequence, power flow direction sequence, switch status sequence, green electricity settlement sequence, and carbon emission factor sequence in the target area; Time correction module: The time correction module extracts event lock points from the new energy output sequence, the energy storage power sequence, the power metering sequence and the switch state sequence, performs local deformation time correction on adjacent data segments based on the event lock points, and performs back substitution correction on the time correction results based on the energy conservation relationship corresponding to the power metering sequence and the power flow direction sequence to obtain the corrected power segment; Storage slot inheritance module: The storage slot inheritance module writes the corrected energy segment into the charged storage slot sequence according to the energy storage power sequence, and releases it from the charged storage slot sequence according to the discharge order to obtain the source inherited segment; Path attribution module: The path attribution module establishes a physical occupancy map based on the network topology and the power flow direction sequence, establishes a settlement mapping map based on the green electricity settlement sequence, and performs closed-loop conflict deletion processing on the corrected power segment and the source inheritance segment to obtain a unique attribution path; Result generation module: The result generation module generates carbon emission control result data based on the unique attribution path and the carbon emission factor sequence.