Chemical process abnormality monitoring system and model optimization device based on semi-supervised model
By optimizing the number of hidden layers and noise range of the semi-supervised model, and combining with and without label data, a chemical process abnormality monitoring system was established, which solved the problem of identifying abnormal working conditions of chemical equipment and achieved rapid and accurate identification and cost reduction.
Patent Information
- Application Number
- CN202010451660.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-05-25
AI Technical Summary
Abnormal operating conditions caused by changes in raw materials, instrument failures, etc. during the operation of chemical equipment are difficult to quickly and accurately identify, resulting in reduced product quality, safety hazards, and production fluctuations. In addition, traditional deep learning methods have low detection accuracy in the absence of label data.
A chemical process anomaly monitoring system based on a semi-supervised model is adopted. By optimizing the number of hidden layers and noise range of the semi-supervised model, and combining labeled and unlabeled data, a model capable of identifying process anomalies is established.
It realizes the rapid and accurate identification of process anomalies when there is less data on labeled samples and more data on unlabeled samples, reducing the risk of production fluctuations and safety accidents caused by identification errors at a low cost.
Smart Images

Figure CN113723650B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of chemical processes, and in particular to a chemical process anomaly monitoring system based on a semi-supervised model and an optimization device for the semi-supervised model. Background Art
[0002] During the operation of a chemical plant, disturbances such as raw material feed volume, changes in raw material properties, instrument failures, or untimely operations can lead to process abnormalities.
[0003] The inventors have found through investigation that the existing means of identifying and warning abnormal working conditions in chemical plants are still at the level of relying on automated instrument detection data bits and manual experience for analysis and disposal.
[0004] However, abnormal operating conditions in chemical plants are highly concealed and have many related factors, which makes it difficult to detect abnormalities quickly and accurately using manual monitoring methods. This can easily lead to misjudgments or misoperations, which can cause a decline in product quality or output at the very least, and even affect production operation safety, causing production fluctuations and unplanned shutdowns, and even serious accidents.
[0005] Because chemical plants operate continuously, in actual production, process variables generally fluctuate around their setpoints. The time window for abnormal fluctuations is limited, and the number of variables involved in localized abnormal fluctuations is relatively small. Therefore, for abnormal process operation conditions in chemical processes, data annotation is expensive, and constructing large-scale, well-annotated datasets is extremely difficult. Furthermore, because many abnormal features are not readily apparent, traditional deep learning methods are prone to network overfitting when there is little labeled process data, resulting in a significant decrease in detection accuracy. This limits the development and application of traditional deep learning networks in process fault diagnosis. Summary of the Invention
[0006] The purpose of an embodiment of the present invention is to provide a chemical process anomaly monitoring system based on a semi-supervised model and an optimization device for the semi-supervised model. The anomaly monitoring system is based on the optimized semi-supervised model and can solve the problem of process anomaly identification when there is little labeled sample data and a lot of unlabeled sample data in industrial sites.
[0007] In order to achieve the above-mentioned objectives, an embodiment of the present invention provides a chemical process anomaly monitoring system based on a semi-supervised model, wherein the anomaly monitoring system includes: a data acquisition unit, for collecting current data on the working conditions of the working section of the chemical process; and a processor, for using the current data as input of an optimized semi-supervised model to identify whether the current data is abnormal based on the output result of the optimized semi-supervised model, wherein the semi-supervised model is optimized by an optimization device for a semi-supervised model of a chemical process.
[0008] Optionally, the optimization device for optimizing the semi-supervised model of a chemical process includes a processing module, which is used to perform the following operations: determine the loss function of a first initial semi-supervised model, wherein the first initial semi-supervised model is obtained by training with a training set, and the training set is the operating condition data of the working section of the chemical process, having labeled data and unlabeled data constituting an initial preset ratio; compare the loss function of the first initial semi-supervised model with a preset loss value; adjust the number of hidden layers based on the comparison result of the loss function and the preset loss value to determine the range of the number of hidden layers corresponding to the semi-supervised model that satisfies the loss function being less than the preset loss value; and establish a new semi-supervised model with the number of hidden layers from the range of the number of hidden layers, and the new semi-supervised model is the optimized semi-supervised model.
[0009] Optionally, the abnormality monitoring system further includes: a server for storing data related to the working condition and the recognition results output by the semi-supervised model; and a client, which communicates with the server based on a B / S architecture.
[0010] Optionally, the abnormality monitoring system further includes: a display unit, configured to display the recognition result output by the semi-supervised model.
[0011] Optionally, the data acquisition unit includes one or more of the following: a DCS system, a PLC system, an instrument electrical signal acquisition system, a combustible gas detection system, and a video monitoring system.
[0012] Correspondingly, an embodiment of the present invention also provides an optimization device for a semi-supervised model of a chemical process, the optimization device including a processing module, the processing module being used to perform the following operations: determining the loss function of a first initial semi-supervised model, wherein the first initial semi-supervised model is obtained by training with a training set, the training set being the operating condition data of the working section of the chemical process, having labeled data and unlabeled data constituting an initial preset ratio; comparing the loss function of the first initial semi-supervised model with a preset loss value; adjusting the number of hidden layers according to the comparison result between the loss function and the preset loss value to determine the range of the number of hidden layers corresponding to the semi-supervised model that satisfies the condition that the loss function is less than the preset loss value; and establishing a new semi-supervised model with the number of hidden layers within the range of the number of hidden layers, the new semi-supervised model being the optimized semi-supervised model.
[0013] Optionally, the optimization device includes a processing module, which is used to perform the following operations: determine the loss function of a first initial semi-supervised model, wherein the first initial semi-supervised model is obtained by training with a training set, and the training set is the operating condition data of the work section of the chemical process, having labeled data and unlabeled data constituting an initial preset ratio; compare the loss function of the first initial semi-supervised model with a preset loss value; adjust the number of hidden layers according to the comparison result of the loss function and the preset loss value to determine the range of the number of hidden layers corresponding to the semi-supervised model that satisfies the loss function being less than the preset loss value; and establish a new semi-supervised model with the number of hidden layers from the range of the number of hidden layers, wherein the new semi-supervised model is the optimized semi-supervised model.
[0014] Optionally, after determining the range of the number of hidden layers corresponding to the semi-supervised model in which the loss function is less than the preset loss value, the processing module is further used to perform the following operations, including: selecting initial noise and the number of hidden layers to determine a second initial semi-supervised model, the selected number of hidden layers being within the range of the number of layers; comparing the loss function of the second initial semi-supervised model with the preset loss value; and adjusting the noise and the number of hidden layers based on the comparison result of the loss function and the preset loss value to determine the noise range and the range of the number of hidden layers corresponding to the semi-supervised model that satisfies the condition that the loss function is less than the preset loss value, wherein adjusting the number of hidden layers includes selecting the number of hidden layers from the range of the number of hidden layers.
[0015] Optionally, after selecting the number of hidden layers from the range of the number of hidden layers, the processing module is further used to perform the following operations to determine the noise range: presetting a first noise; determining a third loss function of the semi-supervised model corresponding to the first noise; adjusting the first noise to a third preset multiple based on a comparison result between the third loss function and the preset loss value as new noise to establish a new semi-supervised model; and repeating the above operations to determine the noise range corresponding to the semi-supervised model whose loss function is less than the preset loss value.
[0016] Optionally, the processing module is also used to perform the following operations: preset a second noise, and the first noise is smaller than the second noise; determine a third loss function of the semi-supervised model corresponding to the first noise and a fourth loss function of the semi-supervised model corresponding to the second noise; according to the comparison results of the third loss function and the fourth loss function with the preset loss value respectively, adjust the first noise to a third preset multiple and use it as a new noise to establish a new semi-supervised model, and adjust the second noise to a fourth preset multiple and use it as a new noise to establish a new semi-supervised model; repeat the above operations to determine the lower limit noise and upper limit noise corresponding to the semi-supervised model whose loss function is smaller than the preset loss value; and use the lower limit noise and the upper limit noise as the lower limit value and upper limit value of the noise range.
[0017] Optionally, after determining the range of the number of hidden layers and the noise range corresponding to the semi-supervised model whose loss function is less than the preset loss value, the processing module is further used to perform the following operations: reducing the ratio of labeled data to unlabeled data in the training set to a second preset ratio; establishing a third initial semi-supervised model based on the training set of the second preset ratio, the number of hidden layers selected from the range of the number of hidden layers, and the noise selected from the noise range; comparing the loss function of the third initial semi-supervised model with the preset loss value; adjusting the ratio of labeled data to unlabeled data in the training set based on the comparison result of the loss function and the preset loss value, and establishing a new supervised model; and repeating the above operations to determine the range of the ratio of labeled data to unlabeled data in the training set corresponding to the semi-supervised model whose loss function is less than the preset loss value.
[0018] Optionally, there are N labeled data and M unlabeled data in the training set, and the processing module is also used to determine the loss function of the semi-supervised model in the following manner: performing supervised training on the N labeled data to obtain a supervised error loss function C1; performing unsupervised training on the M unlabeled data to obtain an unsupervised error loss function C2; and determining the loss function C based on the supervised error loss function C1 and the unsupervised error loss function C2.
[0019] Optionally, the processing module is used to determine the loss function C in the following manner:
[0020] Optionally, the operating condition is a normal operating condition, a temporary interruption of the reboiler heating steam supply, a failure of a distillation tower kettle liquid level regulator, a change in feed composition, or a temporary interruption of system instrument air.
[0021] Through the above technical solution, the optimized semi-supervised model is used to assist manual identification of whether abnormal functions occur in the chemical process production process. Compared with manual identification, the abnormality monitoring system provided by the embodiment of the present invention has the advantages of fast identification speed, high accuracy and low cost, and can effectively reduce production fluctuations or safety accidents caused by identification errors.
[0022] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following detailed description, they are used to explain the embodiments of the present invention, but do not constitute a limitation of the embodiments of the present invention. In the accompanying drawings:
[0024] Figure 1 This is a flow chart illustrating the principle of an optimization method performed by a processing module of an optimization device for a semi-supervised model of a chemical process provided by an embodiment of the present invention;
[0025] Figure 2 This is a schematic diagram of the recognition accuracy of working condition 3;
[0026] Figure 3 This is a schematic diagram of the recognition accuracy of working condition 4;
[0027] Figure 4 This is a schematic diagram of the recognition accuracy of Model 2 for Working Condition 3 under different proportions of labeled sample data;
[0028] Figure 5 This is a structural block diagram of a chemical process anomaly monitoring system based on a semi-supervised model provided by an embodiment of the present invention;
[0029] Figure 6 This is a structural block diagram of a chemical process anomaly monitoring system based on a semi-supervised model provided by an embodiment of the present invention;
[0030] Figure 7 It is a structural diagram of a chemical process anomaly monitoring system based on a semi-supervised model provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0031] The following describes the specific implementation of the embodiment of the present invention in detail with reference to the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the embodiment of the present invention and is not used to limit the embodiment of the present invention.
[0032] The terms "first," "second," and the like in the embodiments of the present invention are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the technical features being referred to. Therefore, a feature designated as "first" or "second" may explicitly or implicitly include at least one of the features.
[0033] Since the model established by traditional deep learning methods is not suitable for the scenario of abnormal identification of chemical equipment and chemical processes, the semi-supervised model obtained by the semi-supervised learning method is selected and applied in this scenario. Even when there is a large amount of unlabeled data, it can also obtain output results with high accuracy.
[0034] Example 1
[0035] When the semi-supervised model is applied to the anomaly identification scenario of a chemical process with a large amount of unlabeled data and a small amount of labeled data, although an output result with a higher accuracy can be obtained, considering that the higher the accuracy of the semi-supervised model, the higher the reliability of its anomaly identification results for the chemical process, and the accuracy of the semi-supervised model is affected by multiple parameters, an embodiment of the present invention provides an optimization device for a semi-supervised model for a chemical process.
[0036] The optimization device for the semi-supervised model of a chemical process includes a processing module. The processing module can be a separate processor, or can be a processor of the chemical process anomaly monitoring system based on the semi-supervised model provided in an embodiment of the present invention.
[0037] Before using the optimization device provided by an embodiment of the present invention, it is necessary to pre-establish a first initial semi-supervised model using existing data, and then optimize the model based on this initial semi-supervised model. The first initial semi-supervised model is trained using a first training set comprising labeled and unlabeled data in an initial preset ratio. The data in the training set can be operating condition data from an actual process section or from a simulated process section experiment. The operating condition data can include both abnormal and normal operating condition data.
[0038] On the basis of already having the first initial semi-supervised model, the processing module can optimize the first initial semi-supervised model by executing steps S110 to S140.
[0039] In step S110 , the loss value of the first initial semi-supervised model is determined.
[0040] For the semi-supervised model, its loss value is determined by the loss function and the test set data.
[0041] The semi-supervised model is obtained by performing supervised training on the labeled data in the training set and unsupervised training on the unlabeled data in the training set. Therefore, the supervised error loss function and the unsupervised error loss function can be determined respectively, and the loss function of the semi-supervised model can be determined according to the supervised error loss function and the unsupervised error loss function.
[0042] For example, there are N labeled data and M unlabeled data in the training set, and N << M. Denote the supervised error loss function as C1 and the unsupervised error loss function as C2. Then the total loss function C can be determined by the following formula: This formula is only for illustrative purposes. In the application process, those skilled in the art can select the loss function according to actual needs to determine the corresponding loss value.
[0043] In order to more intuitively reflect the optimization of the semi-supervised model, in the optimization process, it is preferred to use the same test set to determine the loss value of each subsequent semi-supervised model. For example, through the test set, the loss value corresponding to the supervised model and the loss value corresponding to the unsupervised model can be determined respectively, and then the total loss value can be determined according to the corresponding loss function. The loss values pointed out later in this specification are all the overall loss values of the semi-supervised model.
[0044] In step S120, compare the loss value of the first initial semi-supervised model with the loss preset value.
[0045] Among them, the loss preset value is the expected loss value, which can be set according to actual needs. For example, according to the different loss functions and test set data, the loss preset value can be set as a percentage or a specific value.
[0046] In step S130, according to the comparison result of the loss value and the loss preset value, adjust the number of hidden layers to determine the range of the number of hidden layers corresponding to the semi-supervised model that satisfies the loss value being less than the loss preset value.
[0047] When adjusting the number of hidden layers, it should be noted that the number of hidden layers is adjusted to an appropriate range. When the number of hidden layers is too small, the processing ability of the semi-supervised model will be weak. If the number of hidden layers is too large, data overfitting will occur, resulting in unreliable output results of the semi-supervised model.
[0048] On this basis, the embodiment of the present invention provides a method for the processing module to quickly determine the range of the number of hidden layers that meets the requirements. The method can first establish two semi-supervised models and adjust the number of hidden layers according to their respective output results at the same time, or establish two semi-supervised models successively and adjust the number of hidden layers according to their respective output results respectively.
[0049] Now, let's take the example of determining the lower limit of the number of layers in the range of hidden layers as an example to explain: first, preset a first number of layers, and construct a semi-supervised model based on the first number of layers, and determine the first loss value of the semi-supervised model corresponding to the first number of layers (the method for determining the loss value can be the same as the determination method in step S102); compare the first loss value with the preset loss value; when the first loss value is greater than the preset loss value, it is determined that the accuracy of the semi-supervised model constructed with the current number of layers is not reliable enough, so it is necessary to adjust the first number of layers to a first preset multiple and then round it off, and use the rounded layer value as the new first number of layers to establish a new first semi-supervised model; repeat the above steps of determining the loss value, comparing the loss value, and adjusting the number of hidden layers until a semi-supervised model with a loss value less than the preset loss value is obtained, and use the number of layers corresponding to the semi-supervised model as the lower limit of the hidden layer.
[0050] The method for determining the upper limit of the number of layers in the range of the hidden layer is similar to the method for determining the lower limit of the number of layers in the range of the hidden layer mentioned above: first preset the second number of layers, and construct a semi-supervised model based on the second number of layers, and determine the second loss value of the semi-supervised model corresponding to the second number of layers; compare the first loss value with the preset loss value; when the second loss value is greater than the preset loss value, it is determined that the accuracy of the semi-supervised model constructed by the current number of layers is not reliable enough, so it is necessary to adjust the second number of layers to a second preset multiple and round it off, and use the rounded layer value as the new second number of layers to establish a new second semi-supervised model; repeat the above steps of determining the loss value, comparing the loss value, and adjusting the number of hidden layers until a semi-supervised model with a loss value less than the preset loss value is obtained, and use the number of layers corresponding to the semi-supervised model as the upper limit of the hidden layer.
[0051] Optionally, the adjustment method of the first number of layers and the second number of layers can be arbitrary. When adjusting the number of layers, reasonable adjustments can be made according to the complexity of the actual chemical process section. For example, the higher the complexity, the larger the selection of the first number of layers and the second number of layers, and the first preset multiple and the second preset multiple can also be increased accordingly.
[0052] Generally speaking, in order to quickly determine the range of the number of hidden layers, it is necessary to select a smaller first number of layers and a larger second number of layers for adjustment.
[0053] Optionally, when the first preset multiple is an integer, it is not necessary to round the first number of layers after adjusting it to the first preset multiple, and the same applies to the second number of layers and the second preset multiple.
[0054] Optionally, if the first and second preset multiples are not positive numbers, the numbers adjusted by the preset multiples can be rounded up to a reasonable value based on actual needs. For example, the first number of floors can be adjusted to the first preset multiple and the next integer rounded down can be used as the new first number of floors, while the second number of floors can be adjusted to the second preset multiple and the next integer rounded down can be used as the new second number of floors.
[0055] In step S140, a new semi-supervised model is established with the number of hidden layers within the range of the number of hidden layers, and the new semi-supervised model is an optimized semi-supervised model.
[0056] After determining the lower limit and upper limit of the number of hidden layers, the loss values of the semi-supervised model corresponding to the layers between the lower limit and the upper limit all meet the preset loss values. The appropriate number of layers can be directly selected from the range of the number of hidden layers formed by the lower limit and the upper limit to construct a semi-supervised model for chemical processes, so as to complete the optimization of the semi-supervised model.
[0057] The technical solution provided by the embodiment of the present invention proposes a reasonable adjustment of the number of hidden layers to achieve rapid optimization of the semi-supervised model, and will not cause the semi-supervised model to have a high loss value due to underfitting or overfitting of the data.
[0058] Example 2
[0059] After a reasonable range of the number of hidden layers of the semi-supervised model has been determined, noise can be added to the semi-supervised model to further improve the recognition accuracy of the semi-supervised model on input data.
[0060] Taking into account that when different noises are added, the data output by the semi-supervised model whose loss value is already less than the preset loss value will reappear underfitting or overfitting, resulting in the loss value of the semi-supervised model after adding noise no longer being less than the preset loss value, an embodiment of the present invention also provides a noise adjustment method for a semi-supervised model in which the range of the number of optional hidden layers has been determined. The method can determine a noise range for each number of hidden layers that meets the conditions.
[0061] The method for determining the noise range provided by the processing module according to an embodiment of the present invention is now explained by taking a semi-supervised model with a selected number of layers as an example. The method includes steps S210 to S240.
[0062] In step S210, initial noise is selected to determine a second initial semi-supervised model.
[0063] When establishing the second initial semi-supervised model, a smaller value, such as 0.1, may be selected as the initial noise so that a noise range that meets the requirements can be quickly determined later.
[0064] In step S220, the loss value of the second initial semi-supervised model is compared with a preset loss value.
[0065] Among them, the loss function used to determine the loss value of the second initial semi-supervised model can be consistent with the loss function required in the above-mentioned process of determining the number of hidden layers, or other loss functions other than the loss function can be used to determine the loss value. The specific selection of the loss function can be selected according to actual needs.
[0066] In step S230, the noise is adjusted according to the comparison result of the loss value and the preset loss value to determine a noise range corresponding to the semi-supervised model that satisfies the requirement that the loss value is less than the preset loss value.
[0067] For example, if the noise is small and the loss value is greater than the preset loss value, the noise can be increased and the loss value of the semi-supervised model corresponding to the increased noise is determined. If the noise is large and the loss value is greater than the preset loss value, the noise can be reduced.
[0068] The method of adjusting the noise according to the comparison result between the loss value and the preset loss value may be arbitrary, for example, the noise may be adjusted according to a multiple, or the preset value may be increased each time the noise is adjusted.
[0069] For example, for a semi-supervised model with a selected number of hidden layers, the noise range can be determined in the following manner: determine the third loss value of the semi-supervised model corresponding to the first noise; when the third loss value is greater than the preset loss value, adjust the first noise to a third preset multiple as the new first noise to establish a new third semi-supervised model; and repeat the above operations to determine the noise range corresponding to the semi-supervised model whose loss value is less than the preset loss value.
[0070] The preset multiple can be arbitrary, for example, 15, 10, 5, 2, etc.
[0071] Furthermore, considering that noise can also cause underfitting and overfitting in the semi-supervised model, the range of noise can also be determined by determining the lower limit noise and the upper limit noise.
[0072] Specifically, the processing module provided in this embodiment of the present invention can also determine the lower limit noise in the following manner: determine the third loss value of the semi-supervised model corresponding to the first noise; when the third loss value is greater than the preset loss value, adjust the first noise to a third preset multiple as the new first noise to establish a new third semi-supervised model; and repeat the above steps to determine the lower limit noise corresponding to the semi-supervised model whose loss value is less than the preset loss value.
[0073] The processing module provided in this embodiment of the present invention can also determine the lower limit noise in the following manner: determine the fourth loss value of the semi-supervised model corresponding to the second noise, and the first noise is less than the second noise; when the fourth loss value is greater than the preset loss value, adjust the second noise to the fourth preset multiple and use it as the new second noise to establish a new fourth semi-supervised model; repeat the above steps to determine the upper limit noise corresponding to the semi-supervised model whose loss value is less than the preset loss value.
[0074] The second noise is smaller than the first noise, so the determined upper limit noise can be used as the upper limit of the noise range, and the lower limit noise can be used as the lower limit of the noise range to obtain a reasonable noise range.
[0075] By repeating steps S220 and S230, multiple noises corresponding to multiple semi-supervised models that satisfy the loss value not exceeding the preset loss value can be obtained. The multiple noises constitute a noise range, which corresponds to the number of hidden layers of the second initial semi-supervised model.
[0076] In step S240, a new semi-supervised model is established with the number of hidden layers selected from the range of the number of hidden layers and the noise selected from the noise range. The new semi-supervised model is an optimized semi-supervised model.
[0077] The above operation is performed for each number of layers in the range of the number of hidden layers, and the noise range corresponding to the number of layers of each hidden layer can be obtained.
[0078] The optimized semi-supervised model can be established by selecting a number of layers within a range of hidden layer numbers and noise selected within a noise range corresponding to the number of layers.
[0079] Furthermore, in order to facilitate the establishment of the optimized semi-supervised model, the intersection of all noise ranges corresponding to all layers in the range of the hidden layer can be taken as a new noise range. All noises within the new noise range are applicable to all layers within the range of the hidden layer. Therefore, the loss value of the optimized semi-supervised model constructed by the number of layers selected directly from the range of the hidden layer and the noise selected within the new noise range will not be greater than the preset loss value.
[0080] The technical solution provided by the embodiment of the present invention, while determining a reasonable range of the number of hidden layers, also proposes that noise can be optimized, and provides a method for optimizing noise, so that the optimized semi-supervised model will not have a high loss value caused by data underfitting or overfitting.
[0081] Example 3
[0082] After determining the reasonable range of the number of hidden layers and the noise range for the semi-supervised model, adjustments can be made to the training set of the semi-supervised model to further improve the adaptability of the semi-supervised model to the situation where there is little labeled data and much unlabeled data in chemical process data, so that the semi-supervised model can be widely used in chemical processes.
[0083] In order to accurately determine the impact of the ratio of labeled data and unlabeled data in the training set on the semi-supervised model, during the optimization process, for the semi-supervised model constructed with the same number of hidden layers and noise, it is necessary to input exactly the same training set data. The difference is that part of the labeled data and unlabeled data that constitute the initial preset ratio are converted into unlabeled data, that is, the data is the same, only the labels are removed. This ensures that the data in the second training set formed by reducing the initial preset ratio to the second preset ratio is completely consistent with the data in the first training set.
[0084] After determining the training set adjustment method, a method for adjusting the ratio of labeled data to unlabeled data in the training set, performed by a processing module according to an embodiment of the present invention, is now explained using a semi-supervised model with a selected number of layers and noise as an example. The method includes steps S310 to S340.
[0085] In step S310 , a preset amount of labeled data in the first training set is converted into unlabeled data, so that the ratio of labeled data to unlabeled data is reduced to a second preset ratio, thereby forming a second training set.
[0086] The amount of labeled data converted into unlabeled data can be set by yourself.
[0087] In step S320, a third initial semi-supervised model is established based on the second training set, the selected number of hidden layers, and the selected noise.
[0088] In step S330, the loss value of the third initial semi-supervised model is compared with the preset loss value.
[0089] The loss function used to determine the loss index may be the same as or different from the loss function described above.
[0090] In step S340, if the loss value of the third initial semi-supervised model is less than the preset loss value, the above operation is repeated until the minimum ratio of labeled data to unlabeled data in the training set corresponding to the semi-supervised model whose loss value is less than the preset loss value is determined.
[0091] Once the minimum ratio is determined, the loss value of the semi-supervised model constructed using the training set corresponding to the ratio between the minimum ratio and the initial preset ratio is no greater than the preset loss value. Therefore, when applying the semi-supervised model to a chemical process, the ratio of the number of labeled data to unlabeled data used to construct the training set can be adjusted to between the minimum ratio and the initial preset ratio.
[0092] Furthermore, for the semi-supervised model, the greater the ratio of labeled data to unlabeled data, the smaller the loss value. Therefore, when the accuracy of the output results of the semi-supervised model is required to be high, the ratio of labeled data to unlabeled data can be increased.
[0093] The technical solution provided by this embodiment of the present invention proposes an optimization of the ratio of labeled data and unlabeled data in the training set, which can determine the minimum ratio of training sets required while ensuring that the accuracy of the established semi-supervised model meets expectations. It effectively solves the problem of few labeled sample data and many unlabeled sample data in industrial field process anomalies, and improves the adaptability of semi-supervised models in chemical processes.
[0094] The optimization device for the semi-supervised model for chemical process provided by the embodiment of the present invention proposes an optimization method based on the moderate density idea in the process of optimizing the semi-supervised model. The optimized semi-supervised model obtained by this method also has the advantages of low cost, wide application range and high reliability.
[0095] Example 4
[0096] The principle of the optimization method of the semi-supervised model for chemical process performed by the processing module provided in an embodiment of the present invention is now explained with an embodiment. In the following embodiments, the semi-supervised model is abbreviated as SSLN model.
[0097] like Figure 1 As shown, the principles include:
[0098] 1) Set different abnormal working conditions on the chemical dynamic simulation software, obtain the dynamic change data of each variable under different working conditions, and obtain various data sets (not limited to simulated data, but also real data).
[0099] 2) Build a network structure and perform unsupervised learning on unlabeled data. After initially giving noise (or not giving noise) and the proportion of labeled sample data, perform supervised learning. By changing the number of hidden layers L and using the test data set, test the anomaly recognition performance of the network layers under the given settings, obtain the iterative curve of the anomaly recognition accuracy of the test data, and calculate the highest accuracy when the curve is stable.
[0100] 3) We varied the noise intensity and the proportion of labeled sample data, conducting a sensitivity analysis of different parameters on network anomaly recognition performance. We compared and analyzed network performance under different parameter settings to determine the optimal network structure and construct a moderately dense SSLN model, which was the optimal SSLN model.
[0101] Example 5
[0102] Taking the chemical process of ethylene cracking as an example, ethylene cracking units operate continuously. In actual production, each process variable generally fluctuates around a set value. The time window for abnormal fluctuations is limited, and the number of variables involved in local abnormal fluctuations is also limited. This results in high data annotation costs and makes it very difficult to construct large-scale, well-annotated datasets. Therefore, a semi-supervised model can be established and optimized using the optimization device provided in embodiments of the present invention.
[0103] For example, the simulation process of the depropanizer distillation tower of the ethylene cracking unit is used as the experimental environment. Two typical fault types are selected: the failure of the liquid level regulator of the bottom of the distillation tower C-701 and the change of the feed composition (increased C4 content), as shown in Table 1.
[0104] Table 1
[0105]
[0106]
[0107] When dividing the data set, the test set is set to contain 25% of the labeled sample data, and the training set contains the remaining 75% of the labeled sample data. The labeled sample data and unlabeled sample data in the training set can also be further divided.
[0108] When establishing the initial semi-supervised model, the Adam method can be used to optimize both the supervised and unsupervised training processes. The initial learning rate of the Adam optimizer is adjusted to 0.04, the batch size of each iteration is 25, the weight ω of the loss function is 10E-5, the hidden layer activation function is ReLU, the output layer activation function is Softmax, the training set is set to 10% labeled data and 90% unlabeled sample data, the standard deviation of the noise intensity is 1, and the denoising factor λ is set to 1000, 10, 0.1, 0.1, 0.1 and 0.1 respectively.
[0109] Four models are established with the number of layers being 3, 7, 15 and 30, respectively, as shown in Table 2.
[0110] Table 2
[0111] Model number The number of hidden layers L Model 1 3 Model 2 7 Model 3 15 Model 4 30
[0112] Using the same test set for testing, the recognition accuracy of each model is as follows Figure 5 and Figure 6 As shown. Among them, Figure 2 The figure shows the recognition accuracy of working condition 3. Figure 3 The figure shows the recognition accuracy of working condition 4.
[0113] Depend on Figure 2 and Figure 3 It can be seen that with the same number of training iterations, the anomaly recognition accuracy of Model 2 is higher. At the same time, after a certain number of iterations, the anomaly recognition accuracy tends to a stable value, which indicates that the training of the model is gradually becoming stable.
[0114] Table 3 shows the anomaly recognition (classification) results for the four models after stabilization, for the test sets corresponding to working conditions 3 and 4. As can be seen from Table 3, Model 2 outperforms the other three models in anomaly recognition. Specifically, when the number of network layers is small, the model cannot be effectively trained, resulting in poor model performance accuracy. However, as the number of network layers increases, the training process experiences training dispersion or explosion, ultimately rendering training impossible and leading to poor model performance accuracy. Therefore, constructing a moderately dense SSLN model and its topology can effectively extract data features and improve the model's anomaly recognition accuracy when using low-label sample data.
[0115] Table 3
[0116] Working conditions Model 1 (%) Model 2 (%) Model 3 (%) Model 4 (%) Working condition 3 45.67 90.37 86.58 85.59 Working condition 4 62.75 91.38 88.58 87.45
[0117] When Model 2 is determined to be better, we take it as an example, change its benchmark settings, and analyze its anomaly recognition performance under different label sample data ratios, where the label sample data ratios are 1%, 10%, 50%, and 100% respectively. Figure 4 The anomaly recognition accuracy of model 2 under different label sample data ratios in the working condition 3 test set changes with the number of iterations. Figure 4 As can be seen from the figure, as the number of iterations increases, the anomaly recognition accuracy of the model tends to be stable. In comparison, when the number of iterations is the same, the more labeled sample data the model has, the better the anomaly recognition accuracy.
[0118] Table 4 shows the recognition accuracy of Model 2 for different proportions of labeled sample data for Conditions 3 and 4. As can be seen from Table 4, the higher the proportion of labeled sample data, the better the model's recognition accuracy. With 10% labeled sample data, Model 2 achieved good recognition results in both conditions. While the recognition accuracy increased significantly with increasing proportions of labeled sample data, the excessive proportion of labeled sample data rendered it meaningless for industrial production data. Comparing the recognition accuracy when labeled sample data increased from 1% to 10% and from 10% to 100%, the former showed a more significant improvement. Therefore, 10% can be considered the optimal labeled sample data ratio.
[0119] Table 4
[0120]
[0121] Based on Model 2, we analyze its anomaly recognition performance under 10% labeled sample data, different noise intensities, and working condition 3 test sets. The recognition accuracy of Model 2 is shown in Table 5 below.
[0122] Table 5
[0123]
[0124] As can be seen from Table 5, when no noise is added to Model 2 (i.e., the noise standard deviation is 0), the performance of the unsupervised network is low because it does not play any role. Under noisy conditions, the model performance shows a downward trend with the increase of noise intensity. When the noise standard deviation is 1, the performance is optimal. However, as the noise intensity increases, the network's anomaly recognition accuracy gradually drops to 81.43%. This shows that appropriately adding a certain intensity of noise within the network can greatly improve the test performance of the network structure. Therefore, it can be determined that the noise with a noise standard deviation of 1 is the best. At this time, Model 2 (the number of hidden layers is 7, the proportion of labeled sample data is 10%, and the noise standard deviation is 1) is the optimal model, which has good applicability and effectiveness for anomaly recognition in the case of few labeled samples in the ethylene cracking process.
[0125] Example 6
[0126] Figure 5 The embodiment of the present invention provides a chemical process abnormality monitoring system based on a semi-supervised model, such as Figure 5As shown, the chemical process anomaly monitoring system based on a semi-supervised model includes a data acquisition unit 110 and a processor 120. The data acquisition unit 110 is configured to collect current data related to the operating conditions of a section of the chemical process, and the processor 120 is configured to use the current data as input to an optimized semi-supervised model to identify whether the current data is abnormal based on the output of the optimized semi-supervised model.
[0127] Optionally, the operating condition data may be data on normal operating conditions, temporary interruption of the heating steam supply to the reboiler E-702, failure of the bottom liquid level regulator of the distillation tower C-701, changes in material composition (increased C4 content), or temporary interruption of the system instrument air, and the operating conditions and operating condition data involved may be different depending on the chemical process.
[0128] Optionally, the data acquisition unit 110 can be a collection station that can collect various data in the chemical process production process. The processor 120 uses the data collected by the data acquisition unit 110 as input data and inputs it into the optimized semi-supervised model, so that it can identify whether the current data collected by the data acquisition unit 110 is abnormal.
[0129] Optionally, the data acquisition unit 110 may also be a DCS system, a PLC system, an instrument electrical signal acquisition system, a combustible gas detection system, a video monitoring system, or other equipment that is already installed for chemical processes and can collect data related to working conditions.
[0130] The optimized semi-supervised model used in this embodiment of the present invention can be obtained by optimizing the initial semi-supervised model using the optimization device for the semi-supervised model for chemical process described in any one of the embodiments of the present invention.
[0131] The optimization method of the semi-supervised model by the optimization device for the semi-supervised model used in chemical process will not be described in detail here.
[0132] The technical solution provided by the embodiment of the present invention uses an optimized semi-supervised model to assist manual identification of whether abnormal functions occur in the chemical process production process. Compared with manual identification, the abnormality monitoring system provided by the embodiment of the present invention has the advantages of fast identification speed, high accuracy and low cost, and can effectively reduce production fluctuations or safety accidents caused by identification errors.
[0133] Example 7
[0134] Figure 6 This is a structural diagram of a chemical process anomaly monitoring system based on a semi-supervised model provided by an embodiment of the present invention. Figure 2As shown, a server 130 and a client 140 can be added to the data acquisition unit 110 and the processor 120. The current data collected by the data acquisition unit 110 regarding the working conditions of the chemical process section and the recognition results output by the optimized semi-supervised model can be stored in the server, and the client 140 can communicate with the server 130 to read and / or rewrite the data stored on the server.
[0135] For the client 130 and the server 140 , the user can access the data stored in the server 140 through the client 130 , so the client 130 and the server 140 can be set to allow remote access or local access according to needs.
[0136] The client 130 and the server 140 can be accessed via any existing method, such as a local area network, a mobile communication network, or Bluetooth.
[0137] Optionally, the client 140 may communicate with the server based on a B / S architecture.
[0138] Optionally, the processor 120 may be a separate processor or a central processing unit of the server 140 .
[0139] Example 8
[0140] An embodiment of the present invention also provides a chemical process abnormality monitoring system having a display unit. The display unit can be connected to the server and / or the processor to display the recognition results output by the semi-supervised model, and can also be used to display current data on the working conditions of the chemical process section collected by the data acquisition unit.
[0141] Optionally, the display unit may be a touch screen, and the information desired to be viewed may be selected by operating the touch screen. The display unit may also be a non-touch display screen, and the information desired to be viewed may be selected by operating other peripherals.
[0142] The technical solution provided by this embodiment of the present invention can more intuitively display the current state of a chemical process and the abnormal state identification results by providing a display unit.
[0143] Embodiment 9
[0144] Figure 7 FIG is a schematic diagram of the structure of a chemical process abnormality monitoring system based on a semi-supervised model provided by an embodiment of the present invention. Figure 7As shown, various control systems can be connected to the collection station to collect real-time data on site, integrate the data and transmit it to the server for storage, and identify the collected data through the optimized semi-supervised model. The identification results are also stored in the server. The client devices that form a local area network with the server can directly transmit data through the network cable, and remote users can communicate with the server through the Internet.
[0145] The above describes in detail the optional implementation methods of the embodiments of the present invention in conjunction with the accompanying drawings. However, the embodiments of the present invention are not limited to the specific details in the above implementation methods. Within the technical concept of the embodiments of the present invention, various simple modifications can be made to the technical solutions of the embodiments of the present invention, and these simple modifications all fall within the scope of protection of the embodiments of the present invention.
[0146] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any appropriate manner without contradiction. To avoid unnecessary repetition, the embodiments of the present invention will not further describe various possible combinations.
[0147] Those skilled in the art will understand that all or part of the steps in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a program, which is stored in a storage medium and includes a number of instructions for causing a single-chip microcomputer, chip or processor to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program code.
[0148] In addition, various implementations of the embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the embodiments of the present invention, they should also be regarded as the contents disclosed in the embodiments of the present invention.
Claims
1. A chemical process abnormality monitoring system based on a semi-supervised model, characterized in that: The abnormal monitoring system comprises: A data collection unit for collecting current data on the working conditions of the working sections of the chemical process; and a processor, configured to use the current data as an input of the optimized semi-supervised model, so as to identify whether the current data is abnormal according to a result output by the optimized semi-supervised model, Wherein, the semi-supervised model is optimized by an optimization device for a semi-supervised model of a chemical process; The operating conditions are normal operating conditions, temporary interruption of reboiler heating steam supply, failure of distillation tower kettle liquid level regulator, change in feed composition or temporary interruption of system instrument air; The optimization device for optimizing the semi-supervised model of a chemical process comprises a processing module, and the processing module is used to perform the following operations: Determine a loss function of a first initial semi-supervised model, wherein the first initial semi-supervised model is obtained by training a training set, the training set is the operating data of the working section of the chemical process, and has labeled data and unlabeled data constituting an initial preset ratio; Comparing the loss function of the first initial semi-supervised model with a preset loss value; According to the comparison result of the loss function and the preset loss value, the number of hidden layers is adjusted to determine the range of the number of hidden layers corresponding to the semi-supervised model satisfying that the loss function is less than the preset loss value; and Establishing a new semi-supervised model with a number of hidden layers within the range of the number of hidden layers, wherein the new semi-supervised model is an optimized semi-supervised model; The processing module is further configured to determine the range of the number of layers of the hidden layer by: Presetting a first number of layers and a second number of layers of the hidden layer, wherein the first number of layers is smaller than the second number of layers; Determine a first loss function of the semi-supervised model corresponding to the first number of layers and a second loss function of the semi-supervised model corresponding to the second number of layers; According to the comparison results of the first loss function and the second loss function with the preset loss value, the first number of layers is adjusted to a first preset multiple and then rounded as a new number of layers to establish a new semi-supervised model, and the second number of layers is adjusted to a second preset multiple and then rounded as a new number of layers to establish a new semi-supervised model; Repeat the above operation to determine the lower limit number of layers and the upper limit number of layers of the implicit function corresponding to the semi-supervised model whose loss function is less than the preset loss value; and The lower limit number of layers and the upper limit number of layers are used as the lower limit value and the upper limit value of the number of layers of the hidden layer.
2. The abnormal monitoring system according to claim 1, characterized in that: The abnormal monitoring system also includes: A server, configured to store data related to the working condition and a recognition result output by the semi-supervised model; and The client communicates with the server based on a B / S architecture.
3. The abnormal monitoring system according to claim 1, characterized in that: The abnormal monitoring system also includes: A display unit is used to display the recognition result output by the semi-supervised model.
4. The abnormality monitoring system according to claim 1, characterized in that: The data acquisition unit includes one or more of the following: a DCS system, a PLC system, an instrument electrical signal acquisition system, a combustible gas detection system, and a video monitoring system.
5. The abnormal monitoring system according to claim 1, characterized in that: After determining the range of the number of hidden layers corresponding to the semi-supervised model satisfying the loss function being less than the preset loss value, the processing module is further configured to perform the following operations: Selecting initial noise and the number of hidden layers to determine a second initial semi-supervised model, wherein the number of hidden layers selected is within the range of the number of layers; Comparing the loss function of the second initial semi-supervised model with the preset loss value; as well as According to the comparison result between the loss function and the preset loss value, the noise and the number of hidden layers are adjusted to determine the noise range and the number of hidden layers corresponding to the semi-supervised model satisfying that the loss function is less than the preset loss value, The step of adjusting the number of hidden layers includes selecting the number of hidden layers from within the range of the number of hidden layers.
6. The abnormality monitoring system according to claim 5, characterized in that: After selecting the number of hidden layers from the range of the number of hidden layers, the processing module is further configured to perform the following operations to determine the noise range: Preset the first noise; Determine a third loss function of the semi-supervised model corresponding to the first noise; According to a comparison result between the third loss function and a preset loss value, adjusting the first noise to a third preset multiple as new noise to establish a new semi-supervised model; and Repeat the above operation to determine the noise range corresponding to the semi-supervised model whose loss function is less than the preset loss value.
7. The abnormality monitoring system according to claim 6, characterized in that: The processing module is also used to perform the following operations: A second noise is preset, and the first noise is smaller than the second noise; Determine a third loss function of the semi-supervised model corresponding to the first noise and a fourth loss function of the semi-supervised model corresponding to the second noise; According to the comparison results of the third loss function and the fourth loss function with the preset loss value, the first noise is adjusted to a third preset multiple as new noise to establish a new semi-supervised model, and the second noise is adjusted to a fourth preset multiple as new noise to establish a new semi-supervised model; Repeat the above operation to determine the lower limit noise and upper limit noise corresponding to the semi-supervised model whose loss function is less than the preset loss value; as well as The lower limit noise and the upper limit noise are used as the lower limit value and the upper limit value of the noise range.
8. The abnormality monitoring system according to claim 5, characterized in that: After determining that the range of the number of layers and the noise range of the hidden layer corresponding to the semi-supervised model whose loss function is less than the preset loss value, the processing module is further used to perform the following operations: Reducing the ratio of labeled data to unlabeled data in the training set to a second preset ratio; Establishing a third initial semi-supervised model according to the training set of the second preset ratio, the number of hidden layers selected from the range of the number of hidden layers, and the noise selected from the range of noise; Comparing the loss function of the third initial semi-supervised model with the preset loss value; According to the comparison result between the loss function and the preset loss value, adjusting the ratio of labeled data to unlabeled data in the training set, and establishing a new supervision model; and Repeat the above operation to determine the ratio range of labeled data to unlabeled data in the training set corresponding to the semi-supervised model whose loss function is less than the preset loss value.
9. The abnormality monitoring system according to claim 1, characterized in that: The training set contains N labeled data and M unlabeled data. The processing module is further used to determine the loss function of the semi-supervised model in the following manner: Perform supervised training on N labeled data to obtain the supervised error loss function C1; Perform unsupervised training on M unlabeled data to obtain the unsupervised error loss function C2; as well as The loss function C is determined according to the supervised error loss function C1 and the unsupervised error loss function C2.
10. The abnormality monitoring system according to claim 9, characterized in that: The processing module is used to determine the loss function C in the following manner: 。
Citation Information
Patent Citations
Semi-supervised neural network model and soft-sensing modeling method based on model
CN107505837A
Radio frequency modulation format identification method based on optical assistance
CN110601764A
Chemical process abnormity monitoring method based on semi-supervised model and model optimization method
CN113723649A
