ACCURACY COMPENSATION METHOD FOR DISCHARGE CAUSTIC ALKALI CONCENTRATION MEASURING DEVICE IN EVAPORATION PROCESS
20220083839 · 2022-03-17
Inventors
- Tianyou CHAI (Shenyang, Liaoning, CN)
- Yao JIA (Shenyang, Liaoning, CN)
- Liangyong WANG (Shenyang, Liaoning, CN)
Cpc classification
C01F7/14
CHEMISTRY; METALLURGY
G01N33/00
PHYSICS
G06F17/18
PHYSICS
C01F7/06
CHEMISTRY; METALLURGY
International classification
G01N33/00
PHYSICS
Abstract
Disclosed is an accuracy compensation method for discharge caustic alkali concentration measuring device in evaporation process, comprising following steps: step 1. collecting process data of instrument values and laboratory values of alkali liquor diopter, temperature and caustic alkali concentration in the evaporation process; step 2. performing sliding average filtering, time series matching and normalization on the process data collected in step 1 to obtain preprocessed process data; step 3. inputting the preprocessed process data into an accuracy compensation model of the caustic alkali concentration measuring device to obtain compensation values; step 4. adding the compensation values of the caustic alkali concentration to the instrument values to realize on-line compensation of the caustic alkali concentration. The disclosed can accurately compensate the concentration value measured by the on-line instrument, and the compensated concentration value can follow the actual change trend; moreover, the measurement accuracy can meet the needs of actual production.
Claims
1. An accuracy compensation method for a discharge caustic alkali concentration measuring device in an evaporation process, comprising the following steps: step 1. data acquisition: collecting process data of alkali liquor diopter, temperature and instrument values and laboratory values of caustic alkali concentration in the evaporation process; step 2. data preprocessing: performing sliding average filtering, time series matching and normalization on the process data collected in step 1 to obtain preprocessed process data; step 3. inputting the preprocessed process data into an accuracy compensation model of the caustic alkali concentration measuring device to obtain compensation values; step 4 adding the compensation values of the caustic alkali concentration to the instrument values to realize the on-line compensation of the caustic alkali concentration.
2. The compensation method according to claim 1, wherein: during the sliding average filtering process in step 2, a window length of the sliding average filtering is set, that is, a number of points of the sliding average filtering is N, and the filtering formula is:
3. The compensation method according to claim 1, wherein during the time series matching process in step 2, the process data of 2 hours is divided into 3 parts according to an optimized control period of 40 minutes, and each part takes an average value of the process data of 40 minutes, the average value corresponds to laboratory data of the previous sampling; wherein a formula for the time series matching is:
4. The compensation method according to claim 1, wherein the normalization in step 2, normalizes states of input and output variables used in the accuracy compensation model of the caustic alkali concentration measuring device:
5. The compensation method according to claim 1, further comprising constructing an accuracy compensation model of the caustic alkali concentration measuring device, and training model parameters.
6. The compensation method according to claim 5, wherein constructing the accuracy compensation model of the caustic alkali concentration measuring device comprises the following steps: taking selected historical process data and errors between historical instrument values of the caustic alkali concentration and historical laboratory values as input and output training data of the accuracy compensation model of the caustic alkali concentration measuring device, and using a deep learning algorithm, to construct the accuracy compensation model; using a double-layer LSTM network for the deep learning algorithm to establish the accuracy compensation model of the caustic alkali concentration measuring device.
7. The compensation method according to claim 6, wherein: the compensation method further comprises evaluating the accuracy compensation model of the caustic alkali concentration measuring device by using a root mean square error, a mean absolute error, and a mean absolute percentage error; wherein a formula for calculating the root mean square error is:
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
DETAILED DESCRIPTION OF THE INVENTION
[0030] In order to better explain the present invention and facilitate understanding, the present invention will be described in detail by some embodiments with reference to the drawings.
[0031] The embodiment of the present invention discloses an accuracy compensation method for a discharge caustic alkali concentration measuring device in an evaporation process, which comprises the following steps:
[0032] step 1. data acquisition: collecting process data of alkali liquor diopter, temperature and instrument values and laboratory values of caustic alkali concentration in the evaporation process;
[0033] step 2. data preprocessing: performing sliding average filtering, time series matching and normalization to obtain preprocessed process data;
[0034] step 3. inputting the preprocessed process data into an accuracy compensation model of the caustic alkali concentration measuring device to obtain compensation values;
[0035] step 4. adding the compensation values of the caustic alkali concentration the instrument values and to realize the on-line compensation of the caustic alkali concentration.
[0036] In this embodiment, during the sliding average filtering in step 2, a window length of the sliding average filtering is set, that is, the number of points of the sliding average filtering is N, and the filtering formula is:
wherein X(t) is the value at time t after filtering, X′(t) is the value of the original data at time t, and N is the window length of the sliding average filtering.
[0037] In this embodiment, during the time series matching process in step 2, the process data of 2 hours is divided into 3 parts according to an optimized control period of 40 minutes, and each part takes an average value of the process data of 40 minutes, the average value corresponding to a laboratory data of a previous sampling;
wherein a formula for the time series matching is:
wherein, X(i) is a value at the i.sup.th time after filtering, and X(k) is process data matching a laboratory value at the k.sup.th point.
[0038] In this embodiment, the normalization process adopted in step 2 normalizes the input and output variable states used in the accuracy compensation model of the caustic alkali concentration measuring device:
wherein, for a historical data X=[x.sub.1, . . . , x.sub.n] of a certain variable data, x.sub.n represents a state of the variable at the n.sup.th point, x.sub.max represents the maximum value of the variable in all the historical data, and x.sub.min represents the minimum value of the variable in all the historical data.
[0039] The input variables are preprocessed process data, and the output variables are the compensation values.
[0040] In this embodiment, the compensation method further comprises constructing an accuracy compensation model of the caustic alkali concentration measuring device, and training model parameters.
[0041] In this embodiment, constructing the accuracy compensation model of the caustic alkali concentration measuring device comprises the following steps:
[0042] Taking selected historical process data and the errors between historical instrument values of the caustic alkali concentration and historical laboratory values as input and output training data of the accuracy compensation model of the caustic alkali concentration measuring device, and using a deep learning algorithm to construct the accuracy compensation model;
[0043] Using a double-layer LSTM network for the deep learning algorithm to establish the accuracy compensation model of the caustic alkali concentration measuring device.
[0044] In this embodiment, the compensation method further comprises evaluating the accuracy compensation model of the caustic alkali concentration measuring device by using a root mean square error, a mean absolute error, and a mean absolute percentage error;
wherein a formula for calculating the root mean square error is:
wherein a formula for calculating the mean absolute error is:
wherein a formula for calculating the root mean square error is:
wherein, y.sub.i is laboratory values of the i.sup.th group of samples, and ŷ.sub.i is compensated caustic alkali concentration values of the i.sup.th group of samples.
[0045] As shown in
[0046] Step 1: Data Acquisition
[0047] Collecting process production parameter data and off-line sampling laboratory data; wherein the process data is obtained by reading the PHD (Process History Database) database of evaporation process with a time interval of 1 minute, including collecting the diopter R(k) of discharging alkali liquor, the temperature T(k) of discharging alkali liquor and the instrument value of the caustic alkali concentration; the laboratory data y.sub.Nk(k) are obtained by accessing the enterprise MES system with a time interval of 2 hours. At the same time, the collected data are stored in the local disk in the form of increasing time tags, and the storage format is csv file.
[0048] Step 2: Data Preprocessing
[0049] Performing sliding average filtering on the three types of process data collected in Step 1. The process data is formed into a data matrix X=[x.sub.1,x.sub.2,x.sub.3]. The window length of the sliding average filtering is set, that is, the average number of sliding average filtering points is 10, and the filtering formula of each column is:
wherein, X(t) is a value at time t after filtering, X′(t) is a value of the original data at time t, and N is the window length of the sliding average filtering.
[0050] Time series matching: As the sampling periods of process data and laboratory data are different (sampling period: 1 minute for process data, 2 hours for laboratory data), in order to make full use of process data and extract its characteristics, the process data of 2 hours is divided into 3 parts according to an optimized control period of 40 minutes, and each part takes an average value of the process data of 40 minutes, the average value corresponds to a laboratory data of the previous sampling. The time series matching formula is:
wherein, X(i) is a value at the i.sup.th time after filtering, and X(k) is process data matching a laboratory value at the k.sup.th point.
[0051] For the data from time series matching, the input and output variables of accuracy compensation model of the caustic alkali concentration measuring device in evaporation process are divided, with diopter and temperature as input variables, and the error between instrument value and laboratory value of the caustic alkali concentration as output variables.
[0052] Normalization: All the input and output variable states used in the evaporation process accuracy compensation model are normalized;
[0053] wherein, for the historical data D=[x.sub.1, . . . , x.sub.n] of a certain variable, x.sub.n represents the state of the variable at the n.sup.th time; x.sub.max represents the maximum value of the variable in all historical data; xmin represents the minimum value of the variable in all historical data.
[0054] Step 3: Constructing an Accuracy Compensation Model of the Caustic Alkali Concentration Measuring Device, and Training Model Parameters.
[0055] There are 10,500 groups of input and output data after data processing, of which 8,000 are used for training and 2,500 for testing. With the selected diopter and temperature data as input data, and the error between concentration meter value and laboratory value as output data, a deep learning accuracy compensation model is constructed by using deep learning algorithm. A preferred recurrent neural network structure of the deep learning algorithm for processing time series data is shown in
[0056] The left part in
s.sub.t=f(Ux.sub.t+Ws.sub.t-1) (16)
o.sub.t=soft max(Vs.sub.t) (17)
wherein, f is usually a nonlinear activation function, such as tanh and relu. s.sub.t is obtained from the hidden output s.sub.t-1 at the previous time and the input x.sub.t at the current time. The softmax function is the activation function of the output layer, and is often used in classification problems and mapping the output to a probability distribution of (0,1).
[0057] As the traditional RNN model has the problems of vanishing gradient and exploding gradient, especially when the series is very long, the traditional RNN model cannot be used directly at this time, but long short-term memory network (LSTM), which is a special case of RNN, is widely used.
[0058] Long short-term memory network (LSTM) is a special type of RNN. The main difference between LSTM and RNN is that LSTM adds a “processor” to the algorithm to judge whether the information is useful or not. The structure on which the processor acts is called “cell”, as shown in
[0059] The operating principle of the cell structure can be expressed by formulas (18) to (22):
f.sub.t=σ(W.sub.f.Math.[h.sub.t-1,x.sub.t]+b.sub.f) (18)
i.sub.t=σ(W.sub.i.Math.[h.sub.t-1,x.sub.t]+b.sub.i) (19)
C.sub.t=f.sub.t*C.sub.t-1+i.sub.t*tanh(W.sub.C.Math.[h.sub.t-1,x.sub.t]+b.sub.C) (20)
o.sub.t=σ(W.sub.o.Math.[h.sub.t-1,x.sub.t]+b.sub.o) (21)
h.sub.t=o.sub.t*tanh(C.sub.t) (22)
wherein, h.sub.t represents all the outputs of the LSTM unit at time t; W.sub.f, W.sub.i, W.sub.C, and W.sub.o are the weight matrix composed of coefficients; b.sub.f, b.sub.i, b.sub.c, and b.sub.o are the bias vectors of the corresponding weights; σ is the activation function sigmoid, and tanh is the activation function; .Math. is the point multiplication operation; C.sub.t represents the calculation method of the memory cell at time t; f.sub.t, i.sub.t, and o.sub.t are the calculation methods of the input gate, forgetting gate and output gate at time t, respectively. It can be seen from
[0060] The accuracy compensation model of the caustic alkali concentration measuring device is constructed by using double-layer LSTM networks and one fully connected layer. The accuracy compensation model is trained and tested by using the training set and test set divided previously. The root mean square error is used as the error function for error back propagation learning of neural network. The calculation formula of mean square error is:
[0061] Add the compensation value obtained by denormalizing the output of the accuracy compensation model of the caustic alkali concentration measuring device in Step 3 to the output value of the measuring device to obtain the predicted value of the caustic alkali concentration, as shown in the following formula:
ŷ.sub.Nk(k)=Nk(k)+e(k) (24)
wherein, ŷ.sub.Nk(k) is the predicted value of the caustic alkali concentration by the accuracy compensation algorithm, Nk(k) represents the output value of the caustic alkali concentration measuring device, and e(k) represents the output value of the accuracy compensation model based on deep learning.
[0062] Step 4: Prediction of Real-Time Compensation of the Caustic Alkali Concentration
[0063] The prediction results are shown in
[0064] The predicted value of the caustic alkali concentration by the accuracy compensation algorithm and the output value of the caustic alkali concentration measuring device are evaluated using root mean square error, mean absolute error, and mean absolute percentage error:
[0065] wherein a formula for calculating the root mean square error is:
[0066] wherein a formula for calculating the mean absolute error is:
[0067] wherein a formula for calculating the root mean square error is:
wherein, y.sub.i is the laboratory values of the i.sup.th group of samples, and ŷ.sub.i is the caustic alkali concentration values of the i.sup.th group of samples before and after compensation.
[0068] The index calculation results are shown in Table 1 and
TABLE-US-00001 TABLE 1 Error evaluation index table of the caustic alkali concentration measuring device before and after compensation RMSE MAE MAPE Before 9.332 8.235 3.562 compensation After compensation 3.006 2.264 0.97
[0069] The distribution of errors before and after compensation is shown in Table 2 and
TABLE-US-00002 TABLE 2 Error distribution table of the caustic alkali concentration measuring device before and after accuracy compensation |error|<=3 3<|error|<=5 |error|>5 Before 304 322 1874 compensation After compensation 1784 549 167
[0070] In conclusion, the accuracy compensation model of the caustic alkali concentration measuring device has high accuracy, reliability, and accuracy.
[0071] In this embodiment, a model accuracy judgment module is also constructed. When the accuracy compensation model of the caustic alkali concentration measuring device cannot meet the requirements, it is necessary to retrain and correct the accuracy compensation model. Through the recent accumulated process data and laboratory values, the new model is trained to realize the long-term, stable, and accurate on-line compensation of the accuracy compensation model.
[0072] The technical principle of the present invention has been described above in combination with embodiments. These descriptions are only for explaining the principle of the present invention and cannot be interpreted as limiting the protection scope of the present invention in any way. Base on the description herein, those skilled in the art can think of other specific modes for carrying out the invention without creative work, and these modes will fall within the protection scope of the present invention.