Real-time quality prediction system
By combining a hybrid model of a regular encoder and a bidirectional long and short-term memory network in a real-time quality prediction system, the problem of difficulty in real-time discovering product specification defects in the existing technology is solved. Early warning and specification adjustment have been achieved, which has improved production yield and reduced cost waste.
Patent Information
- Application Number
- CN202410539352.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-02
- Filing Date
- 2024-04-30
- Publication Date
- 2024-11-15
AI Technical Summary
Existing quality inspections are difficult to detect product specification defects in real time, resulting in excessive defective products in the production process, increasing production costs and reducing product yields.
Design a real-time quality prediction system, and establish a quality prediction model by combining a mixed model of a regular encoder and a bidirectional long and short-term memory network, real-time monitoring of the data of production machines and measurement machines, predicting product specifications in advance, and adjusting the production process To avoid the occurrence of bad products.
It realizes real-time monitoring of product status during the production process, discover specification defects in advance, reduces the generation of defective products, improves production yield and corporate competitiveness, and reduces cost waste.
Smart Images

Figure CN118966853A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a real-time quality prediction system, and more particularly to a real-time quality prediction system that provides high-accuracy prediction by combining a hybrid prediction model of set rules and a neural network. Background Art
[0002] The global manufacturing industry is rapidly developing towards big data and intelligence, and the intelligent transformation of the manufacturing industry has a great impact on the competitiveness of the industry. The current manufacturing industry can use automated equipment for production and manufacturing to effectively improve productivity, but it is impossible to grasp the quality status in real time, and it is even more impossible to reduce the labor cost and time consumed by quality inspection. After the entire batch of products is completed, random inspections are conducted to confirm whether there are defects or defective products. In this way, not only is it easy to generate the cost of a whole batch of defective products, but it is also likely to reduce the overall product quality level, reduce production efficiency and yield, and increase the risk of damage to the company's reputation.
[0003] In the process of intelligent transformation, the introduction of artificial intelligence technology to assist enterprises in process reengineering is the main direction of efforts to enhance the competitiveness of enterprises. In the entire process of production and machines, defective products generated by the above production process are an important goal to eliminate cost waste in the process and improve production yield. If the status of machines and products can be monitored in real time during the production process, and early warnings can be issued before product defects occur, it will effectively reduce cost waste in the work process, and the production process can be improved through appropriate adjustments, so that the specifications of the finished products produced meet the inspection specifications and improve the product yield.
[0004] In view of this, the existing quality inspection method is difficult to ensure the cost waste generated during the production process and it is difficult to improve the production yield. In view of this, the inventor of the present invention has thought about and designed a real-time quality prediction system to improve the deficiencies of the existing technology and further promote its implementation and utilization in the industry. Summary of the invention
[0005] In view of the above-mentioned problems of the prior art, the purpose of the present invention is to provide a real-time quality prediction system to solve the problem that the existing quality inspection is difficult to detect product specification defects in real time, thereby generating too many defective products and causing waste of production costs.
[0006] According to one purpose of the present invention, a real-time quality prediction system is proposed, which includes an input device, a storage device, a processing device and an output device. The input device is connected to a production machine and a measuring machine to receive the real-time status data of the production machine and the product specification measurement data of the measuring machine. The storage device is connected to the input device, and the storage device stores the real-time status data of the machine, the product specification measurement data and a plurality of algorithms. The processing device is connected to the storage device, and the processing device executes a plurality of control instructions to access the storage device to establish a quality prediction model. The quality prediction model includes a data pre-processing module and a model building module. The data pre-processing module pairs the real-time status data of the machine with the product specification measurement data to form an input data set. The model building module establishes a hybrid model architecture through a plurality of algorithms. The hybrid model architecture includes a rule encoder and a bidirectional long short-term memory network. The rule encoder sets upper and lower bound rules and good product consistency rules, encodes the input data set and inputs it into the bidirectional long short-term memory network to generate output data. The output device is connected to the processing device and the storage device, and outputs the output data to define the accuracy of the hybrid quality prediction model.
[0007] Optionally, the production machine may include a punching machine, and the measuring machine may include an instantaneous tester.
[0008] Optionally, the real-time status data of the machine may include a data set number, a machine rotation speed, a machine status, and a number of punches per second.
[0009] Optionally, the product specification measurement data may include a data set number, an inspection time, and a measurement specification measurement value.
[0010] Optionally, the data pre-processing module can set a preset time difference between the detection time of the measurement machine and the production time of the production machine from the real-time status data of the machine and the product specification measurement data with the same data set number, and select the real-time status data of the machine with the smallest difference from the preset time difference to pair to form an input data set.
[0011] Optionally, the data pre-processing module may utilize the bootstrap method to continuously extract multiple periods of machine real-time status data from the time point with the smallest difference from the preset time difference to generate a subset of the input data set.
[0012] Optionally, the upper and lower bound rules can determine whether the maximum value of each predicted specification is greater than the minimum value of the predicted specification. If not, a first loss value is generated through the upper and lower bound rule loss function.
[0013] Optionally, the good product consistency rule can determine whether the actual value and the predicted value of each specification are within the upper and lower limit standards. If not, a second loss value is generated through the good product consistency rule loss function.
[0014] Optionally, the first loss value may include a first weight, and the second loss value may include a second weight. The first weight may range from 0 to 0.4, and the second weight may range from 0 to 0.6.
[0015] Optionally, the first weight may be 0.1, and the second weight may be 0.1.
[0016] As described above, the real-time quality prediction system according to the present invention may have one or more of the following advantages:
[0017] (1) This real-time quality prediction system can predict product specifications based on the real-time status data of the production machines by establishing a quality prediction model. During the production process, the system monitors the product production status in real time. When the product specifications exceed the set rules, it issues a real-time warning to adjust the machines in production, thereby avoiding the scrapping of the entire batch of defective products and increasing production costs.
[0018] (2) This real-time quality prediction system can establish a quality prediction model for real-time status data and measurement specification data by combining restriction rules and a bidirectional long short-term memory network architecture. By adjusting the weights of the restriction rules, the accuracy of the quality prediction model can be improved.
[0019] (3) This real-time quality prediction system can detect product specification defects in advance through the quality prediction model, reduce the problem of discovering defective products in the finished product, improve the overall production yield, and combine with the reduction of waste costs in the process to increase corporate profits and competitiveness. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to make the technical features, contents and advantages of the present invention and the effects that can be achieved more obvious, the present invention is described in detail in the form of embodiments in conjunction with the accompanying drawings as follows:
[0021] Figure 1 4 is a block diagram of a real-time quality prediction system according to an embodiment of the present invention.
[0022] Figure 2 4 is a system architecture diagram of a data pre-processing module according to an embodiment of the present invention.
[0023] Figure 3 A system architecture diagram of a model building module according to an embodiment of the present invention.
[0024] Figure 4 A schematic diagram of prediction results of adjusting rule weights according to an embodiment of the present invention.
[0025] Description of Reference Numerals
[0026] DETAILED DESCRIPTION
[0027] In order to understand the technical features, contents and advantages of the present invention and the effects that can be achieved, the present invention is hereby described in detail in the form of embodiments in conjunction with the accompanying drawings. The drawings used therein are only for illustration and auxiliary description purposes, and may not be the actual proportions and precise configurations after the implementation of the present invention. Therefore, the proportions and configuration relationships of the attached drawings should not be interpreted or limited to the scope of rights of the present invention in actual implementation. This should be stated in advance.
[0028] See also Figure 1 , which is a block diagram of a real-time quality prediction system according to an embodiment of the present invention. As shown in the figure, the real-time quality prediction system 10 includes an input device 11, a storage device 12, a processing device 13, and an output device 14. The input device 11 is connected to the production machine 91 and the measuring machine 92. The real-time status data 121 of the production machine 91 and the product specification measurement data 122 of the measuring machine 92 are transmitted to the storage device 12 through the input device 11. The input device 11 can be a data collector, which is arranged on the production machine 91 and the measuring machine 92 to monitor the production status of the production machine 91 and the detection status of the measuring machine 92. In other embodiments, the input device 11 can be a data transmission interface, which is connected to the production machine 91 and the measuring machine 92. The detection data of the machine is transmitted to the storage device 12 through the data transmission interface.
[0029] The storage device 12 is connected to the input device 11, and stores the real-time status data 121 of the machine, the product specification measurement data 122, and a plurality of algorithms 123. The storage device 12 can be a storage medium such as a read-only memory, a flash memory, a disk, or a cloud database of a computer device, or can be a database of a server or a cloud device. When the real-time status data 121 of the machine and the product specification measurement data 122 of the input device 11 are received, they can be stored in the storage device 12 for subsequent analysis, and various analysis algorithm programs are also stored in the storage device 12. The processing device 13 is connected to the storage device 12, and the processing device 13 includes a central processing unit, a microprocessor, an image calculation processor, etc. in a computer or server device. The processing device 13 can execute control instructions to access the data in the storage device 12, and establish a hybrid quality prediction model 131 by executing calculation and analysis programs.
[0030] The real-time quality prediction model 131 includes a data pre-processing module 132 and a model building module 133. The data pre-processing module 132 pairs the machine real-time status data 121 with the product specification measurement data 122 to form an input data set. The model building module 133 establishes a hybrid model architecture through a plurality of algorithms 123. The hybrid model architecture includes a rule encoder and a bidirectional long short-term memory network. The rule encoder sets upper and lower bound rules and good product consistency rules, encodes the input data set and inputs it into the bidirectional long short-term memory network to generate output data. The output device 14 is connected to the processing device 13 and the storage device 12, and outputs the output data to define the accuracy of the hybrid quality prediction model 131. The contents of the data pre-processing module 132 and the model building module 133 will be described in the following embodiments.
[0031] See also Figure 2 , which is a system architecture diagram of the data pre-processing module of an embodiment of the present invention. As shown in the above embodiment, the real-time status data 121 and product specification measurement data 122 of the production machine 91 and the measuring machine 92 respectively represent the production status of the production machine 91 and the relevant specifications of the finished product detected by the measuring machine 92. The existing quality management mainly detects the specifications of the finished product by machine or manual after the machine completes the whole batch of products. This method is not only inefficient, but also causes a large amount of cost loss when the defective rate is high. If the product quality can be monitored in real time during the production process, it can be predicted and the production line personnel can be reminded to make corrections before the defective products occur, which can not only reduce the waste of scrapped products, but also effectively improve the production quality and yield. As shown in the figure, the production machine 91 takes the stamping machine 91A as an example, and the measuring machine 92 uses the instantaneous tester 92A to replace the manual inspection method. By real-time monitoring of the data of the stamping machine 91A and the instantaneous tester 92A, real-time quality prediction is performed to achieve the effect of real-time monitoring and management.
[0032] In the present embodiment, the real-time status data 121 of the punching machine 91A includes a data set number 21, a machine speed 22, a machine state 23, and a punch count 24 per second. The product specification measurement data 122 of the instantaneous tester 92A includes a data set number 25, an inspection time 26, and a measurement specification measurement value 27. The data set number 21 of the real-time status data 121 of the machine includes the punching time (inspection work order establishment time), the machine number, and the work order number of the punching machine 91A, and the corresponding data set number 25 of the product specification measurement data 122 includes the inspection time (inspection work order establishment time), the machine number, and the work order number of the instantaneous tester 92A. The machine speed 22 refers to the operating speed of the machine motor, and the machine state 23 includes the state types such as shutdown, standby, normal operation, and manual adjustment. The punch count 24 per second is the number of punches per second of the machine. The measurement specification measurement value 27 is the maximum and minimum values of each specification measurement in the sampling result when the product is sampled.
[0033] By pairing the data with the same data set number (21 and 25), the input data set 20 of the machine real-time status data 121 and the product specification measurement data 122 is formed, which is then used as the training data of the network model. In this embodiment, the data pre-processing module 132 can set the preset time difference between the detection time of the instantaneous tester 92A and the production time of the stamping machine 91A from the machine real-time status data 121 and the product specification measurement data 122 with the same data set number (21 and 25), and select the machine real-time status data 121 with the smallest difference from the preset time difference to pair to form the input data set 20. For example, if the stamping production and inspection time differ by about one hour, the preset time difference can be set to one hour, and the machine real-time status data 121 and the product specification measurement data 122 one hour before the detection time point are selected to pair to form the input data set 20.
[0034] In another embodiment, the data pre-processing module 132 may use bootstrap aggregating to extract samples from the training data with replacement, that is, in addition to the paired time point data, multiple periods of machine real-time status data 121 are continuously extracted from the time point with the smallest difference from the default time to generate a subset 20A of the input data set 20 as model training data. These input data sets 20 can be divided into training data and test data according to a predetermined ratio, for example, divided at a ratio of 7:3. During training, the training data can be divided again to evaluate the performance of the training in a cross-validation manner.
[0035] See also Figure 3 , which is a system architecture diagram of the model building module of an embodiment of the present invention. As shown in the figure, after obtaining the input data set 31, the model building module 133 establishes a hybrid model architecture through a plurality of algorithms 123. The hybrid model architecture includes a rule encoder, and the rule encoder includes an upper and lower bound rule encoder 32, a good consistency rule encoder 33 and a data encoder 34. The three encoders are combined to extract the feature values of the hidden layer in the neural network. The data encoder 34 refers to the predicted product specifications, and its objective function is the gap between the predicted product rules and the actual measured specifications. This gap is represented by the residual e3 of the loss function. In this embodiment, the loss function of the data encoder 34 can be represented by the mean square value of the difference between the predicted value and the actual value, as shown in equation (1).
[0036]
[0037] Among them, the actual value of y is is the predicted value.
[0038] In this embodiment, in addition to the residual between the actual value and the predicted value, the logic control rules of the upper and lower bounds rule (minmaxrule) and the good consistency rule (outbound rule) are added to improve the accuracy of the overall prediction. In the upper and lower bounds rule encoder 32, it is determined whether the maximum value of each predicted specification is greater than the minimum value of the predicted specification. If not (the maximum value of the predicted specification is less than the minimum value of the predicted specification), the upper and lower bounds rule encoder 32 generates a first loss value e1 through the upper and lower bounds rule loss function. The upper and lower bounds rule loss function of the upper and lower bounds rule encoder 32 can be expressed by equation (2).
[0039]
[0040] Where i is the predicted minimum value, j is the predicted maximum value, and n is the number of predicted specifications. Divide the predicted minimum value by the maximum value and discard it unconditionally. If the predicted minimum value is greater than the maximum value, return 1. Finally, add the results of all specifications to become the first loss value e1.
[0041] In the good product consistency rule encoder 33, it is determined whether the actual value and the predicted value of each specification are within the upper and lower limit standards. If not (the actual value of the specification meets the standard, but the predicted value of the specification does not meet the standard; the actual value of the specification does not meet the standard, but the predicted value of the specification meets the standard), a second loss value e2 is generated through the good product consistency rule loss function. The good product consistency rule loss function of the good product consistency rule encoder 33 can be expressed by equation (3).
[0042]
[0043] Among them, n is the number of predicted specifications, std is the range of the upper and lower limits of the specification, first divide the true value and the predicted value by the boundary of the specification, and unconditionally discard, so that the value greater than the specification range is converted to 1, and the value less than the specification range is converted to 0. Finally, the two values representing the converted true value and predicted value are subtracted and the absolute value is taken. If the two values are the same, the second loss value e2 is 0, otherwise, if the two values are different, the second loss value e2 is 1.
[0044] Finally, the three loss functions are combined to adjust the weights during model training. The first loss value may include the first weight, and the second loss value may include the second weight. The residual e between the predicted value and the true value is calculated and expressed as Equation (4).
[0045] L Total =α*L minmax rule +β*L outbound rule +(1-α-β)*L Task (α∈[0, 1], β∈[0, 1]^(α+β)≤1.0)(4)
[0046] α is the first weight, β is the second weight, the first weight may range from 0 to 0.4, and the second weight may range from 0 to 0.6. In other embodiments, the first weight may be 0.1, and the second weight may be 0.1.
[0047] The above data is input into the bidirectional long short-term memory network 35, which includes an input layer, and enters the forward and backward long short-term memory networks (LSTM) through a plurality of input nodes, and then outputs the final output data 36 after the discard layer and the fully connected layer operation. The maximum and minimum predicted values output by the model are judged for the size specification. If the maximum predicted value or the minimum predicted value of one size code exceeds the upper and lower limits of the size specification, it is considered a defective product and marked as 0; otherwise, if all meet the specifications, it is a good product and marked as 1. The true value is also judged in the same way to see if it meets the specifications and marked as the basis for accuracy calculation.
[0048] See also Figure 4 , which is a schematic diagram of the prediction result of adjusting the rule weights in an embodiment of the present invention. When the input data set is encoded by the rule encoder and then input into the bidirectional long short-term memory network, and finally outputs the data, the hybrid quality prediction model can verify the accuracy of the prediction by calculating the accuracy rate, and the calculation method of the accuracy rate is as follows.
[0049] Accuracy = (number of actual good products and predicted good products + number of actual defective products and predicted defective products) / total number of products
[0050] Good product accuracy rate = number of real good products and predicted good products / number of real good products
[0051] Defective product accuracy rate = number of actual defective products and predicted defective products / number of actual defective products
[0052] In this embodiment, by adjusting the weights, the accuracy of the hybrid quality prediction model is analyzed. As shown in the figure, the first weight of the first loss value can be 0 to 0.4, and the second weight of the second loss value can be in the range of 0 to 0.6. The accuracy of the first weight and the second weight is shown in Table 1 below.
[0053] Table 1
[0054]
[0055] The above accuracy values can be plotted as follows Figure 4As shown in the curve diagram, when the first weight and the second weight are both 0, the accuracy of the hybrid quality prediction model is about 90%, but when the first weight is 0.1 and the second weight is 0.1, the accuracy of the hybrid quality prediction model rises to 97.89%, which significantly improves the prediction accuracy, indicating that the prediction result is quite close to the actual result. However, when the second weight exceeds 0.3, the accuracy drops significantly. Obviously, giving too much weight to the restriction rules will reduce the prediction accuracy. In this embodiment, when the first weight is 0.1 and the second weight is 0.1, the hybrid quality prediction model has the highest accuracy, but the present disclosure is not limited to this. According to different production types, models, machines and other restrictions, the weights can be adjusted according to the actual situation so that the hybrid quality prediction model can achieve the best prediction effect.
[0056] The above description is for illustrative purposes only and is not intended to be limiting. Any equivalent modifications or changes made thereto without departing from the spirit and scope of the present invention shall be included in the scope of the appended claims.
Claims
1. A real-time quality prediction system, comprising: An input device, connected to the production machine and the measuring machine, receives the real-time status data of the production machine and the product specification measurement data of the measuring machine; A storage device connected to the input device, wherein the storage device stores the real-time status data of the machine, the product specification measurement data and a plurality of algorithms; A processing device is connected to the storage device, and the processing device executes a plurality of control instructions to access the storage device to establish a quality prediction model, wherein the quality prediction model includes the following modules: A data pre-processing module, which pairs the real-time status data of the machine with the product specification measurement data to form an input data set; as well as A model building module, which establishes a hybrid model architecture through the plurality of algorithms, wherein the hybrid model architecture includes a rule encoder and a bidirectional long short-term memory network, wherein the rule encoder sets upper and lower bound rules and a good product consistency rule, encodes the input data set and then inputs it into the bidirectional long short-term memory network to generate output data; as well as The output device is connected to the processing device and the storage device, and outputs the output data to define the accuracy of the hybrid quality prediction model. 2 . The real-time quality prediction system as claimed in claim 1 , wherein the production machine comprises a stamping machine, and the measuring machine comprises an instantaneous measuring instrument.
3. The real-time quality prediction system as claimed in claim 2, wherein the real-time status data of the machine comprises a data set number, a machine speed, a machine status and a number of punches per second.
4. The real-time quality prediction system as claimed in claim 2, wherein the product specification measurement data comprises a data set number, an inspection time and a measurement specification measurement value.
5. The real-time quality prediction system as described in claim 2, wherein the data pre-processing module sets a preset time difference between the detection time of the measuring machine and the production time of the production machine from the machine real-time status data and the product specification measurement data with the same data set number, and selects the machine real-time status data with the smallest difference from the preset time difference to pair with each other to form the input data set.
6. The real-time quality prediction system as claimed in claim 5, wherein the data pre-processing module utilizes a bootstrap method to continuously extract a plurality of periods of the machine real-time status data from a time point with a minimum time difference from a preset time point to generate a subset of the input data set.
7. The real-time quality prediction system as described in claim 1, wherein the upper and lower bound rules determine whether the maximum value of each prediction specification is greater than the minimum value of the prediction specification. If not, a first loss value is generated through the upper and lower bound rule loss function.
8. The real-time quality prediction system as described in claim 7, wherein the good product consistency rule determines whether the actual value and the predicted value of each specification are within the upper and lower limit standards. If not, a second loss value is generated through the good product consistency rule loss function.
9. The real-time quality prediction system as claimed in claim 8, wherein the first loss value includes a first weight, the second loss value includes a second weight, the first weight ranges from 0 to 0.4, and the second weight ranges from 0 to 0.
6.
10. The real-time quality prediction system according to claim 9, wherein the first weight is 0.1, and the second weight is 0.1.
