Process safety core data construction method and device, equipment and medium

By utilizing link configuration rules and time synchronization to generate hardware timestamps during multi-source information acquisition and transmission in industrial settings, cross-link matching and integrity verification are achieved, resolving the correlation deviation problem caused by unstable information arrival order and improving the stability and reliability of data correlation.

CN121967475APending Publication Date: 2026-05-01BEIJING UNIWORK TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING UNIWORK TECH DEV CO LTD
Filing Date
2026-02-26
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

In the current process of multi-source information collection and transmission in industrial sites, there are problems such as unstable information arrival order, inconsistent sampling frequency, and uncertainty of network transmission delay leading to correlation deviation. There is also a lack of unified quality expression and management, which affects data governance costs and application efficiency.

Method used

By acquiring preset link configuration rules, performing time synchronization processing to form an edge time stamp benchmark, generating hardware timestamps and performing cross-link matching and alignment, and combining integrity verification to generate data quality labels, the stability and reliability of data association are ensured.

Benefits of technology

It reduces the interference of link jitter and out-of-order arrival on the association relationship, improves the reliability and reproducibility of multi-source information association results, and reduces the risk of misuse due to association errors or omissions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121967475A_ABST
    Figure CN121967475A_ABST
Patent Text Reader

Abstract

The invention relates to a process security core data construction method, device, equipment and medium, and the method comprises the steps: executing time synchronization processing according to production process communication link information and security engineering communication link information to obtain edge time mark reference information, receiving production process perception data flow information based on the production process communication link information, and transmitting the production process perception data flow information to the security engineering communication link information. Receiving security engineering perception data flow information based on security engineering communication link information, obtaining hardware timestamp information based on edge time mark reference information, executing integrity verification on the aligned and fused data to obtain integrity verification result information, generating data quality label information based on the integrity verification result information, and sending the data quality label information to a server; and packaging the aligned fusion data and the data quality label information to generate safety production core data. The method has the effect of improving the reliability of the multi-source information association result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a method, apparatus, equipment and medium for constructing core process safety data. Background Technology

[0002] In existing industrial settings, multi-source parallel data acquisition and multi-path reporting are common. Production process information and safety assurance information are carried by different terminals, networks, and aggregation links. Due to differences in terminal timing accuracy and clock drift, coupled with uncertain delays and jitter introduced by network congestion and routing changes, the arrival order of information from different sources is unstable. When using arrival order or fixed time windows for correlation, correlation deviations are prone to occur, which are more pronounced when sampling frequencies and reporting cycles are inconsistent. At the same time, missing, duplicate, out-of-order, or local anomalies may occur during the acquisition, transmission, and aggregation processes. Existing solutions mostly focus on single-path verification and filtering, lacking a unified quality expression and management for correlation results. This makes it difficult to adopt consistent strategies in the storage, retrieval, and analysis stages, increasing data governance costs. Furthermore, fixed data organization methods cannot reflect differences in information availability, easily leading to the mixing of information with different levels of credibility, affecting the efficiency and stability of subsequent applications. Summary of the Invention

[0003] To improve the reliability of multi-source information correlation results, this application provides a method, apparatus, equipment, and medium for constructing core process safety data.

[0004] The above-mentioned objective of this application is achieved through the following technical solution:

[0005] A method for constructing core process safety data, the method comprising:

[0006] Obtain preset link configuration rule information, and determine production process communication link information and safety engineering communication link information based on the preset link configuration rule information;

[0007] Based on the time synchronization processing of the production process communication link information and the safety engineering communication link information, edge time-scale reference information is obtained;

[0008] Based on the production process communication link information, the production process sensing data stream information is received, and based on the safety engineering communication link information, the safety engineering sensing data stream information is received.

[0009] Based on the edge time stamp reference information, hardware timestamp generation processing is performed on the production process sensing data stream information and the safety engineering sensing data stream information respectively to obtain hardware timestamp information, and the hardware timestamp information is associated with the corresponding data unit.

[0010] The hardware timestamp information performs cross-link matching and alignment processing on the production process sensing data stream information and the safety engineering sensing data stream information to obtain aligned and fused data.

[0011] Perform an integrity check on the aligned and fused data to obtain the integrity check result information;

[0012] Data quality label information is generated based on the integrity verification result information, and the aligned and fused data is encapsulated with the data quality label information to generate core data for safe production.

[0013] By adopting the above technical solution, even when production process communication link information and safety engineering communication link information are transmitted in parallel and link latency fluctuates, a unified edge time stamp reference information is first formed through time synchronization processing. Then, hardware timestamp information is generated and associated with the production process perception data stream information and the safety engineering perception data stream information, respectively. This makes the cross-link matching and alignment processing driven by traceable time basis rather than by arrival order, thereby reducing the interference of link jitter, queue queuing and out-of-order arrival on the association relationship and making the association relationship of multi-source information more stable and reproducible. Furthermore, by verifying the integrity of the aligned and fused data and generating data quality label information through the integrity verification result information, each alignment and fused data association result has a verifiable quality identifier, which is output together with the alignment and fused data during encapsulation. This facilitates the subsequent use of data segments with different levels of credibility according to the data quality label information and reduces the risk of misuse due to association errors or missing data, thereby improving the reliability of multi-source information association results.

[0014] In a preferred embodiment, this application can be further configured as follows: determining the production process communication link information and the safety engineering communication link information based on the preset link configuration rule information includes:

[0015] The link category constraint rule information, link validity determination rule information, mutual exclusion constraint condition information, and link priority rule information are obtained from the preset link configuration rule information.

[0016] Based on the link category constraint rule information, the candidate link subset information for production process and the candidate link subset information for safety engineering are respectively filtered from the link candidate set information;

[0017] The validity determination process is performed on the candidate link subset information of the production process according to the link validity determination rule information to obtain the valid link subset information of the production process, and the validity determination process is performed on the candidate link subset information of the safety engineering to obtain the valid link subset information of the safety engineering.

[0018] Based on the mutual exclusion constraint information, perform mutual exclusion constraint verification processing on the effective link subset information of the production process and the effective link subset information of the safety engineering to obtain candidate link combination information that passes the mutual exclusion constraint verification.

[0019] Based on the link priority rule information, target link combination information is determined from the link combination candidate information, and the production process link in the target link combination information is determined as the production process communication link information, and the safety engineering link in the target link combination information is determined as the safety engineering communication link information.

[0020] By adopting the above technical solution, when multiple links coexist and have inconsistent states, the candidate link set information is first divided into a subset of candidate links for production processes and a subset of candidate links for safety engineering using link category constraint rules, reducing the uncertainty caused by mixed link usage. Then, the valid subset of links for production processes and the valid subset of links for safety engineering are screened out based on link validity judgment rules, reducing the risk of interruption caused by unavailable links. Furthermore, the candidate link combination information is constrained by mutual exclusion constraint conditions to avoid parallel transmission fluctuations caused by resource conflicts. Finally, the target link combination information is determined according to link priority rules, making the selection results of communication link information for production processes and communication link information for safety engineering reproducible, thereby improving the stability and consistency of subsequent cross-link alignment.

[0021] In a preferred embodiment, this application can be further configured as follows: the step of performing time synchronization processing based on the production process communication link information and the safety engineering communication link information to obtain edge time-stamped reference information includes:

[0022] Obtain preset synchronization interaction parameter information, and generate synchronization interaction message information in the production process communication link information and the safety engineering communication link information respectively according to the preset synchronization interaction parameter information;

[0023] Based on the synchronous interactive message information, round-trip delay measurement processing is performed on the production process communication link information and the safety engineering communication link information to obtain link delay estimation information;

[0024] Clock deviation calculation is performed based on the synchronization interaction message information and the link delay estimation information to obtain clock deviation information;

[0025] Based on the clock deviation information, time-scale correction processing is performed on the local timing reference information to obtain edge time-scale reference information.

[0026] By adopting the above technical solution, even when the transmission delay of communication link information in production process and communication link information in safety engineering changes with queue scheduling and congestion, synchronous interaction message information is generated through preset synchronous interaction parameters. Round-trip delay measurement is then performed on both links to obtain link delay estimation information, allowing delay uncertainty to be explicitly incorporated into synchronization calculation in a quantifiable manner. Next, clock deviation calculation is performed by combining the synchronous interaction message information and the link delay estimation information to obtain clock deviation information, making the offset between the corresponding timing references of the two links calculable. Subsequently, time-scale correction processing is performed on the local timing reference information based on the clock deviation information to obtain edge time-scale reference information. This ensures that subsequent hardware timestamp generation is performed under a unified edge time-scale reference information, thereby reducing the impact of time reference drift caused by link jitter and path changes on cross-link matching and alignment, and improving the stability and reproducibility of multi-source information association.

[0027] In a preferred embodiment, this application may be further configured such that, prior to the cross-link matching alignment process, it also includes:

[0028] Based on the production process sensing data stream information and the safety engineering sensing data stream information, the production process sampling cycle information and the safety engineering sampling cycle information are determined respectively.

[0029] The alignment window parameter information and the waiting delay parameter information are determined based on the production process sampling cycle information and the safety engineering sampling cycle information.

[0030] Based on the alignment window parameter information and the waiting delay parameter information, candidate set construction processing is performed on the data units corresponding to the production process perception data stream information and the safety engineering perception data stream information to obtain candidate set information for the cross-link matching and alignment processing.

[0031] By adopting the above technical solution, even when the sampling frequencies of the production process sensing data stream information and the safety engineering sensing data stream information are inconsistent and the reporting rhythm fluctuates, the sampling cycle information of the production process and the sampling cycle information of the safety engineering are determined separately. This ensures that the subsequent alignment parameters are based on the rhythm of the two data streams themselves. Then, the alignment window parameter information and the waiting delay parameter information are determined by the two sampling cycle information, so that the acceptable time difference range and the waiting upper limit are clearly constrained. Subsequently, based on the alignment window parameter information and the waiting delay parameter information, candidate set construction processing is performed on the two data units. This ensures that the data units entering cross-link matching and alignment have been pre-screened and uniformly organized within the time range, thereby reducing the probability of mismatch caused by irrelevant combinations, reducing the instability of association caused by out-of-order and jitter, and making the association results more stable and easier to reproduce.

[0032] In a preferred embodiment, this application can be further configured such that: the hardware timestamp information performs cross-link matching and alignment processing on the production process-aware data stream information and the safety engineering-aware data stream information, including:

[0033] Based on the candidate set information, extract the production process candidate data unit set information and the safety engineering candidate data unit set information respectively, and read the hardware timestamp information corresponding to each data unit from the production process candidate data unit set information and the safety engineering candidate data unit set information respectively;

[0034] Based on the alignment window parameter information, the time difference calculation is performed on the production process candidate data unit set information and the safety engineering candidate data unit set information to obtain candidate time difference set information, and candidate matching pair set information with an absolute time difference value not greater than the alignment window parameter information is filtered based on the candidate time difference set information;

[0035] Obtain preset alignment and sorting rule information, and perform sorting processing on the candidate matching pair set information based on the preset alignment and sorting rule information to obtain target sequence number information;

[0036] Target matching pair information is determined from the candidate matching pair set information based on the target sequence number information;

[0037] Based on the target matching information, the corresponding production process data unit and safety engineering data unit are combined to generate the aligned and fused data.

[0038] When the candidate matching pair set information is empty and the waiting delay parameter information is reached, alignment failure flag information is generated.

[0039] By adopting the above technical solution, even when the arrival order of two data streams is unstable, the system first extracts the candidate data unit set information for production process and the candidate data unit set information for safety engineering from the candidate set information and reads the hardware timestamp information. This ensures that subsequent associations are based on the hardware timestamp information. Then, the system calculates the time difference according to the alignment window parameter information and filters candidate matching pair sets whose absolute time difference is not greater than the alignment window parameter information, reducing the probability of cross-link mismatch. Furthermore, the system sorts the candidate matching pair sets using preset alignment sorting rules and obtains the target sequence number information, ensuring consistent selection results for multiple candidates within the same window. Subsequently, the system determines the target matching pair information based on the target sequence number information and combines them to generate aligned fusion data, ensuring that the fusion records have a clear one-to-one correspondence. When the candidate matching pair set information is empty and the waiting delay parameter information is reached, alignment failure marker information is generated, allowing missing or delayed scenarios to be explicitly identified and preventing erroneous fusion, thereby improving the reliability and reproducibility of the association.

[0040] In a preferred embodiment, this application can be further configured as follows: the step of performing sorting processing on the candidate matching pair set information based on the preset alignment sorting rule information to obtain target sequence number information includes:

[0041] The preset alignment and sorting rule information includes time difference hierarchical rule information, confidence correction rule information, and sorting key generation rule information;

[0042] Based on the candidate time difference set information and the time difference classification rule information, a classification mapping process is performed on each candidate matching pair in the candidate matching pair set information to obtain time difference level value information.

[0043] Based on the time synchronization reliability information and the confidence correction rule information, confidence correction processing is performed on the time difference level value information to obtain confidence correction weight information;

[0044] Based on the sorting key, generate rule information, combine the time difference level value information with the confidence correction weight information to generate aligned sorting key value information;

[0045] Based on the alignment and sorting key value information, the candidate matching pair set information is sorted to obtain the target sequence number information.

[0046] By adopting the above technical solution, when there are multiple selectable matching pairs in the candidate matching pair set information and their time differences are close, the preset alignment and sorting rule information is first decomposed into time difference hierarchical rule information, confidence correction rule information, and sorting key generation rule information, so that the sorting basis has an interpretable hierarchical structure. Then, based on the candidate time difference set information and the time difference hierarchical rule information, hierarchical mapping processing is performed on each candidate matching pair to obtain time difference level value information, so that continuous time differences are discretized into stable levels to reduce the sensitivity of jitter to sorting. Furthermore, based on the time synchronization reliability information and the confidence correction rule information, confidence correction processing is performed on the time difference level value information to obtain confidence correction weight information, so that changes in link synchronization status can be included in the matching selection process. Subsequently, according to the sorting key generation rule information, the time difference level value information and the confidence correction weight information are combined to generate alignment and sorting key value information, and the candidate matching pair set information is sorted accordingly to obtain target sequence number information. This allows the same batch of candidates to produce consistent matching selection results under different arrival orders, thereby improving the stability and reproducibility of cross-link alignment selection.

[0047] In a preferred embodiment, this application can be further configured as follows: Data quality label information is generated based on the integrity verification result information, and the aligned and fused data is encapsulated with the data quality label information to generate core data for safe production, including:

[0048] The data quality label information is generated based on the integrity verification result information;

[0049] The encapsulation strategy information is determined based on the data quality label information, and the encapsulation strategy information includes at least standard encapsulation strategy information and degraded encapsulation strategy information.

[0050] When the encapsulation strategy information indicates the standard encapsulation strategy information, the aligned and fused data and the data quality label information are subjected to standard encapsulation processing to generate the core data for safe production;

[0051] When the encapsulation strategy information indicates the degradation encapsulation strategy information, the aligned and fused data and the data quality label information are subjected to degradation encapsulation processing to generate the core data for safe production.

[0052] By adopting the above technical solution, in cases where there are missing, abnormal, or inconsistent records in the aligned and fused data, data quality label information can be generated first based on the integrity verification results, so that the quality status of each aligned and fused data has a traceable identifier. Then, the encapsulation strategy information is determined according to the data quality label information, and the standard encapsulation strategy information and the degraded encapsulation strategy information are selected. The encapsulation method is adaptively switched according to the quality status. When the encapsulation strategy information indicates the standard encapsulation strategy information, the aligned and fused data and data quality label information are subjected to standard encapsulation processing, ensuring that the quality status can be directly output with the record and facilitates subsequent consistent parsing. When the encapsulation strategy information indicates the degraded encapsulation strategy information, degraded encapsulation processing is performed, so that scenarios with missing fields or abnormal records are explicitly distinguished in the encapsulation stage and output according to the strategy. This avoids data with different levels of credibility being treated equally and reduces the risk of misuse, thereby improving the controllability and consistency of core data for safe production.

[0053] The second objective of this invention is achieved through the following technical solution:

[0054] A process safety core data construction device, the process safety core data construction device comprising:

[0055] The link determination module is used to obtain preset link configuration rule information and determine the production process communication link information and the safety engineering communication link information based on the preset link configuration rule information.

[0056] The time-stamping module is used to perform time synchronization processing based on the production process communication link information and the safety engineering communication link information to obtain edge time-stamping reference information;

[0057] The data receiving module is used to receive production process sensing data stream information based on the production process communication link information, and to receive safety engineering sensing data stream information based on the safety engineering communication link information.

[0058] The timestamp marking module is used to perform hardware timestamp generation processing on the production process sensing data stream information and the safety engineering sensing data stream information based on the edge timestamp reference information, respectively, to obtain hardware timestamp information, and associate the hardware timestamp information with the corresponding data unit.

[0059] The data alignment module is used to perform cross-link matching and alignment processing on the production process sensing data stream information and the safety engineering sensing data stream information with the hardware timestamp information to obtain aligned and fused data;

[0060] The verification module is used to perform integrity verification on the aligned and fused data and obtain integrity verification result information;

[0061] The encapsulation module is used to generate data quality label information based on the integrity verification result information, and encapsulate the aligned and fused data with the data quality label information to generate core data for safe production.

[0062] By adopting the above technical solution, even when production process communication link information and safety engineering communication link information are transmitted in parallel and the link latency fluctuates, a unified edge time stamp reference information is first formed through time synchronization processing. Then, hardware timestamp information is generated and associated with the production process perception data stream information and the safety engineering perception data stream information, respectively. This makes the cross-link matching and alignment processing driven by traceable time basis rather than by arrival order, thereby reducing the interference of link jitter, queue queuing and out-of-order arrival on the association relationship and making the association relationship of multi-source information more stable and reproducible.

[0063] The above-mentioned objective three of this application is achieved through the following technical solution:

[0064] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described method for constructing core process safety data.

[0065] The fourth objective of this application is achieved through the following technical solution:

[0066] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described method for constructing core process safety data.

[0067] In summary, this application includes at least one of the following beneficial technical effects:

[0068] 1. By adopting the above technical solution, even when production process communication link information and safety engineering communication link information are transmitted in parallel and the link latency fluctuates, a unified edge time stamp reference information is first formed through time synchronization processing. Then, hardware timestamp information is generated and associated with the production process perception data stream information and the safety engineering perception data stream information, respectively. This makes the cross-link matching and alignment processing driven by traceable time basis rather than by arrival order, thereby reducing the interference of link jitter, queue queuing and out-of-order arrival on the association relationship and making the association relationship of multi-source information more stable and reproducible. Furthermore, by generating data quality label information through integrity verification of the aligned and fused data and integrity verification result information, each alignment and fused data association result has a verifiable quality identifier, which is output together with the alignment and fused data during encapsulation. This facilitates the subsequent use of data segments with different levels of credibility according to the data quality label information and reduces the risk of misuse due to association errors or missing data, thereby improving the reliability of multi-source information association results. Attached Figure Description

[0069] Figure 1 This is a flowchart of a method for constructing core process safety data in one embodiment of this application.

[0070] Figure 2 This is a schematic diagram of a process safety core data construction device according to one embodiment of this application. Detailed Implementation

[0071] The present application will be further described in detail below with reference to the accompanying drawings.

[0072] In one embodiment, such as Figure 1 As shown, this application discloses a method for constructing core process safety data, which specifically includes the following steps:

[0073] S10: Obtain preset link configuration rule information, and determine the production process communication link information and the safety engineering communication link information based on the preset link configuration rule information.

[0074] In this embodiment, the preset link configuration rule information refers to the set of configuration content used to describe the production process communication link information and the safety engineering communication link information. The preset link configuration rule information includes a link identifier field and a link attribute field. The link identifier field is used to uniquely identify a communication link, and the link attribute field is used to represent the correspondence between the communication link and the business scenario. The production process communication link information refers to the link description information of the communication link corresponding to the production process scenario, and the safety engineering communication link information refers to the link description information of the communication link corresponding to the safety engineering scenario.

[0075] Specifically, when performing the acquisition process on the preset link configuration rule information, the preset link configuration rule information is read from the preset configuration storage location and structured parsing is performed on the preset link configuration rule information. The structured parsing process refers to extracting the link identifier field and the link attribute field according to the field boundaries to form a searchable set of link entries. Then, in the set of link entries, matching and filtering processes are performed according to the link attribute constraints corresponding to the production process scenario and the link attribute constraints corresponding to the safety engineering scenario. The matching and filtering process refers to performing an equal value comparison on the scenario identifier value in the link attribute field to lock the link entries that meet the conditions. The link identifier field and the link attribute field of the link entries that meet the conditions of the production process scenario are combined to determine the production process communication link information, and the link identifier field and the link attribute field of the link entries that meet the conditions of the safety engineering scenario are combined to determine the safety engineering communication link information.

[0076] S20: Based on the time synchronization processing of the production process communication link information and the safety engineering communication link information, edge time-stamped reference information is obtained.

[0077] In this embodiment, time synchronization processing refers to the process of establishing a unified time correspondence between the two communication paths corresponding to the production process communication link information and the safety engineering communication link information. Edge time reference information refers to time reference information used to characterize the local timing reference and to subsequently perform time calibration on multi-source data. Local timing reference refers to the timing reference used on the edge side for measuring time.

[0078] Specifically, during time synchronization processing, the start time of synchronization interaction is selected on the communication paths corresponding to the production process communication link information and the safety engineering communication link information, and synchronization interaction message information is generated. The synchronization interaction message information refers to the interaction data unit carrying the sending time mark. Then, bidirectional interaction processing is performed between the two communication paths to obtain the time mark set during the round-trip process of the message. The time mark set refers to the set of timing readings obtained by sampling the local timing reference at the sending and receiving times. Then, round-trip delay calculation processing and clock deviation calculation processing are performed based on the time mark set. Round-trip delay calculation processing refers to performing differential operation on the sending and receiving readings of the same synchronization interaction message information to obtain the estimated round-trip delay value. Clock deviation calculation processing refers to symmetrically distributing the estimated round-trip delay values ​​of the two communication paths and performing differential operation on the timing readings on both sides to obtain clock deviation information. Finally, time scale correction processing is performed on the local timing reference based on the clock deviation information. Time scale correction processing refers to updating the timing readings of the local timing reference by adding or subtracting according to the correction amount corresponding to the clock deviation information to form a unified reference timing reading. The reference definition of the corrected timing reading and the correction amount information are recorded together as edge time scale reference information.

[0079] S30: Receive production process sensing data stream information based on production process communication link information, and receive safety engineering sensing data stream information based on safety engineering communication link information.

[0080] In this embodiment, the production process sensing data stream information refers to the time-series data set formed by the production process sensing data units that arrive continuously along the production process communication link information, and the safety engineering sensing data stream information refers to the time-series data set formed by the safety engineering sensing data units that arrive continuously along the safety engineering communication link information. A data unit refers to the smallest data organization unit that is transmitted and processed on the communication link. A data unit includes at least a data source identifier field and a data content field. The data source identifier field is used to characterize the sensing source corresponding to the data unit, and the data content field is used to carry the sensing data value. A time-series data set refers to a sequence of multiple data units organized according to the arrival order or the receiving order.

[0081] Specifically, when receiving production process sensing data stream information, the receiving channel configuration parameters are determined based on the production process communication link information, and the receiving channel establishment process is completed. The receiving channel establishment process refers to locating the communication access point based on the link identifier field in the production process communication link information and putting the communication access point into a continuous receiving state. Subsequently, a loop reading process is performed on the receiving buffer to obtain the received raw data. The received raw data refers to the byte sequence written to the receiving buffer by the communication access point. Then, data unit boundary identification processing and field parsing processing are performed on the received raw data. The data unit boundary identification processing refers to determining the individual data unit based on the data unit length field or boundary marker field. The start and end positions, field parsing processing refers to extracting the data source identifier field and data content field from the data unit according to the preset field position and field length, and forming a production process perception data unit record. Then, the production process perception data unit record is written into the production process data queue in the receiving order to form production process perception data stream information. When receiving safety engineering perception data stream information, the receiving channel establishment processing is completed in the same way based on the safety engineering communication link information, and receiving buffer loop reading processing, data unit boundary identification processing and field parsing processing are performed to form a safety engineering perception data unit record and write it into the safety engineering data queue in the receiving order to form safety engineering perception data stream information.

[0082] S40: Based on edge time-stamp reference information, hardware timestamp generation processing is performed on the production process perception data stream information and the safety engineering perception data stream information respectively to obtain hardware timestamp information, and the hardware timestamp information is associated with the corresponding data unit.

[0083] In this embodiment, the hardware timestamp generation process refers to the process of generating a timestamp based on a hardware timing source and writing the timestamp at the moment the data unit is received. The hardware timing source refers to a counting reference provided by a hardware circuit and increasing in increments of a fixed counting step. The hardware timestamp information refers to the timestamp information obtained by converting the hardware timing source count value into edge timestamp reference information. The data unit association refers to writing the hardware timestamp information into the timestamp field corresponding to the data unit and maintaining the correspondence between one data unit and one hardware timestamp information. The timestamp field refers to the data field used to store the hardware timestamp information.

[0084] Specifically, when performing hardware timestamp generation processing on the production process sensing data stream information and the safety engineering sensing data stream information respectively, a timing sampling operation is triggered for each production process data unit in the production process sensing data stream information along the arrival order of the data units to obtain a hardware count value. The timing sampling operation refers to sampling the count value of the hardware timing source once when the data unit enters the receiving buffer and completes the data unit boundary identification processing. Subsequently, based on the edge time scale reference information, the hardware count value is subjected to time scale conversion processing to form hardware timestamp information. The time scale conversion processing refers to converting the hardware count value into a time mark under a unified time scale according to the correction amount and counting step size definition in the edge time scale reference information. For example, when the hardware timing source increases in a counting step size of microseconds, the hardware count value is converted into a time mark under a unified time scale. The hardware timestamp information is obtained by multiplying the microsecond step size and superimposing the correction amount corresponding to the edge timescale reference information. Then, the hardware timestamp information is written into the timestamp field corresponding to the production process data unit to complete the correlation processing. After the production process data unit is written, it is written back to the data queue corresponding to the production process sensing data stream information. The timing sampling operation is triggered in the same way for each safety engineering data unit in the safety engineering sensing data stream information in the order of data unit arrival to obtain the hardware count value and perform timescale conversion processing to form hardware timestamp information. Then, the hardware timestamp information is written into the timestamp field corresponding to the safety engineering data unit to complete the correlation processing. After the safety engineering data unit is written, it is written back to the data queue corresponding to the safety engineering sensing data stream information.

[0085] S50: Hardware timestamp information performs cross-link matching and alignment processing on production process sensing data stream information and safety engineering sensing data stream information to obtain aligned and fused data.

[0086] In this embodiment, cross-link matching and alignment processing refers to the process of establishing a time correspondence between data units in the production process perception data stream information and data units in the safety engineering perception data stream information using hardware timestamp information and completing the pairing and combination process. Alignment and fusion data refers to the data record set formed by combining the paired data units according to a unified data organization method. Time correspondence refers to determining the association relationship between two types of data units at the same or similar time points based on the time sequence and time interval represented by the hardware timestamp information.

[0087] Specifically, during cross-link matching and alignment processing, the hardware timestamp information corresponding to each production process data unit is extracted along the arrival order of the production process sensing data stream information, and the hardware timestamp information corresponding to each safety engineering data unit is extracted from the safety engineering sensing data stream information. The hardware timestamp information is then sorted in ascending order to form a traversable time sequence. Ascending order sorting means organizing the hardware timestamp information into a sequence according to numerical values ​​to facilitate traversal by time. Subsequently, a step-by-step traversal process is performed along the time sequence based on the production process data unit. This step-by-step traversal process involves performing a difference calculation between the hardware timestamp information of the current production process data unit and the hardware timestamp information of the safety engineering data unit to obtain the time difference information. The difference calculation involves performing a subtraction operation on the values ​​of the two hardware timestamps and taking the absolute value to represent the difference. The time interval is determined, and then the matching relationship is determined based on the time difference information. The matching relationship refers to establishing a pairing relationship between the safety engineering data unit whose time difference information meets the preset allowable range and the current production process data unit, and recording the pairing result. When there are multiple safety engineering data units that meet the preset allowable range, the safety engineering data unit with the highest time difference information is determined as the pairing object. Then, the paired production process data unit and safety engineering data unit are combined to form an aligned and fused data record. The combination process refers to splicing the data content fields of the production process data unit and the data content fields of the safety engineering data unit in a preset field order and retaining the corresponding hardware timestamp information to form an aligned and fused data record. Finally, multiple aligned and fused data records are aggregated in the order of generation to form aligned and fused data.

[0088] S60: Perform integrity verification on the aligned and merged data to obtain integrity verification result information.

[0089] In this embodiment, integrity verification refers to the process of performing field completeness checks and field consistency checks on each aligned and merged data record in the aligned and merged data. Field completeness checks refer to performing an existence determination on fields that should exist in the aligned and merged data record and confirming that the field values ​​meet the non-empty requirement. Field consistency checks refer to performing a consistency determination on interrelated fields in the aligned and merged data record and confirming that the field values ​​meet the preset format constraints. Integrity verification result information refers to the result set information used to characterize the output of integrity verification. Integrity verification result information includes at least aligned and merged data record identification information and verification status information. Alignment and merged data record identification information refers to an identification field used to uniquely correspond to an aligned and merged data record. Verification status information refers to a status field used to characterize whether the field completeness checks and field consistency checks meet the requirements.

[0090] Specifically, when performing integrity checks on the aligned and fused data, the aligned and fused data records are extracted one by one along the generation order of the aligned and fused data, and the production process data content field, safety engineering data content field, and hardware timestamp information are extracted. Field completeness checks are performed on the production process data content field and the safety engineering data content field respectively, and format determination processing is performed on the field values. Format determination processing refers to performing boundary comparisons on the character range, numerical range, or bit width range of the field values ​​to confirm that the field values ​​meet the corresponding format constraints. Subsequently, field consistency checks are performed on a record-by-record basis. Field consistency checks include performing consistency comparisons between the hardware timestamp information and the timestamp field in the production process data content field. A consistency comparison is performed between the hardware timestamp information and the timestamp field in the security engineering data content field. The consistency comparison refers to the threshold judgment of the difference value of the two types of timestamps under the same time scale to confirm that the difference value meets the allowable range. If either the field completeness check or the field consistency check fails to meet the requirements, the verification status information is set to the failed state and the failure reason information is generated. The failure reason information refers to the reason field used to characterize the reason for the failure of the corresponding check item. If both the field completeness check and the field consistency check meet the requirements, the verification status information is set to the passed state. Finally, the aligned and fused data record identification information, verification status information and failure reason information are written into the integrity verification result information in the record order.

[0091] S70: Generate data quality label information based on integrity verification results, and encapsulate the aligned and fused data with the data quality label information to generate core data for safe production.

[0092] In this embodiment, data quality label information refers to label information used to characterize the corresponding verification status of the aligned and fused data. There is a one-to-one correspondence between the data quality label information and the aligned and fused data records. Encapsulation refers to the process of writing the aligned and fused data and data quality label information into the same data structure according to a unified data organization format. The core data for safe production refers to the output data after encapsulation. The core data for safe production includes the content of the aligned and fused data and the data quality label information.

[0093] Specifically, when generating data quality label information based on integrity verification results, the alignment and fusion data record identifier information and verification status information are extracted along the recording order of the integrity verification results information. The alignment and fusion data record identifier information is written into the identifier field of the data quality label information, and the verification status information is written into the status field of the data quality label information. The verification status information can take values ​​such as pass or fail. Subsequently, when encapsulating the alignment and fusion data and data quality label information, the alignment and fusion data records are extracted along the recording order of the alignment and fusion data, and the alignment and fusion data record identifier information is extracted. The corresponding data quality label record is located in the data quality label information according to the alignment and fusion data record identifier information. Location refers to performing an equal value comparison on the identifier field to determine the matching data quality label record. Then, the alignment and fusion data record and the matching data quality label record are combined and written. The combined and written process refers to writing the production process data content field, safety engineering data content field, and hardware timestamp information in the alignment and fusion data record in a fixed field order, and writing the status field in the data quality label record into the label field of the same output record. Finally, the output records are aggregated in the writing order to form the core data of safe production.

[0094] In one embodiment, step S10, namely determining the production process communication link information and the safety engineering communication link information based on preset link configuration rule information, includes:

[0095] S101: Obtain link category constraint rule information, link validity determination rule information, mutual exclusion constraint condition information and link priority rule information from the preset link configuration rule information.

[0096] In this embodiment, the link category constraint rule information refers to the rule information used to limit the range of link category values ​​that can be used in the link candidate set information for production process scenarios or safety engineering scenarios. The link validity determination rule information refers to the rule information used to determine whether the link entries in the link candidate set information meet the availability conditions. The mutual exclusion constraint condition information refers to the constraint information used to limit the production process communication link information and the safety engineering communication link information from being satisfied simultaneously in the same link combination. The link priority rule information refers to the rule information used to determine the link selection order when there are multiple link combination candidate information.

[0097] Specifically, when obtaining link category constraint rule information, link validity determination rule information, mutual exclusion constraint condition information, and link priority rule information from the preset link configuration rule information, structured parsing processing is performed on the preset link configuration rule information to form a set of rule entries. The set of rule entries refers to a data set composed of multiple rule entries arranged in record order. A rule entry is a data record containing a rule category field and a rule content field. The rule category field characterizes the rule type corresponding to the rule entry, and the rule content field carries the constraint content of the rule entry. Subsequently, the rule entries are traversed in the set of rule entries, and an equal-value ratio is performed on the rule category field. For processing, the equivalent comparison processing refers to performing character consistency judgment between the rule category field value and the preset category name to complete the classification. When the rule category field value corresponds to the link category constraint, the corresponding rule content field is extracted and organized into link category constraint rule information. When the rule category field value corresponds to the link validity judgment, the corresponding rule content field is extracted and organized into link validity judgment rule information. When the rule category field value corresponds to the mutual exclusion constraint condition, the corresponding rule content field is extracted and organized into mutual exclusion constraint condition information. When the rule category field value corresponds to the link priority order, the corresponding rule content field is extracted and organized into link priority order rule information.

[0098] S102: Based on the link category constraint rule information, filter the candidate link subset information for production process and the candidate link subset information for safety engineering from the link candidate set information respectively.

[0099] In this embodiment, the link candidate set information refers to the set of candidate link entries used to participate in the link screening process. The link entry information refers to the data record used to describe a candidate link. The link entry information includes a link identifier field and a link category field. The link identifier field is used to uniquely identify the candidate link, and the link category field is used to identify the category to which the candidate link belongs. The production process candidate link subset information refers to the set of candidate link entries selected from the link candidate set information that meet the production process scenario conditions in the link category constraint rules information. The safety engineering candidate link subset information refers to the set of candidate link entries selected from the link candidate set information that meet the safety engineering scenario conditions in the link category constraint rules information.

[0100] Specifically, when selecting candidate link subsets for production processes and safety engineering from the link candidate set information based on link category constraint rule information, the permitted link category information for production process scenarios and the permitted link category information for safety engineering scenarios are extracted from the link category constraint rule information. The permitted link category information refers to the category list information used to limit the values ​​of optional link categories. Then, the link entry information in the link candidate set information is traversed and the link category field is extracted. An inclusion-determination process is performed on the link category field and the permitted link category information for production process scenarios to determine the production process screening matching result. The inclusion-determination process refers to performing an inclusion-determination process on the link category field value and the values ​​of each category in the permitted link category information. The system performs an equivalent comparison and determines inclusion when a match exists. When the matching result of the production process screening is valid, the corresponding link entry information is written into the production process candidate link subset information, and the writing order is consistent with the traversal order. The link category field and the safety engineering scenario allowed link category information are processed in the same way to determine the safety engineering screening matching result. When the safety engineering screening matching result is valid, the corresponding link entry information is written into the safety engineering candidate link subset information, and the writing order is consistent with the traversal order. For example, if the link category field is Industrial Ethernet and Industrial Ethernet is included in the production process scenario allowed link category information, the corresponding link entry information is written into the production process candidate link subset information to complete the screening.

[0101] S103: Perform validity determination processing on the candidate link subset information of the production process according to the link validity determination rule information to obtain the valid link subset information of the production process, and perform validity determination processing on the candidate link subset information of the safety engineering to obtain the valid link subset information of the safety engineering.

[0102] In this embodiment, the validity determination process refers to the process of performing rule comparison on the candidate link entry information to determine whether it meets the availability conditions based on the link validity determination rule information and outputting the determination result. The production process valid link subset information refers to the subset information composed of candidate link entry information that has passed the validity determination process from the production process candidate link subset information. The safety engineering valid link subset information refers to the subset information composed of candidate link entry information that has passed the validity determination process from the safety engineering candidate link subset information. The availability conditions in the link validity determination rule information refer to the constraints on the values ​​of the link attribute fields in the link entry information. The values ​​of the link attribute fields refer to the values ​​of the fields in the link entry information used to characterize the availability status of the link.

[0103] Specifically, when performing validity determination processing based on the link validity determination rule information to obtain the valid link subset information for production process and safety engineering, the determination field set information and field constraint set information are extracted from the link validity determination rule information. The determination field set information refers to the set of link attribute field names that need to participate in the validity determination processing, and the field constraint set information refers to the set of value constraints that correspond one-to-one with the determination field set information. Subsequently, candidate link entry information is extracted along the recording order of the candidate link subset information for production process, and the field values ​​corresponding to the determination field set information in the candidate link entry information are extracted. A step-by-step comparison processing is performed between the field values ​​and the field constraint set information to obtain the validity determination of the production process. The process of determining the result information and comparing each item one by one refers to performing an equal value comparison or interval comparison between the value of each judgment field and the corresponding field constraint, and outputting a failure judgment result when any constraint is not met. When the production process validity judgment result information indicates that it has passed, the corresponding candidate link entry information is written into the production process valid link subset information, and the writing order is consistent with the recording order. The candidate link entry information is extracted in the same way along the recording order of the safety engineering candidate link subset information and the item-by-item comparison process is performed to obtain the safety engineering validity judgment result information. When the safety engineering validity judgment result information indicates that it has passed, the corresponding candidate link entry information is written into the safety engineering valid link subset information, and the writing order is consistent with the recording order.

[0104] S104: Perform mutual exclusion constraint verification on the effective link subset information of production process and the effective link subset information of safety engineering based on mutual exclusion constraint information to obtain candidate link combination information that passes the mutual exclusion constraint verification.

[0105] In this embodiment, the mutual exclusion constraint verification process refers to the process of determining the feasibility of combining candidate link entries in the effective link subset information of the production process and candidate link entries in the effective link subset information of the safety engineering based on the mutual exclusion constraint information. The mutual exclusion constraint information is used to describe the link combination conditions that are not allowed to be met simultaneously. The link combination candidate information refers to the candidate information used to record the link combination records that have passed the mutual exclusion constraint verification process. The link combination record refers to the combination record consisting of one production process link entry and one safety engineering link entry, and includes the corresponding link identifier field value.

[0106] Specifically, when performing mutual exclusion constraint verification on the effective link subset information of production process and the effective link subset information of safety engineering based on mutual exclusion constraint information, the production process link entry information is extracted along the recording order of the effective link subset information of production process, and the values ​​of the link identifier field and the link attribute field are extracted. Similarly, the safety engineering link entry information is extracted along the recording order of the effective link subset information of safety engineering, and the values ​​of the link identifier field and the link attribute field are extracted. The production process link entry information and the safety engineering link entry information are then combined pairwise to generate a link combination record. Mutual exclusion condition determination processing is then performed on the link combination record. Mutual exclusion condition determination processing refers to substituting the values ​​of the link identifier field and the link attribute field in the link combination record into the mutual exclusion expression defined in the mutual exclusion constraint information and performing condition matching operations to obtain the verification result. When the verification result indicates that the mutual exclusion constraint condition is not triggered, the link combination record is written into the link combination candidate information. When the verification result indicates that the mutual exclusion constraint condition is triggered, the link combination record writing is skipped.

[0107] S105: Determine the target link combination information from the link combination candidate information according to the link priority rule information, and determine the production process link in the target link combination information as the production process communication link information, and determine the safety engineering link in the target link combination information as the safety engineering communication link information.

[0108] In this embodiment, the target link combination information refers to a link combination record that is determined for subsequent processing after being filtered by the link priority rule information in the link combination candidate information. The link priority rule information refers to the rule information used to give priority comparison basis to the link combination records in the link combination candidate information. The priority comparison basis refers to the field comparison order and field value comparison method used when performing sequential comparison of preset comparison fields in the link combination record.

[0109] Specifically, when determining the target link combination information from the link combination candidate information based on the link priority rule information, each link combination record is extracted along the record order of the link combination candidate information, and the comparison field values ​​indicated by the link priority rule information are extracted. The comparison field values ​​refer to the field values ​​in the link combination record used for priority comparison. The link combination records are then processed by performing a field-by-field comparison according to the field comparison order indicated by the link priority rule information. This field-by-field comparison process means first performing a size comparison or order comparison on the first comparison field value, and outputting the priority ranking result of the current link combination record when the comparison result can distinguish priorities. If the comparison result of the first comparison field value cannot distinguish priorities, the comparison continues on the next comparison field value until a distinguishable priority ranking result is obtained or the traversal is completed. For example, the link priority rule information indicates that the link should be selected first. When comparing the link delay field values ​​of link combination records whose status field values ​​meet the preset status, and when multiple link combination records meet the preset status, first perform an equivalence comparison between the link status field values ​​and the preset status values, and mark the link combination records that meet the equivalence comparison as candidate priority records. Then, perform a numerical comparison between the link delay field values ​​of the candidate priority records, and determine the link combination record with the smaller value as the target link combination information. After the target link combination information is determined, extract the production process link entry information from the target link combination information, and combine the link identifier field and link attribute field of the production process link entry information to determine the production process communication link information. Extract the safety engineering link entry information from the target link combination information, and combine the link identifier field and link attribute field of the safety engineering link entry information to determine the safety engineering communication link information.

[0110] In one embodiment, step S20 involves performing time synchronization processing based on the production process communication link information and the safety engineering communication link information to obtain edge time-stamped reference information, including:

[0111] S201: Obtain the preset synchronization interaction parameter information, and generate synchronization interaction message information in the production process communication link information and the safety engineering communication link information respectively according to the preset synchronization interaction parameter information.

[0112] In this embodiment, the synchronization interaction parameter information refers to the parameter record used to constrain the generation method of the synchronization interaction message information. The synchronization interaction parameter information includes message template field definition information and field value range information. The message template field definition information refers to the definition information used to limit the position and length of each field in the synchronization interaction message information. The field value range information refers to the constraint information used to limit the value format of each field in the synchronization interaction message information. The synchronization interaction message information refers to the data unit organized according to the synchronization interaction parameter information and used for subsequent synchronization interaction processing. The synchronization interaction message information includes a message type field, a message sequence number field, and a timestamp field. The message type field is used to characterize the message category of the synchronization interaction message information. The message sequence number field is used to characterize the generation order of the synchronization interaction message information. The timestamp field is used to record the local timing reference reading corresponding to the generation time.

[0113] Specifically, when obtaining preset synchronization interaction parameter information, the system reads the synchronization interaction parameter information from the preset configuration storage location and performs structured parsing processing on the synchronization interaction parameter information. Structured parsing processing refers to extracting message template field definition information and field value range information based on field boundaries and forming parameter records that can be directly used for message filling. Subsequently, when generating synchronization interaction message information in the production process communication link information based on the synchronization interaction parameter information, the system allocates message byte space according to the message template field definition information and initializes the field positions. The system writes the production process link synchronization identifier value to the message type field and an incrementing sequence number value to the message sequence number field. The incrementing sequence number value is the sequence number obtained by incrementing the integer sequence number according to the generation count. Finally, the system writes the local timing reference reading corresponding to the generation time to the timestamp field and updates the written data. The segment value is subjected to format consistency verification. Format consistency verification refers to comparing the field width with the value range based on the field value range information to confirm that the field value meets the constraints. Then, the data unit that has completed field filling is determined as the synchronous interaction message information corresponding to the production process communication link information. When generating synchronous interaction message information in the safety engineering communication link information according to the synchronous interaction parameter information, the message byte space allocation and field position initialization are completed according to the same message template field definition information. The safety engineering link synchronization identifier value is written to the message type field and the incrementing sequence number value is written to the message sequence number field. The local timing reference reading corresponding to the generation time is written to the time stamp field and format consistency verification is performed. Then, the data unit that has completed field filling is determined as the synchronous interaction message information corresponding to the safety engineering communication link information.

[0114] S202: Based on the synchronous interactive message information, perform round-trip delay measurement processing on the production process communication link information and the safety engineering communication link information to obtain link delay estimation information.

[0115] In this embodiment, round-trip delay measurement processing refers to the process of completing the sending and receiving of synchronous interactive message information and calculating the round-trip time interval of the message using the value of the time stamp field. Link delay estimation information refers to the information record used to characterize the delay estimation results of the corresponding communication paths of production process communication link information and safety engineering communication link information. The delay estimation result refers to the one-way or equivalent delay value converted from the round-trip time interval.

[0116] Specifically, when performing round-trip delay measurement processing based on synchronous interactive message information, synchronous interactive message information is first sent on the communication path corresponding to the production process communication link information, and the value of the timestamp field corresponding to the sending time is recorded. Then, synchronous interactive message information is received on the communication path corresponding to the safety engineering communication link information, and a return processing is triggered on the received message. The return processing refers to keeping the message sequence number field in the received synchronous interactive message information unchanged and updating the timestamp field to the local timing reference reading corresponding to the return generation time before sending it to the communication path corresponding to the production process communication link information. Then, the returned synchronous interactive message information is received on the communication path corresponding to the production process communication link information, and the local timing reference reading corresponding to the receiving time is recorded. Finally, the local timing reference reading corresponding to the sending time is... The round-trip time interval (RTG) is obtained by performing a differential operation on the local timing reference reading corresponding to the received return time and the local timing reference reading corresponding to the sent time. The differential operation involves subtracting the local timing reference reading corresponding to the received return time from the local timing reference reading and obtaining the difference. The RTG is then written into the RTG field of the link delay estimation information, and the message sequence number field is written into the sequence number association field of the link delay estimation information to establish a correspondence. Next, synchronous interaction message information is sent in the same way on the communication path corresponding to the safety engineering communication link information, and reception and return are performed on the communication path corresponding to the production process communication link information. The return message is received on the communication path corresponding to the safety engineering communication link information, and the RTG is calculated. The obtained RTG is then written into the link delay estimation information.

[0117] S203: Perform clock offset calculation processing based on the synchronization interaction message information and link delay estimation information to obtain clock offset information.

[0118] In this embodiment, clock deviation calculation processing refers to the process of calculating and outputting the deviation result of the time difference between the local timing reference reading corresponding to the production process communication link information and the local timing reference reading corresponding to the safety engineering communication link information, under the constraints of the time stamp field value of the synchronous interaction message information and the delay value of the link delay estimation information. Clock deviation information refers to the information record used to characterize the above time difference calculation result. Clock deviation information includes a deviation value field and a sequence number association field. The deviation value field is used to record the deviation value obtained by clock deviation calculation processing, and the sequence number association field is used to record the message sequence number field value corresponding to the deviation value.

[0119] Specifically, when performing clock offset calculation based on the synchronous interaction message information and link delay estimation information, the message sequence number field value and the timestamp field value are first extracted from the synchronous interaction message information. Then, the corresponding delay value is located in the link delay estimation information according to the message sequence number field value. Location refers to performing an equal-value comparison on the sequence number-related fields to determine matching records. Subsequently, role-differentiation processing is performed on the timestamp field value corresponding to the same message sequence number field value. Role-differentiation processing means that the timestamp field value written at the time of transmission is determined as the first timestamp value, and the timestamp field value written when the peer receives and triggers the return transmission is determined as the second timestamp value. The return message is then received at the local end... The local timing reference reading corresponding to the received time is determined as the third time stamp value. Then, based on the round-trip delay value in the link delay estimation information, a one-way delay conversion process is performed to obtain the one-way delay estimate. The one-way delay conversion process means dividing the round-trip delay value by two to obtain the one-way delay estimate. Then, a difference calculation is performed between the second time stamp value and the first time stamp value to obtain the cross-end time difference information. A difference calculation is performed between the cross-end time difference information and the one-way delay estimate to obtain the deviation value field value. The difference calculation means performing a subtraction operation on the two time stamp values ​​to obtain the difference result. Finally, the deviation value field value and the message sequence number field value are written into the clock deviation information.

[0120] S204: Perform time-scale correction processing on the local timing reference information based on the clock deviation information to obtain edge time-scale reference information.

[0121] In this embodiment, local timing reference information refers to the reference definition information used to characterize the local timing reference, local timing reference refers to the local timing source used to generate timing readings, and time scale correction processing refers to the process of performing deviation compensation on the timing readings of the local timing reference based on clock deviation information and forming a unified time scale.

[0122] Specifically, when performing timescale correction processing on local timing reference information based on clock deviation information, the deviation value field is extracted along the recording order of the clock deviation information, and the deviation value field value is determined as correction amount information. Correction amount information refers to the numerical information used to perform addition and subtraction compensation on the timing reading of the local timing reference. Then, the correction amount information and correction amount effective condition information are written into the local timing reference information. Correction amount effective condition information refers to the condition record used to limit the applicable scope of the correction amount information. After that, the timing reading output by the local timing reference is added or subtracted with the correction amount information to obtain the corrected timing reading. Addition and subtraction operation refers to selecting to perform addition or subtraction operation on the timing reading according to the positive or negative sign of the correction amount information and obtaining the operation result. Then, the time scale definition information corresponding to the corrected timing reading and the correction amount information are jointly organized and recorded as edge timescale reference information.

[0123] In one embodiment, prior to step S50, i.e., prior to the cross-link matching and alignment process, the method further includes:

[0124] S501: Determine the production process sampling cycle information and the safety engineering sampling cycle information based on the production process sensing data stream information and the safety engineering sensing data stream information, respectively.

[0125] In this embodiment, the production process sampling period information refers to the periodic information used to characterize the time interval between corresponding sampling times of adjacent production process data units in the production process sensing data stream information, and the safety engineering sampling period information refers to the periodic information used to characterize the time interval between corresponding sampling times of adjacent safety engineering data units in the safety engineering sensing data stream information. The sampling time refers to the time stamp corresponding to when the data unit is formed or received, and the time interval refers to the difference result between two sampling times.

[0126] Specifically, when determining the production process sampling period information based on the production process sensing data stream information, multiple consecutive production process data units are extracted along the receiving order of the production process sensing data stream information, and the hardware timestamp information associated with each production process data unit is extracted. Differential calculation is performed on the hardware timestamp information in adjacent order to obtain multiple adjacent time interval values. Differential calculation refers to subtracting the hardware timestamp information corresponding to the previous production process data unit from the hardware timestamp information corresponding to the next production process data unit and obtaining the difference result. Subsequently, periodic statistical processing is performed on multiple adjacent time interval values ​​to obtain the production process sampling period information. Periodic statistical processing refers to performing a summation operation on multiple adjacent time interval values ​​and performing a division operation on the number of adjacent time interval values ​​to obtain the period value, and writing the period value into the production process sampling period information.

[0127] S502: Determine the alignment window parameter information and waiting delay parameter information based on the production process sampling cycle information and the safety engineering sampling cycle information.

[0128] In this embodiment, the alignment window parameter information refers to the parameter information used to limit the allowable time difference range when the production process data unit in the production process sensing data stream information and the safety engineering data unit in the safety engineering sensing data stream information are time matched. The waiting delay parameter information refers to the parameter information used to limit the waiting duration when a matching relationship that meets the time matching conditions has not been formed. The time difference range refers to the allowable interval into which the time difference value information obtained by performing differential calculation on two hardware timestamp information falls. The waiting duration refers to the duration information from the start of the cross-link matching alignment process to the time when the termination waiting condition is reached.

[0129] Specifically, when determining the alignment window parameter information and waiting delay parameter information based on the production process sampling cycle information and the safety engineering sampling cycle information, the production process cycle value corresponding to the production process sampling cycle information and the safety engineering cycle value corresponding to the safety engineering sampling cycle information are read. An addition operation is performed on the production process cycle value and the safety engineering cycle value to obtain the cycle sum information. Then, a division operation is performed on the cycle sum information to obtain the average cycle value information. The division operation refers to dividing the cycle sum information by 2 to obtain the average cycle value information. The average cycle value information is written into the alignment window parameter information as a reference value for the time difference range. Subsequently, an addition operation is performed on the production process cycle value and the safety engineering cycle value to obtain the waiting delay value information, and the waiting delay value information is written into the waiting delay parameter information as a reference value for the waiting duration.

[0130] S503: Based on the alignment window parameter information and the waiting delay parameter information, perform candidate set construction processing on the data units corresponding to the production process perceived data stream information and the safety engineering perceived data stream information to obtain candidate set information for cross-link matching and alignment processing.

[0131] In this embodiment, the candidate set construction process refers to the process of selecting data units for subsequent matching from the production process perceived data stream information and the safety engineering perceived data stream information under the constraints of alignment window parameter information and waiting delay parameter information, and forming candidate set information. The candidate set information refers to the collection information of candidate data units used for cross-link matching and alignment processing. The candidate set information includes production process candidate data unit set information and safety engineering candidate data unit set information. The production process candidate data unit set information refers to the collection information of data units selected from the production process perceived data stream information, and the safety engineering candidate data unit set information refers to the collection information of data units selected from the safety engineering perceived data stream information.

[0132] Specifically, when constructing the candidate set based on the alignment window parameter information and the waiting delay parameter information, the production process data unit is extracted along the receiving order of the production process sensing data stream information, and the hardware timestamp information associated with the production process data unit is extracted. The hardware timestamp information is written into the time base variable of the candidate set construction and the waiting timer is started. The waiting timer refers to taking the timing reading of the local timing reference output as the starting reading and continuously reading the current timing reading to obtain the waiting time. Then, within the waiting time range limited by the waiting delay parameter information, the safety engineering data unit is extracted along the receiving order of the safety engineering sensing data stream information, and the hardware timestamp information associated with the safety engineering data unit is extracted. The hardware timestamp information of the production process data unit and the hardware timestamp information of the safety engineering data unit are differentially processed. The time difference information is calculated and a threshold determination is performed on it. The threshold determination refers to comparing the time difference information with the time difference range corresponding to the alignment window parameter information. If the time difference information is not greater than the time difference range, a pass determination result is output. If the pass determination result is correct, the production process data unit is written into the production process candidate data unit set information and the safety engineering data unit is written into the safety engineering candidate data unit set information. If the time difference information is greater than the time difference range, the subsequent safety engineering data units are extracted and the difference calculation and threshold determination are repeated until the waiting time reaches the waiting duration limit of the waiting delay parameter information. Then, the production process candidate data unit set information and the safety engineering candidate data unit set information are processed to form the candidate set information.

[0133] In one embodiment, step S50, where the hardware timestamp information performs cross-link matching and alignment processing on the production process-aware data stream information and the safety engineering-aware data stream information, includes:

[0134] S504: Extract the candidate data unit set information for production process and the candidate data unit set information for safety engineering based on the candidate set information, and read the hardware timestamp information corresponding to each data unit from the candidate data unit set information for production process and the candidate data unit set information for safety engineering respectively.

[0135] In this embodiment, extraction refers to the process of parsing the production process candidate data unit set information and the safety engineering candidate data unit set information from the candidate set information and forming a traversable data sequence. Reading refers to the process of parsing the timestamp field in the data unit and obtaining the hardware timestamp information value.

[0136] Specifically, when extracting candidate data unit set information for production processes and candidate data unit set information for safety engineering based on candidate set information, structured parsing processing is performed on the candidate set information, and the candidate data unit set information for production processes and candidate data unit set information for safety engineering are distinguished according to the set type marker field. The set type marker field refers to the data field used to characterize the affiliation of different sets in the candidate set information. Subsequently, the parsed candidate data unit set information for production processes and candidate data unit set information for safety engineering are organized into data sequences arranged in record order, and the record order of the data sequences is kept consistent with the writing order of the candidate set construction process. When reading hardware timestamp information from the candidate data unit set information for production processes... The production process data units are extracted one by one along the record order of the data sequence, and field positioning processing is performed on the production process data units to locate the timestamp field. Field positioning processing refers to determining the start and end byte range of the timestamp field based on the field position and field length of the timestamp field in the data unit. Then, value parsing processing is performed on the timestamp field to obtain the hardware timestamp information value. Value parsing processing refers to converting the byte sequence in the timestamp field into a numerical value according to a preset byte order rule to obtain the hardware timestamp information value. When reading the hardware timestamp information in the set of candidate data units for safety engineering, the safety engineering data units are extracted one by one along the corresponding data sequence, and field positioning processing and value parsing processing are performed in the same way to obtain the hardware timestamp information value.

[0137] S505: Perform time difference calculation processing on the candidate data unit set information of production process and candidate data unit set information of safety engineering according to the alignment window parameter information to obtain candidate time difference set information, and filter candidate matching pair set information whose absolute time difference is not greater than the alignment window parameter information based on the candidate time difference set information.

[0138] In this embodiment, time difference calculation processing refers to the process of performing differential operations based on hardware timestamp information between the production process candidate data unit set information and the safety engineering candidate data unit set information to form a time difference result. The candidate time difference set information refers to the information formed by the aggregation of differential results of hardware timestamp information of multiple sets of production process candidate data units and safety engineering candidate data units. The absolute value of the time difference refers to the non-negative value obtained by performing an absolute value operation on the time difference value. The candidate matching pair set information refers to the information formed by the aggregation of data unit pairing information whose absolute value of the time difference satisfies the alignment window parameter information constraint. The data unit pairing information refers to the record information used to characterize the correspondence between a production process candidate data unit and a safety engineering candidate data unit. The record information includes at least the production process data unit identification information, the safety engineering data unit identification information, and the time difference value information.

[0139] Specifically, when performing time difference calculation on the production process candidate data unit set information and the safety engineering candidate data unit set information based on the alignment window parameter information, the i-th production process candidate data unit is extracted along the recording order of the production process candidate data unit set information, and the corresponding hardware timestamp information value is read and denoted as . Extract the j-th safety engineering candidate data unit according to the recording order of the safety engineering candidate data unit set information and read the corresponding hardware timestamp information value, denoted as . For any set Perform a difference operation to obtain the time difference numerical information. ,in The absolute value of the time difference is obtained by performing absolute value calculation on the numerical information of the time difference. ,in The production process data unit identifier information corresponding to i and the safety engineering data unit identifier information corresponding to j are compared with... Candidate time difference set information is written to form time difference record information. Subsequently, when filtering candidate matching pair set information based on the candidate time difference set information, the window value W is read from the alignment window parameter information and each time difference record information is extracted. Execute threshold determination To obtain pass or fail markers, if a pass marker is found, the corresponding time difference record information is written into the candidate matching pair set information to form candidate matching pair record information, for example... , ,but , ,exist Timely satisfaction And write the candidate matching pair set information.

[0140] S506: Obtain the preset alignment and sorting rule information, and perform sorting processing on the candidate matching pair set information based on the preset alignment and sorting rule information to obtain the target sequence number information.

[0141] In this embodiment, the preset alignment sorting rule information refers to the rule information used to describe the sorting basis and sorting method of the candidate matching pair set information. The sorting process refers to the process of generating a comparable sorting key value for each candidate matching pair record information in the candidate matching pair set information according to the preset alignment sorting rule information and rearranging the candidate matching pair record information according to the order of the sorting key value. The target sequence number information refers to the information used to indicate the position sequence number of the target matching pair information in the rearrangement result after the sorting process is completed. The position sequence number refers to the sequence number obtained by numbering the candidate matching pair record information according to the rearranged record order.

[0142] Specifically, when obtaining the preset alignment and sorting rule information, the sort key field definition information and sort key generation parameter information are extracted from the preset alignment and sorting rule information. The sort key field definition information refers to the definition information used to limit the field composition and field position of the sort key value, and the sort key generation parameter information refers to the parameter information used to limit the calculation method of the sort key value. Subsequently, when performing sorting processing on the candidate matching pair set information based on the preset alignment and sorting rule information, the k-th candidate matching pair record information is extracted along the record order of the candidate matching pair set information, and the absolute value of the time difference is extracted. Combined with the record sequence number k, extract the weight parameters from the parameter information generated by the sorting key. and For each candidate matching pair record information, a sorting key value K(k) is generated, where Write K(k) into the sort key field of the candidate matching pair record information and keep it in one-to-one correspondence with the candidate matching pair record information. Then, perform ascending reordering based on the sort key value K(k) to obtain the reordered candidate matching pair record information order. Number the reordered candidate matching pair record information starting from 1 according to the order of appearance to form a position number. The position number corresponding to the candidate matching pair record information that is first in the reordered record order is determined as the target sequence number information.

[0143] S507: Determine the target matching pair information from the candidate matching pair set information based on the target sequence number information.

[0144] In this embodiment, the target matching pair information refers to the candidate matching pair record information indicated by the target sequence number information in the candidate matching pair set information. The candidate matching pair record information refers to the record information containing the production process data unit identification information, the safety engineering data unit identification information, and the time difference value information. The target sequence number information is used to indicate the record position in the candidate matching pair set information that corresponds to the target matching pair information.

[0145] Specifically, when determining the target matching pair information from the candidate matching pair set information based on the target sequence number information, the target sequence number value N is read from the target sequence number information, and sequential counting processing is performed on the candidate matching pair record information along the recording order of the candidate matching pair set information to form a counting sequence number. The sequential counting processing means that the counting sequence number is initialized to 1 starting from the first candidate matching pair record information and incremented by one when traversing to the next candidate matching pair record information. When the counting sequence number and the target sequence number value N are compared and the comparison is successful, the current candidate matching pair record information is extracted and determined as the target matching pair information and the traversal processing is terminated.

[0146] S508: Based on the target matching information, perform combined processing on the corresponding production process data unit and safety engineering data unit to generate aligned and fused data.

[0147] In this embodiment, the combination processing refers to the process of locating the corresponding data units based on the production process data unit identifier information and the safety engineering data unit identifier information in the target matching information, and splicing the data contents of the two data units into an aligned and fused data record according to the preset field order. The aligned and fused data record refers to a single record information in the aligned and fused data.

[0148] Specifically, when performing combination processing on the corresponding production process data unit and safety engineering data unit based on the target matching pair information, the identification information of the production process data unit and the safety engineering data unit are extracted from the target matching pair information. Then, identification matching and positioning processing is performed in the production process candidate data unit set information based on the production process data unit identification information to obtain the target production process data unit. Similarly, identification matching and positioning processing is performed in the safety engineering candidate data unit set information based on the safety engineering data unit identification information to obtain the target safety engineering data unit. The identification matching and positioning processing refers to performing an equivalence comparison between the data unit identification field and the corresponding identification information, and determining a match when the comparison is successful. The data unit then extracts the production process data content field and hardware timestamp information from the target production process data unit, and extracts the safety engineering data content field and hardware timestamp information from the target safety engineering data unit. The timestamp field value of the aligned and fused data record is determined by the hardware timestamp information of the target production process data unit. Then, the production process data content field, safety engineering data content field, and timestamp field are written sequentially according to the preset field order to form the aligned and fused data record. The preset field order refers to the fixed arrangement order of the production process data content field and safety engineering data content field in the aligned and fused data record. Finally, the aligned and fused data record is written into the aligned and fused data.

[0149] S509: When the candidate matching pair set information is empty and the waiting delay parameter information is reached, generate alignment failure flag information.

[0150] In this embodiment, the alignment failure marking information refers to the marking information used to characterize the result of cross-link matching alignment processing not forming a valid matching pair. The alignment failure marking information includes a failure status field and a failure triggering condition field. The failure status field is used to characterize the alignment failure status, and the failure triggering condition field is used to characterize the condition description corresponding to triggering the alignment failure status. The waiting delay parameter information refers to the waiting time obtained by waiting timer not being less than the waiting delay value corresponding to the waiting delay parameter information.

[0151] Specifically, when an alignment failure flag is generated when the candidate matching pair set information is empty and the waiting delay parameter information is reached, the waiting delay value D corresponding to the waiting delay parameter information is read, and the initial timing reading is recorded at the start of the candidate set construction process. The initial timing reading refers to the local timing reference reading corresponding to the start-up waiting time for candidate set construction processing. This current timing reading is periodically read during subsequent processing. And perform a difference operation to obtain the waiting time E. The difference operation refers to calculating... The calculated result is taken as the waiting time. After each waiting time E is obtained, an empty check is performed on the candidate matching pair set information, and a threshold check is performed on the waiting time E and the waiting delay value D. The empty check refers to determining whether the number of candidate matching pair records in the candidate matching pair set information is zero. The threshold check refers to determining whether the number of candidate matching pair records in the candidate matching pair set information is zero. If the condition is met, and the threshold condition is met, an alignment failure flag is generated. The failure status field is written to the alignment failure flag, and the failure trigger condition field is written to the candidate matching pair set information, which is empty and the waiting time has reached the waiting delay value.

[0152] In one embodiment, step S506 involves sorting the candidate matching pair set information based on preset alignment and sorting rules to obtain target sequence number information, including:

[0153] S5061: Preset alignment and sorting rule information includes time difference hierarchical rule information, confidence correction rule information, and sorting key generation rule information.

[0154] In this embodiment, the time difference grading rule information refers to the rule information used to map the absolute value of the time difference in the candidate matching pair record information to discrete grade values; the confidence correction rule information refers to the rule information used to perform weight correction on the time difference grade values ​​based on the time synchronization confidence information; and the sorting key generation rule information refers to the rule information used to combine the time difference grade values ​​with the confidence correction weight information to generate aligned sorting key value information.

[0155] Specifically, when the preset alignment and sorting rule information includes time difference classification rule information, confidence correction rule information, and sort key generation rule information, structured parsing processing is performed on the preset alignment and sorting rule information to obtain rule category fields and rule content fields. Structured parsing processing refers to extracting the values ​​of rule category fields and rule content fields based on field boundaries to form traversable rule records. Then, each rule record is traversed in the rule record order of the preset alignment and sorting rule information, and an equality comparison processing is performed on the value of the rule category field. Equality comparison processing refers to performing character consistency determination between the value of the rule category field and the preset category name. When the value of the rule category field corresponds to time difference classification, the corresponding rule content field is extracted and determined as time difference classification rule information. When the value of the rule category field corresponds to confidence correction, the corresponding rule content field is extracted and determined as confidence correction rule information. When the value of the rule category field corresponds to sort key generation, the corresponding rule content field is extracted and determined as sort key generation rule information.

[0156] S5062: Based on the candidate time difference set information and time difference classification rule information, perform classification mapping processing on each candidate matching pair in the candidate matching pair set information to obtain time difference level value information.

[0157] In this embodiment, the hierarchical mapping process refers to the process of mapping the absolute value of the time difference corresponding to each candidate matching pair record information in the candidate matching pair set information to a time difference level value based on the time difference hierarchical rule information. The time difference level value information refers to the record information used to record the time difference level value corresponding to each candidate matching pair record information. The time difference level value information corresponds one-to-one with the candidate matching pair record information in the candidate matching pair set information.

[0158] Specifically, when performing hierarchical mapping processing on each candidate matching pair in the candidate matching pair set information based on the candidate time difference set information and the time difference hierarchical rule information, hierarchical threshold sequence information is extracted from the time difference hierarchical rule information. Information related to grade value sequence The hierarchical threshold sequence information refers to the threshold sequence used to divide the absolute value intervals of time differences, while the grade value sequence information refers to the discrete grade value sequence that corresponds one-to-one with each interval. Subsequently, the absolute value of the time difference associated with the candidate matching pair record information is extracted along the recording order of the candidate time difference set information. And on Perform interval determination processing to determine the time difference level value G. Interval determination processing refers to sequentially determining... , until And, under the condition that the first interval condition is met, the corresponding level value in the level value sequence information is selected as the time difference level value G, for example, in season And in When G=L2 and in season Finally, the production process data unit identifier information and safety engineering data unit identifier information of the candidate matching pair record information are written into the time difference level value information to complete the one-to-one correspondence record.

[0159] S5063: Based on time synchronization reliability information and confidence correction rule information, perform confidence correction processing on time difference level value information to obtain confidence correction weight information.

[0160] In this embodiment, time synchronization reliability information refers to numerical information used to characterize the reliability of time synchronization processing. Time synchronization reliability information includes a reliability numerical field. The larger the value of the reliability numerical field, the higher the reliability of synchronization. Confidence correction processing refers to the process of adjusting the weight of the time difference level value in the time difference level value information according to the time synchronization reliability information and outputting the correction weight. Confidence correction weight information refers to the weight information used to record the output result of confidence correction processing. Confidence correction weight information corresponds one-to-one with time difference level value information.

[0161] Specifically, when performing confidence correction processing on the time difference level value information based on time synchronization confidence information and confidence correction rule information, the confidence value C is read from the time synchronization confidence information, and the confidence normalization parameter is extracted from the confidence correction rule information. and and weight mapping parameters Normalized confidence level is obtained by performing normalization calculation on the confidence value C. ,in Subsequently Perform boundary constraint processing to make fall into Boundary constraint processing refers to... season And in season Then, following the recording order of the time difference level value information, the r-th time difference level value record information is extracted and the corresponding time difference level value G(r) is read. Based on the confidence correction rule information, the confidence correction weight W(r) is calculated, where... The identification field of W(r) is associated with the time difference level value record information and written into the confidence correction weight information to form a one-to-one correspondence record.

[0162] S5064: Generate rule information based on the sorting key, combine the time difference level value information with the confidence correction weight information to generate aligned sorting key value information.

[0163] In this embodiment, the alignment sorting key value information refers to the key value information used to sort the candidate matching pair record information in the candidate matching pair set information. The alignment sorting key value information corresponds one-to-one with the candidate matching pair record information. The combination refers to the process of combining the time difference level value in the time difference level value information and the confidence correction weight in the confidence correction weight information into a single comparable key value according to the correspondence of the same candidate matching pair identifier.

[0164] Specifically, when combining the time difference level value information and confidence correction weight information according to the sorting key generation rule information to generate aligned sorting key value information, the r-th time difference level value record information is extracted along the recording order of the time difference level value information, and the production process data unit identifier information, safety engineering data unit identifier information, and time difference level value G(r) are extracted. Based on the production process data unit identifier information and safety engineering data unit identifier information, identifier matching and positioning processing is performed in the confidence correction weight information to obtain the corresponding confidence correction weight W(r). Identifier matching and positioning processing refers to performing an equivalence comparison between the production process data unit identifier field and the safety engineering data unit identifier field in the confidence correction weight information and the corresponding identifier information, and determining the matching record when the comparison is successful. Subsequently, the level value weight parameters are extracted from the sorting key generation rule information. With the inverse parameter of the weight Calculate the alignment sort key value K(r), where The production process data unit identifier information, safety engineering data unit identifier information, and alignment sorting key value K(r) are written into the alignment sorting key value information to form a one-to-one correspondence record.

[0165] S5065: Based on the alignment and sorting key value information, perform sorting processing on the candidate matching pair set information to obtain the target sequence number information.

[0166] In this embodiment, sorting based on alignment sorting key value information refers to the process of rearranging the candidate matching pair records in the candidate matching pair set information by using the alignment sorting key value that corresponds one-to-one with the candidate matching pair record information as the comparison basis. The target sequence number information refers to the position sequence number information of the record that is selected as the target matching pair information after the sequential rearrangement.

[0167] Specifically, when performing sorting processing on the candidate matching pair set information based on the aligned sorting key value information, the q-th candidate matching pair record information is extracted along the record order of the candidate matching pair set information, and the production process data unit identification information and the safety engineering data unit identification information are extracted. Then, identification matching and positioning processing is performed on the aligned sorting key value information according to the production process data unit identification information and the safety engineering data unit identification information to obtain the corresponding aligned sorting key value K(q). The identification matching and positioning processing refers to performing equal value comparison on the production process data unit identification field and the safety engineering data unit identification field in the aligned sorting key value information respectively, and determining the matching record when the comparison is successful. Then, a one-to-one correspondence is established between the candidate matching pair record information and the aligned sorting key value K(q) to form a sortable record sequence. Subsequently, an ascending sorting operation is performed on the sortable record sequence to obtain the rearrangement result. The ascending sorting operation means that when K(a) < K(b), the candidate matching pair record information corresponding to K(a) is arranged before the candidate matching pair record information corresponding to K(b), and the comparison is repeatedly performed on all records until the order is stable. Finally, the rearrangement result is numbered starting from 1 in the order of appearance, and the serial number corresponding to the first digit of the number is written into the target serial number information.

[0168] In one embodiment, in step S60, that is, generating data quality label information based on the integrity verification result information, and encapsulating the aligned and fused data and the data quality label information to generate core production safety data, including:

[0169] S601: Generating data quality label information based on the integrity verification result information.

[0170] In this embodiment, the data quality label information refers to the label information used to characterize the quality status corresponding to the aligned and fused data, the integrity verification result information refers to the result record information obtained after performing integrity verification on the aligned and fused data, the integrity verification result information includes a field integrity verification result field and a record integrity verification result field. The field integrity verification result field is used to characterize whether the fields in the aligned and fused data record meet the integrity requirements, the record integrity verification result field is used to characterize whether the aligned and fused data record meets the integrity requirements, and the quality status refers to the label status value determined according to the integrity verification result information.

[0171] Specifically, when generating data quality label information based on integrity verification results, the values ​​of the integrity verification results field and the record integrity verification results field corresponding to each aligned and merged data record are extracted along the recording order of the integrity verification results information. A combined judgment process is then performed on the field integrity verification results field and the record integrity verification results field to determine the quality status value. The combined judgment process means that when both the field integrity verification results field and the record integrity verification results field indicate that the quality status is determined to be "passed", when both the field integrity verification results field and the record integrity verification results field indicate that the quality status is determined to be "field missing", and when both the record integrity verification results field and the record integrity verification results field indicate that the quality status is determined to be "record abnormal". Subsequently, a correspondence is established between the quality status value and the record identifier field value of the aligned and merged data record and written into the data quality label information to form a one-to-one correspondence of label record information.

[0172] S602: Determine the encapsulation strategy information based on the data quality label information. The encapsulation strategy information includes at least the standard encapsulation strategy information and the degraded encapsulation strategy information.

[0173] In this embodiment, the encapsulation strategy information refers to the strategy information used to indicate the encapsulation method adopted when encapsulating the aligned and fused data and the data quality label information. The standard encapsulation strategy information refers to the encapsulation strategy information used to indicate the use of the complete field output method. The degraded encapsulation strategy information refers to the encapsulation strategy information used to indicate the use of the missing field masking method. The complete field output method refers to the data organization method in which both the production process data content field and the safety engineering data content field in the aligned and fused data record are written into the encapsulation result. The missing field masking method refers to the data organization method in which the missing field is set to an empty value or a preset placeholder value when the quality status value corresponding to the missing field exists in the aligned and fused data record.

[0174] Specifically, when determining the encapsulation strategy information based on the data quality label information, the quality status values ​​are extracted along the label record order of the data quality label information, and counting and statistical processing is performed on the quality status values. The counting and statistical processing refers to recording the number of records whose quality status values ​​belong to the "pass" state. The number of records whose quality status values ​​belong to the missing field status is denoted as . The number of records whose quality status values ​​belong to the abnormal state is denoted as . And calculate the total number of tags. Then calculate the percentage of abnormalities. The threshold value \theta is read from the preset policy switching threshold information. The policy switching threshold information refers to the threshold information used to determine the value of the encapsulation policy. When determining the encapsulation strategy information value to be the standard encapsulation strategy information, and writing it into the strategy type field of the encapsulation strategy information, in The encapsulation strategy information is determined to be the downgraded encapsulation strategy information and written to the strategy type field of the encapsulation strategy information.

[0175] S603: When the encapsulation strategy information indicates the standard encapsulation strategy information, the aligned and fused data and data quality label information will be processed according to the standard encapsulation process to generate core data for safe production.

[0176] In this embodiment, standard encapsulation processing refers to the process of writing aligned and fused data and data quality label information into the encapsulation output and forming core data for safe production, in accordance with the standard encapsulation strategy information indicated by the encapsulation strategy information. Fixed field organization refers to the data organization method that simultaneously retains the aligned and fused data field and the data quality label field in the encapsulation output and keeps the field position and field length consistent. Core data for safe production refers to the set of data record information after the encapsulation output is completed.

[0177] Specifically, when standard encapsulation processing is performed when the encapsulation strategy information indicates standard encapsulation strategy information, the standard encapsulation strategy indication value is read from the strategy type field of the encapsulation strategy information and an equivalent comparison is performed to confirm that the encapsulation strategy information is in the standard encapsulation strategy information state. Then, the u-th aligned and fused data record is extracted along the record order of the aligned and fused data, and the values ​​of the production process data content field, safety engineering data content field, and timestamp field are extracted. Based on the record identifier field value of the u-th aligned and fused data record, the identifier matching and positioning processing is performed in the data quality label information to obtain the corresponding label record and extract the quality status value. Then, the encapsulated record information is constructed according to the fixed field organization method. Constructing the encapsulated record information means allocating byte space for the encapsulated record information and writing the record identifier field, timestamp field, production process data content field, safety engineering data content field, and quality status field in sequence to form an encapsulated record information. Then, the encapsulated record information is written into the safety production core data to form the u-th safety production core data record.

[0178] S604: When the encapsulation strategy information indicates the downgraded encapsulation strategy information, the aligned and fused data and data quality label information will be used to perform downgraded encapsulation processing to generate core data for safe production.

[0179] In this embodiment, the downgrade encapsulation process refers to the process of adjusting the field writing method in the aligned and fused data record according to the quality status value in the data quality label information to form the core data of safe production when the encapsulation strategy information indicates the downgrade encapsulation strategy information. The field writing method adjustment refers to the data writing method of writing a preset placeholder value or empty value to the corresponding field when there is a field missing state or record abnormal state corresponding to the quality status value in the aligned and fused data record. The placeholder value refers to the preset field content used to replace the actual value of the missing field.

[0180] Specifically, when performing downgraded encapsulation processing when the encapsulation strategy information indicates downgraded encapsulation strategy information, the downgraded encapsulation strategy indication value is read from the strategy type field of the encapsulation strategy information, and an equivalent comparison is performed to confirm that the encapsulation strategy information is in a downgraded encapsulation strategy information state. Subsequently, the v-th aligned and fused data record is extracted along the record order of the aligned and fused data, and the record identifier field value and timestamp field value are extracted. Based on the record identifier field value, identifier matching and positioning processing is performed in the data quality label information to obtain the corresponding label record and extract the quality status value. When the quality status value is "pass", the production process data content field and safety engineering data content field are extracted. The original value of the field is used. When the quality status is a field missing state, a placeholder value is written for the missing field and the original value is written for the non-missing field. The placeholder value is a preset field placeholder constant. When the quality status is a record abnormal state, placeholder values ​​are written for both the production process data content field and the safety engineering data content field, while keeping the timestamp field value unchanged. Then, the record identifier field, timestamp field, production process data content field value, safety engineering data content field value, and quality status value are written into the encapsulated record information in the preset field order, and the encapsulated record information is written into the safety production core data to form the vth safety production core data record.

[0181] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0182] In one embodiment, a process safety core data construction apparatus is provided, which corresponds one-to-one with the process safety core data construction method described in the above embodiments. For example... Figure 2 As shown, this process safety core data construction device includes a link determination module, a timestamp synchronization module, a data receiving module, a timestamp marking module, a data alignment module, a verification module, and an encapsulation module. Detailed descriptions of each functional module are as follows:

[0183] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

Claims

1. A method for constructing core process safety data, characterized in that, The method for constructing core process safety data includes: Obtain preset link configuration rule information, and determine production process communication link information and safety engineering communication link information based on the preset link configuration rule information; Based on the time synchronization processing of the production process communication link information and the safety engineering communication link information, edge time-scale reference information is obtained; Based on the production process communication link information, the production process sensing data stream information is received, and based on the safety engineering communication link information, the safety engineering sensing data stream information is received. Based on the edge time stamp reference information, hardware timestamp generation processing is performed on the production process sensing data stream information and the safety engineering sensing data stream information respectively to obtain hardware timestamp information, and the hardware timestamp information is associated with the corresponding data unit. The hardware timestamp information performs cross-link matching and alignment processing on the production process sensing data stream information and the safety engineering sensing data stream information to obtain aligned and fused data. Perform an integrity check on the aligned and fused data to obtain the integrity check result information; Data quality label information is generated based on the integrity verification result information, and the aligned and fused data is encapsulated with the data quality label information to generate core data for safe production.

2. The method for constructing core process safety data according to claim 1, characterized in that, The process of determining the production process communication link information and the safety engineering communication link information based on the preset link configuration rule information includes: The link category constraint rule information, link validity determination rule information, mutual exclusion constraint condition information, and link priority rule information are obtained from the preset link configuration rule information. Based on the link category constraint rule information, the candidate link subset information for production process and the candidate link subset information for safety engineering are respectively filtered from the link candidate set information; The validity determination process is performed on the candidate link subset information of the production process according to the link validity determination rule information to obtain the valid link subset information of the production process, and the validity determination process is performed on the candidate link subset information of the safety engineering to obtain the valid link subset information of the safety engineering. Based on the mutual exclusion constraint information, perform mutual exclusion constraint verification processing on the effective link subset information of the production process and the effective link subset information of the safety engineering to obtain candidate link combination information that passes the mutual exclusion constraint verification. Based on the link priority rule information, target link combination information is determined from the link combination candidate information, and the production process link in the target link combination information is determined as the production process communication link information, and the safety engineering link in the target link combination information is determined as the safety engineering communication link information.

3. The method for constructing core process safety data according to claim 1, characterized in that, The step of performing time synchronization processing based on the production process communication link information and the safety engineering communication link information to obtain edge time-stamped reference information includes: Obtain preset synchronization interaction parameter information, and generate synchronization interaction message information in the production process communication link information and the safety engineering communication link information respectively according to the preset synchronization interaction parameter information; Based on the synchronous interactive message information, round-trip delay measurement processing is performed on the production process communication link information and the safety engineering communication link information to obtain link delay estimation information; Clock deviation calculation is performed based on the synchronization interaction message information and the link delay estimation information to obtain clock deviation information; Based on the clock deviation information, time-scale correction processing is performed on the local timing reference information to obtain edge time-scale reference information.

4. The method for constructing core process safety data according to claim 1, characterized in that, Prior to the cross-link matching and alignment process, the following is also included: Based on the production process sensing data stream information and the safety engineering sensing data stream information, the production process sampling cycle information and the safety engineering sampling cycle information are determined respectively. The alignment window parameter information and the waiting delay parameter information are determined based on the production process sampling cycle information and the safety engineering sampling cycle information. Based on the alignment window parameter information and the waiting delay parameter information, candidate set construction processing is performed on the data units corresponding to the production process perception data stream information and the safety engineering perception data stream information to obtain candidate set information for the cross-link matching and alignment processing.

5. A method for constructing core process safety data according to any one of claims 1 to 4, characterized in that, The hardware timestamp information performs cross-link matching and alignment processing on the production process-aware data stream information and the safety engineering-aware data stream information, including: Based on the candidate set information, extract the production process candidate data unit set information and the safety engineering candidate data unit set information respectively, and read the hardware timestamp information corresponding to each data unit from the production process candidate data unit set information and the safety engineering candidate data unit set information respectively; Based on the alignment window parameter information, the time difference calculation is performed on the production process candidate data unit set information and the safety engineering candidate data unit set information to obtain candidate time difference set information, and candidate matching pair set information with an absolute time difference value not greater than the alignment window parameter information is filtered based on the candidate time difference set information; Obtain preset alignment and sorting rule information, and perform sorting processing on the candidate matching pair set information based on the preset alignment and sorting rule information to obtain target sequence number information; Target matching pair information is determined from the candidate matching pair set information based on the target sequence number information; Based on the target matching information, the corresponding production process data unit and safety engineering data unit are combined to generate the aligned and fused data. When the candidate matching pair set information is empty and the waiting delay parameter information is reached, alignment failure flag information is generated.

6. The method for constructing core process safety data according to claim 5, characterized in that, The step of sorting the candidate matching pair set information based on the preset alignment and sorting rule information to obtain target sequence number information includes: The preset alignment and sorting rule information includes time difference hierarchical rule information, confidence correction rule information, and sorting key generation rule information; Based on the candidate time difference set information and the time difference classification rule information, a classification mapping process is performed on each candidate matching pair in the candidate matching pair set information to obtain time difference level value information. Based on the time synchronization reliability information and the confidence correction rule information, confidence correction processing is performed on the time difference level value information to obtain confidence correction weight information; Based on the sorting key, generate rule information, combine the time difference level value information with the confidence correction weight information to generate aligned sorting key value information; Based on the alignment and sorting key value information, the candidate matching pair set information is sorted to obtain the target sequence number information.

7. The method for constructing core process safety data according to claim 1, characterized in that, The process involves generating data quality label information based on the integrity verification result information, and encapsulating the aligned and fused data with the data quality label information to generate core data for safe production, including: The data quality label information is generated based on the integrity verification result information; The encapsulation strategy information is determined based on the data quality label information, and the encapsulation strategy information includes at least standard encapsulation strategy information and degraded encapsulation strategy information. When the encapsulation strategy information indicates the standard encapsulation strategy information, the aligned and fused data and the data quality label information are subjected to standard encapsulation processing to generate the core data for safe production; When the encapsulation strategy information indicates the degradation encapsulation strategy information, the aligned and fused data and the data quality label information are subjected to degradation encapsulation processing to generate the core data for safe production.

8. A process safety core data construction device, characterized in that, The process safety core data construction device includes: The link determination module is used to obtain preset link configuration rule information and determine the production process communication link information and the safety engineering communication link information based on the preset link configuration rule information. The time-stamping module is used to perform time synchronization processing based on the production process communication link information and the safety engineering communication link information to obtain edge time-stamping reference information; The data receiving module is used to receive production process sensing data stream information based on the production process communication link information, and to receive safety engineering sensing data stream information based on the safety engineering communication link information. The timestamp marking module is used to perform hardware timestamp generation processing on the production process sensing data stream information and the safety engineering sensing data stream information based on the edge timestamp reference information, respectively, to obtain hardware timestamp information, and associate the hardware timestamp information with the corresponding data unit. The data alignment module is used to perform cross-link matching and alignment processing on the production process sensing data stream information and the safety engineering sensing data stream information with the hardware timestamp information to obtain aligned and fused data; The verification module is used to perform integrity verification on the aligned and fused data and obtain integrity verification result information; The encapsulation module is used to generate data quality label information based on the integrity verification result information, and encapsulate the aligned and fused data with the data quality label information to generate core data for safe production.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the process safety core data construction method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the process safety core data construction method as described in any one of claims 1 to 7.