A precision manufacturing quality monitoring method and device based on artificial intelligence meta-learning technology
Through the precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology, the problem of real-time quality monitoring in the precision manufacturing process is solved, and quality monitoring that quickly adapts after the equipment process parameters are adjusted is realized, dynamically adapting to scene changes, and improving monitoring efficiency and accuracy. sex.
Patent Information
- Application Number
- CN202210371923.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-11
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-04-11
AI Technical Summary
It is difficult to achieve real-time quality monitoring in the precision manufacturing process with the existing technology, especially after the equipment process parameters are adjusted. The traditional algorithm cannot be effectively generalized, and a large amount of monitored variable data has no labels, making it impossible to use supervised algorithms for quality monitoring, resulting in quality inspection The link efficiency is low.
Adopt a precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology, collect time series data for pre-processing, divide it into meta-training set, meta-validation set and meta-test set, build an unsupervised meta-learning model, and perform internal and external optimization to learn meta-knowledge , establish an adaptive quality monitoring model, and set an adaptive threshold update method to dynamically adapt to different scenarios.
It realizes the quality monitoring capability that can be quickly generalized to new scenarios in the precision manufacturing process, can dynamically adapt to the offset of equipment process time series data, improves monitoring efficiency and accuracy, and reduces quality inspection costs.
Smart Images

Figure CN114861522B
Abstract
Description
Technical Field
[0001] The present application relates to the field of precision manufacturing technology, and in particular to a precision manufacturing quality monitoring method and device based on artificial intelligence meta-learning technology. Background Art
[0002] Modern manufacturing technology is one of the important means for a country to develop its economy. As an important branch of modern manufacturing technology, the development and research of precision manufacturing technology is also highly valued by the country. The development and promotion of precision manufacturing and ultra-precision machining technology have improved the machining accuracy and technical level of the entire manufacturing industry, and generally improved the quality, performance and competitiveness of mechanical products. Precision manufacturing technology is widely used in the fields of ultra-precision parts machining, ultra-precision special-shaped parts machining, ultra-precision optical parts machining, and micro-electromechanical system device machining.
[0003] The precision manufacturing process is a typical multi-variable, multi-process, and multi-stage industrial process, and its quality control issues have always been the focus of academic and industrial circles. The precision manufacturing process is a typical batch production process, consisting of multiple stages, which are repeated according to the above stages. Its process state changes with time and does not have a steady-state operating point. As a result, the process exhibits strong nonlinear and time-varying characteristics, and the linear time-varying model can no longer fully describe this process.
[0004] The main goal of precision manufacturing process monitoring is to improve the quality of product production, detect abnormalities in the production stage in time, and then adjust the equipment. This process involves many factors. During the production process, sensors are used to monitor the variables in the production process. These variables reflect the production process. There is a certain correlation between the abnormality of the variables and the quality of the product. By analyzing and judging the product quality through the monitoring variables, a lot of manpower and material resources can be saved in the quality inspection process.
[0005] However, the existing linear or supervised algorithms are not effective when used for precision manufacturing time series quality monitoring, especially when precision manufacturing equipment often adjusts process parameters, the collected data varies greatly, and the data dimension is high. Ordinary statistical algorithms or deep learning algorithms cannot generalize well after adjusting process parameters, and require a large amount of data for retraining. Real-time monitoring cannot be achieved, and random sampling cannot be performed in the quality inspection process. A large amount of monitoring variable data has no labels, so supervised algorithms cannot be used for quality monitoring. Summary of the invention
[0006] In order to solve the technical problems existing in the above-mentioned prior art, the main purpose of this application is to provide a precision manufacturing quality monitoring method and device based on artificial intelligence meta-learning technology to solve the shortcomings of the prior art.
[0007] To achieve the above objectives, the present application provides a precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology, comprising:
[0008] Collecting time series data in the precision manufacturing process, and cleaning and normalizing the time series data to obtain preprocessed data;
[0009] Dividing the preprocessed data into a meta-training set, a meta-validation set, and a meta-test set;
[0010] A precision manufacturing process timing quality monitoring model based on meta-learning is constructed, and meta-knowledge is learned by performing two optimization processes of internal optimization and external optimization on multiple tasks through the meta-training set and the meta-validation set, thereby completing meta-training and meta-validation;
[0011] Using samples on the meta-test set to update internal optimization parameters of the meta-trained model, to obtain a quality monitoring model adapted to new quality monitoring tasks;
[0012] Based on the quality monitoring model, an adaptive threshold updating method is set to dynamically adapt to different scenarios and perform monitoring alarm processing.
[0013] Optionally, collecting time series data in the precision manufacturing process, and cleaning and normalizing the time series data to obtain preprocessed data, includes:
[0014] Collect data from multiple monitoring sensors during precision manufacturing processes;
[0015] The collection of multiple variables under different process parameters is carried out synchronously, and the data sampled by each variable in each complete precision manufacturing process cycle is uploaded in real time to obtain time series data;
[0016] The uploaded time series data is cleaned and processed to remove data that does not meet the requirements. Each cycle data is separated into stages according to the collected parameters and processed into standardized data of equal length.
[0017] Optionally, dividing the preprocessed data into a meta-training set, a meta-validation set, and a meta-test set further includes:
[0018] The preprocessed data is divided into three parts: a meta-training set, a meta-validation set, and a meta-test set, wherein the meta-training set, the meta-validation set, and the meta-test set are in the form of sets, each of which is further divided into a support set and a query set, training is performed on the support set, and testing is performed on the query set;
[0019] The meta-training set consists of multiple precision manufacturing process sequential quality inspection tasks. The meta-learner learns on multiple support set tasks for quality monitoring of each task and learns meta-knowledge for processing precision manufacturing problems. The meta-learner is verified on the validation set. The meta-test set contains precision manufacturing process data.
[0020] Optionally, the step of constructing a meta-learning-based precision manufacturing process time series quality monitoring model includes:
[0021] Construct a meta-learning model based on an unsupervised time series quality monitoring algorithm;
[0022] The meta-learning model is divided into an external network that learns meta-knowledge and an internal network that is sensitive to tasks based on an unsupervised meta-learning algorithm;
[0023] The external network serves as an external loop parameter of meta-learning, is used to learn the initial representation of the precision manufacturing process time series data, and has parameters that are most sensitive to the distribution of the new task learning domain;
[0024] The internal network serves as the internal loop parameters of meta-learning, based on the representation of the external network, using sample-based gradient adjustments.
[0025] Optionally, two optimization processes, internal optimization and external optimization, are performed on multiple tasks to learn meta-knowledge and complete meta-training and meta-validation, including:
[0026] The meta-training phase includes an internal optimization process and an external optimization process, wherein the external optimization process optimizes the external network parameters θ constituting the meta-knowledge of meta-learning, and the internal optimization process optimizes the parameters θ1 of the internal network;
[0027] In the internal optimization stage, the external network parameters θ are fixed and the task T is monitored during the precision manufacturing process. i The learning rate α is used to optimize the internal network parameters θ′ with the gradient descent algorithm. After training on all tasks is completed, the internal network parameters θ′ are fixed, and the first-order knowledge, namely the external network parameters θ, is updated with the learning rate β.
[0028] Optionally, two optimization processes, internal optimization and external optimization, are performed on multiple tasks to learn meta-knowledge, complete meta-training and meta-validation, and also include:
[0029]
[0030]
[0031] Among them, f θ It is a model trained in an unsupervised manner, in which one of the tasks T i A loss function is defined on the training set, and the external network parameter θ is updated to the internal network parameter θ′ by using the learning rate α through gradient update; θ (x j ), y j ) Calculate the difference between the reconstructed sample and the actual sample;
[0032] L(f θ (x j ), y j )=λ1L1(f θ (x j ), y j )+λ2L SSIM (f θ (x j ), y j )
[0033]
[0034] The goal of meta-learning is to learn the optimization parameter θ′ on different tasks through formula 1 and minimize the overall loss on all tasks. The overall loss function of meta-learning is defined as:
[0035]
[0036] Optionally, the internal optimization parameters of the meta-trained model are updated by using the samples on the meta-test set to obtain a quality monitoring model adapted to the new quality monitoring task, including:
[0037] Using the initial model parameters trained in the meta-training phase, the new anomaly detection task S in the meta-test set new We use K samples to update the internal optimization parameter θ through Formula 3, so that the model can quickly adapt to new tasks. new Test on the test set.
[0038] Optionally, based on the quality monitoring model, an adaptive threshold update method is set to dynamically adapt to different scenarios and perform monitoring alarm processing, including:
[0039] The trained meta-learning model is used to perform monitoring tasks on the dataset, the error score of each sample is calculated, and an adaptive threshold update method is set to monitor new data so that the threshold can adapt to the offset conditions caused by continuous production of precision manufacturing.
[0040] In addition, to achieve the above-mentioned purpose, the present application also provides a precision manufacturing quality monitoring device based on artificial intelligence meta-learning technology, and the precision manufacturing quality monitoring device based on artificial intelligence meta-learning technology includes: a data acquisition module, which is used to collect time series data in the precision manufacturing process, and clean and normalize the time series data to obtain preprocessed data; a data partitioning module, which is used to divide the preprocessed data into a meta-training set, a meta-validation set and a meta-test set; a modeling training module, which is used to construct a precision manufacturing process time series quality monitoring model based on meta-learning, and learn meta-knowledge through two optimization processes of internal optimization and external optimization on multiple tasks through the meta-training set and the meta-validation set, and complete meta-training and meta-verification; a meta-testing module, which is used to use the samples on the meta-testing set to update the internal optimization parameters of the meta-trained model, and obtain a quality monitoring model that adapts to new quality monitoring tasks; a quality monitoring module, which is used to set an adaptive threshold update method based on the quality monitoring model, dynamically adapt to different scenarios, and perform monitoring alarm processing.
[0041] Optionally, the precision manufacturing quality monitoring device based on artificial intelligence meta-learning technology also includes a model building module for building a meta-learning-based precision manufacturing process timing quality monitoring model.
[0042] Optionally, the precision manufacturing quality monitoring device based on artificial intelligence meta-learning technology also includes a meta-training module, which is used to learn meta-knowledge in two optimization processes of internal optimization and external optimization on multiple tasks, and complete meta-training and meta-verification.
[0043] In addition, to achieve the above-mentioned objectives, the present application also provides a precision manufacturing quality monitoring device based on artificial intelligence meta-learning technology, wherein the precision manufacturing quality monitoring device based on artificial intelligence meta-learning technology includes a processor, a memory, and a precision manufacturing quality monitoring program based on artificial intelligence meta-learning technology stored on the memory and executable by the processor, wherein when the precision manufacturing quality monitoring program based on artificial intelligence meta-learning technology is executed by the processor, the steps of the precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology as described above are implemented.
[0044] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which is stored a precision manufacturing quality monitoring program based on artificial intelligence meta-learning technology. When the precision manufacturing quality monitoring program based on artificial intelligence meta-learning technology is executed by a processor, the steps of the precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology as described above are implemented.
[0045] The present application provides a precision manufacturing quality monitoring method and device based on artificial intelligence meta-learning technology. Through the data preprocessing method, the time series data generated by various types of precision manufacturing equipment can be easily standardized and unified, and the meta-learning model can be directly used for training and testing; through the learning of the meta-learner, the model learns the meta-knowledge of the precision manufacturing industry, and in the face of new precision manufacturing scenarios, it can be quickly generalized to new scenarios; by setting an adaptive threshold method, even if the process time series data of the precision manufacturing equipment is offset, the quality monitoring model is still applicable.
[0046] These and other aspects of the present application will be more concise and understandable in the following description of the embodiments. It should be understood that the above general description and the following detailed description are only exemplary and explanatory and cannot limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments of the present application. In the drawings:
[0048] Figure 1 This is a flow chart of the precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology in this application;
[0049] Figure 2 This is a flow chart of the first embodiment of the precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology of this application;
[0050] Figure 3 for Figure 2 A flow chart of the data collection and preprocessing phase of the precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology in this application;
[0051] Figure 4 for Figure 2 A flow chart of the data division phase of the precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology in this application;
[0052] Figure 5 for Figure 2 A flow chart of the model building phase of the precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology in this application;
[0053] Figure 6 for Figure 2 A schematic diagram of the meta-training phase of the precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology in this application;
[0054] Figure 7 for Figure 2A schematic diagram of the meta-testing phase of the precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology in this application;
[0055] Figure 8 for Figure 2 A flow chart of the quality monitoring phase of the precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology in this application;
[0056] Fig. 9 This is a system block diagram of a precision manufacturing quality monitoring device based on artificial intelligence meta-learning technology in the second embodiment of the present application;
[0057] Fig.10 for Fig. 9 A schematic diagram of the functional modules of the modeling and training module in the precision manufacturing quality monitoring device based on artificial intelligence meta-learning technology in this application;
[0058] Fig.11 This is a schematic diagram of a precision manufacturing quality monitoring device based on artificial intelligence meta-learning technology in the third embodiment of the present application.
[0059] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0060] This section will describe in detail the specific embodiments of the present invention. The preferred embodiments of the present invention are shown in the accompanying drawings. The purpose of the accompanying drawings is to supplement the description of the text part of the specification with graphics, so that people can intuitively and vividly understand each technical feature and the overall technical solution of the present invention, but it cannot be understood as a limitation on the scope of protection of the present invention.
[0061] In the description of the present invention, “several” means one or more, “more” means more than two, “greater than”, “less than”, “exceed”, etc. are understood as not including the number itself, and “above”, “below”, “within”, etc. are understood as including the number itself.
[0062] In the description of the present invention, the consecutive numbering of the method steps is for the convenience of review and understanding. Combined with the overall technical scheme of the present invention and the logical relationship between the various steps, adjusting the implementation order between the steps will not affect the technical effect achieved by the technical scheme of the present invention.
[0063] In the description of the present invention, unless otherwise clearly defined, words such as "setting" should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meaning of the above words in the present invention in combination with the specific content of the technical solution.
[0064] In an embodiment of the present application, a precision manufacturing quality monitoring method and device based on artificial intelligence meta-learning technology are provided, wherein the precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology can be applied to precision manufacturing quality monitoring equipment based on artificial intelligence meta-learning technology, and the precision manufacturing quality monitoring equipment based on artificial intelligence meta-learning technology can be a PC, a portable computer, a mobile terminal, or other device with display and processing functions, but is certainly not limited to this.
[0065] Among them, see Figure 1 As shown, a precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology includes the following steps S10-S50:
[0066] S10, collecting time series data in the precision manufacturing process, and cleaning and normalizing the time series data to obtain preprocessed data;
[0067] S20, dividing the preprocessed data into a meta-training set, a meta-validation set and a meta-test set;
[0068] S30, constructing a precision manufacturing process timing quality monitoring model based on meta-learning, and learning meta-knowledge through two optimization processes of internal optimization and external optimization on multiple tasks through the meta-training set and the meta-validation set, and completing meta-training and meta-validation;
[0069] S40, using the samples on the meta-test set to update the internal optimization parameters of the meta-trained model to obtain a quality monitoring model adapted to the new quality monitoring task;
[0070] S50: Based on the quality monitoring model, an adaptive threshold updating method is set to dynamically adapt to different scenarios and perform monitoring alarm processing.
[0071] In some embodiments of the present application, the collecting of time series data in the precision manufacturing process, and cleaning and normalizing the time series data to obtain preprocessed data include:
[0072] Collect data from multiple monitoring sensors during precision manufacturing processes;
[0073] The collection of multiple variables under different process parameters is carried out synchronously, and the data sampled by each variable in each complete precision manufacturing process cycle is uploaded in real time to obtain time series data;
[0074] The uploaded time series data is cleaned and processed to remove data that does not meet the requirements. Each cycle data is separated into stages according to the collected parameters and processed into standardized data of equal length.
[0075] In some embodiments of the present application, the dividing the preprocessed data into a meta-training set, a meta-validation set and a meta-test set further includes: the preprocessed data is divided into three parts, a meta-training set, a meta-validation set and a meta-test set, wherein the meta-training set, the meta-validation set and the meta-test set are in the form of sets, each set is further divided into a support set and a query set, training is performed on the support set, and testing is performed on the query set;
[0076] The meta-training set consists of multiple precision manufacturing process sequential quality inspection tasks. The meta-learner learns on multiple support set tasks for quality monitoring of each task and learns meta-knowledge for handling precision manufacturing problems. The meta-learner is verified on the validation set. The meta-test set contains precision manufacturing process data.
[0077] In some embodiments of the present application, the construction of a precision manufacturing process timing quality monitoring model based on meta-learning includes:
[0078] Construct a meta-learning model based on an unsupervised time series quality monitoring algorithm;
[0079] The meta-learning model is divided into an external network that learns meta-knowledge and an internal network that is sensitive to tasks based on an unsupervised meta-learning algorithm;
[0080] The external network serves as an external loop parameter of meta-learning, is used to learn the initial representation of the precision manufacturing process time series data, and has parameters that are most sensitive to the distribution of the new task learning domain;
[0081] The internal network serves as the internal loop parameters of meta-learning, based on the representation of the external network, using sample-based gradient adjustments.
[0082] In some embodiments of the present application, two optimization processes, internal optimization and external optimization, are performed on multiple tasks to learn meta-knowledge and complete meta-training and meta-validation, including:
[0083] The meta-training phase includes an internal optimization process and an external optimization process, wherein the external optimization process optimizes the external network parameters θ constituting the meta-knowledge of meta-learning, and the internal optimization process optimizes the parameters θ′ of the internal network;
[0084] In the internal optimization stage, the external network parameters θ are fixed and the task T is monitored during the precision manufacturing process. i The learning rate α is used to optimize the internal network parameters θ′ with the gradient descent algorithm. After training on all tasks is completed, the internal network parameters θ′ are fixed, and the first-order knowledge, namely the external network parameters θ, is updated with the learning rate β.
[0085] In some embodiments of the present application, two optimization processes of internal optimization and external optimization are performed on multiple tasks to learn meta-knowledge, complete meta-training and meta-validation, and further include:
[0086]
[0087]
[0088] Among them, f θ It is a model trained in an unsupervised manner, in which one of the tasks T i A loss function is defined on the training set, and the external network parameter θ is updated to the internal network parameter θ′ by using the learning rate α through gradient update; θ (x j ), y j ) Calculate the difference between the reconstructed sample and the actual sample;
[0089] L(f θ (x j ), y j )=λ1L1(f θ (x j ), y j )+λ2L SSIM (f θ (x j ), y j )
[0090]
[0091] The goal of meta-learning is to learn the optimization parameter θ′ on different tasks through formula 1 and minimize the overall loss on all tasks. The overall loss function of meta-learning is defined as:
[0092]
[0093] In some embodiments of the present application, the internal optimization parameters of the meta-trained model are updated by using the samples on the meta-test set to obtain a quality monitoring model adapted to the new quality monitoring task, including:
[0094] Using the initial model parameters trained in the meta-training phase, the new anomaly detection task S in the meta-test set new We use K samples to update the internal optimization parameter θ′ through Formula 3, so that the model can quickly adapt to new tasks. new Test on the test set.
[0095] In some embodiments of the present application, based on the quality monitoring model, an adaptive threshold update method is set to dynamically adapt to different scenarios and perform monitoring alarm processing, including:
[0096] The trained meta-learning model is used to perform monitoring tasks on the dataset, the error score of each sample is calculated, and an adaptive threshold update method is set to monitor new data so that the threshold can adapt to the offset conditions caused by continuous production of precision manufacturing.
[0097] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0098] Please refer to Figure 2 , Figure 2 This is a flow chart of a precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology in the first embodiment of the present application. In the embodiment of the present application, the precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology includes the following steps S100 to S600:
[0099] S100, data collection and preprocessing stage: collect time series data of multiple sensors under different process parameters in the precision manufacturing process, and perform data cleaning and normalization processing;
[0100] S200, data division stage: dividing the data into a meta-training set, a meta-validation set, and a meta-test set;
[0101] S300, model building phase: building a meta-learning-based precision manufacturing process temporal quality monitoring model;
[0102] S400, meta-training stage: perform internal optimization and external optimization on multiple tasks to learn meta-knowledge and complete meta-training and meta-verification;
[0103] S500, meta-testing phase: using the model trained in the meta-training phase, a small number of samples are used on new data to update the internal optimization parameters, so that the model can quickly adapt to the new quality monitoring task;
[0104] S600, quality monitoring stage: setting an adaptive threshold update method, dynamically adapting to different scenarios, and performing monitoring alarm processing.
[0105] In the examples of this application, see Figure 3 As shown, in the data collection and preprocessing stage, steps S110 to S120 are also included:
[0106] S110, collecting time series data of precision manufacturing process through various sensors;
[0107] S120, cleaning, phasing, storing, and preprocessing the collected data into standardized data.
[0108] Exemplarily, the time series data of multiple sensors under different process parameters in the precision manufacturing process are collected, and the number of variables actually collected is determined according to the variables that actually need to be monitored, such as product abnormalities are strongly correlated with some variables, or some variables reflect the quality of precision manufacturing production. The collection of multiple variables is carried out synchronously, and each complete precision manufacturing process is called a cycle, or a cycle. Each variable samples a certain amount of data in each cycle, such as collecting 500 points in each cycle. Since the precision manufacturing time series data is prone to missing, duplication, multi-stage problems, it is necessary to clean the data, delete data that does not meet the requirements, such as cycle duplication or cycle interruption, and segment each cycle data according to the collected parameters and process it into standard data of equal length. For example, the data of each stage is processed into a sequence of equal length to facilitate the comparison of different data in the same dimension.
[0109] In the examples of this application, see Figure 4 As shown, the data division stage includes steps S210 to S220, and the process is as follows:
[0110] S210, dividing the data into a meta-training set, a meta-validation set, and a meta-test set;
[0111] S220. The data of each set is further divided into a support set and a query set.
[0112] Exemplarily, the data is divided into a meta-training set, a meta-validation set, and a meta-test set according to the task ratio, such as 6:2:2. They are presented in the form of a set. Each part is further divided into a support set and a query set. For example, if the ratio of the two is 8:2, training is performed on the support set and testing is performed on the query set. The meta-training set consists of multiple precision manufacturing process time series quality monitoring tasks, such as different process time series data collected on different precision manufacturing equipment and precision manufacturing process time series data under different setting parameters. Each combination of process setting parameters corresponds to a task T. The meta-learner learns on multiple support set tasks and tries to achieve the quality monitoring goal of each task. It aims to learn meta-knowledge for dealing with precision manufacturing problems. The meta-learner is verified on the validation set. The meta-test set contains new precision manufacturing process data, such as new data collected after machine adjustment, and setting parameter changes.
[0113] Reference Figure 5 As shown, the model building stage includes steps S310 to S320, and the process is as follows:
[0114] S310, constructing a meta-learning-based unsupervised precision manufacturing process temporal quality monitoring model;
[0115] S320. Divide the meta-learning model into an inner loop network and an outer loop network structure.
[0116] Exemplarily, an unsupervised precision manufacturing process time series quality monitoring model based on meta-learning is constructed. The precision manufacturing process time series data generally has no labels or very few labels, and the meta-learning model adopts an unsupervised time series quality monitoring algorithm. The unsupervised meta-learning algorithm is functionally divided into an external network that learns meta-knowledge and an internal network that is sensitive to the task. The external network, as the external loop parameter of meta-learning, learns the initial representation of the precision manufacturing process time series data and has the parameters that are most sensitive to the learning domain distribution of the new task; the internal network, as the internal loop parameter of meta-learning, is based on the representation of the external network and uses gradient updates based on a small number of samples to make efficient adjustments. Even very small changes in the parameter amount can bring significant improvements to the model. Since the precision manufacturing process uses sensor time series data, the external network and internal network structures can adopt neural network structures that are more suitable for processing time series, such as LSTM and one-dimensional convolutional neural networks.
[0117] The outer loop parameters of meta-learning are learned by learning the quality inspection meta-knowledge about the timing of precision manufacturing processes on a large number of tasks to obtain an optimal parameter representation. The internal network serves as the internal optimization parameters of meta-learning. In new scenarios, the parameters of the optimal outer loop network are fixed, and the inner loop parameters are quickly updated through training with a small number of samples, so that the model can monitor new precision manufacturing process data.
[0118] Reference Figure 6 As shown, the meta-training stage includes steps S410 to S420, and the process is as follows:
[0119] S410, optimize the external loop structure of the model and learn meta-knowledge;
[0120] S420. Optimize the internal loop structure of the model to adapt to new tasks.
[0121] Exemplarily, two optimization processes, internal optimization and external optimization, are performed on multiple tasks to learn meta-knowledge and complete meta-training and meta-validation. The meta-training phase includes two optimization processes, internal optimization and external optimization. The external optimization optimizes the external network parameters θ of the meta-knowledge that constitutes meta-learning, and the internal optimization optimizes the parameters θ′ of the internal network.
[0122] In the internal optimization stage, the external network parameters θ are fixed and the timing monitoring task T i The learning rate α is used to optimize the internal network parameters θ′ with the gradient descent algorithm. After training on all tasks is completed, the internal network parameters θ′ are fixed, and the first-order knowledge, namely the external network parameters θ, is updated with the learning rate β.
[0123] Eq.1:
[0124]
[0125]
[0126] f θ It is a model trained in an unsupervised manner, in which one of the tasks T i A loss function is defined on the training set, and θ is updated to θ′ by using the learning rate α through gradient update, specifically, the parameter θ′ of the internal network is updated. L(f θ (x j ), y j ) Calculate the difference between the reconstructed sample and the actual sample. Commonly used losses are L1, L2, and SSIM loss. Multiple losses can also be combined with different weights.
[0127] L(f θ (x j ), y j )=λ1L1(f θ (x j ), y j )+λ2L SSIM (f θ (x j ), y j )
[0128]
[0129] The goal of meta-learning is to learn the optimization parameter θ′ on different tasks through Eq.1 and minimize the loss of Eq.3 on all tasks. The overall loss function of meta-learning is defined as:
[0130] Eq.3:
[0131]
[0132] Reference Figure 7 As shown, the meta-test phase includes steps S510 to S520, and the process is as follows:
[0133] S510, using a small number of samples to update internal optimization parameters on the new task;
[0134] S520: Use the trained model to predict all cycle data under the set parameters.
[0135] For example, we use the model trained in the meta-training phase and assume that the meta-learner has the optimal external loop parameter θ * Using a small amount of samples to update the internal optimization parameters on the new task so that the model can quickly adapt to the new quality monitoring task includes: using the initial model parameters trained in the meta-training phase, and the new anomaly detection task S in the meta-test setnew A small number of samples (K) are used to update the internal optimization parameter θ′ through Eq.3, so that the model can quickly adapt to new tasks. new Test on the test set.
[0136] Reference Figure 8 As shown, the quality monitoring stage includes steps S610 to S620, and the process is as follows:
[0137] S610, dynamically updating the threshold using an adaptive threshold updating method;
[0138] S620: Execute monitoring and alarm processing under the current threshold.
[0139] Exemplarily, an adaptive threshold update method is set to dynamically adapt to different scenarios and perform monitoring and alarm processing. The adaptive threshold adopts a combination of local and global thresholds to set a complex threshold strategy to cope with complex precision manufacturing processes. For example, as the precision manufacturing process continues, the temperature of the barrel continues to rise, which will cause temperature drift, thereby affecting the trend of other monitoring variables. If a fixed threshold is used, the normal situation may be predicted as abnormal. Therefore, a dynamic threshold update strategy is adopted. For example, based on the calculated reconstruction error, a sliding window is used to calculate the threshold, and the window size is set to 30C (C represents 30 cycles) based on experience, and the step size is set to 2C. The sliding window size determines the number of historical anomaly scores for evaluating the current threshold. For each sliding window, a simple static threshold is used, such as defined as 3 standard deviations from the window average. The trained meta-learning model is used to perform monitoring tasks on the data set, the error score of each sample is calculated, and the new data is monitored according to the adaptive threshold update method, so that the threshold adapts to the offset conditions caused by the continuous production of precision manufacturing.
[0140] Reference Fig. 9 , Fig. 9 This is a system block diagram of a precision manufacturing quality monitoring device based on artificial intelligence meta-learning technology according to the second embodiment of the present application.
[0141] In an embodiment of the present application, the precision manufacturing quality monitoring device 500 based on artificial intelligence meta-learning technology includes:
[0142] The data acquisition module 501 is used to collect time series data in the precision manufacturing process, and clean and normalize the time series data to obtain pre-processed data;
[0143] A data partitioning module 502 is used to partition the preprocessed data into a meta-training set, a meta-validation set, and a meta-test set;
[0144] The modeling training module 503 is used to construct a precision manufacturing process timing quality monitoring model based on meta-learning, and learn meta-knowledge through two optimization processes of internal optimization and external optimization on multiple tasks through the meta-training set and the meta-validation set, so as to complete meta-training and meta-validation;
[0145] A meta-test module 504, configured to update internal optimization parameters of the meta-trained model using samples on the meta-test set to obtain a quality monitoring model adapted to a new quality monitoring task;
[0146] The quality monitoring module 505 is used to set an adaptive threshold update method based on the quality monitoring model, dynamically adapt to different scenarios, and perform monitoring alarm processing.
[0147] In some embodiments, see Fig.10 As shown, the precision manufacturing quality monitoring device based on artificial intelligence meta-learning technology also includes a model building module 5031, which is used to build a precision manufacturing process timing quality monitoring model based on meta-learning;
[0148] The meta-training module 5032 is used to perform two optimization processes, internal optimization and external optimization, on multiple tasks to learn meta-knowledge and complete meta-training and meta-verification.
[0149] Among them, each module in the above-mentioned precision manufacturing quality monitoring device based on artificial intelligence meta-learning technology corresponds to each step in the above-mentioned precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology embodiment, and their functions and implementation processes will not be repeated here one by one.
[0150] Reference Fig.11 , is a diagram of a device according to the present invention. The third embodiment of the present application provides a precision manufacturing quality monitoring device based on artificial intelligence meta-learning technology, including a memory 100 and a processor 200, wherein the processor 200 stores a computer program, and the computer program is used to execute the steps in the above-mentioned precision manufacturing quality monitoring method embodiment based on artificial intelligence meta-learning technology:
[0151] Data collection and preprocessing stage: collect time series data of multiple sensors under different process parameters in the precision manufacturing process, and perform data cleaning and normalization;
[0152] Data partitioning stage: divide the data into meta-training set, meta-validation set and meta-test set;
[0153] Model building phase: Constructing a meta-learning-based precision manufacturing process sequential quality monitoring model;
[0154] Meta-training stage: Perform internal optimization and external optimization on multiple tasks to learn meta-knowledge and complete meta-training and meta-verification;
[0155] Meta-testing phase: Use the model trained in the meta-training phase and adopt a small number of samples on new data to update the internal optimization parameters so that the model can quickly adapt to new quality monitoring tasks;
[0156] Quality monitoring stage: Set the adaptive threshold update method, dynamically adapt to different scenarios, and perform monitoring alarm processing.
[0157] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0158] Among them, the processor is used to run the computer program stored in the memory to implement various embodiments of the precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology of the present application.
[0159] It should be appreciated that the method steps in the embodiments of the present invention can be implemented or implemented by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The method can use standard programming techniques. Each program can be implemented in a high-level process or object-oriented programming language to communicate with a computer system. However, if necessary, the program can be implemented in an assembly or machine language. In any case, the language can be a compiled or interpreted language. In addition, the program can be run on a programmed ASIC for this purpose.
[0160] Furthermore, the operations of the processes described herein may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes described herein (or variations and / or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) that is executed collectively on one or more processors, by hardware, or a combination thereof. The computer program includes a plurality of instructions that may be executed by one or more processors.
[0161] In addition, the fourth embodiment of the present application also provides a computer-readable storage medium.
[0162] The computer-readable storage medium of the present application stores a precision manufacturing quality monitoring program based on artificial intelligence meta-learning technology, wherein when the precision manufacturing quality monitoring program based on artificial intelligence meta-learning technology is executed by a processor, the steps of the precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology as described above are implemented:
[0163] Data collection and preprocessing stage: collect time series data of multiple sensors under different process parameters in the precision manufacturing process, and perform data cleaning and normalization;
[0164] Data partitioning stage: divide the data into meta-training set, meta-validation set and meta-test set;
[0165] Model building phase: Constructing a meta-learning-based precision manufacturing process sequential quality monitoring model;
[0166] Meta-training stage: Perform internal optimization and external optimization on multiple tasks to learn meta-knowledge and complete meta-training and meta-verification;
[0167] Meta-testing phase: Use the model trained in the meta-training phase and adopt a small number of samples on new data to update the internal optimization parameters so that the model can quickly adapt to new quality monitoring tasks;
[0168] Quality monitoring stage: Set the adaptive threshold update method, dynamically adapt to different scenarios, and perform monitoring alarm processing.
[0169] Among them, the method implemented when the precision manufacturing quality monitoring program based on artificial intelligence meta-learning technology is executed can refer to the various embodiments of the precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology of this application, and will not be repeated here.
[0170] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0171] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0172] The present application can be used in many general or special computer device environments or configurations. Further, the method can be implemented in any type of computing platform that is operably connected to a suitable computer, including but not limited to a personal computer, a minicomputer, a mainframe, a workstation, a network or distributed computing environment, a separate or integrated computer platform, or communicates with a charged particle tool or other imaging device, etc. Aspects of the present invention can be implemented in machine-readable code stored on a non-transitory storage medium or device, whether it is removable or integrated into a computing platform, such as a hard disk, an optical read and / or write storage medium, a RAM, a ROM, etc., so that it can be read by a programmable computer, and when the storage medium or device is read by a computer, it can be used to configure and operate the computer to perform the process described herein. In addition, the machine-readable code, or part thereof, can be transmitted via a wired or wireless network. When such media includes instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor, the invention described herein includes these and other different types of non-transitory computer-readable storage media. When programmed according to the methods and techniques of the present invention, the present invention also includes the computer itself.
[0173] The computer program can be applied to input data to perform the functions described herein, thereby converting the input data to generate output data stored in a non-volatile memory. The output information can also be applied to one or more output devices such as a display. In a preferred embodiment of the present invention, the converted data represents physical and tangible objects, including specific visual depictions of physical and tangible objects produced on the display.
[0174] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0175] The present application provides a precision manufacturing quality monitoring method and device based on artificial intelligence meta-learning technology. Through the data preprocessing method, the time series data generated by various types of precision manufacturing equipment can be easily standardized and unified, and the meta-learning model can be directly used for training and testing; through the learning of the meta-learner, the model learns the meta-knowledge of the precision manufacturing industry, and in the face of new precision manufacturing scenarios, it can be quickly generalized to new scenarios; by setting an adaptive threshold method, even if the process time series data of the precision manufacturing equipment is offset, the quality monitoring model is still applicable.
[0176] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology, characterized in that: The precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology comprises the following steps: Collecting time series data in the precision manufacturing process, and cleaning and normalizing the time series data to obtain preprocessed data; Dividing the preprocessed data into a meta-training set, a meta-validation set, and a meta-test set; A precision manufacturing process timing quality monitoring model based on meta-learning is constructed, and meta-knowledge is learned by performing two optimization processes of internal optimization and external optimization on multiple tasks through the meta-training set and the meta-validation set, thereby completing meta-training and meta-validation; Using samples on the meta-test set to update internal optimization parameters of the meta-trained model, to obtain a quality monitoring model adapted to new quality monitoring tasks; Based on the quality monitoring model, an adaptive threshold update method is set to dynamically adapt to different scenarios and perform monitoring alarm processing; Among them, two optimization processes, internal optimization and external optimization, are performed on multiple tasks to learn meta-knowledge and complete meta-training and meta-verification, including: The meta-training phase includes an internal optimization process and an external optimization process. The external optimization process optimizes the external network parameters θ that constitute the meta-knowledge of meta-learning, and the internal optimization process optimizes the parameters θ of the internal network. ′ ; In the internal optimization stage, the external network parameters θ are fixed and the task T is monitored during the precision manufacturing process. i The learning rate α is used to optimize the internal network parameters θ using the gradient descent algorithm ′ , after training on all tasks is completed, fix the internal network parameters θ ′ , update the first-order knowledge, i.e., the external network parameters θ, with a learning rate β; Perform internal optimization and external optimization on multiple tasks to learn meta-knowledge, complete meta-training and meta-validation, and also include: Among them, f θ It is a model trained in an unsupervised manner, in which one of the tasks T i A loss function is defined on the training set, and the external network parameter θ is updated to the internal network parameter θ′ by using the learning rate α through gradient update; θ (x j ),y j ) Calculate the difference between the reconstructed sample and the actual sample; L(f θ (x j ),y j )=λ1L1(f θ (x j ),y j )+λ2L SSIM (f θ (x j ),y j ) The goal of meta-learning is to learn the optimization parameter θ′ on different tasks through formula 1 and minimize the overall loss on all tasks. The overall loss function of meta-learning is defined as:
2. The precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology according to claim 1 is characterized in that: The collecting of time series data in the precision manufacturing process, and cleaning and normalizing the time series data to obtain preprocessed data, include: Collect data from multiple monitoring sensors during precision manufacturing processes; The collection of multiple variables under different process parameters is carried out synchronously, and the data sampled by each variable in each complete precision manufacturing process cycle is uploaded in real time to obtain time series data; The uploaded time series data is cleaned and processed to remove data that does not meet the requirements. Each cycle data is separated into stages according to the collected parameters and processed into standardized data of equal length.
3. The precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology according to claim 2 is characterized in that: The step of dividing the preprocessed data into a meta-training set, a meta-validation set and a meta-test set further comprises: The preprocessed data is divided into three parts: a meta-training set, a meta-validation set, and a meta-test set, wherein the meta-training set, the meta-validation set, and the meta-test set are in the form of sets, each of which is further divided into a support set and a query set, training is performed on the support set, and testing is performed on the query set; The meta-training set consists of multiple precision manufacturing process sequential quality inspection tasks. The meta-learner learns on multiple support set tasks for quality monitoring of each task and learns meta-knowledge for handling precision manufacturing problems. The meta-learner is verified on the validation set. The meta-test set contains precision manufacturing process data.
4. The precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology according to claim 1 is characterized in that: The construction of a precision manufacturing process time series quality monitoring model based on meta-learning includes: Construct a meta-learning model based on an unsupervised time series quality monitoring algorithm; The meta-learning model is divided into an external network that learns meta-knowledge and an internal network that is sensitive to tasks based on an unsupervised meta-learning algorithm; The external network serves as an external loop parameter of meta-learning, is used to learn the initial representation of the precision manufacturing process time series data, and has parameters that are most sensitive to the distribution of the new task learning domain; The internal network serves as the internal loop parameters of meta-learning, based on the representation of the external network, using sample-based gradient adjustments.
5. The precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology according to claim 4 is characterized in that: The internal optimization parameters of the meta-trained model are updated using the samples on the meta-test set to obtain a quality monitoring model adapted to the new quality monitoring task, including: Using the initial model parameters trained in the meta-training phase, the new anomaly detection task S in the meta-test set new We use K samples to update the internal optimization parameter θ′ through Formula 3, so that the model can quickly adapt to new tasks. new Test on the test set.
6. The precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology according to claim 1 is characterized in that: Based on the quality monitoring model, an adaptive threshold update method is set to dynamically adapt to different scenarios and perform monitoring alarm processing, including: The trained meta-learning model is used to perform monitoring tasks on the dataset, the error score of each sample is calculated, and an adaptive threshold update method is set to monitor new data so that the threshold can adapt to the offset conditions caused by continuous production of precision manufacturing.
7. A precision manufacturing quality monitoring device based on artificial intelligence meta-learning technology, characterized in that: The precision manufacturing quality monitoring device based on artificial intelligence meta-learning technology comprises the precision manufacturing quality monitoring method based on artificial intelligence meta-learning technology as described in any one of claims 1 to 6, characterized in that the device comprises: A data acquisition module is used to collect time series data in the precision manufacturing process, and clean and normalize the time series data to obtain pre-processed data; A data partitioning module, used for partitioning the preprocessed data into a meta-training set, a meta-validation set and a meta-test set; The modeling and training module is used to construct a precision manufacturing process timing quality monitoring model based on meta-learning, and learn meta-knowledge through two optimization processes of internal optimization and external optimization on multiple tasks through the meta-training set and the meta-validation set, and complete meta-training and meta-validation; wherein, learning meta-knowledge through two optimization processes of internal optimization and external optimization on multiple tasks, and completing meta-training and meta-validation, includes: The meta-training phase includes an internal optimization process and an external optimization process. The external optimization process optimizes the external network parameters θ that constitute the meta-knowledge of meta-learning, and the internal optimization process optimizes the parameters θ of the internal network. ′ ; In the internal optimization stage, the external network parameters θ are fixed and the task T is monitored during the precision manufacturing process. i The learning rate α is used to optimize the internal network parameters θ using the gradient descent algorithm ′ , after training on all tasks is completed, fix the internal network parameters θ ′ , update the first-order knowledge, i.e., the external network parameters θ, with a learning rate β; Perform internal optimization and external optimization on multiple tasks to learn meta-knowledge, complete meta-training and meta-validation, and also include: Among them, f θ It is a model trained in an unsupervised manner, in which one of the tasks T i A loss function is defined on the training set, and the external network parameter θ is updated to the internal network parameter θ by using the learning rate α through gradient update ′ ; Through L(f θ (x j ),y j ) Calculate the difference between the reconstructed sample and the actual sample; L(f θ (x j ),y j )=λ % L % (f θ (x j ),y j )+λ ' L (()* (f θ (x j ),y j ) The goal of meta-learning is to learn the optimization parameters θ on different tasks through Equation 1 ′ , minimize the overall loss on all tasks, and the meta-learning overall loss function is defined as: A meta-test module, used to update the internal optimization parameters of the meta-trained model using samples on the meta-test set to obtain a quality monitoring model adapted to a new quality monitoring task; The quality monitoring module is used to set an adaptive threshold update method based on the quality monitoring model, dynamically adapt to different scenarios, and perform monitoring alarm processing.
8. The precision manufacturing quality monitoring device based on artificial intelligence meta-learning technology according to claim 7 is characterized in that: Also includes: Model building module, used to build a meta-learning-based temporal quality monitoring model for precision manufacturing processes; The meta-training module is used to perform internal optimization and external optimization on multiple tasks to learn meta-knowledge and complete meta-training and meta-verification.
Citation Information
Patent Citations
Rotary machinery fault diagnosis method under complex working condition based on meta transfer learning
CN113469219A
A model for a rapid continual anomaly detector
EP3965020A1
