Industrial part defect tracing method
Through the timing logistic regression tree model and causal diagram technology, the complex problem of defect traceability in industrial parts quality management is solved, efficient quality management and preventive maintenance of industrial parts are achieved, and production efficiency and product reliability are improved.
Patent Information
- Application Number
- CN202411284179.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-12-17
AI Technical Summary
Traditional industrial parts quality management methods cannot record and track production history in real time, resulting in complex defect traceability and low efficiency, increasing maintenance difficulty and cost, and affecting equipment reliability and production efficiency.
The timing logistic regression tree model and causal graph technology are used to obtain defect data for preprocessing, classification prediction, causal graph modeling and quality traceability model construction to realize causal analysis and traceability of industrial parts defects.
It significantly improves the efficiency and accuracy of industrial parts quality management, realizes preventive maintenance, reduces defective product rates, quickly traces the root causes of problems, supports production optimization, reduces costs and improves product reliability.
Smart Images

Figure CN119151561A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of quality prediction and quality traceability of industrial parts, and in particular to a method for tracing defects of industrial parts. Background Art
[0002] Industrial parts play a vital role in all kinds of mechanical equipment, especially in key equipment such as pumps and turbines. Their performance and quality directly determine the operating efficiency and safety of the entire mechanical system. Traditionally, the quality control of industrial parts is mainly carried out through post-production inspection and testing, which is not only time-consuming but also costly. In addition, once a part fails during use, it is usually very complicated to find the root cause of the failure, which directly increases the difficulty and cost of maintenance, and also affects the overall reliability of the equipment.
[0003] In this context, it is particularly important to improve the quality management of industrial parts. The adoption of more efficient production monitoring and quality assurance methods, such as real-time monitoring and predictive maintenance, can not only reduce the reliance on post-production inspections, but also detect potential faults in advance, thereby reducing the probability of failure, improving the overall equipment operation reliability and efficiency, and optimizing the efficiency and output quality of the entire industrial production chain.
[0004] In existing industrial production technologies, traditional quality management methods are inefficient because they cannot record and track the production process of parts in real time. Once a product has defects, the traceability work is often not effective enough and lacks visualization methods, making it complicated and time-consuming to find the root cause of the problem, limiting the improvement of production efficiency and the assurance of product quality.
[0005] Currently, no effective solution has been proposed for the problems in the related technologies. Summary of the invention
[0006] In view of the problems in the related art, the present invention proposes an industrial parts defect tracing method to overcome the above technical problems existing in the existing related art.
[0007] To this end, the specific technical solution adopted by the present invention is as follows:
[0008] According to one aspect of the present invention, a method for tracing the source of defects in industrial parts is provided, and the method for tracing the source of defects in industrial parts comprises the following steps:
[0009] S1. Obtain defect data of industrial parts and pre-process the acquired defect data;
[0010] S2. Classify and predict the preprocessed defect data based on the temporal logistic regression tree model, and generate the influencing factors of process parameters on part defect formation in the industrial parts production process based on the classification prediction results;
[0011] S3. Construct a causal graph database based on the influencing factors of process parameters on the formation of part defects, and perform causal graph modeling on industrial part defects to obtain a causal graph of industrial part defects;
[0012] S4. Construct a quality traceability model based on the industrial parts defect cause-and-effect diagram, and use the quality traceability model to trace the quality of the defect path.
[0013] Optionally, obtaining defect data of industrial parts and preprocessing the obtained defect data include the following steps:
[0014] S11, acquiring defect data of industrial parts, and normalizing the defect data to obtain a defect data set;
[0015] S12. Use the synthetic minority class oversampling technology to add defect samples of the minority class in the defect data set; at the same time, use the edited nearest neighbor method to delete the defect samples in the defect data set that are mislabeled or confused by the classifier due to oversampling, and obtain the preprocessed defect data set.
[0016] Optionally, classifying and predicting the preprocessed defect data based on a temporal logistic regression tree model, and generating influencing factors of process parameters on part defect formation in an industrial part production process based on the classification prediction results include the following steps:
[0017] S21, taking the preprocessed defect data set as the root node of the logic model tree, and splitting the root node by information gain to generate child nodes;
[0018] S22, train a logistic regression model on each child node, and use the least squares method and logistic regression to calculate the posterior probability of the category to provide a classification prediction for each data point;
[0019] S23, based on the classification prediction results, pruning the logical model tree and processing the sequence data through the long short-term memory network (LSTM);
[0020] S24, map the output of the long short-term memory network to the classification label through the fully connected layer, and use the sigmoid activation function to generate the predicted probability of each category;
[0021] S25. Based on the predicted probability of each category, the influencing factors of process parameters on the formation of part defects in the production process of industrial parts are obtained.
[0022] Optionally, the preprocessed defect data set is used as the root node of the logic model tree, and the root node is split by information gain to generate child nodes, including the following steps:
[0023] S211, setting the normalized defect data set as the root node of the logic model tree;
[0024] S212, calculating the entropy of the defect data set, and according to each feature, calculating the conditional entropy after the defect data set is divided according to different values of each feature;
[0025] S213, by comparing the difference between the entropy of the defect data set and the conditional entropy, select the feature with the largest entropy and conditional entropy of the defect data set for splitting;
[0026] S214, dividing the defect data set into several defect subsets according to different values of the features, each defect subset corresponding to a new child node;
[0027] S215. Repeat steps S222 to S224 for the new child node until a preset stop condition is reached to obtain a complete leaf node.
[0028] Optionally, training a logistic regression model on each child node and calculating the posterior probability of the category using least squares and logistic regression to provide a preliminary classification prediction for each data point includes the following steps:
[0029] S221, for each leaf node in the logical model tree, collect all data points reaching the leaf node;
[0030] S222, training a logistic regression model on each child node, and determining coefficients in the logistic regression model using the least squares method;
[0031] S223, using the trained logistic regression model to calculate the probability of each data point belonging to each category;
[0032] The expression for determining the coefficients in the logistic regression model using the least squares method is:
[0033]
[0034] The expression for calculating the probability of belonging to each category for each data point using the trained logistic regression model is:
[0035]
[0036] In the formula, β i represents the coefficient of the i-th element in the eigenvector x;
[0037] β0 represents the coefficient of the i-th element in the eigenvector x;
[0038] L c (x) represents the linear combination result of the input feature vector x on category c;
[0039] p(c|x) represents the probability of category c given the input feature vector x;
[0040] L c′ (x) represents the linear combination result of the input feature vector x on all possible categories c′.
[0041] Optionally, pruning the logical model tree based on the classification prediction result and processing the sequence data through the long short-term memory network includes the following steps:
[0042] S231, obtaining the classification prediction result of the logistic regression model and adding it to the defect data set as a new feature;
[0043] S232, inputting the defect data set after adding features into the long short-term memory network, and classifying the defects through the two-layer long short-term memory network.
[0044] Optionally, mapping the output of the LSTM network to a classification label through a fully connected layer and generating the predicted probability of each category using a sigmoid activation function includes the following steps:
[0045] S241. Add a fully connected layer after the output of the long short-term memory network;
[0046] S242. In the long short-term memory network, each time a quality feature is input, a new hidden state vector and memory state vector are generated; the information retained from the previous state is determined by calculation of the forget gate;
[0047] S243. Use the softmax or sigmoid activation function to process the output of the fully connected layer and obtain the predicted probability of each category.
[0048] Optionally, a causal graph database is constructed based on the influencing factors of process parameters on the formation of part defects, and a causal graph modeling is performed on industrial part defects to obtain the causal graph of industrial part defects, including the following steps:
[0049] S31. Use the MERGE command to define entity types;
[0050] S32, then use the MERGE command to determine the relationship type in the entity type;
[0051] S33. Collect and organize relevant industrial production data, and map the industrial production data to the defined relationship type;
[0052] S34. Use graph database technology to store and manage these relationship types and the causal relationships between relationship types.
[0053] Optionally, building a quality traceability model based on the industrial parts defect cause-and-effect graph, and using the quality traceability model to perform quality traceability on the defect path includes the following steps:
[0054] S41. Find all the relationship paths that lead to defects on the cause-effect diagram of industrial parts quality defects;
[0055] S42. For each relationship path, the probability that the path leads to a defect is calculated;
[0056] S43. Sort the relationship paths according to the probabilities of the relationship paths.
[0057] Optionally, the expression for calculating the probability that a path causes a defect is:
[0058]
[0059] In the formula, g i Indicates the probability of each feature causing a defect;
[0060] P stands for probability;
[0061] N represents the set of events in the relationship path;
[0062] I indicates a defective part.
[0063] The beneficial effects of the present invention are:
[0064] 1. The present invention combines quality prediction technology and cause-and-effect diagrams, thereby significantly improving the quality management efficiency and accuracy of industrial parts production. By using advanced data analysis and artificial intelligence algorithms, potential quality problems can be predicted in the early stages of production, thereby achieving preventive maintenance and reducing defective product rates. At the same time, the application of cause-and-effect diagrams enables the production history of each part to be recorded and tracked in detail, which not only helps to quickly and accurately trace the root cause of the problem, but also provides data support for continuous production optimization, ultimately achieving cost savings and quality improvement.
[0065] 2. The present invention improves the production efficiency and quality control of industrial parts. It uses the LMT-LSTM model to predict potential quality problems and quickly trace the specific links of the problems, which helps to discover and solve problems in advance, thereby reducing production delays, reducing costs, and enhancing the reliability of the final product. The invention also supports the continuous optimization of the production process and improves the transparency and traceability of the production process through data analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0067] Figure 1 is a flow chart of an industrial parts defect tracing method according to an embodiment of the present invention;
[0068] Figure 2 This is a workflow diagram of an LMT-LSTM classification prediction model in an industrial parts defect tracing method according to an embodiment of the present invention;
[0069] Figure 3 A traceability flow chart based on classification prediction and cause-effect diagram in an industrial parts defect traceability method according to an embodiment of the present invention;
[0070] Figure 4 It is a confusion matrix diagram of prediction results in an industrial parts defect tracing method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0071] To further illustrate each embodiment, the present invention provides drawings, which are part of the disclosure of the present invention and are mainly used to illustrate the embodiments. They can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these contents, ordinary technicians in this field should be able to understand other possible implementation methods and advantages of the present invention.
[0072] According to an embodiment of the present invention, a method for tracing the defects of industrial parts is provided.
[0073] The present invention is further described with reference to the accompanying drawings and specific embodiments. Figure 1-Figure 3 As shown, according to the industrial parts defect tracing method of an embodiment of the present invention, the industrial parts defect tracing method comprises the following steps:
[0074] S1. Obtain defect data of industrial parts and preprocess the acquired defect data.
[0075] Preferably, obtaining defect data of industrial parts and preprocessing the obtained defect data include the following steps:
[0076] S11, obtaining defect data of industrial parts, and normalizing the defect data to obtain a defect data set;
[0077] S12. Use synthetic minority oversampling technology (SMOTE) to add defect samples of the minority class in the defect data set; at the same time, use the edited nearest neighbor method (ENN) to delete the defect samples in the defect data set that are mislabeled or confused by the classifier due to oversampling, and obtain the preprocessed defect data set.
[0078] ENN: 1. Calculate the nearest neighbors: For each sample, find its nearest k neighbors (usually k=3). 2. Edit samples: If most of the nearest neighbor samples of a sample have different labels from its label, delete the sample.
[0079] SMOTE: 1. Identify minority samples: The first step involves identifying the samples that belong to the minority class in the dataset. 2. Identify K-nearest neighbors: For each minority sample, SMOTE identifies its K-nearest neighbors in the feature space. Typically, the Euclidean distance metric is used to measure the similarity between data points. 3. Synthetic sample generation: Once the neighbors are identified, SMOTE selects a random neighbor and calculates the difference between the feature vector of the minority sample and its selected neighbor. This difference is then multiplied by a random number between 0 and 1 and added to the feature vector of the minority sample.
[0080] It needs to be explained that the defective data samples are standardized and mixed sampled: the data of the input nodes and output nodes are normalized to eliminate the dimension effect, and then the data is mixed sampled by minority class oversampling technology + edited nearest neighbor method (ENN+SMOTE).
[0081] The process of standardizing defect data is as follows:
[0082]
[0083] In the formula, x i0 Represents the standardized sample data;
[0084] x i Represents each sample data in the minority class;
[0085] x max Indicates the maximum value of sample data;
[0086] x min Indicates the minimum value of sample data.
[0087] Among them, the ENN+SMOTE hybrid sampling process of defect data is as follows:
[0088] The main idea of SMOTE is to interpolate between minority class samples to generate new samples. The specific steps can be expressed as follows: For each sample x in the minority class i , randomly select a nearest neighbor sample x from the minority class sample set nn, new sample x new is obtained by i and x nn It is created by random interpolation between and is expressed by the following formula:
[0089] x new =x i +λ×(x nn -x i );
[0090] In the formula, λ represents the range between [0, 1] and is used to control the position of the synthetic sample;
[0091] x i Represents each sample in the minority class;
[0092] x nn Indicates randomly selecting a nearest neighbor sample from the minority class sample set;
[0093] x new Represents a new sample.
[0094] ENN is used to remove minority class samples that are surrounded by majority class neighbors. Its steps are as follows: majority sample x i ∈M, search for x i The k nearest neighbors of x are then determined based on its neighborhood. i The class, composed of x ik If the actual class x i If x is different from the predicted class of the KNN sample, i ; will be deleted from the dataset D (i_delete), otherwise the algorithm will keep x i , which can be expressed by the following formula:
[0095] x i_delete =I(Class(x i -x ik ));
[0096] In the formula, x i_delete represents the samples after ENN treatment;
[0097] I represents the indicator function;
[0098] x i Represents each sample in the minority class;
[0099] x ik Represents the neighborhood class.
[0100] When SMOTE and ENN are used in combination, SMOTE is first applied to increase the samples of the minority class, and then ENN is used to delete those samples that may be mislabeled due to oversampling or may cause confusion to the classifier. Table 1 shows the defect samples after data processing. This example uses the UCI strip steel dataset, which includes 1941 records with different fault type labels. The dataset contains 27 different features. The defects of the steel plate are divided into 7 types, including Pastry: Pastry (uneven surface), Z-Scratch: Z-shaped scratches, K-Scratch: K-shaped scratches, Stains: Stains, Dirtiness: Dirtiness, Bumps: Bumps, OtherFaults: Other faults. The sample set is randomly divided into training set and test set with a ratio of 8:2. Table 1 shows the composition of defect samples.
[0101] Table 1 shows the defect samples after data processing
[0102]
[0103] The explanations are as follows: Pastry: pastry (uneven surface), Z-Scratch: Z-shaped scratch, K-Scratch: K-shaped scratch, Stains: stains, Dirtiness: dirtiness, Bumps: bumps, Other Faults: other faults.
[0104] S2. Classify and predict the preprocessed defect data based on the temporal logistic regression tree model, and generate the influencing factors of process parameters on part defect formation in the industrial parts production process based on the classification prediction results.
[0105] Preferably, classifying and predicting the defect data based on a temporal logistic regression tree model (LMT-LSTM model), and generating the influencing factors of process parameters on part defect formation in the industrial parts production process based on the classification prediction results include the following steps:
[0106] S21. The preprocessed defect data set is used as the root node of the logic model tree, and the root node is split by information gain to generate child nodes.
[0107] Preferably, the preprocessed defect data set is used as the root node of the logic model tree, and the root node is split by information gain to generate child nodes, including the following steps:
[0108] S211, setting the normalized defect data set as the root node of the logic model tree;
[0109] S212, calculating the entropy of the defect data set, and according to each feature (the defect data set contains 27 features), calculating the conditional entropy after the defect data set is divided according to different values of each feature;
[0110] S213, by comparing the difference between the entropy of the defect data set and the conditional entropy, select the feature with the largest entropy and conditional entropy of the defect data set for splitting;
[0111] S214, dividing the defect data set into several defect subsets according to different values of the features, each defect subset corresponding to a new child node;
[0112] S215. Repeat steps S222 to S224 for the new child node until a preset stop condition is reached. The preset stop condition is such as the number of samples in the node is less than a certain threshold, or the information gain is less than a certain threshold, and a complete leaf node is obtained.
[0113] S22. Train a logistic regression model on each child node and use least squares and logistic regression to calculate the posterior probability of the category to provide classification predictions for each data point.
[0114] Preferably, training a logistic regression model on each child node and calculating the posterior probability of the category using the least squares method and logistic regression to provide a preliminary classification prediction for each data point includes the following steps:
[0115] S221, for each leaf node in the logical model tree (LMT), collect all data points reaching the leaf node;
[0116] S222, training a logistic regression model on each child node, and determining coefficients in the logistic regression model using the least squares method;
[0117] S223, using the trained logistic regression model to calculate the probability of each data point belonging to each category;
[0118] The expression for determining the coefficients in the logistic regression model using the least squares method is:
[0119]
[0120] The expression for calculating the probability of belonging to each category for each data point using the trained logistic regression model is:
[0121]
[0122] In the formula, β i represents the coefficient of the i-th element in the eigenvector x;
[0123] β0 represents the coefficient of the i-th element in the eigenvector x;
[0124] L c (x) represents the linear combination result of the input feature vector x on category c;
[0125] p(c|x) represents the probability of category c given the input feature vector x;
[0126] L c′ (x) represents the linear combination result of the input feature vector x on all possible categories c′.
[0127] It should be explained that the structure of the initial logistic model tree is constructed with the entire training data set as the root node. The root node is split using a certain splitting criterion (such as information gain or Gini index) to generate child nodes. Taking information gain as an example, the entropy of the entire data set is first calculated, and then for each feature, the conditional entropy after the data set is divided according to different values of the feature is calculated. By comparing the information gain (i.e., the difference between the entropy of the data set and the conditional entropy), the feature with the largest information gain is selected for splitting. Specifically, for the selected feature, the data set is divided into several subsets according to the different values of the feature, and each subset corresponds to a new child node. Then, the above process is repeated for each child node until the preset stop condition is reached (such as the number of samples in the node is less than a certain threshold, or the information gain is less than a certain threshold), thereby generating a complete leaf node. Next, the logistic regression model is applied to the data of each leaf node, and a local logistic regression model is trained on each leaf node, which is specifically for classifying the data of the leaf node. Finally, the tree is pruned to avoid overfitting and optimize the generalization ability of the model.
[0128] S23. Based on the classification prediction results, the logical model tree is pruned and the sequence data is processed through the long short-term memory network (LSTM).
[0129] Preferably, based on the classification prediction results, pruning the logic model tree and processing the sequence data through a long short-term memory network (LSTM) include the following steps:
[0130] S231, obtaining the classification prediction result of the logistic regression model and adding it to the defect data set as a new feature;
[0131] S232, inputting the defect data set after adding features into the long short-term memory network, and classifying the defects through the two-layer long short-term memory network.
[0132] S24. Map the output of the long short-term memory network to the classification label through a fully connected layer, and use the sigmoid activation function to generate the predicted probability of each category.
[0133] Preferably, mapping the output of the long short-term memory network to the classification label through a fully connected layer and generating the predicted probability of each category using a sigmoid activation function comprises the following steps:
[0134] S241. Add a fully connected layer after the output of the long short-term memory network;
[0135] S242. In the long short-term memory network, each time a quality feature is input, a new hidden state vector and memory state vector are generated; the information retained from the previous state is determined by calculation of the forget gate;
[0136] S243. Use the softmax or sigmoid activation function to process the output of the fully connected layer and obtain the predicted probability of each category.
[0137] The Sigmoid activation function compresses the original output of the network into the range of (0, 1), indicating the probability of a certain event (category) occurring. For binary classification problems, there are usually only two categories, so Sigmoid is a suitable choice. The output layer has only one neuron, representing one category in the binary classification problem. The output of the model can be regarded as the probability (or confidence) of belonging to the positive category.
[0138] Softmax is usually used for multi-class classification, but it can also be used in binary classification problems. In this case, the output layer still has two neurons, but they can be interpreted as the probabilities of the two classes. When using softmax, the sum of the probabilities of the two output neurons will always be equal to 1.
[0139] It should be explained that the prediction results of the logic model tree are input into the long short-term memory network, and the quality features of the input are extracted through the two-layer long short-term memory network. Each input quality feature will generate a hidden state vector and a memory state vector, and the hidden state output h generated at the previous moment is controlled. t-1 and the current input process feature vector information x t Output value after input f t To determine whether to retain information, f t The closer it is to 1, the more information needs to be retained. t The calculation formula is as follows:
[0140] f t =σ(W f ·[h t-1 , x t ]+b f );
[0141] The sigmoid layer updates the value, and this probability is represented by i t , the tanh layer creates a candidate value vector Ct~, which will be added to the state.
[0142]
[0143] ft Indicates forgetting the last message C t-1 The degree of t Indicates the degree to which the candidate value Ct~ is added. This step removes the old information and adds new information. Finally, the state C is obtained. t .
[0144]
[0145] The output C is determined by the sigmoid layer t Which parts of the state; then the state passes through the tanh layer (to make the value between -1 and 1), and then multiplied by the output of the sigmoid layer to get the final output h t .
[0146]
[0147] In the formula, f t Indicates forgetting the last message C t-1 the extent of;
[0148] σ represents the sigmoid function;
[0149] h t-1 Indicates the output at the previous moment;
[0150] x t Represents the input of the network at the current moment;
[0151] b f Represents the bias term of the forget gate;
[0152] i t Indicates that the candidate value the degree of participation;
[0153] W i represents the weight matrix of the input gate;
[0154] b i represents the bias term of the input gate;
[0155] W C A weight matrix representing the state of the candidate memory cell;
[0156] b C A bias term representing the state of the candidate memory cell;
[0157] C t Represents the updated memory unit state;
[0158] C t-1 Indicates the state at the previous moment;
[0159] represents a candidate value vector;
[0160] o t Represents the output of the sigmoid layer;
[0161] W f Represents the weight matrix of the forget gate;
[0162] W o Represents the weight matrix of the sigmoid layer.
[0163] S25. Based on the predicted probability of each category, the influencing factors of process parameters on the formation of part defects in the production process of industrial parts are obtained.
[0164] It should be explained that the tree model is generated on the basis of reaching the accuracy standard to summarize the factors affecting the formation of part defects caused by the process parameters involved in the industrial parts production process. After using the hybrid model to classify and predict the defect data, the tree model includes the use of LSTM to process sequence data and capture time-dependent features, while the logistic model tree model combines the advantages of decision trees and logistic regression to build a tree structure and apply a logistic regression model to its leaf nodes for refined classification prediction. The generation of the tree model is usually achieved by recursively partitioning the data set and using logistic regression on each node to maximize the discrimination between categories.
[0165] S3. Construct a causal graph database based on the influencing factors of process parameters on the formation of part defects, and perform causal graph modeling on industrial part defects to obtain a causal graph of industrial part defects.
[0166] Preferably, a causal graph database is constructed based on the influencing factors of process parameters on the formation of part defects, and a causal graph modeling is performed on industrial part defects to obtain an industrial part defect causal graph, which includes the following steps:
[0167] S31. First, define the entity type;
[0168] S32, then determining the relationship type in the entity type;
[0169] S33. Collect and organize relevant industrial production data, and map the industrial production data to the defined relationship type;
[0170] S34. Use graph database technology to store and manage these relationship types and the causal relationships between relationship types.
[0171] It should be explained that the generated tree model is converted into a causal graph. Causal graph modeling is the process of creating a structured knowledge base to describe the various relationships and attributes between real-world entities. This process usually includes the following steps: First, use the MERGE command to define the entity types (such as people, places, events, etc.) and their attributes (such as name, place, date, etc.) in the graph. Secondly, use the MERGE command to determine the relationship type between entities, such as "belongs to", "is located in" or "participates in". Then, collect and organize data and map it to the defined entity and relationship model. Finally, use a graph database to store and manage this information so that it can be searched, queried and analyzed.
[0172] S4. Construct a quality traceability model based on the industrial parts defect cause-and-effect diagram, and use the quality traceability model to trace the quality of the defect path.
[0173] Preferably, building a quality traceability model based on the industrial parts defect cause-and-effect graph, and using the quality traceability model to trace the quality of the defect path includes the following steps:
[0174] S41. Find all the relationship paths that lead to defects on the cause-effect diagram of industrial parts quality defects;
[0175] S42. For each relationship path, the probability that the path leads to a defect is calculated;
[0176] S43. Sort the relationship paths according to the probabilities of the relationship paths.
[0177] Preferably, the expression for calculating the probability of a path causing a defect is:
[0178]
[0179] In the formula, g i Indicates the probability of each feature causing a defect;
[0180] P stands for probability;
[0181] N represents the set of events in the relationship path;
[0182] i represents a defective part.
[0183] It should be explained that the set of relationship paths is determined according to the defect: all paths leading to the defect are found on the cause-effect diagram of industrial parts quality defects; the probability of the path leading to the defect is calculated: for each relationship path, the input data is compared with the events in the path, and the probability of the path leading to the defect is calculated. The importance of the association of the events in the defect path leading to the defect is G = {g i∈[0, 1|i=1,…,n}. Given a defective industrial part I that needs to be traced, the event set N that satisfies the path event in the parameter data can be obtained.
[0184] Depend on Figure 4 It can be seen that Confusion Matrix represents confusion matrix; True Labels represents true labels; Predicted Labels represents predicted labels; Pastry: pastry (uneven surface), Z-Scratch: Z-shaped scratches, K-Scratch: K-shaped scratches, Stains: stains, Dirtiness: dirtiness, Bumps: bumps, Other Faults: other faults.
[0185] To sum up, with the help of the above-mentioned technical scheme of the present invention, the present invention combines quality prediction technology and cause-and-effect diagrams, thereby significantly improving the quality management efficiency and accuracy of industrial parts production. By using advanced data analysis and artificial intelligence algorithms, potential quality problems can be predicted in the early stages of production, thereby achieving preventive maintenance and reducing the defective rate. At the same time, the application of cause-and-effect diagrams enables the production history of each part to be recorded and tracked in detail, which not only helps to quickly and accurately trace the root cause of the problem, but also provides data support for continuous production optimization, ultimately achieving cost savings and quality improvement; the present invention improves the production efficiency and quality control of industrial parts, uses the LMT-LSTM model to predict potential quality problems and quickly trace back to the specific links of the problem, which helps to discover and solve problems in advance, thereby reducing production delays, reducing costs, and enhancing the reliability of the final product. The invention also supports the continuous optimization of the production process, and improves the transparency and traceability of the production process through data analysis.
[0186] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for tracing the source of industrial parts defects, characterized in that: The industrial parts defect tracing method comprises the following steps: S1. Obtain defect data of industrial parts and pre-process the acquired defect data; S2. Classify and predict the preprocessed defect data based on the temporal logistic regression tree model, and generate the influencing factors of process parameters on part defect formation in the industrial parts production process based on the classification prediction results; S3. Construct a causal graph database based on the influencing factors of process parameters on the formation of part defects, and perform causal graph modeling on industrial part defects to obtain a causal graph of industrial part defects; S4. Construct a quality traceability model based on the industrial parts defect cause-and-effect diagram, and use the quality traceability model to trace the quality of the defect path.
2. The method for tracing the defect of industrial parts according to claim 1, characterized in that: The method of obtaining defect data of industrial parts and preprocessing the obtained defect data includes the following steps: S11, obtaining defect data of industrial parts, and normalizing the defect data to obtain a defect data set; S12. Use the synthetic minority class oversampling technology to add defect samples of the minority class in the defect data set; at the same time, use the edited nearest neighbor method to delete the defect samples in the defect data set that are mislabeled or confused by the classifier due to oversampling, and obtain the preprocessed defect data set.
3. The method for tracing the defect of industrial parts according to claim 2, characterized in that: The method of classifying and predicting the preprocessed defect data based on the temporal logistic regression tree model and generating the influencing factors of process parameters on the formation of part defects in the industrial parts production process based on the classification prediction results includes the following steps: S21, taking the preprocessed defect data set as the root node of the logic model tree, and splitting the root node by information gain to generate child nodes; S22, train a logistic regression model on each child node, and use least squares method and logistic regression to calculate the posterior probability of the category to provide classification prediction for each data point; S23, based on the classification prediction results, pruning the logic model tree and processing the sequence data through the long short-term memory network; S24, map the output of the long short-term memory network to the classification label through the fully connected layer, and use the sigmoid activation function to generate the predicted probability of each category; S25. Based on the predicted probability of each category, the influencing factors of process parameters on the formation of part defects in the production process of industrial parts are obtained.
4. The method for tracing the defect of industrial parts according to claim 3 is characterized in that: The method of treating the preprocessed defect data set as the root node of the logic model tree and splitting the root node by information gain to generate child nodes includes the following steps: S211, setting the normalized defect data set as the root node of the logic model tree; S212, calculating the entropy of the defect data set, and according to each feature, calculating the conditional entropy after the defect data set is divided according to different values of each feature; S213, by comparing the difference between the entropy of the defect data set and the conditional entropy, select the feature with the largest entropy and conditional entropy of the defect data set for splitting; S214, dividing the defect data set into several defect subsets according to different values of the features, each defect subset corresponding to a new child node; S215. Repeat steps S222 to S224 for the new child node until a preset stop condition is reached to obtain a complete leaf node.
5. The method for tracing the defect of industrial parts according to claim 4, characterized in that: The method of training a logistic regression model on each child node and calculating the posterior probability of a category using the least squares method and logistic regression to provide a preliminary classification prediction for each data point includes the following steps: S221, for each leaf node in the logical model tree, collect all data points reaching the leaf node; S222, training a logistic regression model on each child node, and determining coefficients in the logistic regression model using the least squares method; S223, using the trained logistic regression model to calculate the probability of each data point belonging to each category; The expression for determining the coefficients in the logistic regression model using the least squares method is: The expression for calculating the probability of each data point belonging to each category using the trained logistic regression model is: In the formula, β i Represents feature x i The linear regression coefficient of 8. The larger the absolute value, the greater the impact of the feature on the model output, and the smaller the absolute value, the smaller the impact; β0 represents the bias term; L c (x) represents the linear combination result of the input feature vector x on category c; p(c|x) represents the probability of category c given the input feature vector x; L c′ (x) represents the linear combination result of the input feature vector x on all possible categories c′.
6. The method for tracing the defect of industrial parts according to claim 5, characterized in that: The method of pruning the logical model tree based on the classification prediction result and processing the sequence data through the long short-term memory network includes the following steps: S231, obtaining the classification prediction result of the logistic regression model and adding it to the defect data set as a new feature; S232, inputting the defect data set after adding features into the long short-term memory network, and classifying the defects through the two-layer long short-term memory network.
7. The method for tracing the defect of industrial parts according to claim 6, characterized in that: Mapping the output of the long short-term memory network to the classification label through the fully connected layer and generating the predicted probability of each category using the sigmoid activation function includes the following steps: S241. Add a fully connected layer after the output of the long short-term memory network; S242. In the long short-term memory network, each time a feature is input, a new hidden state vector and a memory state vector are generated; the information retained from the previous state is determined by the calculation of the forget gate; S243. Use the softmax or sigmoid activation function to process the output of the fully connected layer and obtain the predicted probability of each category.
8. The method for tracing the defect of industrial parts according to claim 1, characterized in that: The method of constructing a causal graph database based on the influencing factors of process parameters on the formation of part defects, and modeling the causal graph of industrial part defects to obtain the causal graph of industrial part defects includes the following steps: S31. First, define the entity type; S32, secondly determining the relationship type in the entity type; S33. Collect and organize relevant industrial production data, and map the industrial production data to the defined relationship type; S34. Use graph database technology to store and manage these relationship types and the causal relationships between relationship types.
9. The method for tracing the defect of industrial parts according to claim 1, characterized in that: The method of constructing a quality traceability model based on the industrial parts defect cause-effect graph and using the quality traceability model to trace the quality of the defect path includes the following steps: S41. Find all the relationship paths that lead to defects on the cause-effect diagram of industrial parts quality defects; S42. For each relationship path, the probability that the path leads to a defect is calculated; S43. Sort the relationship paths according to the probabilities of the relationship paths.
10. The method for tracing the defect of industrial parts according to claim 9, characterized in that: The expression for the probability of the calculation path causing a defect is: In the formula, g i Indicates the probability of each feature causing a defect; P stands for probability; N represents the set of events in the relationship path; i represents a defective part.
Citation Information
Cited By
Real-time production process tracing monitoring method and system driven by Internet of Things
CN120471530A
Iot-driven real-time production process traceability monitoring method and system
CN120471530B
Part surface defect detection and process optimization method and system
CN120747065A
Quality defect root cause tracing method based on linkage of standard data and supply chain data
CN120912058A
Quality data analysis management system based on gas appliance production and after-sales service
CN121146623A
