A method and system for quality mark tracing and propagation based on visual rules
By constructing visual rules and propagating control parameters through a graphical interface, the problems of complex rule configuration and inflexible propagation in manufacturing quality management systems are solved, enabling accurate quality judgment and propagation, and ensuring data consistency and accuracy.
Patent Information
- Application Number
- CN202610070367.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-20
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2046-01-20
AI Technical Summary
Existing manufacturing quality management systems suffer from complex rule configurations, high error rates, inflexible propagation mechanisms, inability to precisely control the scope of effectiveness, lack of version traceability, and difficulty in adapting to complex structures, leading to inaccurate quality traceability and wasted resources.
Visual rules can be built through a graphical interface, and propagation control parameters such as maximum propagation level, attenuation factor and material sensitivity correction factor can be configured to realize dynamic quality mark propagation and multi-dimensional effective condition management. Marking intensity can be calculated in combination with product structure tree and propagation boundary control can be set.
It achieves low-code configuration, accurate quality judgment and propagation, prevents excessive diffusion of anomaly markers, ensures data consistency and accuracy, and supports quality traceability for complex structures.
Smart Images

Figure CN122111408B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of industrial manufacturing quality management technology, and in particular to a method and system for quality marking traceability and dissemination based on visual rules. Background Technology
[0002] Current quality management systems in the manufacturing industry face multiple technical bottlenecks in practical applications. Traditional quality rules are typically written by programmers using SQL or scripting languages, making it difficult for business personnel to directly participate in configuration. This results in a complex, time-consuming, and error-prone rule configuration process. Anomaly propagation mechanisms generally employ fixed levels and paths, failing to flexibly control the propagation of quality tags based on dynamic factors such as material type and level depth, easily leading to over-marking or missed inspections of related materials. The scope of rule effectiveness lacks fine-grained filtering based on multi-dimensional conditions such as time, shift, and holidays, often resulting in erroneous triggering during non-production periods and wasting resources. Furthermore, the lack of a complete version traceability mechanism for rule changes makes it difficult to accurately locate the rule version corresponding to the problem during quality backtracking, significantly increasing product recall costs. Simultaneously, in complex multi-branch forest structure traceability systems, the tag propagation logic between Work-in-Progress (WIP) and raw material nodes is difficult to effectively manage, further limiting the system's applicability and accuracy in actual manufacturing scenarios. Summary of the Invention
[0003] This application provides a method and system for quality mark traceability and propagation based on visual rules, in order to solve one or more technical problems existing in the prior art, and at least provide a beneficial option or create conditions that enable low-code configuration of quality rules, dynamic propagation path control and multi-dimensional effective condition management, thereby improving the accuracy and flexibility of quality traceability.
[0004] On the one hand, this application provides a method for quality mark traceability and dissemination based on visual rules, including: Visual rules for identifying quality anomalies are constructed through a graphical interface, and propagation control parameters associated with the visual rules are configured. The propagation control parameters include the maximum propagation level, attenuation factor, and sensitivity correction factor for different material types. When a work-in-process or raw material is detected to meet the visualization rules, be within the effective range of the visualization rules, and have the visualization rules enabled, a quality mark is triggered. Based on the product structure tree, the quality mark is dynamically propagated from the trigger node to the lower-level node. During the propagation process, the mark strength of each propagated node is dynamically determined using a preset strength calculation model according to the propagation control parameters. The mark strength is used to control the effective status of the quality mark on the corresponding node or as the basis for subsequent quality handling. If the current level exceeds the preset maximum propagation level during the propagation process, the propagation will be terminated, a transaction rollback will be performed to revoke the applied quality mark, and a warning notification will be sent to the preset terminal.
[0005] Furthermore, the step of constructing visual rules for determining quality anomalies through a graphical interface and configuring propagation control parameters associated with the visual rules includes the following steps: On the graphical interface, logical nodes and atomic condition nodes are combined by dragging and dropping to construct a logical unit tree; the logical unit tree serves as the logical expression of the visualization rules and is used to define the judgment conditions for quality anomalies, wherein the atomic condition nodes include at least one of material properties, process parameters, test results, or time conditions; Configure propagation control parameters for the logical unit tree, and store the logical unit tree and its associated propagation control parameters and multidimensional filters as the visualization rules, and assign a unique rule version identifier to support the full lifecycle management and traceability of the visualization rules.
[0006] Furthermore, the scope of the visualization rules is limited by a multidimensional filter, which includes filtering conditions in at least one of the following dimensions: Time-dimensional filtering conditions are used to support combinations of multiple non-contiguous time periods. Each time period can have its start and end times set independently, and can be configured by shift, date range, or custom period. Material dimension filtering conditions are used to filter based on material type, material code, or material category to limit the visualization rules to only the specified category of products or raw materials; Batch dimension filtering conditions are used to limit the production batches or batch sets to which the visualization rules apply by at least one of the following methods: numerical range comparison, discrete batch set specification, character structure matching, logical batch merging, related attribute filtering, or derivation relationship inheritance. Work-in-process (WIP) filtering conditions are used to control the triggering location and traceability path of quality markings by limiting the production line, process, equipment identification, WIP type, or test results of the starting WIP node, and by combining propagation direction constraints. The work-in-process dimension filtering conditions include a starting work-in-process node limitation sub-condition and a propagation direction control sub-condition; The starting work-in-process node limiting sub-condition is used to specify the initial work-in-process node that triggers the quality mark. This node is filtered based on at least one of the following: production line, current process, equipment identifier, work-in-process type, or associated test result. The propagation direction control subcondition is used to specify the propagation direction of the quality mark in the product structure tree, and the propagation direction is unidirectional propagation along the product structure tree to subsequent lower-level nodes.
[0007] Furthermore, the configuration method for the batch dimension filtering conditions is selected from at least one of the following: After extracting and converting the consecutive numerical portions of the batch identifier into values, they are compared with a preset range of values. Configure one or more discrete sets of batch identifiers to restrict the rules to apply only to production batches within those sets of batch identifiers; Matching is performed based on the character structure features of the batch identifier, including prefix matching, regular expression pattern matching, or wildcard matching. Multiple actual production batches are grouped into a single logical batch or batch group, and the effective objects of the rules are limited based on the logical batch or batch group. Filtering is performed based on batch-related attribute information, which includes at least one of the following: production date, production line, equipment, supplier, or process parameters. Based on the derivation or inheritance relationship between batches, the scope of the rule is extended to work-in-process batches derived from the target batch.
[0008] Further, the step of triggering a quality marker when it is detected that the work-in-process or raw material meets the visualization rules, is within the effective range of the visualization rules, and the visualization rules are enabled includes: Real-time acquisition of current status data for work-in-process or raw materials; wherein, the status data includes material type, batch identifier, process parameters, test results, timestamp, production line, process and equipment identifier; When a rule is triggered, a joint judgment is made based on the state data and the multidimensional filter to determine whether the visualization rule is in effect. When all configured filtering conditions are met and the visualization rule is enabled, the visualization rule is considered to be in effect. The status data of the work-in-process or raw materials are substituted into the logical unit tree corresponding to the visualization rule for recursive evaluation; wherein, the status data includes material type, batch identifier, process parameters, test results, timestamp, production line, process and equipment identifier; When the evaluation result of the logical unit tree is true, an initial quality mark is generated, and the trigger node, rule version identifier and initial mark strength are recorded to complete the triggering of the quality mark.
[0009] Furthermore, based on the product structure tree, the quality marker is dynamically propagated from the trigger node to the next level node. During the propagation process, the marker strength of each propagated node is dynamically determined using a preset strength calculation model according to the propagation control parameters. This includes the following steps: Starting from the trigger node, traverse the lower-level nodes in the product structure tree and recursively perform the propagation operation layer by layer downwards; For each propagated node, obtain its hierarchical distance relative to the triggering node, material type, and associated propagation control parameters; Based on the hierarchical distance, attenuation factor, and sensitivity correction factor corresponding to the material type of the node, combined with the initial marking intensity, the marking intensity of the node is calculated through the intensity calculation model. Based on the calculated marker strength, determine whether the quality marker is actually activated on the node, and record the marker status, strength value, and propagation path information of the node; If the current propagation level reaches or exceeds the maximum propagation level, propagation to deeper levels will stop.
[0010] Furthermore, the step of recursively performing the propagation operation, starting from the trigger node and traversing the lower-level nodes in the product structure tree, includes the following steps: If the triggering node is a work-in-process node, then apply a quality mark to the current work-in-process node, and sequentially traverse all its direct child work-in-process nodes, recursively performing the same propagation operation on each child work-in-process node. If the triggering node is a raw material node, a quality mark is applied to the current raw material node, and according to the predefined material output relationship mapping table, all work-in-process nodes directly produced by the raw material are queried, and the aforementioned propagation operation for each work-in-process node is performed. In each recursive call, the current propagation level is updated in real time, and the current node is used as the new trigger node to continue propagating downwards until the maximum propagation level is reached or there are no more lower-level nodes.
[0011] Furthermore, based on the hierarchical distance, attenuation factor, and sensitivity correction factor corresponding to the material type of the node, combined with the initial marking intensity, the marking intensity of the node is calculated through the intensity calculation model, satisfying the following calculation formula: ; in, Indicates the currently propagated child node Marking intensity on Indicates the trigger node The initial mark strength; This represents the attenuation factor, which controls the rate at which the intensity decreases with each level during propagation, and its value ranges from [value missing]. ; The smaller the size, the faster the propagation attenuates; Indicates no attenuation; This indicates that in the product structure tree, starting from the trigger node... To the currently propagated child node The hierarchical distance is calculated using the BFS algorithm. The larger this value is, the farther the node is from the source, and the weaker its influence should be. Indicates from the trigger node To the currently propagated child node The attenuation factor corresponding to the hierarchical distance; Indicates the currently propagated child node The corresponding sensitivity correction factor for the material type is used to reflect the sensitivity of different material types to the same quality event.
[0012] Furthermore, when a new work-in-process sub-node is generated on the production line, the work-in-process sub-node automatically inherits all valid quality marks existing on its parent work-in-process node. The valid quality marks refer to quality marks that are currently enabled, have not been revoked, and have a mark strength greater than a preset activation threshold. The inheritance operation is completed synchronously when the sub-node is created, and the inheritance source is recorded in the propagation path information to ensure the full-link traceability of quality marks.
[0013] On the other hand, this application provides a quality marking traceability and dissemination system based on visual rules, including: The rule building and configuration module is used to receive user input through a graphical interface, build visual rules for judging quality anomalies, and configure propagation control parameters associated with the visual rules. The propagation control parameters include the maximum propagation level, attenuation factor, and sensitivity correction factor for different material types. The rule validity judgment module is used to trigger a quality mark when it is detected that the work-in-process or raw material meets the visualization rule, is within the effective range of the visualization rule, and the visualization rule is enabled. The quality tag propagation module is used to dynamically propagate the quality tag from the trigger node to the lower-level node based on the product structure tree. During the propagation process, the tag strength of each propagated node is dynamically determined according to the propagation control parameters and a preset strength calculation model. The tag strength is used to control the effective status of the quality tag on the corresponding node or as the basis for subsequent quality handling. The propagation security control module is used to terminate propagation, perform transaction rollback to revoke the applied quality mark, and send a warning notification to the preset terminal if the current level exceeds the preset maximum propagation level during the propagation process.
[0014] The beneficial effects of this application are as follows: This application provides a quality mark tracing and propagation method based on visual rules. This method constructs visual rules for judging quality anomalies through a graphical interface and configures propagation control parameters associated with the rules, including the maximum propagation level, attenuation factor, and sensitivity correction factor for different material types. This allows business personnel to flexibly define quality judgment logic without relying on programming. When work-in-process or raw materials meet the configured visual rules and are within their effective range, the system automatically triggers a quality mark and dynamically propagates the mark from the triggering node to the next-level node based on the product structure tree. During the propagation process, the system calculates the mark strength of each propagated node in real time based on a preset strength calculation model, combined with the maximum propagation level, attenuation factor, and material sensitivity correction factor. This strength directly determines whether the quality mark is effective at the corresponding node or serves as the basis for subsequent quality handling decisions. If the current level exceeds the preset maximum propagation level during the propagation process, the system immediately terminates the propagation, performs a transaction rollback to revoke the applied quality mark, and sends an early warning notification to the preset terminal, thereby effectively preventing the excessive spread of abnormal marks and ensuring the consistency, accuracy, and stability of data status. This application also provides a corresponding system, the beneficial effects of which are similar to those of the method, and will not be described in detail here.
[0015] Other features and advantages of this application will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the description, claims and drawings. Attached Figure Description
[0016] The accompanying drawings are provided to further understand the technical solutions of the present invention and constitute a part of the specification. They are used together with the embodiments of the present invention to explain the technical solutions of the present invention, and do not constitute a limitation on the technical solutions of the present invention.
[0017] Figure 1 This is a flowchart of the quality mark traceability and propagation method based on visualization rules provided in this application; Figure 2 This is a structural diagram of the quality marking traceability and propagation system based on visual rules provided in this application. Detailed Implementation
[0018] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0019] The present application will be further described below with reference to the accompanying drawings and specific embodiments. The described embodiments should not be considered as limitations on the present application, and all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of the present application.
[0020] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0022] In today's manufacturing industry, especially in high-end manufacturing, automotive, electronics, and pharmaceuticals, product quality management has become a crucial component of a company's core competitiveness. With increasingly complex product structures, globalized supply chains, and ever-increasing customer demands for quality traceability, manufacturing enterprises urgently need an efficient, accurate, and configurable quality marking, traceability, and dissemination mechanism to quickly identify, isolate, and handle abnormal materials or work-in-process. In this context, quality management systems typically need to possess key capabilities such as rule definition, anomaly detection, marking triggering, impact assessment, and traceability path analysis.
[0023] In existing technologies, most Manufacturing Execution Systems (MES) or quality management modules implement quality rule judgment logic using database scripts or hard-coded methods. These methods typically involve IT personnel writing rules using SQL statements or programming languages, making it difficult for business personnel to directly participate in rule creation and adjustment. This results in long rule configuration cycles, high maintenance costs, and a high susceptibility to errors. When production processes or quality standards change, it often requires redevelopment or modification of the code, failing to meet the demands of agile manufacturing and rapid iteration.
[0024] Regarding the propagation mechanism of quality marking, traditional systems generally adopt a static, fixed-level propagation strategy. For example, once a raw material is marked as abnormal, all its downstream work-in-process and finished products are marked as abnormal indiscriminately, regardless of actual assembly relationships, process influence, or material sensitivity. This one-size-fits-all approach can easily lead to over-marking, causing a large number of materials that could flow normally to be wrongly judged as non-conforming, wasting production capacity resources and potentially causing unnecessary line stoppages or recalls. Conversely, in some complex, multi-branched product trees, if the propagation path does not cover all related nodes, it may lead to missed detections, creating potential quality problems.
[0025] Furthermore, existing quality rules often lack fine-grained control over their effective conditions. For example, rules may still be triggered during non-production shifts, holidays, or specific production line downtime, generating invalid alarms or erroneous flags. Simultaneously, the rules themselves lack version management mechanisms. When historical data needs to be reviewed due to quality issues, it is impossible to accurately reconstruct the rules that were in effect at the time, making root cause analysis difficult and increasing the scope of product recalls and compliance risks.
[0026] In terms of traceability structures, modern manufacturing scenarios often involve multi-layered nested and multi-branched product tree structures, forming complex forest-like topologies. Existing systems often struggle to dynamically distinguish the propagation weights of WIP nodes and raw material nodes when handling such structures, and cannot differentiate the propagation intensity based on material type, process stage, or quality history. This results in coarse quality impact assessments, failing to provide a reliable basis for subsequent rework, scrapping, or release decisions.
[0027] In summary, existing technologies have significant shortcomings in terms of rule configurability, propagation flexibility, control over effective conditions, version traceability, and adaptability to complex structures, making it difficult to support the high-quality, high-efficiency, and high-transparency quality management requirements of modern intelligent manufacturing. Therefore, there is an urgent need for a novel quality tagging, traceability, and propagation method that can lower the barrier to rule configuration through visualization, introduce dynamic propagation control parameters for accurate impact assessment, and combine transaction security mechanisms to ensure system reliability, thereby comprehensively improving the level of intelligence in manufacturing quality control.
[0028] To address the aforementioned issues, this application proposes a quality mark traceability and propagation method and system based on visual rules. Through a graphical interface, business personnel can intuitively construct and manage quality anomaly judgment rules without relying on programming skills. Propagation control parameters, such as maximum propagation level, attenuation factor, and sensitivity correction factors for different material types, are introduced into the rules to achieve refined dynamic control of the quality mark propagation path and scope of influence. Combined with the product structure tree, a quality mark is automatically triggered when work-in-process or raw materials that meet the rule conditions and are within the effective range are detected. The mark propagates downwards level by level according to a preset strength calculation model, calculating the mark strength of each node in real time to determine its effective status or as a basis for subsequent handling. Simultaneously, a propagation boundary control mechanism is set up. Once the maximum propagation level is exceeded, propagation is terminated, the transaction is rolled back, and an early warning is issued, effectively preventing the false spread of anomaly marks and ensuring the accuracy of traceability results, the stability of system operation, and the scientific nature of quality decisions.
[0029] First, the method for quality mark tracing and propagation based on visual rules provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0030] Reference Figure 1The implementation process of the quality mark traceability and propagation method based on visualization rules provided in this application includes, but is not limited to, the following steps.
[0031] Step S110: Construct visualization rules for determining quality anomalies through a graphical interface, and configure propagation control parameters associated with the visualization rules.
[0032] The propagation control parameters include the maximum propagation level, attenuation factor, and sensitivity correction factor for different material types. The propagation level is used to limit the propagation depth of quality marks in the hierarchical relationship structure, which includes, but is not limited to, the product tree structure (i.e., the hierarchical structure of the Bill of Materials, BOM), the work-in-process traceability hierarchical structure, or a combination of both.
[0033] In step S110, a low-code rule configuration capability is provided for business users through a graphical interface. The graphical interface transforms the quality anomaly judgment logic that originally required programming into a visual operation process, enabling quality engineers or process personnel to define trigger conditions independently. At the same time, this step clearly configures the propagation control parameters bound to the rules, including the maximum propagation level to limit the depth of the marker's downward propagation, the attenuation factor to simulate the natural law of quality risk decreasing with the level, and the sensitivity correction factor for different material types to reflect the different responses of various materials to the same quality anomaly, thereby laying the rule foundation for subsequent accurate and controllable marker propagation.
[0034] Step S120: When it is detected that the work-in-process or raw material meets the visualization rules, is within the effective range of the visualization rules, and the visualization rules are enabled, a quality mark is triggered.
[0035] In step S120, a conditional automatic triggering mechanism for quality marking is implemented. The system monitors the status data of work-in-process or raw materials in real time. When the data meets the visualization rules defined by the user through the graphical interface, and the current time, production line, shift, or other dimensions are within the effective range of the pre-set rules, and the visualization rules are enabled, the system automatically activates the quality mark. This ensures that the traceability and dissemination process is only initiated when it truly meets the business scenario and management intent, avoiding resource waste and operational interference caused by invalid or accidental triggering.
[0036] Step S130: Based on the product structure tree, the quality mark is dynamically propagated from the trigger node to the lower-level node. During the propagation process, the mark strength of each propagated node is dynamically determined using a preset strength calculation model according to the propagation control parameters.
[0037] The marking strength is used to control the effective status of the quality marking on the corresponding node or as the basis for subsequent quality handling.
[0038] In step S130, a dynamic propagation engine based on the product structure tree is constructed to pass the triggered quality markers from the source node down the material assembly relationship to the downstream child nodes. In this process, the marker state is not simply copied, but based on the maximum propagation level, attenuation factor and material sensitivity correction factor configured in step S110, combined with the preset intensity calculation model, a quantified marker intensity value is calculated in real time for each node that is propagated. This intensity value directly determines whether the node actually presents an abnormal state, or serves as a key input basis for subsequent quality disposal decisions such as rework, isolation, and release, thereby achieving differentiated and refined impact assessment.
[0039] Step S140: If the current level exceeds the preset maximum propagation level during the propagation process, the propagation is terminated, a transaction rollback is performed to revoke the applied quality mark, and a warning notification is sent to the preset terminal.
[0040] In step S140, a security boundary and anomaly circuit breaker mechanism are established for the propagation process. When the marker propagates downwards in the product structure tree, the system continuously monitors the current level depth. Once it is found that the maximum propagation level preset in the rule has been exceeded, all subsequent propagation actions are immediately interrupted, and a transaction rollback operation is initiated to ensure the consistency of the data state. All quality markers applied during this propagation process but exceeding the reasonable range are revoked to prevent large-scale mislabeling caused by improper rule configuration or structural anomalies. At the same time, a warning notification is sent to the preset monitoring terminal or responsible person to indicate the occurrence of propagation anomalies, ensuring the consistency of system data and the reliability of business operations.
[0041] In some embodiments of this application, step S110 involves constructing visualization rules for determining quality anomalies through a graphical interface and configuring propagation control parameters associated with the visualization rules, including the following steps.
[0042] Step S210: On the graphical interface, logical nodes and atomic condition nodes are combined by dragging and dropping to construct a logical unit tree.
[0043] It should be noted that the logical unit tree, as a logical expression of visual rules, is used to define the judgment conditions for quality anomalies. The atomic condition nodes include at least one of material properties, process parameters, test results, or time conditions.
[0044] In step S210, a graphical interface provides an intuitive and flexible rule-building method. Users can drag and drop to freely combine logical nodes and atomic condition nodes to form a clearly structured logical unit tree. This logical unit tree serves as the core logical expression carrier for visualized rules, fully describing the judgment conditions for quality anomalies. Logical nodes include at least logical operators such as AND, OR, or NOT, used to define the combination relationships between multiple conditions; atomic condition nodes cover one or more of material properties, process parameters, test results, or time conditions, representing specific judgment criteria. Through this tree structure, complex quality judgment logic can be presented in a visual and modular way, significantly reducing the technical threshold for business personnel to understand and configure rules.
[0045] Step S220: Configure propagation control parameters for the logical unit tree, and store the logical unit tree and its associated propagation control parameters and multidimensional filters as visualization rules, and assign a unique rule version identifier to support the full lifecycle management and traceability of visualization rules.
[0046] In step S220, the constructed logical unit tree is bound to its corresponding propagation control parameters and further associated with multi-dimensional filters, collectively encapsulated into a complete visual rule for persistent storage. During this process, the system assigns a unique rule version identifier to each rule, ensuring that rules created or modified at different times can be accurately distinguished and managed independently. This unique identifier provides the foundation for subsequent rule activation, deactivation, retrospection, comparison, and auditing, enabling the entire process of visual rules—from creation, publication, application to changes—to be tracked and controlled, thereby achieving full lifecycle management of rules and ensuring the verifiability and consistency of quality judgment logic in historical tracing and compliance review.
[0047] In some embodiments of this application, a method for implementing a visual rule expression based on a logical unit tree model is provided, which is used to realize the graphical construction and automated evaluation of quality judgment conditions. This method, by defining a logical unit model, transforms complex rule expressions into draggable and composable tree structures, allowing users to intuitively construct judgment conditions containing multiple logical relationships in a graphical interface.
[0048] Specifically, each logical unit Represented as a pair ,in The operator represents the range of values. This is used to describe the logical type of the current node; This represents the set of sub-units, that is, the set of subordinate logical units associated with this node, and satisfies the following conditions: ,in This is the set of all logical units. When At that time, the unit is an atomic condition node, and its value is determined by the function. Generate, where Includes conditional parameters, specifically including and , where represents the attribute type to be compared and the comparison operator, respectively. For example, This indicates the generation of an atomic condition to determine whether the defect code is equal to DX001. For non-atomic nodes, their logical values are determined by a recursive function. The calculation yields the following formula (1): (1); In formula (1), Representation of logical units The Boolean evaluation result, This represents the logical AND operation. Represents the logical OR operation. This represents the logical NOT operation. The model clearly expresses complex conditional logic through a tree structure, supports flexible rule configuration and efficient execution, and is suitable for quality anomaly detection scenarios in the manufacturing process.
[0049] In some embodiments of this application, a method for constructing quality rules based on visualization is provided, comprising three core steps: First, rule expressions are constructed through a logical unit tree. Users can drag and drop logical operators such as AND, OR, or NOT in the graphical interface, and combine fields, operators, and values to form condition nodes, creating a complete logical structure. The system generates the corresponding rule expressions in real time, such as "defect_code in ('DX001','DX005') AND(value>0.5 AND...". The system uses a device='CMM-02' and imposes a maximum level limit on the logic tree depth to ensure rule readability and stability. Secondly, it configures dynamic propagation parameters, allowing users to set the maximum propagation level, attenuation coefficient, and weighting factors for different material types to control the propagation range and intensity of quality markers within the product structure tree. Finally, it sets up a multi-dimensional effective range filter covering time windows, product ranges, and batch ranges. This supports multi-period non-continuous time configuration, product filtering by material type or code, and numerical range verification of batch numbers, ensuring that rules only take effect under specific time, product, and batch conditions. This achieves high-quality, high-precision, and flexibly configurable quality rule management.
[0050] In some embodiments of this application, a method for constructing and previewing real-time logical expressions based on a graphical interface is provided to support users in dynamically configuring quality judgment rules without writing code. This method guides users through a streamlined process of constructing logical expressions: first, the system loads a basic logic group as an initial container; then, in the condition addition stage, users can select condition types from multiple dimensions, including selecting defect codes and setting their value range, selecting detection values and configuring numerical comparators (such as greater than, less than, etc.), or selecting a time window and setting a specific time interval; after each condition is set, users can choose to use AND, OR, or NOT logical operators to connect and combine the current condition with existing logic groups; the system generates the corresponding logical structure in real time after each step and verifies the integrity of the entire logic group in subsequent steps to ensure correct syntax and valid structure; finally, the complete logical expression is output for subsequent rule effectiveness judgment and quality mark triggering, achieving an integrated operational experience of visual rule definition and real-time expression preview.
[0051] In some embodiments of this application, the scope of the visualization rules is defined by a multidimensional filter, which includes filtering conditions in at least one of the following dimensions: (1) Time-dimensional filtering conditions are used to support combinations of multiple non-contiguous time periods. Each time period can have its start and end times set independently, and can be configured by shift, date range, or user-defined period. The purpose of time-dimensional filtering conditions is to limit the scope of application of visualization rules on the time axis. By supporting combinations of multiple non-contiguous time periods, rules can take effect within specific production periods. Each time period can have its start and end times set independently, and can be flexibly configured by shift, date range, or user-defined period, thereby meeting the precise control of rule timeliness under different production plans, shift scheduling systems, or seasonal quality control needs.
[0052] (2) Material dimension filtering conditions are used to filter based on material type, material code, or material classification to limit the visualization rules to only the specified category of products or raw materials. The function of material dimension filtering conditions is to filter the applicable objects of the rules according to the basic attributes of the materials. By matching based on one or more of the information in material type, material code, or material classification, it ensures that the visualization rules only apply to the specified category of products or raw materials, avoids the rules being misapplied to irrelevant materials, and improves the pertinence and accuracy of quality judgment.
[0053] (3) Batch-dimensional filtering conditions are used to limit the production batches or batch sets to which the visualization rules apply by at least one of the following methods: numerical range comparison, discrete batch set specification, character structure matching, logical batch merging, related attribute filtering, or derivation relationship inheritance. The role of batch-dimensional filtering conditions is to refine the range of production batches. By using one or more of the following methods, the specific batches or batch sets to which the rules apply can be flexibly defined, so that the quality rules can adapt to complex and ever-changing batch coding systems, production organization methods, and batch lineage relationships, and achieve accurate coverage of specific production batches.
[0054] (4) Work-in-process (WIP) dimension filtering conditions are used to control the triggering position and traceability path of quality markers by limiting the production line, process, equipment identifier, WIP type, or test result of the starting WIP node, and in combination with propagation direction constraints. Among them, the WIP dimension filtering conditions include the starting WIP node limiting sub-condition and the propagation direction control sub-condition; the starting WIP node limiting sub-condition is used to specify the initial WIP node that triggers the quality marker, and this node is filtered according to at least one of the following: its production line, current process, equipment identifier, WIP type, or associated test result; the propagation direction control sub-condition is used to specify the propagation direction of the quality marker in the product structure tree, and the propagation direction is unidirectional propagation along the product structure tree to the subsequent lower-level nodes.
[0055] By configuring filtering conditions at the work-in-process (WIP) level, the applicability of visualization rules at the production execution level is finely defined. Two key sub-conditions are introduced to ensure that the triggering and propagation of quality markers are strictly limited to the intended manufacturing context. The starting WIP node constraint sub-condition clarifies which WIP items are eligible as trigger sources for quality anomalies. The selection criteria include at least one of the following: production line, current process, production equipment identification, WIP type, or associated inspection results. This restricts rule activation to specific production stages or objects, preventing irrelevant WIP items from mistakenly triggering quality markers. The propagation direction control sub-condition defines the allowed propagation path direction in the product structure traceability relationship once a quality marker is generated. It must at least support unidirectional propagation along the product structure tree to subsequent lower-level WIP nodes, ensuring that the marker can be accurately passed down along the actual material flow and assembly relationship, providing a structured basis for subsequent quality isolation, impact analysis, or handling decisions.
[0056] In some embodiments of this application, the batch dimension filtering conditions are configured in at least one of the following ways: (1) After extracting and converting the continuous numerical part of the batch identifier into a numerical value, it is compared with the preset numerical range. The purpose of this configuration is to enable the system to identify and process the batch code with the hidden sequence or time information in the numerical sequence. Through numerical comparison, the system can automatically filter continuous or interval batches, thereby supporting the application of quality rules based on batch size or sequence range. It can complete efficient filtering without relying on external metadata.
[0057] (2) Configure one or more discrete batch identifier sets to limit the rules to only apply to production batches in the batch identifier set. This configuration method provides a mechanism to accurately specify the target batch. It is suitable for scenarios where quality monitoring rules need to be applied separately to specific known problem batches, test batches or high-risk batches, ensuring that the scope of the rules is strictly limited to the predefined batch list and avoiding generalization effects.
[0058] (3) Matching based on the character structure features of batch identifiers. Its function is to achieve flexible filtering by utilizing the text pattern of the batch code itself. By using prefix matching, regular expression pattern matching or wildcard matching, batches with common naming rules or structural features can be identified. Thus, even in the absence of structured metadata, batches can still be effectively classified and bound according to encoding conventions.
[0059] (4) Multiple actual production batches are merged into a logical batch or batch group, and the rules are limited to the effective objects based on the logical batch or batch group. This configuration method is used to deal with the logical batch units formed in actual production due to batch merging, mixed batching or management needs, so that quality rules can be applied to the entire logical batch at once, improve configuration efficiency, and ensure that all physical batches in the same logical unit receive a consistent quality processing strategy.
[0060] (5) Filtering based on batch-related attribute information extends the applicability of quality rules from the batch identifier itself to the associated production context information. By filtering based on at least one of the production date, production line, equipment, supplier or process parameters, dynamic rule adaptation based on manufacturing environment or source characteristics is achieved, enhancing the coupling and relevance of rules with actual production conditions.
[0061] (6) Based on the derivation or inheritance relationship between batches, the scope of application of the rule is extended to the work-in-process batches derived from the target batch. The purpose of this configuration is to support the lineage traceability of quality impact. When the raw material or upstream semi-finished product batch triggers the quality mark, the rule effect is automatically extended to all work-in-process batches derived downstream, ensuring that the complete propagation path of quality problems in the product structure tree is covered, and realizing end-to-end quality link control.
[0062] In some embodiments of this application, a batch number conversion and verification method for batch dimension filtering is provided, aiming to standardize batch numbers containing mixed alphanumeric formats and support validity judgment within a preset numerical range. The batch number conversion function includes two steps: first, extracting continuous numeric substrings from the input batch string, for example, extracting "20240501" from the batch number "B20240501A"; second, converting the extracted numeric strings into integer types to form standardized batch values that can be used for numerical comparison. This function ensures that batch numbers of different formats can be uniformly mapped to the integer field, facilitating subsequent range comparison operations. Based on this, a batch range verification algorithm is defined: where represents the converted integer batch value, and and represent the lower and upper limits of the batch number numerical range configured by the user, respectively. The batch is determined to meet the batch dimension conditions of the rule if and only if the converted batch value falls within this closed interval, allowing it to enter the subsequent quality judgment process. This method effectively supports the precise screening of continuous production batches or specific batch number sets, and is suitable for dynamic control of quality rules in scenarios such as trial production, rework, and special orders.
[0063] In some embodiments of this application, in step S120, when it is detected that the work-in-process or raw material meets the visualization rules, is within the effective range of the visualization rules, and the visualization rules are enabled, a quality mark is triggered, including the following steps.
[0064] Step S310: Obtain the current status data of work-in-process or raw materials in real time; wherein, the status data includes material type, batch identifier, process parameters, test results, timestamp, production line, process and equipment identifier.
[0065] In step S310, complete status data related to the current work-in-process or raw materials is collected in real time, providing basic input information for subsequent rule matching and quality mark triggering. The status data acquired in this step covers core business attributes such as material type, batch number, process parameters, test results, and timestamps, as well as key contextual information at the manufacturing execution level, such as the production line, process, equipment identification, and work-in-process type. These data together constitute a multi-dimensional, all-element real-time snapshot of the current production object, ensuring that the system can make rule judgments based on the real, accurate, and complete on-site status, thereby supporting the activation of visualized rules at the correct time, place, and object.
[0066] Step S320: When a rule is triggered for judgment, a joint judgment is made based on the status data and a multi-dimensional filter to determine whether the visualization rule is in effect.
[0067] In step S320, the multi-dimensional filtering conditions configured in the visualization rules are verified item by item to ensure that the subsequent rule activation judgment only proceeds when all enabled dimension filtering conditions pass, thereby achieving precise control over the applicable scenarios of the rules. For example, if a time dimension filtering condition is configured in the visualization rule, it is verified whether the current timestamp falls within the time window; if a material dimension filtering condition is configured, it is verified whether the material type matches; if a batch dimension filtering condition is configured, it is verified whether the batch identifier matches; if a work-in-process dimension filtering condition is configured, it is verified whether the current work-in-process meets the starting node limitation and propagation direction constraint.
[0068] Step S330: When all configured filtering conditions are met and the visualization rule is enabled, the visualization rule is considered to be in effect.
[0069] In step S330, a comprehensive judgment is made on whether the visualization rule is truly in an executable state. The core logic is: the rule is considered to be in effect only when all the filtering conditions configured in the rule are met by the current object, and the visualization rule itself is in an enabled state. This judgment mechanism avoids the false triggering of rules that are not enabled or whose conditions do not match, ensuring the accuracy and controllability of quality mark triggering.
[0070] Step S340 involves substituting the status data of the finished product or raw material into the logical unit tree corresponding to the visualization rule for recursive evaluation.
[0071] In step S340, the specific operational status data of the current work-in-process or raw materials is input into the logical unit tree corresponding to the visualization rule, and recursive logical evaluation is performed. The status data used explicitly includes material type, batch identifier, process parameters, test results, timestamp, production line, process, and equipment identifier. This data serves as the input values for atomic condition nodes, driving the Boolean judgment process of the entire logical unit tree, thereby objectively assessing whether the current object constitutes a quality anomaly. By binding the status data to the logical unit tree, an execution entry point is provided for the transformation of rules from static configuration to dynamic decision-making, serving as a crucial bridge connecting rule configuration and actual quality event response.
[0072] Step S340: When the evaluation result of the logic unit tree is true, generate an initial quality mark and record the trigger node, rule version identifier and initial mark strength to complete the triggering of the quality mark.
[0073] In step S340, the system determines whether to formally trigger a quality tag based on the evaluation result of the logic unit tree. When the recursive evaluation result of the logic unit tree is true, the system determines that a quality anomaly exists, generates an initial quality tag, and simultaneously records three key metadata: the trigger node (i.e., the specific work-in-process or batch where the anomaly occurred), the rule version identifier (a unique version of the rule used for tracing), and the initial tag strength (serving as a benchmark for subsequent propagation calculations and handling decisions). This step not only realizes the transformation from logical judgment to business action but also provides a reliable data foundation for quality traceability, audit analysis, and rule optimization through structured records. The completion of the formal generation and recording of the quality tag marks the successful closure of a rule triggering process.
[0074] In some embodiments of this application, a joint judgment is made based on state data and multidimensional filters to determine whether the visualization rule is in effect, specifically including the following:
[0075] First, it determines whether the current timestamp falls within the time window configured by the time dimension filtering conditions. This step ensures that the visualization rules are only effective within a preset specific time period, thus limiting quality monitoring to periods of business significance or high risk. This determination, by comparing the real-time collected timestamp with one or more non-continuous time windows (such as shifts, date ranges, or custom periods) configured in the rules, effectively avoids the rules being mistakenly activated during irrelevant periods, improving the timeliness and targeting of quality control, while also supporting flexible responses to scenarios such as planned production adjustments, equipment maintenance periods, or seasonal process changes.
[0076] Secondly, the system determines whether the current material type matches the material type, material code, or material classification specified in the material dimension filtering conditions. This step precisely constrains the application scope of the visualization rules to a specific material object. Since different materials differ in composition, use, or process requirements, their quality anomaly judgment criteria may also differ. Through this determination, the system ensures that the rules only apply to the target material category, preventing mislabeling or omissions caused by mixed materials or generalized matching. This enhances the applicability and accuracy of the rules and supports differentiated quality management by product line, raw material type, or key component.
[0077] Next, it is determined whether the current batch number, after preprocessing, falls within the numerical range defined by the batch dimension filtering conditions. This step enables precise screening and coverage of specific production batches or batch sets. This step first standardizes the original batch number, extracting the consecutive numerical portions and converting them to integers, then comparing them with the numerical range set in the rules. This design is compatible with multiple batch coding formats and supports targeted monitoring by batch sequence (such as consecutive production batches, trial production batches, or recalled batches), allowing the quality marking mechanism to focus on high-risk or specially monitored batch groups, improving traceability efficiency and handling accuracy.
[0078] Finally, it is determined whether the current work-in-process (WIP) meets the WIP-level filtering conditions. First, it is determined whether the production line, current process, equipment identifier, WIP type, or associated detection results of the current WIP match the limiting sub-conditions of the starting WIP node, limiting the physical or logical starting point for quality marking triggering, ensuring that only WIP within a specific manufacturing context can serve as the source of an abnormal event. This determination is based on actual production execution data, verifying whether the current object belongs to a key link intended for monitoring by the rule (such as a high-precision assembly station, error-prone equipment, or special process segment), thereby avoiding triggering marking on irrelevant processes or general nodes, ensuring the focus and effectiveness of quality intervention measures. Second, it is determined whether the current WIP's position in the product structure tree allows it to be a legitimate triggering point for quality marking, and whether it complies with the propagation direction constraints limited by the propagation direction control sub-conditions. The rationality and compliance of the triggering node are verified from the product structure and traceability logic perspective, not only confirming that the WIP possesses the structural qualifications to be a marking source (e.g., not an intermediate temporary node, not a frozen node, etc.), but also ensuring that its subsequent propagation path is consistent with the rule's preset direction (e.g., only allowing propagation to lower-level WIP). This mechanism prevents marking errors caused by improper structural placement or conflicting propagation directions, maintaining the logical integrity and controllability of the quality traceability chain.
[0079] In some embodiments of this application, a method for controlling the effectiveness conditions of quality rules based on multi-dimensional filters is provided to achieve refined filtering and dynamic effectiveness management of quality rules across time, material, and batch dimensions. The multi-dimensional filter introduces an activation function. To comprehensively determine whether the rule is in a valid state, among which This function represents a time window, used to control the behavior of rules within a specific time period. It supports configuration of multiple time periods and non-contiguous time intervals, such as by shift, date interval, or custom period, ensuring that rules are only activated within preset production periods. Indicates the current system time; A two-dimensional filtering function representing material type and batch range is used to limit rules to products or raw materials that apply only to a specified material category and a specific batch number range. This represents the material properties and batch information of the object currently being tested. The value is a Boolean, and it is 1 if and only if the material type matches and the batch number falls within the set range; otherwise, it is 0. The activation function is obtained by multiplying the two values. This determines the overall effectiveness of the rule: when When the rule takes effect, it can trigger a quality flag; when When the time condition is met, the rule will not take effect, and no subsequent operations will be executed. This design implements joint filtering based on three dimensions: time, material, and batch. This avoids the false triggering of rules in non-target scenarios, significantly improves the accuracy of quality judgment and business adaptability, and is suitable for dynamic quality management needs in complex manufacturing environments.
[0080] In some embodiments of this application, taking a lithium battery cell production line as an example, based on the original three-dimensional filters of time, material, and batch, a work-in-process (WIP) hierarchical structure and process flow dimension are further introduced to achieve refined control over the quality mark triggering point and propagation path.
[0081] Specifically, in the lithium-ion battery cell manufacturing process, new Work-in-Process (WIP) nodes are continuously generated as key processes progress, establishing a parent-child traceability relationship with preceding WIP nodes to form a clear hierarchical structure: starting from the L0 positive electrode WIP, it sequentially passes through lamination (L1), bare cell (L2), electrolyte injection (L3), formation (L4), capacity testing (L5), and finally to the OQC inspection cell (L6). This WIP traceability link constitutes a multi-branch tree rooted at the final inspection cell, where any node can trace back to the source or locate the affected subsequent work-in-process. To achieve more precise quality control, this application introduces work-in-process dimension filtering conditions on the basis of the original time, material, and batch three-dimensional filters, clearly defining the triggering point of quality marking (e.g., only allowing L3 electrolyte-injected cells as triggering sources) and the propagation direction (unidirectional propagation along the WIP hierarchy to subsequent processes), and supports configuring the maximum propagation level and attenuation factor.
[0082] When an anomaly is detected in a process (such as liquid injection), the system collects the current Work-in-Process (WIP) status data in real time, including its level, equipment, material type, batch number, and timestamp. It then uses a four-dimensional joint judgment to confirm whether the visualization rules are effective. If the configured filtering conditions are met and the logical unit tree evaluates to true, an initial quality mark is generated at that WIP node. Based on preset propagation control parameters, the mark strength is dynamically calculated and applied to lower-level nodes along the WIP traceability chain until the maximum propagation level is reached. This mechanism ensures that the impact of quality is strictly limited to subsequent work-in-process processes that are related to the process, avoiding accidental expansion to upstream materials or unrelated production lines, significantly improving traceability accuracy and handling efficiency.
[0083] In some embodiments of this application, in step S130, based on the product structure tree, the quality mark is dynamically propagated from the trigger node to the lower-level node, and during the propagation process, the mark strength of each propagated node is dynamically determined using a preset strength calculation model according to the propagation control parameters, including the following steps.
[0084] Step S410: Starting from the trigger node, traverse the lower-level nodes in the product structure tree and recursively perform the propagation operation layer by layer downwards.
[0085] In step S410, the propagation process of the quality mark in the product structure tree is initiated and executed. Starting from the trigger node, the system traverses all direct and indirect subordinate nodes layer by layer according to the product assembly relationship, and performs the propagation operation for each level in sequence. This traversal is performed recursively to ensure that the mark can cover all potentially affected child nodes along the complete material dependency path, providing a structural basis for subsequent refined strength calculation and state determination.
[0086] Step S420: For each propagated node, obtain its hierarchical distance relative to the triggering node, material type, and associated propagation control parameters.
[0087] In step S420, the necessary parameters for calculating the marker strength are collected for each propagated node. During the propagation process, the system obtains the hierarchical distance of the current node relative to the original triggering node in real time, identifies its specific material type, and associates it with the propagation control parameters configured by the visualization rule. This information is the core input to the subsequent strength calculation model, ensuring that the marker strength of each node can be differentiated according to its position in the structure and material characteristics.
[0088] Step S430: Based on the hierarchical distance, attenuation factor, and sensitivity correction factor corresponding to the material type of the node, and combined with the initial marking intensity, the marking intensity of the node is calculated through the intensity calculation model.
[0089] In step S430, a quantified marker intensity value is generated for each propagated node through a preset intensity calculation model. The model takes the initial marker intensity as a benchmark, combines the hierarchical distance of the current node to introduce an attenuation factor for exponential or linear attenuation, and further multiplies it by the sensitivity correction factor corresponding to the material type of the node, thereby comprehensively reflecting the quality risk as the propagation depth decreases and the amplification or suppression effect caused by the different importance of materials, and finally outputs an intensity value that matches the actual quality impact.
[0090] Step S440: Based on the calculated marker strength, determine whether the quality marker is actually activated on the node, and record the marker status, strength value and propagation path information of the node.
[0091] In step S440, the system determines whether the node truly activates the quality marker based on the marker strength calculated in step S530. The system then determines whether to apply the quality anomaly status to the current node based on a preset strength threshold or business strategy, and simultaneously records the node's final marker status, specific strength value, and the complete propagation path information from the triggering node to the current node. These records are not only used for real-time quality handling but also provide traceable data support for subsequent traceability analysis, impact assessment, and auditing.
[0092] Step S450: If the current propagation level reaches or exceeds the maximum propagation level, then stop propagating to deeper levels.
[0093] In step S450, hard boundary control of propagation depth is implemented. After each layer of propagation is completed, the system checks whether the current layer has reached or exceeded the maximum propagation layer preset in the rules. Once this condition is met, the continued propagation to deeper layers is immediately terminated. This mechanism effectively prevents quality tags from spreading indefinitely to irrelevant or minimally influential end materials, avoids misjudgments and resource waste caused by over-labeling, and ensures the rationality and controllability of the propagation process.
[0094] In some embodiments of this application, step S510 involves starting from the trigger node, traversing the lower-level nodes in the product structure tree, and recursively performing the propagation operation layer by layer downwards, including the following steps.
[0095] Step S610: If the triggering node is a work-in-process node, apply a quality mark to the current work-in-process node, and traverse all its direct child work-in-process nodes in turn, recursively performing the same propagation operation on each child work-in-process node.
[0096] In step S610, the system handles propagation scenarios where a work-in-process (WIP) node serves as the starting point for a quality anomaly. First, a quality marker is applied to the currently triggered WIP node. Then, it iterates through all child WIP nodes directly contained within that node, recursively performing the same propagation operation as the parent node for each child node. This mechanism ensures that the quality marker can be passed down level by level along the assembly structure within the WIP, fully covering all lower-level components composed of that WIP, thereby enabling quality impact assessment of multi-layered WIP in complex product structures.
[0097] Step S620: If the triggering node is a raw material node, apply a quality mark to the current raw material node, and query all work-in-process nodes directly produced by the raw material according to the predefined material output relationship mapping table. Perform the aforementioned propagation operation for each work-in-process node for each found work-in-process node.
[0098] In step S620, the system handles propagation scenarios where raw material nodes serve as the starting point for quality anomalies. First, it applies a quality marker to the currently triggered raw material node. Then, based on a predefined material output relationship mapping table, it queries all work-in-process nodes directly input and output by the raw material during production. For each found work-in-process node, a propagation process is initiated. This step establishes a cross-level connection bridge from raw materials to work-in-process, enabling quality risks to be accurately transmitted from the source material to its directly manufactured product, supporting end-to-end positive traceability capabilities.
[0099] In step S630, during each recursive call, the current propagation level is updated in real time, and the current node is used as the new trigger node to continue propagating downwards until the maximum propagation level is reached or there are no more lower-level nodes.
[0100] In step S630, the propagation hierarchy information is dynamically maintained and updated during each recursive propagation process. When the system enters a new recursive call, it increments the current propagation depth by one and treats the currently processed node as the trigger node for a new round of propagation. It continues to search for its subordinate nodes and execute the propagation logic until the termination condition is met, i.e., the current propagation level reaches the preset maximum propagation level or the current node no longer has any propagable subordinate nodes. This mechanism ensures that the propagation process unfolds in an orderly and controllable manner within the tree structure, while providing accurate hierarchical distance basis for hierarchy boundary control and intensity calculation.
[0101] In some embodiments of this application, a defect propagation path calculation method based on a recursive propagation algorithm is provided. This method calculates the propagation path of defect markers layer by layer downwards from the trigger node in the product structure tree. The method recursively traverses the BOM (Bill of Materials) structure, i.e., the product structure tree, ensuring that all affected lower-level nodes are covered, and limits the propagation range by setting a maximum propagation level to prevent excessive diffusion. Specifically, a propagation function is defined. ,in Indicates the current propagation node. This represents the current propagation level, with an initial value of 1. The function determines whether the current level exceeds the preset maximum propagation level. (like Set to 5) and make a judgment: if If the condition is met, return an empty set, indicating termination of propagation; otherwise, return the current node's value. Starting from the origin and all its direct child nodes The union of the set of each propagation path, i.e. ,in Represents a node The set of direct child nodes, Represents child nodes Marking intensity on Indicates child nodes The recursive propagation continues to the next level. This algorithm automatically constructs a complete propagation path from the trigger node to all reachable nodes through recursive calls, recording the node and state information at each step to support subsequent quality impact analysis and traceability. The entire process has the advantages of clear structure, rigorous logic, and strong scalability, making it suitable for quality mark propagation scenarios in complex multi-level manufacturing systems.
[0102] In some embodiments of this application, in step S530, based on the hierarchical distance, attenuation factor, and sensitivity correction factor corresponding to the material type of the node, combined with the initial marking intensity, the marking intensity of the node is calculated by the intensity calculation model, satisfying the following calculation formula (2): (2): In formula (2), Indicates the currently propagated child node Marking intensity on Indicates the trigger node The initial mark strength; Indicates from the trigger node To the currently propagated child node The attenuation factor corresponding to the hierarchical distance; This represents the attenuation factor, which controls the rate at which the intensity decreases with each level during propagation, and its value ranges from [value missing]. ; The smaller the size, the faster the propagation attenuates; Indicates no attenuation; This indicates that in the product structure tree, starting from the trigger node... To the currently propagated child node The hierarchical distance is calculated using the BFS algorithm. The larger this value is, the farther the node is from the source, and the weaker its influence should be. Indicates the currently propagated child node The corresponding sensitivity correction factor for the material type is used to reflect the sensitivity of different material types to the same quality event.
[0103] Specifically, formula (2) is used to calculate the marker intensity generated when a quality marker propagates from a trigger node to a target node in the product structure tree. Its core function is to dynamically adjust the initial marker intensity based on the hierarchical distance of the propagation path, the attenuation factor, and the sensitivity characteristics of the material type, so as to reflect the true degree of impact of quality events on different nodes. Specifically, it considers the hierarchical distance between the node and the trigger source, uses the attenuation factor to reflect the trend of risk decreasing with increasing hierarchy, and combines the differences in response of different material types to the same quality problem to introduce a sensitivity correction factor to amplify or suppress the marker intensity, thereby achieving a refined quantification of the marker intensity of each propagated node, providing a scientific basis for subsequent quality judgment, disposal decisions, and impact range assessment.
[0104] In some embodiments of this application, in step S120, when a new work-in-process (WIP) child node is generated on the production line, the WIP child node automatically inherits all valid quality marks existing on its parent WIP node. Valid quality marks refer to quality marks that are currently in effect and have not been revoked. The inheritance operation is completed synchronously when the child node is created, and the inheritance source is recorded in the propagation path information to ensure the end-to-end traceability of quality marks and the continuity and integrity of quality marks during the dynamic expansion of the product structure.
[0105] Specifically, when a new work-in-process (WIP) child node is generated during production, the system automatically and completely transfers all currently active and unrevoked quality tags from the parent WIP node to the newly created child node. This inheritance operation is not delayed but is completed synchronously within the same transaction where the child node is created, thus ensuring real-time consistency between quality status and material entities. Simultaneously, the system records the source information of this inheritance, including the parent node identifier and the rule version of the inherited tags, into the child node's propagation path information. This provides complete and tamper-proof audit trails for tracing the origin, propagation chain, and scope of impact of quality tags, effectively supporting full lifecycle quality tracking and accountability.
[0106] In some embodiments of this application, an overall implementation flow of a quality marking traceability and propagation method based on visual rules is provided, which is divided into five levels, respectively realizing the complete process of rule definition, logic parsing, path calculation, condition filtering and marking execution.
[0107] The first layer includes three components: template library management, rule builder, and propagation path configuration. These components support users in creating quality rules and configuring parameters through a graphical interface. The rule builder allows users to drag and drop combination logic nodes and atomic condition nodes to form a logic unit tree. The propagation path configuration is used to set propagation control parameters such as the maximum propagation level, attenuation factor, and material sensitivity correction factor. The template library management is used to uniformly maintain reusable rule templates and improve configuration efficiency.
[0108] The second layer includes a logic parser and a version controller. The logic parser is responsible for transforming the logical unit tree constructed by the user into executable judgment logic, while the version controller assigns a unique version identifier to each rule and records the change history, realizing full lifecycle management of the rules.
[0109] The third layer contains a BOM traversal algorithm and an attenuation calculator. The BOM traversal algorithm traverses all relevant nodes layer by layer from the trigger node according to the product structure tree. The attenuation calculator calculates the intensity attenuation ratio of each node based on the layer distance and the preset attenuation factor, providing support for subsequent intensity calculations.
[0110] The fourth layer contains a spatiotemporal filter and a product filter. The spatiotemporal filter is used to verify whether the current time is within the time window when the rule is effective, while the product filter determines whether the material type and batch number meet the dimensional conditions defined by the rule. Only when both conditions are met simultaneously is the marking execution phase allowed.
[0111] The fifth layer includes a rule base, a propagation graph, and audit logs. The rule base stores the visualized rules that have taken effect and their version information. The propagation graph records the complete path and intensity changes of each quality marker propagation. The audit logs save detailed data on the entire process of rule triggering, propagation, and results, ensuring that operations are traceable and auditable. This layered design automates and visualizes the entire process from rule configuration to execution, significantly improving the accuracy, controllability, and maintainability of quality traceability.
[0112] In some embodiments of this application, a template-driven visual quality rule creation process is provided to achieve efficient and standardized configuration of quality anomaly judgment rules. The user first selects the "Surface Defect Detection" template from a preset template library. This template contains three core fields: defect code, detection value, and detection equipment, which serve as the basis for rule construction. Then, the system enters the logic tree construction stage. The system supports hierarchical construction of complex logical expressions: the first step adds a first-level OR logic group, containing two condition nodes, representing defect code equal to DX001 or DX005 respectively; the second step adds a second-level AND logic group, containing two condition nodes: detection value greater than 0.5 and detection equipment CMM-02. The system combines these logic groups to generate the final logical expression: (defect code = DX001 or defect code = DX005) and (detection value > 0.5 and detection equipment = CMM-02), and performs depth verification to confirm that the depth of the entire logical structure is 3, meeting the maximum depth limit of 5. Next, the propagation parameters are configured, setting the maximum propagation level to 3, the attenuation coefficient to 0.7, and weighting factors for different material types, such as 1.2 for AL6061, 0.8 for STAINLESS, and 1.0 for others, to achieve differentiated propagation control. Then, the effective scope is configured, with the time window set to weekdays 1 to 5, from 8:00 to 20:00 daily; the product range is limited to material type MAT-A, with batch numbers between 2308001 and 2308100. Finally, the system automatically generates and stores rule version V1.0, forming a complete rule data structure, including a unique identifier ID, version number, expression content, propagation parameters, effective scope, and creation time, achieving full lifecycle management and traceability of the rule.
[0113] In some embodiments of this application, a real-time triggering and propagation process for quality marking based on visual rules is provided for automatically identifying and responding to quality anomaly events during production. The scenario is set as follows: on August 15, 2023, at 10:30 AM, production line A in workshop A detected a product defect. Specific information includes defect code DX005, detection value 0.6 mm, product batch AA2308005, and product type MAT-A. Upon receiving this data, the system initiates the processing flow: First, condition matching is performed to verify whether the defect code belongs to the preset set {DX001, DX005} and whether the detection value is greater than 0.5 and the equipment is CMM-02; the result is true. Then, a time window verification is performed to confirm that the current time is Tuesday and falls within the working hours from 8:00 AM to 8:00 PM, meeting the time condition. Next, product filtering verification is performed to determine that the product type is MAT-A and the batch number 2308005 is within the specified range [2308001, ...]. Within [2308100], the verification passed; entering the propagation intensity calculation stage, the system calculates the marking intensity of each lower-level material node layer by layer according to the product structure tree. The initial intensity is 1.0. Combining the layer distance, attenuation coefficient of 0.7, and material sensitivity factor (e.g., C-201 is 1.2, C-202 is 1.0, C-203 is 1.2), the intensity of C-201 is 0.84, C-202 is 0.49, and C-203 is 0.41 respectively. When propagating to the 4th layer, the system detects that the current layer has exceeded the maximum propagation layer 3, triggers the blocking mechanism, terminates the propagation and executes transaction rollback, cancels the applied but out-of-range markings, records the error log, and sends an early warning notification to the quality management group. The final output includes the root product ID, trigger time, matching rule version, and the ID, layer, and corresponding intensity value of all marked products, realizing accurate identification, controllable propagation, and safe closed-loop management of quality anomalies.
[0114] In some embodiments of this application, a method is provided to ensure system data consistency and operational security during quality mark propagation. The core of this method lies in automatically executing a series of exception handling actions to prevent error propagation when the propagation level exceeds a preset threshold. The method defines a blocking function. This function enables control over the propagation process, based on the current propagation level. With the maximum allowed propagation level The comparison result determines the execution path: if Then trigger The function performs the following operations in sequence: First, it calls... Terminate the current propagation process and cut off subsequent propagation links; then call... Record the current time Initial tagging information and final propagation level Key event logs, etc., provide a basis for subsequent auditing and troubleshooting; among them It is a structured initial tag information object containing metadata such as trigger node identifier, rule version, initial tag strength, timestamp and exception type, used for quality tag traceability, auditing and transaction rollback.
[0115] Next, the warning function is called. Send early warning notifications to preset terminals or responsible persons, among which This indicates an alarm queue containing details of the anomaly, ensuring relevant personnel are promptly informed of any cross-border propagation incidents; finally, execution... The rollback operation utilizes a transaction reverse execution mechanism to undo all quality markers applied during the current propagation process, restoring the system to a consistent state before propagation. This mechanism supports asynchronous reception of warning notifications from multiple terminals and, combined with the reverse backtracking capability of transaction logs, achieves a three-pronged security protection system encompassing circuit breaking during propagation, data rollback, and real-time alerts. This effectively avoids widespread mislabeling caused by improper rule configuration or structural anomalies, improving the stability and reliability of the entire quality traceability system.
[0116] Secondly, refer to Figure 2 This application provides a quality mark traceability and propagation system based on visual rules, including a rule construction and configuration module, a rule validity judgment module, a quality mark propagation module, and a propagation security control module.
[0117] The rule building and configuration module is configured as follows: a graphical interface is used to build visual rules for judging quality anomalies, and the propagation control parameters associated with the visual rules are configured; the propagation control parameters include the maximum propagation level, the attenuation factor, and the sensitivity correction factor for different material types.
[0118] This module provides users with a visual means to define quality anomaly judgment logic without programming. Through a graphical interface, complex rules are transformed into drag-and-drop combinable logical structures, and propagation control parameters bound to the rules are configured simultaneously. These include the maximum propagation level to limit the propagation depth, a decay factor reflecting the decreasing trend of risk with each level, and a sensitivity correction factor reflecting the differences in the sensitivity of different materials to quality anomalies. This lays the rule foundation for subsequent accurate triggering and dynamic propagation.
[0119] The rule validity judgment module is configured to trigger a quality mark when work-in-process or raw materials meet the visualization rules, are within the effective range of the visualization rules, and the visualization rules are enabled. This module is used to implement conditional and scenario-based control of quality mark triggering. The system monitors the status data of work-in-process or raw materials in real time. Only when they meet the logical conditions defined by the visualization rules, are within the effective range jointly defined by multiple dimensions such as time, material, batch, and work-in-process, and the visualization rules are enabled, is the rule considered valid and the quality mark activated. This ensures that anomaly judgment strictly matches the actual production situation and avoids misjudgment or invalid triggering.
[0120] The quality tag propagation module is configured to: dynamically propagate quality tags from trigger nodes to lower-level nodes based on the product structure tree; and dynamically determine the tag strength of each propagated node using a preset strength calculation model based on propagation control parameters during the propagation process. The tag strength is used to control the effectiveness of the quality tag on the corresponding node or as a basis for subsequent quality handling.
[0121] This module constructs a dynamic and quantitative impact assessment mechanism based on the product structure tree. It transmits triggered quality markers from the source node to the next level node along the material assembly relationship. During the propagation process, it combines the maximum propagation level, attenuation factor and material sensitivity correction factor, and uses a preset intensity calculation model to calculate a marker intensity value for each propagated node in real time. This value directly determines whether the node actually presents an abnormal state, or serves as a key basis for subsequent quality disposal decisions such as rework, isolation, and release.
[0122] The propagation security control module is configured to: if the current level exceeds the preset maximum propagation level during propagation, then the propagation will be terminated, a transaction rollback will be performed to revoke the applied quality mark, and a warning notification will be sent to the preset terminal.
[0123] This module establishes a risk circuit breaker and data consistency guarantee mechanism for the propagation process. When the system detects that the current propagation level has reached or exceeded the maximum propagation level preset by the rules, it immediately terminates the propagation operation to a deeper level, performs a transaction rollback to revoke all quality tags applied in this propagation but exceeding the reasonable range, and sends an early warning notification to the preset monitoring terminal to prevent large-scale mislabeling caused by rule configuration deviations or structural anomalies, and ensure the stability of system operation and data reliability.
[0124] In some embodiments of this application, the system further includes a tag inheritance management module, configured such that when a new work-in-process (WIP) child node is generated on the production line, the WIP child node automatically inherits all valid quality tags existing on its parent WIP node, wherein a valid quality tag refers to a quality tag that is currently in effect and has not been revoked. The inheritance operation is completed synchronously when the child node is created, and the inheritance source is recorded in the propagation path information to ensure the end-to-end traceability of quality tags.
[0125] This module is used to ensure the continuity and traceability of quality status during the dynamic evolution of product structure. When a new work-in-process sub-node is generated during the production process, the system automatically inherits all currently effective and unrevoked valid quality marks from its parent work-in-process node to the new node. This inheritance operation is completed synchronously at the time of sub-node creation, and the inheritance source information is recorded in the propagation path, thereby ensuring that the quality mark trajectory of the entire chain from raw materials to final products is clear, complete, and auditable.
[0126] In summary, the quality mark traceability and propagation method and system based on visualization rules provided in this application have the following technical effects.
[0127] This solution enables low-code construction and flexible configuration of quality anomaly judgment rules through a graphical interface, significantly reducing the barrier to entry for business personnel and improving rule definition efficiency and response speed. It introduces propagation control parameters such as maximum propagation level, attenuation factor, and material sensitivity correction factor, combined with the product structure tree, to achieve dynamic and differentiated propagation of quality tags, making impact assessments more aligned with actual process and material characteristics. Multi-dimensional filters are used to jointly limit time, material, and batch dimensions, ensuring that rules only take effect under preset business scenarios, avoiding false triggers and resource waste. An intensity calculation model quantifies the tag strength of each node, providing a scientific basis for the activation or deactivation of quality tags and subsequent handling. A propagation safety control mechanism is set up to automatically terminate propagation, roll back transactions, and issue warnings when the maximum propagation level is exceeded, effectively preventing the spread of anomalies and ensuring data consistency and system reliability. Simultaneously, it supports the automatic inheritance of valid quality tags from parent nodes when creating work-in-process child nodes, and fully records the inheritance source, achieving seamless connection and full traceability of the entire quality status chain. These technical effects collectively improve the accuracy, flexibility, security, and maintainability of the manufacturing quality management system in complex production environments.
[0128] It should be noted that in all specific embodiments of this application, all data processing activities related to user identity or personal characteristics, such as user information, user behavior data, historical data, and location information, will be conducted in accordance with the principles of legality, legitimacy, and necessity. All data collection, use, storage, and processing will be subject to compliance with applicable national and regional laws, regulations, and industry standards, and informed consent from users will be obtained in a clear and explicit manner before processing. For the processing of sensitive personal information, separate consent from users will be obtained through prominent means such as pop-up prompts and independent confirmation pages. If any processing conflicts with laws and regulations, the laws and regulations will prevail, and necessary data processing will only be carried out within the scope permitted by laws and regulations, ensuring that all data-based applications, analyses, and technical implementations are conducted within the scope permitted by laws and regulations.
[0129] In some alternative embodiments, the functions / operations mentioned in the block diagrams may not occur in the order shown in the operation diagrams. For example, depending on the functions / operations involved, two consecutively shown blocks may actually be executed substantially simultaneously, or the blocks may sometimes be executed in reverse order. Furthermore, the embodiments presented and described in the flowcharts of this application are provided by way of example to provide a more comprehensive understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed and sub-operations described as part of a larger operation are executed independently.
[0130] Furthermore, although this application is described in the context of functional modules, it should be understood that, unless otherwise stated, one or more of the functions and / or features may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding this application. Rather, given the properties, functions, and internal relationships of the various functional modules in the apparatus disclosed herein, the actual implementation of the module will be understood within the scope of ordinary skill of an engineer. Therefore, those skilled in the art can implement the application set forth in the claims using ordinary skill. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of this application, which is determined by the full scope of the appended claims and their equivalents.
[0131] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several programs to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0132] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequential list of executable programs for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, a program execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can retrieve and execute a program from or in conjunction with such a program execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can mean any means that can contain, store, communicate, propagate, or transmit a program for use by or in conjunction with a program execution system, apparatus, or device.
[0133] More specific examples (a non-exhaustive list) of computer-readable media include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Additionally, computer-readable media can even be paper or other suitable media on which programs can be printed, for example, by optically scanning the paper or other media, then editing, interpreting, or, if necessary, processing it in a suitable manner to obtain the program electronically, and then storing it in computer memory.
[0134] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable program execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0135] In the foregoing description of this specification, the reference to terms such as "one embodiment / implementation," "another embodiment / implementation," or "certain embodiments / implementations," etc., indicates that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in an embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0136] Although embodiments of the invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
[0137] The above is a detailed description of the preferred embodiments of the present invention. However, the present invention is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. All such equivalent modifications or substitutions are included within the scope defined by the claims of the present invention.
Claims
1. A method for quality mark traceability and dissemination based on visual rules, characterized in that, include: Visual rules for identifying quality anomalies are constructed through a graphical interface, and propagation control parameters associated with the visual rules are configured. The propagation control parameters include the maximum propagation level, attenuation factor, and sensitivity correction factor for different material types. When a work-in-process or raw material is detected to meet the visualization rules, be within the effective range of the visualization rules, and have the visualization rules enabled, a quality mark is triggered. The triggering of the quality mark includes: inputting the current status data of the work-in-process or raw materials into the logical unit tree corresponding to the visualization rule, and performing recursive logical evaluation; only when the recursive evaluation result of the logical unit tree is true is a quality anomaly determined, an initial quality mark is generated, and three types of metadata, namely the trigger node, the rule version identifier, and the initial mark strength, are recorded simultaneously to complete the triggering of the quality mark; wherein, the trigger node is the specific work-in-process or batch where the anomaly occurred, the rule version identifier is used to trace the unique version of the visualization rule, and the initial mark strength serves as the benchmark for subsequent propagation calculations and handling decisions; Based on the product structure tree, the quality mark is dynamically propagated from the trigger node to the lower-level node. During the propagation process, the mark strength of each propagated node is dynamically determined using a preset strength calculation model according to the propagation control parameters. The mark strength is used to control the effective status of the quality mark on the corresponding node or as the basis for subsequent quality handling. If the current level exceeds the preset maximum propagation level during the propagation process, the propagation will be terminated, a transaction rollback will be performed to revoke the applied quality mark, and a warning notification will be sent to the preset terminal.
2. The quality mark traceability and propagation method based on visual rules according to claim 1, characterized in that, The step of constructing visual rules for determining quality anomalies through a graphical interface and configuring propagation control parameters associated with the visual rules includes the following steps: On the graphical interface, logical nodes and atomic condition nodes are combined by dragging and dropping to construct a logical unit tree; the logical unit tree serves as the logical expression of the visualization rules and is used to define the judgment conditions for quality anomalies, wherein the atomic condition nodes include at least one of material properties, process parameters, test results, or time conditions; Configure propagation control parameters for the logical unit tree, and store the logical unit tree and its associated propagation control parameters and multidimensional filters as the visualization rules, and assign a unique rule version identifier to support the full lifecycle management and traceability of the visualization rules.
3. The quality mark traceability and propagation method based on visual rules according to claim 1, characterized in that, The scope of the visualization rules is defined by a multidimensional filter, which includes filtering conditions in at least one of the following dimensions: Time-dimensional filtering conditions are used to support combinations of multiple non-contiguous time periods. Each time period can have its start and end times set independently, and can be configured by shift, date range, or custom period. Material dimension filtering conditions are used to filter based on material type, material code, or material category to limit the visualization rules to only the specified category of products or raw materials; Batch dimension filtering conditions are used to limit the production batches or batch sets to which the visualization rules apply by at least one of the following methods: numerical range comparison, discrete batch set specification, character structure matching, logical batch merging, related attribute filtering, or derivation relationship inheritance. Work-in-process (WIP) filtering conditions are used to control the triggering location and traceability path of quality markings by limiting the production line, process, equipment identification, WIP type, or test results of the starting WIP node, and by combining propagation direction constraints. The work-in-process dimension filtering conditions include a starting work-in-process node limitation sub-condition and a propagation direction control sub-condition; The starting work-in-process node limiting sub-condition is used to specify the initial work-in-process node that triggers the quality mark. This node is filtered based on at least one of the following: production line, current process, equipment identifier, work-in-process type, or associated test result. The propagation direction control subcondition is used to specify the propagation direction of the quality mark in the product structure tree, and the propagation direction is unidirectional propagation along the product structure tree to subsequent lower-level nodes.
4. The quality mark traceability and propagation method based on visualization rules according to claim 3, characterized in that, The batch dimension filtering conditions can be configured in at least one of the following ways: After extracting and converting the consecutive numerical portions of the batch identifier into values, they are compared with a preset range of values. Configure one or more discrete sets of batch identifiers to restrict the rules to apply only to production batches within those sets of batch identifiers; Matching is performed based on the character structure features of the batch identifier, including prefix matching, regular expression pattern matching, or wildcard matching. Multiple actual production batches are grouped into a single logical batch or batch group, and the effective objects of the rules are limited based on the logical batch or batch group. Filtering is performed based on batch-related attribute information, which includes at least one of the following: production date, production line, equipment, supplier, or process parameters. Based on the derivation or inheritance relationship between batches, the scope of the rule is extended to work-in-process batches derived from the target batch.
5. The quality mark traceability and propagation method based on visual rules according to claim 3, characterized in that, When a quality marker is triggered when it is detected that a work-in-process or raw material meets the visualization rules, is within the effective range of the visualization rules, and the visualization rules are enabled, the following steps are included: Real-time acquisition of current status data for work-in-process or raw materials; wherein, the status data includes material type, batch identifier, process parameters, test results, timestamp, production line, process and equipment identifier; When a rule is triggered, a joint judgment is made based on the state data and the multidimensional filter to determine whether the visualization rule is in effect. When all configured filtering conditions are met and the visualization rule is enabled, the visualization rule is considered to be in effect. Substitute the status data of the work-in-process or raw materials into the logical unit tree corresponding to the visualization rule for recursive evaluation; When the evaluation result of the logical unit tree is true, an initial quality mark is generated, and the trigger node, rule version identifier and initial mark strength are recorded to complete the triggering of the quality mark.
6. The quality mark traceability and propagation method based on visualization rules according to claim 1, characterized in that, The process of dynamically propagating the quality marker from the trigger node to the next level node based on the product structure tree, and dynamically determining the marker strength of each propagated node according to the propagation control parameters and a preset strength calculation model during the propagation process, includes the following steps: Starting from the trigger node, traverse the lower-level nodes in the product structure tree and recursively perform the propagation operation layer by layer downwards; For each propagated node, obtain its hierarchical distance relative to the triggering node, material type, and associated propagation control parameters; Based on the hierarchical distance, attenuation factor, and sensitivity correction factor corresponding to the material type of the node, combined with the initial marking intensity, the marking intensity of the node is calculated through the intensity calculation model. Based on the calculated marker strength, determine whether the quality marker is actually activated on the node, and record the marker status, strength value, and propagation path information of the node; If the current propagation level reaches or exceeds the maximum propagation level, propagation to deeper levels will stop.
7. The quality mark traceability and propagation method based on visualization rules according to claim 6, characterized in that, The propagation operation, starting from the trigger node and traversing the lower-level nodes in the product structure tree, recursively executes the propagation operation layer by layer downwards, including the following steps: If the triggering node is a work-in-process node, then apply a quality mark to the current work-in-process node, and sequentially traverse all its direct child work-in-process nodes, recursively performing the same propagation operation on each child work-in-process node. If the triggering node is a raw material node, a quality mark is applied to the current raw material node, and according to the predefined material output relationship mapping table, all work-in-process nodes directly produced by the raw material are queried, and the aforementioned propagation operation for each work-in-process node is performed. In each recursive call, the current propagation level is updated in real time, and the current node is used as the new trigger node to continue propagating downwards until the maximum propagation level is reached or there are no more lower-level nodes.
8. The quality mark traceability and propagation method based on visualization rules according to claim 6, characterized in that, The marking intensity of the node is calculated using the intensity calculation model based on the hierarchical distance, attenuation factor, and sensitivity correction factor corresponding to the material type of the node, combined with the initial marking intensity, and satisfies the following calculation formula: ; in, Indicates the currently propagated child node Marking intensity on Indicates the trigger node The initial mark strength; This represents the attenuation factor, which controls the rate at which the intensity decreases with each level during propagation, and its value ranges from [value missing]. ; The smaller the size, the faster the propagation attenuates; Indicates no attenuation; This indicates that in the product structure tree, starting from the trigger node... To the currently propagated child node The hierarchical distance is calculated using the BFS algorithm. The larger this value is, the farther the node is from the source, and the weaker its influence should be. Indicates from the trigger node To the currently propagated child node The attenuation factor corresponding to the hierarchical distance; Indicates the currently propagated child node The corresponding sensitivity correction factor for the material type is used to reflect the sensitivity of different material types to the same quality event.
9. The quality mark traceability and propagation method based on visualization rules according to claim 6, characterized in that, When a new work-in-process (WIP) child node is generated on the production line, the WIP child node automatically inherits all valid quality marks existing on its parent WIP node. The valid quality marks refer to quality marks that are currently enabled, have not been revoked, and have a mark strength greater than a preset activation threshold. The inheritance operation is completed synchronously when the child node is created, and the inheritance source is recorded in the propagation path information to ensure the full-link traceability of quality marks.
10. A quality marking, traceability, and dissemination system based on visual rules, characterized in that, include: The rule building and configuration module is used to receive user input through a graphical interface, build visual rules for judging quality anomalies, and configure propagation control parameters associated with the visual rules. The propagation control parameters include the maximum propagation level, attenuation factor, and sensitivity correction factor for different material types. The rule validity judgment module is used to trigger a quality mark when it is detected that the work-in-process or raw material meets the visualization rule, is within the effective range of the visualization rule, and the visualization rule is enabled. The triggering of the quality mark includes: inputting the current status data of the work-in-process or raw materials into the logical unit tree corresponding to the visualization rule, and performing recursive logical evaluation; only when the recursive evaluation result of the logical unit tree is true is a quality anomaly determined, an initial quality mark is generated, and three types of metadata, namely the trigger node, the rule version identifier, and the initial mark strength, are recorded simultaneously to complete the triggering of the quality mark; wherein, the trigger node is the specific work-in-process or batch where the anomaly occurred, the rule version identifier is used to trace the unique version of the visualization rule, and the initial mark strength serves as the benchmark for subsequent propagation calculations and handling decisions; The quality tag propagation module is used to dynamically propagate the quality tag from the trigger node to the lower-level node based on the product structure tree. During the propagation process, the tag strength of each propagated node is dynamically determined according to the propagation control parameters and a preset strength calculation model. The tag strength is used to control the effective status of the quality tag on the corresponding node or as the basis for subsequent quality handling. The propagation security control module is used to terminate propagation, perform transaction rollback to revoke the applied quality mark, and send a warning notification to the preset terminal if the current level exceeds the preset maximum propagation level during the propagation process.
Citation Information
Patent Citations
Agricultural product quality abnormity propagation path prediction system and method based on graph neural network
CN119476669A
KR20230114077A
