Silicon single crystal growth diameter prediction method based on attention and LSTM network

By using self-attention and LSTM models during the growth of silicon single crystals, combined with MIC and GWO algorithms, multi-step prediction of crystal diameter is achieved, solving the problem of measurement and prediction in traditional methods, and improving the quality of silicon single crystals and control accuracy.

CN118969148APending Publication Date: 2024-11-15XIAN UNIV OF TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411011935.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

During the growth of silicon single crystals, it is difficult for traditional methods to accurately measure and predict the crystal diameter, resulting in difficulty in quality control. Traditional variable detection is inaccurate and costly, making it difficult to achieve effective prediction of future crystal diameter changes.

Method used

Using self-attention (SA) and long-term memory network (LSTM) models, combined with maximum mutual information coefficient (MIC) and gray wolf optimization algorithm (GWO), data is collected from silicon single crystal growth for multiple purposes Step output prediction, establish a nonlinear mapping relationship of crystal diameter, and improve prediction accuracy and accuracy.

Benefits of technology

Accurate multi-step prediction of crystal diameter is achieved, the number of sensor layout is reduced, detection errors and costs are reduced, better crystal growth status evaluation and control guidance are provided, and the quality of silicon single crystals is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118969148A_ABST
    Figure CN118969148A_ABST
Patent Text Reader

Abstract

The invention discloses a silicon single crystal growth diameter prediction method based on attention and an LSTM network, and the method comprises the steps: firstly collecting process variable data and crystal diameter data at the same moment in a silicon single crystal growth process, and carrying out the preprocessing of the data; carrying out auxiliary variable selection on the preprocessed data by utilizing a maximum mutual information coefficient (MIC) method; and determining a model structure and establishing a nonlinear mapping relation between learning input and output of an LSTM-SA network model to complete prediction of the multi-step future value of the crystal diameter. According to the invention, a multi-step output prediction model of a crystal diameter index is established from the angle of data-driven prediction modeling by collecting process variables generated in the growth process of the silicon single crystal through a sensor, so as to assist field operators and a control system to make more reasonable and accurate control actions, thereby achieving the purpose of improving the quality of the czochralski silicon single crystal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of semiconductor Czochralski silicon single crystal growth, and in particular relates to a method for predicting the growth diameter of a silicon single crystal based on attention and LSTM networks. Background Art

[0002] Silicon single crystal is the most widely used and used semiconductor material in the field of integrated circuit chip manufacturing. The Czochralski method and crystal growth equipment (single crystal furnace) are the main methods and technical equipment for preparing large-size, electronic-grade silicon single crystals. With the gradual reduction of chip line width and the increase of silicon wafer size, higher requirements are placed on the quality indicators of silicon single crystals, including crystal diameter. Crystal diameter is the most representative quality indicator in the process of Czochralski silicon single crystal growth. It is the main indicator for measuring crystal quality and the operating status of single crystal furnaces. Therefore, how to control it within the expected range is one of the issues that the academic and industrial circles in the field of crystal growth continue to pay attention to. However, due to the high temperature environment inside the single crystal furnace and the strict requirements for furnace airtightness, it is impossible to directly measure the crystal diameter through sensors in the traditional sense. When measuring it indirectly (such as through image measurement and processing methods), there are certain difficulties and it is easy to be interfered by external factors and has high cost. Therefore, how to reduce the cost of crystal diameter measurement, improve the prediction accuracy and effectively predict its future change trend to assist the controller or on-site personnel to make correct control actions in advance is a key problem that needs to be solved urgently.

[0003] At present, there are two strategies for crystal diameter prediction modeling: one is based on the first principles method, and the other is the data-driven identification modeling method. Although the first principles model is favored by some on-site process engineers due to its transparency and interpretability, it is difficult to quickly establish these models for estimating or predicting crystal diameter indicators because the CZ silicon single crystal growth process is an extremely complex physical and chemical reaction process involving gas, liquid, and solid phases and their coupling. More importantly, this first principle model cannot predict the change of crystal diameter at different moments in the future through the current operating input variables. The data-driven modeling method does not require detailed and accurate prior knowledge of crystal growth. It can achieve offline modeling and online prediction functions for key crystal quality parameters by relying only on sufficient data during process operation. Therefore, the development of a data-driven crystal diameter sensor modeling method for the CZ silicon single crystal growth process can greatly reduce the number of sensors deployed, overcome the shortcomings of inaccurate traditional variable detection and large detection process lag, and meet the needs of the actual growth process. For complex industrial process objects such as the CZ silicon single crystal growth process, the data-driven crystal diameter soft measurement modeling method will be an effective solution. To this end, this paper proposes a multi-step output prediction method for crystal diameter indicators based on the long short-term memory network (LSTM) model based on self-attention (SA). For this, this paper uses the Grey Wolf Optimizer (GWO) algorithm to configure the optimal hyperparameters of the model to avoid the randomness of manual selection, so as to achieve more accurate crystal diameter indicator prediction results. In short, compared with the existing single-step prediction results, the proposed method can provide more crystal diameter prediction information to help on-site technicians better evaluate the current crystal growth status and achieve effective measurement and control of crystal diameter. Summary of the invention

[0004] The purpose of the present invention is to provide a silicon single crystal growth diameter prediction method based on attention and LSTM network. Through the process variables generated in the silicon single crystal growth process collected by sensors, a multi-step output prediction model of crystal diameter indicators is established from the perspective of data-driven predictive modeling to assist on-site operators and control systems to make more reasonable and accurate control actions, thereby achieving the purpose of improving the quality of direct-pull silicon single crystals.

[0005] The technical solution adopted by the present invention is a method for predicting the growth diameter of a silicon single crystal based on attention and LSTM network, which is characterized by being implemented specifically according to the following steps:

[0006] Step 1: collecting process variable data and crystal diameter data at the same time during the growth of silicon single crystals, and preprocessing these data;

[0007] Step 2: Use the maximum mutual information coefficient MIC method to select auxiliary variables for the preprocessed data;

[0008] Step 3, estimating the time lag order between the selected auxiliary variables and the crystal diameter, then performing time alignment of the data sequence, and dividing the modeling data set into a training set and a test set;

[0009] Step 4: Determine the model structure and establish an LSTM-SA network model to learn the nonlinear mapping relationship between input and output, and complete the prediction of multiple future values ​​of the crystal diameter.

[0010] The present invention is also characterized in that:

[0011] Step 1 is implemented as follows:

[0012] Collect key data during the growth of silicon single crystals: including heater power, thermal field temperature, crystal pulling speed, crystal rotation speed, crucible rising speed, crucible rotation speed, crystal weight, argon flow rate, crystal length, liquid level data and crystal diameter, and record them. First, use the three-times standard deviation principle to remove data outliers, and then use the minimum-maximum scaling method to normalize the data.

[0013] Step 1.1: Use the triple standard deviation principle to remove outliers:

[0014] To remove outliers from crystal diameter using the triple standard deviation principle, we must first calculate the mean μ and standard deviation σ of the crystal diameter data y, using the following formula:

[0015]

[0016] In the formula, y i is the i-th sample, n is the total number of samples;

[0017] Determine the threshold of outliers. The threshold range of outliers is determined by adding or subtracting three times the standard deviation from the mean, that is, the lower limit is μ-3σ and the upper limit is μ+3σ. Values ​​in the data set that are less than the lower limit and greater than the upper limit are identified as outliers. These values ​​and the corresponding auxiliary variables at that moment are deleted from the data set.

[0018] Step 1.2: Use the minimum-maximum scaling method to normalize the auxiliary variables and the crystal diameter. The crystal diameter is normalized. The specific steps are as follows:

[0019] Find the maximum value y in the crystal diameter data max Minimum value y min , and scale the crystal diameter data linearly to between 0 and 1, as follows:

[0020]

[0021] In the formula, y nor represents the normalized crystal diameter. The normalization method of other auxiliary variables is the same as above.

[0022] Step 2 is implemented as follows:

[0023] The MIC principle uses the concept of mutual information, which is expressed by the following equation:

[0024]

[0025] In the formula, x and y represent variables, p(x, y) represents the joint probability density distribution function of x and y, and p(x) and p(y) represent the marginal probability density functions of x and y. The calculation formula of MIC is as follows:

[0026]

[0027] In the formula, a and b represent the number of grid divisions in the x and y directions, and B is a variable that is considered to be set. The larger the value of MIC, the stronger the correlation between the two variables.

[0028] Step 3 is implemented as follows:

[0029] Step 3.1: Estimate the time lag order between input and output using the time lag estimation method of the cross-correlation function, where the cross-correlation coefficient is estimated as follows:

[0030]

[0031] In the formula, u and y are the historical data of input and output respectively, μ u , μ y and u 、s y are the mean and standard deviation of the input and output respectively, and n is the number of all samples;

[0032] Set the time delay range, calculate the correlation coefficient between each time delay order and the crystal diameter within this range, and find the time delay order with the maximum correlation coefficient, which is the real time delay order;

[0033] Step 3.2: Time series alignment and data set division:

[0034] The data are time-series aligned according to the identified time lag order, and 80% of the data set is used as the training set and the remaining 20% ​​as the test set.

[0035] Step 4 is implemented according to the following steps:

[0036] Determine the model structure and establish the nonlinear mapping relationship between the LSTM-SA network model learning input and output. The nonlinear relationship is described as follows:

[0037] y(k+1,k+2,k+3)=f(y(k),y(k-1),...,y(kn y ),x(k),x(k-1),...,x(kn u ))

[0038] Where f(·) is the nonlinear mapping function to be learned, n u and n y are the input and output orders, respectively, x(k) represents the auxiliary variable input at time k, and y(k+1, k+2, k+3) represents the crystal diameter from time k+1 to k+3;

[0039] Step 4.1: Standard Long Short-Term Memory Network LSTM

[0040] Input X k The basic update rule of an LSTM unit is as follows:

[0041] (1) Input gate:

[0042] i k =σ(W xi x k +W hi h k-1 +b i )

[0043] In the formula, i k is the output of the input gate, x k is the current input value, h k-1 is the output value at the previous moment; W i and W hi are the input gate weight matrix and the recursive weight matrix respectively; b i is the input gate bias, σ(·) is the sigmoid function;

[0044] (2) Forget Gate:

[0045] f k =σ(W f x k +W hf h k-1 +b f )

[0046] In the formula, f k is the output of the forget gate, W f and W hf are the forget gate weight matrix and the recursive weight matrix, respectively, f is the bias of the forget gate;

[0047] (3) Internal unit status update:

[0048] c k =f k ×c k-1 +i k ×tanh(W c x k +W hc h k-1 +b c )

[0049] In the formula, c k and c k-1 are the current internal unit state and the internal unit state at the previous moment, W c and W hc are the internal unit state weight matrix and the recursive weight matrix, b c is the bias of the internal cell state;

[0050] (4) Output gate:

[0051] o k =σ(W o x k +W ho h k-1 +b o )

[0052] h k =o k ·tanh(c k )

[0053] In the formula, o k is the output of the output gate, W o and W ho are the output gate weight matrix and the recursive weight matrix, respectively, b o is the bias of the output gate;

[0054] Step 4.2: Self-Attention Mechanism SA

[0055] The structure of the self-attention mechanism consists of three vectors: query q, key k, and value v. For a query, the attention mechanism calculates the similarity between the query and the keyword and gives higher weight to the value with high similarity.

[0056] Define query vector Q = [q1, q2, ..., q L ] T , key vector K = [k1, k2, ..., k L ] T , value vector V = [v1,v2,…,v L ] T , where L is the time step, the calculation formula of SA is as follows:

[0057]

[0058] Among them, the softmax function applies normalization to the attention score, d k is a proportional factor. The above formula determines the weight distribution of value by the similarity between query and key, thereby obtaining attention scores. These attention scores determine the weight of each sample in the sequence, giving higher weights to more relevant entities.

[0059] Specifically, given a set<key,value> , and a target query vector query, the SA mechanism calculates the similarity between the query and each set of keys to obtain the weight coefficient of each key, and then obtains the final attention value by weighted summation of the values;

[0060] Step 4.3: Standard LSTM-SA with self-attention mechanism

[0061] The self-attention mechanism is carefully integrated with the LSTM network. The SA mechanism module timely calculates the attention scores of each process variable of the input sample after passing through the LSTM layer, so as to give higher weights to the key parts of the input data, thereby improving the accuracy of the prediction. The feature matrix after the weight is given by the attention mechanism is then passed through a fully connected layer to obtain the final prediction output;

[0062] Step 4.4: GWO algorithm optimizes model parameters:

[0063] The objective function is to minimize in is the predicted value of the model, y is the actual value, N is the length of the data sequence, and the fitness function of the GWO algorithm is:

[0064]

[0065] The GWO algorithm calculates the fitness function above, updates the wolf pack position, obtains the optimal solution for the LSTM-SA network model parameters, and uses the optimal model parameters to build a multi-step prediction model for the crystal diameter index. The calculation process of the GWO algorithm is as follows:

[0066] The wolf pack is divided into four layers. The first layer is the α wolf pack, the leader of the pack, responsible for leading the entire wolf pack to hunt prey, which is the optimal solution in the algorithm; the second layer is the β wolf pack, which is responsible for assisting the α wolf pack, which is the suboptimal solution in the algorithm; the third layer is the δ wolf pack, which obeys the orders and decisions of α and β. α and β with poor fitness will be reduced to δ; the last layer is the ω wolf pack, which updates its position around α, β or δ. The hunting process of gray wolves includes the following three aspects:

[0067] (1) Surrounding prey: In the GWO algorithm, the gray wolf uses the following position update formula to surround the prey during the hunting process:

[0068]

[0069] In the formula, is the distance between the gray wolf and its prey, Update the formula for the gray wolf's position, and are the position vector of the prey and the position vector of the gray wolf, and t is the current iteration number;

[0070] and To determine the coefficient, the calculation formula is as follows:

[0071]

[0072] In the formula, and are two one-dimensional random number vectors whose components are between [0, 1]. It is used to simulate the attack behavior of gray wolves on prey. Its value is affected by The influence of convergence factor The value of decreases linearly from 2 to 0 as the number of iterations increases;

[0073] (2) Chasing prey: In the iterative process, α, β, and δ are used to guide the movement of ω, thereby achieving global optimization and utilizing the positions of α, β, and δ. Update the positions of all gray wolves using the following equation:

[0074]

[0075] In the formula, They represent the distances of the individual ω gray wolf from the α, β, and δ wolf packs respectively;

[0076]

[0077] In the formula, They represent the position that the ω gray wolf individual needs to adjust under the influence of the α, β and δ wolf packs. Here we take the average value

[0078] (3) Attacking prey: In the following formula, t represents the current number of iterations, and T represents the maximum number of iterations. When the value of a decreases from 2 to 0, the corresponding value of A also changes in the interval [-a, a]. The larger the value of a, the farther the gray wolf moves away from the prey, hoping to find a more suitable prey, thus prompting the wolf pack to conduct a global search (|A|>1). If the value of a is smaller, the gray wolf moves closer to the prey, prompting the wolf pack to conduct a local search (|A|<1).

[0079]

[0080] The a value calculated according to the above formula effectively avoids the risk of the GWO algorithm falling into the local search area when performing a global search for the LSTM-SA network model parameters, thereby ensuring the acquisition of the optimal solution for the LSTM-SA network model parameters.

[0081] The invention has the beneficial effects of: a method for predicting the growth diameter of a silicon single crystal based on attention and LSTM network, collecting process variables and crystal diameter variable data generated during the growth of a silicon single crystal, and screening auxiliary variables by the maximum mutual information coefficient (MIC) method, MIC can well measure the degree of association between two characteristic variables, linear or nonlinear relationship, and has higher accuracy than mutual information. The LSTM-SA network model is used to learn the nonlinearity between auxiliary variables and crystal diameter, LSTM has a powerful time series prediction capability, and the self-attention mechanism SA is integrated into the LSTM network, which can help the model to automatically learn and pay attention to the time period and key variable information that have a greater impact on the crystal diameter prediction result, so as to better capture the long-term dependency and important features in the data sequence, and improve the prediction accuracy and generalization ability of the model. In addition, the direct multi-step output crystal diameter index prediction strategy is used in the LSTM-SA network modeling process, avoiding the error accumulation and large computational load of the traditional recursive multi-step prediction. At the same time, considering that the prediction performance of the multi-step output LSTM-SA model is closely related to the network parameters, the model parameters are optimized by applying the gray wolf optimization algorithm GWO, and the multi-step prediction accuracy of the crystal diameter index is improved. In summary, the multi-step prediction method of crystal diameter proposed in this paper is more instructive than the previous single-step prediction method. It helps on-site engineering and technical personnel make more accurate decisions by providing more future prediction information. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] Figure 1 It is an overall flow chart of the multi-step prediction method of silicon single crystal diameter based on attention and LSTM network of the present invention;

[0083] Figure 2 This is a MIC analysis result diagram of the multi-step prediction method for silicon single crystal diameter based on attention and LSTM network of the present invention;

[0084] Figure 3 This is a graph of the time lag order estimation result of the multi-step prediction method for silicon single crystal diameter based on attention and LSTM network of the present invention;

[0085] FIG4( a ) is a structural diagram of an LSTM unit in a multi-step prediction method for silicon single crystal diameter based on attention and LSTM network of the present invention;

[0086] FIG4( b ) is a structural diagram of the self-attention mechanism in the multi-step prediction method of silicon single crystal diameter based on attention and LSTM network of the present invention;

[0087] FIG4( c ) is a structural diagram of the LSTM-SA model in the multi-step prediction method for silicon single crystal diameter based on attention and LSTM network of the present invention;

[0088] FIG5( a ) is a comparison of one-step prediction results of different models in the multi-step prediction method of silicon single crystal diameter based on attention and LSTM network of the present invention;

[0089] FIG5( b ) is a comparison of two-step prediction results of different models in the multi-step prediction method of silicon single crystal diameter based on attention and LSTM network of the present invention;

[0090] Figure 5(c) is a comparison of the three-step prediction results of different models in the multi-step prediction method of silicon single crystal diameter based on attention and LSTM network of the present invention. DETAILED DESCRIPTION

[0091] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0092] The present invention is based on the attention and LSTM network silicon single crystal growth diameter prediction method, the flow chart is as follows Figure 1 As shown, the specific implementation steps are as follows:

[0093] Step 1: collecting process variable data and crystal diameter data at the same time during the growth of silicon single crystals, and preprocessing these data;

[0094] Step 1 is implemented as follows:

[0095] Collect and record the process variable data during the growth of silicon single crystals: heater power, thermal field temperature, crystal pulling speed, crystal rotation speed, crucible rising speed, crucible rotation speed, crystal weight, argon flow rate, crystal length, liquid level data and crystal diameter. First, use the three-times standard deviation principle to remove data outliers, and then use the minimum-maximum scaling method to normalize the data.

[0096] Step 1.1, remove outliers using the triple standard deviation principle: Use triple standard deviation to remove outliers from crystal diameter. First calculate the mean μ and standard deviation σ of the crystal diameter data y, and calculate according to the following formula:

[0097]

[0098] In the formula, y i is the i-th sample, n is the total number of samples;

[0099] Determine the threshold of outliers. The threshold range of outliers is determined by adding or subtracting three times the standard deviation from the mean, that is, the lower limit is μ-3σ and the upper limit is μ+3σ. Values ​​in the data set that are less than the lower limit and greater than the upper limit are identified as outliers. These values ​​and the corresponding auxiliary variables at that moment are deleted from the data set.

[0100] Step 1.2: Use the minimum-maximum scaling method to normalize the auxiliary variables and the crystal diameter. The crystal diameter is normalized. The specific steps are as follows:

[0101] Find the maximum value y in the crystal diameter data max Minimum value y min , and scale the crystal diameter data linearly to between 0 and 1, as follows:

[0102]

[0103] In the formula, y nor represents the normalized crystal diameter. The normalization method of other auxiliary variables is the same as above.

[0104] Step 2: Use the maximum mutual information coefficient (MIC) method to select auxiliary variables for the preprocessed data. The specific steps are as follows:

[0105] The MIC principle uses the concept of mutual information, which is expressed by the following equation:

[0106]

[0107] In the formula, x and y represent variables, p(x, y) represents the joint probability density distribution function of x and y, and p(x) and p(y) represent the marginal probability density functions of x and y. The calculation formula of MIC is as follows:

[0108]

[0109] In the formula, a and b represent the number of grid divisions in the x and y directions, B is a variable that is considered to be set, and B is 0.6 power of the data size. The range of MIC is [0, 1]. The larger the value of MIC, the stronger the correlation between the two variables.

[0110] Step 3: Use the time lag estimation method of the cross-correlation function to estimate the time lag order between the selected auxiliary variables and the crystal diameter, then perform time alignment of the data sequence, and divide the modeling data set into a training set and a test set;

[0111] Step 3 is implemented as follows:

[0112] Step 3.1: Estimate the time lag order between input and output using the time lag estimation method of the cross-correlation function, where the cross-correlation coefficient is estimated as follows:

[0113]

[0114] In the formula, u and y are the historical data of input and output respectively, μ u , μ y and u 、s y are the mean and standard deviation of the input and output respectively, and n is the number of all samples;

[0115] The larger the mutual correlation coefficient is, the closer the time delay order is to the real time delay order. According to the actual crystal pulling experience, the time delay range is set, and the mutual correlation coefficient between each time delay order and the crystal diameter is calculated within the range. The time delay order with the largest mutual correlation coefficient is the real time delay order.

[0116] Step 3.2: Time series alignment and data set division:

[0117] The data are time-series aligned according to the identified time lag order, and 80% of the data set is used as the training set and the remaining 20% ​​as the test set.

[0118] Step 4: Determine the model structure and establish the nonlinear mapping relationship between the input and output of the LSTM-SA network model. The training set data obtained in step 3 is used to train the LSTM-SA model. At the same time, the GWO algorithm is used to optimize the LSTM-SA network parameters to obtain the best LSTM-SA network model. Finally, the crystal diameter is predicted based on the optimal LSTM-SA network model, and the multi-output prediction strategy is used to complete the prediction of the multi-step future values ​​of the crystal diameter.

[0119] Step 4 is implemented according to the following steps:

[0120] Determine the model structure and establish the nonlinear mapping relationship between the LSTM-SA network model learning input and output. The nonlinear relationship is described as follows:

[0121] y(k+1,k+2,k+3)=f(y(k),y(k-1),...,y(kn y ),x(k),x(k-1),...,x(kn u ))

[0122] In the formula, f() is the nonlinear mapping function to be learned, n u and n y are the input and output orders, respectively, x(k) represents the auxiliary variable input at time k, and y(k+1, k+2, k+3) represents the crystal diameter from time k+1 to k+3;

[0123] Step 4.1: Standard Long Short-Term Memory Network LSTM

[0124] Input X k The basic update rule of an LSTM unit is as follows:

[0125] (1) Input gate:

[0126] i k =σ(W xi x k +W hi h k-1 +b i )

[0127] In the formula, i k is the output of the input gate, x k is the current input value, h k-1 is the output value at the previous moment; W i and W hi are the input gate weight matrix and the recursive weight matrix respectively; b i is the input gate bias, σ(·) is the sigmoid function;

[0128] (2) Forget Gate:

[0129] f k =σ(W f x k +W hf h k-1 +b f )

[0130] In the formula, f k is the output of the forget gate, W f and W hf are the forget gate weight matrix and the recursive weight matrix, respectively, f is the bias of the forget gate;

[0131] (3) Internal unit status update:

[0132] c k =f k ×c k-1 +i k ×tanh(W c x k +W hc h k-1 +b c )

[0133] In the formula, c k and c k-1 are the current internal unit state and the previous internal unit state, W c and W hc are the internal unit state weight matrix and the recursive weight matrix, b c is the internal cell state bias;

[0134] (4) Output gate:

[0135] o k =σ(W o x k +W ho h k-1 +b o )

[0136] h k =o k tanh(c k )

[0137] In the formula, o k is the output of the output gate, W o and W ho are the output gate weight matrix and the recursive weight matrix, respectively, b o is the bias of the output gate;

[0138] Step 4.2: Self-Attention Mechanism SA

[0139] The structure of the self-attention mechanism consists of three vectors: query q, key k and value v. For a query, the attention mechanism calculates the similarity between the query and the keyword and gives higher weight to the value with high similarity. Define query vector Q = [q1, q2,,q L ] T , key vector K = [k1, k2,, k L ] T , value vector V = [v1,v2,,v L ] T , where L is the time step, and the calculation formula of SA is as follows:

[0140]

[0141] Among them, the softmax function applies normalization to the attention score, d k is the proportional factor. The above formula determines the weight distribution of value by the similarity between query and key, thereby obtaining the attention score. These attention scores determine the weight of each sample in the sequence.

[0142] In short, SA is a weight parameter allocation mechanism, the goal is to help the model capture important information. Specifically, given a set of<key,value> , and a target query vector query, the SA mechanism calculates the similarity between the query and each set of keys to obtain the weight coefficient of each key, and then obtains the final attention value by weighted summation of the values;

[0143] Step 4.3: Standard LSTM-SA with self-attention mechanism

[0144] The self-attention mechanism is integrated with the LSTM network, and the SA mechanism is used to calculate the attention scores of each process variable of the input sample after passing through the LSTM layer, so as to give higher weights to the key parts of the input data, thereby improving the accuracy of the prediction. The LSTM-SA structure diagram is shown in Figure 4(c). The feature matrix after the attention mechanism assigns weights is then passed through a fully connected layer to obtain the final prediction output;

[0145] Step 4.4: GWO algorithm optimizes model parameters:

[0146] The objective function is to minimize in is the predicted value of the model, y is the actual value, N is the length of the data sequence, and the fitness function of the GWO algorithm is:

[0147]

[0148] The GWO algorithm calculates the fitness function above, updates the wolf pack position, obtains the optimal solution for the LSTM-SA network model parameters, and uses the optimal model parameters to build a multi-step prediction model for the crystal diameter index. The calculation process of the GWO algorithm is as follows:

[0149] The wolf pack is divided into four layers. The first layer is the α wolf pack, which is responsible for leading the entire wolf pack to hunt prey, which is the optimal solution in the algorithm; the second layer is the β wolf pack, which is responsible for assisting the α wolf pack, which is the suboptimal solution in the algorithm; the third layer is the δ wolf pack, which obeys the orders and decisions of α and β. α and β with poor fitness will be reduced to δ; the last layer is the ω wolf pack, which updates its position around α, β or δ. The hunting process of gray wolves includes three aspects:

[0150] (1) Surrounding prey: In the GWO algorithm, the gray wolf uses the following position update formula to surround the prey during the hunting process:

[0151]

[0152] In the formula, is the distance between the gray wolf and its prey, Update the formula for the gray wolf's position, and are the position vector of the prey and the position vector of the gray wolf, respectively, and t is the current iteration number;

[0153] and To determine the coefficient, the calculation formula is as follows:

[0154]

[0155] In the formula, and are two one-dimensional random number vectors whose components are between [0, 1]. It is used to simulate the attack behavior of gray wolves on prey. Its value is affected by The influence of convergence factor The value of decreases linearly from 2 to 0 as the number of iterations increases;

[0156] (2) Chasing prey: In the iterative process, α, β, and δ are used to guide the movement of ω to achieve global optimization, and the positions of α, β, and δ are used. Update the positions of all gray wolves using the following equation:

[0157]

[0158] In the formula, They represent the distances of the individual ω gray wolf from the α, β, and δ wolf packs respectively;

[0159]

[0160] In the formula, They represent the position that the ω gray wolf individual needs to adjust under the influence of the α, β and δ wolf packs. Here we take the average value

[0161] (3) Attacking prey: In the following formula, t represents the current number of iterations, and T represents the maximum number of iterations. When the value of a decreases from 2 to 0, the corresponding value of A also changes in the interval [-a, a]. The larger the value of a, the farther the gray wolf moves away from the prey, hoping to find a more suitable prey, thus prompting the wolf pack to conduct a global search (|A|>1). If the value of a is smaller, the gray wolf moves closer to the prey, prompting the wolf pack to conduct a local search (|A|<1).

[0162]

[0163] The value a calculated according to the above formula effectively avoids the risk of the GWO algorithm falling into the local search area when searching for model parameters globally, thereby ensuring the acquisition of the optimal solution for the model parameters. In addition, the acquisition of this optimal solution can ensure the establishment of the optimal LSTM-SA network model to predict the crystal diameter, and use a multi-output prediction strategy to accurately predict the multi-step future value of the crystal diameter.

[0164] Example 1

[0165] The present invention is based on the attention and LSTM network silicon single crystal diameter multi-step prediction method, the flow chart is as follows Figure 1 As shown, the specific implementation steps are as follows:

[0166] Step 1: Collect process variable data and crystal diameter data at the same time during the growth of silicon single crystals, and pre-process them.

[0167] A large amount of detection data that can reflect the crystal growth status is recorded in the single crystal furnace history database. According to the crystal growth process mechanism, the installed sensor detection equipment and the experience of on-site experts, the process variables that affect the crystal diameter index can be preliminarily determined, as shown in Table 1.

[0168] Table 1 Description of different process variables

[0169]

[0170]

[0171] Step 1.1: Remove outliers using the triple standard deviation rule

[0172] To remove outliers from the crystal diameter data using the triple standard deviation principle, we must first calculate the mean (μ) and standard deviation (σ) of the crystal diameter data (y) according to the following formula:

[0173]

[0174] In the formula, y i is the i-th sample, and n is the total number of samples.

[0175] Determine the threshold of outliers by adding or subtracting three times the standard deviation from the mean, that is, the lower limit is μ-3σ and the upper limit is μ+3σ. Values ​​in the data set that are less than the lower limit and greater than the upper limit are identified as outliers, and these values ​​and the corresponding auxiliary variables at that moment are deleted from the data set.

[0176] Step 1.2: Use the minimum-maximum scaling method to normalize the auxiliary variables and the crystal diameter. For example, to normalize the crystal diameter, first find the maximum value of the diameter (y max ), minimum value (y min ), and linearly scale it to between 0 and 1 as follows:

[0177]

[0178] In the formula, y nor represents the normalized crystal diameter, and the normalization of other auxiliary variables is the same as above.

[0179] Step 2: Use the MIC method to select feature variables for the preprocessed data.

[0180] The main idea of ​​MIC is: if there is a certain correlation between two variables, then after some kind of grid division on the scatter plot of the two variables, the mutual information of the two variables can be calculated according to the approximate probability density distribution of the two variables in the grid. After regularization, this value can be used to measure the correlation between the two variables. The MIC principle uses the concept of mutual information, which is expressed by the following equation:

[0181]

[0182] In the formula, x and y represent variables, p(x,y) represents the joint probability density distribution function of x and y, and p(x) and p(y) represent the marginal probability density functions of x and y. The calculation formula of MIC is as follows:

[0183]

[0184] In the formula, a and b represent the number of grid divisions in the x and y directions, B is an artificially set variable, which is generally 0.6 power of the data size. The range of MIC is [0, 1]. The larger the value of MIC, the stronger the correlation between the two variables.

[0185] In order to quantitatively describe the correlation between the process variables and the crystal diameter index in Table 1, this paper adopts the above-mentioned MIC method to calculate the correlation between the two variables. In the process of auxiliary feature variable selection, the MIC value between each process variable and the crystal diameter index is calculated using the training set. The MIC analysis results obtained are as follows: Figure 2.according to Figure 2 It can be seen that through further quantitative analysis of MIC, it can be determined that process variables x2, x3, x4, x5, x7, and x9 (thermal field temperature, crystal pulling speed, crystal rotation speed, crucible rising speed, crystal weight, and crystal length) have a strong correlation with the crystal diameter index y. Therefore, these six process variables are used as inputs to the multi-step prediction model of the crystal diameter index. Considering the influence of large inertia and timing on the crystal diameter index during crystal growth, the input measurement value at the current sampling time is used. and the input measurement values ​​of the first five sampling moments And the historical crystal diameter index value {y k ,y k-1 ,,y k-5} as the comprehensive input of the prediction model. The future 3-step prediction value of the crystal diameter indicator As the output of the prediction model.

[0186] Step 3: Use the time-delay optimization estimation method of the cross-correlation function to estimate the time-delay order between the selected auxiliary variables and the crystal diameter. Then perform time alignment, and then divide the modeling data set into a training set and a test set.

[0187] Step 4: Determine the model structure and establish an LSTM-SA network to learn the nonlinear relationship between input and output. The training set data is used to train the LSTM-SA model. At the same time, the GWO algorithm is used to optimize the LSTM-SA network parameters to obtain the optimal LSTM-SA model. Finally, the crystal diameter is predicted based on the optimal LSTM-SA model, and the multi-step future value prediction of the crystal diameter is completed with a multi-output prediction strategy.

[0188] Embodiment 2:

[0189] The present invention is based on the attention and LSTM network silicon single crystal diameter multi-step prediction method, the flow chart is as follows Figure 1 As shown, the specific implementation steps are as follows:

[0190] Step 1: Collect the data generated during the crystal pulling process, align and preprocess them, and use the preprocessed data as the input and output of the neural network model (LSTM-SA).

[0191] Step 2: Use MIC to screen out the auxiliary variables with the greatest correlation with the crystal diameter, which are process variables x2, x3, x4, x5, x7, and x9 (thermal field temperature, crystal pulling speed, crystal rotation speed, crucible rising speed, crystal weight, and crystal length).

[0192] Step 3: Use the time lag estimation method of the cross-correlation function to estimate the time lag order between the input and output. Next, align the data in time series and divide the data set into a training set and a test set.

[0193] Step 3.1: Estimate the order of the time lag between the input and output using the cross-correlation function.

[0194] The time lag estimation method based on the cross-correlation function is used to estimate the time lag order between input and output, where the cross-correlation coefficient is estimated as follows:

[0195]

[0196] In the formula, u and y are the historical data of input and output respectively, μ u , μ y and u 、s y are the mean and standard deviation of the input and output respectively.

[0197] The larger the correlation coefficient is, the closer the time delay order is to the real time delay order. Based on the actual crystal pulling experience, a time delay range is given. Within this range, the correlation coefficient between each time delay order and the crystal diameter is calculated. The time delay order with the largest correlation coefficient is the real time delay order. The analysis results are as follows: Figure 3 , the figure shows the time lag order between each auxiliary variable and the crystal diameter.

[0198] Step 3.2: Time series alignment and data set partitioning

[0199] The data are time-series aligned according to the identified time lag order, and 80% of the data set is used as the training set and the remaining 20% ​​as the test set.

[0200] Since the equal-diameter growth stage of CZ silicon single crystal takes a long time (about 30 hours) in practice and is the core stage of the entire crystal growth process, effective control of it is crucial. Therefore, 3500 sets of sample data were selected from the experimental process data of growing 12 inches of CZ silicon single crystal in a furnace, with a sampling time of 2s. The first 2800 sets of data were used for model training and verification, and the last 700 sets of data were used to verify the effectiveness of the proposed prediction model.

[0201] Step 4: Determine the model structure and establish an LSTM-SA network to learn the nonlinear relationship between input and output. The training set data is used to train the LSTM-SA model; the GWO algorithm is used to optimize the LSTM-SA network parameters to obtain the optimal LSTM-SA model. Finally, the multi-step future value of the crystal diameter is predicted based on the optimal LSTM-SA model and the multi-output prediction strategy.

[0202] Embodiment 3:

[0203] The present invention is based on the attention and LSTM network silicon single crystal diameter multi-step prediction method, the flow chart is as follows Figure 1 As shown, the specific implementation steps are as follows:

[0204] Step 1: Collect process variable data and crystal diameter data at the same time during the growth of silicon single crystals, and preprocess them for training and testing the LSTM-SA model.

[0205] Step 2: Use MIC to screen out the auxiliary variables with the greatest correlation with the crystal diameter, which are process variables x2, x3, x4, x5, x7, and x9 (thermal field temperature, crystal pulling speed, crystal rotation speed, crucible rising speed, crystal weight, and crystal length).

[0206] Step 3: Use the time lag optimization estimation method of the cross-correlation function to estimate the time lag order between the selected auxiliary variables and the crystal diameter, and perform time series alignment on the data. Then divide the 3500 sets of data into 2800 training sets and 700 test sets.

[0207] Step 4: Determine the model structure based on the time lag order and other results obtained above and establish an LSTM-SA neural network to learn the nonlinear relationship between input and output. The nonlinear relationship is as follows:

[0208] y(k+1,k+2,k+3)=f(y(k),y(k-1),...,y(k-5),x(k),x(k-1),...,x(k-5))

[0209] Where f() is a nonlinear mapping function, u(k) represents the input at time k, and y(k+1, k+2, k+3) represents the crystal diameter from time k+1 to time k+3.

[0210] Step 4.1: Standard Long Short-Term Memory Network (LSTM)

[0211] The outstanding feature of LSTM is the use of gate structures to regulate the flow of information. The gate determines which data is essential to remember or forget, allowing relevant information to pass along a long sequence chain, enabling it to make accurate predictions. The standard LSTM network has three main gates, namely the forget gate, input gate, and output gate. The forget gate controls the state information of the previous unit that must be retained or deleted in the current unit state. The input gate determines the amount of current information added to the unit state. The output gate regulates whether the current value in the unit contributes to the output. The unit structure of the LSTM network with these three gates is shown in Figure 4(a). Input X k The basic update rule of an LSTM unit can be expressed as follows:

[0212] (1) Input gate:

[0213] i k =σ(W xi x k +W hi h k-1 +b i )

[0214] In the formula, i k is the output of the input gate, x k is the current input value, h k-1 is the output value at the previous moment; W i and W hi are the weight matrix and the recursive weight matrix respectively; b i is the input gate bias, and σ(·) is the sigmoid function.

[0215] (2) Forget Gate:

[0216] f k =σ(W f x k +W hf h k-1 +b f )

[0217] In the formula, f k is the output of the forget gate, W f and W hf are the forget gate weight matrix and the recursive weight matrix, respectively, f is the bias of the forget gate.

[0218] (3) Internal unit status update:

[0219] c k =f k ×c k-1 +i k ×tanh(W c x k +W hc h k-1 +b c )

[0220] In the formula, c k and c k-1 are the current internal unit state and the internal unit state at the previous moment, W c and W hc are the internal unit state weight matrix and the recursive weight matrix, b c is the bias of the internal cell state;

[0221] (4) Output gate:

[0222] o k=σ(W o x k +W ho h k-1 +b o )

[0223] h k =o k tanh(c k )

[0224] In the formula, o k is the output of the output gate, W o and W ho are the output gate weight matrix and the recursive weight matrix, respectively, b o is the bias of the output gate.

[0225] Step 4.2: Self-Attention (SA)

[0226] The self-attention mechanism allows the model to consider the relationship between each element in the sequence and all other elements when processing a sequence. This mechanism is particularly effective in capturing internal correlations in the data while reducing the need for external information. Figure 4(b) shows the structure of the self-attention mechanism, which consists of three vectors: query (q), key (k), and value (v). For a query, the attention mechanism calculates the similarity between the query and the keyword and gives higher weight to values ​​with high similarity.

[0227] Define query vector Q = [q1,q2.,q L ] T , key vector K = [k1, k2., k L ] T , value vector V = [v1,v2.,v L ] T , where L is the time step. The calculation formula of SA is as follows:

[0228]

[0229] Where the softmax function applies normalization to the attention scores. k is the scaling factor. The above formula determines the weight distribution of v by the degree of similarity between q and k, thereby obtaining the attention score. These attention scores determine the weight of each sample in the sequence, giving higher weights to more relevant entities.

[0230] In short, SA is a weight parameter allocation mechanism, the goal is to help the model capture important information. Specifically, given a set of<k,v> , and a target (query) vector q. The SA mechanism calculates the similarity between q and each group of k, obtains the weight coefficient of each k, and then obtains the final attention value by weighted summation of v.

[0231] Step 4.3: Standard long short-term memory network with self-attention mechanism (LSTM-SA) LSTM has powerful time series prediction ability, but it is difficult to describe the dynamic process of silicon single crystal growth. Therefore, this paper combines LSTM with SA. The SA mechanism module calculates the attention score of each process variable of the input sample after passing through the LSTM layer in real time, so as to give higher weight to the key part of the input data, thereby improving the accuracy of the prediction. The LSTM-SA structure diagram is shown in Figure 4(c). The feature matrix after being weighted by the attention mechanism passes through a fully connected layer and finally gets the output.

[0232] Step 4.4: Optimize the hyperparameters of LSTM-SA using the GWO algorithm

[0233] The goal of hyperparameter optimization is to make the model's predicted values ​​as close to the actual values ​​as possible. In other words, the objective function is to minimize in is the predicted value of the model, y is the actual value, and N is the length of the data sequence. The fitness function of the GWO algorithm can be set as:

[0234]

[0235] The GWO algorithm calculates the fitness function, updates the wolf pack position, obtains the optimal solution for the LSTM-SA model parameters, and uses the optimal model parameters to train the prediction model.

[0236] The calculation process of the GWO algorithm: The wolf pack is divided into 4 layers. The first layer is the α wolf pack, the leader of the population, responsible for leading the entire wolf pack to hunt prey, which is the optimal solution in the algorithm; the β wolf pack is responsible for assisting the α wolf pack, which is the suboptimal solution in the algorithm; the δ wolf pack obeys the orders and decisions of α and β, and the α and β with poor fitness will be reduced to δ; the ω wolf pack surrounds α, β or δ to update its position. The hunting process of the gray wolf is as follows:

[0237] (1) Surrounding prey: In GWO, the gray wolf uses the following position update formula to surround the prey during the hunting process:

[0238]

[0239] In the formula, is the distance between the gray wolf and its prey, Update the formula for the gray wolf's position, and

[0240] are the position vector of the prey and the position vector of the gray wolf, and t is the current number of iterations.

[0241] and

[0242] To determine the coefficient, the calculation formula is as follows:

[0243]

[0244] In the formula, and

[0245] are two one-dimensional random number vectors whose components are between [0, 1]. It is used to simulate the attack behavior of gray wolves on prey. Its value is affected by The influence of convergence factor The value of decreases linearly from 2 to 0 as the number of iterations increases.

[0246] (2) Chasing prey: In the iterative process, α, β, and δ are used to guide the movement of ω to achieve global optimization. Update the positions of all gray wolves:

[0247]

[0248] In the formula, They represent the distances of the individual ω gray wolf from the α, β and δ wolf packs respectively.

[0249]

[0250] In the formula, They represent the position that the individual ω gray wolf needs to adjust under the influence of the α, β and δ wolf packs. Here, the average value is taken.

[0251] (3) Attacking prey: In the following formula, t represents the current number of iterations, and T represents the maximum number of iterations. When the value of a decreases from 2 to 0, the corresponding value of A also changes in the interval [-a, a]: the larger the value of a, the farther the gray wolf will move away from the prey, hoping to find a more suitable prey, thus prompting the wolf pack to conduct a global search (|A|>1); if the value of a is smaller, the gray wolf will approach the prey, prompting the wolf pack to conduct a local search (|A|<1).

[0252]

[0253] The performance of the LSTM-SA network depends on the settings of multiple network parameters. Among them, the number of unit layers, the number of hidden nodes, the learning rate and the batch size parameters of the network have the greatest impact on the prediction performance. Therefore, in order to avoid the blindness of manual adjustment, the gray wolf optimization algorithm is used to optimize the above four parameters.

[0254] The method in this paper is compared with other data-driven models, namely support vector machine (SVM), BP neural network, and standard LSTM. The parameter settings of each model and the optimized LSTM-SA parameters are shown in Table 2.

[0255] Table 2 Parameter settings of different models

[0256]

[0257] Figure 5(a)-Figure 5(c) The model prediction value curves based on SVM model, BP neural network, LSTM and GWO-LSTM-SA are plotted. Figure 5(a) is the comparison result of the prediction output of step 1, Figure 5(b) is the comparison result of the prediction output of step 2, and Figure 5(c) is the comparison result of the prediction output of step 3. Through comparison, it is found that the crystal diameter index predicted by the GWO-LSTM-SA network model and the actual crystal diameter index curve are well consistent in value and trend.

[0258] The mean absolute error (MAE) and root mean square error (RMSE) are introduced to measure the difference between the model's predicted value and the actual observed value. MAE and RMSE are defined as follows:

[0259]

[0260]

[0261] In the formula, y k represents the actual observed value of the crystal diameter, Represents the model prediction value. N is the number of samples. The smaller the statistical indicators MAE and RMSE, the better the performance of the model. According to the experience of field experts, the absolute value of the error between the predicted value and the actual observed value is acceptable within the range of 3%. In order to more intuitively show the prediction effect of the model, the prediction hit rate HR of the model is defined as

[0262]

[0263] Where H(k) is the Heaviside function of the kth sample, defined as:

[0264]

[0265] Based on the multi-step prediction results of the above different models, the multi-step prediction performance of different models is quantitatively analyzed. Tables 3 to 5 summarize the multi-step prediction performance evaluation indicators of different models. By comparison, it can be seen that the multi-step prediction performance index values ​​of the proposed GWO-LSTM-SA model are better than those of other models, that is, smaller MAE and RMSE, and R closer to 1. 2 , and a higher prediction hit rate.

[0266] Table 3 Comparison of prediction performance indicators of different models in step 1

[0267]

[0268] Table 4 Comparison of prediction performance indicators of step 2 of different models

[0269]

[0270] Table 5 Comparison of prediction performance indicators of step 3 of different models

[0271]

[0272] As can be seen from Tables 3 to 5, as the prediction step increases, the prediction performance indicators of different models all show a downward trend. In contrast, the prediction performance decline rate of the GWO-LSTM-SA model from step 1 to step 3 is significantly lower than that of other models, which shows that the proposed model is more suitable for multi-step output prediction of crystal diameter indicators. In addition, the prediction performance evaluation indicators of the LSTM and GWO-LSTM-SA models with deep network learning capabilities are significantly better than those of the SVR and BP network models, which shows the effectiveness of deep learning methods in modeling complex CZ silicon single crystal growth processes.

[0273] Table 6 summarizes the offline modeling time of the above different models, among which the statistical model SVR, shallow BP model and LSTM model have shorter modeling time, while the modeling time of the GWO-LSTM-SA model is longer. It should be noted that the training time of the proposed GWO-LSTM-SA model is much longer than that of the shallow model. This is because the training of the GWO-LSTM-SA model has two stages, including GWO-based model parameter optimization pre-training and LSTM-SA model retraining process. However, when the model is deployed to the industrial application site, the GWO-based model parameter optimization pre-training can be completed offline, and only the GWO-optimized model parameters need to be used to supervise the retraining of the model.

[0274] Table 6 Modeling time of different models

[0275] Model SVR BP LSTM GWO-LSTM-SA Modeling time (seconds) 0.1701 2.2954 5.4916 1430.8975

Claims

1. A silicon single crystal growth diameter prediction method based on attention and LSTM network, characterized in that: Follow the steps below to implement it: Step 1: collecting process variable data and crystal diameter data at the same time during the growth of silicon single crystals, and preprocessing these data; Step 2: Use the maximum mutual information coefficient MIC method to select auxiliary variables for the preprocessed data; Step 3, estimating the time lag order between the selected auxiliary variables and the crystal diameter, then performing time alignment of the data sequence, and dividing the modeling data set into a training set and a test set; Step 4: Determine the model structure and establish an LSTM-SA network model to learn the nonlinear mapping relationship between input and output, and complete the prediction of multiple future values ​​of the crystal diameter.

2. The method for predicting the growth diameter of a silicon single crystal based on attention and LSTM network according to claim 1, characterized in that: The step 1 is specifically implemented according to the following steps: Collect key data during the growth of silicon single crystals: including heater power, thermal field temperature, crystal pulling speed, crystal rotation speed, crucible rising speed, crucible rotation speed, crystal weight, argon flow rate, crystal length, liquid level data and crystal diameter, and record them. First, use the three-times standard deviation principle to remove data outliers, and then use the minimum-maximum scaling method to normalize the data. Step 1.1: Use the triple standard deviation principle to remove outliers: To remove outliers from crystal diameter using the triple standard deviation principle, we must first calculate the mean μ and standard deviation σ of the crystal diameter data y, using the following formula: In the formula, y i is the i-th sample, n is the total number of samples; Determine the threshold of outliers. The threshold range of outliers is determined by adding or subtracting three times the standard deviation from the mean, that is, the lower limit is μ-3σ and the upper limit is μ+3σ. Values ​​in the data set that are less than the lower limit and greater than the upper limit are identified as outliers. These values ​​and the corresponding auxiliary variables at that moment are deleted from the data set. Step 1.2: Use the minimum-maximum scaling method to normalize the auxiliary variables and the crystal diameter. The crystal diameter is normalized. The specific steps are as follows: Find the maximum value y in the crystal diameter data max Minimum value y min , and scale the crystal diameter data linearly to between 0 and 1, as follows: In the formula, y nor represents the normalized crystal diameter. The normalization method of other auxiliary variables is the same as above.

3. The method for predicting silicon single crystal growth diameter based on attention and LSTM network according to claim 2, characterized in that: The step 2 is specifically implemented according to the following steps: The MIC principle uses the concept of mutual information, which is expressed by the following equation: In the formula, x and y represent variables, p(x, y) represents the joint probability density distribution function of x and y, and p(x) and p(y) represent the marginal probability density functions of x and y. The calculation formula of MIC is as follows: In the formula, a and b represent the number of grid divisions in the x and y directions, and B is a variable that is considered to be set. The larger the value of MIC, the stronger the correlation between the two variables.

4. The method for predicting silicon single crystal growth diameter based on attention and LSTM network according to claim 3 is characterized in that: The step 3 is specifically implemented according to the following steps: Step 3.1: Estimate the time lag order between input and output using the time lag estimation method of the cross-correlation function, where the cross-correlation coefficient is estimated as follows: In the formula, u and y are the historical data of input and output respectively, μ u , μ y and u 、s y are the mean and standard deviation of the input and output respectively, and n is the number of all samples; Set the time delay range, calculate the correlation coefficient between each time delay order and the crystal diameter within this range, and find the time delay order with the maximum correlation coefficient, which is the real time delay order; Step 3.2: Time series alignment and data set division: The data are time-series aligned according to the identified time lag order, and 80% of the data set is used as the training set and the remaining 20% ​​as the test set.

5. The method for predicting the growth diameter of a silicon single crystal based on attention and LSTM network according to claim 4, characterized in that: The step 4 is specifically implemented according to the following steps: Determine the model structure and establish the nonlinear mapping relationship between the LSTM-SA network model learning input and output. The nonlinear relationship is described as follows: y(k+1,k+2,k+3)=f(y(k),y(k-1),...,y(k-n y ),x(k),x(k-1),...,x(k-n u )) In the formula, f() is the nonlinear mapping function to be learned, n u and n y are the input and output orders, respectively, x(k) represents the auxiliary variable input at time k, and y(k+1, k+2, k+3) represents the crystal diameter from time k+1 to k+3; Step 4.1: Standard Long Short-Term Memory Network LSTM Input X k The basic update rule of an LSTM unit is as follows: (1) Input gate: i k =σ(W xi x k +W hi h k-1 +b i ) In the formula, i k is the output of the input gate, x k is the current input value, h k-1 is the output value at the previous moment; W i and W hi are the input gate weight matrix and the recursive weight matrix respectively; b i is the input gate bias, σ(·) is the sigmoid function; (2) Forget Gate: f k =σ(W f x k +W hf h k-1 +b f ) In the formula, f k is the output of the forget gate, W f and W hf are the forget gate weight matrix and the recursive weight matrix, respectively, f is the bias of the forget gate; (3) Internal unit status update: c k =f k ×c k-1 +i k ×tanh(W c x k +W hc h k-1 +b c ) In the formula, c k and c k-1 are the current internal unit state and the internal unit state at the previous moment, W c and W hc are the internal unit state weight matrix and the recursive weight matrix, b c is the bias of the internal cell state; (4) Output gate: o k =σ(W o x k +W ho h k-1 +b o ) h k =o k ·tanh(c k ) In the formula, o k is the output of the output gate, W o and W ho are the output gate weight matrix and the recursive weight matrix, respectively, b o is the bias of the output gate; Step 4.2: Self-Attention Mechanism SA The structure of the self-attention mechanism consists of three vectors: query q, key k, and value v. For a query, the attention mechanism calculates the similarity between the query and the keyword and gives higher weight to the value with high similarity. Define query vector Q = [q1, q2, ..., q L ] T , key vector K = [k1, k2, ..., k L ] T , value vector V = [v1,v2,…,v L ] T , where L is the time step, the calculation formula of SA is as follows: Among them, the softmax function applies normalization to the attention score, d k is a proportional factor. The above formula determines the weight distribution of value by the similarity between query and key, thereby obtaining attention scores. These attention scores determine the weight of each sample in the sequence, giving higher weights to more relevant entities. Specifically, given a set<key,value> , and a target query vector query, the SA mechanism calculates the similarity between the query and each set of keys to obtain the weight coefficient of each key, and then obtains the final attention value by weighted summation of the values; Step 4.3: Standard LSTM-SA with self-attention mechanism The self-attention mechanism is carefully integrated with the LSTM network. The SA mechanism module timely calculates the attention scores of each process variable of the input sample after passing through the LSTM layer, so as to give higher weights to the key parts of the input data, thereby improving the accuracy of the prediction. The feature matrix after the weight is given by the attention mechanism is then passed through a fully connected layer to obtain the final prediction output; Step 4.4: GWO algorithm optimizes model parameters: The objective function is to minimize in is the predicted value of the model, y is the actual value, N is the length of the data sequence, and the fitness function of the GWO algorithm is: The GWO algorithm calculates the fitness function above, updates the wolf pack position, obtains the optimal solution for the LSTM-SA network model parameters, and uses the optimal model parameters to build a multi-step prediction model for the crystal diameter index. The calculation process of the GWO algorithm is as follows: The wolf pack is divided into four layers. The first layer is the α wolf pack, the leader of the pack, responsible for leading the entire wolf pack to hunt prey, which is the optimal solution in the algorithm; the second layer is the β wolf pack, which is responsible for assisting the α wolf pack, which is the suboptimal solution in the algorithm; the third layer is the δ wolf pack, which obeys the orders and decisions of α and β. α and β with poor fitness will be reduced to δ; the last layer is the ω wolf pack, which updates its position around α, β or δ. The hunting process of gray wolves includes the following three aspects: (1) Surrounding the prey In the GWO algorithm, the gray wolf uses the following position update formula to surround the prey during the hunting process: In the formula, is the distance between the gray wolf and its prey, Update the formula for the gray wolf's position, and are the position vector of the prey and the position vector of the gray wolf, and t is the current iteration number; and To determine the coefficient, the calculation formula is as follows: In the formula, and are two one-dimensional random number vectors whose components are between [0, 1]. It is used to simulate the attack behavior of gray wolves on prey. Its value is affected by The influence of convergence factor The value of decreases linearly from 2 to 0 as the number of iterations increases; (2) Chasing prey In the iterative process, α, β and δ are used to guide the movement of ω, thereby achieving global optimization, using the positions of α, β and δ Update the positions of all gray wolves using the following equation: In the formula, They represent the distances of the individual ω gray wolf from the α, β, and δ wolf packs respectively; In the formula, They represent the position that the individual ω gray wolf needs to adjust under the influence of the α, β and δ wolf packs respectively; the average value is taken here (3) Attacking prey In the following formula, t represents the current number of iterations, and T represents the maximum number of iterations. When the value of a decreases from 2 to 0, the corresponding value of A also changes in the interval [-a, a]. The larger the value of a, the farther the gray wolf will move away from the prey, hoping to find a more suitable prey, thus prompting the wolf pack to conduct a global search (|A|>1). If the value of a is smaller, the gray wolf will move closer to the prey, prompting the wolf pack to conduct a local search (|A|<1). The a value calculated according to the above formula effectively avoids the risk of the GWO algorithm falling into the local search area when performing a global search for the LSTM-SA network model parameters, thereby ensuring the acquisition of the optimal solution for the LSTM-SA network model parameters.

Citation Information

Cited By

  • Semiconductor silicon single crystal growth V / G value prediction method based on event trigger learning

    CN121407203A