Model training method, anomaly detection method, system, electronic device and storage medium

The anomaly detection network constructed through the pre-trained language model performs anomaly detection on the time series data during the semiconductor wafer processing process, which solves the problem in the existing technology that the sensor time series data is difficult to analyze and is easy to miss and misjudge, and achieves efficient and accurate Anomaly detection ensures the improvement of product yield.

CN118378092BActive Publication Date: 2024-10-25ALIBABA CLOUD FEITIAN (HANGZHOU) CLOUD COMPUTING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410805536.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-25
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

The existing technology's statistical analysis of massive sensor timing data during semiconductor wafer processing is difficult to accurately determine equipment abnormalities, and is prone to missed or misjudgments, making it difficult to guarantee product yield.

Method used

A pre-trained language model is used to construct an anomaly detection network. Through unsupervised training on normal sensor time series data, an anomaly detection network with time series data reconstruction capabilities is obtained. This network is used to reconstruct the time series data to be detected, and based on the reconstruction error Adjust network parameters to achieve efficient and accurate anomaly detection.

Benefits of technology

It improves the accuracy and generalization ability of timing data anomaly detection during semiconductor wafer processing, ensures an improvement in product yield, reduces dependence on abnormal samples, simplifies the model training process, and improves implementation in industrial scenarios. speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118378092B_ABST
    Figure CN118378092B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a model training method, anomaly detection method, system, electronic device and storage medium. In the embodiment of the present application, a pre-trained language model is used as a basic model to construct an anomaly detection network, and normal sensor time series data collected during the product manufacturing process is used as a normal sample for unsupervised training to obtain an anomaly detection network with the ability to reconstruct time series data. The trained anomaly detection network has good accuracy and generalization ability, and can efficiently and accurately perform anomaly analysis on time series data. In particular, the anomaly detection network can accurately and efficiently detect abnormal time series data during semiconductor wafer processing to ensure the product yield of semiconductor wafers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a model training method, anomaly detection method, system, electronic device and storage medium. Background Art

[0002] The price of a single semiconductor wafer ranges from US$1,000 to US$10,000, and the product yield rate in the industry is generally around 80%. Taking a factory with a daily output of 3,000 wafers as an example, the loss caused by product yield rate in a single day is more than US$30,000. Improving product yield rate can directly bring huge economic benefits. The semiconductor wafer processing process involves more than 2,000 processes before and after, and the number of sensors on each process machine ranges from 10 to 100. A large amount of sensor timing data will be generated during the semiconductor wafer processing process. Sensor timing data reflects the stability of the equipment during the semiconductor wafer processing process, and to a certain extent, it can reflect the product yield rate.

[0003] At present, statistical analysis is usually performed on massive amounts of sensor timing data, and based on the statistical analysis results, it is judged whether there is an abnormality in the semiconductor wafer processing process. When an abnormality occurs in the semiconductor wafer processing process, equipment maintenance is carried out in a timely manner to ensure the product yield of the semiconductor wafer. However, the difficulty of statistical analysis of massive amounts of sensor timing data increases, and it is easy to miss or misjudge, making it difficult to ensure the product yield of semiconductor wafers. Summary of the invention

[0004] Multiple aspects of the present application provide a model training method, anomaly detection method, system, electronic device and storage medium for efficiently and accurately performing anomaly analysis on time series data generated during a product manufacturing process.

[0005] An embodiment of the present application provides a model training method, including: segmenting and processing sample sensor time series data to obtain an original Token sequence, wherein the sample sensor time series data is normal sensor time series data collected during a product manufacturing process; inputting the original Token sequence into an anomaly detection network constructed based on a target pre-trained language model, so that the anomaly detection network reconstructs the original Token sequence to obtain a reconstructed Token sequence; and adjusting the network parameters of the anomaly detection network according to a reconstruction error between the original Token sequence and the reconstructed Token sequence.

[0006] The embodiment of the present application also provides an anomaly detection method, including: obtaining time series data of a sensor to be detected collected by a sensor during a product manufacturing process; segmenting the time series data of the sensor to be detected to obtain an original Token sequence; inputting the original Token sequence into an anomaly detection network so that the anomaly detection network reconstructs the original Token sequence to obtain a reconstructed Token sequence, and determining an anomaly score based on the original Token sequence and the reconstructed Token sequence. If the anomaly score is greater than a preset score threshold, it is determined that the time series data of the sensor to be detected is abnormal.

[0007] An embodiment of the present application also provides an electronic device, comprising: a memory and a processor; the memory is used to store a computer program; the processor is coupled to the memory, and is used to execute the computer program to execute the steps in the model training method or the anomaly detection method.

[0008] An embodiment of the present application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor is enabled to implement the steps in the model training method or the anomaly detection method.

[0009] An embodiment of the present application also provides a computer program product, including a computer program / instructions, which, when executed by a processor, enables the processor to implement the steps in a model training method or anomaly detection method.

[0010] The embodiment of the present application provides a model training method, anomaly detection method, system, electronic device and storage medium. In the embodiment of the present application, a pre-trained language model is used as a basic model to construct an anomaly detection network, and normal sensor time series data collected during the product manufacturing process is used as a normal sample for unsupervised training to obtain an anomaly detection network with the ability to reconstruct time series data. The trained anomaly detection network has good accuracy and generalization ability, and can efficiently and accurately perform anomaly analysis on time series data. In particular, the anomaly detection network can accurately and efficiently detect abnormal time series data during semiconductor wafer processing to ensure the product yield of semiconductor wafers. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0012] Figure 1 is a production flow chart of an exemplary semiconductor wafer processing process;

[0013] Figure 2 This is a schematic diagram of using the FDC system to analyze product yield;

[0014] Figure 3 A flowchart of a model training method provided in an embodiment of the present application;

[0015] Figure 4 A schematic diagram of the structure of an exemplary anomaly detection network provided in an embodiment of the present application;

[0016] Figure 5 A flowchart of an anomaly detection method provided in an embodiment of the present application;

[0017] Figure 6 A schematic diagram of the structure of an anomaly detection system provided in an embodiment of the present application;

[0018] Figure 7 A schematic diagram of the structure of a model training device provided in an embodiment of the present application;

[0019] Figure 8 A schematic diagram of the structure of an abnormality detection device provided in an embodiment of the present application;

[0020] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0022] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the access relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B may be singular or plural. In the text description of the present application, the character " / " generally indicates that the previous and next associated objects are in an "or" relationship. In addition, in the embodiments of the present application, "first", "second", "third", etc. are only used to distinguish the contents of different objects and have no other special meanings.

[0023] The following is an introduction to the terms involved in the embodiments of the present application:

[0024] Time Series: refers to a series of values ​​​​of the same statistical indicator arranged in the order of their occurrence.

[0025] Sensor time series data: refers to the time series data collected by the sensor, for example, the time series data collected by the pressure sensor, the time series data collected by the temperature sensor, or the time series data collected by the flow sensor.

[0026] Pre-trained Language Models (PLMs): refers to models obtained by unsupervised or self-supervised pre-training on large-scale text data to learn common language structures and knowledge. Pre-trained language models can capture rich language structures and semantic information, and fine-tune the pre-trained language models according to downstream tasks, so as to achieve excellent performance on various downstream tasks. The model structure of pre-trained language models includes, but is not limited to: bidirectional encoder representation from transformers (BERT), autoregressive language model (Autoregressive Language Model), generative pre-trained language model (Generative Pre-trained Transformer, GPT). Among them, the Transformer module is a neural network structure based on the self-attention mechanism, which significantly improves the model performance through parallel processing and self-attention mechanism.

[0027] Parameter-Efficient Fine-Tuning (PEFT): is a method for efficiently adapting pre-trained language models to various downstream tasks by training a small number of parameters in the pre-trained language model without fine-tuning all model parameters. The PEFT method only fine-tunes a small number of model parameters, significantly reducing computational and storage costs.

[0028] Large language model: also known as large language model (LLM), refers to a type of natural language processing model with a very large number of parameters. Large language models are usually based on deep learning architectures, especially Transformer architectures, and learn the complex structure and rich contextual information of language through pre-training on massive text data.

[0029] Figure 1 is a production flow chart of an exemplary semiconductor wafer processing process. Figure 1 The production process of semiconductor wafer processing involves multiple processes and multiple production equipment. Specifically, the production process of semiconductor wafer processing can be roughly divided into front-end process, back-end process, packaging and testing.

[0030] The front-end process stage mainly includes the following steps: preparing silicon wafers, substrate preparation, using oxidation equipment and heat treatment equipment to perform oxidation layering, photolithography coating, pre-baking, photolithography exposure, post-baking, development, ion implantation using ion implantation equipment, and etching using an etcher. In addition, the front-end process stage also uses equipment for detecting wafers in the front-end process (which can be called front-end wafer detection equipment) and process control equipment.

[0031] In the back-end process stage, the following steps are mainly included: cleaning using cleaning equipment, ion doping using sputtering equipment, chemical vapor deposition using chemical vapor deposition (CVD) equipment, chemical mechanical polishing using chemical mechanical planarization (CMP), and physical vapor deposition using physical vapor deposition (PVD).

[0032] The packaging stage mainly includes the following steps: grinding and thinning the back of the semiconductor wafer and metallizing (i.e. depositing a metal layer on the back of the wafer) in sequence. After packaging, the semiconductor wafer is tested, and qualified semiconductor wafers can be installed in various electronic devices.

[0033] In actual applications, during the semiconductor wafer processing process, the mask plate may be used to repeat several times for steps such as oxidation layer addition, photolithography machine coating, cleaning, ion doping, chemical vapor deposition, chemical mechanical polishing, and physical vapor deposition.

[0034] Figure 2 This is a schematic diagram of using the FDC system to analyze product yield. Figure 2 ,In the semiconductor wafer processing timing data monitoring scenario, there are many sensor types, a large number of sensors, a large number of machines (ie, equipment), a large number of channels, and a large number of indicators. For the semiconductor wafer processing timing data monitoring scenario, high monitoring difficulty and poor mobility are the current pain points.

[0035] High difficulty in monitoring: A huge amount of sensor time series data is generated during the semiconductor wafer processing process. Sensor time series data reflects the stability of the equipment during the semiconductor wafer processing process, and to a certain extent, can reflect the product yield. By analyzing the sensor time series, unstable factors in the process can be effectively warned in advance. At present, the FDC (Fault Detection and Classification) system is usually used to collect, feature process and segment the sensor time series collected by the sensor end, and then statistical methods are used for statistical analysis, such as the mean, standard deviation, minimum, maximum, slope, etc. of the time slice. Due to the huge volume of data, it is easy to miss or misjudge.

[0036] Poor mobility: Due to the long semiconductor wafer processing process and the large number of machines, it is often encountered that after achieving the expected effect on a small number of machines, the effect becomes worse after migration to the remaining machines. Traditional statistical methods cannot quickly adapt to new data distribution patterns, resulting in difficulties in business expansion and it is difficult to achieve scale effects.

[0037] The principle of the anomaly detection method based on the FDC system is mainly: based on statistical methods, the time series of different sensors are segmented, and statistical features such as mean, standard deviation, slope, etc. are obtained within the time slice, and the distribution statistics of batch data are performed, and the product quality is monitored by comparing with the set threshold. For example, see Figure 2 , the number of manually configured control parameters (including setting thresholds) exceeds 13 million, which is a huge workload. For any time slice (denoted as Step N), statistical analysis is performed on the time series data within the time slice. For example, the time series data of the temperature within the time slice ( Figure 2 The red curve in the figure is used for statistical analysis of the pressure time series data within this time slice ( Figure 2 The green curve in the figure is used for statistical analysis of the pressure time series data within this time slice ( Figure 2 The black curve in the figure is used for statistical analysis. The statistical results are compared with the corresponding set thresholds to determine whether the semiconductor wafer processing process is abnormal.

[0038] The anomaly detection method based on the FDC system has major drawbacks, as follows:

[0039] 1.) A lot of manual work is required to determine the slice range.

[0040] 2.) A large amount of defect data needs to be collected for model training or threshold debugging. Sample accumulation is difficult and the model implementation cycle is long.

[0041] 3.) Statistical features have great limitations and lose a large number of temporal dynamic features, thus making threshold monitoring ineffective;

[0042] 4.) Statistical methods do not have the ability to be directly migrated. Copying between devices requires reinvesting manpower costs to perform tasks such as monitoring window settings, statistical value analysis, and threshold settings. A large amount of optimization work is required after going online.

[0043] From the above content, it can be seen that the difficulty of statistical analysis of massive amounts of sensor timing data increases, which is prone to missed judgments and misjudgments, making it difficult to ensure the product yield of semiconductor wafers.

[0044] The embodiment of the present application provides a model training method, anomaly detection method, system, electronic device and storage medium. In the embodiment of the present application, a pre-trained language model is used as a basic model to construct an anomaly detection network, and normal sensor time series data collected during the product manufacturing process is used as a normal sample for unsupervised training to obtain an anomaly detection network with the ability to reconstruct time series data. The trained anomaly detection network has good accuracy and generalization ability, and can efficiently and accurately perform anomaly analysis on time series data. In particular, the anomaly detection network can accurately and efficiently detect abnormal time series data during semiconductor wafer processing to ensure the product yield of semiconductor wafers.

[0045] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0046] Figure 3 A flowchart of a model training method provided in an embodiment of the present application. Figure 3 , the method may include the following steps:

[0047] 301. Segment and process the sample sensor time series data to obtain an original Token sequence, wherein the sample sensor time series data is normal sensor time series data collected during the product manufacturing process.

[0048] For industrial manufacturing scenarios, there are basically no massive public data sets, and there is no condition for large-scale data pre-training. In this embodiment, a small number of normal samples (also called qualified samples) are collected, and unsupervised training is performed using the normal samples to obtain an anomaly detection network that can detect anomalies in the time series data generated in the product manufacturing process.

[0049] In actual applications, there is no restriction on the industry in which the anomaly detection network is applied. For example, the anomaly detection network is applied to anomaly detection in the process of semiconductor wafer processing. For another example, the anomaly detection network is applied to anomaly detection in the process of urban rail transit vehicle manufacturing. For another example, the anomaly detection network is applied to anomaly detection in the process of new energy vehicle manufacturing.

[0050] For the industry in which the anomaly detection network is applied, the time series data collected by the sensor during the product manufacturing process of the industry is collected. Here, the time series data collected by the sensor is referred to as sensor time series data. Sensor time series data, for example, includes but is not limited to: temperature time series data, pressure time series data or flow time series data, etc. Normal sensor time series data is screened out from the sensor time series data generated in the product manufacturing process. Normal sensor time series data falls within a pre-set reasonable data range, which can reflect that there is no fault in the product manufacturing process (that is, no abnormality occurs). Therefore, normal sensor time series data can reflect that the product yield meets expectations. In contrast to normal sensor time series data is abnormal sensor time series data. Abnormal sensor time series data does not fall within a pre-set reasonable data range, which reflects that there is a fault in the product manufacturing process (that is, there is an abnormality). Therefore, abnormal sensor time series data can reflect that the product yield does not meet expectations.

[0051] In this embodiment, model training no longer relies on abnormal sensor time series data (which can be understood as abnormal samples), but uses normal sensor time series data (which can be understood as normal samples) as sample sensor time series data to participate in model training. Relatively speaking, especially in the high-end manufacturing industry, normal samples are easy to obtain, while abnormal samples are relatively scarce. Using normal samples for model training can improve the feasibility of anomaly detection networks in industrial scenarios. In other words, using a small number of normal samples for unsupervised training does not require the accumulation of a large number of abnormal samples, which can speed up the implementation of anomaly detection networks.

[0052] In practical applications, in the model training stage, the sample sensor time series data collected can be directly segmented. Further optionally, before the sample sensor time series data is segmented, the sample sensor time series data can also be normalized. Through normalization, the scale difference of the data can be reduced, so that the data has certain distribution characteristics, which is conducive to accelerating the convergence speed of model training and improving model performance. In practical applications, any normalization processing method can be used, and there is no restriction on this. Further optionally, the sample sensor time series data can be processed by instance normalization. Instance normalization can make the data distribution more balanced and speed up the model training speed. Exemplarily, the instance normalization processing method is: based on the sensor data at multiple moments included in the sample sensor time series data, the mean and / or standard deviation corresponding to the sample sensor time series data are calculated, and the sensor data at multiple moments included in the sample sensor time series data are normalized according to the mean and / or standard deviation.

[0053] In practical applications, patch processing can split time series data into multiple tokens. A token can be considered as time series data within a time slice (also called a time range or time window), that is, the data collected by the sensor within the time slice. In natural language processing, tokens can be considered as word units, which are the smallest units of text segmentation in natural language processing. Word units are, for example, words, punctuation marks, numbers, or special characters. For pre-trained language models, tokens that represent time series data within a time slice can be considered as word units.

[0054] In practical applications, there is no limit on the step size for segmenting time series data. For example, the step size is a fixed duration, and each Token is a time series data of a fixed duration, and the fixed duration can be flexibly set as needed. For a specific example, the time series data of temperature with a duration of 10 seconds is segmented to obtain 5 Tokens, and each Token is a time series data of temperature for 2 seconds. For another example, the step size is set to a fixed number, and each Token is a fixed number of time series data, and the fixed number can be flexibly set as needed. For a specific example, the time series data of temperature at 160 moments is segmented to obtain 10 Tokens, and each Token includes the time series data of temperature at 16 moments.

[0055] In this embodiment, the sample sensor time series data is segmented and processed, and the sample sensor time series data can be segmented into multiple tokens, and multiple tokens form a token sequence. For the sake of distinction, the token sequence obtained by the segmentation process is referred to as the original token sequence. The segmentation process can reduce data noise and solve problems such as difficulty in model training and poor model generalization ability caused by data noise.

[0056] 302. Input the original Token sequence into an anomaly detection network constructed based on the target pre-trained language model, so that the anomaly detection network reconstructs the original Token sequence to obtain a reconstructed Token sequence.

[0057] In this embodiment, the target pre-trained language model is used as the basic model to build an anomaly detection network. Fine-tuning is performed on a small number of downstream tasks to obtain an anomaly detection network with the ability to reconstruct and analyze time series data.

[0058] In practical applications, there is no restriction on the network structure of the anomaly detection network. For example, the anomaly detection network may include an embedding layer and a target pre-trained language model in sequence. This anomaly detection network needs to perform feature dimension mapping processing on the output result of the target pre-trained language model. For another example, the anomaly detection network may include a target pre-trained language model and an output layer in sequence. This anomaly detection network needs to embed the original Token sequence before inputting it into the target pre-trained language model. Further, in order to improve the generalization ability and accuracy of the anomaly detection network, see Figure 4 , the anomaly detection network may include an embedding layer, a target pre-trained language model, and an output layer connected in sequence. Based on this, the implementation of step 302 is as follows: inputting the original Token sequence into the embedding layer of the anomaly detection network, so that the embedding layer embeds the original Token sequence to obtain an embedding vector; inputting the embedding vector into the target pre-trained language model of the anomaly detection network, so that the target pre-trained language model reconstructs the embedded vector based on the embedding vector to obtain an initial reconstructed Token sequence; inputting the initial reconstructed Token sequence into the output layer of the anomaly detection network, so that the output layer maps the feature dimensions of the initial reconstructed Token sequence to obtain a reconstructed Token sequence.

[0059] Specifically, the embedding layer is used for embedding processing, which can convert high-dimensional sparse vectors into dense vectors, thereby facilitating downstream model processing. Embedding processing includes, but is not limited to, temporal embedding processing, positional embedding processing, and token embedding processing. Among them, temporal embedding processing encodes the acquisition time of the data; positional embedding processing encodes the sorting position of the data points in the time series data, so that the model can learn the front and back relationship of the data; token embedding processing is the process of converting the token into a vector of fixed length. In this embodiment, token embedding processing can be understood as mapping the feature dimension of the token, and the mapping processing can be dimensionality reduction processing or dimensionality increase processing, but is not limited to this. For example, token embedding processing can use 1D (one-dimensional) convolution to map the feature dimension of the time series data from the input dimension n to the model dimension. 1D convolution can effectively encode the local features in the time series data through the learned convolution kernel weights, and convert them into the feature dimensions required by the pre-trained language model, so that the time series data can adapt to the input requirements of the pre-trained language model. For example, the sample sensor time series data is composed of sensor time series data collected by n sensors respectively, that is, the sample sensor time series data includes sensor time series data of n dimensions, where n is a positive integer; the Token obtained by segmenting the sample sensor time series data is essentially sensor time series data of n dimensions; the model dimension of the target pre-trained language model is 4096, and the Token can be mapped from the input dimension n to the model dimension 4096 through 1D convolution.

[0060] In practical applications, there is no restriction on the embedding processing method of the embedding layer. For example, the embedding layer performs token embedding processing on the original token sequence to obtain a token embedding vector; and the token embedding vector is used as the embedding vector. For another example, the embedding layer performs time embedding processing on the original token sequence to obtain a time embedding vector; the embedding layer performs token embedding processing on the original token sequence to obtain a token embedding vector; and the embedding vector is obtained based on the time embedding vector and the token embedding vector. For another example, the embedding layer performs time embedding processing on the original token sequence to obtain a time embedding vector; the embedding layer performs position embedding processing on the original token sequence to obtain a position embedding vector; the embedding layer performs token embedding processing on the original token sequence to obtain a token embedding vector; and the embedding vector is obtained based on the time embedding vector, the position embedding vector and the token embedding vector.

[0061] It is worth noting that various operations such as vector addition, vector subtraction or vector concatenation can be performed on the time embedding vector, the position embedding vector or the token embedding vector to obtain the embedding vector output by the embedding layer, without any restriction.

[0062] It is worth noting that the embedding vector obtained based on the time embedding vector, position embedding vector and Token embedding vector, because it integrates the temporal information of the time series, the position information and the semantic information of the Token, can enable the anomaly detection network to better understand and process the time series data, and can effectively improve the model accuracy of the anomaly detection network.

[0063] In this embodiment, the original Token sequence is input into the embedding layer of the anomaly detection network, and the embedding layer outputs an embedding vector. The embedding vector is input into the target pre-trained language model of the anomaly detection network, so that the target pre-trained language model performs reconstruction processing based on the embedding vector to obtain an initial reconstructed Token sequence.

[0064] In practical applications, the target pre-trained language model can be various existing complete pre-trained language models. Considering the huge number of parameters of the complete pre-trained language model, in order to balance the computational efficiency and generalization ability, several network modules can be selected from the complete pre-trained language model to form the target pre-trained language model; corresponding to the complete pre-trained language model, the target pre-trained language model is an incomplete pre-trained language model. It is understandable that the network structure of the network modules included in different pre-trained language models is different. For example, the existing complete pre-trained language model has a language model with 7 billion parameters, and several (for example, 6) network modules are selected from the complete pre-trained language model to form the target pre-trained language model. The network module can be, for example, a Transformer-based model, and the network module includes some core components, such as but not limited to: self-attention mechanism module, layer normalization (Layer Norm), feed forward neural network (Feed Forward). It is understandable that the existing complete pre-trained language model includes multiple network modules, and multiple network modules selected from multiple network modules and connected in sequence can form the target pre-trained language model. Compared with the complete pre-trained language model, the target pre-trained language model has fewer network modules and is a pre-trained language model with a smaller parameter scale. The model performance of the target pre-trained language model is not much different from that of the complete pre-trained language model, but the model parameters of the target pre-trained language model are greatly reduced, thereby balancing the computational efficiency and generalization ability of the target pre-trained language model.

[0065] In this embodiment, the target pre-trained language model has the ability to reconstruct time series, and can reconstruct the original Token sequence based on the embedding vector of the input original Token sequence. Here, the time series obtained by reconstructing the original Token sequence is referred to as the initial reconstructed Token sequence. Since the feature dimension of the initial reconstructed Token sequence is different from the feature dimension of the original Token sequence, it is also necessary to input the initial reconstructed Token sequence into the output layer of the anomaly detection network, so that the output layer maps the feature dimension of the initial reconstructed Token sequence to obtain a reconstructed Token sequence, thereby making the feature dimension of the reconstructed Token sequence the same as the feature dimension of the input original Token sequence.

[0066] 303. According to the reconstruction error between the original Token sequence and the reconstructed Token sequence, adjust the network parameters of the anomaly detection network.

[0067] In this embodiment, any loss function may be used to calculate the reconstruction error between the original Token sequence and the reconstructed Token sequence. Any loss function includes, but is not limited to, negative log-likelihood loss function (NLL Loss), cross-entropy loss function (Cross-Entropy Loss), and reconstruction error loss function (Reconstruction Error Loss).

[0068] During the model training process, the network parameters of the anomaly detection network are adjusted with the goal of minimizing the reconstruction error. In practical applications, the model training can be iteratively performed multiple times. After each model training, the anomaly detection network with adjusted network parameters is used as the next anomaly detection network to be trained. The next model training is performed using new normal samples until the end training condition is met. The anomaly detection network obtained from the last training is used as the final anomaly detection network. The end training condition can be that the number of model training times reaches a specified number, or the reconstruction error is lower than a set threshold, and no specific restrictions are made here.

[0069] In practical applications, the network parameters that need to be adjusted for the anomaly detection network can be flexibly selected as needed, without any restrictions. Further optionally, the network parameters of the anomaly detection network can be adjusted in a parameter-efficient fine-tuning manner, that is, a small number of network parameters of the anomaly detection network can be adjusted. Optionally, when adjusting the network parameters of the anomaly detection network in a parameter-efficient fine-tuning manner, LoRA (Low-Rank Adaptation) training can be performed on the self-attention module in the target pre-trained language model. LoRA training is a lightweight fine-tuning method that can effectively and efficiently adjust the pre-trained language model to better adapt to downstream tasks. In practical applications, when adjusting the network parameters of the anomaly detection network in a parameter-efficient fine-tuning manner, the network parameters of the embedding layer and / or output layer in the anomaly detection network can also be adjusted, without any restrictions.

[0070] In order to better understand the model training process of the anomaly detection network, the following Figure 4 Make an introduction.

[0071] First, prepare a normal sample. The normal sample includes sample sensor time series data from normal time series data collected by sensors during the product manufacturing process. The sample sensor time series data may include normal time series data collected by one or more sensors. For example, the characteristic dimension of the sample sensor time series data is 3, that is, the sample sensor time series data includes normal time series data collected by three sensors. Figure 4 Taking the sample sensor timing data shown as an example, the sample sensor timing data includes the timing data of pressure collected by the pressure sensor, the timing data of temperature collected by the temperature sensor, and the timing data of torque collected by the torque sensor, that is, the characteristic dimension of the sample sensor timing data is 3.

[0072] Next, the sample sensor time series data is instance normalized, and the normalized sample sensor time series data is segmented to obtain the original Token sequence. For example, when performing the segmentation process, the step size can be 16, so that each Token in the original Token sequence includes data collected by the sensor at 16 moments.

[0073] Next, the original Token sequence is input into the embedding layer of the anomaly detection network. The embedding layer performs time embedding, position embedding, and Token embedding on the original Token sequence, and adds or concatenates the time embedding vector, the position embedding vector, and the Token embedding vector to obtain an embedding vector. The embedding vector is input into the target pre-trained language model, and the target pre-trained language model outputs the initial reconstructed Token sequence. The output layer of the anomaly detection network maps the feature dimensions of the initial reconstructed Token sequence to obtain a reconstructed Token sequence. The feature dimensions of the reconstructed Token sequence are the same as those of the original Token sequence.

[0074] Figure 4 The target pre-trained language model shown is composed of 6 network modules in the complete pre-trained language model. The network module can be, for example, a Transformer-based model. The network module includes some core components, including but not limited to: a self-attention mechanism module, layer normalization (Layer Norm), and a feedforward neural network (Feed Forward).

[0075] Among them, the self-attention mechanism module generates the final output through the interaction of query (Query, Q), key (Key, K) and value (Value, V). Specifically, each Token in the input data of the hidden state (Hidden States) is transformed by the weight matrix Wq to obtain the corresponding query vector; each Token is transformed by the weight matrix Wk to obtain the corresponding key vector; each Token is transformed by the weight matrix WV to obtain the corresponding value vector; the output result of the self-attention mechanism module is determined based on the query vector, key vector, and value vector of each Token. For more information about the self-attention mechanism module, please refer to the relevant technology, which will not be repeated here.

[0076] Among them, layer normalization: normalize the results to stabilize the training process.

[0077] Among them, the feedforward neural network usually consists of two linear transformations and an activation function. Its function is to perform nonlinear transformation on the input in order to better capture complex patterns.

[0078] Figure 4The basic principle of the network module shown is roughly as follows: the input data is processed by the self-attention mechanism module, the output result of the self-attention mechanism module and the input data are subjected to various fusion processes such as addition, and the addition result is normalized by layer normalization. The normalized result is input into the feedforward neural network for processing, the output result of the feedforward neural network and the normalized result are added to obtain a new addition result; the new addition result is normalized by layer normalization to obtain the output result of the network module.

[0079] During the model training phase, the network parameters of the anomaly detection network are adjusted in an efficient parameter fine-tuning manner according to the reconstruction error between the original Token sequence and the reconstructed Token sequence. Figure 4 For example, the network parameters of the embedding layer and the output layer in the anomaly detection network are adjusted, and some network parameters of the target pre-trained language model are adjusted. For example, the network parameters of the feedforward neural network are frozen, the network parameters of the fine-tuning layer are normalized, the weight matrix of the self-attention mechanism module is frozen, and the low-rank matrices added to the weight matrix Wq and the weight matrix Wk in the self-attention mechanism module are fine-tuned. It can be understood that the low-rank matrices added to the weight matrix Wq and the weight matrix Wk in the self-attention mechanism module are fine-tuned, that is, the LoRA training of the self-attention module is realized.

[0080] It is worth noting that the embodiments of the present application realize end-to-end model development, which basically does not require artificial features and does not require the accumulation of a large number of abnormal samples (abnormal samples are often scarce in high-end manufacturing). By using a small number of normal samples for training, the pre-trained language model can be used for industrial time series data analysis, which speeds up the implementation of pre-trained language models in various industries such as the semiconductor industry.

[0081] In addition, the training process only performs unsupervised training on normal samples, reducing the dependence on abnormal samples, and the anomaly detection network acquires the ability to understand the distribution, encoding or reconstruction of normal samples.

[0082] Since the initialization weights provided by the pre-trained language model have good generalization ability, the amount of data relied on for the training of the anomaly detection network model built based on the pre-trained language model is relatively small. Compared with the amount of data required for the training of the anomaly detection network model built based on the traditional small model as the base model, the amount of data relied on for the training of the anomaly detection network model built based on the pre-trained language model can be reduced by 90%. Examples of traditional small models include but are not limited to: PatchTST (Patch-based Temporal Self-Attention) and TimesNet. PatchTST is a Transformer-based time series prediction model specially designed to capture complex temporal patterns in long sequences. TimesNet is an efficient time series prediction model that combines the advantages of convolutional neural networks and gated recurrent units, aiming to improve prediction accuracy while maintaining the simplicity and computational efficiency of the model.

[0083] In addition, the pre-trained language model has strong generalization ability. After a device is deployed, it can be fine-tuned with a small amount of data when migrating to a new device to achieve the effect of a large number of fine-tuning of a small model, greatly improving the migration efficiency. The temporal dynamic features extracted based on the pre-trained language model can better represent the temporal process than artificial features, and obtain better algorithm effects.

[0084] The technical solution provided in the embodiment of the present application uses a pre-trained language model as a basic model to construct an anomaly detection network, uses normal sensor time series data collected during the product manufacturing process as normal samples, performs unsupervised training, and obtains an anomaly detection network with the ability to reconstruct time series data. The trained anomaly detection network has good accuracy and generalization ability, and can efficiently and accurately perform anomaly analysis on time series data. In particular, the anomaly detection network can accurately and efficiently detect abnormal time series data during semiconductor wafer processing to ensure the product yield of semiconductor wafers.

[0085] After the anomaly detection network is trained, it can be applied to anomaly detection in industrial time series data. There is no restriction on the industry in which the anomaly detection network is applied. In particular, when the anomaly detection network is applied to anomaly detection in the semiconductor wafer processing process, it can achieve a defect recall rate that meets the expected effect and be promoted in batches in the semiconductor customer wafer process.

[0086] Figure 5 A flowchart of an abnormality detection method provided in an embodiment of the present application. Figure 5 , the method may include the following steps:

[0087] 501. Obtain time series data of the sensor to be detected collected by the sensor during the product manufacturing process.

[0088] 502. Segment the time series data of the sensor to be detected to obtain an original Token sequence.

[0089] 503. Input the original Token sequence into the anomaly detection network so that the anomaly detection network reconstructs the original Token sequence to obtain a reconstructed Token sequence, and determines an anomaly score based on the original Token sequence and the reconstructed Token sequence.

[0090] 504. If the abnormality score is greater than a preset score threshold, it is determined that the time series data of the sensor to be detected is abnormal.

[0091] In practical applications, when applying an anomaly detection network to analyze abnormal sensor time series data, first, obtain the sensor time series data to be detected collected by the sensor during the product manufacturing process, and the sensor time series data to be detected is also the sensor time series data that needs to be detected for anomaly detection. The sensor time series data to be detected may include time series data collected by one or more sensors, for example, the sensor time series data to be detected includes the time series data of temperature collected by the temperature sensor, the time series data of pressure collected by the pressure sensor, and the time series data of flow collected by the flow sensor.

[0092] Next, the time series data of the sensor to be detected is segmented to obtain the original Token sequence. In practical applications, the time series data of the sensor to be detected can be segmented directly, and the time series data of the sensor to be detected can also be normalized before segmenting. Preferably, the normalization is an instance normalization. For an introduction to the normalization, please refer to the relevant introduction of the aforementioned embodiment, which will not be repeated here.

[0093] Finally, the original Token sequence obtained by segmenting the time series data of the sensor to be detected is input into the anomaly detection network, so that the anomaly detection network reconstructs the original Token sequence to obtain the reconstructed Token sequence, and determines the anomaly score based on the original Token sequence and the reconstructed Token sequence. The anomaly score represents the probability of anomaly in the time series data of the sensor to be detected, and the anomaly score is proportional to the probability of anomaly. It can be understood that the higher the anomaly score, the greater the probability of anomaly in the time series data of the sensor to be detected.

[0094] In this embodiment, the anomaly detection network does not select a method for determining anomaly scores based on the original Token sequence and the reconstructed Token sequence. For example, the difference between the original Token sequence and the reconstructed Token sequence is used as the anomaly score. For another example, the difference between the original Token sequence and the reconstructed Token sequence is added to a fixed value to obtain the anomaly score. For another example, the anomaly score is calculated according to formula (1).

[0095] SCORE=(XY)×2 / L (1)

[0096] Among them, SCORE represents the anomaly score, X represents the original Token sequence, and Y represents the reconstructed Token sequence; L is the length of the time series, that is, the number of tokens in the Token sequence, and L is a positive integer.

[0097] For the input time series data X=(x1,x2,x3……xL),xt=(d1,d2,d3……dn),xt is any one of the L tokens, any one token includes the data collected by n sensors respectively, n is a positive integer, for example, d1 represents the temperature data collected by the temperature sensor, d2 represents the pressure data collected by the pressure sensor, d3 represents the flow data collected by the flow sensor…dn represents the torsion data collected by n torsion sensors, and so on.

[0098] For the reconstructed time series data Y=(y1,y2,y3……yL),yt=(m1,m2,m3……mn),yt is any one of the L Tokens, any one Token includes the data reconstructed by n sensors respectively, n is a positive integer, for example, m1 represents the temperature data reconstructed by the temperature sensor, m2 represents the pressure data reconstructed by the pressure sensor, m3 represents the flow data reconstructed by the flow sensor……mn represents the torsion data reconstructed by the torsion sensor, and so on.

[0099] In some optional embodiments, the abnormality score can also be compared with a preset score threshold. If the abnormality score is greater than the preset score threshold, it means that the timing data of the sensor to be detected is abnormal, and an alarm message can be output to indicate that the product manufacturing process is abnormal, so that relevant personnel can conduct quality inspections on the currently processed products and overhaul the equipment in a timely manner to prevent product yield problems in advance. If the abnormality score is less than or equal to the preset score threshold, it means that the timing data of the sensor to be detected is normal, which means that the product manufacturing process is normal and can ensure a good product yield.

[0100] In practical applications, the preset scoring threshold can be flexibly set as needed. Further, optionally, the trained anomaly detection network can be tested using a test set to obtain test results; the preset scoring threshold is optimized based on the test results. The optimized scoring threshold can more accurately warn whether anomalies occur in the product manufacturing process.

[0101] In practical applications, the test set may include normal samples and abnormal samples. When using normal samples to test the anomaly detection network, if the abnormality score corresponding to the normal sample is greater than the current scoring threshold, the normal sample is mistakenly identified as an abnormal sample. If the abnormality score corresponding to the normal sample is less than or equal to the current scoring threshold, the normal sample is correctly identified as a true normal sample. When using abnormal samples to test the anomaly detection network, if the abnormality score corresponding to the abnormal sample is greater than the current scoring threshold, the abnormal sample is correctly identified as an abnormal sample. If the abnormality score corresponding to the abnormal sample is less than or equal to the current scoring threshold, the abnormal sample is mistakenly identified as a normal sample. The test results are statistically analyzed according to the test situation, and the test results include precision and / or recall. Precision can reflect the proportion of normal samples predicted to be normal samples that are actually normal samples, that is, how many of all normal samples predicted to be normal are truly normal samples. Recall can reflect the proportion of normal samples that are actually normal samples that are correctly predicted to be normal samples, that is, how many of all truly normal samples are correctly predicted to be normal samples.

[0102] In practical applications, the preset scoring threshold is optimized with the goal of meeting the precision requirement. Alternatively, the preset scoring threshold is optimized with the goal of meeting the recall requirement. Alternatively, the preset scoring threshold is optimized with the goal of balancing the precision and recall, and there is no restriction on this.

[0103] The technical solution provided in the embodiment of the present application utilizes an anomaly detection network constructed with a pre-trained language model as the basic model to efficiently and accurately analyze industrial time series data, which can effectively ensure the product yield in the industrial manufacturing process and realize the implementation of the pre-trained language model in industrial scenarios.

[0104] Figure 6 This is a schematic diagram of the structure of an abnormality detection system provided in an embodiment of the present application. Figure 6 The anomaly detection system may include: an Internet of Things system 10 and an intelligent manufacturing platform 20 deployed in a semiconductor production plant.

[0105] The Internet of Things system 10 is used to control the sensor to collect data during the semiconductor wafer processing process, obtain the time series data of the sensor to be detected, and send the time series data of the sensor to be detected to the intelligent manufacturing platform;

[0106] The intelligent manufacturing platform 20 is used to segment the time series data of the sensor to be detected to obtain an original Token sequence; the original Token sequence is input into the anomaly detection network so that the anomaly detection network reconstructs the original Token sequence to obtain a reconstructed Token sequence, and an anomaly score is determined based on the original Token sequence and the reconstructed Token sequence. If the anomaly score is greater than a preset score threshold, it is determined that the time series data of the sensor to be detected is abnormal.

[0107] For the training process and reasoning process of the anomaly detection network, please refer to the relevant introduction of the aforementioned embodiment, which will not be repeated here.

[0108] In actual applications, the Internet of Things system 10 can obtain sensor timing data collected by various sensors such as temperature sensors, pressure sensors, flow sensors, torque sensors, humidity sensors, and air pressure sensors, and send the sensor timing data collected by each sensor as the sensor timing data to be detected to the intelligent manufacturing platform 20 for processing.

[0109] The intelligent manufacturing platform 20 can integrate artificial intelligence and big data technologies into traditional production lines, help manufacturing companies achieve the coordination of data flow, production flow and control flow, improve production efficiency, reduce production costs, and achieve autonomous and controllable intelligent manufacturing in an autonomous and controllable path. The intelligent manufacturing platform 20 can be composed of software and / or hardware, and the intelligent manufacturing platform 20 includes, but is not limited to: distributed servers, conventional servers, cloud servers, virtual servers, edge servers, high performance computing (HPC) server clusters, etc.

[0110] The intelligent manufacturing platform 20 calls the anomaly detection network to perform anomaly detection on the time series data of the sensor to be detected to obtain anomaly detection results. The anomaly detection results include, but are not limited to: anomaly score, a comparison result between the anomaly score and a preset score threshold, an alarm message reflecting that the anomaly score is greater than the preset score threshold, etc. The intelligent manufacturing platform 20 sends the anomaly detection results to the monitoring terminal 30 so that the relevant personnel of the monitoring terminal 30 can promptly know the anomaly detection results and control the semiconductor wafer processing process based on the anomaly detection results. Among them, the monitoring terminal 30 includes, but is not limited to: a mobile phone, a desktop computer, a tablet computer, a wearable device or a vehicle-mounted terminal, etc.

[0111] The anomaly detection system provided in the embodiment of the present application collects the time series data of the sensor to be detected through the Internet of Things system deployed in the semiconductor production factory, and calls the anomaly detection network through the intelligent manufacturing platform to perform anomaly detection on the time series data of the sensor to be detected. Since the anomaly detection network constructed with the pre-trained language model as the basic model is used to efficiently and accurately analyze the time series data in the semiconductor wafer processing process, the product yield in the semiconductor wafer processing process can be effectively guaranteed, and the pre-trained language model is implemented in the semiconductor wafer processing scenario.

[0112] Figure 7 This is a schematic diagram of the structure of a model training device provided in an embodiment of the present application. Figure 7 , the device may include:

[0113] The segmentation module 71 is used to segment the sample sensor time series data to obtain the original Token sequence, wherein the sample sensor time series data is the normal sensor time series data collected during the product manufacturing process;

[0114] The training module 72 is used to input the original Token sequence into the anomaly detection network constructed based on the target pre-trained language model, so that the anomaly detection network reconstructs the original Token sequence to obtain a reconstructed Token sequence; and adjust the network parameters of the anomaly detection network according to the reconstruction error between the original Token sequence and the reconstructed Token sequence.

[0115] Further optionally, when the training module 72 performs reconstruction processing, it is specifically used to: input the original Token sequence into the embedding layer of the anomaly detection network, so that the embedding layer embeds the original Token sequence to obtain an embedding vector; input the embedding vector into the target pre-trained language model of the anomaly detection network, so that the target pre-trained language model performs reconstruction processing based on the embedding vector to obtain an initial reconstructed Token sequence; input the initial reconstructed Token sequence into the output layer of the anomaly detection network, so that the output layer maps the feature dimensions of the initial reconstructed Token sequence to obtain a reconstructed Token sequence.

[0116] Further optionally, the above-mentioned device also includes: a normalization processing module, used to perform instance normalization processing on the sample sensor time series data.

[0117] Further optionally, when the training module 72 performs embedding processing, it is specifically used to: perform time embedding processing on the original Token sequence by the embedding layer to obtain a time embedding vector; perform position embedding processing on the original Token sequence by the embedding layer to obtain a position embedding vector; perform Token embedding processing on the original Token sequence by the embedding layer to obtain a Token embedding vector; obtain an embedding vector based on the time embedding vector, the position embedding vector and the Token embedding vector.

[0118] Further optionally, when the training module 72 adjusts the network parameters of the anomaly detection network in a parameter efficient fine-tuning manner, it is specifically used to: perform low-rank adaptive LoRA training on the self-attention mechanism module in the target pre-trained language model.

[0119] Further optionally, the target pre-trained language model is composed of some network modules in the complete pre-trained language model.

[0120] Figure 7 The device shown can perform Figure 3 The implementation principle and technical effect of the method shown in the illustrated embodiment will not be repeated here.

[0121] Figure 8 This is a schematic diagram of the structure of an abnormality detection device provided in an embodiment of the present application. Figure 8 , the device may include:

[0122] An acquisition module 81 is used to acquire the time series data of the sensor to be detected collected by the sensor during the product manufacturing process;

[0123] A segmentation module 82 is used to segment the time series data of the sensor to be detected to obtain an original Token sequence;

[0124] The detection module 83 is used to input the original Token sequence into the anomaly detection network so that the anomaly detection network reconstructs the original Token sequence to obtain a reconstructed Token sequence, and determines the anomaly score based on the original Token sequence and the reconstructed Token sequence. If the anomaly score is greater than a preset score threshold, it is determined that the time series data of the sensor to be detected is abnormal.

[0125] Further optionally, the detection module 83 is further configured to: output an alarm message if the abnormality score is greater than a preset score threshold.

[0126] Further optionally, the above-mentioned device also includes: an optimization module, which is used to test the trained anomaly detection network using a test set to obtain a test result; and optimize a preset scoring threshold according to the test result.

[0127] Further optionally, the anomaly detection network is applied to anomaly detection during semiconductor wafer processing.

[0128] Figure 8 The device shown can perform Figure 5 The implementation principle and technical effect of the method shown in the illustrated embodiment will not be repeated here.

[0129] It should be noted that the execution subject of each step of the method provided in the above embodiment can be the same device, or the method can be executed by different devices. For example, the execution subject of steps 301 to 303 can be device A; for another example, the execution subject of steps 301 and 302 can be device A, and the execution subject of step 303 can be device B; and so on.

[0130] In addition, in some of the processes described in the above embodiments and the accompanying drawings, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel, and the sequence numbers of the operations, such as 301, 302, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.

[0131] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0132] Fig. 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig. 9 As shown, the electronic device includes: a memory 91 and a processor 92;

[0133] The memory 91 is used to store computer programs and can be configured to store various other data to support operations on the computing platform. Examples of such data include instructions for any application or method operating on the computing platform, contact data, phone book data, messages, pictures, videos, etc.

[0134] The memory 91 can be implemented by any type of volatile or non-volatile memory device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0135] The processor 92 is coupled to the memory 91 and is used to execute the computer program in the memory 91 for: steps in the model training method or the anomaly detection method.

[0136] Further optional, such as Fig. 9 As shown, the electronic device also includes: a communication component 93, a display 94, a power component 95, an audio component 96 and other components. Fig. 9 Only some components are shown schematically, which does not mean that the electronic device only includes Fig. 9 In addition, Fig. 9 The components in the dashed box are optional components, not mandatory components, and the specific components depend on the product form of the electronic device. The electronic device of this embodiment can be implemented as a terminal device such as a desktop computer, a laptop computer, a smart phone, or an IOT (Internet of Things) device, or a server device such as a conventional server, a cloud server, or a server array. If the electronic device of this embodiment is implemented as a terminal device such as a desktop computer, a laptop computer, a smart phone, etc., it can include Fig. 9 If the electronic device of this embodiment is implemented as a server device such as a conventional server, a cloud server or a server array, it may not include Fig. 9 Components within the dashed box.

[0137] For the detailed implementation process of the processor executing each action, please refer to the relevant description in the aforementioned method embodiment or device embodiment, which will not be repeated here.

[0138] Accordingly, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed, can implement each step that can be executed by an electronic device in the above method embodiment.

[0139] Accordingly, an embodiment of the present application also provides a computer program product, including a computer program / instruction. When the computer program / instruction is executed by a processor, the processor is enabled to implement each step in the above method embodiment that can be executed by an electronic device.

[0140] The communication component is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi (Wireless Fidelity), 2G (2 Generation), 3G (3 Generation), 4G (4 Generation) / LTE (long Term Evolution), 5G (5 Generation), and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0141] The display includes a screen, and the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0142] The power supply assembly provides power to various components of the device where the power supply assembly is located. The power supply assembly may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device where the power supply assembly is located.

[0143] The above-mentioned audio component can be configured to output and / or input audio signals. For example, the audio component includes a microphone (MIC), and when the device where the audio component is located is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in a memory or sent via a communication component. In some embodiments, the audio component also includes a speaker for outputting an audio signal.

[0144] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0145] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0146] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0147] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0148] In a typical configuration, a computing device includes one or more processors (Central Processing Unit, CPU), input / output interface, network interface and memory.

[0149] Memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0150] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, Phase Change RAM (PRAM), Static Random-Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically-Erasable Programmable Read-Only Memory (EEPROM), flash memory or other memory technology, CD-ROM, Digital Versatile Disc (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0151] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0152] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A model training method, characterized in that: include: The sample sensor time series data is segmented and processed to obtain the original Token sequence, wherein the sample sensor time series data is the normal sensor time series data collected during the product manufacturing process, and the Token refers to the time series data within a time slice; Inputting the original Token sequence into an anomaly detection network constructed based on a target pre-trained language model, so that the anomaly detection network reconstructs the original Token sequence to obtain a reconstructed Token sequence; Adjusting network parameters of the anomaly detection network according to a reconstruction error between the original Token sequence and the reconstructed Token sequence; The anomaly detection network includes an embedding layer, a target pre-trained language model and an output layer connected in sequence; the model structure of the target pre-trained language model is any one of the following: a bidirectional encoder representation from a Transformer, an autoregressive language model, a generative pre-trained language model; Inputting the original Token sequence into an anomaly detection network constructed based on a target pre-trained language model, so that the anomaly detection network reconstructs the original Token sequence to obtain a reconstructed Token sequence, including: Inputting the original Token sequence into the embedding layer, so that the embedding layer embeds the original Token sequence to obtain an embedding vector; Inputting the embedding vector into the target pre-trained language model, so that the target pre-trained language model performs reconstruction processing based on the embedding vector to obtain an initial reconstructed Token sequence; The initial reconstructed Token sequence is input into the output layer, so that the output layer performs mapping processing on the feature dimension of the initial reconstructed Token sequence to obtain a reconstructed Token sequence.

2. The method according to claim 1, characterized in that The embedding layer embeds the original Token sequence to obtain an embedding vector, including: The embedding layer performs time embedding processing on the original Token sequence to obtain a time embedding vector; The embedding layer performs position embedding processing on the original Token sequence to obtain a position embedding vector; The embedding layer performs a Token embedding process on the original Token sequence to obtain a Token embedding vector; The embedding vector is obtained according to the time embedding vector, the position embedding vector and the Token embedding vector.

3. The method according to claim 1, characterized in that: Before the sample sensor time series data is segmented and processed, the following steps are also included: An instance normalization process is performed on the sample sensor time series data.

4. The method according to any one of claims 1 to 3, characterized in that: Adjusting network parameters of the anomaly detection network includes: The network parameters of the anomaly detection network are adjusted in a parameter efficient fine-tuning manner.

5. The method according to claim 4, characterized in that Adjusting the network parameters of the anomaly detection network in an efficient parameter fine-tuning manner includes: Low-rank adaptation LoRA training is performed on the self-attention mechanism module in the target pre-trained language model.

6. The method according to any one of claims 1 to 3, characterized in that: The target pre-trained language model is composed of some network modules in the complete pre-trained language model.

7. An anomaly detection method, characterized in that: include: Acquire the time series data of the sensor to be detected collected by the sensor during the product manufacturing process; Segment the time series data of the sensor to be detected to obtain an original Token sequence; Inputting the original Token sequence into an anomaly detection network so that the anomaly detection network reconstructs the original Token sequence to obtain a reconstructed Token sequence, and determining an anomaly score according to the original Token sequence and the reconstructed Token sequence; If the abnormality score is greater than a preset score threshold, determining that the time series data of the sensor to be detected is abnormal; Wherein, the anomaly detection network is trained according to the method according to any one of claims 1-6.

8. The method according to claim 7, characterized in that Also includes: If the abnormal score is greater than the preset score threshold, an alarm message is output.

9. The method according to claim 8, characterized in that Also includes: Using the test set to test the trained anomaly detection network to obtain a test result; The preset scoring threshold is optimized according to the test result.

10. The method according to any one of claims 7 to 9, characterized in that: The anomaly detection network is applied to anomaly detection in a semiconductor wafer processing process.

11. An anomaly detection system, characterized in that: The anomaly detection system includes: an IoT system and smart manufacturing platform deployed in a semiconductor production plant; The Internet of Things system is used to control sensors to collect data during semiconductor wafer processing, obtain time series data of sensors to be detected, and send the time series data of sensors to be detected to the intelligent manufacturing platform; The intelligent manufacturing platform is used to segment the time series data of the sensor to be detected to obtain an original Token sequence; input the original Token sequence into an anomaly detection network so that the anomaly detection network reconstructs the original Token sequence to obtain a reconstructed Token sequence, and determine an anomaly score based on the original Token sequence and the reconstructed Token sequence. If the anomaly score is greater than a preset score threshold, it is determined that the time series data of the sensor to be detected is abnormal; wherein the anomaly detection network is trained according to the method described in any one of claims 1-6.

12. An electronic device, characterized in that: include: Memory and processor; The memory is used to store a computer program; the processor is coupled to the memory and is used to execute the computer program to perform the steps in the method according to any one of claims 1 to 6 or 7 to 10.

13. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processor is enabled to implement the steps of the method according to any one of claims 1 to 6 or 7 to 10.

14. A computer program product, characterized in that The method comprises a computer program / instruction, which, when executed by a processor, enables the processor to implement the steps of the method according to any one of claims 1 to 6 or 7 to 10.