A method and system for analyzing lineage of discrete manufacturing data

By generating unique data IDs and establishing lineage tables in discrete manufacturing enterprises, and associating lineage analysis maps and data process instance diagrams, the problem of incomplete views and broken lineage relationships in data lineage analysis is solved, and the efficiency of data management and analysis is improved. and accuracy, improving production efficiency and quality control capabilities.

CN118503247BActive Publication Date: 2024-09-27山东浪潮智能生产技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410955395.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-09-27
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

Discrete manufacturing enterprises have problems in data lineage analysis such as incomplete views, broken lineage relationships, missing data sources, and unconnected real-time and offline data lines, which affects the efficiency and accuracy of data management and analysis.

Method used

By obtaining data from each discrete production system, generate unique data IDs, establish data source tables and lineage tables, generate lineage analysis maps and data process instance diagrams, and associate the two through data IDs to ensure the accuracy and completeness of data lineage analysis. sex.

Benefits of technology

It solves the problems of incomplete views and broken blood relationships, improves the efficiency and accuracy of data management and analysis, ensures the integrity and traceability of data, and improves the enterprise's production efficiency and quality control capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118503247B
    Figure CN118503247B
Patent Text Reader

Abstract

The present invention relates to the field of industrial big data, and in particular to a method and system for discrete manufacturing data lineage analysis, the method comprising: obtaining data from various data sources, converting the data into a unified format, generating a unique data ID for each piece of data, establishing a data source table based on the data and data ID, updating the data source table in real time according to each data ID and synchronizing it to each discrete production system; defining the relationship between each piece of data according to the business process of key events in the production process, and then establishing a data lineage table and a lineage analysis map; defining the event pattern in the production process by regular expressions, and then constructing an event sequence instance and a data process instance diagram; associating the lineage analysis map and the data process instance diagram by data ID to perform data lineage analysis. The present invention overcomes the problems of incomplete views, broken lineage relationships, missing data sources, etc. that exist in data lineage analysis, and improves the efficiency and accuracy of data analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of industrial big data, and in particular to a discrete manufacturing data lineage analysis method and system. Background Art

[0002] With the advancement of industrial technology and the continuous upgrading of discrete manufacturing systems, production data management has become an important issue in discrete manufacturing in the industrial field. In this context, data lineage analysis has become an effective way to meet the discrete manufacturing requirements for specific data supervision and traceability such as equipment data, production data, quality data, and product data.

[0003] At present, a large amount of data is generated every day on the production line by various equipment, production management systems, quality control platforms, product traceability systems, etc. These data are processed, converted and transmitted to provide key basis for production decision-making and quality management. However, a discrete manufacturing enterprise may contain multiple production lines or production workshops, each of which may use different production systems and data processing platforms. When conducting data lineage analysis, there will be problems such as incomplete views, broken lineage relationships, missing data sources, and unconnected real-time and discrete data lineage. These problems have brought huge challenges to the data management and analysis of discrete manufacturing enterprises, affecting the production efficiency and quality control of enterprises. Summary of the invention

[0004] In view of the above-mentioned defects or deficiencies in the prior art, it is desired to provide a discrete manufacturing data lineage analysis method and system to support the data management and decision-making needs of discrete manufacturing enterprises.

[0005] In a first aspect, the present invention provides a method for analyzing lineage of discrete manufacturing data, the method comprising:

[0006] Acquire data from data sources in each discrete production system, where the data types include equipment data, production data, quality data, and product data, convert the data from each data source into a unified format, and generate a unique data ID for each piece of data;

[0007] Preliminarily store data with unique data IDs, establish a data source table based on the data and its corresponding data ID, update the data source table in real time according to each data ID and synchronize it to each discrete production system;

[0008] According to the business process of key events in the production process, define the relationship between various data, establish a data lineage relationship table based on each data ID, and generate a lineage analysis map based on the data lineage relationship table;

[0009] Define the event pattern in the production process through regular expressions, build event sequence instances based on the event pattern, and generate data process instance diagrams based on the event sequence instances;

[0010] The lineage analysis map and the data process instance diagram are associated through data ID to perform data lineage analysis.

[0011] Preferably, the step of establishing a data source table based on the data and the data ID corresponding thereto, and updating the data source table in real time according to each data ID and synchronizing it to each discrete production system includes:

[0012] Constructing a data source table structure, wherein the data information includes a data ID, a data source identifier, a data type, a data value, and a timestamp;

[0013] Write the data information of each data into the data source table;

[0014] Acquire real-time data, determine the real-time data type, the real-time data type includes newly added data and existing data, and update the data source table according to the real-time data type;

[0015] Integrate the updated data information in the data source table into a data set, and create a data set ID for the data set;

[0016] The metadata of the created dataset ID is recorded to facilitate data analysis and tracing.

[0017] Preferably, the relationship between various data is defined according to the business process of key events in the production process, including:

[0018] Identify and determine critical events in the production process;

[0019] Obtain data related to each key event and determine the business process of the key event;

[0020] Based on the business process, it is determined whether the generation, transmission or processing of one of the data depends on the completion of another data, thereby defining the dependency relationship between the data.

[0021] Preferably, establishing a data lineage relationship table based on each data ID includes:

[0022] Constructing a data lineage relationship table structure, wherein the lineage relationship table structure includes a data source ID, a data source event name, a data target ID, a data target event name, a dependency type, and a timestamp;

[0023] Get the data ID and dependencies of each key event;

[0024] Structure data IDs and dependencies;

[0025] Write structured data ID and dependency information into the data lineage table.

[0026] Preferably, generating a blood relationship analysis map based on the data blood relationship table includes:

[0027] Represent each key event as a data node;

[0028] According to the data dependency, directed edges are added between data nodes to indicate the direction of data flow;

[0029] Generates directed graphs to show the flow path and dependencies of data from input to output.

[0030] Preferably, constructing an event sequence instance based on an event pattern includes:

[0031] Identify event patterns that need to be monitored and matched during production;

[0032] Obtain the actual event instances and their timestamps that occurred during the production process in real time;

[0033] Scan event instances, match sequences that match event patterns and create corresponding state nodes, wherein the state nodes include a timestamp, a data ID, a matching state and a preceding pointer, wherein the preceding pointer points to a previous event instance;

[0034] When the end event of the event pattern is matched, a complete event sequence instance is constructed.

[0035] Preferably, matching a sequence that conforms to an event pattern and creating a corresponding state node comprises: defining trigger conditions and processing rules according to the event pattern to achieve dynamic response.

[0036] Preferably, generating a data process instance diagram based on an event sequence instance includes:

[0037] Initialize the data process instance diagram object;

[0038] Add each state node in the event sequence instance to the data process instance diagram based on the event sequence flow;

[0039] Add relationship edges between state nodes based on the predecessor pointer.

[0040] Preferably, associating the blood relationship analysis map with the data process instance diagram through data ID comprises:

[0041] Determine a unique data ID for each data node in the blood relationship analysis map;

[0042] Determine a unique data ID for each state node in the data process instance diagram;

[0043] Establish associations between the lineage analysis map and the data process instance map through unique data IDs;

[0044] In the data process instance diagram, when the state node in the event sequence instance matches the data node in the lineage analysis map, the associated information is recorded;

[0045] Integrate the data flow path in the lineage analysis map with the event sequence in the data process instance diagram based on the association information to ensure that the data relationship in the two diagrams is consistent;

[0046] The origin of data can be traced in the data process instance diagram through association information, and the data flow can be verified in the lineage analysis map to ensure the accuracy and completeness of data lineage analysis.

[0047] In a second aspect, the present invention provides a discrete manufacturing data lineage analysis system for implementing the discrete manufacturing data lineage analysis method, comprising:

[0048] The data acquisition module is used to obtain data from data sources in various discrete production systems, convert them into a unified format, and generate a unique data ID for each piece of data;

[0049] The data management module is used to initially store data with unique data IDs, establish a data source table based on the data and its corresponding data ID, and update the data source table in real time according to each data ID and synchronize it to each discrete production system;

[0050] The lineage analysis module is used to define the relationship between various data according to the business process of key events in the production process, establish a data lineage relationship table based on each data ID, and generate a lineage analysis map;

[0051] The event processing module is used to define the event pattern in the production process through regular expressions, build event sequence instances based on the event pattern, and generate data process instance diagrams;

[0052] An association verification module is used to associate the lineage analysis map with the data process instance diagram through data ID, and use the association information to perform data lineage analysis to ensure the accuracy and completeness of the data lineage analysis;

[0053] The visualization module is used to display lineage analysis maps and data process instance diagrams, providing a user-friendly interface for viewing and analyzing data lineage relationships and event sequences.

[0054] The present invention has the following beneficial effects:

[0055] The present invention can eliminate the data format differences between different systems, ensure the integrity and traceability of data, and solve the problems of incomplete view and missing data source by unifying the data format and generating unique data ID; by updating the data source table in real time and synchronizing it to each discrete production system, the consistency and real-time of data are guaranteed, so that the problem of broken kinship caused by asynchronous data update can be avoided, and the unification of real-time and offline data kinship can be ensured; by establishing a data kinship table and generating a kinship analysis map, a comprehensive kinship view is provided; by constructing event patterns and event sequence instances, it helps to understand and analyze the data flow and event relationship in the production process, and improve the accuracy and effectiveness of production management; by associating the kinship analysis map with the data process instance diagram through the data ID, the consistency and integrity of the data flow path and the event sequence are ensured. The present invention effectively solves the problems of incomplete view, broken kinship, missing data source, and unconnected real-time and offline data kinship in the current discrete manufacturing production data management, greatly improves the efficiency and accuracy of data management and analysis, thereby improving the production efficiency and quality control capabilities of the enterprise. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0057] Figure 1 A flowchart of a discrete manufacturing data lineage analysis method provided by an embodiment of the present invention;

[0058] Figure 2 A schematic diagram of data storage and dependency relationships provided by an embodiment of the present invention;

[0059] Figure 3 A schematic diagram of a matching pattern of an event instance provided in an embodiment of the present invention;

[0060] Figure 4 A data process example diagram provided for an embodiment of the present invention. DETAILED DESCRIPTION

[0061] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.

[0062] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0063] Please refer to Figure 1, is a flowchart of an exemplary discrete manufacturing data lineage analysis method in an embodiment of the present invention. The discrete manufacturing data lineage analysis method provided by the embodiment of the present invention specifically includes:

[0064] S10, acquiring data from data sources in each discrete production system, where the data types include equipment data, production data, quality data, and product data, converting the data from each data source into a unified format, and generating a unique data ID for each piece of data;

[0065] In this embodiment, the discrete production system includes multiple production lines or workshops, each of which is provided with a corresponding data source for storing relevant data, wherein the data source includes, for example, machinery and equipment, sensors, manufacturing execution systems, quality management systems, enterprise resource planning systems, etc., equipment data includes, for example, equipment operating time, operating temperature, operating pressure, maintenance records, etc., production data includes, for example, production plans, production schedules, production steps, output, production anomalies, etc., quality data includes, for example, product inspection data, pass rate, defective product analysis, etc., product data includes, for example, product number, specification, production date, batch number, etc., and relevant data are obtained through API calls, database connections or field bus protocols.

[0066] In an optional implementation, all data are uniformly converted into JSON format. In some other embodiments, they can be uniformly converted into data formats such as XLM, YAML or MessagePacK that are easy for machines to parse and generate.

[0067] In this embodiment, generating a unique data ID for each piece of data specifically includes:

[0068] S11, determine the data source ID and timestamp of the data;

[0069] S12, generating a random sequence number for each piece of data;

[0070] S13. Generate a data ID based on the data source identifier, timestamp and random sequence number.

[0071] For example, a temperature sensor collects temperature data, the data source ID is Sensor123, the timestamp is 0000-00-00T00:00:00Z, and the generated random sequence number is XYZ789, then the generated data ID is Sensor123-00000000T000000Z-XYZ789.

[0072] S20, preliminarily storing the data with unique data ID, establishing a data source table based on the data and the data ID corresponding thereto, updating the data source table in real time according to each data ID and synchronizing it to each discrete production system;

[0073] In this embodiment, step S20 specifically includes:

[0074] S21, constructing a data source table structure, wherein the data information includes a data ID, a data source identifier, a data type, a data value, and a timestamp;

[0075] S22, writing the data information of each data into the data source table;

[0076] S23, acquiring real-time data, determining the real-time data type, the real-time data type including newly added data and existing data, and updating the data source table according to the real-time data type;

[0077] Specifically, when the real-time data type is new data, it is directly written into the data source table. When the real-time data type is existing data, the corresponding record is found according to the data ID, and its data value, timestamp and other information are updated. By updating the data source table in real time, the latest data and events in the production process can be dynamically and accurately reflected.

[0078] S24, integrating the updated data information in the data source table into a data set, and creating a data set ID for the data set;

[0079] S25. Record the metadata of the created dataset ID to facilitate data analysis and tracing.

[0080] In this embodiment, the metadata of the data set ID includes but is not limited to creation time, modification content, new status, cancellation status, etc. By creating a data set ID and recording the metadata of the data set ID, it helps to manage the data in an orderly manner and provides convenient conditions for subsequent complex data analysis and tracing.

[0081] S30, defining the relationship between various data according to the business process of key events in the production process, establishing a data lineage relationship table based on each data ID, and generating a lineage analysis map based on the data lineage relationship table;

[0082] In this embodiment, step 30 specifically includes:

[0083] S31. Identify and determine key events in the production process;

[0084] For example, a production process includes the following key events:

[0085] A: Raw material inspection;

[0086] B: Production starts;

[0087] C: intermediate product inspection;

[0088] D: Final product production.

[0089] S32, obtaining data related to each key event and determining the business process of the key event;

[0090] Specifically, the business process includes the generation, processing and transmission of data.

[0091] Exemplarily, the data related to each key event is as follows:

[0092] A: Raw material inspection (data includes: A1 inspection results, A2 inspection parameters, etc.);

[0093] B: Start of production (data includes: B1 production plan, B2 work order information, etc.);

[0094] C: intermediate product inspection (data include: C1 intermediate product inspection results, C2 intermediate product inspection parameters);

[0095] D: Final product production (data include: D1 quality parameters, D2 output).

[0096] S33. Determine whether the generation, transmission or processing of one data depends on the completion of another data based on the business process, thereby defining the dependency relationship between the data.

[0097] Please refer to Figure 2 ,Exemplarily, the dependencies between some data are as follows:

[0098] Production process A and production process B submit task processes to each other through a communication protocol. Among them, B1 depends on the data of A1. According to different production nodes, the data is managed in global storage and shard storage to facilitate efficient storage of the dependencies between data.

[0099] S34, constructing a data lineage relationship table structure, wherein the lineage relationship table structure includes a data source ID, a data source event name, a data target ID, a data target event name, a dependency type, and a timestamp;

[0100] S35, obtaining the data ID and dependency relationship of each key event;

[0101] S36, structure the data ID and dependency relationship;

[0102] S37. Write the structured data ID and dependency information into the data lineage table.

[0103] In an optional embodiment, the lineage analysis map is generated by using a Neo4j graph database. In some other embodiments, the lineage analysis map can be generated by using graph databases such as Amazon Neptune, JanusGraph, TigerGraph, ArangoDB, and OrientDB. Generating the lineage analysis map specifically includes:

[0104] S38, representing each key event as a data node;

[0105] S39. According to the data dependency, directed edges are added between data nodes to indicate the direction of data flow, and a directed graph is generated to show the flow path and dependency of data from input to output.

[0106] Specifically, by establishing a data lineage table and generating a lineage analysis map, a comprehensive lineage view is provided, thereby helping enterprises monitor, trace and optimize the production process.

[0107] S40, defining an event pattern in the production process by means of a regular expression, constructing an event sequence instance based on the event pattern, and generating a data process instance diagram based on the event sequence instance;

[0108] In this embodiment, step S40 specifically includes:

[0109] S41. Determine the event patterns that need to be monitored and matched during the production process;

[0110] For example, in a production process, it is necessary to monitor the entire process of products from finished products to packaging and then to warehousing. The following event mode can be defined:

[0111] A: Finished product

[0112] B: Product packaging

[0113] C: Product storage

[0114] The production process can be expressed as follows using regular expressions:

[0115] SEQ(A a, B+ b[ ], C c), where A represents the product finished product event, a represents the conditional event that satisfies A, B+ represents one or more packaging events, b[ ] represents the conditional event that satisfies B, C represents the product warehousing event, and c represents the conditional event that satisfies C.

[0116] S42, obtaining event instances and their timestamps that actually occur during the production process in real time;

[0117] For example, a product undergoes the following events during the production process:

[0118] A1: finished product (time stamp is 0000-00-00T00:00:00Z);

[0119] B1: product packaging (timestamp is 0000-00-00T00:10:00Z);

[0120] B2: product packaging (timestamp is 0000-00-00T00:20:00Z);

[0121] C1: Product entry (timestamp is 0000-00-00T00:30:00Z);

[0122] S43, scanning event instances, matching sequences that conform to event patterns and creating corresponding state nodes, wherein the state nodes include a timestamp, a data ID, a matching state and a preceding pointer, wherein the preceding pointer points to a previous event instance;

[0123] In this embodiment, trigger conditions and processing rules are defined according to event patterns to achieve dynamic response.

[0124] Please refer to Figure 3 , exemplarily, the matching pattern of the event instance is specifically:

[0125] S431. When the event product finished product A occurs and the timestamp is 0000-00-00T00:00:00Z, and the product ID is A1, the event information is recorded and state 1 is entered.

[0126] S432: When state 1 matches the event product package B and the timestamp is 0000-00-00T00:10:00Z, and the product ID is B1, the event information is recorded, multiple B events are processed in a self-loop, and state 2 is entered.

[0127] S433. When state 2 matches the event product entry C and the timestamp is 0000-00-00T00:30:00Z, and the product ID is C1, the event information is recorded, and state 3 is entered to complete the matching of the entire event sequence.

[0128] S44. When the end event of the event pattern is matched, a complete event sequence instance is constructed.

[0129] S45, initializing the data process instance diagram object;

[0130] S46, adding each state node in the event sequence instance to the data process instance graph based on the event sequence flow;

[0131] S47. Add relationship edges between state nodes according to the preceding pointer.

[0132] Please refer to Figure 4, exemplarily, events are tracked and matched through a data process instance graph, where nodes in the graph represent different events, and the lines between the nodes represent the order of the events, where:

[0133] a1,11 means that the event with timestamp 1 meets the condition of A, and its data ID is 11;

[0134] a2, 21 means that the event with timestamp 2 meets the condition of A, and its data ID is 21;

[0135] a4,41 means that the event with timestamp 4 meets the condition of A, and its data ID is 41;

[0136] b2, 22 means that the event with timestamp 2 meets the condition of B, and its data ID is 22;

[0137] b3,31 means that the event with timestamp 3 meets the condition of B, and its data ID is 31;

[0138] c3,32 means that the event with timestamp 3 meets the condition of C, and its data ID is 32;

[0139] c4,42 means that the event with timestamp 4 meets the condition of C, and its data ID is 42;

[0140] In the figure, the event sequence is constructed by backtracking along the preceding pointer until the initial state 0 is reached. By backtracking, all possible event sequences are generated. The first event sequence is [a2, 21 b3, 31 c4, 42], the second event sequence is [a1, 11 b2, 22 b3, 31 c4, 42], and the third event sequence is [a1, 11 b2, 22 c3, 32].

[0141] Specifically, by using regular expressions for pattern matching and sequence construction, and by using data process instance diagrams to detect and track event sequences in the data space, data in the production process can be effectively managed and analyzed.

[0142] S50. Associating the lineage analysis map with the data process instance diagram through data ID to perform data lineage analysis.

[0143] In this embodiment, step S50 specifically includes: S51, determining the unique data ID of each data node in the lineage analysis map; S52, determining the unique data ID of each state node in the data process instance diagram; S53, establishing an association between the lineage analysis map and the data process instance diagram through the unique data ID; S54, in the data process instance diagram, when the state node in the event sequence instance matches the data node in the lineage analysis map, recording the association information; S55, integrating the data flow path in the lineage analysis map with the event sequence in the data process instance diagram according to the association information to ensure that the data relationship in the two diagrams is consistent; S56, tracing the origin of the data in the data process instance diagram through the association information, and verifying the data flow in the lineage analysis map to ensure the accuracy and completeness of the data lineage analysis.

[0144] In a second aspect, the present invention provides a discrete manufacturing data lineage analysis system for implementing the discrete manufacturing data lineage analysis method, comprising:

[0145] The data acquisition module is used to obtain data from data sources in various discrete production systems, convert them into a unified format, and generate a unique data ID for each piece of data;

[0146] Specifically, by unifying the data format and generating a unique data ID, the differences in data formats between different systems can be eliminated, ensuring the integrity and traceability of data, and solving the problems of incomplete views and missing data sources.

[0147] The data management module is used to initially store data with unique data IDs, establish a data source table based on the data and its corresponding data ID, and update the data source table in real time according to each data ID and synchronize it to each discrete production system;

[0148] Specifically, by updating the data source table in real time and synchronizing it to each discrete production system, the consistency and real-time nature of the data are guaranteed. This can avoid the problem of broken blood relationships caused by asynchronous data updates and ensure the unification of real-time and offline data blood relationships.

[0149] The lineage analysis module is used to define the relationship between various data according to the business process of key events in the production process, establish a data lineage relationship table based on each data ID, and generate a lineage analysis map;

[0150] Specifically, a comprehensive blood relationship view is provided by establishing a data blood relationship table and generating a blood relationship analysis map.

[0151] The event processing module is used to define the event pattern in the production process through regular expressions, build event sequence instances based on the event pattern, and generate data process instance diagrams;

[0152] Specifically, the construction of event patterns and event sequence instances helps to understand and analyze the data flow and event relationships in the production process, and improve the accuracy and effectiveness of production management.

[0153] An association verification module is used to associate the lineage analysis map with the data process instance diagram through data ID, and use the association information to perform data lineage analysis to ensure the accuracy and completeness of the data lineage analysis;

[0154] Specifically, the lineage analysis map and the data process instance diagram are associated through the data ID to ensure the consistency and integrity of the data flow path and event sequence.

[0155] The visualization module is used to display lineage analysis maps and data process instance diagrams, providing a user-friendly interface for viewing and analyzing data lineage relationships and event sequences.

[0156] Specifically, the present invention effectively solves the problems existing in the current discrete manufacturing production data management, such as incomplete views, broken lineage relationships, missing data sources, and unconnected real-time and offline data lineages, and greatly improves the efficiency and accuracy of data management and analysis, thereby improving the production efficiency and quality control capabilities of the enterprise.

[0157] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the present application.

Claims

1. A discrete manufacturing data lineage analysis method, characterized in that: The method comprises: Acquire data from data sources in each discrete production system, where the data types include equipment data, production data, quality data, and product data, convert the data from each data source into a unified format, and generate a unique data ID for each piece of data; Preliminarily store data with unique data IDs, establish a data source table based on the data and its corresponding data ID, update the data source table in real time according to each data ID and synchronize it to each discrete production system; According to the business process of key events in the production process, define the relationship between various data, establish a data lineage relationship table based on each data ID, and generate a lineage analysis map based on the data lineage relationship table; An event pattern in a production process is defined by a regular expression, an event sequence instance is constructed based on the event pattern, and a data process instance diagram is generated based on the event sequence instance, wherein the process of constructing an event sequence instance based on the event pattern includes: Identify event patterns that need to be monitored and matched during production; Obtain the actual event instances and their timestamps that occurred during the production process in real time; Scan event instances, match sequences that match event patterns and create corresponding state nodes, wherein the state nodes include a timestamp, a data ID, a matching state and a preceding pointer, wherein the preceding pointer points to a previous event instance; When the end event of the event pattern is matched, a complete event sequence instance is constructed; The matching of sequences conforming to the event pattern and creating corresponding state nodes includes: defining trigger conditions and processing rules according to the event pattern to achieve dynamic response; The data process instance diagram generated based on the event sequence instance includes: Initialize the data process instance diagram object; Add each state node in the event sequence instance to the data process instance diagram based on the event sequence flow; Add relationship edges between state nodes based on the preceding pointer; The lineage analysis map and the data process instance diagram are associated through data ID to perform data lineage analysis.

2. The discrete manufacturing data lineage analysis method according to claim 1 is characterized in that: The data source table is established based on the data and the corresponding data ID, and the data source table is updated in real time according to each data ID and synchronized to each discrete production system, including: Constructing a data source table structure, wherein the data information includes a data ID, a data source identifier, a data type, a data value, and a timestamp; Write the data information of each data into the data source table; Acquire real-time data, determine the real-time data type, the real-time data type includes newly added data and existing data, and update the data source table according to the real-time data type; Integrate the updated data information in the data source table into a data set, and create a data set ID for the data set; The metadata of the created dataset ID is recorded to facilitate data analysis and tracing.

3. The discrete manufacturing data lineage analysis method according to claim 1 is characterized in that: The relationship between various data defined according to the business process of key events in the production process includes: Identify and determine critical events in the production process; Obtain data related to each key event and determine the business process of the key event; Based on the business process, it is determined whether the generation, transmission or processing of one of the data depends on the completion of another data, thereby defining the dependency relationship between the data.

4. The discrete manufacturing data lineage analysis method according to claim 3 is characterized in that: The data lineage relationship table established based on each data ID includes: Constructing a data lineage relationship table structure, wherein the lineage relationship table structure includes a data source ID, a data source event name, a data target ID, a data target event name, a dependency type, and a timestamp; Get the data ID and dependencies of each key event; Structure data IDs and dependencies; Write structured data ID and dependency information into the data lineage table.

5. The discrete manufacturing data lineage analysis method according to claim 4 is characterized in that: Generating a blood relationship analysis map based on the data blood relationship table includes: Represent each key event as a data node; According to the data dependency, directed edges are added between data nodes to indicate the direction of data flow; Generates directed graphs to show the flow path and dependencies of data from input to output.

6. The discrete manufacturing data lineage analysis method according to claim 1 is characterized in that: The associating the blood relationship analysis map with the data process instance map through the data ID includes: Determine a unique data ID for each data node in the blood relationship analysis map; Determine a unique data ID for each state node in the data process instance diagram; Establish associations between the lineage analysis map and the data process instance map through unique data IDs; In the data process instance diagram, when the state node in the event sequence instance matches the data node in the lineage analysis map, the associated information is recorded; Integrate the data flow path in the lineage analysis map with the event sequence in the data process instance diagram based on the association information to ensure that the data relationship in the two diagrams is consistent; The origin of data can be traced in the data process instance diagram through association information, and the data flow can be verified in the lineage analysis map to ensure the accuracy and completeness of data lineage analysis.

7. A discrete manufacturing data lineage analysis system, characterized in that: The method for analyzing discrete manufacturing data lineage according to any one of claims 1 to 6 above comprises: The data acquisition module is used to obtain data from data sources in various discrete production systems, convert them into a unified format, and generate a unique data ID for each piece of data; The data management module is used to initially store data with unique data IDs, establish a data source table based on the data and its corresponding data ID, and update the data source table in real time according to each data ID and synchronize it to each discrete production system; The lineage analysis module is used to define the relationship between various data according to the business process of key events in the production process, establish a data lineage relationship table based on each data ID, and generate a lineage analysis map; The event processing module is used to define the event pattern in the production process through regular expressions, build event sequence instances based on the event pattern, and generate data process instance diagrams; An association verification module is used to associate the lineage analysis map with the data process instance diagram through data ID, and use the association information to perform data lineage analysis to ensure the accuracy and completeness of the data lineage analysis; The visualization module is used to display lineage analysis maps and data process instance diagrams, providing a user-friendly interface for viewing and analyzing data lineage relationships and event sequences.