This patent application claims the benefit and priority of Chinese Patent Application No. 202310317484.1, filed with the China National Intellectual Property Administration on Mar. 29, 2023, the disclosure of which is incorporated by reference herein in its entirety for all purposes as part of the present application.
The present disclosure relates to the field of machine learning, and in particular to an automatic optimization system for a toluene chlorination parameter based on deep learning.
Toluene chlorination is considered as important reaction in chemical industry. Particularly, chlorotoluene as a result of the toluene chlorination is an important fine chemical material and a widely used organic chemical intermediate. In recent years, for a number of novel medicines, pesticides, dyestuffs and the like, the chlorotoluene is taken as a starting material to produce the intermediate.
In the existing continuous toluene chlorination process, reaction parameters are adjusted manually according to a toluene mass fraction in the reaction. However, the manual adjustment is more cost-consuming, and cannot realize timely adjustment on the whole reaction parameters.
In view of the above problems, the present disclosure provides an automatic optimization system for a toluene chlorination parameter based on deep learning, including a toluene chlorination data acquisition module configured to acquire toluene chlorination data, a toluene chlorination data preprocessing module configured to perform preprocessing on the toluene chlorination data, the preprocessing including missing value filling and normalization, a toluene chlorination data division module configured to divide preprocessed toluene chlorination data into a training set sample and a validation set sample, a toluene chlorination deep belief network (DBN) construction module configured to construct a toluene chlorination DBN, a toluene mass fraction prediction module configured to predict a toluene mass fraction with the toluene chlorination DBN, a toluene mass fraction validation module configured to compare a predicted toluene mass fraction with a preset standard toluene mass fraction interval, carry out toluene chlorination normally if the predicted toluene mass fraction falls within the preset standard toluene mass fraction interval, or otherwise start a toluene chlorination parameter optimization module, and the toluene chlorination parameter optimization module provided with an expert solution database, and configured to control an actuator to adjust the chlorination according to the expert solution database.
As a preferred solution to the present disclosure, the preprocessing on the toluene chlorination data includes: acquiring toluene chlorination data, determining whether the toluene chlorination data at a present timepoint is missing, directly outputting the toluene chlorination data if the toluene chlorination data at the present timepoint is not missing, and filling a corresponding missing value of the toluene chlorination data at the present timepoint with toluene chlorination data at a previous timepoint if the toluene chlorination data at the present timepoint is missing; and performing the normalization on the toluene chlorination data by
where x is a value of a toluene chlorination data sample, xmin is a minimum value in the toluene chlorination data sample, xmax is a maximum value in the toluene chlorination data sample, and f(x) is a normalized value.
As a preferred solution to the present disclosure, the toluene chlorination data division module divides the preprocessed toluene chlorination data into the training set sample and the validation set sample according to 8:1.
As a preferred solution to the present disclosure, the toluene chlorination DBN is constructed as follows:
As a preferred solution to the present disclosure, the toluene mass fraction validation module provides a preset standard toluene mass fraction interval (0,a), validates a toluene mass fraction ω in the toluene chlorination with the preset standard toluene mass fraction interval, carries out the toluene chlorination normally if ω∈(0, a) and a<1, and controls the actuator to optimize the toluene chlorination through manual operation or according to the expert solution database if ω∈(a,1) and a<1.
As a preferred solution to the present disclosure, when the predicted toluene mass fraction does not fall within the preset standard toluene mass fraction interval, the toluene chlorination parameter optimization module compares output substandard toluene chlorination data with the expert solution database to obtain a corresponding toluene chlorination failure solution, and controls the actuator to adjust the reaction correspondingly according to the toluene chlorination failure solution.
In addition, the automatic optimization system for a toluene chlorination parameter based on deep learning further includes a method for controlling a node of the toluene chlorination DBN, specifically: setting each node in the toluene chlorination DBN as Xmn, specifically an nth node on an mth layer, and n=1, 2, 3 . . . N, m=1, 2, 3 . . . M; obtaining, when validating the toluene chlorination DBN with the validation set sample, an output value Qxmn of the node, specifically an output value of the nth node on the mth layer; obtaining a contribution ratio Wmn of the node by
comparing the contribution ratio Wmn of the node with a preset contribution ratio threshold α; and closing the node if the contribution ratio Wmn of the node is less than the preset contribution ratio threshold α, or otherwise performing no operation.
In addition, the automatic optimization system for a toluene chlorination parameter based on deep learning further includes an intelligent distributed control system (DCS), where the DCS includes manual operation and automatic operation; an infrared sensor and an automatic optimization switch are provided in a control room; when the infrared sensor senses a person in the control room, the automatic optimization switch can be turned off for the manual operation; and in other cases, the actuator is controlled according to a toluene chlorination failure solution in the expert solution database for automatic optimization.
The present disclosure achieves the following advantages:
The present disclosure can monitor each index through the sensor, quickly process the acquired toluene chlorination information and data, automatically predict the subsequent toluene mass fraction, determine whether to adjust the on-going toluene chlorination, realize automatic operation control, and optimize the reaction.
The automatic optimization system for toluene chlorination parameter provided by the present disclosure can realize the whole process including automatic detection, information processing, analysis and determination, operation control and expected goal implementation. While reducing manpower, the present disclosure improves the stability of the chemical reaction process, and improves the yield and purity of the target component.
The features and advantages described herein are not all-inclusive and, in particular, many additional features and advantages will be apparent to one of ordinary skill in the art in view of the drawings, specification, and claims. Moreover, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and not to limit the scope of the inventive subject matter.
To describe the technical solutions in the embodiments of the present disclosure or in the prior art more clearly, the following briefly describes the drawings required for describing the embodiments or the prior art. Apparently, the drawings in the following description show some embodiments of the present disclosure, and those of ordinary skill in the art may still derive other drawings from these drawings without creative efforts.
To make the objectives, technical solutions, and advantages of the present disclosure clearer, the present disclosure are further described in detail below with reference to the drawings and embodiments. It should be understood that the examples described herein are merely used to explain the present disclosure, rather than to limit the present disclosure. Those of ordinary skill in the art should understand that many technical details are proposed in each embodiment of the present disclosure to help the reader better understand the present disclosure. However, even without these technical details and various changes and modifications made based on the following embodiments, the technical solutions claimed in the present disclosure can still be realized.
Referring to
The toluene chlorination data acquisition module is configured to acquire toluene chlorination data.
It is to be noted that the present disclosure provides an advanced toluene chlorination tooling device, various high-performance controllers and actuators, and various perfect sensors, so as to completely acquire various data of toluene chlorination.
The toluene chlorination data preprocessing module is configured to perform preprocessing on the toluene chlorination data. The preprocessing includes missing value filling and normalization.
The preprocessing includes: Toluene chlorination data is acquired. Whether the toluene chlorination data at a present timepoint is missing is determined. The toluene chlorination data is directly output if the toluene chlorination data at the present timepoint is not missing. A corresponding missing value of the toluene chlorination data at the present timepoint is filled with toluene chlorination data at a previous timepoint if the toluene chlorination data at the present timepoint is missing. The normalization is performed on the toluene chlorination data by
where x is a value of a toluene chlorination data sample, xmin is a minimum value in the toluene chlorination data sample, xmax is a maximum value in the toluene chlorination data sample, and f(x) is a normalized value.
The toluene chlorination data division module is configured to divide preprocessed toluene chlorination data into a training set sample and a validation set sample.
Specifically, the toluene chlorination data division module divides the preprocessed toluene chlorination data into the training set sample and the validation set sample according to 8:1. The training set sample is used for training an RBM layer in a toluene chlorination DBN to obtain a weight of each layer. The validation set sample is used for validating a BP network, and propagating error information to each RBM layer from top to bottom through the BP network, thereby fine adjusting the whole toluene chlorination DBN.
The toluene chlorination DBN construction module is configured to construct the toluene chlorination DBN.
It is to be noted that the toluene chlorination DBN is constructed by formation, training and validation.
For the formation, the toluene chlorination DBN is constructed based on a BP neural network. The toluene chlorination DBN includes an input layer, three hidden layers, and an output layer. The hidden layers include a first hidden layer, a second hidden layer, and a third hidden layer. The input layer and the first hidden layer are formed into an RBM1. The first hidden layer and the second hidden layer are formed into an RBM2. The second hidden layer and the third hidden layer are formed into an RBM3.
For the training, unsupervised training is individually performed on each of the RBM1, the RBM2 and the RBM3 in the toluene chlorination DBN with the training set sample. The RBM1 is fully trained. A weight and an offset between the input layer and the first hidden layer are fixed. An output value of the first hidden layer is taken as an input value of the first hidden layer in the RBM2. The RBM2 is fully trained. A weight and an offset between the first hidden layer and the second hidden layer are fixed. An output value of the second hidden layer is taken as an input value of the second hidden layer in the RBM3. The RBM3 is fully trained. A weight and an offset between the second hidden layer and the third hidden layer are fixed. An output value of the third hidden layer is taken as an input of the output layer. A final result is output from the output layer.
For the validation, the weight and the offset obtained by fully training each of the RBM1, the RBM2 and the RBM3 are taken as an initial weight and an initial offset of the toluene chlorination DBN. The validation set sample is input to the input layer. A predicted toluene mass fraction is output through the toluene chlorination DBN. When an error between the predicted toluene mass fraction and a toluene mass fraction in the validation set sample is not within a preset acceptable error range, a BP stage of the error is started, and the error modifies the weight and the offset of each layer through the output layer in an error gradient descending manner, and is back propagated to the hidden layer and the input layer one by one. If the error between the predicted toluene mass fraction and the toluene mass fraction in the validation set sample is within the preset acceptable error range, no adjustment is required. In addition, the RBM network on each layer can only make the weight of the layer optimal to eigenvector mapping on the layer, rather than eigenvector mapping of the whole toluene chlorination DBN. In a BP stage of the toluene chlorination DBN, error information can be propagated to each RBM from top to bottom, thereby fine adjusting the whole toluene chlorination DBN. This also overcomes defects of local optimum and longtime of the toluene chlorination DBN due to the initial weight and the initial offset.
The toluene mass fraction validation module is configured to compare the predicted toluene mass fraction with a preset standard toluene mass fraction interval, directly output the predicted toluene mass fraction if the predicted toluene mass fraction falls within the preset standard toluene mass fraction interval, or otherwise start the toluene chlorination parameter optimization module.
It is to be noted that the toluene mass fraction validation module provides a preset standard toluene mass fraction interval (0,a), validates a toluene mass fraction ω in the toluene chlorination with the preset standard toluene mass fraction interval, carries out the toluene chlorination normally if ω∈(0, a) and a<1, and controls the actuator to optimize the toluene chlorination through manual operation or according to the expert solution database if ω∈(a, 1) and a<1.
The toluene chlorination parameter optimization module is provided with an expert solution database, and configured to control the actuator to adjust the chlorination according to the expert solution database.
It is to be noted that the toluene chlorination parameter optimization module performs curve fitting on the toluene chlorination data with a least square method. Different toluene chlorination failure solutions are input by an expert according to different cases. For example, at a timepoint when a mass fraction of toluene and a mass fraction of chlorine change little, and a mass fraction of a resultant is low in the toluene chlorination, this may be caused by an insufficient catalyst. Then, an amount of the catalyst to be added is calculated by the expert according to professional knowledge. At last, the failure and the failure solution are digitalized to construct the expert solution database. When the predicted toluene mass fraction does not fall within the preset standard toluene mass fraction interval, the toluene chlorination parameter optimization module compares output substandard toluene chlorination data with the expert solution database to obtain a corresponding toluene chlorination failure solution, and controls the actuator to adjust the reaction correspondingly according to the toluene chlorination failure solution.
In addition, it is further to be noted that a node of the toluene chlorination DBN is controlled. When the toluene chlorination DBN has an overhigh degree of fitting and is too specific, increasing the node for training to modify the weight is tedious. In view of this, the present disclosure optimizes the toluene chlorination DBN by reducing the node but not modifying the weight, specifically:
Each node in the toluene chlorination DBN is set as Xmn, namely an nth node on an mth layer, and n=1, 2, 3 . . . N, m=1, 2, 3 . . . M. An output value Qxmn of the node, namely an output value of the nth node on the mth layer, is obtained when the toluene chlorination DBN is validated with the validation set sample. A contribution ratio Wmn of the node is obtained by
The contribution ratio of the node is compared with a preset contribution ratio threshold α. If the contribution ratio Wmn of the node is less than the preset contribution ratio threshold α, a feature corresponding to the node is not referential, and the node is closed to prevent an overhigh degree of fitting of the toluene chlorination DBN. Or otherwise, no operation is performed.
In addition, an intelligent DCS is constructed. The DCS includes manual operation and automatic operation. An infrared sensor and an automatic optimization switch are provided in a control room. When the infrared sensor senses a person in the control room, the automatic optimization switch can be turned off for the manual operation. In other cases, the actuator is controlled according to an adjustment unit of the toluene chlorination DBN for the automatic operation. This can ensure real-time parameter monitoring and optimization, correctness of the optimization, and a yield and a purity of a target compound obtained by the toluene chlorination.
It should be understood that those of ordinary skill in the art can make improvements or transformations based on the above description, and all these improvements and transformations should fall within the protection scope of the appended claims of the present disclosure. The content not described in detail in the description belongs to the prior art well known to those skilled in the art.
The foregoing description of the embodiments of the invention has been presented for the purposes of illustration and description. Each and every page of this submission, and all contents thereon, however characterized, identified, or numbered, is considered a substantive part of this application for all purposes, irrespective of form or placement within the application. This specification is not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible in light of this disclosure.
Although the present application is shown in a limited number of forms, the scope of the disclosure is not limited to just these forms, but is amenable to various changes and modifications. The present application does not explicitly recite all possible combinations of features that fall within the scope of the disclosure. The features disclosed herein for the various embodiments can generally be interchanged and combined into any combinations that are not self-contradictory without departing from the scope of the disclosure. In particular, the limitations presented in dependent claims below can be combined with their corresponding independent claims in any number and in any order without departing from the scope of this disclosure, unless the dependent claims are logically incompatible with each other.
Number | Date | Country | Kind |
---|---|---|---|
202310317484.1 | Mar 2023 | CN | national |