A cross-business data consistency processing method for park integrated management and control
By processing and verifying the sequence of trace segments in the planned execution process of business actions within the comprehensive management and control of the park, the problem of connection and correspondence between multi-source records in different systems has been solved, achieving more accurate plan execution and anomaly identification.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ANHUI JIUZHI INTELLIGENT TECHNOLOGY CO LTD
- Filing Date
- 2026-04-24
- Publication Date
- 2026-07-03
Smart Images

Figure CN122332983A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology for integrated management and control of industrial parks, and more specifically, to a cross-business data consistency processing method for integrated management and control of industrial parks. Background Technology
[0002] In the comprehensive management and control of the park, the existing processing method is usually to connect business systems such as power distribution, HVAC, access control, elevators, and video security to the edge platform, and then summarize various status quantities, alarm quantities and control feedback quantities according to a unified time base. Combined with preset association rules, multi-source records within the same time period are merged in order to complete linkage judgment, anomaly identification and operation tracking. However, during the continuous operation of large parks at night, if there are simultaneous air conditioning zone switching, local load adjustment, access control policy issuance and video computing power redistribution, and the site is also affected by the different sampling cycles of each system, inconsistent record writing times, local link jitter and edge buffer retransmission, then the records formed by the same business action in different systems often no longer maintain the original sequential connection and continuous correspondence. The following phenomena can be continuously observed on site: the plan has been issued but the terminal status has not changed according to the corresponding interval, the local power drop is earlier than the equipment status switch, the duration of video load change exceeds the original action range, or another business action is inserted and occupies the record interval that should have been corresponding to this action. In this situation, even if the existing approach can merge multiple records into the same event, it can only reflect that these records are close in time or related in objects. It cannot determine whether the traces left by the same business action across systems still maintain the proper constraints. Therefore, it is easy to confuse the processing of plan execution deviation, abnormal insertion, plan failure and abnormal disguise. The technical problem this application aims to solve is: how to perform consistency processing on multi-source records generated by the same business action in cross-business systems within a park under edge computing conditions, so as to determine whether their mutual constraints are valid. Summary of the Invention
[0003] To overcome the aforementioned deficiencies of the prior art, embodiments of the present invention provide a cross-business data consistency processing method for comprehensive park management and control. This method expands the planned execution process corresponding to the target business action into a sequence of trace segments and verifies the sequential connection, continuous correspondence, and object transfer relationship between adjacent trace segments by combining the writing results of multi-source business records, thereby solving the problems mentioned in the background art.
[0004] To achieve the above objectives, the present invention provides the following technical solution: a cross-business data consistency processing method for comprehensive park management, comprising: S1. Obtain the plan records corresponding to the target business actions within the park, as well as the business records corresponding to the power distribution system, HVAC system, access control system, elevator system, and video security system. Generate a sequence of trace segments arranged in order of precedence constraints based on the execution chain of the target business actions, and output the entry conditions, exit conditions, and allowable misalignment range corresponding to each trace segment in the trace segment sequence. S2. Match each business record with each trace segment in the trace segment sequence, and write the successfully matched business records into the corresponding trace segments according to the record occurrence time, record duration interval and record target, to form the occupancy result corresponding to each trace segment. S3. Perform adjacent verification and cross-system verification on the occupation results of each trace segment, calculate the sequential relationship, continuous correspondence relationship and object correspondence relationship between each adjacent trace segment, and output the locking relationship results between each trace segment. S4. Based on the locking relationship result, determine whether there is a break, reversal or squeezing in the trace segment sequence, and when there is a break, reversal or squeezing, determine the corresponding abnormal trace segment interval, and output the consistency judgment result and abnormal trace segment interval corresponding to the target business action. S5. Based on the consistency determination result, output the sequence of trace segments where the locking relationship is established as the consistency record corresponding to the target business action, and output the abnormal trace segment interval as the record to be separated, for subsequent linkage determination or operation tracing call.
[0005] In a preferred embodiment, S1 includes: S1-1. Obtain the action initiating object, action acting object, action start record, action end record, and action execution order from the plan record corresponding to the target business action. Expand the transmission relationship between the action initiating object and the action acting object according to the action execution order to form a set of trace segments corresponding to the target business action. S1-2. Extract the start record, end record, target, and preceding trace segment for each trace segment in the trace segment set. Determine the entry and exit conditions based on the start and end records of each trace segment, and determine the sequential constraint relationship based on the preceding trace segments of each trace segment. S1-3. For adjacent trace segments with sequential constraints, calculate the recording interval, object transmission path, and record type connection relationship between the end record of the previous trace segment and the beginning record of the next trace segment. Determine the allowable misalignment range based on the recording interval, object transmission path, and record type connection relationship, and output the trace segment sequence arranged according to sequential constraints.
[0006] In a preferred embodiment, S2 includes: S2-1. Obtain the record start time, record end time, record target and record source system corresponding to each business record, and extract the entry condition, exit condition, allowable misalignment range and target of each trace segment in the trace segment sequence. Group each business record according to the correspondence between the record target and the trace segment target to form the candidate record group corresponding to each trace segment. S2-2. For each candidate record group corresponding to each trace segment, calculate the starting offset between the record start time and the time corresponding to the trace segment entry condition, the ending offset between the record end time and the time corresponding to the trace segment exit condition, and the overlapping interval between the candidate record's continuous interval and the allowed misalignment range for each candidate record. Then, determine the candidate record whose starting offset, ending offset, and overlapping interval simultaneously meet the writing requirements as the successfully matched business record. S2-3. Write the successfully matched business records corresponding to each trace segment into the corresponding trace segment according to the record start time, and mark the record source system, occupation start point and occupation end point of each business record after writing in sequence to form the occupation result corresponding to each trace segment.
[0007] In a preferred embodiment, S3 includes: S3-1. Obtain the occupancy results corresponding to the preceding and following trace segments that are sequentially adjacent. Extract the occupancy endpoint sequence of the preceding trace segment and the occupancy start sequence of the following trace segment according to the recording source system. Perform discrete wavelet decomposition on each occupancy endpoint sequence and each occupancy start sequence and reconstruct the low-frequency sequence. Then, shift each occupancy endpoint low-frequency sequence sequentially to form multiple shifted sequences according to time units. For each shifted sequence and the corresponding occupancy start low-frequency sequence, calculate the product of the corresponding position values at each time position and accumulate them to obtain the cross-correlation value corresponding to the shifted number. Take the shifted number with the largest cross-correlation value as the time-series correction shift of the recording source system. Perform time-series correction on the occupancy endpoint sequence and the occupancy start sequence according to the time-series correction shift, and output the correction endpoint sequence and correction start sequence corresponding to each recording source system.
[0008] In a preferred embodiment, S3 further includes: S3-2. Construct a pairing matrix for the correction endpoint sequence and correction start sequence corresponding to each record source system. Arrange the endpoint records in the correction endpoint sequence in order to form the rows of the pairing matrix, and arrange the start records in the correction start sequence in order to form the columns of the pairing matrix. Take the endpoint record and start record corresponding to the intersection of any row and any column as a candidate pair. Calculate the difference between the endpoint time and the start time, the difference between the duration interval of the endpoint record and the duration interval of the start record, and the number of jumps between the target object of the endpoint record and the target object of the start record for each candidate pair. Then, add the three calculation results to the cumulative results already written in the left neighbor position, the upper neighbor position, and the upper left neighbor position of the current intersection position, respectively. Write the minimum value of each summed result to the current intersection position. Then, starting from the lower right corner of the pairing matrix, backtrack gradually from the adjacent position with the smallest cumulative result to the upper left corner position to output the time series pairing set corresponding to each record source system.
[0009] In a preferred embodiment, S3 further includes: S3-3. Based on the time-series pairing set corresponding to each record source system, calculate the overlap length and crossing length of the duration interval of the previous trace segment and the duration interval of the next trace segment for each pairing record. Then, expand the object of action of the previous trace segment to the object of action of the next trace segment step by step according to the object transfer order in the planned record. Count the number of times the object of action of the next trace segment is reached and the number of interruptions that do not reach the object of action of the next trace segment during the expansion process. Output the duration pairing set and object transfer set corresponding to each record source system. S3-4. For the same object acting on different record source systems, construct a segment fingerprint consisting of the record source system, pairing order, overlap length, traverse length, arrival count, and interruption count. Then, compare the segment fingerprints between different record source systems item by item to see if the pairing order is consistent, if the overlap length increases simultaneously, if the traverse length decreases simultaneously, and if the change direction of the arrival count and the interruption count is consistent. Segment fingerprints with consistent comparison results are assigned to the cross-system confirmation set, and segment fingerprints with inconsistent comparison results are assigned to the cross-system conflict set.
[0010] In a preferred embodiment, S3 further includes: S3-5. Taking the temporal pairing set, continuous pairing set, object transfer set corresponding to each record source system, and the cross-system verification set and cross-system conflict set corresponding to each adjacent trace segment as input, for each candidate locking relationship, count the number of unpaired records, the total traversal length, the total number of interruptions, and the number of segment fingerprints in the cross-system conflict set. Then, retain the candidate locking relationships in descending order of the four statistical results. Substitute the retained candidate locking relationships into S3-2 to S3-4 for recalculation. When the retained candidate locking relationships are the same in two consecutive rounds of calculation, output the candidate locking relationship as the locking relationship result between each trace segment.
[0011] In a preferred embodiment, S4 includes: S4-1. Obtain the locking relationship results between each adjacent trace segment in the trace segment sequence. For each adjacent trace segment, read the order of precedence in the sequential relationship, the order of preceding and following coverage in the continuous correspondence relationship, and the order of object transfer in the object correspondence relationship. Compare each of these with the order of the adjacent trace segment in the trace segment sequence. Record the adjacent trace segments whose preceding and following order is opposite to the order of the arrangement as reversed trace segment pairs. Record the adjacent trace segments whose starting position in the preceding and following coverage order falls before the ending position of the preceding trace segment as broken trace segment pairs. Record the adjacent trace segments in the object transfer order that contain inserted objects that are not objects acting on the preceding trace segment and objects acting on the following trace segment as squeezed trace segment pairs. Output the reversed trace segment pairs, broken trace segment pairs, and squeezed trace segment pairs.
[0012] In a preferred embodiment, S4 further includes: S4-2. Arrange the reverse trace segment pairs, fracture trace segment pairs, and squeeze trace segment pairs according to the position of the trace segments in the trace segment sequence. Connect the adjacent abnormal trace segment pairs where the next trace segment of the previous abnormal trace segment pair is the same as the previous trace segment of the next abnormal trace segment pair. Determine the first trace segment to the last trace segment after the connection as an abnormal trace segment interval. Output the starting trace segment and ending trace segment corresponding to each abnormal trace segment interval. S4-3. Count the total number of trace segments in the trace segment sequence, count the number of trace segments covered by each abnormal trace segment interval and sum them up to get the total number of abnormal trace segments. When the total number of abnormal trace segments is zero, output the consistency judgment result corresponding to the target business action as consistent. When the total number of abnormal trace segments is not zero, output the consistency judgment result corresponding to the target business action as inconsistent, and output each abnormal trace segment interval simultaneously.
[0013] In a preferred embodiment, S5 includes: S5-1. Obtain the consistency judgment result, trace segment sequence, locking relationship result and abnormal trace segment interval. Concatenate the occupation result and locking relationship result corresponding to the trace segment that does not fall into the abnormal trace segment interval according to the arrangement order of the trace segment in the trace segment sequence, and output the consistency record corresponding to the target business action. S5-2. Extract the corresponding occupation and locking results from the starting and ending trace segments of each abnormal trace segment interval, associate the extracted content with the position of the abnormal trace segment interval, and output the record to be separated.
[0014] The technical effects and advantages of this invention are as follows: By recording the unfolded trace segment sequence according to the plan under edge computing conditions, and verifying adjacent trace segments by combining the occupation result and locking relationship result, it is possible to determine whether the sequential connection, continuous correspondence and object transfer relationship between cross-system records of the same business action are valid, thereby relatively reducing the situation of mixed processing of plan execution offset, abnormal insertion, plan failure and abnormal disguise. By setting entry conditions, exit conditions, and allowable misalignment ranges for each trace segment on the edge computing side, and grouping, filtering, and writing multi-source business records accordingly, business records formed under different sampling periods and different writing times can be positioned according to the corresponding trace segment, thereby relatively improving the accuracy of the correspondence between cross-business records and target business actions. By performing time-series correction, matrix pairing, and continuous interval and object transfer calculations on the occupation end-point sequence and occupation start-point sequence of sequentially adjacent trace segments, the connection status between consecutive trace segments can be refined, thereby relatively improving the ability of the locking relationship results to represent the actual execution link. By identifying pairs of reversal trace segments, pairs of break trace segments, and pairs of squeeze trace segments, and outputting the abnormal parts as records to be separated and the rest as records of consistency, the normal connection parts and the abnormal interference parts can be separated and retained, thus providing a basis for differentiation for subsequent linkage judgment and operation tracking. Attached Figure Description
[0015] Figure 1 This is a flowchart of the method steps of the present invention. Detailed Implementation
[0016] 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.
[0017] Refer to the instruction manual appendix Figure 1The present invention provides a cross-business data consistency processing method for comprehensive park management, comprising: S1. Obtain the plan records corresponding to the target business actions within the park, as well as the business records corresponding to the power distribution system, HVAC system, access control system, elevator system, and video security system. Generate a sequence of trace segments arranged in order of precedence constraints based on the execution chain of the target business actions, and output the entry conditions, exit conditions, and allowable misalignment range corresponding to each trace segment in the trace segment sequence. In this embodiment, S1 is used to break down the planned execution process corresponding to the target business action into trace segments used for subsequent writing and verification, and to give each trace segment an entry boundary, an exit boundary, and an allowable misalignment position between adjacent trace segments. During processing, the action initiating object, action acting object, action start record, action end record, and action execution order are first extracted from the plan record corresponding to the target business action. Then, based on the object succession relationship already recorded in the plan record, the transmission process of the target business action between different objects is unfolded, forming a set of trace segments. Subsequently, the start record, end record, acting object, and preceding trace segment are determined for each trace segment, and entry conditions, exit conditions, and sequential constraints are formed accordingly. Finally, the record interval, acting object transmission path, and record type connection relationship are calculated for adjacent trace segments with sequential constraints, and the allowable misalignment range is determined accordingly, thereby obtaining a sequence of trace segments arranged according to sequential constraints. This implementation process includes the following steps: In S1-1, firstly, all plan records corresponding to the same target business action identifier are extracted from the park's integrated management and control platform. Each plan record is then organized into record items: record identifier, target business action identifier, action initiating object, action affected object, action start record, action end record, action execution order, record type, and record time. The action initiating object represents the triggering entity of the current planned action; the action affected object represents the object directly affected by the current planned action; the action start record represents the plan record where the current planned action enters the execution state; the action end record represents the plan record where the current planned action exits the execution state; and the action execution order represents the current planned action's position in the entire execution chain. Subsequently, all plans are processed according to the action execution order. The plan records are sorted, and the object inheritance relationship between adjacent plan records is read from front to back. If the action object of the previous plan record is the same as the action initiating object of the next plan record, then the two plan records are determined to have a direct inheritance relationship. If the action object of the previous plan record is different from the action initiating object of the next plan record, but there is an object inheritance record in the plan record from the action object of the previous plan record to the action initiating object of the next plan record through an intermediate object, then the two plan records are determined to have an indirect inheritance relationship, and the intermediate object is written into the object transmission chain according to the inheritance order. Then, the action initiating object of each plan record is used as the current expansion starting point, and the action object of the plan record is used as the current expansion ending point to form an initial trace segment. If the current endpoint of the expansion is also the action initiation object of the next plan record, then the expansion continues along the next plan record to form the next trace segment; if the current endpoint of the expansion corresponds to multiple subsequent action initiation objects, then the expansion continues along each subsequent action initiation object to form multiple branch trace segments; if the current endpoint of the expansion no longer corresponds to any action initiation object in the subsequent plan record, then the current expansion chain ends; after completing the expansion of all plan records in the above manner, a set of trace segments is obtained, which is jointly represented by the starting object, the ending object, the execution order, and the object transmission chain; the expansion here is based only on the object inheritance relationship that already exists in the plan record, and does not introduce object inference relationships outside the plan record; taking the night air conditioning zone switching as an example, if the plan record records the scheduling server issuing switching instructions to the HVAC controller, the HVAC controller issuing start / stop instructions to the air conditioning terminal, and the air conditioning terminal returning the switching completion status in sequence, then three trace segments can be formed in sequence: from the scheduling server to the HVAC controller, from the HVAC controller to the air conditioning terminal, and from the air conditioning terminal to the status return object; In S1-2, for the trace segment set formed in S1-1, the start object, end object, and execution order of each trace segment are read one by one. The start and end records with the same execution order and object succession relationship as the trace segment are extracted from the plan records. The start record is used as the starting record of the trace segment, the end record as the ending record, and the end object as the target object of the trace segment. If the same trace segment corresponds to multiple candidate start records, the record with the earliest recording time and target object that matches the end object of the trace segment is selected as the start record. If the same trace segment corresponds to multiple candidate end records, the record with the latest recording time and target object that matches the end object of the trace segment is selected as the end record. Subsequently, the trace segment preceding the current trace segment in the trace segment set is searched, and its end object can be inherited from the start object of the current trace segment. This trace segment is then identified as the preceding trace segment of the current trace segment. If no trace segment meets the condition, the current trace segment is recorded as the first trace segment. After obtaining the starting record, ending record, target, and preceding trace segment, entry and exit conditions are constructed respectively. The entry condition consists of the record type, recording time, target, and action direction corresponding to the starting record. The exit condition consists of the record type, recording time, target, and action direction corresponding to the ending record. The record type is used to limit the record category to be matched when writing later. The recording time is used to limit the position corresponding to the writing boundary. The target is used to limit the range of the writing object. The action direction is used to limit the execution direction of the record. Then, based on the successive relationship between the preceding trace segment and the current trace segment, the sequential constraint relationship of "previous trace segment first, current trace segment last" is determined. This sequential constraint relationship, along with the entry and exit conditions of the current trace segment, is written into the description information of the current trace segment for S2 to call. In S1-3, adjacent trace segments with sequential constraints obtained in S1-2 are paired up, and the recording interval between the end record of the previous trace segment and the start record of the next trace segment is calculated for each pair of adjacent trace segments. The recording interval is the time difference obtained by subtracting the recording time of the end record of the previous trace segment from the recording time of the start record of the next trace segment. Then, the object transfer chain between the object of the previous trace segment and the object of the next trace segment is read, and the number of connections between adjacent objects in the object transfer chain is accumulated to obtain the object transfer path length corresponding to the adjacent trace segment. Subsequently, the record type of the end record of the previous trace segment and the record type of the start record of the next trace segment are read to determine the record type connection relationship between the two. The record type connection relationship is determined according to the record type correspondence method already recorded in the plan record. For example, the control issuance record is connected to the status response record, the status completion record is connected to the next control issuance record, and the control issuance record is connected to the next control issuance record. After obtaining the recording interval, the length of the object transmission path, and the connection relationship of the recording types, the recording time of the last record of the previous trace segment is used as the starting reference position of the allowable misalignment range. The recording interval is used as the basic offset. Then, according to the length of the object transmission path, the trace segment is expanded level by level according to the object inheritance hierarchy. The preceding and following bound positions of the starting record of the next trace segment are determined in combination with the connection relationship of the recording types. The preceding bound position is the first write position after the end of the previous trace segment along the object inheritance hierarchy. The following bound position is the last position between the corresponding position of the recording interval and the end position of the object inheritance hierarchy expansion. The preceding and following bound positions together constitute the allowable misalignment range of the next trace segment relative to the previous trace segment. After the allowable misalignment range of all adjacent trace segments is determined, all trace segments are reordered according to the sequential constraint relationship. The entry conditions, exit conditions, and allowable misalignment ranges corresponding to each trace segment are output together with the trace segments to form the trace segment sequence required by S1. Through the above processing, the target business action is broken down into trace segments used for subsequent writing and adjacent verification. The entry boundary, exit boundary, preceding and following relationships, and allowable misalignment positions of each trace segment have corresponding value bases. When executing S2 subsequently, business records can be directly filtered and written according to the entry conditions, exit conditions, and allowable misalignment ranges, avoiding the inability to execute subsequent writing and verification due to dangling trace segment boundaries, missing object inheritance relationships, or unclear connection positions between adjacent trace segments. In practical applications: for example, when a park executes an air conditioning zoning switching plan at night, the scheduling server first sends a zoning switching command to the HVAC controller. The device then sends start / stop commands to the air conditioning terminal. After the air conditioning terminal completes the action, it sends back a status record. At this point, the action initiator, action target, action start record, action end record, and action execution order can be extracted from each plan record. Then, multiple trace segments are formed according to the object succession relationship. Subsequently, the start record, end record, target, and preceding trace segment are determined for each trace segment, and entry and exit conditions are formed. Then, the allowable misalignment range is determined based on the time difference between adjacent trace segments, the object succession level, and the record type connection method. Finally, the trace segment sequence for S2 to write to the business record is output.
[0018] S2. Match each business record with each trace segment in the trace segment sequence, and write the successfully matched business records into the corresponding trace segments according to the record occurrence time, record duration interval and record target, to form the occupancy result corresponding to each trace segment. In this embodiment, S2 is used to write the business records generated by each business system into the trace segment sequence formed by S1, so that each trace segment obtains the occupancy result used for subsequent adjacent verification and cross-system verification. During processing, the record start time, record end time, record target, and record source system are first extracted from the business records, and the entry conditions, exit conditions, allowable misalignment range, and trace segment target of each trace segment are extracted from the trace segment sequence. Then, candidate record groups are formed according to the correspondence between the record target and the trace segment target. Subsequently, the start offset, end offset, and overlap interval between the candidate record and the corresponding trace segment are calculated one by one in each candidate record group, and the business records that can be written into the trace segment are screened accordingly. Finally, the screened business records are written into the corresponding trace segment, forming an occupancy result containing the record source system, occupancy start point, and occupancy end point. This implementation process includes the following steps: In S2-1, all business records within the time period corresponding to the target business action are first collected from the power distribution system, HVAC system, access control system, elevator system, and video security system. Each business record is then organized into record items including record identifier, record start time, record end time, record target, record source system, record type, and record content. The record start time indicates the time when the business record begins to take effect or is collected, the record end time indicates the time when the business record ends to take effect or is collected, the record target indicates the equipment, control node, or status object corresponding to the business record, and the record source system indicates the business system that generated the business record. For business records with only a single record time, that record time is recorded as both the record start time and the record end time. Subsequently, the entry condition, exit condition, allowable misalignment range, and target object of each trace segment are extracted one by one from the trace segment sequence output by S1. The recording time in the entry condition serves as the entry time corresponding to the subsequent calculation of the starting offset, and the recording time in the exit condition serves as the exit time corresponding to the subsequent calculation of the ending offset. Then, each business record is grouped according to the correspondence between the record target object and the trace segment target object. Specifically, if the record target object of a business record is the same as the target object of a trace segment, the business record is directly assigned to the candidate record corresponding to that trace segment. If the target of a business record is different from the target of a trace segment, but the target of the record can be connected to the target of the trace segment in the plan record object succession relationship corresponding to S1, or the target of the trace segment can be connected to the target of the record, then the business record is assigned to the candidate record group corresponding to the trace segment. If a business record satisfies the correspondence relationship of multiple trace segments, then the business record is assigned to the candidate record group of each corresponding trace segment, and further filtered based on offset and overlapping interval in subsequent steps. After processing in the above manner, candidate record groups corresponding to each trace segment are formed. Taking the air conditioning zone switching scenario as an example, if the recording target of the terminal start-stop record in the HVAC system is air conditioning terminal A, and the target of a certain trace segment is also air conditioning terminal A, then the terminal start-stop record directly enters the candidate record group corresponding to the trace segment; if the video analysis node corresponding to the computer room video load change record in the video security system belongs to the response object after the air conditioning terminal control chain in the object inheritance relationship of the planned record, then the video load change record can also enter the candidate record group of the corresponding trace segment. In S2-2, for each candidate record group corresponding to each trace segment formed in S2-1, the start time, end time, and duration of each candidate record are read one by one. The duration of the record is the time interval from the start time to the end time. At the same time, the entry condition time, exit condition time, and allowable misalignment range of the trace segment to which the candidate record belongs are read. Then, for each candidate record, the start offset, end offset, and overlapping interval are calculated. The start offset is the time difference between the start time and the entry condition time of the candidate record, the end offset is the time difference between the end time and the exit condition time of the candidate record, and the overlapping interval is the overlapping interval after the candidate record duration interval and the allowable misalignment range intersect. If there is no overlap between the candidate record duration interval and the allowable misalignment range, the overlapping interval of the candidate record is recorded as empty. After completing the above calculations, each candidate record is checked to see if it meets the writing requirements. Specifically, if the starting offset corresponds to the record's starting time position falling between the front and back boundaries of the allowed misalignment range, and the ending offset corresponds to the record's ending time position falling between the front and back boundaries of the allowed misalignment range, and the overlapping interval is not empty, then the candidate record is determined as a successfully matched business record. If any of the above three conditions are not met, then the candidate record is not written to the current trace segment. In the case where there are multiple successfully matched business records in the same candidate record group, all successfully matched business records are retained. In the case where the same business record meets the writing requirements in multiple candidate record groups, the business record is retained in the corresponding trace segments, and its position in each trace segment is determined according to the record's starting time during subsequent writing. Here, the writing requirements are only determined by the entry condition corresponding time, the exit condition corresponding time, and the allowed misalignment range, and no additional judgment conditions are introduced. For example, during nighttime zone switching, if the start time of a certain HVAC start / stop record is later than the time corresponding to the entry condition of the corresponding trace segment, and the later position still falls within the allowable misalignment range, and the end time of the start / stop record also falls within the allowable misalignment range, and the duration of the start / stop record overlaps with the allowable misalignment range, then the start / stop record is determined as a successfully matched business record of the trace segment; if the start time of the start / stop record is earlier than the front boundary of the allowable misalignment range, or the end time is later than the rear boundary of the allowable misalignment range and there is no overlapping interval, then the start / stop record is not written into the trace segment; In S2-3, the successfully matched business records corresponding to each trace segment are sorted from front to back according to their start times, and written to the corresponding trace segments in sequence according to the sorting results. When two successfully matched business records have the same start time, the business record with the earlier end time is written first. If both the start and end times are the same, they are written in the order in which the source system is written in the business records. When writing each business record, the source system, occupation start point, and occupation end point are marked for that business record. The occupation start point is the position of the start time corresponding to the business record after it is written to the current trace segment, and the occupation end point is the position of the end time corresponding to the business record after it is written to the current trace segment. If the business record has only a single record time, the occupation start point and occupation end point are both taken from that single record time position. After all successfully matched business records are written, the source system, occupation start point, and occupation end point corresponding to all written business records in the current trace segment are saved together with the trace segment identifier to form the occupation result corresponding to the trace segment. After all trace segments are processed, the occupation result corresponding to each trace segment in the trace segment sequence is obtained. When S3 is executed subsequently, the occupation end sequence of the previous trace segment and the occupation start sequence of the next trace segment are extracted from the occupation result formed here. If a trace segment does not have a successfully matched business record in the current processing cycle, the occupancy result corresponding to the trace segment is recorded as an empty occupancy result, and the trace segment identifier is retained so that it can participate in subsequent adjacent verification in S3. Through the above processing, business records in each business system are written into the corresponding trace segment. The correspondence between the trace segment and the business record, the writing position and the source information are all located on the specific record item. When S3 is executed later, the starting point, ending point and record source system in each trace segment can be read directly to calculate the sequential relationship, continuous correspondence and object correspondence between adjacent trace segments. This avoids the impact on subsequent verification due to unclear business record screening criteria, inability to obtain values for the writing position or uncertain writing order of multiple records. In practical applications: For example, when the air conditioning zone switching is performed in the park at night, the power distribution system can generate local load change records, the HVAC system can generate terminal start-stop records, and the video security system can generate data center video analysis load change records. First, the start time, end time, object of recording, and source system of these business records are extracted. Then, combined with the trace segment sequence formed by S1, business records whose object of recording is the same as the object of trace segment or have an object succession relationship are classified into the candidate record group of the corresponding trace segment. Then, the start offset, end offset, and overlap interval between each candidate record and the corresponding trace segment are calculated to screen out the business records that meet the writing requirements. Finally, the screened business records are written into the corresponding trace segment according to the start time of recording, and an occupation result containing the source system of recording, the starting point of occupation, and the ending point of occupation is formed for S3 to continue processing.
[0019] S3. Perform adjacent verification and cross-system verification on the occupation results of each trace segment, calculate the sequential relationship, continuous correspondence relationship and object correspondence relationship between each adjacent trace segment, and output the locking relationship results between each trace segment. In this embodiment, S3 is used to perform adjacency verification and cross-system verification on sequentially adjacent trace segments. Based on the connection between the occupancy endpoint of the previous trace segment and the occupancy start point of the next trace segment, the temporal pairing result, continuous pairing result, and object transfer result are calculated step by step. Then, the pairing results formed under different record source systems are compared to obtain the locking relationship results between each adjacent trace segment. During processing, the occupancy endpoint sequence of the previous trace segment and the occupancy start point sequence of the next trace segment are extracted according to the record source system, and the temporal correction displacement is obtained by calculating the back-shift cross-correlation. Then, a pairing matrix is constructed based on the corrected sequence, and the temporal pairing set is obtained by backtracking. Subsequently, the continuous pairing set and the object transfer set are calculated based on the temporal pairing set, and the segment fingerprint is further constructed. The segment fingerprints of the same object acting on different record source systems are divided into cross-system verification set and cross-system conflict set. Finally, the candidate locking relationships are screened and verified, and the locking relationship results between each trace segment are output. This implementation process includes the following steps: In S3-1, the preceding and following trace segments, which are sequentially adjacent, are first selected from the occupancy results formed in S2. The occupancy endpoints of each business record in the preceding trace segment are extracted according to the recording source system to form an occupancy endpoint sequence. The occupancy start points of each business record in the following trace segment are extracted to form an occupancy start point sequence. Among them, the occupancy endpoint sequences under the same recording source system are arranged from front to back according to the occupancy endpoints, and the occupancy start point sequences under the same recording source system are arranged from front to back according to the occupancy start points. If a certain recording source system does not have any business records in the preceding or following trace segment, the sequence corresponding to the recording source system is recorded as an empty sequence and will not participate in the timing correction calculation of the adjacent trace segment pair in subsequent steps. Subsequently, the occupancy endpoint sequences and occupancy start point sequences corresponding to each recording source system are subjected to discrete wavelet decomposition, and the low-frequency components after decomposition are reconstructed to obtain the low-frequency occupancy endpoint sequence and the low-frequency occupancy start point sequence. Here, the sequence elements are taken from the occupation end time value or occupation start time value of the corresponding business record. The low-frequency components after discrete wavelet decomposition are used to retain the main change positions of the occupation boundary under the source system of the record. After obtaining the low-frequency sequence, each occupation end low-frequency sequence is shifted backward in time units to form multiple shift sequences. The first shift corresponds to shifting backward by one time unit, the second shift corresponds to shifting backward by two time units, until the last valid position of the occupation end low-frequency sequence is shifted to the end position of the occupation start low-frequency sequence. For each shifted sequence, the corresponding low-frequency sequence at the starting point of the occupation is aligned with the time position. The two values at the same time position are multiplied and summed to obtain the cross-correlation value corresponding to the shifted position. After calculating the cross-correlation values for all shifted positions, the shifted position with the largest cross-correlation value is taken as the time-series correction shift for the recording source system. If multiple shifted positions have the same cross-correlation value, the smaller shifted position is taken as the time-series correction shift. Finally, the occupied end-point sequence and the occupied start-point sequence are time-series corrected based on the time-series correction shift. Specifically, the occupied end-point sequence is shifted backward along the time axis by the corresponding time-series correction shift, while keeping the time position of the occupied start-point sequence unchanged, to obtain the corrected end-point sequence and the corrected start-point sequence corresponding to the recording source system. Taking the nighttime air conditioning zone switching scenario as an example, if the occupation endpoint sequence formed by the HVAC system in the previous trace segment is a number of end start and stop completion times, and the occupation starting point sequence formed in the next trace segment is a number of state feedback start times, then the two sequences can be first decomposed into discrete wavelet decompositions, and then the time sequence correction displacement between the two trace segments under the HVAC system can be obtained by calculating the back-shift cross-correlation. In S3-2, pairing matrices are constructed for the correction endpoint sequences and correction starting sequence sequences corresponding to each record source system obtained in S3-1. Specifically, the endpoint records in the correction endpoint sequence are arranged sequentially to form the rows of the pairing matrix, and the starting records in the correction starting sequence are arranged sequentially to form the columns of the pairing matrix. Each intersection position of a row and each column corresponds to a candidate pairing. When constructing the pairing matrix, if the correction endpoint sequence contains m endpoint records and the correction starting sequence contains n starting records, an m x n matrix is formed. The top left corner corresponds to the first endpoint record and the first starting record, and the bottom right corner corresponds to the last endpoint record and the last starting record. Subsequently, for each intersection position... For each candidate pair, calculate the difference between the endpoint time and the starting time, the difference between the endpoint record duration interval and the starting record duration interval, and the number of jumps between the endpoint record object and the starting record object. The difference between the endpoint time and the starting time is the difference between the starting record time and the endpoint record time. The difference between duration intervals is the absolute value of the difference between the length of the endpoint record duration interval and the length of the starting record duration interval. The number of jumps is the number of object jump levels traversed from the endpoint record object to the starting record object according to the object transmission order in the plan record. If there is no transmission path between the two, the number of jumps is recorded as the maximum number of jumps that have occurred in the current matrix plus one. After calculating the aforementioned three items, the results of the three items at the current intersection position are added to the cumulative results already written in the left, top, and top-left adjacent positions, respectively, to obtain three summed results. The minimum value among these summed results is then written to the current intersection position as the cumulative result for that position. Here, the left adjacent position represents the position of the column before the current row, the top adjacent position represents the position of the current column in the previous row, and the top-left adjacent position represents the position of the column before the previous row. If the current intersection position is in the first row, the top and top-left adjacent positions are not used; if the current intersection position is in the first column, the left and top-left adjacent positions are not used; if the current intersection position is the top-left corner, the position is directly... The sum of the three corresponding calculation results is written to this position as the initial cumulative result. After all the intersection positions have been written with the cumulative results, starting from the bottom right corner of the pairing matrix, the cumulative results of its left neighbor, top neighbor, and top left neighbor are compared. The cumulative results are then backtracked step by step from the neighboring position with the smallest cumulative result to the top left corner position. The pairing relationship between the endpoint record and the starting record passed through the backtracking path is output in sequence to form the temporal pairing set corresponding to the source system of the record. If the cumulative results of multiple neighboring positions are the same during the backtracking process, the top left neighbor position is selected first, followed by the left neighbor position, and finally the top neighbor position, in order to maintain the sequential relationship between the endpoint record and the starting record in the preceding and following sequences. In S3-3 and S3-4, firstly, based on the temporal pairing set corresponding to each record source system, for each pairing record, the endpoint record duration interval in the previous trace segment and the starting record duration interval in the next trace segment are read, and the overlap length and crossing length between them are calculated; where, the overlap length is the interval length of the overlapping part of the two duration intervals, if the two duration intervals do not overlap, the overlap length is recorded as zero; the crossing length is the sum of the interval lengths of the two duration intervals beyond the overlapping part; then, the object acting on the previous trace segment and the object acting on the next trace segment are read, and the object acting on the previous trace segment is expanded level by level to the object acting on the next trace segment according to the object transfer order determined by the planned record in S1; if an object at a certain level during the expansion process... If the next receiving object in the planned record is consistent, the expansion continues. If the object that eventually reaches the object acting on the next trace segment is reached, the expansion is recorded as an arrival, and the object receiving chain is written into the object transfer result of the pairing record. If the expansion cannot continue to the object acting on the next trace segment at a certain level, the expansion is recorded as an interruption. After processing all the pairing records in the above manner, the continuous pairing set and object transfer set corresponding to each record source system are obtained. Then, for the same object acting on the time-series pairing set, continuous pairing set, and object transfer set in different record source systems, segment fingerprints are constructed in sequence according to the pairing order. Each segment fingerprint includes the record source system, pairing order, overlap length, traversal length, number of arrivals, and number of interruptions. In this process, the pairing order is determined by the sequential number of the paired record in the time-series pairing set of the record source system, and the arrival count and interruption count are statistical results obtained during the object transmission and expansion process of the paired record. After the segment fingerprint is constructed, segment fingerprints with the same object action and the same pairing order in different record source systems are compared item by item: first, the pairing order is compared to see if they are consistent; then, the overlap length is compared to see if it increases simultaneously relative to the overlap length corresponding to the previous pairing order in the same record source system; then, the traversal length is compared to see if it decreases simultaneously relative to the traversal length corresponding to the previous pairing order in the same record source system; finally, the arrival count and interruption count are compared to see the previous pairing count in the same record source system. The matching order corresponds to whether the direction of change of the values is consistent. If all four comparison results are consistent, the segment fingerprint is assigned to the cross-system verification set. If any comparison result is inconsistent, the segment fingerprint is assigned to the cross-system conflict set. Taking the air conditioning zone switching scenario as an example, if the HVAC system and the video security system have formed the same matching order for the same air conditioning terminal control chain, and the overlap length in both systems has increased compared to the previous matching order, the traversal length has decreased compared to the previous matching order, the number of arrivals has increased, and the number of interruptions has decreased, then the segment fingerprints corresponding to the two systems are assigned to the cross-system verification set. If the number of interruptions in one system increases while the number of interruptions in the other system decreases, then it is assigned to the cross-system conflict set. In S3-5, candidate locking relationships are first constructed using the temporal pairing set, continuous pairing set, and object transfer set corresponding to each record source system, as well as the cross-system verification set and cross-system conflict set corresponding to each adjacent trace segment as input. Each candidate locking relationship is formed by combining a set of temporal pairing results, a set of continuous pairing results, and a set of object transfer results, and corresponds to a set of cross-system verification results and cross-system conflict results. Subsequently, for each candidate locking relationship, the number of unpaired records, the total traversal length, the total number of interruptions, and the number of segment fingerprints in the cross-system conflict set are counted. The number of unpaired records is taken from the correction endpoint sequence or correction... The number of records in the starting sequence that have not entered the temporal pairing set; the total traversal length is the sum of the traversal lengths of all paired records under the candidate locking relationship; the total number of interruptions is the sum of the number of object transmission and unfolding interruptions under the candidate locking relationship; the number of segment fingerprints in the cross-system conflict set is the total number of segment fingerprints included in the cross-system conflict set; after completing the statistics, candidate locking relationships are retained in descending order of the number of unpaired records, the total traversal length, the total number of interruptions, and the number of segment fingerprints in the cross-system conflict set. Specifically, the number of unpaired records in different candidate locking relationships is compared first, and the candidate locking relationship with the smaller number of unpaired records is retained. If the number of unpaired records for multiple candidate locking relationships is the same, continue comparing the total traversal length and retain the candidate locking relationship with the smaller total traversal length. If the total traversal length is still the same, continue comparing the total number of interruptions. If the total number of interruptions is still the same, continue comparing the number of segment fingerprints in the cross-system conflict set. After one retention is completed, substitute the retained candidate locking relationships back into S3-2 to S3-4, recalculate the temporal pairing set, continuous pairing set, object transit set, cross-system verification set, and cross-system conflict set, and repeat the above statistical and retention process. If the retained candidate locking relationships are the same in two consecutive rounds of calculation, stop the calculation and output the candidate locking relationship as the locking relationship result between the previous trace segment and the next trace segment. If the retained candidate locking relationships are different in two rounds of calculation, continue repeating the above process. Here, "the candidate locking relationships retained in two consecutive rounds of calculation are all the same" means that the temporal pairing results, continuous pairing results, and object transfer results retained in the two rounds of calculation are all the same item by item; thus, the locking relationship results output by S3 retain not only the temporal inheritance relationship between adjacent trace segments, but also the continuous inheritance relationship and the object inheritance relationship, for S4 to continue to determine the break, reversal, or squeezing. Through the above processing, the occupancy boundary between the preceding and following trace segments is first corrected by time sequence, then undergoes pairing matrix backtracking, continuous pairing calculation, object transfer expansion, and cross-system segment fingerprint comparison. Finally, a locking relationship result describing the connection state of adjacent trace segments is obtained. When executing S4 subsequently, this locking relationship result can be directly used to determine whether there are breaks, reversals, or encroachments in the trace segment sequence, avoiding the impact of misaligned occupancy boundaries, unstable pairing relationships, or conflicts between different record source systems on the identification of abnormal trace segment intervals. In practical applications: for example, when the air conditioning zone switching plan is executed at night in a park, the preceding trace segment can correspond to the execution completion record after the HVAC controller issues start / stop commands, and the following trace segment can correspond to the status of the air conditioning terminal. The returned records are first processed by extracting the occupied endpoint sequence and occupied start sequence from the recording source systems, such as HVAC systems and video security systems. The temporal correction displacement of each recording source system is then obtained through discrete wavelet decomposition and backward cross-correlation calculation. Subsequently, a pairing matrix is constructed based on the corrected sequences, and a temporal pairing set is formed by backtracking. The overlap length and crossing length of the continuous interval are then calculated, and the number of arrivals and interruptions are counted according to the object transmission order in the planned records. Then, the segment fingerprints of the same air conditioning terminal object in different recording source systems are compared to obtain the cross-system verification set and cross-system conflict set. Finally, the locking relationship results between the previous trace segment and the next trace segment are output through candidate locking relationship screening and repeated verification for further processing by S4.
[0020] S4. Based on the locking relationship result, determine whether there is a break, reversal or squeezing in the trace segment sequence, and when there is a break, reversal or squeezing, determine the corresponding abnormal trace segment interval, and output the consistency judgment result and abnormal trace segment interval corresponding to the target business action. In this embodiment, S4 is used to identify abnormal positions in the trace segment sequence based on the locking relationship result output by S3, and to group the abnormal positions into abnormal trace segment intervals, and then give a consistency judgment result for the target business action accordingly. During processing, the sequential relationship, continuous correspondence, and object correspondence between adjacent trace segments are compared item by item to identify reverse trace segment pairs, broken trace segment pairs, and squeezed trace segment pairs. Then, consecutive abnormal trace segment pairs are connected to form abnormal trace segment intervals. Finally, a consistency judgment result is output based on the number of trace segments covered by the abnormal trace segment interval. This implementation process includes the following steps: In S4-1, the locking relationship results between adjacent trace segments are first read sequentially from the trace segment sequence. For each adjacent trace segment, the order of precedence in the sequential relationship, the order of overlap in the continuous correspondence, and the object transfer order in the object correspondence are extracted. Then, the arrangement order of the adjacent trace segment in the trace segment sequence is read, and the aforementioned three orders are compared with the arrangement order. If the preceding trace segment in the sequential relationship is inconsistent with the preceding trace segment in the arrangement order, the adjacent trace segments are recorded as a reversed trace segment pair. If the starting position of the later trace segment in the continuous correspondence is earlier than the ending position of the previous trace segment, the adjacent trace segments are recorded as a broken trace segment pair. If the object transfer order contains an object that is neither the object of the previous trace segment nor... If an object is an object that acts on the next trace segment but is not located in the planned transmission path of both, then that object is recorded as an inserted object, and the corresponding adjacent trace segment is recorded as a squeeze trace segment pair. After comparing all adjacent trace segments, the reverse trace segment pair, the broken trace segment pair, and the squeeze trace segment pair are output respectively. Taking nighttime air conditioning zone switching as an example, if an adjacent trace segment should be "control issued first, status returned later" in the trace segment sequence, but the locking relationship result shows that the status returned first and the control issued later, then the adjacent trace segment pair is recorded as a reverse trace segment pair. If the starting position of the status returned falls before the ending position of the previous control action, then it is recorded as a broken trace segment pair. If an access control object that is not on the control chain is inserted in the object transmission order, then it is recorded as a squeeze trace segment pair. In S4-2, the reverse trace segment pairs, fracture trace segment pairs, and extrusion trace segment pairs obtained in S4-1 are arranged according to the position of the trace segments in the trace segment sequence. Then, each type of abnormal trace segment pair is compared one by one. If the next trace segment of the previous abnormal trace segment pair is the same as the previous trace segment of the next abnormal trace segment pair, the two abnormal trace segment pairs are connected into the same continuous abnormal segment. If they are not the same, the current connection is ended, and the connection is restarted from the next abnormal trace segment pair. After the connection of abnormal trace segment pairs of the same type is completed, the first trace segment to the last trace segment after connection is determined as an abnormal trace segment interval, and the starting trace segment and the ending trace segment corresponding to the abnormal trace segment interval are recorded. If the same trace segment falls into different types of abnormal trace segment pairs at the same time, the connection is continued according to the position of the trace segments in the trace segment sequence, and the continuous interval after connection is output as an abnormal trace segment interval, thereby avoiding the repeated generation of overlapping abnormal trace segment intervals. After processing, the starting trace segment and the ending trace segment corresponding to each abnormal trace segment interval are output. In S4-3, first, the total number of trace segments in the trace segment sequence is counted; then, the starting and ending trace segments of each abnormal trace segment interval are read, and the number of trace segments covered by each abnormal trace segment interval is counted according to the position of the trace segment in the trace segment sequence; subsequently, the number of trace segments covered by each abnormal trace segment interval is accumulated to obtain the total number of abnormal trace segments; if the total number of abnormal trace segments is zero, the consistency judgment result corresponding to the target business action is output as consistent; if the total number of abnormal trace segments is not zero, the consistency judgment result corresponding to the target business action is output as inconsistent, and each abnormal trace segment interval is output simultaneously; here, consistency means that no reversal, breakage, or squeezing is identified in the trace segment sequence corresponding to the target business action; inconsistency means that at least one abnormal trace segment interval exists in the trace segment sequence corresponding to the target business action. Through the above processing, abnormal positions in the trace segment sequence are converted into abnormal trace segment intervals, and further form a consistency judgment result for the target business action. When S5 is executed subsequently, the consistency record and the record to be separated can be directly output based on the consistency judgment result, avoiding the impact of scattered abnormal positions, unclear interval boundaries, or unstable judgment criteria on subsequent processing. In practical applications: for example, when the air conditioning zoning switch is performed in the park at night, if the status feedback between two adjacent trace segments is earlier than the control issuance, the feedback start position falls before the termination position of the previous trace segment, or a video analysis node unrelated to the air conditioning control chain is inserted during the object transfer process, they are first recorded as reverse trace segment pairs, broken trace segment pairs, or squeezed trace segment pairs, respectively; then, the abnormal trace segment pairs with continuous positions are connected to form an abnormal trace segment interval; finally, the number of trace segments covered by the abnormal trace segment interval is counted, and the consistency judgment result and abnormal trace segment interval corresponding to this air conditioning zoning switch are output.
[0021] S5. Based on the consistency determination result, output the sequence of trace segments where the locking relationship is established as the consistency record corresponding to the target business action, and output the abnormal trace segment interval as the record to be separated, for subsequent linkage determination or operation tracing call. In this embodiment, S5 is used to convert the consistency judgment result obtained in S4 into the output result of subsequent linkage judgment or direct call of operation tracing. Trace segments that do not fall into the abnormal trace segment interval are used to form a consistency record corresponding to the target business action, while trace segments that fall into the abnormal trace segment interval are used to form a record to be separated. During processing, the consistency judgment result, trace segment sequence, locking relationship result, and abnormal trace segment interval are read first. Then, according to the arrangement order of the trace segments in the trace segment sequence, the occupancy result and locking relationship result corresponding to the trace segments that do not fall into the abnormal trace segment interval are extracted and a consistency record is formed. Subsequently, the corresponding occupancy result and locking relationship result are extracted according to the starting and ending trace segments of each abnormal trace segment interval, and together with the position of the abnormal trace segment interval, a record to be separated is formed. This implementation process includes the following steps: In S5-1, the consistency judgment result, trace segment sequence, locking relationship result between adjacent trace segments, and abnormal trace segment intervals corresponding to the target business action are first obtained. The trace segment sequence determines the arrangement position of each trace segment in the target business action, the locking relationship result determines the connection result between adjacent trace segments, and the abnormal trace segment interval determines the range of trace segments to be removed. Then, each trace segment is traversed sequentially according to its arrangement in the trace segment sequence. It is determined whether the current trace segment falls into any abnormal trace segment interval. If the current trace segment is not located between the start and end trace segments of any abnormal trace segment interval, the occupancy result corresponding to the current trace segment is written to the consistency record, and the locking relationship results of the adjacent trace segments that also do not fall into abnormal trace segment intervals are written to the consistency record in sequential order. If the current trace segment is located within... Between the starting and ending trace segments of a certain abnormal trace segment interval, the trace segment and its corresponding locking relationship result are skipped and not written into the consistency record. If the consistency judgment result is consistent, the abnormal trace segment interval is empty. At this time, the occupation results corresponding to all trace segments and the locking relationship results between all adjacent trace segments are written in the order of the trace segment sequence. If the consistency judgment result is inconsistent, only the occupation results and locking relationship results corresponding to the trace segments that do not fall into the abnormal trace segment interval are written. After completing the traversal of all trace segments, the written content is organized in the order of "target business action identifier - trace segment order - occupation result - locking relationship result" to form the consistency record corresponding to the target business action. Here, the occupation result is taken from the trace segment occupation result output by S2, and the locking relationship result is taken from the locking relationship results between each adjacent trace segment output by S3. The two are not recalculated. Here, taking nighttime air conditioning zone switching as an example, if the first trace segment to the third trace segment does not fall into the abnormal trace segment interval during a certain switching, while the fourth trace segment to the fifth trace segment falls into the abnormal trace segment interval, then the consistency record will write the occupancy results of the first trace segment, the second trace segment, and the third trace segment, as well as the locking relationship results between the first trace segment and the second trace segment, and between the second trace segment and the third trace segment. In S5-2, the corresponding truncation range is first determined according to the starting and ending trace segments of each abnormal trace segment interval. Then, the occupancy results corresponding to each trace segment are truncated sequentially from the starting trace segment to the ending trace segment according to the arrangement order of the trace segments in the trace segment sequence. At the same time, the locking relationship results between adjacent trace segments within the truncation range are also truncated. If the previous and next trace segments connected by a certain locking relationship result are both within the truncation range, the locking relationship result is written to the current record to be separated. If only one trace segment is within the truncation range, the locking relationship result is not written to the current record to be separated. Subsequently, the captured occupation and locking relationship results are associated with the positions of the corresponding abnormal trace segment intervals. The positions of the abnormal trace segment intervals include at least the positions of the starting trace segment and the ending trace segment in the trace segment sequence. If there are multiple abnormal trace segment intervals, the above-mentioned truncation and association processing is performed on each abnormal trace segment interval separately, forming multiple records to be separated. After all abnormal trace segment intervals are processed, the records to be separated are output. These records to be separated are used to separately retain the occupation and locking relationship results corresponding to the abnormal trace segment intervals for subsequent linkage judgment or running tracking reading. For example, during the air conditioning zone switching process, if the 4th trace segment to the 5th trace segment constitutes an abnormal trace segment interval, then the corresponding occupancy results are extracted sequentially from the 4th trace segment to the 5th trace segment, and the locking relationship results between the 4th trace segment and the 5th trace segment are extracted. Then, the above extracted content and the interval position of "starting position is the 4th trace segment and ending position is the 5th trace segment" are combined to form a record to be separated. Through the above processing, the normal trace segment and abnormal trace segment corresponding to the target business action are output separately. The occupation result and locking relationship result that do not fall into the abnormal trace segment interval form a consistent record, while the occupation result and locking relationship result that fall into the abnormal trace segment interval form a record to be separated. When calling later, it can be read directly according to the record type to avoid the normal part and the abnormal part being mixed in the same output result and affecting the linkage judgment or operation tracking. In practical applications: For example, when the air conditioning zone switching is performed in the park at night, if there are no abnormalities in the control issuance, equipment execution and status feedback processes corresponding to the first 3 trace segments, but there is a break or encroachment between the 4th and 5th trace segments, then firstly, the occupation results corresponding to the first 3 trace segments and the locking relationship results between them are spliced together according to the trace segment order to form a consistency record of this air conditioning zone switching; then, the corresponding occupation results and locking relationship results are extracted according to the interval range of the 4th and 5th trace segments, and together with the position of the interval in the trace segment sequence, a record to be separated is formed for subsequent tracking of the formation process of abnormal positions in this switching.
[0022] Working Principle: This solution first extracts the action initiating object, action target object, start record, end record, and execution order from the plan records corresponding to the target business action. It then expands these records according to object succession relationships to form a trace segment sequence, and determines the entry conditions, exit conditions, and allowable misalignment range for each trace segment. Next, the business records generated by each business system are grouped according to the correspondence between the record target object and the trace segment target object. The starting offset, ending offset, and overlap interval between the business record and the trace segment are calculated. Business records that meet the writing requirements are written to the corresponding trace segment, forming an occupation result. Based on this, sequential correction, record pairing, continuous interval calculation, and object transfer comparison are performed on sequentially adjacent trace segments to obtain the locking relationship results between adjacent trace segments. Then, based on the locking relationship results, it identifies whether there are breaks, reversals, or encroachments in the trace segment sequence, forming abnormal trace segment intervals. Finally, the portion not falling into the abnormal trace segment interval is output as a consistent record, and the portion falling into the abnormal trace segment interval is output as a record to be separated, thus separating and retaining the normal connection part and the abnormal interference part in cross-business data. For example, when performing air conditioning zone switching at night in the park, the scheduling server first sends a switching command to the HVAC controller, which then sends start / stop commands to the air conditioning terminals. After the air conditioning terminals complete their actions, they send back their status. At the same time, the power distribution system, video security system, etc., will also generate load change records and status change records related to this process. This solution first forms corresponding trace segments based on the above planned actions, and then writes the business records of the HVAC, power distribution, video security and other systems into the corresponding trace segments. Then, it checks whether the adjacent trace segments still maintain their original order in terms of time sequence, continuity, and object transfer. If the connection is normal, this part of the process is retained as a consistent record. If the status is advanced, the order is reversed, or irrelevant objects are inserted in the middle, the corresponding interval is identified separately and output as a record to be separated. Subsequently, it can be directly used to determine which processes of this air conditioning zone switching are normal and which locations have abnormal interference.
[0023] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for cross-business data consistency processing for comprehensive park management, characterized in that, include: S1. Obtain the plan records corresponding to the target business actions within the park, as well as the business records corresponding to the power distribution system, HVAC system, access control system, elevator system, and video security system. Generate a sequence of trace segments arranged in order of precedence constraints based on the execution chain of the target business actions, and output the entry conditions, exit conditions, and allowable misalignment range corresponding to each trace segment in the trace segment sequence. S2. Match each business record with each trace segment in the trace segment sequence, and write the successfully matched business records into the corresponding trace segments according to the record occurrence time, record duration interval and record target, to form the occupancy result corresponding to each trace segment. S3. Perform adjacent verification and cross-system verification on the occupation results of each trace segment, calculate the sequential relationship, continuous correspondence relationship and object correspondence relationship between each adjacent trace segment, and output the locking relationship results between each trace segment. S4. Based on the locking relationship result, determine whether there is a break, reversal or squeezing in the trace segment sequence, and when there is a break, reversal or squeezing, determine the corresponding abnormal trace segment interval, and output the consistency judgment result and abnormal trace segment interval corresponding to the target business action. S5. Based on the consistency determination result, output the sequence of trace segments where the locking relationship is established as the consistency record corresponding to the target business action, and output the abnormal trace segment interval as the record to be separated, for subsequent linkage determination or operation tracing call.
2. The method for cross-business data consistency processing for comprehensive park management and control as described in claim 1, characterized in that: S1 includes: S1-1. Obtain the action initiating object, action acting object, action start record, action end record, and action execution order from the plan record corresponding to the target business action. Expand the transmission relationship between the action initiating object and the action acting object according to the action execution order to form a set of trace segments corresponding to the target business action. S1-2. Extract the start record, end record, target, and preceding trace segment for each trace segment in the trace segment set. Determine the entry and exit conditions based on the start and end records of each trace segment, and determine the sequential constraint relationship based on the preceding trace segments of each trace segment. S1-3. For adjacent trace segments with sequential constraints, calculate the recording interval, object transmission path, and record type connection relationship between the end record of the previous trace segment and the beginning record of the next trace segment. Determine the allowable misalignment range based on the recording interval, object transmission path, and record type connection relationship, and output the trace segment sequence arranged according to sequential constraints.
3. The cross-business data consistency processing method for comprehensive park management and control as described in claim 2, characterized in that: S2 includes: S2-1. Obtain the record start time, record end time, record target and record source system corresponding to each business record, and extract the entry condition, exit condition, allowable misalignment range and target of each trace segment in the trace segment sequence. Group each business record according to the correspondence between the record target and the trace segment target to form the candidate record group corresponding to each trace segment. S2-2. For each candidate record group corresponding to each trace segment, calculate the starting offset between the record start time and the time corresponding to the trace segment entry condition, the ending offset between the record end time and the time corresponding to the trace segment exit condition, and the overlapping interval between the candidate record's continuous interval and the allowed misalignment range for each candidate record. Then, determine the candidate record whose starting offset, ending offset, and overlapping interval simultaneously meet the writing requirements as the successfully matched business record. S2-3. Write the successfully matched business records corresponding to each trace segment into the corresponding trace segment according to the record start time, and mark the record source system, occupation start point and occupation end point of each business record after writing in sequence to form the occupation result corresponding to each trace segment.
4. The cross-business data consistency processing method for comprehensive park management and control as described in claim 3, characterized in that: S3 includes: S3-1. Obtain the occupancy results corresponding to the preceding and following trace segments that are sequentially adjacent. Extract the occupancy endpoint sequence of the preceding trace segment and the occupancy start sequence of the following trace segment according to the recording source system. Perform discrete wavelet decomposition on each occupancy endpoint sequence and each occupancy start sequence and reconstruct the low-frequency sequence. Then, shift each occupancy endpoint low-frequency sequence sequentially to form multiple shifted sequences according to time units. For each shifted sequence and the corresponding occupancy start low-frequency sequence, calculate the product of the corresponding position values at each time position and accumulate them to obtain the cross-correlation value corresponding to the shifted number. Take the shifted number with the largest cross-correlation value as the time-series correction shift of the recording source system. Perform time-series correction on the occupancy endpoint sequence and the occupancy start sequence according to the time-series correction shift, and output the correction endpoint sequence and correction start sequence corresponding to each recording source system.
5. A cross-business data consistency processing method for comprehensive park management and control as described in claim 4, characterized in that: S3 further includes: S3-2. Construct a pairing matrix for the correction endpoint sequence and correction start sequence corresponding to each record source system. Arrange the endpoint records in the correction endpoint sequence in order to form the rows of the pairing matrix, and arrange the start records in the correction start sequence in order to form the columns of the pairing matrix. Take the endpoint record and start record corresponding to the intersection of any row and any column as a candidate pair. Calculate the difference between the endpoint time and the start time, the difference between the duration interval of the endpoint record and the duration interval of the start record, and the number of jumps between the target object of the endpoint record and the target object of the start record for each candidate pair. Then, add the three calculation results to the cumulative results already written in the left neighbor position, the upper neighbor position, and the upper left neighbor position of the current intersection position, respectively. Write the minimum value of each summed result to the current intersection position. Then, starting from the lower right corner of the pairing matrix, backtrack gradually from the adjacent position with the smallest cumulative result to the upper left corner position to output the time series pairing set corresponding to each record source system.
6. A cross-business data consistency processing method for comprehensive park management and control as described in claim 5, characterized in that: S3 further includes: S3-3. Based on the time-series pairing set corresponding to each record source system, calculate the overlap length and crossing length of the duration interval of the previous trace segment and the duration interval of the next trace segment for each pairing record. Then, expand the object of action of the previous trace segment to the object of action of the next trace segment step by step according to the object transfer order in the planned record. Count the number of times the object of action of the next trace segment is reached and the number of interruptions that do not reach the object of action of the next trace segment during the expansion process. Output the duration pairing set and object transfer set corresponding to each record source system. S3-4. For the same object acting on different record source systems, construct a segment fingerprint consisting of the record source system, pairing order, overlap length, traverse length, arrival count, and interruption count. Then, compare the segment fingerprints between different record source systems item by item to see if the pairing order is consistent, if the overlap length increases simultaneously, if the traverse length decreases simultaneously, and if the change direction of the arrival count and the interruption count is consistent. Segment fingerprints with consistent comparison results are assigned to the cross-system confirmation set, and segment fingerprints with inconsistent comparison results are assigned to the cross-system conflict set.
7. A cross-business data consistency processing method for comprehensive park management and control as described in claim 6, characterized in that: S3 further includes: S3-5. Taking the temporal pairing set, continuous pairing set, object transfer set corresponding to each record source system, and the cross-system verification set and cross-system conflict set corresponding to each adjacent trace segment as input, for each candidate locking relationship, count the number of unpaired records, the total traversal length, the total number of interruptions, and the number of segment fingerprints in the cross-system conflict set. Then, retain the candidate locking relationships in descending order of the four statistical results. Substitute the retained candidate locking relationships into S3-2 to S3-4 for recalculation. When the retained candidate locking relationships are the same in two consecutive rounds of calculation, output the candidate locking relationship as the locking relationship result between each trace segment.
8. A cross-business data consistency processing method for comprehensive park management and control as described in claim 7, characterized in that: S4 includes: S4-1. Obtain the locking relationship results between each adjacent trace segment in the trace segment sequence. For each adjacent trace segment, read the order of precedence in the sequential relationship, the order of preceding and following coverage in the continuous correspondence relationship, and the order of object transfer in the object correspondence relationship. Compare each of these with the order of the adjacent trace segment in the trace segment sequence. Record the adjacent trace segments whose preceding and following order is opposite to the order of the arrangement as reversed trace segment pairs. Record the adjacent trace segments whose starting position in the preceding and following coverage order falls before the ending position of the preceding trace segment as broken trace segment pairs. Record the adjacent trace segments in the object transfer order that contain inserted objects that are not objects acting on the preceding trace segment and objects acting on the following trace segment as squeezed trace segment pairs. Output the reversed trace segment pairs, broken trace segment pairs, and squeezed trace segment pairs.
9. A cross-business data consistency processing method for comprehensive park management and control as described in claim 8, characterized in that: S4 further includes: S4-2. Arrange the reverse trace segment pairs, fracture trace segment pairs, and squeeze trace segment pairs according to the position of the trace segments in the trace segment sequence. Connect the adjacent abnormal trace segment pairs where the next trace segment of the previous abnormal trace segment pair is the same as the previous trace segment of the next abnormal trace segment pair. Determine the first trace segment to the last trace segment after the connection as an abnormal trace segment interval. Output the starting trace segment and ending trace segment corresponding to each abnormal trace segment interval. S4-3. Count the total number of trace segments in the trace segment sequence, count the number of trace segments covered by each abnormal trace segment interval and sum them up to get the total number of abnormal trace segments. When the total number of abnormal trace segments is zero, output the consistency judgment result corresponding to the target business action as consistent. When the total number of abnormal trace segments is not zero, output the consistency judgment result corresponding to the target business action as inconsistent, and output each abnormal trace segment interval simultaneously.
10. A cross-business data consistency processing method for comprehensive park management and control as described in claim 9, characterized in that: S5 includes: S5-1. Obtain the consistency judgment result, trace segment sequence, locking relationship result and abnormal trace segment interval. Concatenate the occupation result and locking relationship result corresponding to the trace segment that does not fall into the abnormal trace segment interval according to the arrangement order of the trace segment in the trace segment sequence, and output the consistency record corresponding to the target business action. S5-2. Extract the corresponding occupation and locking results from the starting and ending trace segments of each abnormal trace segment interval, associate the extracted content with the position of the abnormal trace segment interval, and output the record to be separated.