Online monitoring method and system for continuous synthesis of iron phosphate based on data analysis
By constructing state vectors and adjusting weights during the continuous synthesis of iron phosphate, combined with the AdaBoost algorithm, the problem of sensitive feature selection and overfitting of the AdaBoost algorithm in the continuous synthesis of iron phosphate is solved, and the performance and monitoring accuracy of the model are improved.
Patent Information
- Application Number
- CN202410606076.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-05-16
AI Technical Summary
The AdaBoost algorithm is sensitive to feature selection during the continuous synthesis of iron phosphate, which can easily lead to a decline in model performance, and the fixed-size weight processing method of conventional algorithms is difficult to generalize to new data samples, resulting in inaccurate online monitoring results.
By acquiring the state signals during the continuous synthesis of iron phosphate, we construct a state vector, perform clustering and sequence analysis, calculate the impact of each cluster element value on the yield, distinguish the vector weights of features, adjust the initial weights, and combine neighborhoods Set and correlation deviation, use AdaBoost algorithm to train strong classifiers to enhance model performance and generalization ability.
It improves the performance and generalization ability of the model, reduces over-fitting problems, and improves the accuracy of strong classifiers on condition monitoring results.
Smart Images

Figure CN118194209B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to an online monitoring method and system for continuous synthesis of iron phosphate based on data analysis. Background Art
[0002] The continuous synthesis of iron phosphate is a complex and important process. In order to ensure the high efficiency of the synthesis and the stability of product quality, the synthesis process needs to be monitored and controlled in real time.
[0003] Existing methods use sensors and instruments to collect various parameters and signals in the synthesis process in real time, and process and analyze these data through data analysis algorithms. By monitoring key parameters and performing real-time analysis, accurate monitoring and control of the synthesis process can be achieved.
[0004] The AdaBoost algorithm is a commonly used ensemble learning algorithm. Its basic idea is to obtain multiple weak classifiers by repeatedly training the data set, and then weightedly combine the classifiers to obtain the final strong classifier. When used for monitoring the continuous synthesis process of iron phosphate, the AdaBoost algorithm can train a classifier with high accuracy based on the existing data to classify the parameters in the reaction process and determine whether there are abnormalities. However, the AdaBoost algorithm is sensitive to feature selection. If a large number of parameters in the synthesis process of iron phosphate are not distinguished and directly trained, it is likely to cause the performance of the model to decline. In addition, due to the complexity and changeability of the synthesis process, the conventional algorithm only changes the fixed-size weight of the data by classifying the correctness or error, which may cause the model to over-adapt to the training data and be difficult to generalize to new data samples, ultimately resulting in poor results of the trained classifier, and thus inaccurate online monitoring results of continuous synthesis of iron phosphate. Summary of the invention
[0005] In order to solve the above problems, the present invention provides an online monitoring method and system for continuous synthesis of iron phosphate based on data analysis.
[0006] The method and system for online monitoring of continuous synthesis of iron phosphate based on data analysis of the present invention adopt the following technical solutions:
[0007] One embodiment of the present invention provides an online monitoring method for continuous synthesis of iron phosphate based on data analysis, the method comprising the following steps:
[0008] Acquire several state signals in the continuous synthesis process of ferric phosphate, wherein the several state signals include: temperature signal, pressure signal, solution flow signal and yield signal;
[0009] Construct the state vector at each moment according to the signal value at each moment in the temperature signal, the pressure signal and the solution flow signal; cluster the state vectors at all moments to obtain several clusters; obtain the first set of each cluster; obtain several first sequences of each cluster according to the first set of each cluster; obtain the influence of the element value in each first sequence of each cluster on the yield according to the difference of the element value in the first sequence of the cluster and the difference of the corresponding yield value in the yield signal; obtain the total influence of the element value in each first sequence of all clusters on the yield according to the influence of the element value in each first sequence of all clusters on the yield; obtain the error of the state vector at each moment according to the total influence;
[0010] Preset a neighborhood set for each state vector; obtain a weight coefficient for each state vector based on the distance between the state vector in the neighborhood set and the state vector to which the neighborhood set belongs, and the error of the state vector; obtain an initial weight for each state vector based on the weight coefficient;
[0011] Obtain the correlation deviation degree of each state vector; obtain the final weight of each state vector according to the size of the correlation deviation degree and the initial weight; use the AdaBoost algorithm to train according to the final weights of all state vectors to obtain the final strong classifier; obtain the abnormal result of the state vector to be tested according to the strong classifier.
[0012] Furthermore, the method of obtaining the influence of the element value in each first sequence of each cluster on the yield according to the difference of the element value in the first sequence of the cluster and the difference of the corresponding yield value in the yield signal comprises the following specific steps:
[0013] Record any cluster as the target cluster, and record any first sequence of the target cluster as the target first sequence;
[0014] The first sequence of targets The first-order forward difference of the yield value corresponding to the element value in the yield signal and the first element value in the target first sequence The ratio of the first-order forward differences of the element values is recorded as The first ratio of the element values is calculated, and the average value of the first ratios of all element values in the target first sequence is recorded as the influence of all element values in the target first sequence on the yield.
[0015] Furthermore, the method of obtaining the total influence degree of the element values in each first sequence of all clusters on the yield according to the influence degree of the element values in each first sequence of all clusters on the yield comprises the following specific steps:
[0016] All clusters The average of the influence of all element values in the first sequence on the yield is recorded as the first The first average value of the first sequence is used as the first average value of all clusters. The total influence of the element values in the first sequence on the yield.
[0017] Furthermore, the step of obtaining the error of the state vector at each moment according to the total influence degree includes the following specific steps:
[0018] Get the standard parameters for each first sequence;
[0019] All clusters The first sequence The absolute value of the difference between the element value and the standard parameter, the The product of the total influence of the element values in the first sequence on the yield is taken as the first The first product of the first sequence of all clusters is normalized by the accumulated value of the first product of all the first sequences of all clusters. The error of the state vector at that moment.
[0020] Furthermore, the weight coefficient of each state vector is obtained according to the distance between the state vector in the neighborhood set and the state vector belonging to the neighborhood set and the error of the state vector, and the specific steps include the following:
[0021] The state vector at any moment is recorded as the reference state vector;
[0022] Get the Euclidean distance between each state vector and the reference state vector, record it as the first Euclidean distance, arrange all the first Euclidean distances in ascending order, get a sequence, record it as the second sequence, and put the first The set of state vectors corresponding to the first Euclidean distance is recorded as the second set. is a preset third value, the cumulative value of the cosine similarity between the reference state vector and all state vectors in the second set is recorded as the second cumulative value, the ratio of the second cumulative value to the number of state vectors in the second set is recorded as the initial second ratio, the inverse proportional value of the initial second ratio is recorded as the second ratio, the cumulative value of the Euclidean distance between the reference state vector and all state vectors in the neighborhood set of the reference state vector is recorded as the third cumulative value, the ratio of the third cumulative value to the number of state vectors in the neighborhood set of the reference state vector is recorded as the third ratio, and the product of the error of the reference state vector, the second ratio and the third ratio is used as the weight coefficient of the reference state vector.
[0023] Furthermore, the specific method for obtaining the correlation deviation degree of each state vector is as follows:
[0024] The state vector at any moment is recorded as the reference state vector;
[0025] ;
[0026] In the formula, , is the number of element values in the state vector, The specific method of obtaining is as follows: element values, denoted as the third sequence, and the first The sequence of element values is recorded as the fourth sequence, and the Pearson correlation coefficient between the third and fourth sequences is recorded as ; For all state vectors The overall relevance of the dimension is the weight of all dimensions, For all state vectors Dimensions and The correlation of the dimensions is The weight of the overall relevance of the dimensions, The specific method of obtaining is as follows: the first element values, denoted as the fifth sequence, and the first The sequence of element values is recorded as the sixth sequence, and the Pearson correlation coefficient between the fifth and sixth sequences is recorded as ; To take the absolute value, is the linear normalization function, is the correlation deviation degree of the reference state vector.
[0027] Furthermore, the final weight of each state vector is obtained according to the magnitude of the correlation deviation and the initial weight, and the specific steps include the following:
[0028] The state vector at any moment is recorded as the reference state vector;
[0029] A second threshold is preset. If the correlation deviation degree of the reference state vector is greater than or equal to the second threshold, the initial weight of the reference state vector is reset to 0 as the final weight of the reference state vector. If the correlation deviation degree of the reference state vector is less than the second threshold, the initial weight of the reference state vector is used as the final weight of the reference state vector.
[0030] Furthermore, the step of obtaining a plurality of first sequences of each cluster according to the first set of each cluster includes the following specific steps:
[0031] Record any cluster as the target cluster;
[0032] The first set of all state vectors in the target cluster is The element values are arranged in ascending order to obtain a sequence, which is recorded as the first sequence of the target cluster.
[0033] Furthermore, the specific method of obtaining the first set of each cluster is as follows:
[0034] Record any cluster as the target cluster;
[0035] Will The result is recorded as , the state vector closest to the center of the target cluster is recorded as the central state vector, is the central state vector of the target cluster except the The value of the element outside element values, is the target cluster The state vectors are divided into The value of the element outside element values, To take the absolute value, is the state vector of all target clusters except the The value of the element outside The maximum value of the element values, is the state vector of all target clusters except the The value of the element outside The minimum value of the element values, To obtain the maximum value, , is the state vector except The number of remaining element values besides the element values if Less than or equal to , is a preset first value, and the first The state vector is retained if Greater than , the first state vectors are discarded to obtain all the retained state vectors of the target cluster, and the set consisting of all the retained state vectors of the target cluster is recorded as the first set of the target cluster.
[0036] The present invention also proposes an online monitoring system for continuous synthesis of ferric phosphate based on data analysis, comprising a memory and a processor, wherein the processor executes a computer program stored in the memory to implement the steps of the aforementioned method.
[0037] The beneficial effect of the technical solution of the present invention is that after obtaining several state signals in the continuous synthesis process of iron phosphate, the present invention constructs a state vector at each moment, the state vector reflects the state information at a certain moment in the synthesis process of iron phosphate, and obtains the influence of the element value in each first sequence of each cluster on the yield through the difference of the element value in the first sequence of the cluster and the difference of the corresponding yield value in the yield signal, and the influence reflects the influence of a certain state dimension on the iron phosphate yield, and then according to the total influence, the error of the state vector at each moment is obtained, the influence of different features on the vector weight is distinguished, the performance of the model is enhanced, and the initial weight of the state vector is obtained by combining the distance between the state vector in the neighborhood set and the state vector belonging to the neighborhood set, and finally by obtaining the correlation deviation degree of the state vector, the initial weight is adjusted according to the size of the correlation deviation degree to obtain the final weight of the state vector, and then the abnormal result of the state vector to be tested is obtained according to the strong classifier, and when obtaining the initial weight, the weight size at the beginning of the training is adaptively adjusted according to the performance of the feature space in the time series, so that the classifier trained subsequently can better meet the characteristics of the scene, reduce the problem of overfitting, enhance the generalization ability of the model, and improve the accuracy of the final strong classifier for the state monitoring result. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A flow chart of the steps of an online monitoring method for continuous synthesis of iron phosphate based on data analysis provided by one embodiment of the present invention;
[0040] Figure 2 A flowchart of obtaining an abnormal result of a state vector to be tested is provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the method and system for online monitoring of continuous synthesis of iron phosphate based on data analysis proposed by the present invention, its specific implementation method, structure, characteristics and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0042] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0043] The specific scheme of the method and system for online monitoring of continuous synthesis of iron phosphate based on data analysis provided by the present invention is described in detail below with reference to the accompanying drawings.
[0044] See also Figure 1 and Figure 2 , which shows a flow chart of the steps of an online monitoring method for continuous synthesis of iron phosphate based on data analysis and a flow chart of obtaining abnormal results of a state vector to be measured provided by an embodiment of the present invention, the method comprising the following steps:
[0045] Step S001, obtaining several status signals during the continuous synthesis process of iron phosphate.
[0046] It should be noted that the purpose of this implementation is to use the existing parameter data in the continuous synthesis process of iron phosphate to train multiple classifiers through the AdaBoost algorithm, and adapt the weights at the beginning of training according to the performance of the data in time series and feature space, and then remove the influence of noise on the adaptive weights, and finally obtain a training model that is more in line with the characteristics of the scene and has a stronger generalization ability, and use the trained strong classifier with higher accuracy to determine whether there is any abnormality in the parameter state of the continuous synthesis process of iron phosphate. Before starting the analysis, collect data first.
[0047] Specifically, several status signals in the continuous synthesis process of iron phosphate are obtained, as follows:
[0048] Sensors are installed inside and near the reactor for continuous synthesis of iron phosphate, and several state signals during the continuous synthesis of iron phosphate are collected by using the sensors installed inside and near the reactor. The several state signals include: temperature signals, pressure signals, solution flow signals, yield signals and other multi-dimensional signals. It should be noted that the several state signals are all discrete time signals, and each state signal contains several corresponding signal values, such as the temperature signal contains several temperature values.
[0049] It should be noted that when collecting signals, the sampling frequency is once every 10 seconds, and the total collection time is 2 hours. The sampling frequency and total time are set based on experience and can be adjusted according to needs in specific applications. After that, the obtained status signals are transmitted to the monitoring system for analysis and control.
[0050] So far, several status signals in the continuous synthesis process of iron phosphate have been obtained.
[0051] Step S002, construct the state vector at each moment; cluster the state vectors at all moments; obtain the total influence of the element values in each first sequence of all clusters on the yield according to the influence of the element values in each first sequence of all clusters on the yield; obtain the error of the state vector at each moment according to the total influence.
[0052] It should be noted that the conventional AdaBoost algorithm has the same weight for all data at the beginning of training, and during the training process the weight of the data is only adjusted by whether the data is correctly classified. However, the continuous synthesis process of iron phosphate is complex and changeable. This weight processing method may cause the model to perform well only on training data, but difficult to generalize to new data samples. Therefore, it is necessary to adapt the weight at the beginning of training according to the performance of the signal in time series and feature space, so that the subsequent training results are more in line with the characteristics of the scene; and the method of analyzing and controlling each dimensional parameter separately is easy to ignore the interaction between parameters, and cannot reflect the difference in the impact of different dimensional parameters on the whole, resulting in a decrease in the accuracy of the final classifier. Therefore, it is also necessary to obtain the corresponding importance according to the performance of different dimensional parameters, so as to distinguish the influence of different features on the data weight.
[0053] It should be noted that when monitoring the continuous synthesis process of iron phosphate, the changes in various parameters at each moment are usually monitored to determine whether there are abnormalities. In fact, the parameters of different dimensions will interact with each other and have different influences on the synthesis process. Therefore, when judging whether there is an abnormality in the synthesis state, it is necessary to combine multi-dimensional parameters for joint analysis, and also calculate the importance of parameters of different dimensions, and finally obtain the overall error of the data at each moment to determine whether the corresponding data is abnormal data.
[0054] Specifically, the state vector at each moment is constructed according to the signal values of the temperature signal, pressure signal and solution flow signal at each moment, as follows:
[0055] Record each time in the state signal as a moment, and The three-dimensional vector composed of the temperature value, pressure value and solution flow value at the moment is recorded as The state vector at that moment.
[0056] It should be noted that in order to obtain the error of the data (state vector) at each moment, it is necessary to first calculate the impact of parameters of different dimensions on the yield, use the change of the yield parameter during synthesis to reflect the impact of other variables on the reaction, and use the control variable method to analyze the impact of the parameter value at each moment on the yield parameter.
[0057] Specifically, the state vectors at all times are clustered to obtain several clusters, as follows:
[0058] The state vectors of all moments are obtained, and K-means clustering is performed on the state vectors of all moments. The distance metric adopts the Euclidean distance between the state vectors to obtain several clusters. It should be noted that obtaining the Euclidean distance between the vectors is an existing method. In this embodiment, the K value of K-means clustering is described as 10. The specific clustering is an existing method and will not be repeated here.
[0059] Furthermore, the first set of each cluster is obtained as follows:
[0060] Record any cluster as the target cluster.
[0061] Will The result is recorded as , the state vector closest to the center of the target cluster is recorded as the central state vector, is the central state vector of the target cluster except the The value of the element outside element values, is the target cluster The state vectors are divided into The value of the element outside element values, To take the absolute value, is the state vector of all target clusters except the The value of the element outside The maximum value of the element values, is the state vector of all target clusters except the The value of the element outside The minimum value of the element values, To obtain the maximum value, , is the state vector except The number of remaining element values besides the element values if Less than or equal to , is a preset first value. Describe the target cluster The state vector is retained if Greater than , the first state vectors are discarded to obtain all the retained state vectors of the target cluster, and the set consisting of all the retained state vectors of the target cluster is recorded as the first set of the target cluster.
[0062] Specifically, several first sequences of each cluster are obtained according to the first set of each cluster, as follows:
[0063] The first set of all state vectors in the target cluster is The element values are arranged in ascending order to obtain a sequence, which is recorded as the first sequence of the target cluster.
[0064] Furthermore, according to the difference in element values in the first sequence of the clusters and the difference in the corresponding yield values in the yield signal, the influence of the element values in each first sequence of each cluster on the yield is obtained. As an embodiment, the specific calculation method is as follows:
[0065] Any first sequence of the target cluster is recorded as the target first sequence.
[0066] ;
[0067] In the formula, is the number of element values in the first sequence of the target, The first sequence of targets The first-order forward difference of the element values, The first sequence of targets The first-order forward difference of the yield value corresponding to the element value in the yield signal, To take the absolute value, The influence of all element values in the first sequence of the target on the yield.
[0068] It should be noted that It represents the degree of change of the yield when the element value of the state vector increases. The faster the increase, the greater the influence of the element value of the state vector in the first set on the iron phosphate yield.
[0069] Furthermore, according to the influence of the element values in each first sequence of all clusters on the yield, the total influence of the element values in each first sequence of all clusters on the yield is obtained. As an embodiment, the specific calculation method is as follows:
[0070] ;
[0071] In the formula, is the number of clusters, For the The first The degree of influence of all element values in the first sequence on the yield, is a linear normalization function, and the normalized object is the first sequence of all clusters corresponding to , For all clusters The total influence of the element values in the first sequence on the yield.
[0072] It should be noted that the degree of influence of all element values in the first sequence on the yield is greater with the importance of the corresponding dimension element value.
[0073] Furthermore, according to the total influence degree, the error of the state vector at each moment is obtained. As an embodiment, the specific calculation method is as follows:
[0074] Obtaining the standard parameters of each first sequence It should be noted that each first sequence corresponds to one dimension, and obtaining the standard parameters of each first sequence is an existing method, which will not be described in detail in this embodiment.
[0075] ;
[0076] In the formula, For all clusters The total influence of the element values in the first sequence on the yield, is the number of the first sequence of clusters, For all clusters The first sequence The absolute value of the difference between the element value and the standard parameter, is a linear normalization function, and the normalized object is the first sequence of all clusters corresponding to , For the The error of the state vector at that moment.
[0077] It should be noted that the error of the data at each moment is calculated according to the importance of parameters in different dimensions, where the error is obtained by weighting the difference and importance of parameters in each dimension, and the standard for error comparison is the standard parameter established in the industry.
[0078] At this point, the error of the state vector at each moment is obtained.
[0079] Step S003: Obtain a weight coefficient of each state vector according to the distance between the state vector in the neighborhood set and the state vector belonging to the neighborhood set and the error of the state vector; and obtain an initial weight of each state vector according to the weight coefficient.
[0080] It should be noted that when the classifier is repeatedly trained using the AdaBoost algorithm, the error rate of the classifier will be judged based on the weight of the data. Data with high weights contributes to a higher error rate when misclassified. Therefore, all data will be given the same weight at the beginning of training. After each training session, the weight of the data that was misclassified in this training session will increase in the next training session. Since the continuous synthesis process of iron phosphate is cumbersome and changeable, and the types and relationships of parameters are also relatively complex, it is difficult for the same initial weights to capture the scene characteristics of the data well, resulting in the final classifier performing well only on the training data and being difficult to generalize to new data samples.
[0081] It should be noted that in the process of continuous synthesis of iron phosphate, the data at each moment has different requirements for classification accuracy. For abnormal data with errors exceeding the threshold, the larger their errors, the more attention they should be paid to in the next training, and the corresponding weights should also be larger; for any data, if the number of data similar to the data in the sample is small, the sample should also be given greater attention to enhance the classifier's ability to distinguish this part of the data; and if a certain data has an irregular change trend in time series, it means that the data may be a special node in the reaction process, and the data of this node also needs to increase the weight to improve the accuracy of classification.
[0082] Specifically, the neighborhood set of each state vector is preset as follows:
[0083] The state vector at any time is recorded as the reference state vector, and the state vector before the reference state vector and after The set of state vectors is recorded as the neighborhood set of the reference state vector. is a preset second value. It should be noted that if there is no state vector, the corresponding neighborhood set is not obtained.
[0084] Furthermore, according to the distance between the state vector in the neighborhood set and the state vector belonging to the neighborhood set and the error of the state vector, a weight coefficient of each state vector is obtained. As an embodiment, the specific calculation method is as follows:
[0085] ;
[0086] In the formula, is the error of the reference state vector, The specific method of obtaining is as follows: obtain the Euclidean distance between each state vector and the reference state vector, recorded as the first Euclidean distance, arrange all the first Euclidean distances in ascending order to obtain a sequence, recorded as the second sequence, and The set of state vectors corresponding to the first Euclidean distance is recorded as the second set. is a preset third value. Describe the number of state vectors in the second set as ; is the reference state vector, For the second set state vector, is the reference state vector and the The cosine similarity of the state vectors, is the number of state vectors in the neighborhood set of the reference state vector, is the first in the neighborhood set of the reference state vector state vector, To take the norm, is an exponential function with a natural constant as the base. The model shows the inverse proportional relationship. As the input of the model, the implementer can set the inverse proportional function according to the specific implementation situation. is the weight coefficient of the reference state vector.
[0087] It should be noted that the larger the error of the reference state vector is, the larger the weight coefficient of the reference state vector should be. It represents the average similarity between the state vectors close to the reference state vector and the reference state vector. The smaller the value, the higher the degree of isolation of the reference state vector, and the larger the corresponding weight coefficient should be. It indicates the changing trend of the reference state vector in time series. The larger its value is, the stronger the changing trend is, and the larger the weight coefficient of the reference state vector should be.
[0088] Specifically, the initial weight of each state vector is obtained according to the weight coefficient, as follows:
[0089] The weight coefficient of each state vector is obtained, the accumulated value of the weight coefficients of all state vectors is recorded as a first accumulated value, and the ratio of the weight coefficient of each state vector to the first accumulated value is used as the initial weight of each state vector.
[0090] It should be noted that the larger the weight coefficient of the state vector, the larger its initial weight. The initial weight is used to replace the same fixed weight in the AdaBoost algorithm, so that all state vectors have different weights at the beginning of training.
[0091] At this point, the initial weight of each state vector is obtained.
[0092] Step S004, obtain the correlation deviation degree of each state vector; obtain the final weight of each state vector according to the size of the correlation deviation degree and the initial weight; use the AdaBoost algorithm to train according to the final weights of all state vectors to obtain the final strong classifier; obtain the abnormal result of the state vector to be tested according to the strong classifier.
[0093] It should be noted that in the process of calculating the data weight coefficient, the error, isolation degree and change trend of the data are taken into account. However, when collecting data in the continuous synthesis process of iron phosphate, noise data may be generated due to system instability, sensor failure, communication interference and other reasons. These noise data are higher than normal data in terms of error, isolation degree and change trend, resulting in their weight coefficients being relatively high, and the accuracy of the trained classifier will also decrease. Compared with the real reaction state data, the noise data often has abnormal correlations between various parameters. Since the reaction state data is in vector form, it is composed of state parameters of multiple dimensions, and most of these parameters during the reaction have certain correlations, such as temperature and reaction rate, pH value and purity, pressure and flow, etc. However, most of the noise will only be reflected in a single or partial dimension, and noise will not appear in all dimensions, so the correlation of noise data in multiple dimensions will be destroyed. Therefore, the change relationship of the data in time series is used to judge whether noise occurs. If the correlation deviation between multiple dimensions when the data changes is large, it means that noise occurs.
[0094] Specifically, the correlation deviation degree of each state vector is obtained. As an embodiment, the specific calculation method is as follows:
[0095] ;
[0096] In the formula, , is the number of element values in the state vector, The specific method of obtaining is as follows: element values, denoted as the third sequence, and the first The sequence of element values is recorded as the fourth sequence, and the Pearson correlation coefficient between the third and fourth sequences is recorded as ; It should be noted that the order of the element values in the third sequence and the fourth sequence is arranged according to the corresponding time sequence; For all state vectors The overall relevance of the dimension is the weight of all dimensions, For all state vectors Dimensions and The correlation of the dimensions is The weight of the overall relevance of the dimensions, The specific method of obtaining is as follows: the first element values, denoted as the fifth sequence, and the first The sequence of element values is recorded as the sixth sequence, and the Pearson correlation coefficient between the fifth and sixth sequences is recorded as ; To take the absolute value, is a linear normalization function, and the normalized object is all state vectors , is the correlation deviation degree of the reference state vector.
[0097] Furthermore, according to the magnitude of the correlation deviation and the initial weight, the final weight of each state vector is obtained, as follows:
[0098] A second threshold is preset. In this embodiment, the second threshold is described as 0.8. If the correlation deviation of the reference state vector is greater than or equal to the second threshold, the initial weight of the reference state vector is reset to 0 as the final weight of the reference state vector. If the correlation deviation of the reference state vector is less than the second threshold, the initial weight of the reference state vector is used as the final weight of the reference state vector.
[0099] It should be noted that when the degree of correlation deviation is greater than or equal to the second threshold, this embodiment considers the reference state vector to be a noise vector. At this time, its initial weight is reset to 0, that is, the correctness of the classification result of the state vector will not affect the error rate of the classifier, which indirectly improves the classification accuracy of the classifier for other real data.
[0100] Specifically, the AdaBoost algorithm is used to repeatedly train according to the final weights of all state vectors to obtain a final strong classifier. It should be noted that the AdaBoost algorithm is used to repeatedly train according to the final weights of all state vectors to obtain a final strong classifier, which is an existing method and will not be described in detail in this embodiment. The strong classifier is a classifier with a better parameter monitoring effect in the continuous synthesis process of iron phosphate.
[0101] Furthermore, the abnormal result of the state vector to be tested is obtained according to the strong classifier, as follows:
[0102] Several state vectors to be tested in the continuous synthesis process of iron phosphate are obtained. It should be noted that the state vector to be tested is different from the state vector obtained above. A strong classifier is used to classify each state vector to be tested, and an abnormal result of each state vector to be tested is obtained. If the state vector to be tested is an abnormal state vector, an early warning is issued. If the state vector to be tested is a normal state vector, no early warning is issued.
[0103] At this point, a strong classifier is obtained by determining the final weight of each state vector, and the abnormal result of the state vector to be tested is obtained according to the strong classifier, thereby completing the online monitoring of continuous synthesis of iron phosphate based on data analysis.
[0104] Another embodiment of the present invention provides an online monitoring system for continuous synthesis of iron phosphate based on data analysis, the system comprising a memory and a processor, and when the processor executes a computer program stored in the memory, the following operations are performed:
[0105] The invention relates to a method for obtaining a plurality of state signals in a continuous synthesis process of ferric phosphate, wherein the plurality of state signals include a temperature signal, a pressure signal, a solution flow rate signal and a yield signal; constructing a state vector at each moment according to the signal value at each moment of the temperature signal, the pressure signal and the solution flow rate signal; clustering the state vectors at all moments to obtain a plurality of clusters; obtaining a first set of each cluster; obtaining a plurality of first sequences of each cluster according to the first set of each cluster; obtaining the influence of the element value in each first sequence of each cluster on the yield according to the difference of the element value in the first sequence of the cluster and the difference of the corresponding yield value in the yield signal; obtaining the influence of the element value in each first sequence of all clusters on the yield according to the influence of the element value in each first sequence of all clusters on the yield. The total influence of the element values in each first sequence of the cluster on the yield; according to the total influence, the error of the state vector at each moment is obtained; the neighborhood set of each state vector is preset; according to the distance between the state vector in the neighborhood set and the state vector belonging to the neighborhood set, and the error of the state vector, the weight coefficient of each state vector is obtained; according to the weight coefficient, the initial weight of each state vector is obtained; the correlation deviation degree of each state vector is obtained; according to the size of the correlation deviation degree and the initial weight, the final weight of each state vector is obtained; according to the final weights of all state vectors, the AdaBoost algorithm is used for training to obtain the final strong classifier; according to the strong classifier, the abnormal result of the state vector to be tested is obtained.
[0106] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An online monitoring method for continuous synthesis of iron phosphate based on data analysis, characterized in that: The method comprises the following steps: Acquire several state signals in the continuous synthesis process of ferric phosphate, wherein the several state signals include: temperature signal, pressure signal, solution flow signal and yield signal; Construct the state vector at each moment according to the signal value at each moment in the temperature signal, the pressure signal and the solution flow signal; cluster the state vectors at all moments to obtain several clusters; obtain the first set of each cluster; obtain several first sequences of each cluster according to the first set of each cluster; obtain the influence of the element value in each first sequence of each cluster on the yield according to the difference of the element value in the first sequence of the cluster and the difference of the corresponding yield value in the yield signal; obtain the total influence of the element value in each first sequence of all clusters on the yield according to the influence of the element value in each first sequence of all clusters on the yield; obtain the error of the state vector at each moment according to the total influence; Preset a neighborhood set for each state vector; obtain a weight coefficient for each state vector based on the distance between the state vector in the neighborhood set and the state vector to which the neighborhood set belongs, and the error of the state vector; obtain an initial weight for each state vector based on the weight coefficient; Obtain the correlation deviation degree of each state vector; obtain the final weight of each state vector according to the size of the correlation deviation degree and the initial weight; use the AdaBoost algorithm to train according to the final weights of all state vectors to obtain the final strong classifier; obtain the abnormal result of the state vector to be tested according to the strong classifier; The method of obtaining the weight coefficient of each state vector according to the distance between the state vector in the neighborhood set and the state vector belonging to the neighborhood set and the error of the state vector includes the following specific steps: The state vector at any moment is recorded as the reference state vector; Get the Euclidean distance between each state vector and the reference state vector, record it as the first Euclidean distance, arrange all the first Euclidean distances in ascending order, get a sequence, record it as the second sequence, and put the first The set of state vectors corresponding to the first Euclidean distance is recorded as the second set. is a preset third value, the cumulative value of the cosine similarity between the reference state vector and all the state vectors in the second set is recorded as the second cumulative value, the ratio of the second cumulative value to the number of state vectors in the second set is recorded as the initial second ratio, the inverse proportional value of the initial second ratio is recorded as the second ratio, the cumulative value of the Euclidean distance between the reference state vector and all the state vectors in the neighborhood set of the reference state vector is recorded as the third cumulative value, the ratio of the third cumulative value to the number of state vectors in the neighborhood set of the reference state vector is recorded as the third ratio, and the product of the error of the reference state vector, the second ratio and the third ratio is used as the weight coefficient of the reference state vector; The specific method for obtaining the correlation deviation degree of each state vector is as follows: The state vector at any moment is recorded as the reference state vector; ; In the formula, , is the number of element values in the state vector, The specific method of obtaining is as follows: element values, denoted as the third sequence, and the first The sequence of element values is recorded as the fourth sequence, and the Pearson correlation coefficient between the third and fourth sequences is recorded as ; For all state vectors The overall relevance of the dimension is the weight of all dimensions, For all state vectors Dimensions and The correlation of the dimensions is The weight of the overall relevance of the dimensions, The specific method of obtaining is as follows: the first element values, denoted as the fifth sequence, and the first The sequence of element values is recorded as the sixth sequence, and the Pearson correlation coefficient between the fifth and sixth sequences is recorded as ; To take the absolute value, is the linear normalization function, is the correlation deviation degree of the reference state vector; The final weight of each state vector is obtained according to the magnitude of the correlation deviation and the initial weight, and the specific steps include the following: The state vector at any moment is recorded as the reference state vector; A second threshold is preset. If the correlation deviation degree of the reference state vector is greater than or equal to the second threshold, the initial weight of the reference state vector is reset to 0 as the final weight of the reference state vector. If the correlation deviation degree of the reference state vector is less than the second threshold, the initial weight of the reference state vector is used as the final weight of the reference state vector.
2. The method for online monitoring of continuous synthesis of iron phosphate based on data analysis according to claim 1, characterized in that: The step of obtaining the influence of the element value in each first sequence of each cluster on the yield according to the difference of the element value in the first sequence of the cluster and the difference of the corresponding yield value in the yield signal comprises the following specific steps: Record any cluster as the target cluster, and record any first sequence of the target cluster as the target first sequence; The first sequence of targets The first-order forward difference of the yield value corresponding to the element value in the yield signal and the first element value in the target first sequence The ratio of the first-order forward differences of the element values is recorded as The first ratio of the element values is calculated, and the average value of the first ratios of all element values in the target first sequence is recorded as the influence of all element values in the target first sequence on the yield.
3. The method for online monitoring of continuous synthesis of iron phosphate based on data analysis according to claim 1, characterized in that: The method of obtaining the total influence degree of the element values in each first sequence of all clusters on the yield according to the influence degree of the element values in each first sequence of all clusters on the yield comprises the following specific steps: All clusters The average of the influence of all element values in the first sequence on the yield is recorded as the first The first average value of the first sequence is used as the first average value of all clusters. The total influence of the element values in the first sequence on the yield.
4. The method for online monitoring of continuous synthesis of iron phosphate based on data analysis according to claim 1, characterized in that: The specific steps of obtaining the error of the state vector at each moment according to the total influence degree are as follows: Get the standard parameters for each first sequence; All clusters The first sequence The absolute value of the difference between the element value and the standard parameter, the The product of the total influence of the element values in the first sequence on the yield is taken as the first The first product of the first sequence of all clusters is normalized by the accumulated value of the first product of all the first sequences of all clusters. The error of the state vector at that moment.
5. The method for online monitoring of continuous synthesis of iron phosphate based on data analysis according to claim 1, characterized in that: The step of obtaining a plurality of first sequences of each cluster according to the first set of each cluster includes the following specific steps: Record any cluster as the target cluster; The first set of all state vectors in the target cluster is The element values are arranged in ascending order to obtain a sequence, which is recorded as the first sequence of the target cluster.
6. The method for online monitoring of continuous synthesis of iron phosphate based on data analysis according to claim 1, characterized in that: The specific method for obtaining the first set of each cluster is as follows: Record any cluster as the target cluster; Will The result is recorded as , the state vector closest to the center of the target cluster is recorded as the central state vector, is the central state vector of the target cluster except the The value of the element outside element values, is the target cluster The state vectors are divided into The value of the element outside element values, To take the absolute value, is the state vector of all target clusters except the The value of the element outside The maximum value of the element values, is the state vector of all target clusters except the The value of the element outside The minimum value of the element values, To obtain the maximum value, , is the state vector except The number of remaining element values besides the element values if Less than or equal to , is a preset first value, and the first The state vector is retained if Greater than , the first state vectors are discarded to obtain all the retained state vectors of the target cluster, and the set consisting of all the retained state vectors of the target cluster is recorded as the first set of the target cluster.
7. An online monitoring system for continuous synthesis of ferric phosphate based on data analysis, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is executed by a processor, the steps of the online monitoring method for continuous synthesis of iron phosphate based on data analysis as described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Android system malicious software detection method based on mixed feature combination classification
CN112464232A
Intellectual property risk intelligent analysis method based on Internet big data
CN116523320A
CNN-GRU energy consumption prediction method considering dynamic time packaging
CN117251754A
Communication equipment fault remote online monitoring method and system
CN117786399A
Computer Methods and Systems for Dimensionality Reduction in Conjunction with Spectral Clustering of Financial or Other Data
US20210256538A1
