Method for constructing parameter setting model and method for controlling industrial process
By constructing an auxiliary training dataset and performing local training with operational data from auxiliary devices, the method addresses the data insufficiency issue in PID parameter setting for new devices, enhancing accuracy and efficiency.
Patent Information
- Application Number
- JP2024547818
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-07-22
- Filing Date
- 2023-02-09
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-02-09
AI Technical Summary
Existing PID parameter setting methods for new devices face challenges due to insufficient data, leading to low accuracy and efficiency in constructing reliable process models.
Construct an auxiliary training dataset using operational data from an auxiliary device with completed parameter settings and perform local training to build a parameter setting model, utilizing transfer learning to enhance data availability and improve model accuracy.
The method enhances the accuracy and efficiency of PID parameter setting for new devices by leveraging operational data from auxiliary equipment, compensating for the lack of initial data and improving model performance.
Smart Images

Figure 2024539754000001_ABST
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to Chinese Patent Application No. 202210859981.X, entitled “METHING FOR CONSTRUCTING PARAMETER SETTING MODEL AND METHOD FOR CONTROLLING INDUSTRIAL PROCESS”, filed with the State Intellectual Property Office of the People's Republic of China on July 22, 2022, the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the technical field of industrial automation control, and in particular to a method for constructing a parameter setting model and a method for controlling an industrial process. [Background technology]
[0003] PID (proportion, integral, differential) is the most widely applied control strategy at present. PID parameter setting is the main content in its control work, which determines the deviation values of its proportional coefficient, integral time and differential time based on the working characteristics of the control system.
[0004] Currently, the method of PID parameter setting is generally a setting method based on an internal model. In this way, a mathematical model for PID parameter setting is constructed, and a process mathematical model is constructed based on process history data, and the PID parameters are obtained using an internal model setting policy based on the mathematical model, which is an effective PID parameter setting method.
[0005] However, the internal model-based tuning method requires a large amount of valid data to build a process model, and for a process model built on a new device, the available data information is small and insufficient to build a reliable process model, so the actual effect of PID parameter tuning is low. Summary of the Invention [Problem to be solved by the invention]
[0006] One of the objectives of the present application is to provide a parameter setting model construction method and an industrial process control method, which effectively compensates for the shortcoming of a small amount of valid data available for a new device, for example, by constructing an auxiliary training data set and performing training, and improves the accuracy of PID parameter setting of the parameter setting model constructed on the new device. [Means for solving the problem]
[0007] The embodiment of the present application is realized as follows.
[0008] According to a first aspect, an embodiment of the present application comprises: A step of constructing an auxiliary training data set and a validation data set based on loop information of a new device and operation data of an auxiliary device, where the new device is a device to which a parameter setting model to be trained is applied, and the auxiliary device is a device that has completed parameter setting and has been officially operated; building a local training data set based on initial operating data of the new equipment; training based on the auxiliary training data set, the validation data set and the local training data set to obtain a parameter setting model.
[0009] In a preferred embodiment, the step of constructing the auxiliary training data set and the validation data set based on the loop information of the new device and the operation data of the auxiliary device comprises: selecting a target data set from the operational data of the auxiliary device based on a loop type and physical characteristics corresponding to a control loop of the new device; performing a splitting process on the target dataset to obtain the auxiliary training dataset and the validation dataset.
[0010] In a preferred embodiment, the step of selecting a target data set from the operational data of the auxiliary device based on physical characteristics corresponding to loop types and control loops of the new device comprises: Selecting a plurality of optional operation data matching the loop type from the operation data of the auxiliary device based on the loop type of the new device; and selecting the target data set from the plurality of optional operating data based on a physical characteristic corresponding to a control loop of the new device.
[0011] In a preferred embodiment, the step of training to obtain a parameter setting model based on the auxiliary training data set, the validation data set and the local training data set comprises: training a mid-set model based on the auxiliary training data set and the local training data set; validating the mid-settlement model based on the validation data set, and after the validation is passed, executing the mid-settlement model according to predetermined input parameter values to obtain output parameter values of the mid-settlement model; obtaining loop PID parameter values after the new device is operated according to the predetermined input parameter values; and performing parameter optimization on the intermediate settling model based on the loop PID parameter values and the output parameter values to obtain the parameter settling model.
[0012] In a preferred embodiment, the step of performing parameter optimization on the intermediate settling model based on the loop PID parameter values and the output parameter values to obtain the parameter settling model includes the steps of: determining a parameter error rate based on the loop PID parameter values and the output parameter values; and iteratively modifying model parameters of the intermediate settling model based on the parameter error rate to obtain the parameter settling model.
[0013] In a preferred embodiment, the model parameters include a first intermediate weight vector and an intermediate offset parameter value; Iteratively modifying model parameters of the intermediate settling model based on the parameter error rate to obtain the parameter settling model, modifying the intermediate offset parameter value based on the parameter error rate to obtain a process offset parameter value; modifying the first intermediate weight vector based on the process offset parameter value to obtain a first process weight vector; obtaining a new mid-settlement model based on the process offset parameter value and the first process weight vector, and re-determining a parameter error rate of the mid-settlement model; Repeating the above steps until the parameter error rate becomes smaller than a predetermined threshold, and setting the intermediate settling model as the parameter settling model.
[0014] In a preferred embodiment, prior to the step of training to obtain an intermediate settling model based on the auxiliary training data set and the local training data set, the method further comprises: determining a root mean square error and a coefficient of determination based on the auxiliary training data set and the local training data set; determining the number of hidden layer nodes of the parameter-setting initial model based on the root mean square error and the coefficient of determination; constructing the parameter-setting initial model based on the number of hidden layer nodes, a predetermined number of input layer nodes, and a predetermined number of output layer nodes; The method further includes training the parameter-set initial model based on the auxiliary training data set and the local training data set to obtain the intermediate parameter-set model.
[0015] According to a second aspect, an embodiment of the present application comprises: determining setting parameter values of a new device to be controlled based on the parameter setting model, the parameter setting model being obtained by the method for constructing a parameter setting model according to any one of the first aspect; and controlling the new device to perform a target process based on the settling parameter values.
[0016] According to a third aspect, an embodiment of the present application provides an apparatus for constructing a parameter setting model, comprising: a dataset construction module, a model training module, and a model construction module.
[0017] The dataset construction module is configured to construct an auxiliary training dataset and a validation dataset based on the loop information of a new device and the operation data of an auxiliary device, the new device being a device to which a parameter setting model to be trained is applied, and the auxiliary device being a device that has completed parameter setting and has been officially operated; The dataset construction module is further configured to construct a local training dataset based on initial operating data of the new equipment.
[0018] A model training module is configured to train to obtain a parameter setting model based on the supplemental training data set, the validation data set and the local training data set.
[0019] The dataset construction module is specifically configured to select a target dataset from the operation data of the auxiliary device based on the loop type and physical characteristics corresponding to the control loop of the new device, and then perform a partitioning process on the target dataset to obtain the auxiliary training dataset and the validation dataset.
[0020] The dataset construction module is specifically configured to select, based on a loop type of the new device, a plurality of optional driving data matching the loop type from the driving data of the auxiliary device, and select the target dataset from the plurality of optional driving data based on physical characteristics corresponding to the control loop of the new device.
[0021] The model training module is specifically configured to train based on the auxiliary training data set and the local training data set to obtain an mid-settlement model, and verify the mid-settlement model based on the verification data set. After the verification is passed, the mid-settlement model is executed according to predetermined input parameter values to obtain output parameter values of the mid-settlement model, and obtains loop PID parameter values after the new device operates according to the predetermined input parameter values. Then, based on the loop PID parameter values and the output parameter values, parameter optimization is performed on the mid-settlement model to obtain the parameter setting model.
[0022] The model training module is specifically configured to determine a parameter error rate based on the loop PID parameter values and the output parameter values, and iteratively modify model parameters of the intermediate settling model based on the parameter error rate to obtain the parameter settling model.
[0023] The model training module is specifically configured to: the model parameters include a first intermediate weight vector and an intermediate offset parameter value; modify the intermediate offset parameter value based on the parameter error rate to obtain a process offset parameter value; modify the first intermediate weight vector based on the process offset parameter value to obtain a first process weight vector; obtain a new intermediate settling model based on the process offset parameter value and the first process weight vector; re-determine a parameter error rate of the intermediate settling model; and repeat the above steps until the parameter error rate is smaller than a predetermined threshold, and the intermediate settling model becomes the parameter settling model.
[0024] The model construction module is configured to determine a root mean square error and a coefficient of determination based on the auxiliary training data set and the local training data set, determine a number of hidden layer nodes of a parameter-set initial model based on the root mean square error and the coefficient of determination, construct the parameter-set initial model based on the number of hidden layer nodes, a predetermined number of input layer nodes and a predetermined number of output layer nodes, and train the parameter-set initial model based on the auxiliary training data set and the local training data set to obtain the intermediate setting model.
[0025] According to a fourth aspect, an embodiment of the present application comprises: a determination module that determines setting parameter values of a new device to be controlled based on the parameter setting model, the parameter setting model being obtained by the parameter setting model construction method according to any one of the first aspect; and and a control module configured to control the new device to perform a target process based on the settling parameter values.
[0026] According to a fifth aspect, an embodiment of the present application provides a processing device including a processor, a storage medium, and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the processing device is operating, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform steps of the method for constructing a parameter setting model described in any one of the first aspect or the industrial process control method described in the second aspect.
[0027] According to a sixth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, realizing steps of the method for constructing a parameter setting model according to any one of the first aspect or the industrial process control method according to the second aspect. Effect of the Invention
[0028] The effects of the embodiment of the present application are as follows.
[0029] According to the parameter setting model construction method and industrial process control method of the present application, an auxiliary training data set is constructed by the operation data of an auxiliary device, and a parameter setting model is trained and constructed together with a local training data set constructed by the operation data of a new device. In the present application, the operation data of the auxiliary device that has already completed parameter setting and been officially operated is fully utilized to train the parameter setting model, thereby making up for the shortcoming that there is little effective data available for the new device, and improving the accuracy and efficiency of PID parameter setting of the parameter setting model constructed on the new device. [Brief description of the drawings]
[0030] In order to more clearly describe the technical solutions in the embodiments of the present application, the following briefly describes the drawings that need to be used in the embodiments. It should be understood that in the following drawings, only some embodiments of the present application are not shown, and therefore should not be regarded as limiting the scope. Those skilled in the art can obtain other related drawings based on these drawings without paying creative labor.
[0031] [Figure 1] 1 is a flowchart of steps of a method for constructing a parameter setting model according to an embodiment of the present application. [Diagram 2] 4 is a flowchart of a data set construction step of a parameter setting model construction method according to an embodiment of the present application. [Diagram 3] 1 is a flowchart of a data set selection step of a parameter setting model construction method according to an embodiment of the present application. [Figure 4] 4 is a flowchart of a model training optimization step of a method for constructing a parameter setting model according to an embodiment of the present application. [Diagram 5] 1 is a flowchart illustrating an implementation of a parameter setting model construction method according to an embodiment of the present application. [Figure 6] 4 is a flowchart of a parameter optimization step of a parameter setting model construction method according to an embodiment of the present application. [Figure 7] 11 is a flowchart of another parameter optimization step of a parameter setting model construction method according to an embodiment of the present application. [Figure 8] 4 is a flowchart of a model construction step of a parameter setting model construction method according to an embodiment of the present application. [Figure 9] 1 is a flow chart of steps of an industrial process control method according to an embodiment of the present application. [Figure 10] 1 is a schematic configuration diagram of a parameter setting model construction device according to an embodiment of the present application. [Figure 11] 1 is a schematic configuration diagram of an industrial process control device according to an embodiment of the present application. [Figure 12]FIG. 1 is a schematic diagram of a processing device according to an embodiment of the present application. [Explanation of symbols]
[0032] 100 Parameter setting model construction device 1001 Dataset Construction Module 1002 Model Training Module 1003 Model Building Module 110 Industrial process control equipment 1101 Decision Module 1102 Control Module 2001 Processor 2002 Memory DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0033] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application, and of course, the described embodiments are only some embodiments of the present application, but not all embodiments. Generally, the components of the embodiments of the present application described and illustrated in the drawings in this specification can be arranged and designed in various different configurations.
[0034] Therefore, the detailed description of the embodiments of the present application provided below in the accompanying drawings is not intended to limit the scope of the present application as claimed, but to illustrate only selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments that can be obtained by a person skilled in the art without creative labor belong to the protection scope of the present application.
[0035] Note that in the following figures, like numbers and letters represent like items, so that once an item is defined in one figure, it does not need to be further defined or explained in subsequent figures.
[0036] Additionally, terms such as "first" and / or "second" are used merely to distinguish between descriptions and should not be understood as indicating or implying a relative importance.
[0037] It should be noted that features of the embodiments of the present application can be combined with each other without conflict.
[0038] PID parameter tuning is a process in which the dynamic and static performance of a system meets the requirements and a certain performance index is optimized by tuning three parameters: proportional, integral and differential. Currently, the most common parameter tuning method is based on internal model tuning, which collects historical input / output relationship parameters in a target device to build a loop process model, and obtains tuning parameter results based on the loop process model using an internal model tuning policy to obtain real-time PID parameters for the target device. However, the model obtained in this way needs to be driven by a large amount of valid historical data, and for new devices, the available data information is small and insufficient to train a reliable model, so the actual effect of PID parameter tuning is low.
[0039] In view of this, the applicant has conducted research and proposed a method for constructing a parameter setting model and a method for controlling an industrial process, which uses an auxiliary device for which parameter setting has been completed to construct an auxiliary training data set, and assists training with a local training data set to construct a parameter setting model, thereby avoiding the problem of insufficient model training and low accuracy due to a lack of historical data, and improving the accuracy and efficiency of PID parameter setting for new devices.
[0040] Transfer learning mimics the thought process of the human brain, and after humans solve one problem, they have a better and faster solution to a new related problem. In other words, transfer learning differs from traditional machine learning methods in that it uses "knowledge" learned in tasks in the same field as the target field, such as data features, model parameters, etc., to assist the learning process in the new field, thereby obtaining a model that can be applied to the target field.
[0041] An industrial control system includes multiple different types of control loops, and different industrial control systems may have different scales and data distributions, but at the control loop level, there may be some similar feature information between the control loops of different industrial control systems. Based on this, in an embodiment of the present application, a method for constructing a parameter setting model and a method for controlling an industrial process are provided, and the operating data of an auxiliary device that has completed parameter setting is applied to training a parameter setting model of a new device through a transfer learning method, so as to solve the problem that the existing network model is highly dependent on the valid data of the new device during training, and to improve the construction speed and accuracy of the parameter setting model of the new device.
[0042] Hereinafter, the method for constructing a parameter setting model and the method for controlling an industrial process according to the embodiments of the present application will be described with reference to several specific application examples.
[0043] 1 is a flowchart of steps of a method for constructing a parameter setting model according to an embodiment of the present application, and the method may be executed by a computer device having calculation and processing capabilities. As shown in FIG. 1, the method includes the following steps S101 to S103.
[0044] In S101, an auxiliary training data set and a validation data set are constructed based on the loop information of the new device and the operation data of the auxiliary device.
[0045] The new equipment is the equipment to which the parameter setting model to be trained is applied, and the auxiliary equipment is the equipment for which parameter setting has been completed and which has been officially operated.
[0046] The new unit may be a unit that has been constructed and needs to construct a parameter setting model for PID parameter setting, and illustratively, the new unit may be any one or more of a plurality of units included in an ethylene system, such as an ethylene unit, a cracked gasoline hydrogenation unit, a butadiene extraction unit, an aromatic hydrocarbon extraction unit, an MTBE / butene-1 unit, an ethylene glycol unit, and a POX unit. In some embodiments, each unit may further include a plurality of control loops.
[0047] The auxiliary device may be a device that includes multiple control loops, has completed parameter setting, and is in a normal operating state, and one or more of these control loops can match some characteristics of the control loops of the new device. Note that the auxiliary device may be one or more, and the control loops included in the multiple auxiliary devices jointly constitute a control loop set that matches the multiple control loops in the new device in a one-to-one correspondence.
[0048] a supplementary training data set based on the operating data generated in the set of control loops, the training data set having non-overlapping data; [Number 1] TIFF2024539754000002.tif19170 (where TIFF2024539754000003.tif719, where i = 1, 2, ..., n), and a validation dataset [Number 2] TIFF2024539754000004.tif15170 (where TIFF2024539754000005.tif719, for i=1, 2, ..., k). TIFF2024539754000006.tif76, TIFF2024539754000007.tif1117 is the auxiliary training dataset T a are the input and output parameters of TIFF2024539754000008.tif76, TIFF2024539754000009.tif1117 are the input and output parameters of the validation dataset S, respectively, and X a is the driving data of the auxiliary device, and n is the auxiliary training data set T a is the control loop data included in the validation data set S, and k is the number of control loops included in the validation data set S.
[0049] In S102, a local training data set is constructed based on the initial operating data of the new equipment.
[0050] In some embodiments, a method of manually setting PID parameters for a new device is used to input some initial input parameters to the new device, obtain corresponding initial output parameters, and generate a local training dataset based on the initial input parameters, the initial output parameters, and the corresponding relationship between the two. [Number 3] TIFF2024539754000010.tif16170 can be constructed, where: TIFF2024539754000011.tif819, i=1, 2, ..., m, where TIFF2024539754000012.tif87 is the local training dataset T b are the input parameters of TIFF2024539754000013.tif1117 is the local training dataset T b is an output parameter of X b is the initial operating data for the new equipment.
[0051] In addition, since there is little initial operating data obtained by manually setting the PID parameters, the auxiliary training data set T aThe amount of data contained in the validation dataset S is the same as that of the local training dataset T b The amount of data may be much larger than that of
[0052] In some embodiments, the auxiliary training data set T a , a validation dataset S, and a local training dataset T b The input parameters and output parameters of the control loop may be the same. The input parameters include the device to which the control loop belongs, the loop type, and the closed-loop steady-state time T s , peak time T p , maximum overshoot amount Y max , positive and negative action of the controller, physical characteristics corresponding to the control loop, etc. The output parameters may include the loop PID parameters, which are proportionality coefficient (proportional band), integral time (min), and derivative time (min).
[0053] Among the above input parameters, T s refers to the response time of the control loop from excitation to stability, and T p is the time of maximum value in the control loop transient, and Y max is the maximum value that exceeds the setpoint during the transient period, and the positive or negative action of the controller refers to the positive or negative feedback action of the controller on the control loop.
[0054] In some embodiments, the operating data of the auxiliary device X a , Initial operation data for new equipment X b may be stored as a table, and each input parameter and output parameter may be obtained by extraction based on the corresponding data item in the table.
[0055] In S103, a parameter setting model is obtained by training based on the auxiliary training data set, the validation data set and the local training data set.
[0056] The type of the parameter setting model may be a BP neural network model including an input layer, a hidden layer and an output layer, and each layer includes multiple network parameters to describe the mapping relationship between the input parameters and the output parameters.
[0057] To make the mapping relationship more accurate, we use an auxiliary training dataset T a , a local training dataset T b ,The validation dataset S can be used to train and validate the BP neural network model ,constructed based on the new model, and the network model that ,describes the mapping relationship can be modified to obtain a ,parameter setting model.
[0058] In this embodiment, the auxiliary training data set and the validation data set are used to train together with the local data set to obtain a parameter setting model. By adding the operation data based on the auxiliary device to the training data of the parameter setting model, the shortcoming of the small amount of valid data available for the new device is compensated for, and the accuracy and efficiency of the PID parameter setting of the parameter setting model built on the new device is improved.
[0059] In some embodiments, as shown in FIG. 2, in the above step S101, constructing an auxiliary training data set and a validation data set based on the loop information of the new device and the operation data of the auxiliary device can be realized by the following steps S201 to S202.
[0060] In S201, a target data set is selected from the operational data of the auxiliary device based on the loop type and physical characteristics corresponding to the control loop of the new device.
[0061] As described in the above embodiment, the loop type of the new device and the physical properties corresponding to the control loop are both included in the input parameters of each data set. The loop type may include a flow rate type, a liquid level type, a pressure type, a temperature type, etc., and the physical properties corresponding to the control loop may include, but are not limited to, a liquid phase, a non-pipeline gas phase, a pipeline gas phase, etc.
[0062] The loop type, the physical characteristics corresponding to the control loop, can constitute a set of labels for identifying the process types of the new device and the auxiliary device. Note that, when the process types of a control loop of the new device and the auxiliary device match, the data similarity between them is the highest, and the operation data of the control loop in the auxiliary device can be used as the target data set to train the matching control loop of the new device.
[0063] In S202, a splitting process is performed on the target dataset to obtain an auxiliary training dataset and a validation dataset.
[0064] The target data set determined based on the driving data of the auxiliary device can then be divided into auxiliary training and validation data sets with non-overlapping data, where the amount of data in the auxiliary training data set may be greater than the amount of data in the validation data set.
[0065] The auxiliary training data set is used in the process of obtaining a parameter-setting model by training, and the validation data set can be used to verify the accuracy of the trained model after training is completed.
[0066] In this embodiment, after selecting the target dataset, the target dataset is divided into an auxiliary training dataset and a validation dataset, and data from the same source is used to verify the training level of the model and improve the accuracy of the PID parameters output from the parameter setting model.
[0067] In some embodiments, as shown in FIG. 3, in the above step S201, selecting a target data set from the operation data of the auxiliary device based on the loop type and physical characteristics corresponding to the control loop of the new device can be realized by the following steps S301 to S302.
[0068] In S301, based on the loop type of a new device, a plurality of optional operation data that match the loop type are selected from the operation data of the auxiliary device.
[0069] First, multiple control loops to be set in the new device can be determined. Illustratively, 20 control loops are selected in the new device, with each control loop type corresponding to 5 control loops, thereby allowing 140 control loops to be determined for a system including 7 new devices.
[0070] In some embodiments, control loops of the auxiliary devices that match the loop type of the control loop selected in the new device are selected, and the operating data of the selected control loops of the auxiliary devices is set as optional operating data.
[0071] In S302, the target data set is selected from the plurality of optional operating data based on a physical characteristic corresponding to a control loop of the new device.
[0072] Based on the above steps, the optional operation data can be further selected. When multiple control loops of an auxiliary device match the loop type of a control loop to be set of a new device, select one or more control loops of the auxiliary device that match the physical characteristics corresponding to the control loop to be set, and finally, the operation data of the control loop of the selected auxiliary device is set as the target data set.
[0073] In this embodiment, based on the loop types of the control loops of the new device and the auxiliary device and the matching degree of the physical characteristics corresponding to the control loops, operating data similar to the control loop to be adjusted is selected as a target data set, and the accuracy of the trained parameter adjustment model is ensured from the data source.
[0074] In some embodiments, as shown in FIG. 4, in the above step S103, training to obtain a parameter setting model based on the auxiliary training data set, the validation data set and the local training data set can be realized by the following steps S401 to S405.
[0075] In S401, an intermediate settling model is obtained by training based on the auxiliary training data set and the local training data set.
[0076] In some embodiments, the mid-settlement model may be an initially trained BP neural network, and after integrating the auxiliary training data set and the local training data set, input multiple sets of values of input parameters into the initially constructed BP neural network in sequence. During the training of the mid-settlement model, the auxiliary training data set is introduced to improve the amount of training data, so that the local training data set ensures that the trained mid-settlement model is more compatible with new devices.
[0077] Then, the output values of the initially constructed BP neural network are compared with the values of the output parameters corresponding to the input parameters to determine a comparison difference value.
[0078] Finally, a forward feedback is performed based on the comparison difference value to modify the initial first weight vector W, the initial second weight vector P and the initial offset parameter value β of the initially constructed BP neural network to obtain an intermediate settling model.
[0079] In S402, the mid-set model is validated based on the validation data set.
[0080] As described in the above embodiment, the validation data set is a data set from the same source as the auxiliary training data set, and the corresponding input parameter values of the validation data set are input to the mid-set model, and then the corresponding output parameter values of the mid-set model are output from the mid-set model.
[0081] Then, a difference between the corresponding output parameter values of the mid-settlement model and the output parameter values corresponding to the input parameter values in the validation data set is calculated, and if the difference is smaller than a predetermined difference threshold, the result of passing the validation of this set of input parameters is obtained. Otherwise, the validation is not passed. Multiple sets of input parameters in the validation data set are input sequentially to the mid-settlement model to obtain multiple sets of validation results.
[0082] Finally, a pass ratio of the validation data set is determined based on the ratio of the number of sets that pass validation among the multiple validation results to the total number of sets in the validation data set. In some embodiments, if the pass ratio is greater than a predetermined pass threshold, the training of the mid-set model is considered to be completed. Otherwise, that is, if the pass ratio is equal to or less than the predetermined pass threshold, the above steps can be repeated to continue training to obtain a new mid-set model until the pass ratio is greater than the predetermined pass threshold.
[0083] In S403, after passing the verification, execute the mid-settlement model according to the predetermined input parameter values to obtain output parameter values of the mid-settlement model.
[0084] If the mid-set model passes the verification in the above steps, the mid-set model can be run on the new device to further improve the accuracy of the parameters output by the mid-set model on the new device.
[0085] In some embodiments, a set of predetermined input parameter values can be input to the mid-settlement model, and corresponding output parameter values can be output from the mid-settlement model. The predetermined input parameter values can be a set of test input values artificially set in advance, and the parameters corresponding to the predetermined input parameter values and output parameter values can be the same as the parameters corresponding to the input parameter values and output parameter values in the auxiliary training data set.
[0086] In S404, the loop PID parameter values after the new device is operated according to the given input parameter values are obtained.
[0087] Further, the above-mentioned predetermined input parameter values may be input into corresponding control loops of the new device that are not included in the local training data set, and after the new device is actually operated, the loop PID parameters output from the new device are obtained, the loop PID parameters including proportionality coefficient (proportional band), integral time (minutes), and derivative time (minutes).
[0088] In S405, parameter optimization is performed on the intermediate settling model based on the loop PID parameter values and the output parameter values to obtain a parameter settling model.
[0089] The loop PID parameter values and the output parameter values corresponding to the same predetermined input parameters are compared to obtain a comparison difference value, and the parameters of the mid-settling model are optimized based on the comparison difference value to obtain a parameter-settling model.
[0090] In addition, predetermined input parameter values may be input to control loops that are not involved in constructing a local training data set in the new device, and intermediate tuning models are optimized based on the comparison results between the loop PID parameter values output from these control loops and the output parameter values to improve the coverage of the parameter tuning models for each new device in the control system to be tuned.
[0091] To summarise, based on the above embodiment, the process of training and optimizing to obtain a parameter setting model is as shown in FIG.
[0092] First, the operation data of the auxiliary device is extracted to obtain a target dataset, and then the target dataset is divided to generate an auxiliary training dataset and a validation dataset.
[0093] Also, some control loops from the new device may be selected to perform PID parameter setting to obtain initial operating data, and these initial operating data may be extracted to obtain a local training data set.
[0094] Then, the auxiliary training dataset and the local training dataset are integrated as the training dataset to train the constructed BP neural network model to obtain an intermediate settling model.
[0095] Based on this, the mid-set model can be validated with the validation data set constructed in the above step, and the above training process can be repeated until the pass ratio is greater than a predefined pass threshold.
[0096] Finally, the intermediately tuned models are subjected to further parameter optimization in control loops that do not involve building a local training data set for each new model of the system being tuned to obtain parameter-tuned models.
[0097] In this embodiment, validation and further parameter optimization are performed on the intermediate setting model to obtain a parameter setting model, and the accuracy of the output parameter values of the parameter setting model is further improved.
[0098] In some embodiments, as shown in FIG. 6, in the above step S405, parameter optimization is performed on the intermediate settling model based on the loop PID parameter values and the output parameter values to obtain a parameter settling model, which can be realized by the following steps S501 to S502.
[0099] In S501, a parameter error rate is determined based on the loop PID parameter values and the output parameter values.
[0100] Parameter error rate ε t can be calculated using the following formula: [Number 4] TIFF2024539754000014.tif23170
[0101] where n is the number of control loops in the auxiliary training data set and m is the number of control loops in the local training data set. TIFF2024539754000015.tif77 is the ε t h t (x i ) is the output parameter value output from the intermediate settling model, and c(x i ) are the loop PID parameter values output from the new device.
[0102] In this manner, the parameter error rate is calculated based on the difference between the output parameter value and the loop PID parameter value corresponding to the same given input parameter value.
[0103] In S502, the model parameters of the intermediate settling model are iteratively modified based on the parameter error rate to obtain a parameter settling model.
[0104] Based on this, the maximum average difference method can be used to determine the difference between the model data distribution situation consisting of the predetermined input parameter values and output parameter values of the mid-set model and the data distribution situation consisting of the predetermined input parameter values and loop PID parameter values, and the difference can be expressed as the parameter error rate ε t It can be shown by:
[0105] And further, the parameter error rate ε tBased on this, the mapping from the input values to the output values of the intermediate settling parameters is modified to be closer to the mapping relationship of the new model, and a parameter settling model is obtained.
[0106] In this embodiment, a parameter error rate is determined based on the loop PID parameter values and output parameter values implemented on the new model, and the parameter setting is then modified based on this to improve the mapping accuracy of the parameter setting model.
[0107] In some embodiments, the model parameters include a first weight vector and an offset parameter value.
[0108] The first weight vector can indicate the weights of each layer of the multi-layer BP neural network that constitutes the mid-settlement model, and the offset parameter value is a control parameter value for the activation state of the neuron in the BP neural network. In some embodiments, a second weight vector P may be set in the BP neural network, and together with the first weight vector, a mapping relationship from the input value to the output value of the mid-settlement model may be specified.
[0109] As shown in FIG. 7, in the above step S502, iteratively modifying the model parameters of the intermediate settling model based on the parameter error rate to obtain a parameter settling model can be realized by the following steps S601 to S604.
[0110] In S601, the intermediate offset parameter value is modified based on the parameter error rate to obtain the process offset parameter value.
[0111] The parameter error rate ε determined in the above step t The intermediate offset parameter value can be modified based on the following equation: [Number 5] TIFF2024539754000016.tif16170
[0112] Then, the original intermediate offset parameter value is replaced with the modified intermediate offset parameter value, i.e., the process offset parameter value.
[0113] In S602, the first intermediate weight vector is modified based on the process offset parameter value to obtain a first process weight vector.
[0114] Based on this, the first intermediate weight vector continues to be modified with the process offset parameters determined in the above step according to the following equation: [Number 6] TIFF2024539754000017.tif20170
[0115] When the first intermediate weight vector is replaced with the modified first process weight vector, the modification process of the first intermediate weight vector is completed once.
[0116] In S603, a new mid-settling model is obtained based on the process offset parameter value and the first process weight vector, and a parameter error rate of the mid-settling model is re-determined.
[0117] In this way, a new mid-settling model is constructed using the process offset parameter value, the first process weight vector, and the second weight vector, and predetermined input parameters are input to the new device and the new mid-settling model, respectively. A new parameter error rate is recalculated and determined based on the above equation, the loop PID parameter value of the new device, and the output parameter value of the new mid-settling model.
[0118] In S604, it is determined whether the parameter error rate is smaller than a predetermined threshold.
[0119] In some embodiments, a predetermined threshold may be set, and if the redetermined parameter error rate is equal to or greater than the predetermined threshold, the above steps may continue to be performed iteratively to continue refining the mid-settlement model.
[0120] In S605, the above steps are repeated until the parameter error rate becomes smaller than a predetermined threshold, and the intermediate settling model is set as the parameter settling model.
[0121] If the re-determined parameter error rate is less than the predetermined threshold, it is considered that the correction of the mid-settlement model is completed, and the corrected mid-settlement model is set as the final parameter settling model.
[0122] In this embodiment, the mid-settlement model is iteratively modified based on the parameter error rate to improve the fitting degree between the mid-settlement model and the new model, and improve the accuracy of the output parameter values of the parameter settling model in the new model.
[0123] In some embodiments, as shown in FIG. 8, in the above step S401, before obtaining an intermediate settling model by training based on the auxiliary training data set and the local training data set, the following steps S701 to S704 may be further included.
[0124] In S701, the root mean square error and the coefficient of determination are determined based on the auxiliary training data set and the local training data set.
[0125] In some embodiments, the root mean square error RMSE may be determined as follows: [Number 7] TIFF2024539754000018.tif23170
[0126] Coefficient of determination R 2 can be determined by the following formula: [Number 8] TIFF2024539754000019.tif27170
[0127] Here, m denotes the number of samples in the training set consisting of the auxiliary training dataset and the local training dataset, and y idenotes the sample true value of the i-th sample in the training set for the new device and the auxiliary device, TIFF2024539754000020.tif86 shows the output predicted value of the constructed model for the i-th sample. TIFF2024539754000021.tif65 is the average value of the sample true values.
[0128] In S702, the number of hidden layer nodes of the parameter setting initial model is determined based on the root mean square error and the coefficient of determination.
[0129] Then, the number of hidden layer nodes of the parameter setting initial model is selected based on the determined root mean square error and coefficient of determination. For example, the root mean square error and coefficient of determination are divided into a plurality of ranges, and are made to correspond one-to-one with the number of hidden layer nodes. When the root mean square error and coefficient of determination are within the ranges, the corresponding number of hidden layer nodes can be determined.
[0130] In some embodiments, for example in the present application, the number of hidden layer nodes may be five.
[0131] In S703, a parameter setting initial model is constructed based on the number of hidden layer nodes, a predetermined number of input layer nodes, and a predetermined number of output layer nodes.
[0132] The predetermined number of input layer nodes may be determined according to the number of input parameters, and may be, for example, 7. The predetermined number of output layer nodes may be determined according to the number of output parameters, and may be, for example, 3.
[0133] In this way, the network structure of the BP neural network can be constructed based on the number of hidden layer nodes, a predetermined number of input layer nodes, and a predetermined number of output layer nodes.
[0134] In some embodiments, when constructing a parameter setting initial model based on this, an initial first weight vector W, an initial second weight vector P, and an initial offset value β of the parameter setting initial model may be initialized. In some embodiments, the initial weight vector is [Number 9] TIFF2024539754000022.tif19170, [Number 10] TIFF2024539754000023.tif21170
[0135] n is the number of control loops in the auxiliary training data set and m is the number of control loops in the local training data set.
[0136] The initial offset parameter value β is [Number 11] For example, the image size may be set to TIFF2024539754000024.tif18170, where N is the value of n+m.
[0137] The initial second weight vector is [Number 12] TIFF2024539754000025.tif24170, which corresponds to the initial weight vector.
[0138] After constructing the network structure and network parameters of the BP neural network, the parameter-set initial model is obtained.
[0139] In S704, the parameter-set initial model is trained based on the auxiliary training data set and the local training data set to obtain an intermediate parameter-set model.
[0140] Finally, the constructed parameter-set initial model is trained based on the auxiliary training data set and the local training data set constructed in the above embodiment, and the parameters of the parameter-set initial model are modified to obtain an intermediate parameter-set initial model.
[0141] In this embodiment, the number of hidden layer nodes is determined based on the root mean square error and the coefficient of determination, and a parameter-setting initial model is further constructed, so that the constructed model is more suited to the amount of data in the training set, has higher fitting ability, and has a faster training speed.
[0142] As shown in FIG. 9, an embodiment of the present application further provides an industrial process control method, which may be applied to a processing equipment capable of performing PID parameter setting for a new device. Referring to FIG. 9, the method includes the following steps S801 to S802.
[0143] In S801, setting parameter values of a new device to be controlled are determined based on a parameter setting model, and the parameter setting model is obtained by the method for constructing a parameter setting model described in any of the above embodiments.
[0144] In some embodiments, a parameter settling model can be determined based on the above embodiments, and the model can be applied to the new device to output corresponding PID parameter values, i.e., settling parameter values, of the new device to be controlled, based on input parameter values in the new device.
[0145] In addition, during training of the parameter setting model, multiple new devices are introduced in the industrial control system to be set up, so that the parameter setting model can output accurate setting parameter values for the multiple new devices in the industrial control system to be set up.
[0146] In S802, the new device is controlled to perform the target process based on the settling parameter values.
[0147] It is understood that the target process may be a process that the new equipment operates based on the settling parameter values, which are output from the parameter settling model and are values to be adjusted for the new equipment. Thus, the settling parameter values can be input to the new equipment to control its operation to perform the target process.
[0148] In this embodiment, the operation of the new device is controlled based on the setting parameter values output from the parameter setting model, thereby making it possible to achieve a predetermined control effect with high efficiency in the new device and improve the degree of automation of parameter setting.
[0149] Referring to FIG. 10 , the embodiment of the present application further provides a parameter setting model construction apparatus 100, which includes a dataset construction module 1001, a model training module 1002 and a model construction module 1003.
[0150] The data set construction module 1001 is configured to construct an auxiliary training data set and a validation data set according to the loop information of a new device and the operation data of an auxiliary device, where the new device is a device to which a parameter setting model to be trained is applied, and the auxiliary device is a device that has completed parameter setting and has been officially operated; The dataset construction module 1001 is further configured to construct a local training dataset based on the initial operating data of the new equipment.
[0151] The model training module 1002 is configured to train and obtain a parameter-setting model based on the auxiliary training data set, the validation data set and the local training data set.
[0152] The dataset construction module 1001 is specifically configured to select a target dataset from the operation data of the auxiliary device based on the loop type and physical characteristics corresponding to the control loop of the new device, and perform a partitioning process on the target dataset to obtain an auxiliary training dataset and a validation dataset.
[0153] The dataset construction module 1001 is specifically configured to select, based on a loop type of the new device, a plurality of optional operating data matching the loop type from the operating data of the auxiliary device, and select a target dataset from the plurality of optional operating data based on physical characteristics corresponding to the control loop of the new device.
[0154] The model training module 1002 is specifically configured to: train based on the auxiliary training data set and the local training data set to obtain an mid-settlement model; verify the mid-settlement model based on the verification data set; after the verification is passed, execute the mid-settlement model according to predetermined input parameter values to obtain output parameter values of the mid-settlement model; obtain loop PID parameter values after the new device is operated according to the predetermined input parameter values; and perform parameter optimization on the mid-settlement model based on the loop PID parameter values and the output parameter values to obtain a parameter setting model.
[0155] Specifically, the model training module 1002 is configured to determine a parameter error rate based on the loop PID parameter values and the output parameter values, and iteratively modify model parameters of the intermediate settling model based on the parameter error rate to obtain a parameter settling model.
[0156] Specifically, the model training module 1002 is configured to: the model parameters include a first intermediate weight vector and an intermediate offset parameter value; based on a parameter error rate, modify the intermediate offset parameter value to obtain a process offset parameter value; based on the process offset parameter value, modify the first intermediate weight vector to obtain a first process weight vector; based on the process offset parameter value and the first process weight vector, obtain a new intermediate settling model; re-determine a parameter error rate of the intermediate settling model; repeat the above steps until the parameter error rate is smaller than a predetermined threshold, and take the intermediate settling model as the parameter settling model.
[0157] The model construction module 1003 is configured to determine a root mean square error and a coefficient of determination based on the auxiliary training data set and the local training data set, determine a number of hidden layer nodes of a parameter-set initial model based on the root mean square error and the coefficient of determination, construct a parameter-set initial model based on the number of hidden layer nodes, a predetermined number of input layer nodes and a predetermined number of output layer nodes, and train the parameter-set initial model based on the auxiliary training data set and the local training data set to obtain an intermediate parameter-set model.
[0158] Referring to FIG. 11, an embodiment of the present application includes: A determination module 1101 configured to determine a setting parameter value of a new device to be controlled based on a parameter setting model, the parameter setting model being obtained by the method for constructing a parameter setting model described in any of the above embodiments; and a control module 1102 configured to control the new device to perform the target process based on the settling parameter values.
[0159] Referring to FIG. 12, this embodiment further provides a processing device including a processor 2001, a memory 2002, and a bus, in which the memory 2002 stores machine-readable instructions executable by the processor 2001, and the machine-readable instructions are executed when the processing device operates, the processor 2001 and the memory 2002 communicate via the bus, and the processor 2001 is configured to execute steps of the parameter setting model construction method or the industrial process control method in the above embodiment.
[0160] The memory 2002, the processor 2001, and the bus are electrically connected to each other directly or indirectly, and realize data transmission or exchange. For example, these elements may be electrically connected to each other by one or more communication buses or signal lines. The data processing device of the parameter setting model construction system or the industrial process control system includes at least one software function module stored in the memory 2002 in the form of software or firmware or cured in the operating system (OS) of the processing device. The processor 2001 is configured to execute executable modules stored in the memory 2002, such as software function modules and computer programs included in the data processing device of the parameter setting model construction system or the industrial process control system.
[0161] The memory 2002 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), and the like.
[0162] In some embodiments, the present application further provides a storage medium storing a computer program, which, when executed by a processor, executes the steps of the above method embodiments. The specific implementation manner and technical effects are similar, and are not described in this application.
[0163] Those skilled in the art can clearly understand that for convenience and conciseness of description, the specific work processes of the above system and device can be referred to the corresponding process in implementing the method, and the description is omitted in this application. It should be understood that in some embodiments of the present application, the disclosed system, device, and method can be realized in other forms. The above-described device embodiments are merely exemplary, and for example, the division of the above modules is merely a division of logic functions, and may be divided in other forms when actually realized, and for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not executed. Furthermore, the shown or discussed mutual couplings or direct couplings or communication connections may be indirect couplings or communication connections through some communication interfaces, devices, or modules, and may be electrical, mechanical, or other forms.
[0164] Also, in each embodiment of the present application, each functional unit may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above functions may be realized in the form of a software functional unit and stored in one computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution according to the present application may be essentially embodied in the form of a software product, or a part of the technical solution may be contributed to the prior art or the computer software product may be stored in a storage medium and include some commands to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or some of the steps of the method according to each embodiment of the present application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
[0165] Although the specific embodiments of the present application have been described above, the scope of protection of the present application is not limited thereto, and all modifications or replacements that a person skilled in the art can easily conceive within the technical scope disclosed by the present application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application is based on the scope of protection of the claims. [Industrial Applicability]
[0166] The technical solutions according to the embodiments of the present application are applicable to the technical field of industrial automation control, and the method for constructing a parameter setting model and the method for controlling an industrial process according to the present application can construct an auxiliary training data set by the operation data of an auxiliary device, and train and construct a parameter setting model together with a local training data set constructed by the operation data of a new device. The present application makes full use of the operation data of an auxiliary device that has already completed parameter setting and been officially operated to train the parameter setting model, thereby making up for the shortcoming that there is little effective data available for the new device, and improving the accuracy and efficiency of PID parameter setting of the parameter setting model constructed on the new device.
Claims
1. A step of constructing an auxiliary training data set and a validation data set based on loop information of a new device and operation data of an auxiliary device, where the new device is a device to which a parameter setting model to be trained is applied, and the auxiliary device is a device that has completed parameter setting and has been officially operated; building a local training data set based on initial operating data of the new equipment; and training to obtain a parameter setting model based on the auxiliary training data set, the validation data set and the local training data set.
2. The step of constructing an auxiliary training data set and a validation data set based on the loop information of the new device and the operation data of the auxiliary device includes: selecting a target data set from the operational data of the auxiliary device based on a loop type and physical characteristics corresponding to a control loop of the new device; The method of claim 1 , further comprising: performing a splitting process on the target data set to obtain the auxiliary training data set and the validation data set.
3. said step of selecting a target data set from the operational data of the auxiliary device based on physical characteristics corresponding to a loop type and a control loop of the new device, Selecting a plurality of optional operation data matching the loop type from the operation data of the auxiliary device based on the loop type of the new device; and selecting the target data set from the plurality of optional operating data based on physical characteristics corresponding to a control loop of the new device.
4. The step of training to obtain a parameter setting model based on the auxiliary training data set, the validation data set and the local training data set includes: training a mid-set model based on the auxiliary training data set and the local training data set; Validating the mid-settlement model based on the validation data set, and after the validation is passed, executing the mid-settlement model according to predetermined input parameter values to obtain output parameter values of the mid-settlement model; obtaining loop PID parameter values after the new device is operated according to the predetermined input parameter values; and performing parameter optimization on the intermediate setting model based on the loop PID parameter values and the output parameter values to obtain the parameter setting model.
5. The step of performing parameter optimization on the intermediate settling model based on the loop PID parameter values and the output parameter values to obtain the parameter settling model includes: determining a parameter error rate based on the loop PID parameter values and the output parameter values; and iteratively modifying model parameters of the intermediate settling model based on the parameter error rate to obtain the parameter settling model.
6. the model parameters include a first intermediate weight vector and an intermediate offset parameter value; the step of iteratively modifying model parameters of the intermediate settling model based on the parameter error rate to obtain the parameter settling model includes: modifying the intermediate offset parameter value based on the parameter error rate to obtain a process offset parameter value; modifying the first intermediate weight vector based on the process offset parameter value to obtain a first process weight vector; obtaining a new mid-settlement model based on the process offset parameter value and the first process weight vector, and redetermining a parameter error rate of the mid-settlement model; 6. The method for constructing a parameter setting model according to claim 5, further comprising the step of repeating the steps above until the parameter error rate becomes smaller than a predetermined threshold value, and designating the intermediate setting model as the parameter setting model.
7. Prior to the step of training to obtain an intermediate settling model based on the auxiliary training data set and the local training data set, the method further comprises: determining a root mean square error and a coefficient of determination based on the auxiliary training data set and the local training data set; determining the number of hidden layer nodes of the parameter-setting initial model based on the root mean square error and the coefficient of determination; constructing the parameter-setting initial model based on the number of hidden layer nodes, a predetermined number of input layer nodes, and a predetermined number of output layer nodes; The method of claim 4 , further comprising: training the parameter-setting initial model based on the auxiliary training data set and the local training data set to obtain the intermediate parameter-setting model.
8. a step of determining setting parameter values of a new device to be controlled based on the parameter setting model, the parameter setting model being obtained by a parameter setting model construction method according to any one of claims 1 to 7; and controlling the new device to perform a target process based on the settling parameter values.
9. A processing device including a processor, a storage medium, and a bus, The storage medium stores machine-readable instructions executable by the processor; When the processing device operates, the processor and the storage medium communicate via a bus, and the processor executes the machine-readable instructions to perform steps of the parameter setting model construction method described in any one of claims 1 to 7 or the industrial process control method described in claim 8.
10. A computer-readable storage medium having a computer program stored therein, the computer-readable storage medium realizing, when the computer program is executed by a processor, steps of the method for constructing a parameter setting model according to any one of claims 1 to 7 or the method for controlling an industrial process according to claim 8.
Citation Information
Patent Citations
Fuzzy neural network controller
CN111856926A
Controller for plant
JP2007272646A
Control device and control method
JP2018124982A
Control system, controller, control program, learning data creation method, and learning method
JP2019175275A
Plant control adjusting device
JP2020112921A
