A method and system for constructing a cold rolling process cross-system data bloodline map

By constructing a data lineage map of the cold rolling process, and using the weight and particle size hierarchy of material records to calculate the quality conservation residual and confidence weight, the problem of abnormal traceability of finished tubes in cold rolling production was solved, and accurate traceability results were achieved.

CN123178681APending Publication Date: 2026-11-27上上德盛集团股份有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611673324.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-28
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In the cold rolling production process, existing technologies cannot effectively solve the problem of finished tubes being traced back to multiple candidate tube blanks or the weight of downstream finished products not matching that of upstream tube blanks, resulting in abnormal traceability results.

Method used

By collecting the weight, waste weight, and particle size hierarchy of material records, a partially ordered set is constructed, and the mass conservation residual and confidence weight are calculated to form a confidence-weighted data lineage map. The confidence weight is used to traverse the traceability request in reverse and output a unique billet record or a questionable mark for multiple candidate sources.

Benefits of technology

It enables accurate tracing of unique billet records in the cold rolling process, avoiding tracing errors caused by discrepancies in quantity relationships, ensuring that the tracing path conforms to the law of physical conservation, and improving the accuracy and reliability of data association.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178681A_ABST
    Figure CN123178681A_ABST
Patent Text Reader

Abstract

The application discloses a cold rolling process cross-system data blood relationship map construction method and system, relates to the field of data processing, collects material records associated with unique identification, constructs a partial order set, calculates confidence weight for each parent-child derived edge according to the split coverage relationship in the partial order set and writes the confidence weight into the edge attribute, reconnects the parent-child derived edge with the confidence weight lower than a confidence threshold by auxiliary key disambiguation, obtains a confidence weighted partial order set, stores the confidence weighted partial order set into a graph database to form a data blood relationship map, receives a traceability request taking a finished product identification as a starting point, and outputs a credible traceability result of a unique pipe blank record or a suspicious mark of multiple candidate sources, so that the traceability chain is prevented from being disconnected unexpectedly at a complex processing node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing, specifically to a method and system for constructing a cross-system data lineage map of a cold rolling process. Background Technology

[0002] Cold rolling production involves the flow of raw billets through processes such as grinding, cold rolling, heat treatment, straightening, pickling, and finishing before the finished product leaves the factory. Material flow data for each process is stored separately by the Enterprise Resource Planning (ERP) system, Manufacturing Execution System (MES), Quality Management System (QMS), and Laboratory Information Management System (LIMS) according to their respective recording rules. By linking upstream and downstream material records through billet identification or process batch numbers, a data lineage map covering the entire cold rolling production process is constructed, providing a cross-system data association foundation for finished product traceability and root cause analysis.

[0003] Patent CN114329082A discloses a data lineage analysis method and system based on hugegraph. It collects the data table structures and field mapping relationships of various business systems, analyzes the primary key field of the upstream data table and the foreign key field of the downstream data table, establishes a lineage connection edge between the two records based on the equality of the primary key and foreign key values ​​of the upstream and downstream records, and stores the connection edge in a graph database. This supports lineage queries and impact analysis at both the table and field levels. Patent CN120218943A discloses a graph theory-based industrial internet identification system full-process traceability method. It assigns a unified product identifier to data records in each system. When a downstream record references or inherits the unified identifier of an upstream record, it determines that a traceability relationship exists between the two and establishes a traceability link. This supports reverse querying of the product's entire lifecycle origin and circulation path based on the unified identifier.

[0004] However, when performing one-click backtracking to the billet for finished pipes that have undergone blanking, cutting, cold rolling, and recutting, two anomalies occasionally occur in the traceability results. One scenario is that a finished pipe is traced back to multiple candidate billets, making it impossible to uniquely determine its origin. The other scenario is that when tracing backwards from a billet, the number and weight of downstream finished products do not match the upstream billet; for example, a billet weighing approximately 100 kg may have a significantly higher or lower cumulative weight among its finished products. These anomalies are concentrated in products that have undergone blanking, cutting, cold rolling for significant extension, and recutting. Operators can retrieve a billet and several associated transfer cards from the existing manufacturing execution system, summing the weights at each process stage and subtracting the weight from the upstream billet weight. This reveals records where the weights do not match across processes but are still grouped into the same batch. Simultaneously, calculating the difference between the number of pipes recorded on the associated transfer cards and the original number of pipes on the billet reveals records where the number of pipes does not match across processes but are still grouped into the same batch.

[0005] To address the aforementioned shortcomings, a technical solution is provided. Summary of the Invention

[0006] To address the technical problems raised in the background section, this invention is proposed. This invention provides a method and system for constructing cross-system data lineage maps for cold rolling processes.

[0007] This invention is achieved through the following technical solution: a method for constructing a cross-system data lineage map of cold rolling processes, comprising: Collect material records associated with unique identifiers, extract the weight, waste weight and particle size level of each record, construct a partially ordered set based on the material inclusion relationship between orders, batches, samples and single pieces, mark the splitting and covering relationship formed by the splitting process, and obtain a partially ordered set with splitting and covering marks. For each splitting and covering relationship in the partial order set, calculate the quality conservation residual based on the parent record weight, the total child record weight, and the waste weight. Based on this, calculate the confidence weight for each parent-child derived edge and write it into the edge attribute. For parent-child derived edges with confidence weights lower than the confidence threshold, disambiguate and reconnect them with an auxiliary key to obtain the confidence-weighted partial order set. The confidence-weighted partial order set is stored in the graph database to form a data lineage map. The system receives traceability requests starting from the finished product identifier, traverses in reverse according to the confidence weight, and outputs the credible traceability result of the unique billet record or the doubtful mark of multiple candidate sources.

[0008] Furthermore, the steps for constructing the partially ordered set are as follows: For each material record, extract the weight, waste weight, length, timestamp, unit identifier, specifications, and particle size level. The particle size level can be one of order, batch, sample, or single piece, to obtain a set of material records. For any two records in the material record set, if the material identified by the first record originates from or is contained in the material identified by the second record, it is determined that the first record is not greater than the second record. If the second record is not greater than the first record and there are no other intermediate records between them, it is determined that the two constitute an overlay relationship. A partially ordered set is constructed with the material records as elements and the material inclusion relationship as the order relationship.

[0009] Furthermore, the step of obtaining the partially ordered set with the split cover tag is as follows: In the partially ordered set, the covering relationship is divided into split covering relationship and granularity containment covering relationship. The split covering relationship between adjacent granularity records is identified by the process of blanking, pipe cutting or cold rolling and then cutting. Each split covering relationship is marked with its parent record, all child records and the number of child records, and thus a partially ordered set with split covering mark is obtained.

[0010] Furthermore, the steps for constructing the confidence-weighted partial order set are as follows: Traverse the partially ordered set marked with split and cover, and for each split and cover relationship, read the parent record weight, the parent record waste weight, and the weight of all child records to obtain the material balance data for each split and cover relationship; The normalized quality conservation residual is calculated based on the material balance data; the ratio of the sum of the lengths of all child records in the split coverage relationship to the length of the parent record is used as the cold rolling elongation rate; the coupling tolerance threshold is calculated based on the number of child records and the cold rolling elongation rate; the confidence weight of each parent-child derived edge is calculated by the ratio of the normalized quality conservation residual to the coupling tolerance threshold; the confidence weight and the normalized quality conservation residual are written into the edge attributes to obtain the confidence weighted partial order set.

[0011] Furthermore, the confidence-weighted partial order set also includes an update step: Based on the confidence weight, parent-child derived edges are divided into reliable edges, questionable edges, and broken edges. Reliable edges are retained, while broken edges are excluded and marked as unreliable. For questionable edges, candidate parent records are retrieved using unit identifier, execution time window, and specifications as auxiliary keys for disambiguation and reconnection. If the candidate parent record is unique, reconnection is completed and the edge is upgraded to a reliable edge. If there are multiple candidate parent records, the candidate record set is marked as questionable, and the confidence weighted partial order set is updated. The boundary threshold between questionable edges and broken edges is dynamically determined according to the number of child records.

[0012] Furthermore, the steps for calculating the normalized mass conservation residual are as follows: subtract the sum of the weights of all child records from the weight of the parent record, then subtract the weight of the waste material in the parent record and take the absolute value to obtain the absolute mass residual. Divide the absolute mass residual by the weight of the parent record to obtain the normalized mass conservation residual.

[0013] Further, the steps for calculating the coupling tolerance threshold are as follows: multiply the baseline tolerance, the first factor that increases linearly with the number of sub-records, and the second factor that increases linearly with the cold-rolled elongation by one to obtain the coupling tolerance threshold.

[0014] Furthermore, edges with a confidence weight not less than the first threshold are considered trustworthy edges, edges between the second threshold and the first threshold are considered questionable edges, and edges less than the second threshold are considered broken edges; the first threshold is a fixed value, and the second threshold is equal to the baseline threshold divided by a factor that increases linearly with the number of sub-records.

[0015] Furthermore, for the particle size inclusion coverage relationship in the partial order set, the material record with particle size level of sample or batch is associated with each individual particle size record it contains and the representative relationship is marked. The representative relationship is stored in the data lineage map along with the partial order set.

[0016] Furthermore, the data lineage map includes coverage of grinding, cold rolling, heat treatment, straightening, pickling, and finishing.

[0017] Furthermore, the steps for outputting reliable traceability results for unique billet records or questionable markers for multiple candidate sources are as follows: Receive traceability requests starting from the finished product identifier, merge the set of child records into the set of parent records with trusted edges as connecting edges, construct a weighted disjoint set, store the normalized quality conservation residual between each material record and its direct parent record as the weight, and obtain the cumulative residual by accumulating the weight along the path when searching for the root record.

[0018] Furthermore, the step of outputting a reliable traceability result for a unique billet record or a question mark for multiple candidate sources also includes: when the obtained root record is a billet record, outputting the root record and the cumulative residual as a reliable traceability result; when the finished product record cannot reach any billet record via a reliable edge, outputting a traceability defect mark; and when encountering a question mark marked as questionable during the reverse traversal, outputting its candidate set as a question mark for multiple candidate sources.

[0019] Furthermore, data quality scores are generated for the collected material records based on their completeness and accuracy, and material records with data quality scores below the quality threshold are not included in the partially ordered set.

[0020] A system for constructing a cross-system data lineage map of cold rolling processes, comprising: The partial order construction module is used to collect material records associated with unique identifiers, extract the weight, waste weight and particle size level of each record, construct a partial order set based on the material inclusion relationship between orders, batches, samples and single pieces, mark the split coverage relationship formed by the split process, and obtain a partial order set with split coverage mark. The residual disambiguation module is used to calculate the mass conservation residual for each split coverage relationship in the partial order set based on the parent record weight, the total weight of all child records and the waste weight. Based on this, the confidence weight is calculated for each parent-child derived edge and written into the edge attribute. Parent-child derived edges with confidence weights lower than the confidence threshold are disambiguated and reconnected with auxiliary keys to obtain the confidence weighted partial order set. The graph traceability module is used to store the confidence-weighted partial order set into the graph database to form a data lineage graph. It receives traceability requests starting from the finished product identifier, traverses backward according to the confidence weight, and outputs the credible traceability result of the unique billet record or the doubtful mark of multiple candidate sources.

[0021] Compared with the prior art, the beneficial effects of the present invention are: A partially ordered set is constructed by using unique identifiers to associate material records and extracting weight, waste weight, and particle size hierarchy, thus transforming cross-system material flow into a unified topology. Split-overlap relationships are marked in the partially ordered set, and the quality conservation residual is calculated based on parent-child records and waste weight. The difference between income and expenditure is converted into a numerical index measuring the probability of edge validity, eliminating fan-out over-connections caused by equivalent matching of process batch numbers. Confidence weights are calculated based on the residuals and written into edge attributes. For derived edges with weights below a threshold, unit identifiers and execution time windows are introduced to assist in disambiguation, cutting off serial number inheritance errors and reconnecting to source records. After the confidence-weighted partially ordered set is stored to form a graph, traceability requests are traversed in reverse according to weights, tracing only along quantity-consistent paths, outputting billet records or questionable markers, ensuring that the traceability path conforms to the physical conservation law.

[0022] Pre-calculate data quality scores and block records below the quality threshold to avoid residual calculation failures caused by incomplete fields. Set the residual comparison benchmark to a coupling tolerance threshold that increases linearly with the number of sub-records and cold-rolled elongation to compensate for cutting losses and oxide scale peeling losses, preventing misjudgments of normal segmentation. Establish representative relationships from coarse-grained to single-branch granularity for granularity inclusion and coverage relationships to mitigate association explosion or omissions caused by cross-granularity queries. Construct a weighted disjoint-set data structure along trusted edges, accumulating residuals as weights during pointer merging, completing addressing and residual calculation simultaneously in a single query, reducing long-link enumeration overhead. The break boundary threshold is dynamically lowered as the number of sub-records increases, and simultaneously widened in sync with the coupling tolerance threshold to accommodate the accumulation of interpretable losses from multi-branch segmentation, preventing unexpected breaks in the traceability chain at complex processing nodes. Attached Figure Description

[0023] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. The following drawings are not drawn to scale according to the actual size, but are intended to show the main idea of ​​the present invention.

[0024] Figure 1 A flowchart of a method for constructing a cross-system data lineage map for a cold rolling process; Figure 2 A system block diagram for constructing a cross-system data lineage map of a cold rolling process; Figure 3 A schematic diagram illustrating the mass cost of a single physical segmentation. Figure 4 A schematic diagram illustrating the fan-out cluster defect caused by the inheritance of process batch numbers; Figure 5 A schematic diagram illustrating the three-state partitioning of parent-child derived edges based on confidence weights; Figure 6 This diagram illustrates the cumulative residuals along the trusted edge and the three levels of tracing output. Detailed Implementation

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

[0026] The apparent problem of incomplete traceability chains and the inability to uniquely determine the source stems from a fundamental disconnect between the criteria for establishing connection edges and the physical laws governing materials. In cold rolling production, during the blanking, tube cutting, cold rolling, and re-cutting processes, a single tube blank is physically divided into multiple sections, forming a fan-out structure with one parent and multiple children. After cold rolling, the tube length significantly increases and may be cut again. Each business system records these events at its own granularity. Downstream records establish connection edges across systems by inheriting or referencing the tube blank identifier or process batch number from upstream records. The tube blank identifier or process batch number is unconditionally inherited, creating fan-out clusters on the graph, while the connection edges themselves do not carry any quantity or weight reconciliation information. When multiple sub-batches share the same inherited process batch number but are processed separately in different units at different times, the connection edges merge multiple sub-batches into the same node cluster. During reverse traversal, it becomes impossible to distinguish which downstream records correspond to which segment of upstream material. At each physical cut, the sum of the weights of all child records plus the recorded waste weight should equal the weight of the parent record. Unrecorded cut damage, material misappropriation, and inherited process batch numbers will disrupt this quantitative relationship. However, establishing connections solely based on equal identifier values ​​does not verify this quantitative relationship; any identical identifier is used for connection. Therefore, connections with inconsistent quantities are still established, and the graph lacks any mechanism to identify a quantitatively inconsistent connection. This neglected quantity and weight conservation relationship exists precisely in the count and weight fields of the manufacturing execution system's transfer card records, yet it has never been used as a criterion for the validity of establishing connections. Figure 1 As shown, the following method constructs the above conservation relationship as a criterion for the legality of edge construction and applies it throughout the entire tracing process.

[0027] like Figure 4 The diagram shows a fan-out cluster defect formed by the inheritance of process batch number.

[0028] Reference Figure 4The diagram illustrates an over-connection defect where the billet identifier or process batch number is unconditionally inherited by downstream materials, and connection edges are established solely based on equal identifier values, resulting in a fan-out cluster on the graph. The upper node represents the billet incoming material record, carrying the billet identifier or process batch number to which it belongs. The multiple nodes below represent multiple sub-batch records processed at different times in different units. Each sub-batch record establishes connection edges across the system by inheriting or referencing the billet identifier or process batch number of the upstream record. Because the billet identifier or process batch number is unconditionally inherited, multiple sub-batches share the same inherited process batch number. Connection edges established solely based on equal identifier values ​​merge multiple sub-batches into the same node cluster, forming the fan-out cluster shown in the diagram. The diagram shows that the connecting edge itself does not carry any reconciliation information on quantity and weight. There is no mechanism on the diagram to identify a connecting edge that is inconsistent in quantity. When traversing backward, it is impossible to distinguish which downstream records correspond to which upstream material. This results in anomalies such as a finished pipe being traced back to multiple candidate pipe blanks without being able to uniquely determine the source, and the number and weight of downstream finished products not matching the upstream pipe blanks when tracing forward.

[0029] Step S10: Collect material records associated with unique identifiers, extract the weight, waste weight and particle size level of each record, construct a partially ordered set based on the material inclusion relationship between orders, batches, samples and single pieces, mark the splitting coverage relationship formed by the splitting process, and obtain a partially ordered set with splitting coverage mark; Step S10 takes material records associated with unique identifiers from the Enterprise Resource Planning (ERP) system, Manufacturing Execution System (MES), Quality Management System (QMS), and Laboratory Information Management System (LIMS) as input. After four processing steps—material record acquisition and field extraction, data quality scoring and filtering, partial order set construction, and coverage relationship differentiation and splitting of coverage relationship markers—it outputs a partial order set with split coverage relationship markers. This partial order set with split coverage relationship markers is received by step S20 and used to calculate the normalized quality conservation residuals and confidence weights for each split coverage relationship. A unique identifier refers to the code that uniquely identifies a material record in each business system. The same material record is uniquely identified by its unique identifier in the data lineage diagram. Unique identifiers are compiled according to hierarchical coding rules for orders, batches, samples, and individual items. The unique identifier of a fine-grained record is prefixed with the unique identifier of its corresponding coarse-grained record. The billet identifier or process batch number refers to the business identifier carried by the material record that identifies the billet's incoming material or process batch. This identifier or batch number is inherited by downstream materials during physical segmentation and process flow. Therefore, multiple material records originating from the same billet share the same billet identifier or batch number. Establishing a connection solely based on the equality of the billet identifier or batch number will interconnect multiple records sharing the same identifier, forming fan-out clusters. Over-connections caused by these fan-out clusters are identified and corrected by subsequent steps of normalized quality conservation residual verification and disambiguation reconnection of questionable edges. A partially ordered set refers to a set structure with material records as elements and the order relationship between materials as origination or inclusion relationships. Each element corresponds to a real material record in reality. A Manufacturing Execution System (MES) workflow card, a laboratory information management system (SIS) sample, or an Enterprise Resource Planning (ERP) order line all constitute a material record. Split-overlay relationship refers to a parent-child overlay relationship formed by physically dividing a tube blank into multiple tubes through blanking, tube cutting, or cold rolling and then cutting processes. In contrast, granularity-based overlay relationship refers to an overlay relationship in the sense of an order containing a batch, or a batch containing a single tube, as a set of members. Step S10 includes steps S11, S12, S13, and S14.

[0030] Step S11: Collect material records from the Enterprise Resource Planning System, Manufacturing Execution System, Quality Management System, and Laboratory Information Management System respectively. Each material record is uniquely identified by the hierarchical code of its system and carries the tube blank identifier or process batch number of the tube blank incoming material or process batch to which it belongs. Extract the weight, scrap weight, length, timestamp, unit identifier, specifications, and particle size level for each material record. The particle size level is one of order, batch, sample, or single piece, to obtain a set of material records.

[0031] Material records are read from the Enterprise Resource Planning (ERP) system by contract or order line, from the Manufacturing Execution System (MES) by production flow card, from the Quality Management System (QMS) by inspection batch, and from the Laboratory Information Management System (LIMS) by sample. Each material record is uniquely identified by its hierarchical code within its system and carries the billet identifier or process batch number of its incoming billet or process batch. The contract number, execution standard, steel type, specifications, number of pieces, and weight displayed on the MES production flow card management interface are the direct data sources for material record collection. The production management and basic data module on the main MES interface provides a unified entry point for the record interfaces of the four systems. The following fields are extracted for each material record: Weight refers to the total weight of the material entity corresponding to the material record at the time the material record is generated, i.e., when the material segment is physically cut into pieces. The unit is kilograms. It is read from the weight field of the MES flow card and is a positive real number. This field is not rewritten when the material segment undergoes subsequent processes such as grinding, cold rolling, heat treatment, straightening, pickling, and finishing, which do not change the number of material pieces. Scrap weight refers to the sum of the cutting loss and head / tail weight recorded in each process report from the generation of this material record to the next physical division of the material segment, in kilograms. It is obtained by accumulating the scrap weight from each process report in the Manufacturing Execution System (MES). When a material record has no scrap weight field, the scrap weight is zero, as a record without scrap reporting is physically equivalent to a scrap weight of zero. Length refers to the axial length of the material entity at the time this material record is generated, in meters. It is read from the length field of the MES flow card. This field is not modified by subsequent processes. When the length field is empty, it is calculated by dividing the weight by the theoretical weight per unit length corresponding to the specification. The theoretical weight per unit length is calculated from the outer diameter, wall thickness, and steel density corresponding to the specification field according to the theoretical weight formula for steel, or read from the theoretical linear density value matching the specification in the preset specification dictionary, in kilograms per meter. Timestamp refers to the time when the process event corresponding to the material record occurred, read from the operation time field recorded by each business system. The unit identifier refers to the production unit number performing the corresponding process, which is read from the scheduling record of the Manufacturing Execution System. The specification refers to the combination of the outer diameter and wall thickness of the material entity, read from the specification field of the transfer card. The particle size level refers to the aggregation level of the material identified by the material record, taking one of four categories: order, batch, sample, or single piece, determined by the system to which the record belongs and the coding rules. Since both weight and length are taken from the value at the time the material record is generated, the length of the parent record in a split-overlap relationship is the length before cold rolling, and the length of all child records is the length after cold rolling and cutting; the ratio of the two reflects the cold rolling elongation. The difference between the parent record weight and the sum of the weights of all child records covers all losses from each process from the generation of the parent record to this cutting. The portion that has been reported is given by the scrap weight of the parent record, and the portion that has not been reported constitutes the normalized quality conservation residual. After extracting the above fields, the material record set is obtained.

[0032] The material entity operation data is scattered across four types of business systems. Each material record corresponds to a real segment of billet, semi-finished product, or finished product on the cold rolling production line. The reason for extracting the three fields of weight, scrap weight, and length is that when a billet is cut into multiple pieces, the material before and after the cutting can be directly weighed on-site. Cutting losses and end-piece materials are recorded in the scrap field when reporting the work. The pipe length can be directly measured before and after cold rolling. These three fields together carry the physical quantities required for subsequent verification of the quantitative relationship before and after cutting. If only the unique identifier is extracted without extracting the weight and scrap weight, the quantitative relationship of a single physical cutting cannot be verified. In cold rolling discrete manufacturing, the same batch of materials is repeatedly recorded in different systems at different granularities. Unifying the extraction of the above fields ensures that the records of different systems fall under the same verifiable data foundation. Each material record in the material record set carries fields for weight, scrap weight, and length. This allows subsequent steps to directly perform quantity checks on any physical split of parent and child records without relying on whether the unique identifiers are equal. Since the weight and scrap weight are taken from existing fields in the transfer card and work report, the data required for verification can be obtained without adding new data acquisition equipment. The material record set becomes the data source for subsequent normalized quality conservation residual calculation.

[0033] Step S12: Generate data quality scores for the material records collected in step S11 based on their completeness and accuracy, and exclude material records with data quality scores below the quality threshold from the partially ordered set.

[0034] For each material record in the material record set, calculate the integrity component and the accuracy component. The integrity component is calculated by counting the number of non-empty fields among the seven fields of weight, scrap weight, length, timestamp, unit identifier, specifications, and particle size level in the material record. Divide the number of non-empty fields by seven to obtain the integrity component, which has a value range between zero and one. The scrap weight field is processed according to the zeroing rule in step S11. Records with zero scrap weight due to the absence of a corresponding scrap field have physically valid zero scrap weight values ​​and are counted as non-empty fields. The accuracy component is calculated by performing a field-by-field validity check on the material record. This includes checking if the weight and length are positive real numbers, if the timestamp falls within the production line start date to the current date, if the particle size level matches one of the following four criteria: order batch, sample, or single piece, and if the specification matches a pre-set specification dictionary. This pre-set specification dictionary consists of valid outer diameter and wall thickness combinations from the company's specification ledger. A match is considered successful when a specification field completely matches any combination in the dictionary. The number of fields passing the validity check is counted, and this number is divided by the total number of fields participating in the check to obtain the accuracy component, which ranges from zero to one. The total number of fields participating in the check is the number of fields with valid validity check rules, namely weight, length, timestamp, particle size level, and specification. The integrity component is multiplied by an integrity weight coefficient, and the accuracy component is multiplied by an accuracy weight coefficient, then summed to obtain the data quality score. The completeness weight coefficient represents the contribution of field completeness to record usability, while the accuracy weight coefficient represents the contribution of field correctness to record usability. The sum of the completeness weight coefficient and the accuracy weight coefficient equals one. Both weight coefficients are calculated positively based on the number of fields involved in the statistics. The completeness weight coefficient equals the number of fields involved in validity verification divided by the sum of the number of fields involved in completeness statistics and the number of fields involved in validity verification. The accuracy weight coefficient equals the number of fields involved in completeness statistics divided by the same sum. In other words, the two weight coefficients are inversely proportional to the number of fields they count. This approach ensures that the score drop caused by a single incorrect field value is greater than the drop caused by a single empty field. This is because out-of-bounds values ​​directly distort the normalized quality conservation residual, while empty fields only result in incomplete record information. The impact of these two types of defects on map usability is thus differentiated, and both weight coefficients can be determined during the initial deployment on the production line when there is no historical data.

[0035] The data quality score is compared with the quality threshold. Material records with a data quality score not lower than the quality threshold are included in the subsequent partial order set construction, while material records with a data quality score lower than the quality threshold are not included in the partial order set. The quality threshold is the minimum data quality score that a record should achieve to participate in the mapping normally. Its data selection criteria are as follows: among the seven fields, weight, waste weight, length, timestamp, specifications, and granularity level are the core fields. If any core field is missing or its value is out of bounds, the normalized quality conservation residual cannot be calculated or the coverage relationship cannot be determined. The unit identifier is a non-core field, and its absence only prevents the record from participating in the auxiliary key retrieval during the disambiguation of doubtful edges. Accordingly, the quality threshold is equal to the ratio of the integrity weight coefficient multiplied by the number of fields participating in the integrity statistics minus one to the number of fields, plus the accuracy weight coefficient. That is, it is the data quality score obtained when only the unit identifier, a non-core field, is empty, and all five fields with legality verification rules pass the verification. Because the score drop caused by a single incorrect field value is greater than the drop caused by a single empty non-core field, any record with even one field value exceeding the limit will have a data quality score below the quality threshold and will be excluded. Records with all fields present and valid values ​​will have a data quality score equal to one and will be included. Therefore, the quality threshold can be calculated forward without actually measuring the score distribution. When the data quality score exactly equals the quality threshold, it is included because the record has all core fields present and valid values, lacking only non-core fields, and can still be used for graph construction.

[0036] The raw material records collected across systems are often contaminated with missing fields and out-of-bounds values ​​due to human error in manual data entry or interface interaction deviations. Examples include empty weight or length fields, negative weight values, and timestamps out of sync with the actual production cycle. Directly including such defective records in the partial-order set for subsequent quantity verification would render the calculation of normalized quality conservation residuals ineffective due to missing core terms or denominators, resulting in meaningless or severely distorted data verification results. Therefore, in the complex scenario of multiple cold rolling systems, a pre-set quality threshold filtering mechanism can intercept substandard records before mapping. After completeness and accuracy filtering, all material records entering the partial-order set have complete and verifiable field foundations, fundamentally eliminating false residuals caused by missing underlying data, and effectively suppressing resulting traceability node errors and broken links.

[0037] Step S13: For any two records in the material record set, if the material identified by the first record originates from or is contained in the material identified by the second record, it is determined that the first record is not greater than the second record. If the second record is not greater than the first record and there are no other intermediate records between them, it is determined that the two constitute an overlay relationship. Construct a partially ordered set with the material record as the element and the material inclusion relationship as the order relationship.

[0038] For any two material records in the material record set constructed using the partially ordered set, denoted as the first record and the second record, their unique identifier, billet identifier or process batch number, particle size level, and timestamp are read. The data conditions for determining that the first record is not greater than the second record are as follows: the billet identifier or process batch number of the first record and the second record are equal; the particle size level of the first record is not coarser than that of the second record and the timestamp of the second record is earlier than that of the first record; or the particle size level of the first record is finer than that of the second record and the unique identifier prefix of the first record matches the unique identifier of the second record according to the coding rules. If either of these two conditions is met and the first record and the second record are not the same record, it is determined that the material identified by the first record originates from or is contained in the material identified by the second record, and the first record is recorded as not greater than the second record. Because the billet identifier or process batch number is inherited by downstream materials and shared by multiple records within the fan-out cluster, there may be multiple second records satisfying the first condition mentioned above, thus forming an over-connected candidate coverage relationship. This over-connection does not affect the construction of the partial order set and is left to be corrected in step S20 based on the normalized quality conservation residual check and the disambiguation and reconnection of questionable edges in step S23. The fineness and coarseness order of the particle size hierarchy is defined as single piece finer than sample, sample finer than batch, and batch finer than order. The above order relationship satisfies the three properties of partial order: reflexivity, which requires that any material record is not greater than itself, used to formally ensure the completeness of the order relationship; antisymmetry, which means that two different material records will not simultaneously originate from or contain each other; and transitivity, which means that when the first record originates from the second record and the second record originates from the third record, the first record originates from the third record. The origination or containment relationship of cold-rolled materials does not physically cycle, so the above three properties hold.

[0039] The data conditions for determining whether two material records constitute an overlay relationship are: the second record is not greater than the first record, the first and second records are not the same record, and there is no third record in the material record set such that the second record is not greater than the third record and the third record is not greater than the first record; that is, there is no intermediate record between the first and second records. Based on the above determination, a partially ordered set is constructed using material records as elements and material inclusion relationships as the order relationship. The storage structure of the partially ordered set is an adjacency list, where each material record node stores a list of edges pointing to its directly overlaid lower-level records.

[0040] After quality filtering, the material records and their origin-or inclusion relationships are visible on-site. A single material feed transforms a billet into multiple segments, and a single contract contains multiple transfer cards. These origin-or inclusion relationships represent the material flow direction that is directly observable. Cold-rolled material flow is unidirectional and non-looping; upstream material becomes downstream components, but downstream components do not reverse back to upstream material. Therefore, origin-or inclusion relationships naturally satisfy the three properties of partial order. If linear lists or simple key-value pairs are used to represent record relationships, it is impossible to simultaneously express both cross-granularity inclusion and cross-process derivation relationships. The multi-branch structure across processes will be flattened, losing branch affiliation. Partially ordered sets characterize the direct derivation or direct inclusion between adjacent records using covering relationships, ensuring that the one-parent-multiple-child structure corresponding to a single physical division is fully preserved. This provides a hierarchical connection structure for step S14 to distinguish and split covering relationships and granularity inclusion covering relationships.

[0041] Step S14: In the partial order set, the covering relationship is divided into split covering relationship and granularity containment covering relationship. The split covering relationship between adjacent granularity records is identified by the blanking, tube cutting or cold rolling and cutting process. Each split covering relationship is marked with its parent record, all child records and the number of child records, to obtain the partial order set with split covering mark.

[0042] The process iterates through each coverage relationship in the partial order set, reading the granularity level and process event type fields of the material records at both ends of the coverage relationship. The process event type field is read from the process flow sequence displayed in the production scheduling details interface of the manufacturing execution system. The process flow sequence includes the execution records of each process: billet arrival, grinding, blanking, pipe cutting, pickling, cold rolling, cold rolling and re-cutting, heat treatment, straightening, and finishing. The data conditions for distinguishing the coverage relationship type are as follows: when the granularity level of the parent and child records of the coverage relationship is the same and the process event type field is one of blanking, pipe cutting, or cold rolling and re-cutting, it is determined to be a split coverage relationship, corresponding to a material being physically divided into multiple pieces in reality; when the granularity level of the parent record of the coverage relationship is coarser than that of the child record and the process event type field is empty or aggregated and merged, it is determined to be a granularity inclusion coverage relationship, corresponding to the set membership relationship of an order containing a batch or a batch containing a single piece. Processes like grinding, pickling, cold rolling, heat treatment, straightening, and finishing—which involve one inflow and one outflow of material without changing the number of material strips—do not generate separate material records. Instead, they are recorded as process events on the material record of the same material segment. Therefore, they do not form distinct adjacent covering relationships in the partial order set. New sub-records are only generated when the material is physically cut, cut into tubes, or cold rolled. Covering relationships that do not meet either the split covering relationship determination criteria or the particle size inclusion covering relationship determination criteria are marked as unclassified covering relationships. These relationships do not participate in subsequent split covering labeling and normalized quality conservation residual verification and are logged for manual verification to ensure that each covering relationship in the partial order set has a clear processing path. For each covering relationship determined to be a split covering relationship, the parent record is marked as the parent record of the split covering relationship, and all covering lower-level records originating from the same parent record are marked as all sub-records of the split covering relationship. The total number of sub-records is counted, and the number of sub-records is an integer not less than one. After the above distinction and labeling, a partial order set with split covering labels is obtained.

[0043] Coverage relationships in partially ordered sets are physically divided into two directly distinguishable events: one is the splitting event, such as cutting, tube cutting, cold rolling, and then further cutting, which divides a single material into multiple pieces; the other is the merging event, which groups multiple pieces into a batch or order. The splitting event is characterized on-site as one input and multiple outputs, with the total weight of the material remaining constant before and after the split (i.e., the weight of the parent piece equals the sum of the weight of all child pieces and the weight of scrap). The merging event only involves set assignment without creating new materials. These two types of events are directly distinguished by the process names in the manufacturing execution system's process flow sequence. If these two types of coverage relationships are not distinguished and are all connected by identifier equivalence, the set assignment edge and the physical splitting edge will be confused, and the weight conservation check at the splitting point will have no applicable object. In cold rolling discrete manufacturing, the processes of cutting, tube cutting, and cold rolling are dense. Separately marking the splitting coverage relationship and recording its parent record, all child records, and the number of child records allows subsequent lineage inference to use the splitting coverage relationship as the basic verification unit, rather than relying solely on identifier equivalence. Each split-cover relationship in the partial order set with split-cover marker carries the parent record, all child records, and the number of child records. Step S20 applies a weight conservation check to each physical split accordingly. The number of child records is also used by steps S22 and S23 to calculate the coupling tolerance threshold and the second threshold, so that the quantity conservation constraint can be adaptively applied to each parent-child derived edge according to the split complexity.

[0044] Step S20: For each splitting and covering relationship in the partial order set, calculate the quality conservation residual based on the parent record weight, the total weight of all child records and the waste weight. Based on this, calculate the confidence weight for each parent-child derived edge and write it into the edge attribute. For parent-child derived edges with confidence weights lower than the confidence threshold, disambiguate and reconnect them with an auxiliary key to obtain a confidence-weighted partial order set. Step S20, based on the partially ordered set with split and overlay markers output in Step S10, completes the processing from material quantity verification to parent-child derived edge confidence measurement and disambiguation reconnection. Step S20 takes the partially ordered set with split and overlay markers as input, and through material balance data extraction, normalized quality conservation residual calculation, coupling tolerance threshold calculation, confidence weight calculation and writing, parent-child derived edge three-state partitioning, and doubtful edge disambiguation reconnection, outputs a confidence-weighted partially ordered set. This confidence-weighted partially ordered set is received by Step S30 for storage and to support traceability traversal. A parent-child derived edge refers to the connection edge between a parent record and one of its child records in a split and overlay relationship. A split and overlay relationship with several child records corresponds to the same number of parent-child derived edges. The normalized quality conservation residual is the ratio of the absolute value of the difference between the parent record weight, the sum of all child record weights, and the parent record waste weight in a single physical split to the parent record weight. The confidence weight refers to the degree of confidence that a parent-child derived edge is valid in terms of quantity conservation. Its value ranges from zero to one; the closer the value is to one, the more reliable the parent-child derived edge is. The confidence-weighted partial order set is the partial order set obtained by writing the confidence weight and normalized quality conservation residual to each parent-child derived edge in the partial order set with splitting and covering tags, and then disambiguating and reconnecting questionable edges. Step S20 includes steps S21, S22, and S23.

[0045] Step S21: Traverse the partially ordered set marked with split and cover tags, and for each split and cover relationship, read the parent record weight, the parent record waste weight, and the weight of all child records to obtain the material balance data for each split and cover relationship.

[0046] Iterate through each split-override relationship in the partially ordered set marked with a split-override flag. Read the weight field from the parent record of the split-override relationship as the parent record weight, and read the scrap weight field as the parent record scrap weight. Read the weight field from each of the child records of the split-override relationship as the weight of each child record. Group the parent record weight, the parent record scrap weight, and the weights of all child records under the same split-override relationship name to obtain the material balance data for the split-override relationship. Material balance data refers to an ordered set of parent record weights, parent record scrap weights, and the weights of all child records under a split-override relationship name. The structure is a record structure with the parent record's unique identifier as the key, the parent record weight and parent record scrap weight as scalar fields, and the list of all child record weights as a vector field. The number of elements in the vector field equals the number of child records in the split-override relationship.

[0047] The weight field of each material record at both ends of the split coverage relationship physically corresponds to the actual weighing value when the parent component is generated and when each child component is generated. Before a split, there is one parent component; after the split, there are several child components and scrap. Only by grouping the weight of the parent component, the weight of the scrap, and the weight of all child components under the same split name can the weight reconciliation for that split be performed. The scrap reported by each process between the generation of the parent record and this split has been included in the scrap weight of the parent record according to the accumulation rule in step S11. Unreported losses remain in the revenue / expense difference and are represented by the normalized quality conservation residual. If the weights of different split events are mixed together for statistics, the revenue / expense cannot be mapped to the specific split location. After the parent record weight, the parent record waste weight, and all child record weights of each split coverage relationship are grouped into material balance data, step S22 can directly calculate the normalized quality conservation residual for each physical split without having to look up the partial order set topology again. This ensures that the range of data for residual calculation is strictly limited to the same split event, avoiding misalignment caused by cross-splitting data retrieval.

[0048] Step S22: Calculate the normalized quality conservation residual based on the material balance data; use the ratio of the sum of the lengths of all child records in the split coverage relationship to the length of the parent record as the cold rolling elongation rate, and set the cold rolling elongation rate to one for blanking or pipe cutting processes that do not involve cold rolling; calculate the coupling tolerance threshold based on the number of child records and the cold rolling elongation rate; calculate the confidence weight of each parent-child derived edge by the ratio of the normalized quality conservation residual to the coupling tolerance threshold; write the confidence weight and the normalized quality conservation residual into the edge attributes to obtain the confidence-weighted partial order set. Step S22 includes steps S221, S222, and S223.

[0049] like Figure 3 The diagram shown illustrates the mass cost of a single physical segmentation.

[0050] Reference Figure 3 The diagram illustrates the parent-child structure and its weight distribution when a tube blank is physically divided into multiple sections during blanking, cutting, or cold rolling and subsequent cutting processes. The upper box represents the parent record before division, with its weight marked inside. The multiple boxes below represent all the child records formed after division, with each child record's weight marked inside. The connecting edges from the parent record to each child record represent the splitting and overlay relationship, corresponding to the physical division of a single material into multiple sections in reality. The boxes extending from the sides represent the cutting losses and head / tail materials generated and recorded during this process, marked as scrap weights. The diagram shows that in a single, self-consistent physical division, the sum of all child record weights plus the scrap weight of the parent record equals the parent record weight.

[0051] Step S221: Subtract the sum of the weights of all child records from the weight of the parent record, then subtract the weight of the waste material in the parent record and take the absolute value to obtain the absolute mass residual. Divide the absolute mass residual by the weight of the parent record to obtain the normalized mass conservation residual.

[0052] Before calculating the normalized mass conservation residual, first check if the parent record weight is greater than zero. If the parent record weight is not greater than zero, it indicates that no valid weight was collected for the parent record. Skip the calculation of the normalized mass conservation residual for this split-coverage relationship, and directly mark each parent-child derived edge corresponding to this split-coverage relationship as unreliable to avoid a denominator of zero. This marking is performed in this step and does not depend on the pre-processing result of the data quality scoring filter in step S12. Read the weights of all child records from the material balance data, and add them one by one to obtain the sum of the child record weights. Subtract the sum of the child record weights from the parent record weight, and then subtract the waste weight of the parent record to obtain the mass balance difference. Take the absolute value of the mass balance difference to obtain the absolute mass residual, in kilograms. Dividing the absolute mass residual by the parent record weight yields the normalized mass conservation residual. The normalized mass conservation residual is a dimensionless ratio, taking values ​​of zero or higher. The better the conservation of the number of physical segments, the smaller the normalized mass conservation residual. The normalized mass conservation residual is zero when the sum of the weights of all child records plus the weight of the waste material is exactly equal to the weight of the parent record.

[0053] Under a split coverage relationship, the weight of the parent record, the weight of the scrap, and the weight of all child records correspond to the directly weighable mass of the material segment before and after a physical split. When a billet is cut into multiple pieces, the material does not increase or decrease arbitrarily before and after the split. The weight of all child pieces plus the recorded scrap should equal the weight of the parent piece. The weight and scrap fields of the manufacturing execution system's workflow card directly provide the three weighing values ​​required for verification. Taking the absolute value of the quality difference and dividing it by the parent record weight unifies the difference between records of different specifications and tonnages into a proportion of the parent piece's weight, ensuring that the residuals of different split coverage relationships fall within the same comparable range. If edges are built solely based on equal identifiers without verifying the above-mentioned quality difference relationship, misconnected edges caused by unrecorded scrap and serial number inheritance cannot be identified. Calculating the normalized quality conservation residual edge by edge during the cold rolling splitting process exposes a type of quantity inconsistency that cannot be detected by identifier equivalence into a comparable value. The normalized quality conservation residual is written into the parent-child derived edge attributes and passed to steps S222 and S32, so that the graph construction legality criterion changes from whether the identifiers are equal to whether the quantity is consistent. Any connection edge with a mismatched quantity will get a larger normalized quality conservation residual, and thus be treated differently in the subsequent credibility measurement.

[0054] Step S222: Multiply the baseline tolerance, the first factor that increases linearly with the number of sub-records, and the second factor that increases linearly with the cold rolling elongation to obtain the coupling tolerance threshold.

[0055] Calculate the cold-rolled elongation: Read the length field from the parent record of the split-overlay relationship as the parent record length. Read the length field from each of the child records of the split-overlay relationship and add them one by one to obtain the sum of the child record lengths. The parent record length is extracted or converted in step S11 and is a positive real number. Divide the sum of the child record lengths by the parent record length to obtain the cold-rolled elongation. For split-overlay relationships where the process event type field is set to blanking or pipe cutting without cold rolling, set the cold-rolled elongation to one. This is because the change in the total axial length of the pipe before and after the blanking and pipe cutting processes is minimal, and the cutting loss is negligible relative to the total length of the billet, so the cold-rolled elongation is approximately one. When the cold-rolled elongation calculated by dividing the sum of the child record lengths by the parent record length is less than one, it indicates an abnormal length data. Set the cold-rolled elongation to one to avoid the second factor being less than one, which would cause an abnormal reduction in the coupling tolerance threshold.

[0056] Calculate the first and second factors: Subtract one from the number of sub-records to obtain the increment of the number of sub-records. Multiply the increment of the number of sub-records by the first coupling coefficient and add one to obtain the first factor. The first factor increases linearly with the increase of the number of sub-records. Subtract one from the cold-rolled elongation rate to obtain the elongation increment. Multiply the elongation increment by the second coupling coefficient and add one to obtain the second factor. The second factor increases linearly with the cold-rolled elongation rate deviating from one. Multiply the reference tolerance, the first factor, and the second factor together to obtain the coupling tolerance threshold. The coupling tolerance threshold is a dimensionless ratio, which, like the normalized mass conservation residual, is a proportion of the parent record's weight. Since they have the same dimensions, they can be directly compared. The coupling tolerance threshold is constructed by multiplying the three factors because the number of sub-records and the cold rolling elongation rate respectively characterize the two independent normal loss sources: the increase in the cut interface and the cold rolling elongation. The first factor and the second factor are each the first-order linear amplification factor of the corresponding loss with the complexity of that dimension. The multiplication of the two factors is the total amplification factor relative to the baseline tolerance under the combined effect of the two independent loss sources. When any factor is one, the multiplication structure degenerates into the amplification of the other factor alone, and always keeps the threshold positive, which is consistent with the physical law of the independent superposition of the two sources.

[0057] The baseline tolerance refers to the upper limit of the normalized mass conservation residual attributable to normal unrecorded losses under the standard cutting condition of one sub-record and one cold-rolled elongation. It is calculated as follows: the sum of the maximum permissible errors of three weighings of the parent record, the parent record scrap, and one sub-record, plus the unrecorded cutting loss weight corresponding to a single cut, is divided by the parent record weight to obtain the baseline tolerance. The maximum permissible error is read from the calibration certificate or nameplate calibration value of the weighing instrument of the unit, in kilograms. The unrecorded cutting loss weight corresponding to a single cut is equal to the sum of the cut width and the single cut end-face trimming length specified in the process specification, multiplied by the theoretical weight per unit length corresponding to the specification. The cut width is taken as the saw blade thickness or the cut width of the pipe cutter. The end-face trimming length is read from the process specification. This weight is the portion of a cut that is most likely not recorded in the parent record scrap weight when a work is reported missing. Therefore, the baseline tolerance is the proportion of the sum of losses explainable by the measuring instrument error and unrecorded cutting losses in a standard cutting to the parent record weight. For example, the baseline tolerance is set to 0.02. The first coupling coefficient refers to the linear growth rate of the proportion of explainable loss as the number of sub-records increases by one. It is calculated as follows: add the maximum permissible weighing error of a single sub-record to the unrecorded cut weight corresponding to a single cut, and then divide by the product of the baseline tolerance and the parent record weight to obtain the first coupling coefficient. Since each additional sub-part cut means one more sub-record weighing and one more cut, the explainable loss increases linearly with this increment. Therefore, the first factor is set to 1 when the number of sub-records is one, and then increases linearly with the number of sub-records according to the first coupling coefficient. The second coupling coefficient refers to the linear growth rate of the proportion of losses that can be explained by each unit increase in cold rolling elongation. It is calculated as follows: multiply the pickling weight loss per unit length by the parent record length, and then divide by the product of the baseline tolerance and the parent record weight to obtain the second coupling coefficient. The pickling weight loss per unit length is the difference in weight of the pipe before and after the pickling process divided by its length, in kilograms per meter, which is directly measured by on-site weighing. Since each unit increase in cold rolling elongation adds a pipe length equal to the parent record length, the oxide scale peeling loss on the surface of the newly added pipe length is linearly accumulated according to the pickling weight loss per unit length. Therefore, the second factor increases linearly with the cold rolling elongation according to the second coupling coefficient. The aforementioned baseline tolerance, first coupling coefficient, and second coupling coefficient are all calculated forward from the maximum permissible error calibrated by the weighing instrument calibration certificate, the saw blade thickness and the end face trimming length specified in the process procedure, the theoretical weight per unit length corresponding to the specification, and the unit length acid pickling weight loss obtained by on-site weighing. These quantities can be directly read or measured, and are not calibrated based on historical residual distribution. Therefore, their values ​​can be determined when the production line is first deployed and there is no historical data.

[0058] The splitting complexity refers to the number of sub-records and the cold-rolled elongation rate in a single split. Both can be directly read on-site. The number of pieces to be split depends on the number of pieces in the transfer card, and the amount of elongation depends on the ratio of the length before and after cold rolling. The more pieces to be split, the more cut interfaces there are, and the greater the normal cumulative cutting loss. The greater the cold-rolled elongation, the greater the normal loss such as surface oxide scale peeling. Therefore, the same normalized quality conservation residual has different meanings under different splitting complexities. If a fixed tolerance threshold is used to judge all splits, normal splits with many pieces or large elongations will be misjudged as non-conservation due to the larger normal loss. The coupling tolerance threshold is obtained by multiplying the baseline tolerance by two factors that increase with the number of sub-records and the cold-rolled elongation rate. This allows the tolerance threshold to adaptively increase with the splitting complexity, avoiding misjudgment of the entire piece in complex splitting scenarios. The coupling tolerance threshold is passed to step S223 as a comparison benchmark for the normalized quality conservation residual, ensuring that the measurement of confidence weights remains consistent across different splitting complexities and different elongation levels.

[0059] Step S223: Calculate the ratio of the normalized quality conservation residual to the coupling tolerance threshold, take the smaller of the ratio and 1, subtract the smaller of 1 to obtain the confidence weight of each parent-child derived edge under the split coverage relationship, and write the confidence weight and the normalized quality conservation residual into the corresponding edge attributes.

[0060] Divide the normalized quality conservation residual by the coupling tolerance threshold to obtain the residual tolerance ratio. Take the smaller of the residual tolerance ratio and 1 to obtain the truncated residual tolerance ratio; that is, the truncated residual tolerance ratio equals the original residual tolerance ratio when the original residual tolerance ratio does not exceed 1, and equals 1 when the original residual tolerance ratio exceeds 1. Subtract the truncated residual tolerance ratio from 1 to obtain the confidence weight, which ranges from zero to 1. When the normalized quality conservation residual does not exceed the coupling tolerance threshold, the residual tolerance ratio does not exceed 1, and the confidence weight is positive; the smaller the quantity deficit, the closer the confidence weight is to 1. When the normalized quality conservation residual reaches or exceeds the coupling tolerance threshold, the truncated residual tolerance ratio is 1, and the confidence weight is zero. The normalized quality conservation residual of the same split-cover relationship is shared across all its child records; therefore, all parent-child derived edges under the split-cover relationship take the same confidence weight. The normalized quality conservation residual reflects the overall conservation degree of a physical partition. When the weights of each sub-record under the partitioning coverage relationship are reasonably distributed, the confidence weights of each parent-child derived edge are the same, which reflects the credibility of the partition. If the weights of individual sub-records in a partition deviate significantly, but the overall residual is still small due to the average effect, the problem of the edge corresponding to that individual sub-record is further distinguished by the doubtful edge disambiguation and reconnection stage in step S23, combined with the sub-record weight ratio and auxiliary key. The confidence weights and normalized quality conservation residuals are written into the attributes of each parent-child derived edge corresponding to the partitioning coverage relationship, respectively, to obtain the confidence-weighted partial order set.

[0061] The normalized quality conservation residual and the coupling tolerance threshold are both dimensionless quantities normalized to their proportion of the parent record's weight. They have the same dimensions and their values ​​are based on the parent's weight, so they can be directly compared. The smaller the gap between the quantity and expenditure of a single split relative to the normal loss tolerance allowed by the current splitting complexity, the more reliable the split is. Therefore, the ratio of the two is used to characterize the degree of deviation, and then the deviation is converted into a degree of reliability by subtracting the truncated ratio from one. The residual tolerance is truncated to no more than one because a gap exceeding the tolerance can be considered non-conservative, and there is no need to make the confidence weight negative. Truncating makes the confidence weight stable in the range of zero to one. After writing the confidence weight into the parent-child derived edge attributes, step S23 performs a three-state partitioning of each parent-child derived edge accordingly, providing a unified basis for reliability in subsequent retention, disambiguation, and exclusion processes.

[0062] like Figure 5 The diagram shows the three-state partitioning of parent-child derived edges by confidence weight.

[0063] Reference Figure 5 The diagram illustrates the three-state partitioning process of parent-child derived edges into reliable edges, questionable edges, and broken edges based on confidence weights. Using the confidence weight as the axis, two boundary points are marked: a first threshold and a second threshold. The range of confidence weight values ​​is divided into three segments: segments with confidence weights not less than the first threshold correspond to reliable edges, which are retained and remain in the confidence-weighted partial order set as valid connections; segments with confidence weights not less than the second threshold but less than the first threshold correspond to questionable edges. Questionable edges are reconnected by searching for candidate parent records using the unit identifier, execution time window, and specifications as auxiliary keys. If a candidate parent record is unique, the reconnection is completed and the edge is upgraded to a reliable edge; if there are multiple candidate parent records, the candidate set is recorded and marked as questionable; segments with confidence weights less than the second threshold correspond to broken edges, which are excluded and marked as unreliable. The diagram shows that the first threshold is a fixed value, the second threshold is equal to the baseline threshold divided by the number of sub-records factor, the number of sub-records factor is equal to the number of sub-records minus one multiplied by the third coupling coefficient plus one. The more sub-records there are, the larger the number of sub-records factor is and the smaller the second threshold is. Therefore, the boundary threshold between the doubtful edge and the broken edge is dynamically determined with the number of sub-records.

[0064] Step S23: Based on the confidence weight, divide the parent-child derived edges into reliable edges, questionable edges, and broken edges. Retain reliable edges, exclude broken edges and mark them as unreliable. For questionable edges, use the unit identifier, execution time window and specification as auxiliary keys to search for candidate parent records for disambiguation and reconnection. If the candidate parent record is unique, complete the reconnection and upgrade it to a reliable edge. If there are multiple candidate parent records, record the candidate set and mark it as questionable. Update the confidence weighted partial order set. The boundary threshold between questionable edges and broken edges is dynamically determined according to the number of child records.

[0065] The process is divided into three stages: three-state partitioning, disambiguation and reconnection of questionable edges, and updating. The specific implementation of the three-state partitioning stage is as follows: For each parent-child derived edge in the confidence-weighted partial order set, the confidence weight is read and compared with a first threshold and a second threshold. Parent-child derived edges with a confidence weight not less than the first threshold are classified as reliable edges; parent-child derived edges with a confidence weight not less than the second threshold but less than the first threshold are classified as questionable edges; and parent-child derived edges with a confidence weight less than the second threshold are classified as broken edges. Since the quantity at the boundary is still within the range that can be retained or disambiguated, edges with a confidence weight exactly equal to the first threshold are classified as reliable edges, and edges with a confidence weight exactly equal to the second threshold are classified as questionable edges. The first threshold is a fixed value, and its calculation method is as follows: the reliable edge requires that the normalized quality conservation residual can be explained solely by the maximum permissible error of the weighing instrument, i.e., the quantity receipt and payment have been fully reconciled. Therefore, the first threshold is equal to one minus the ratio of the sum of the maximum permissible errors of three weighings in a standard division to the product of the baseline tolerance and the parent record weight. This is then used to calculate the nominal weight of the billet material arriving at the production line and the main specifications, with the same fixed value applied to the entire production line. For example, the first threshold is 0.8. The second threshold is equal to the baseline threshold divided by the sub-record quantity factor. The sub-record quantity factor is equal to the sub-record quantity minus one multiplied by the third coupling coefficient plus one. That is, subtracting one from the sub-record quantity to obtain the sub-record quantity increment, multiplying the sub-record quantity increment by the third coupling coefficient, and adding one to obtain the sub-record quantity factor, and dividing the baseline threshold by the sub-record quantity factor to obtain the second threshold. The more sub-records there are, the larger the sub-record quantity factor and the smaller the second threshold. The baseline threshold is the fracture determination threshold when the number of sub-records is one. Its calculation method is as follows: when the difference between the normalized mass conservation residual and the coupling tolerance threshold is less than the proportion corresponding to the maximum permissible error of a single weighing, the residual cannot be distinguished from exceeding the coupling tolerance threshold. Therefore, the baseline threshold is equal to the maximum permissible error of a single weighing divided by the product of the baseline tolerance and the parent record weight. The third coupling coefficient uses the same formula and value as the first coupling coefficient, making the sub-record quantity factor equal to the first factor. The fracture criterion, under any number of sub-records, is equivalent to the level after the normalized mass conservation residual exceeds the coupling tolerance threshold minus the proportion corresponding to the maximum permissible error of a single weighing. This prevents parent-child derived edges that can still be explained by normal unrecorded losses from being classified as fracture edges. Since the unrecorded cut weight corresponding to a single cut is greater than the maximum permissible error of a single weighing, and the first threshold is greater than the baseline threshold, the order of the three intervals—credible edge, questionable edge, and fracture edge—is valid. The physical meaning of the three-level classification is as follows: For parent-child derived edges where the residual can be explained solely by the error of the measuring instrument, the quantity income and expenditure have been fully reconciled and are judged as reliable edges; For parent-child derived edges where the residual can be explained by the unrecorded cutting loss and oxide scale peeling, there are unreconciled gaps in the quantity income and expenditure, and the true parent record needs to be verified with an auxiliary key and are judged as questionable edges; For parent-child derived edges where the residual exceeds all explainable losses, it can only be explained by the misappropriation of material sections or the inheritance of process batch numbers and serial numbers and are judged as broken edges.The aforementioned first threshold, reference threshold, and third coupling coefficient are also calculated positively from the maximum permissible error of the weighing instrument, the slit width, the end-face trimming length, and the theoretical weight per unit length, without relying on the confidence weight distribution for calibration. The first threshold, reference threshold, and confidence weight are all dimensionless quantities between zero and one, and their dimensions are consistent, allowing for direct comparison.

[0066] The specific implementation of the disambiguation and reconnection process for questionable edges is as follows: Trustworthy edges are retained, meaning they remain in the confidence-weighted partial order set as valid connections. Broken edges are excluded and marked as untrustworthy, meaning they are removed from the set of valid connections and marked as untrustworthy in their attributes. This is because the normalized quality conservation residuals of broken edges exceed all interpretable losses within the coupling tolerance threshold corresponding to the current decomposition complexity, resulting in excessive inconsistency in their quantity. Retaining them would lead to erroneous tracing. Disambiguation and reconnection are performed on questionable edges. Using the unit identifier, specifications, and execution time window of the questionable edge sub-record as auxiliary keys, candidate parent records that simultaneously meet the following three conditions are retrieved in the partial order set with split and overlay markers: First, the unit arranged in the process flow sequence of the candidate parent record contains the unit identifier of the questionable edge sub-record, that is, the candidate parent record was indeed arranged in the unit for this split; Second, the specifications of the questionable edge sub-record and the specifications of the candidate parent record match the correspondence between the incoming material specifications and the finished product specifications specified in the process specification of the unit. For blanking or pipe cutting processes that do not include cold rolling, the correspondence is that the parent and child specifications are the same. For split and overlay relationships that include cold rolling, the correspondence is that the specifications of the candidate parent record are equal to the incoming material specifications corresponding to the specifications of the sub-record in the process specification; Third, the timestamp of the candidate parent record is earlier than the timestamp of the questionable edge sub-record, and the difference between the two timestamps does not exceed half the width of the execution time window. The execution time window half-width is equal to the baseline processing time obtained by dividing the weight of the candidate parent record by the average processing weight rate of the unit corresponding to the questionable child record's unit identifier, and the sum of this base processing time and the maximum waiting time between processes specified in the unit's process procedure. Physically, this means that the difference between the process event times of the actual parent record and its child record does not exceed the sum of the parent's processing time on the unit and the waiting time after processing. The average processing weight rate of the unit is equal to the total weight of materials processed by the unit corresponding to the unit identifier within the statistical time window, divided by the cumulative processing time, in kilograms per hour. The statistical time window is taken from the production line's commissioning date to the current time, based on production line operation data. When the cumulative processing time is zero, the average processing weight rate of the unit is taken as the unit's rated processing weight rate, which is the rated value indicated on the unit's nameplate, to avoid a denominator of zero.When a candidate parent record is unique, reconnection is completed. Questionable edges are reconnected to the unique candidate parent record and promoted to trusted edges. The reconnected child records are simultaneously removed from the original parent record's split-cover relationship. The original parent record recalculates the normalized quality conservation residuals and confidence weights based on all its remaining child records and updates its parent-child derived edges. After reconnection, a new split-cover relationship is formed using the unique candidate parent record as the parent record and all child records under that unique candidate parent record, including the reconnected child records. Steps S221 to S223 are then performed using the weight of the parent record, the weight of the parent record's scrap data, and the weight of all child records in this new split-cover relationship. The new normalized quality conservation residual and confidence weight are calculated. If the recalculated confidence weight is not less than the first threshold, the edge is marked as a reliable edge and written into the new confidence weight and normalized quality conservation residual. Otherwise, it is still marked as a questionable edge, and the unique identifier of the unique candidate parent record is recorded as a candidate set. If there are multiple candidate parent records, the candidate set is recorded and the edge attribute is marked as questionable. The candidate set is a list of unique identifiers of all candidate parent records that meet the above three conditions. If there are zero candidate parent records, the original questionable mark is retained, the candidate set is recorded as an empty set, and step S33 outputs according to the questionable mark to prompt manual verification. The material feeding date, transfer weight, and unit information displayed on the work order tracking interface of the manufacturing execution system are the data sources for the unit identifier, execution time window, and specification auxiliary key.

[0067] The specific implementation method of the update step is as follows: the retained trustworthy edges, the original doubtful edges that were promoted to trustworthy edges, the doubtful edges marked as doubtful, and the broken edges that were excluded and marked as untrustworthy are written back to the partial order set to obtain the updated confidence weighted partial order set.

[0068] The confidence weight of each parent-child derived edge and the candidate parent record to be retrieved for questionable edges physically correspond to the consistency of the number of segments and the processing time of the actual parent component on the unit, respectively. In field experience, slight non-conservation is often normal cutting damage, while obvious non-conservation is misconnection. Moreover, the more child components are cut, the greater the cumulative error. Therefore, the breakage judgment should be relaxed as the number of child records increases. The heavier the parent component, the longer the processing time on the unit, and the larger the time deviation range of the actual parent-child records. Therefore, the time window for retrieving candidate parent records should be relaxed according to the weight of the candidate parent component and the unit speed, and the maximum waiting time between processes specified in the unit's process specification should be taken into account. The coupling tolerance threshold, which increases with the number of sub-records, relaxes the interpretable loss due to each additional cut and each additional weighing. The second threshold, which decreases synchronously with the number of sub-records, ensures that the breakage criterion is always equivalent to the residual exceeding the coupling tolerance threshold after deducting the maximum permissible error for a single weighing. Both are based on the same interpretable loss base; the former relaxes the conservation criterion, while the latter shifts the breakage criterion accordingly, thus avoiding redundant compensation. If only a fixed threshold is used to divide edges into valid and invalid, either incorrect connections will be missed or normal edges in complex splits will be mistakenly eliminated. If a fixed time window is used to retrieve candidate parent records, heavy items will miss the true parent record, and light items will introduce too many irrelevant candidates. The three-state partitioning, combined with the decreasing breakage threshold with the number of sub-records, suppresses the entire chain breakage caused by error accumulation in complex splitting scenarios. The execution time window adapts to the parent record weight and the average processing weight rate of the unit, improving the proportion of disambiguation retrieval hitting the true parent record. In the updated confidence-weighted partial order set, trusted edges carry connections with consistent quantity, questionable edges are retained in the candidate set without being directly broken, and broken edges are excluded. Step S30 uses this to trace back in a hierarchical manner, so that edges that were originally connected by the same identifier are treated differently according to the degree of consistency in quantity.

[0069] Step S24: Instead of using unique identifiers for equi-connection of particle size inclusion and coverage relationships in the partial order set, the material records of particle size level as sample or batch are associated with each individual particle size record contained therein along the particle size inclusion and coverage relationships and the representative relationships are marked, so that a sample or batch particle size record is mapped to all its individual particle size records. The representative relationships are stored in the data lineage map along with the partial order set.

[0070] Taking the partially ordered set with split coverage markers output from step S10 as input, its processing object is the granularity inclusion coverage relationship in the partially ordered set. This process is independent of the split coverage relationship processing in step S20 and can be executed in parallel with step S20. The representative relationship output and the confidence-weighted partially ordered set output from step S20 are provided to step S30 together. The granularity inclusion coverage relationship in the partially ordered set is traversed. For material records at the sample or batch granularity level, all directly or indirectly contained single-piece granularity material records are found downwards along the granularity inclusion coverage relationship. A representative relationship is established and marked between the sample or batch granularity material record and each of its contained single-piece granularity material records, so that a sample or batch granularity record maps to all its single-piece granularity records. The representative relationship refers to the mapping relationship where a coarse-grained record represents all its contained fine-grained records. The structure is a mapping item with the unique identifier of the coarse-grained record as the key and the list of unique identifiers of all its contained single-piece granularity records as the value. The mapping item is stored in the edge attributes with two fields: the representative relationship marker and the list of represented records. The data condition for determining whether a single particle size record is included by a sample or batch particle size record is that the single particle size record is no larger than the sample or batch particle size record, and the two are connected along the particle size inclusion / coverage relationship. A single particle size record can be represented by both its batch record and its sample record, respectively carrying batch-level and sample-level association information. Multiple representation relationships can coexist without conflict. The representation relationships are stored in the data lineage map along with the partial order set.

[0071] Granularity includes coverage relationships, meaning a sample represents a batch, and a batch contains multiple samples—a set membership relationship. In the field, this means the conclusion of a single sampling test applies to the entire batch, not just the sample taken. A unique sample identifier identifies a batch set in the laboratory information management system, but at the individual sample level, it must be assigned to each member; however, the identifier literals are not identical. If cross-granularity records are still linked by unique identifier equivalence, a batch test might be associated with hundreds or thousands of records due to literal equality, causing association explosion, or some individual samples in the same batch might not have test data, resulting in missed associations. By propagating along the granularity inclusion and coverage relationships and labeling representation relationships, and replacing identifier equivalence with set membership mapping, association explosion and missed associations are avoided. After the representation relationship is stored in the data lineage map along with the partial order set, during tracing, the batch or sample-level test conclusions can be interpreted to specific individual samples along the representation relationship, ensuring that cross-granularity tracing neither duplicates nor misses any members.

[0072] Step S30: Store the confidence-weighted partial order set into the graph database to form a data lineage map, receive traceability requests starting from the finished product identifier, traverse backwards according to the confidence weight, and output the credible traceability result of the unique billet record or the doubtful mark of multiple candidate sources. Step S30, based on the confidence-weighted partial order set output in step S20 and the representative relationship marked in step S24, completes the processing from partial order set storage to hierarchical traceability output. Step S30 takes the confidence-weighted partial order set as input, and through the steps of graph database storage, traceability request reception, weighted disjoint-set data structure construction and search, and hierarchical traceability result output, outputs reliable traceability results, traceability incompleteness markers, or questionable markers for multiple candidate sources. The data lineage graph refers to the graph structure formed after the confidence-weighted partial order set is stored in the graph database, with material records as nodes and parent-child derived edges and process flow edges as directed edges. The weighted disjoint-set data structure refers to the set merging structure with material records as elements, reliable edges as merging criteria, and normalized quality conservation residuals as path weights. The cumulative residual refers to the sum of the normalized quality conservation residuals along the path from the finished product record to the root record via reliable edges, serving as a cumulative measure of the normalized residuals at each level along the traceability path. Trustworthy tracing results, incomplete tracing markers, and questionable markers for multiple candidate sources are the three hierarchical outputs of a tracing request. Step S30 includes steps S31, S32, and S33.

[0073] Step S31: Store the confidence-weighted partial order set into the graph database to form the data lineage map of the cold rolling production. The data lineage map includes coverage of grinding, cold rolling, heat treatment, straightening, pickling, and finishing.

[0074] Each material record in the confidence-weighted partial order set is treated as a node in the graph database. Node attributes include a unique identifier, billet identifier or process batch number, weight, scrap weight, length, timestamp, unit identifier, specifications, and particle size level. Nodes with a particle size level of sample or batch also include the representative relationship marker from step S24 and a list of represented records. Each parent-child derived edge in the confidence-weighted partial order set is treated as a directed edge in the graph database. Edge attributes include confidence weight, normalized quality conservation residual, and a three-state marker: credible edge, questionable edge, or untrustworthy edge. Questionable edges also include a candidate set. Processes that do not change the number of material items, such as grinding, cold rolling, heat treatment, straightening, pickling, and finishing, are recorded as process events on the material records. Each material record forms process flow edges between nodes along the process timeline of the same material segment according to its process event type and timestamp. The process flow sequence displayed in the production scheduling details interface of the manufacturing execution system is the data source for the process flow edges. The data lineage graph covers all the above-mentioned process nodes. Process flow edges are used for process-level queries and full-process display, but do not participate in the weighted union lookup set in step S32. Traceability from finished product to billet is based on reliable parent-child derived edges. After the above-mentioned data entry, a data lineage map of cold rolling production is formed.

[0075] The confidence-weighted partial order set and its edge attributes physically correspond to each material segment and its derivation relationship in the entire process of grinding, cold rolling, heat treatment, straightening, pickling, and finishing. Each process is recorded on the flow card in chronological order. The nodes, edges, and their confidence weights and three-state markers are entered into the database, allowing for direct retrieval without recalculation. After the confidence-weighted partial order set is entered into the database as a data lineage graph, the reliable edges, doubtful edges, and unreliable markers are persistently stored along with the edge attributes. When receiving a traceability request in step S32, a weighted disjoint-set data structure can be constructed based solely on reliable edges, enabling the database structure to directly support hierarchical traceability.

[0076] like Figure 6 The diagram shows the cumulative residual along the trusted edge and the three levels of tracing output.

[0077] Reference Figure 6 The diagram illustrates the process of starting with the finished product identifier, traversing backwards according to confidence weights, traversing upwards along trusted edges to accumulate normalized quality conservation residuals, and providing three levels of tracing outputs. The nodes below represent finished product records. The connecting edges that connect the finished product records upwards along trusted edges represent the merging paths of the weighted disjoint-set data structure based on trusted edges. The normalized quality conservation residual marked on each trusted edge is the path weight of that edge. Traversing upwards along trusted edges through each parent-child derived edge, the normalized quality conservation residuals of each edge are accumulated level by level to obtain the cumulative residual. The diagram further illustrates three levels of traceability output: When the obtained root record is a billet record, all parent-child derived edges between the finished product record and the billet record are reliable edges, and the unique identifier of the root record and the cumulative residual are output as reliable traceability results; when the finished product record cannot reach any billet record via reliable edges, and the upstream chain ends at a non-billet node at the broken edge, a traceability incompleteness mark is output; when the parent-child derived edge of the root record pointing to the upper material during the reverse traversal is a questionable edge marked as doubtful, the candidate set of the questionable edge is output as a questionable mark of multiple candidate sources.

[0078] Step S32: Receive a traceability request starting from the finished product identifier, merge the set of child records into the set of parent records with trusted edges as connecting edges, construct a weighted disjoint set, store the normalized quality conservation residual between each material record and its direct parent record as the weight, and obtain the cumulative residual by accumulating the weight along the path when searching for the root record.

[0079] The system receives traceability requests starting from the finished product identifier, which is a unique identifier for a single-granularity material record in the data lineage graph. A weighted disjoint-set data structure is constructed, with one element per material record. This element stores a parent pointer and a weight field; the parent pointer initially points to itself, and the weight is initially zero. All trusted edges in the data lineage graph are traversed, and each trusted edge is merged. A trusted edge connects a child record to its parent record. The merge operation changes the parent pointer of the child record element from pointing to itself to pointing to the parent record element, and sets the weight of the child record element to the normalized quality conservation residual of the record in the trusted edge's attribute. When multiple trusted parent-child derived edges exist for the same child record, the one with the smallest normalized quality conservation residual is merged. The remaining trusted edges are retained in the data lineage graph but not merged, as the number of edges with the smallest residual is the most consistent. When there are multiple edges with the smallest residual, the one with the latest parent record timestamp is merged to ensure the uniqueness of the merge result. When searching for the root record, the process starts from the element corresponding to the finished product identifier and traces upwards along the parent pointer, accumulating the weights of the elements along the way until the element pointed to by the parent pointer is reached, which is the root record. The accumulated residual is a dimensionless quantity with a value of zero or higher. After tracing upwards, path compression is performed, updating the path level by level from the element closest to the root record to the finished product record. The parent pointer of each element along the way is changed to point directly to the root record, and the weight of each element along the way is updated to the sum of its original weight and the updated weight of the element pointed to by its original parent pointer. This is the cumulative sum of the original normalized mass conservation residuals along the path from the element to the root record. Since elements closest to the root record are updated first, the weight of the original parent element of each element is already the cumulative residual to the root record when it is updated. Therefore, after the update, the weight of each element along the way is equal to its cumulative residual to the root record without being accumulated repeatedly, thus reducing the number of tracing levels required for subsequent searches. Weighted disjoint-set data structures complete merging and searching at a near-constant amortized cost. A single search returns both the unique root record and the accumulated residuals, balancing the determination of the unique root record with the accumulation of residuals. Doubtful edges and broken edges marked with untrusted information do not participate in merging; therefore, the records at both ends of a doubtful edge will not be merged into the same set. Since merging is based solely on trusted edges, the root record obtained from the search of the finished product record is the highest-level material record that can be reached by tracing upwards along trusted edges: when all parent-child derived edges between the finished product record and the billet record are trusted edges, the root record is the billet record; when a parent-child derived edge at a certain level during the upward tracing is a doubtful edge or a broken edge, the trusted edge chain terminates at the child record below that edge, and that child record becomes the root record, with its parent-child derived edges pointing to the upper-level material being doubtful edges or broken edges. Therefore, the root record uniquely identifies the termination position of the reliable edge chain. The cumulative residual and the root record are output as the search result. Step S33 determines the traceability output category based on whether the root record is a billet record and the three-state category of the parent-child derived edge of the root record pointing to the upper material. There is no need to enumerate the intermediate records on the traceability path.

[0080] The material flow connected by reliable edges physically corresponds to a finished product being traced back to the actual material segment of a certain branch billet via a quantity-consistent segmentation chain. Traceability aims to answer whether a finished product uniquely originates from a certain branch billet and the degree of reliability. By merging the records connected by reliable edges into a set and accumulating the normalized quality conservation residual along the path, a single lookup can provide the unique root record and the accumulated unexplained quality percentage. If a regular graph traversal is used, the cost of repeated tracing increases with the chain length, and it is impossible to simultaneously provide the unique root and the accumulated reliability in a single traversal. By constructing a weighted disjoint-set data structure using reliable edges as the unique merging basis and the normalized quality conservation residual as the path weight, the root record of the set containing the finished product is uniquely determined. The accumulated residual is obtained by accumulating along the path. Step S33 uses this to determine the tracing result category and outputs the root record and accumulated residual.

[0081] Step S33: When the obtained root record is a billet record, output the root record and the cumulative residual as a reliable traceability result. When the finished product record cannot reach any billet record through the reliable edge, output the traceability defect mark. When encountering a suspicious edge marked as suspicious during the reverse traversal, output its candidate set as a suspicious mark of multiple candidate sources.

[0082] Read the root record and cumulative residual obtained in step S32. A billet record refers to a material record where the particle size level is single-piece or batch and the process event type field is "billet material". The data condition for determining whether a root record is a billet record is: read the process event type field of the root record; if the value is "billet material", it is determined to be a billet record. Since the merging of a weighted disjoint-set data structure is based solely on reliable edges, any doubtful or broken edge will cause the reliable edge chain to terminate at its child record below, which becomes the root record. Therefore, doubtful and broken edges can only appear on the parent-child derived edges pointing from the root record to the upper-level material. Based on this, the determination of the three hierarchical outputs is based on the category of the root record and its parent-child derived edges pointing to the upper-level material, without needing to enumerate intermediate records on the upstream path. When the process event type field of the root record is "billet arrival" (i.e., the root record is a billet record), all parent-child derived edges between the finished product record and the billet record are reliable edges. The unique identifier of the root record and the cumulative residual are output as reliable traceability results. The cumulative residual represents the proportion of unexplained quality accumulated along the entire traceability path from the finished product to the billet. The smaller the cumulative residual, the more reliable the traceability result. When the root record is not a billet record and there are questionable edges marked as suspicious among the parent-child derived edges pointing to the upper-level material, the candidate set of all questionable parent-child derived edges is output as a question mark for multiple candidate sources. In this case, the true parent record cannot be uniquely determined and there are multiple candidate parent records. Therefore, the candidate set is returned for further manual verification rather than forcibly selecting one. When the root record is not a billet record and both the parent and child derived edges pointing to the upper material are broken edges, or the root record has no parent and child derived edges pointing to the upper material, it is determined that the finished product record cannot reach any billet record via a reliable edge, and a traceability defect mark is output. In this case, the traceability chain is cut off at the broken edge and ends at a non-billet node. Therefore, the defect mark indicates that the traceability chain is incomplete in quantity rather than returning an error source. Abnormal production conditions such as rework, repair, and replenishment are manifested in the non-conservation of weight or number of pieces before and after cutting. The corresponding parent and child derived edges will obtain a larger normalized quality conservation residual, thus being classified as questionable edges or broken edges. The questionable or defect mark then prompts manual verification. Therefore, the above abnormal conditions are uniformly captured by the residual verification and three-state division mechanism of this method, and there is no need to set separate judgment rules for them.

[0083] The root record type, cumulative residual, and the parent-child derived edge category pointing to the upper-level material from the root record all correspond to the true source, reliability, and uncertain branches of a traceability operation. Only by tracing back to the billet incoming material record can the true source be traced. Ending at a non-billet node indicates that the chain is broken at a point of quantitative inconsistency. If the parent edge of the root record is a questionable edge, it indicates that there are still multiple candidate sources. The cumulative residual, the first threshold, and the second threshold are all dimensionless quantities. However, the cumulative residual is the sum of the normalized mass conservation residuals of each segment, and its value is zero or higher, possibly exceeding one. The first threshold and the second threshold are confidence weight thresholds with values ​​between zero and one. Their numerical ranges and physical meanings are different. When outputting, the cumulative residual is only used as a reference quantity for the reliability of the traceability and is given along with the reliable traceability results without participating in the threshold comparison. The three-branch output categorizes traceability results by quantity consistency: reliable results provide a unique billet and cumulative residual; defective marks indicate an incomplete chain; and questionable marks provide a candidate set. This prevents the system from silently returning a single erroneous path when tracing back to multiple candidate billets or when the forward count and weight don't match for a finished product; instead, it clearly distinguishes between reliable, defective, and questionable scenarios. The anomaly handling entry displayed on the Manufacturing Execution System's operation and control extension interface serves as the handling vehicle for questionable and defective marks, while the order's entire process nodes and finished product inventory displayed on the production progress query interface present reliable traceability results.

[0084] Example 2 like Figure 2 As shown, a system for constructing a cross-system data lineage map of cold rolling processes includes: The partial order construction module is used to collect material records associated with unique identifiers, extract the weight, waste weight and particle size level of each record, construct a partial order set based on the material inclusion relationship between orders, batches, samples and single pieces, mark the split coverage relationship formed by the split process, and obtain a partial order set with split coverage mark. The residual disambiguation module is used to calculate the mass conservation residual for each split coverage relationship in the partial order set based on the parent record weight, the total weight of all child records and the waste weight. Based on this, the confidence weight is calculated for each parent-child derived edge and written into the edge attribute. Parent-child derived edges with confidence weights lower than the confidence threshold are disambiguated and reconnected with auxiliary keys to obtain the confidence weighted partial order set. The graph traceability module is used to store the confidence-weighted partial order set into the graph database to form a data lineage graph. It receives traceability requests starting from the finished product identifier, traverses backward according to the confidence weight, and outputs the credible traceability result of the unique billet record or the doubtful mark of multiple candidate sources.

[0085] The foregoing description is illustrative of the invention and should not be construed as limiting it. Although several exemplary embodiments of the invention have been described, those skilled in the art will readily understand that many modifications can be made to the exemplary embodiments without departing from the novel teachings and advantages of the invention. Therefore, all such modifications are intended to be included within the scope of the invention as defined in the claims. It should be understood that the foregoing description is illustrative of the invention and should not be construed as limiting it to the specific embodiments disclosed, and modifications to the disclosed embodiments and other embodiments are intended to be included within the scope of the appended claims. The invention is defined by the claims and their equivalents.

Claims

1. A method for constructing a cross-system data lineage map of a cold rolling process, characterized in that, include: Collect material records associated with unique identifiers, extract the weight, waste weight and particle size level of each record, construct a partially ordered set based on the material inclusion relationship between orders, batches, samples and single pieces, mark the splitting and covering relationship formed by the splitting process, and obtain a partially ordered set with splitting and covering marks. For each splitting and covering relationship in the partial order set, calculate the quality conservation residual based on the parent record weight, the total child record weight, and the waste weight. Based on this, calculate the confidence weight for each parent-child derived edge and write it into the edge attribute. For parent-child derived edges with confidence weights lower than the confidence threshold, disambiguate and reconnect them with an auxiliary key to obtain the confidence-weighted partial order set. The confidence-weighted partial order set is stored in the graph database to form a data lineage map. The system receives traceability requests starting from the finished product identifier, traverses in reverse according to the confidence weight, and outputs the credible traceability result of the unique billet record or the doubtful mark of multiple candidate sources.

2. The method for constructing a cross-system data lineage map of a cold rolling process according to claim 1, characterized in that, The steps for constructing the partially ordered set are as follows: For each material record, extract the weight, waste weight, length, timestamp, unit identifier, specifications, and particle size level. The particle size level can be one of order, batch, sample, or single piece, to obtain a set of material records. For any two records in the material record set, if the material identified by the first record originates from or is contained in the material identified by the second record, it is determined that the first record is not greater than the second record. If the second record is not greater than the first record and there are no other intermediate records between them, it is determined that the two constitute an overlay relationship. A partially ordered set is constructed with the material records as elements and the material inclusion relationship as the order relationship.

3. The method for constructing a cross-system data lineage map of a cold rolling process according to claim 2, characterized in that, The steps to obtain the partially ordered set with the split cover tag are as follows: In the partially ordered set, the covering relationship is divided into split covering relationship and granularity containment covering relationship. The split covering relationship between adjacent granularity records is identified by the process of blanking, pipe cutting or cold rolling and then cutting. Each split covering relationship is marked with its parent record, all child records and the number of child records, and thus a partially ordered set with split covering mark is obtained.

4. The method for constructing a cross-system data lineage map of a cold rolling process according to claim 1, characterized in that, The steps for constructing the confidence-weighted partial order set are as follows: Traverse the partially ordered set marked with split and cover, and for each split and cover relationship, read the parent record weight, the parent record waste weight, and the weight of all child records to obtain the material balance data for each split and cover relationship; The normalized quality conservation residual is calculated based on the material balance data; the ratio of the sum of the lengths of all child records in the split coverage relationship to the length of the parent record is used as the cold rolling elongation rate; the coupling tolerance threshold is calculated based on the number of child records and the cold rolling elongation rate; the confidence weight of each parent-child derived edge is calculated by the ratio of the normalized quality conservation residual to the coupling tolerance threshold; the confidence weight and the normalized quality conservation residual are written into the edge attributes to obtain the confidence weighted partial order set.

5. The method for constructing a cross-system data lineage map of a cold rolling process according to claim 4, characterized in that, The confidence-weighted partial order set also includes an update step: Based on the confidence weight, parent-child derived edges are divided into reliable edges, questionable edges, and broken edges. Reliable edges are retained, while broken edges are excluded and marked as unreliable. For questionable edges, candidate parent records are retrieved using unit identifier, execution time window, and specifications as auxiliary keys for disambiguation and reconnection. If the candidate parent record is unique, reconnection is completed and the edge is upgraded to a reliable edge. If there are multiple candidate parent records, the candidate record set is marked as questionable, and the confidence weighted partial order set is updated. The boundary threshold between questionable edges and broken edges is dynamically determined according to the number of child records.

6. The method for constructing a cross-system data lineage map of a cold rolling process according to claim 4, characterized in that, The steps for calculating the normalized mass conservation residual are as follows: subtract the sum of the weights of all child records from the weight of the parent record, then subtract the weight of the waste material in the parent record and take the absolute value to obtain the absolute mass residual. Divide the absolute mass residual by the weight of the parent record to obtain the normalized mass conservation residual.

7. The method for constructing a cross-system data lineage map of a cold rolling process according to claim 4, characterized in that, The steps for calculating the coupling tolerance threshold are as follows: multiply the baseline tolerance, the first factor that increases linearly with the number of sub-records, and the second factor that increases linearly with the cold rolling elongation by one to obtain the coupling tolerance threshold.

8. The method for constructing a cross-system data lineage map of a cold rolling process according to claim 5, characterized in that, Edges with a confidence weight not less than the first threshold are considered trustworthy, edges between the second and first thresholds are considered questionable, and edges less than the second threshold are considered broken. The first threshold is a fixed value, and the second threshold is equal to the baseline threshold divided by a factor that increases linearly with the number of sub-records.

9. The method for constructing a cross-system data lineage map of a cold rolling process according to claim 3, characterized in that, For the particle size inclusion coverage relationship in the partial order set, the material record with particle size level of sample or batch is associated with each individual particle size record contained therein and the representative relationship is marked. The representative relationship is stored in the data lineage map along with the partial order set.

10. The method for constructing a cross-system data lineage map of a cold rolling process according to claim 1, characterized in that, The data lineage map includes processes covering grinding, cold rolling, heat treatment, straightening, pickling, and finishing.

11. The method for constructing a cross-system data lineage map of a cold rolling process according to claim 9, characterized in that, The steps for outputting reliable traceability results for a unique billet record or questionable markers for multiple candidate sources are as follows: Receive traceability requests starting from the finished product identifier, merge the set of child records into the set of parent records with trusted edges as connecting edges, construct a weighted disjoint set, store the normalized quality conservation residual between each material record and its direct parent record as the weight, and obtain the cumulative residual by accumulating the weight along the path when searching for the root record.

12. The method for constructing a cross-system data lineage map of a cold rolling process according to claim 10, characterized in that, The steps of outputting a reliable traceability result for a unique billet record or a question mark for multiple candidate sources also include: when the obtained root record is a billet record, outputting the root record and the cumulative residual as a reliable traceability result; when the finished product record cannot reach any billet record via a reliable edge, outputting a traceability defect mark; and when encountering a question mark marked as questionable during the reverse traversal, outputting its candidate set as a question mark for multiple candidate sources.

13. The method for constructing a cross-system data lineage map of a cold rolling process according to claim 1, characterized in that, Data quality scores are generated for the collected material records based on their completeness and accuracy. Material records with data quality scores below the quality threshold are not included in the partially ordered set.

14. A system for constructing a cross-system data lineage map of a cold rolling process, characterized in that, A method for constructing a cross-system data lineage map of a cold rolling process according to any one of claims 1-12 includes: The partial order construction module is used to collect material records associated with unique identifiers, extract the weight, waste weight and particle size level of each record, construct a partial order set based on the material inclusion relationship between orders, batches, samples and single pieces, mark the split coverage relationship formed by the split process, and obtain a partial order set with split coverage mark. The residual disambiguation module is used to calculate the mass conservation residual for each split coverage relationship in the partial order set based on the parent record weight, the total weight of all child records and the waste weight. Based on this, the confidence weight is calculated for each parent-child derived edge and written into the edge attribute. Parent-child derived edges with confidence weights lower than the confidence threshold are disambiguated and reconnected with auxiliary keys to obtain the confidence weighted partial order set. The graph traceability module is used to store the confidence-weighted partial order set into the graph database to form a data lineage graph. It receives traceability requests starting from the finished product identifier, traverses backward according to the confidence weight, and outputs the credible traceability result of the unique billet record or the doubtful mark of multiple candidate sources.

Citation Information

Patent Citations

  • Hugegraph-based data blood relationship analysis method and system

    CN114329082A

  • Graph theory-based industrial internet identification system whole-process tracing method

    CN120218943A