WO2024016637A1 - Method for constructing parameter setting model and industrial process control method - Google Patents

Method for constructing parameter setting model and industrial process control method Download PDF

Info

Publication number
WO2024016637A1
WO2024016637A1 PCT/CN2023/075229 CN2023075229W WO2024016637A1 WO 2024016637 A1 WO2024016637 A1 WO 2024016637A1 CN 2023075229 W CN2023075229 W CN 2023075229W WO 2024016637 A1 WO2024016637 A1 WO 2024016637A1
Authority
WO
WIPO (PCT)
Prior art keywords
parameter
data set
model
tuning model
training data
Prior art date
Application number
PCT/CN2023/075229
Other languages
French (fr)
Chinese (zh)
Inventor
金建祥
童不凡
刘蕴文
王家栋
张晨韵
Original Assignee
中控技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中控技术股份有限公司 filed Critical 中控技术股份有限公司
Publication of WO2024016637A1 publication Critical patent/WO2024016637A1/en

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B11/00Automatic controllers
    • G05B11/01Automatic controllers electric
    • G05B11/36Automatic controllers electric with provision for obtaining particular characteristics, e.g. proportional, integral, differential
    • G05B11/42Automatic controllers electric with provision for obtaining particular characteristics, e.g. proportional, integral, differential for obtaining a characteristic which is both proportional and time-dependent, e.g. P.I., P.I.D.

Abstract

Embodiments of the present application relate to the technical field of industrial automation control, and provide a method for constructing a parameter setting model and an industrial process control method. In the present application, the method comprises: constructing an auxiliary training data set and a validation data set according to loop information of a newly-built device and operation data of an auxiliary device, wherein the newly-built device is a device to which a parameter setting model to be trained is applied, and the auxiliary device is a device completing parameter setting and formally running; constructing a local training data set according to initial operation data of the newly-built device; and training to obtain the parameter setting model according to the auxiliary training data set, the validation data set, and the local training data set.

Description

参数整定模型的构建方法及工业过程控制方法Parameter tuning model construction method and industrial process control method
交叉援引cross-citation
本申请要求于2022年07月22日提交中国专利局、优先权号为202210859981.X、申请名称为“参数整定模型的构建方法及工业过程控制方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application submitted to the China Patent Office on July 22, 2022, with priority number 202210859981. incorporated herein by reference.
技术领域Technical field
本申请涉及工业自动化控制技术领域,具体而言,涉及一种参数整定模型的构建方法及工业过程控制方法。The present application relates to the field of industrial automation control technology, specifically, to a method for constructing a parameter tuning model and an industrial process control method.
背景技术Background technique
PID(proportion-比例、integral-积分、differential-微分)是当前应用最为广泛的一种控制策略。PID参数整定是其控制工作过程中的核心内容,参数整定是根据控制系统工作过程中的特性,确定其的比例系数、积分时间和微分时间的偏差值。PID (proportion, integral, differential) is currently the most widely used control strategy. PID parameter tuning is the core content of its control process. Parameter tuning is to determine the deviation values of its proportional coefficient, integral time and differential time based on the characteristics of the control system's working process.
目前,PID参数整定的方法一般为基于内模的整定法,这种方法建立PID参数整定的数学模型,基于过程历史数据建立过程数学模型,根据数学模型采用内模整定策略得到PID参数,是较为行之有效的PID参数整定方法。At present, the PID parameter tuning method is generally based on the internal model. This method establishes a mathematical model for PID parameter tuning, establishes a process mathematical model based on process historical data, and uses the internal model tuning strategy to obtain the PID parameters based on the mathematical model. This method is relatively simple. An effective method for tuning PID parameters.
但是,基于内模的整定方法需要大量的有效数据来建立过程模型,这对于在新建装置上建立的过程模型来说,由于可用的数据信息较少,不足以建立出一个可靠的过程模型,导致PID参数整定的实际效果较差。However, the internal model-based tuning method requires a large amount of valid data to establish a process model. For a process model established on a newly built device, the available data information is less, which is not enough to establish a reliable process model, resulting in The actual effect of PID parameter tuning is poor.
发明内容Contents of the invention
本申请的目的包括,例如,提供了一种参数整定模型的构建方法及工业过程控制方法,通过构建辅助训练数据集进行训练,有效地弥补了新建装置可用的有效数据少的缺点,提升了新建装置上建立的参数整定模型的PID参数整定的准确率。The purpose of this application includes, for example, providing a method for constructing a parameter tuning model and an industrial process control method. By constructing an auxiliary training data set for training, it effectively makes up for the shortcomings of less effective data available for newly built devices and improves the efficiency of newly built devices. The accuracy of PID parameter tuning of the parameter tuning model established on the device.
本申请的实施例可以这样实现:The embodiment of this application can be implemented as follows:
第一方面,本申请实施例提供了一种参数整定模型的构建方法,所述方法包括:In a first aspect, embodiments of the present application provide a method for constructing a parameter tuning model. The method includes:
根据新建装置的回路信息以及辅助装置的运行数据,构建辅助训练数据集以及验证数据集,其中,所述新建装置为待训练的参数整定模型所应用的装置,所述辅助装 置为参数整定完成且正式运行的装置;An auxiliary training data set and a verification data set are constructed according to the circuit information of the newly-built device and the operating data of the auxiliary device, where the newly-built device is a device to which the parameter tuning model to be trained is applied, and the auxiliary device Set as a device that has completed parameter tuning and is officially in operation;
根据所述新建装置的初始运行数据,构建本地训练数据集;Construct a local training data set based on the initial operating data of the newly built device;
根据所述辅助训练数据集、所述验证数据集以及所述本地训练数据集,训练得到参数整定模型。According to the auxiliary training data set, the verification data set and the local training data set, a parameter tuning model is trained.
在一种可选的实施方式中,所述根据新建装置的回路信息以及辅助装置的运行数据,构建辅助训练数据集以及验证数据集,包括:In an optional implementation, constructing an auxiliary training data set and a verification data set based on the circuit information of the newly-built device and the operating data of the auxiliary device includes:
根据所述新建装置的回路类型以及控制回路对应的物理特性,从所述辅助装置的运行数据中筛选出目标数据集;Filter out the target data set from the operating data of the auxiliary device according to the circuit type of the new device and the corresponding physical characteristics of the control loop;
对所述目标数据集进行拆分处理,得到所述辅助训练数据集以及所述验证数据集。The target data set is split to obtain the auxiliary training data set and the verification data set.
在一种可选的实施方式中,所述根据所述新建装置的回路类型以及控制回路对应的物理特性,从所述辅助装置的运行数据中筛选出目标数据集,包括:In an optional implementation, the target data set is selected from the operating data of the auxiliary device according to the circuit type of the newly-built device and the corresponding physical characteristics of the control loop, including:
根据所述新建装置的回路类型,从所述辅助装置的运行数据中筛选与所述回路类型匹配的多个可选运行数据;According to the circuit type of the newly-built device, screen a plurality of optional operating data matching the circuit type from the operating data of the auxiliary device;
根据所述新建装置的控制回路对应的物理特性,从所述多个可选运行数据中筛选出所述目标数据集。The target data set is selected from the plurality of optional operating data according to the physical characteristics corresponding to the control loop of the newly constructed device.
在一种可选的实施方式中,所述根据所述辅助训练数据集、所述验证数据集以及所述本地训练数据集,训练得到参数整定模型,包括:In an optional implementation, the training to obtain a parameter tuning model based on the auxiliary training data set, the verification data set and the local training data set includes:
基于所述辅助训练数据集以及所述本地训练数据集,训练得到中间整定模型;Based on the auxiliary training data set and the local training data set, train an intermediate tuning model;
基于所述验证数据集对所述中间整定模型进行验证,并在验证通过后,按照预设输入参数值运行所述中间整定模型,得到所述中间整定模型的输出参数值;Verify the intermediate tuning model based on the verification data set, and after passing the verification, run the intermediate tuning model according to the preset input parameter values to obtain the output parameter values of the intermediate tuning model;
获取所述新建装置按照所述预设输入参数值运行后的回路PID参数值;Obtain the loop PID parameter value after the new device is operated according to the preset input parameter value;
根据所述回路PID参数值以及所述输出参数值,对所述中间整定模型进行参数优化,得到所述参数整定模型。According to the loop PID parameter value and the output parameter value, parameter optimization is performed on the intermediate tuning model to obtain the parameter tuning model.
在一种可选的实施方式中,所述根据所述回路PID参数值以及所述输出参数值,对所述中间整定模型进行参数优化,得到所述参数整定模型,包括:In an optional implementation, performing parameter optimization on the intermediate tuning model according to the loop PID parameter value and the output parameter value to obtain the parameter tuning model includes:
根据所述回路PID参数值以及所述输出参数值,确定参数错误率;Determine the parameter error rate according to the loop PID parameter value and the output parameter value;
根据所述参数错误率,对所述中间整定模型的模型参数进行迭代修正,得到所述参数整定模型。 According to the parameter error rate, the model parameters of the intermediate tuning model are iteratively corrected to obtain the parameter tuning model.
在一种可选的实施方式中,所述模型参数包括:第一中间权重向量以及中间偏置参数值;In an optional implementation, the model parameters include: a first intermediate weight vector and an intermediate bias parameter value;
所述根据所述参数错误率,对所述中间整定模型的模型参数进行迭代修正,得到所述参数整定模型,包括:Iteratively correcting the model parameters of the intermediate tuning model according to the parameter error rate to obtain the parameter tuning model includes:
根据所述参数错误率,对所述中间偏置参数值进行修正,得到过程偏置参数值;According to the parameter error rate, the intermediate offset parameter value is corrected to obtain a process offset parameter value;
根据所述过程偏置参数值对所述第一中间权重向量进行修正,得到第一过程权重向量;Modify the first intermediate weight vector according to the process offset parameter value to obtain a first process weight vector;
根据所述过程偏置参数值以及所述第一过程权重向量,得到新的中间整定模型,重新确定所述中间整定模型的参数错误率;Obtain a new intermediate tuning model according to the process bias parameter value and the first process weight vector, and re-determine the parameter error rate of the intermediate tuning model;
重复上述过程,直至所述参数错误率小于预设阈值,将所述中间整定模型作为所述参数整定模型。Repeat the above process until the parameter error rate is less than the preset threshold, and use the intermediate tuning model as the parameter tuning model.
在一种可选的实施方式中,所述基于所述辅助训练数据集以及所述本地训练数据集,训练得到中间整定模型之前,所述方法还包括:In an optional implementation, before training to obtain an intermediate tuning model based on the auxiliary training data set and the local training data set, the method further includes:
根据所述辅助训练数据集以及所述本地训练数据集,确定均方根误差以及决定系数;Determine the root mean square error and coefficient of determination according to the auxiliary training data set and the local training data set;
根据所述均方根误差以及所述决定系数,确定参数整定初始模型的隐藏层节点数量;According to the root mean square error and the coefficient of determination, determine the number of hidden layer nodes of the initial model for parameter tuning;
根据所述隐藏层节点数量、预设的输入层节点数量以及预设的输出层节点数量,构建所述参数整定初始模型;Construct the initial parameter tuning model according to the number of hidden layer nodes, the preset number of input layer nodes, and the preset number of output layer nodes;
根据所述辅助训练数据集以及所述本地训练数据集,对所述参数整定初始模型进行训练,得到所述中间整定模型。The initial parameter tuning model is trained according to the auxiliary training data set and the local training data set to obtain the intermediate tuning model.
第二方面,本申请实施例提供了一种工业过程控制方法,所述方法包括:In a second aspect, embodiments of the present application provide an industrial process control method, which method includes:
根据所述参数整定模型,确定待控制的新建装置的整定参数值,所述参数整定模型基于第一方面中任一项所述的参数整定模型的构建方法得到;Determine the tuning parameter values of the newly-built device to be controlled according to the parameter tuning model, which is obtained based on the construction method of the parameter tuning model described in any one of the first aspects;
根据所述整定参数值控制所述新建装置执行目标过程。The newly created device is controlled to execute a target process according to the setting parameter value.
第三方面,本申请实施例提供一种参数整定模型的构建装置,包括:In a third aspect, embodiments of the present application provide a device for constructing a parameter tuning model, including:
数据集构建模块,设置为根据新建装置的回路信息以及辅助装置的运行数据,构建辅助训练数据集以及验证数据集,其中,所述新建装置为待训练的参数整定模型所应用的装置,所述辅助装置为参数整定完成且正式运行的装置; The data set construction module is configured to construct an auxiliary training data set and a verification data set based on the circuit information of the newly created device and the operating data of the auxiliary device, wherein the new device is a device to which the parameter tuning model to be trained is applied, and the Auxiliary devices are devices that have completed parameter setting and are officially in operation;
所述数据集构建模块还设置为,根据所述新建装置的初始运行数据,构建本地训练数据集。The data set construction module is also configured to construct a local training data set based on the initial operating data of the newly created device.
模型训练模块,设置为根据所述辅助训练数据集、所述验证数据集以及所述本地训练数据集,训练得到参数整定模型。A model training module is configured to train and obtain a parameter tuning model based on the auxiliary training data set, the verification data set and the local training data set.
所述数据集构建模块具体还设置为,根据所述新建装置的回路类型以及控制回路对应的物理特性,从所述辅助装置的运行数据中筛选出目标数据集;对所述目标数据集进行拆分处理,得到所述辅助训练数据集以及所述验证数据集。The data set building module is specifically configured to filter out the target data set from the operation data of the auxiliary device according to the circuit type of the new device and the corresponding physical characteristics of the control loop; and disassemble the target data set. Process separately to obtain the auxiliary training data set and the verification data set.
所述数据集构建模块具体还设置为,根据所述新建装置的回路类型,从所述辅助装置的运行数据中筛选与所述回路类型匹配的多个可选运行数据;根据所述新建装置的控制回路对应的物理特性,从所述多个可选运行数据中筛选出所述目标数据集。The data set building module is specifically configured to filter multiple optional operating data matching the circuit type from the operating data of the auxiliary device according to the circuit type of the new device; The physical characteristics corresponding to the control loop are used to filter out the target data set from the plurality of optional operating data.
所述模型训练模块具体还设置为,基于所述辅助训练数据集以及所述本地训练数据集,训练得到中间整定模型;基于所述验证数据集对所述中间整定模型进行验证,并在验证通过后,按照预设输入参数值运行所述中间整定模型,得到所述中间整定模型的输出参数值;获取所述新建装置按照所述预设输入参数值运行后的回路PID参数值;根据所述回路PID参数值以及所述输出参数值,对所述中间整定模型进行参数优化,得到所述参数整定模型。The model training module is specifically configured to: train to obtain an intermediate tuning model based on the auxiliary training data set and the local training data set; verify the intermediate tuning model based on the verification data set, and pass the verification Then, run the intermediate tuning model according to the preset input parameter value to obtain the output parameter value of the intermediate tuning model; obtain the loop PID parameter value of the new device after running according to the preset input parameter value; according to the The loop PID parameter value and the output parameter value are used to optimize the parameters of the intermediate tuning model to obtain the parameter tuning model.
所述模型训练模块具体还设置为,根据所述回路PID参数值以及所述输出参数值,确定参数错误率;根据所述参数错误率,对所述中间整定模型的模型参数进行迭代修正,得到所述参数整定模型。The model training module is specifically configured to determine a parameter error rate based on the loop PID parameter value and the output parameter value; and iteratively correct the model parameters of the intermediate tuning model based on the parameter error rate, to obtain The parameter tuning model.
所述模型训练模块具体还设置为,所述模型参数包括:第一中间权重向量以及中间偏置参数值;根据所述参数错误率,对所述中间偏置参数值进行修正,得到过程偏置参数值;根据所述过程偏置参数值对所述第一中间权重向量进行修正,得到第一过程权重向量;根据所述过程偏置参数值以及所述第一过程权重向量,得到新的中间整定模型,重新确定所述中间整定模型的参数错误率;重复上述过程,直至所述参数错误率小于预设阈值,将所述中间整定模型作为所述参数整定模型。The model training module is specifically configured such that the model parameters include: a first intermediate weight vector and an intermediate offset parameter value; and the intermediate offset parameter value is corrected according to the parameter error rate to obtain a process offset. Parameter value; correct the first intermediate weight vector according to the process offset parameter value to obtain a first process weight vector; obtain a new intermediate weight vector according to the process offset parameter value and the first process weight vector Tuning the model, re-determine the parameter error rate of the intermediate tuning model; repeat the above process until the parameter error rate is less than the preset threshold, and use the intermediate tuning model as the parameter tuning model.
模型构建模块,设置为根据所述辅助训练数据集以及所述本地训练数据集,确定均方根误差以及决定系数;根据所述均方根误差以及所述决定系数,确定参数整定初始模型的隐藏层节点数量;根据所述隐藏层节点数量、预设的输入层节点数量以及预设的输出层节点数量,构建所述参数整定初始模型;根据所述辅助训练数据集以及所述本地训练数据集,对所述参数整定初始模型进行训练,得到所述中间整定模型。A model building module 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; and determine a hidden parameter setting initial model based on the root mean square error and the coefficient of determination. The number of layer nodes; according to the number of hidden layer nodes, the preset number of input layer nodes and the preset number of output layer nodes, the initial parameter setting model is constructed; according to the auxiliary training data set and the local training data set , train the initial parameter tuning model to obtain the intermediate tuning model.
第四方面,本申请实施例还提供一种工业过程控制装置,包括: In a fourth aspect, embodiments of the present application also provide an industrial process control device, including:
确定模块,设置为根据所述参数整定模型,确定待控制的新建装置的整定参数值,所述参数整定模型基于第一方面中任一项所述的参数整定模型的构建方法得到。The determination module is configured to determine the tuning parameter values of the newly-built device to be controlled according to the parameter tuning model, which is obtained based on the method for constructing the parameter tuning model described in any one of the first aspects.
控制模块,设置为根据所述整定参数值控制所述新建装置执行目标过程。A control module configured to control the newly-built device to execute a target process according to the setting parameter value.
第五方面,本申请实施例提供一种处理设备,所述处理设备包括:处理器、存储介质和总线,所述存储介质存储有所述处理器可执行的机器可读指令,当所述处理设备运行时,所述处理器与所述存储介质之间通过总线通信,所述处理器执行所述机器可读指令,以执行如第一方面中任一项所述的参数整定模型的构建方法或第二方面所述的工业过程控制方法的步骤。In a fifth aspect, embodiments of the present application provide a processing device. The processing device includes: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the processing When the device is running, the processor and the storage medium communicate through a bus, and the processor executes the machine-readable instructions to perform the method for constructing a parameter tuning model as described in any one of the first aspects. Or the steps of the industrial process control method described in the second aspect.
第六方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时,实现如第一方面中任一项所述的参数整定模型的构建方法或第二方面所述的工业过程控制方法的步骤。In a sixth aspect, embodiments of the present application provide a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, any one of the aspects described in the first aspect is implemented. The method for constructing a parameter tuning model or the steps of the industrial process control method described in the second aspect.
本申请实施例的有益效果包括:The beneficial effects of the embodiments of this application include:
采用本申请提供的参数整定模型的构建方法及工业过程控制方法,能够借助辅助装置的运行数据,构建辅助训练数据集,将其与利用新建装置的运行数据构建的本地训练数据集一起,训练并建立参数整定模型。本申请充分利用了已经参数整定完成、正式运行的辅助装置的运行数据训练参数整定模型,弥补了新建装置可用的有效数据少的缺点,提升了新建装置上建立的参数整定模型的PID参数整定的准确率和效率。Using the parameter tuning model construction method and industrial process control method provided by this application, an auxiliary training data set can be constructed with the help of the operating data of the auxiliary device, and together with the local training data set constructed using the operating data of the newly built device, training and Establish parameter tuning model. This application makes full use of the operating data of the auxiliary device that has completed parameter setting and is officially in operation to train the parameter setting model, which makes up for the shortcomings of less effective data available for the new device and improves the PID parameter tuning of the parameter setting model established on the new device. Accuracy and efficiency.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application and therefore do not It should be regarded as a limitation of the scope. For those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without exerting creative efforts.
图1为本申请实施例提供的参数整定模型的构建方法的步骤流程示意图;Figure 1 is a schematic flowchart of the steps of a method for constructing a parameter tuning model provided by an embodiment of the present application;
图2为本申请实施例提供的参数整定模型的构建方法的数据集构建步骤流程示意图;Figure 2 is a schematic flow chart of the data set construction steps of the parameter tuning model construction method provided by the embodiment of the present application;
图3为本申请实施例提供的参数整定模型的构建方法的数据集筛选的步骤流程示意图;Figure 3 is a schematic flow chart of the steps of data set screening in the method for building a parameter tuning model provided by the embodiment of the present application;
图4为本申请实施例提供的参数整定模型的构建方法的模型训练优化的步骤流程示意图; Figure 4 is a schematic flow chart of the steps of model training and optimization of the method for building a parameter tuning model provided by the embodiment of the present application;
图5为本申请实施例提供的参数整定模型的构建方法的实施流程示意图;Figure 5 is a schematic flowchart of the implementation of the method for constructing a parameter tuning model provided by the embodiment of the present application;
图6为本申请实施例提供的参数整定模型的构建方法的参数优化的步骤流程示意图;Figure 6 is a schematic flowchart of the steps of parameter optimization of the method for building a parameter tuning model provided by the embodiment of the present application;
图7为本申请实施例提供的参数整定模型的构建方法的参数优化的又一步骤流程示意图;Figure 7 is a schematic flowchart of another step of parameter optimization in the method for building a parameter tuning model provided by the embodiment of the present application;
图8为本申请实施例提供的参数整定模型的构建方法的模型构建的步骤流程示意图;Figure 8 is a schematic flowchart of the steps of model construction in the parameter tuning model construction method provided by the embodiment of the present application;
图9为本申请实施例提供的工业过程控制方法的步骤流程示意图;Figure 9 is a schematic flow chart of the steps of the industrial process control method provided by the embodiment of the present application;
图10为本申请实施例提供的参数整定模型的构建装置的结构示意图;Figure 10 is a schematic structural diagram of a device for constructing a parameter tuning model provided by an embodiment of the present application;
图11为本申请实施例提供的工业过程控制装置的结构示意图;Figure 11 is a schematic structural diagram of an industrial process control device provided by an embodiment of the present application;
图12为本申请实施例提供的处理设备的结构示意图。Figure 12 is a schematic structural diagram of the processing equipment provided by the embodiment of the present application.
图标:100-参数整定模型的构建装置;1001-数据集构建模块;1002-模型训练模块;1003-模型构建模块;110-工业过程控制装置;1101-确定模块;1102-控制模块;2001-处理器;2002-存储器。Icon: 100-parameter tuning model construction device; 1001-data set construction module; 1002-model training module; 1003-model construction module; 110-industrial process control device; 1101-determination module; 1102-control module; 2001-processing 2002-memory.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments These are part of the embodiments of this application, but not all of them. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations.
因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。Accordingly, the following detailed description of the embodiments of the application provided in the appended drawings is not intended to limit the scope of the claimed application, but rather to represent selected embodiments of the application. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that similar reference numerals and letters represent similar items in the following figures, therefore, once an item is defined in one figure, it does not need further definition and explanation in subsequent figures.
此外,若出现术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, if the terms "first", "second", etc. appear, they are only used to differentiate the description and shall not be understood as indicating or implying relative importance.
需要说明的是,在不冲突的情况下,本申请的实施例中的特征可以相互结合。 It should be noted that, as long as there is no conflict, the features in the embodiments of the present application can be combined with each other.
PID参数整定是通过对比例、积分和微分三项参数进行整定,使系统的动态和静态性能达到要求且某项性能指标达到最优的过程。目前,比较常见的是基于内模整定的参数整定方法,该方法通过采集在目标装置上的历史输入输出关系参数,构建回路过程模型,依据内模整定策略依据回路过程模型得到整定参数结果,就得到了能够对目标装置进行实时PID参数。但是,这种方式得到的模型需要以大量的有效历史数据作为驱动,对于新建装置来说,由于可用的数据信息较少,不足以训练出一个可靠的模型,导致PID参数整定的实际效果较差。PID parameter tuning is a process of adjusting the three parameters of proportion, integral and differential so that the dynamic and static performance of the system meets the requirements and a certain performance index reaches the optimum. At present, the more common parameter tuning method is based on internal model tuning. This method builds a loop process model by collecting historical input and output relationship parameters on the target device, and obtains the tuning parameter results based on the loop process model based on the internal model tuning strategy. Gained the ability to perform real-time PID parameters on the target device. However, the model obtained in this way needs to be driven by a large amount of valid historical data. For new installations, the available data information is less, which is not enough to train a reliable model, resulting in poor actual results in PID parameter tuning. .
基于此,申请人经研究,提出了一种参数整定模型的构建方法及工业过程控制方法,能够利用参数整定完成的辅助装置,构建辅助训练数据集,辅助本地训练数据集训练并建立参数整定模型,避免了历史数据不足导致模型训练不充分,准确率较低的问题,提升了新建装置的PID参数整定的准确率和效率。Based on this, the applicant has proposed a method for constructing a parameter tuning model and an industrial process control method after research, which can use the auxiliary device with completed parameter tuning to build an auxiliary training data set, assist in training the local training data set, and establish a parameter tuning model. , avoids the problems of insufficient model training and low accuracy caused by insufficient historical data, and improves the accuracy and efficiency of PID parameter tuning of newly built devices.
迁移学习是模拟的是人脑的思维过程,当人在解决一个问题以后,对新的相关联的问题会有更好更快的解决方法,也就是说,迁移学习区别于以往的机器学习方式,能够利用与目标领域在相同领域的任务学习出的“知识”,比如数据特征、模型参数等,来辅助新领域中的学习过程,得到能够应用于目标领域的模型。Transfer learning simulates the thinking process of the human brain. After solving a problem, people will have better and faster solutions to new related problems. In other words, transfer learning is different from previous machine learning methods. , can use the "knowledge" learned from tasks in the same field as the target field, such as data characteristics, model parameters, etc., to assist the learning process in the new field and obtain a model that can be applied to the target field.
在工业控制系统中,包含了多种不同类型的控制回路,尽管对于不同的工业控制系统来说,其规模、数据分布可能是不同的,但是拆分至控制回路层面后,可能不同工业控制系统的控制回路之间具有某些相似的特征信息。基于此,本申请实施例中,提供了一种参数整定模型的构建方法及工业过程控制方法,通过迁移学习的方式,将已参数整定完成的辅助装置的运行数据应用于新建装置的参数整定模型的训练上,解决了现有的网络模型在训练过程中,严重依赖于新建装置的有效数据的问题,提升了新建装置上参数整定模型的构建速度和准确性。Industrial control systems contain many different types of control loops. Although the scale and data distribution may be different for different industrial control systems, when split to the control loop level, different industrial control systems may The control loops have some similar characteristic information. Based on this, embodiments of the present application provide a method for constructing a parameter tuning model and an industrial process control method. Through transfer learning, the operating data of the auxiliary device whose parameter tuning has been completed is applied to the parameter tuning model of the newly built device. In terms of training, it solves the problem that the existing network model relies heavily on the valid data of the newly built device during the training process, and improves the construction speed and accuracy of the parameter tuning model on the newly built device.
如下结合多个具体的应用示例,对本申请实施例提供的一种参数整定模型的构建方法及工业过程控制方法进行解释说明。The construction method of a parameter tuning model and the industrial process control method provided by the embodiments of the present application will be explained below with reference to multiple specific application examples.
图1所示为本申请实施例提供的一种参数整定模型的构建方法的步骤流程示意图,本方法的执行主体可以是具有计算、处理能力的计算机设备。如图1所示,该方法包括如下步骤:Figure 1 shows a schematic flowchart of the steps of a method for constructing a parameter tuning model provided by an embodiment of the present application. The execution subject of this method may be a computer device with computing and processing capabilities. As shown in Figure 1, the method includes the following steps:
S101,根据新建装置的回路信息以及辅助装置的运行数据,构建辅助训练数据集以及验证数据集。S101: Construct an auxiliary training data set and a verification data set based on the circuit information of the newly created device and the operating data of the auxiliary device.
其中,新建装置为待训练的参数整定模型所应用的装置,辅助装置为参数整定完成且正式运行的装置。Among them, the newly-built device is the device used by the parameter tuning model to be trained, and the auxiliary device is the device whose parameter tuning has been completed and is officially running.
新建装置可以是建立完成,需要构建用于PID参数整定的参数整定模型的装置, 示例性地,新建装置可以是乙烯系统中包括的多个装置,例如乙烯装置、裂解汽油加氢装置、丁二烯抽提装置、芳烃抽提装置、MTBE/丁烯-1装置、乙二醇装置和POX装置中的其中任意一个或多个。在一些实施例中,各个装置中还可以包括多个控制回路。The new device can be a device that has been established and needs to build a parameter tuning model for PID parameter tuning. Exemplarily, the newly-built unit may be multiple units included in the ethylene system, such as an ethylene unit, a pyrolysis gasoline hydrogenation unit, a butadiene extraction unit, an aromatics extraction unit, an MTBE/butene-1 unit, and an ethylene glycol unit. Any one or more of the device and the POX device. In some embodiments, multiple control loops may also be included in each device.
辅助装置可以是包含多个控制回路、参数整定完成、运行状态正常的装置,这些控制回路中的一个或多个与新建装置在控制回路的某些特征上能够相匹配。可以理解的是,辅助装置可以不止一个,多个辅助装置中包含的控制回路共同组成了与新建装置中的多个控制回路一一对应匹配的控制回路集合。The auxiliary device may be a device that contains multiple control loops, has completed parameter setting, and is in normal operating status. One or more of these control loops can match certain characteristics of the control loop with the newly built device. It can be understood that there may be more than one auxiliary device, and the control loops contained in the multiple auxiliary devices together form a control loop set that matches the multiple control loops in the newly-built device in a one-to-one correspondence.
根据上述控制回路集合中生成的运行数据,构建数据互不重合的辅助训练数据集其中,当i=1,2,...,n,验证数据集其中,当i=1,2,...,k。为辅助训练数据集Ta的输入参数、输出参数, 分别为验证数据集S的输入参数、输出参数,Xa为辅助装置的运行数据,n为辅助训练数据集Ta所包含的控制回路数据,k为验证数据集S所包含的控制回路的数量。Based on the operating data generated in the above control loop collection, construct an auxiliary training data set with non-overlapping data. in, When i=1, 2,...,n, validation data set in, When i=1, 2,...,k. are the input parameters and output parameters of the auxiliary training data set Ta , are the input parameters and output parameters of the verification data set S respectively, X a is the operating data of the auxiliary device, n is the control loop data included in the auxiliary training data set T a , and k is the number of control loops included in the verification data set S. .
S102,根据新建装置的初始运行数据,构建本地训练数据集。S102: Construct a local training data set based on the initial operating data of the newly created device.
在一些实施例中,可以通过在新建装置上通过人工进行PID参数整定的方式,将一些初始输入参数输入至新建装置中,得到了对应的初始输出参数,根据初始输入参数、初始输出参数以及二者的对应关系,构建了本地训练数据集其中,当i=1,2,...,m。其中,为本地训练数据集Tb的输入参数,为本地训练数据集Tb的输出参数,Xb为新建装置的初始运行数据。In some embodiments, some initial input parameters can be input into the new device by manually adjusting the PID parameters on the new device, and the corresponding initial output parameters can be obtained. According to the initial input parameters, the initial output parameters and the two corresponding relationship between them, constructing a local training data set in, When i=1, 2,...,m. in, is the input parameter of the local training data set T b , is the output parameter of the local training data set T b , and X b is the initial operating data of the newly built device.
另外,由于人工进行PID参数整定获得的初始运行数据较少,辅助训练数据集Ta、验证数据集S中包含的数据量可以是远大于本地训练数据集Tb的数据量。In addition, since the initial operating data obtained by manual PID parameter tuning is small, the amount of data contained in the auxiliary training data set Ta and the verification data set S can be much larger than the data amount of the local training data set T b .
在一些实施例中,辅助训练数据集Ta、验证数据集S、本地训练数据集Tb的输入参数、输出参数所包含的参数可以相同。其中,输入参数可以包括:控制回路的所属装置、回路类型、回路的闭环稳态时间Ts、峰值时间Tp、最大超调量Ymax、控制器的正反作用、控制回路对应的物理特性等。输出参数可以包括:回路PID参数,即比例系数(比例度)、积分时间(分钟)、微分时间(分钟)。In some embodiments, the input parameters and output parameters of the auxiliary training data set Ta , the verification data set S, and the local training data set Tb may be the same. Among them, the input parameters may include: the device to which the control loop belongs, the loop type, the loop's closed-loop steady-state time T s , the peak time T p , the maximum overshoot Y max , the positive and negative effects of the controller, and the corresponding physical characteristics of the control loop. wait. The output parameters may include: loop PID parameters, namely proportional coefficient (proportionality), integration time (minutes), and differential time (minutes).
上述输入参数中,Ts是指控制回路由激励到稳定的过渡期的响应时间,Tp为控制回路在过渡期的最大值的时刻,Ymax是在过渡期超出设定值的最大值,控制器的正反作用是指控制器对控制回路的正反馈或负反馈作用。Among the above input parameters, T s refers to the response time of the control loop in the transition period from excitation to stability, T p is the moment when the control loop reaches the maximum value in the transition period, Y max is the maximum value exceeding the set value in the transition period, The positive and negative effects of the controller refer to the positive or negative feedback effect of the controller on the control loop.
在一些实施例中,辅助装置的运行数据Xa、新建装置的初始运行数据Xb均可以表格的方式存储,各输入参数、输出参数可以根据表格中对应的数据项提取获得。 In some embodiments, the operation data X a of the auxiliary device and the initial operation data X b of the new device can be stored in a table, and each input parameter and output parameter can be extracted and obtained according to the corresponding data items in the table.
S103,根据辅助训练数据集、验证数据集以及本地训练数据集,训练得到参数整定模型。S103. According to the auxiliary training data set, the verification data set and the local training data set, train the parameter tuning model.
参数整定模型的类型可以是BP神经网络模型,包含输入层、隐含层以及输出层,各层之间包含多个网络参数,用于描述输入参数到输出参数之间的映射关系。The type of parameter tuning model can be a BP neural network model, which includes an input layer, a hidden layer, and an output layer. Each layer contains multiple network parameters, which are used to describe the mapping relationship between input parameters and output parameters.
为了使映射关系更准确,可以利用辅助训练数据集Ta、本地训练数据集Tb、验证数据集S,共同对基于新建模型构建的BP神经网络模型进行训练和验证,对描述映射关系的网络模型进行修正,就得到了参数整定模型。In order to make the mapping relationship more accurate, the auxiliary training data set T a , the local training data set T b , and the verification data set S can be used to jointly train and verify the BP neural network model built based on the newly created model, and the network describing the mapping relationship can be After the model is modified, the parameter tuning model is obtained.
在本实施例中,使用辅助训练数据集、验证数据集,结合本地数据集,共同训练得到了参数整定模型。将基于辅助装置的运行数据加入至参数整定模型的训练数据中,弥补了新建装置可用的有效数据少的缺点,提升了新建装置上建立的参数整定模型的PID参数整定的准确率和效率。In this embodiment, the auxiliary training data set and the verification data set are used, combined with the local data set, to jointly train and obtain the parameter tuning model. Adding the operating data based on auxiliary devices to the training data of the parameter tuning model makes up for the shortcomings of less effective data available for new devices, and improves the accuracy and efficiency of PID parameter tuning of the parameter tuning model established on new devices.
在一些实施例中,如图2所示,上述步骤S101中,根据新建装置的回路信息以及辅助装置的运行数据,构建辅助训练数据集以及验证数据集,可由下述步骤S201至S202实现。In some embodiments, as shown in Figure 2, in the above step S101, constructing an auxiliary training data set and a verification data set based on the circuit information of the newly created device and the operating data of the auxiliary device can be implemented by the following steps S201 to S202.
S201,根据新建装置的回路类型以及控制回路对应的物理特性,从辅助装置的运行数据中筛选出目标数据集。S201: Filter out the target data set from the operating data of the auxiliary device according to the loop type of the newly-built device and the corresponding physical characteristics of the control loop.
由上述实施例,新建装置的回路类型、控制回路对应的物理特性均包含在各数据集的输入参数内。其中,回路类型可以包括:流量类型、液位类型、压力类型、温度类型等,控制回路对应的物理特性可以包括:液相、非管路气相、管路气相等,当然,不以此为限。According to the above embodiment, the loop type of the newly-built device and the corresponding physical characteristics of the control loop are included in the input parameters of each data set. Among them, the loop type can include: flow type, liquid level type, pressure type, temperature type, etc., and the corresponding physical characteristics of the control loop can include: liquid phase, non-pipeline gas phase, pipeline gas phase, etc., of course, it is not limited to this. .
回路类型、控制回路对应的物理特性可以构成一组标签,用于标识新建装置与辅助装置的工艺类型。可以理解的是,当新建装置与辅助装置的某一控制回路的工艺类型匹配时,二者之间的数据相似度最高,可以将辅助装置中该控制回路的运行数据作为目标数据集,对该新建装置的匹配的控制回路进行训练。The loop type and the corresponding physical characteristics of the control loop can form a set of labels to identify the process type of the new device and auxiliary device. It can be understood that when the process type of a certain control loop of the newly built device and the auxiliary device matches, the data similarity between the two is the highest. The operating data of the control loop in the auxiliary device can be used as the target data set. Matching control loops for newly created devices are trained.
S202,对目标数据集进行拆分处理,得到辅助训练数据集以及验证数据集。S202: Split the target data set to obtain an auxiliary training data set and a verification data set.
接下来,可以将基于辅助装置的运行数据,确定的目标数据集,拆分为数据互不交集的辅助训练数据集以及验证数据集。其中,辅助训练数据集的数据量可以大于验证数据集的数据量。Next, the determined target data set based on the operating data of the auxiliary device can be split into an auxiliary training data set and a verification data set with disjoint data. Among them, the data volume of the auxiliary training data set can be larger than the data volume of the verification data set.
辅助训练数据集可以用于训练得到参数整定模型的过程,验证数据集可以用于训练完成后,验证训练后的模型的正确率。 The auxiliary training data set can be used to train the parameter tuning model, and the verification data set can be used to verify the accuracy of the trained model after the training is completed.
在本实施例中,筛选出目标数据集后,将目标数据集拆分为辅助训练数据集、验证数据集,使用同源数据确认了模型的训练程度,提升了参数整定模型输出的PID参数的准确性。In this embodiment, after filtering out the target data set, the target data set is split into an auxiliary training data set and a verification data set. The homologous data is used to confirm the training degree of the model and improve the accuracy of the PID parameters output by the parameter tuning model. accuracy.
在一些实施例中,如图3所示,上述步骤S201中,根据新建装置的回路类型以及控制回路对应的物理特性,从辅助装置的运行数据中筛选出目标数据集,可由下述步骤S301至S302实现。In some embodiments, as shown in Figure 3, in the above-mentioned step S201, the target data set is filtered out from the operating data of the auxiliary device according to the circuit type of the new device and the corresponding physical characteristics of the control loop. The target data set can be obtained from the following steps S301 to S302 is implemented.
S301,根据所述新建装置的回路类型,从所述辅助装置的运行数据中筛选与所述回路类型匹配的多个可选运行数据。S301. According to the circuit type of the newly-built device, screen multiple optional operating data matching the circuit type from the operating data of the auxiliary device.
可以首先在新建装置中,确定多个待整定的控制回路,示例性地,可以在新建装置中选择20个控制回路,其中,每种控制回路类型对应5个控制回路,对于包含了7个新建装置的系统,则可以确定140个控制回路。You can first determine multiple control loops to be tuned in the new device. For example, you can select 20 control loops in the new device. Each control loop type corresponds to 5 control loops. For a new device including 7 device system, 140 control loops can be identified.
在一些实施例中,从辅助装置的控制回路中,筛选出与上述在新建装置中选择出的控制回路的回路类型相匹配的控制回路,将这些筛选出的辅助装置的控制回路的运行数据,作为可选运行数据。In some embodiments, from the control loops of the auxiliary devices, control loops that match the loop type of the control loop selected in the new device are selected, and the operation data of the control loops of these filtered auxiliary devices are as optional operating data.
S302,根据所述新建装置的控制回路对应的物理特性,从所述多个可选运行数据中筛选出所述目标数据集。S302: Filter out the target data set from the plurality of optional operating data according to the physical characteristics corresponding to the control loop of the newly created device.
在上述步骤的基础上,可以对可选运行数据做进一步的筛选。在辅助装置的多个控制回路与某一新建装置的待整定的控制回路的回路类型匹配的基础上,筛选出与该待整定的控制回路对应的物理特性相匹配的一个或多个辅助装置的控制回路,并将最终筛选出的辅助装置的控制回路的运行数据作为目标数据集。Based on the above steps, you can further filter the optional running data. On the basis that the multiple control loops of the auxiliary device match the loop type of the control loop to be tuned in a new device, one or more auxiliary devices that match the physical characteristics corresponding to the control loop to be tuned are selected. control loop, and use the finally filtered operating data of the control loop of the auxiliary device as the target data set.
在本实施例中,根据新建装置与辅助装置的控制回路的回路类型、控制回路对应的物理特性的匹配程度,筛选出了与待整定的控制回路相似的运行数据作为目标数据集,从数据来源上保证了训练的参数整定模型的准确性。In this embodiment, based on the matching degree of the loop type of the control loop of the new device and the auxiliary device and the corresponding physical characteristics of the control loop, operating data similar to the control loop to be tuned is selected as the target data set. From the data source This ensures the accuracy of the trained parameter tuning model.
在一些实施例中,如图4所示,上述步骤S103中,根据辅助训练数据集、验证数据集以及本地训练数据集,训练得到参数整定模型,可由下述步骤S401至S405实现。In some embodiments, as shown in Figure 4, in the above step S103, the parameter tuning model is trained according to the auxiliary training data set, the verification data set and the local training data set, which can be implemented by the following steps S401 to S405.
S401,基于辅助训练数据集以及本地训练数据集,训练得到中间整定模型。S401. Based on the auxiliary training data set and the local training data set, train the intermediate tuning model.
在一些实施例中,中间整定模型可以是一个初步训练完成的BP神经网络,将辅助训练数据集、本地训练数据集合并后,将输入参数的多组值依次输入至初始构建的BP神经网络。由于在训练中间整定模型的过程中,引入了辅助训练数据集提升训练的数据量,本地训练数据集确保训练出的中间整定模型能够与新建装置的贴合度更高。 In some embodiments, the intermediate tuning model may be a BP neural network that has been initially trained. After merging the auxiliary training data set and the local training data set, multiple sets of input parameter values are sequentially input into the initially constructed BP neural network. Since in the process of training the intermediate tuning model, an auxiliary training data set is introduced to increase the amount of training data, the local training data set ensures that the trained intermediate tuning model can better fit the newly built device.
接下来,根据初始构建的BP神经网络的输出值,与输入参数对应的输出参数的值相比较,确定了比较的差值。Next, based on the output value of the initially constructed BP neural network, compared with the value of the output parameter corresponding to the input parameter, the comparison difference is determined.
最后,根据比较的差值进行前向反馈,修正初始构建的BP神经网络的初始第一权重向量W、初始第二权重向量P以及初始偏置参数值β,得到了中间整定模型。Finally, forward feedback is performed based on the difference in comparison, and the initial first weight vector W, the initial second weight vector P, and the initial bias parameter value β of the initially constructed BP neural network are modified to obtain an intermediate tuning model.
S402,基于验证数据集对中间整定模型进行验证。S402: Verify the intermediate tuning model based on the verification data set.
如前述实施例中所述,验证数据集是与辅助训练数据集同源的数据集,将该数据集的输入参数对应值输入至中间整定模型后,由中间整定模型输出对应的中间整定模型输出参数对应值。As mentioned in the previous embodiment, the verification data set is a data set that has the same origin as the auxiliary training data set. After inputting the corresponding values of the input parameters of the data set into the intermediate tuning model, the intermediate tuning model outputs the corresponding intermediate tuning model output. Parameter corresponding value.
然后,计算中间整定模型输出参数对应值、与验证数据集中与输入参数值对应的输出参数值之间的差值,若差值小于预设差值阈值,则得到了此组输入参数验证通过的结果。否则,则验证不通过。依次将验证数据集中的多组输入参数输入至中间整定模型,就得到了多组验证结果。Then, calculate the difference between the corresponding value of the output parameter of the intermediate tuning model and the output parameter value corresponding to the input parameter value in the verification data set. If the difference is less than the preset difference threshold, then the verification of this set of input parameters is obtained. result. Otherwise, the verification fails. Multiple sets of input parameters in the verification data set are input into the intermediate tuning model in sequence, and multiple sets of verification results are obtained.
最后,根据多组验证结果中验证通过的组数与验证数据集中数据的总组数的比值,确定了验证数据集的通过比例。在一些实施例中,若通过比例大于预设通过阈值,则可以认为中间整定模型已经训练完成。否则,若通过比例小于或等于预设通过阈值,则可以重复上述步骤,继续训练得到新的中间整定模型,直至通过比例大于预设通过阈值。Finally, based on the ratio of the number of groups that passed the verification in the multi-group verification results to the total number of groups of data in the verification data set, the passing proportion of the verification data set was determined. In some embodiments, if the pass ratio is greater than the preset pass threshold, the intermediate tuning model may be considered to have been trained. Otherwise, if the pass ratio is less than or equal to the preset pass threshold, the above steps can be repeated to continue training to obtain a new intermediate tuning model until the pass ratio is greater than the preset pass threshold.
S403,在验证通过后,按照预设输入参数值运行中间整定模型,得到中间整定模型的输出参数值。S403: After passing the verification, run the intermediate tuning model according to the preset input parameter value to obtain the output parameter value of the intermediate tuning model.
若中间整定模型在上述步骤中验证通过,则可以将中间整定模型在新建装置上运行,进一步提升中间整定模型在新建装置上输出参数的准确性。If the intermediate tuning model is verified in the above steps, the intermediate tuning model can be run on the new device to further improve the accuracy of the output parameters of the intermediate tuning model on the new device.
在一些实施例中,可以将一组预设输入参数值输入至中间整定模型,由中间整定模型输出对应的输出参数值。其中,预设输入参数值可以是预先由人为设定的多组测试输入值,预设输入参数值、输出参数值对应的参数可以与上述辅助训练数据集中的输入参数值、输出参数值对应的参数相同。In some embodiments, a set of preset input parameter values can be input to the intermediate tuning model, and the intermediate tuning model outputs corresponding output parameter values. Among them, the preset input parameter values can be multiple sets of test input values set by humans in advance, and the parameters corresponding to the preset input parameter values and output parameter values can correspond to the input parameter values and output parameter values in the above-mentioned auxiliary training data set. The parameters are the same.
S404,获取新建装置按照预设输入参数值运行后的回路PID参数值。S404: Obtain the loop PID parameter value of the newly created device after operating according to the preset input parameter value.
还可以将上述预设输入参数值输入至新建装置不包含在本地训练数据集所对应的控制回路中,在新建装置实际运行后,得到新建装置输出的回路PID参数,其中,回路PID参数包括:比例系数(比例度)、积分时间(分钟)、微分时间(分钟)。You can also input the above preset input parameter values into the control loop corresponding to the new device that is not included in the local training data set. After the new device is actually run, the loop PID parameters output by the new device are obtained, where the loop PID parameters include: Proportional coefficient (proportionality), integration time (minutes), derivative time (minutes).
S405,根据回路PID参数值以及输出参数值,对中间整定模型进行参数优化,得 到参数整定模型。S405, perform parameter optimization on the intermediate tuning model according to the loop PID parameter value and output parameter value, and obtain to parameter tuning model.
将对应于同一预设输入参数的回路PID参数值、输出参数值进行比较,得到了比较差值。根据比较差值,对中间整定模型的参数进行优化,就得到了参数整定模型。Compare the loop PID parameter values and output parameter values corresponding to the same preset input parameter, and obtain the comparison difference. Based on the comparison difference, the parameters of the intermediate tuning model are optimized to obtain the parameter tuning model.
需要注意的是,预设输入参数值可以输入至新建装置中未参与本地训练数据集构建的控制回路中,再根据这些控制回路输出的回路PID参数值与输出参数值的比较结果对中间整定模型进行优化,以提升参数整定模型对于待整定的控制系统中各个新建装置的覆盖度。It should be noted that the preset input parameter values can be input into the control loops in the newly built device that have not participated in the construction of the local training data set, and then the intermediate tuning model is adjusted based on the comparison results between the loop PID parameter values output by these control loops and the output parameter values. Optimize to improve the coverage of the parameter tuning model for each new device in the control system to be tuned.
综上,结合上述实施例,训练、优化得到参数整定模型的过程如图5所示。In summary, combined with the above embodiments, the process of training and optimizing the parameter tuning model is shown in Figure 5.
首先,对辅助装置的运行数据进行提取,得到了目标数据集,再进一步对目标数据集进行划分,生成了辅助训练数据集、验证数据集。First, the operating data of the auxiliary device was extracted to obtain the target data set, and then the target data set was further divided to generate the auxiliary training data set and verification data set.
还可以在新建装置中选择一部分控制回路,进行PID参数整定,获得初始运行数据,对这些初始运行数据进行提取,得到了本地训练数据集。You can also select a part of the control loop in the newly built device, perform PID parameter tuning, obtain initial operating data, and extract these initial operating data to obtain a local training data set.
然后,将辅助训练数据集、本地训练数据集合并作为训练数据集对构建的BP神经网络模型进行训练,得到了中间整定模型。Then, the auxiliary training data set and the local training data set were combined as the training data set to train the constructed BP neural network model, and the intermediate tuning model was obtained.
在此基础上,可以通过上述步骤构建的验证数据集,对中间整定模型进行验证,直至通过比例大于预设通过阈值,否则,重复上述训练过程。On this basis, the intermediate tuning model can be verified through the verification data set constructed in the above steps until the passing ratio is greater than the preset passing threshold. Otherwise, the above training process is repeated.
最后,将中间整定模型在待整定系统的各个新建模型中,未参与构建本地训练数据集的控制回路上进一步进行参数优化,得到了参数整定模型。Finally, the parameters of the intermediate tuning model are further optimized in each new model of the system to be tuned, which does not participate in the construction of the local training data set, and the parameter tuning model is obtained.
在本实施例中,对中间整定模型进行验证和进一步的参数优化,得到了参数整定模型,进一步提升了参数整定模型输出参数值的准确率。In this embodiment, the intermediate tuning model is verified and further parameter optimized to obtain a parameter tuning model, which further improves the accuracy of the output parameter value of the parameter tuning model.
在一些实施例中,如图6所示,上述步骤S405中,根据回路PID参数值以及输出参数值,对中间整定模型进行参数优化,得到参数整定模型,可由下述步骤S501至S502实现。In some embodiments, as shown in Figure 6, in the above step S405, the parameters of the intermediate tuning model are optimized according to the loop PID parameter value and the output parameter value to obtain the parameter tuning model, which can be implemented by the following steps S501 to S502.
S501,根据回路PID参数值以及输出参数值,确定参数错误率。S501: Determine the parameter error rate based on the loop PID parameter value and the output parameter value.
参数错误率εt可由下式计算:
The parameter error rate ε t can be calculated by the following formula:
其中,n为辅助训练数据集中的控制回路数量,m为本地训练数据集中的控制回路数量。为εt在第i个控制回路中的中间整定模型的第一权重向量。ht(xi)为中间整 定值模型输出的输出参数值,c(xi)为新建装置输出的回路PID参数值。Among them, 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. is the first weight vector of the intermediate tuning model of ε t in the i-th control loop. h t ( xi ) is the intermediate integer The output parameter value output by the fixed value model, c( xi ) is the loop PID parameter value output by the newly created device.
这样,根据同一预设输入参数值对应的输出参数值、回路PID参数值的差值,计算得到了参数错误率。In this way, 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 preset input parameter value.
S502,根据参数错误率,对中间整定模型的模型参数进行迭代修正,得到参数整定模型。S502: Iteratively correct the model parameters of the intermediate tuning model according to the parameter error rate to obtain the parameter tuning model.
在此基础上,可以采用最大均值差异方法,判断中间整定模型的预设输入参数值、输出参数值构成的模型数据分布情况,与预设输入参数值、回路PID参数值构成的数据分布情况之间的差异,该差异可以由上述参数错误率εt表示。On this basis, the maximum mean difference method can be used to determine the model data distribution composed of the preset input parameter values and output parameter values of the intermediate tuning model, and the data distribution composed of the preset input parameter values and loop PID parameter values. The difference can be represented by the above parameter error rate ε t .
然后,进一步根据参数错误率εt,对描述中间整定参数由输入值到输出值之间的映射进行修正,使其与新建模型的映射关系更为贴近,得到了参数整定模型。Then, based on the parameter error rate ε t , the mapping between the input value and the output value describing the intermediate tuning parameters is modified to make it closer to the mapping relationship with the new model, and the parameter tuning model is obtained.
在本实施例中,根据在新建模型上运行的回路PID参数值以及输出参数值,确定了参数错误率,进一步据此对参数整定进行修正,提升了参数整定模型的映射准确率。In this embodiment, the parameter error rate is determined based on the loop PID parameter value and output parameter value running on the newly created model, and the parameter setting is further corrected accordingly, thereby improving the mapping accuracy of the parameter setting model.
在一些实施例中,模型参数包括:第一权重向量以及偏置参数值。In some embodiments, the model parameters include: a first weight vector and a bias parameter value.
其中,第一权重向量可以是表示构成中间整定模型的多层BP神经网络各层的权重,偏置参数值为对BP神经网络中神经元的激活状态的控制参数值。在一些实施例中,还可以在BP神经网络中设置第二权重向量P,与第一权重向量共同确定中间整定模型的输入值到输出值的映射关系。The first weight vector may represent the weight of each layer of the multi-layer BP neural network that constitutes the intermediate tuning model, and the bias parameter value is the control parameter value for the activation state of the neurons in the BP neural network. In some embodiments, a second weight vector P can also be set in the BP neural network, which together with the first weight vector determines the mapping relationship from the input value to the output value of the intermediate tuning model.
如图7所示,上述步骤S502中,根据参数错误率,对中间整定模型的模型参数进行迭代修正,得到参数整定模型,可由下述步骤S601至S604实现。As shown in Figure 7, in the above step S502, the model parameters of the intermediate tuning model are iteratively corrected according to the parameter error rate to obtain the parameter tuning model, which can be implemented by the following steps S601 to S604.
S601,根据参数错误率,对中间偏置参数值进行修正,得到过程偏置参数值。S601: Correct the intermediate offset parameter value according to the parameter error rate to obtain the process offset parameter value.
根据上述步骤中确定的参数错误率εt,修正上述中间偏置参数值,可由下式表示:According to the parameter error rate ε t determined in the above steps, the above-mentioned intermediate offset parameter value is corrected, which can be expressed by the following formula:
βt=εt/(1-εt)b,当i=n+1,...,n+mβ tt /(1-ε t ) b , when i=n+1,...,n+m
然后,将修正后的中间偏置参数值,即过程偏置参数值,替换原来的中间偏置参数值。Then, the original intermediate offset parameter value is replaced with the corrected intermediate offset parameter value, that is, the process offset parameter value.
S602,根据过程偏置参数值对第一中间权重向量进行修正,得到第一过程权重向量。S602: Modify the first intermediate weight vector according to the process bias parameter value to obtain the first process weight vector.
在此基础上,继续根据下式,将上述步骤中确定的过程偏置参数继续对第一中间权重向量进行修正:
On this basis, continue to modify the first intermediate weight vector with the process offset parameters determined in the above steps according to the following formula:
将第一中间权重向量替换为修正后的第一过程权重向量,就完成了一次第一中间权重向量的修正过程。Replacing the first intermediate weight vector with the corrected first process weight vector completes a correction process of the first intermediate weight vector.
S603,根据过程偏置参数值以及第一过程权重向量,得到新的中间整定模型,重新确定中间整定模型的参数错误率。S603: Obtain a new intermediate tuning model based on the process bias parameter value and the first process weight vector, and re-determine the parameter error rate of the intermediate tuning model.
这样,由过程偏置参数值、第一过程权重向量、第二权重向量构成了新的中间整定模型,将预设输入参数分别输入至新建装置、新的中间整定模型中,根据上式以及新建装置的回路PID参数值、新的中间整定模型的输出参数值,重新计算确定了新的参数错误率。In this way, a new intermediate tuning model is formed by the process bias parameter value, the first process weight vector, and the second weight vector. The preset input parameters are input into the new device and the new intermediate tuning model respectively. According to the above formula and the new The loop PID parameter values of the device and the output parameter values of the new intermediate tuning model were recalculated to determine the new parameter error rate.
S604,判断参数错误率是否小于预设阈值。S604: Determine whether the parameter error rate is less than a preset threshold.
在一些实施例中,可以设置预设阈值,当重新确定的参数错误率大于或等于该预设阈值时,可以继续重复执行上述步骤,继续对中间整定模型进行修正。In some embodiments, a preset threshold can be set, and when the redetermined parameter error rate is greater than or equal to the preset threshold, the above steps can be repeatedly performed to continue correcting the intermediate tuning model.
S605,重复上述过程,直至参数错误率小于预设阈值,将中间整定模型作为参数整定模型。S605, repeat the above process until the parameter error rate is less than the preset threshold, and use the intermediate tuning model as the parameter tuning model.
当重新确定的参数错误率小于该预设阈值时,则可以认为中间整定模型已经修正完成,将修正完成的中间整定模型作为最终的参数整定模型。When the redetermined parameter error rate is less than the preset threshold, the intermediate tuning model can be considered to have been corrected, and the corrected intermediate tuning model will be used as the final parameter tuning model.
在本实施例中,根据参数错误率对中间整定模型进行迭代修正,提升了中间整定模型与新建模型的拟合程度,提升了参数整定模型在新建模型上输出参数值的正确率。In this embodiment, the intermediate tuning model is iteratively corrected based on the parameter error rate, which improves the degree of fit between the intermediate tuning model and the new model, and improves the accuracy of the parameter tuning model's output of parameter values on the new model.
在一些实施例中,如图8所示,上述步骤S401中,基于辅助训练数据集以及本地训练数据集,训练得到中间整定模型之前,还可以包括如下步骤:In some embodiments, as shown in Figure 8, in the above step S401, based on the auxiliary training data set and the local training data set, before training to obtain the intermediate tuning model, the following steps may also be included:
S701,根据辅助训练数据集以及本地训练数据集,确定均方根误差以及决定系数。S701: Determine the root mean square error and coefficient of determination based on the auxiliary training data set and the local training data set.
在一些实施例中,均方根误差RMSE可由下式确定:
In some embodiments, the root mean square error RMSE may be determined by:
决定系数R2可由下式确定:
The coefficient of determination R 2 can be determined by the following formula:
其中,m表示由辅助训练数据集、本地训练数据集共同组成的训练集的样本量、yi表示训练集的第i个样本在新建装置、辅助装置上的样本真实值,y′i表示第i个样本在构建模型上的输出的预测值,为样本真实值的平均值。Among them, m represents the sample size of the training set composed of the auxiliary training data set and the local training data set, yi represents the true value of the i-th sample of the training set on the new device and the auxiliary device, and y′ i represents the i-th sample The predicted value of the output of the sample on the built model, is the average of the true values of the sample.
S702,根据均方根误差以及决定系数,确定参数整定初始模型的隐藏层节点数量。S702: Determine the number of hidden layer nodes of the initial model for parameter tuning based on the root mean square error and the coefficient of determination.
然后,根据上述确定的均方根误差、决定系数的值,选择参数整定初始模型的隐藏层节点的数量。示例性地,可以将均方根误差、决定系数划分为多个范围,与隐藏层节点数量一一对应,当均方根误差、决定系数落入该范围时,就可以确定对应的隐藏层节点数量。Then, based on the values of the root mean square error and coefficient of determination determined above, select the number of hidden layer nodes of the initial model for parameter tuning. For example, the root mean square error and the coefficient of determination can be divided into multiple ranges, which correspond to the number of hidden layer nodes. When the root mean square error and the coefficient of determination fall into this range, the corresponding hidden layer node can be determined. quantity.
在一些实施例中,在本申请实施例中,隐藏层节点数量可以为5。In some embodiments, in the embodiment of the present application, the number of hidden layer nodes may be 5.
S703,根据隐藏层节点数量、预设的输入层节点数量以及预设的输出层节点数量,构建参数整定初始模型。S703: Build an initial parameter tuning model based on the number of hidden layer nodes, the preset number of input layer nodes, and the preset number of output layer nodes.
预设的输入层节点数可以根据输入参数的数量确定,示例性地,可以为7。预设的输出层节点数量可以根据输出参数的数量确定,示例性地,可以为3。The preset number of input layer nodes can be determined according to the number of input parameters, which can be, for example, 7. The preset number of output layer nodes can be determined according to the number of output parameters, which can be, for example, 3.
这样,根据隐藏层节点数量、预设的输入层节点数量以及预设的输出层节点数量,就能够初步搭建好BP神经网络的网络结构。In this way, based on the number of hidden layer nodes, the preset number of input layer nodes, and the preset number of output layer nodes, the network structure of the BP neural network can be initially built.
在一些实施例中,在此基础上,在构建参数整定初始模型时,还可以对参数整定初始模型的初始第一权重向量W、初始第二权重向量P以及初始偏置值β进行初始化。在一些实施例中,初始权重向量为其中,
In some embodiments, on this basis, when constructing the parameter tuning initial model, the initial first weight vector W, the initial second weight vector P, and the initial bias value β of the parameter tuning initial model may also be initialized. In some embodiments, the initial weight vector is in,
n为辅助训练数据集中的控制回路数量,m为本地训练数据集中的控制回路数量。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.
初始偏置参数值β可以设置为N为n+m的值。The initial bias parameter value β can be set as N is the value of n+m.
初始第二权重向量可以设置为与初始权重向量相对应。The initial second weight vector can be set to Corresponds to the initial weight vector.
在构建完成BP神经网络的网络结构以及网络参数后,就得到了参数整定初始模型。After constructing the network structure and network parameters of the BP neural network, the initial parameter tuning model is obtained.
S704,根据辅助训练数据集以及本地训练数据集,对参数整定初始模型进行训练,得到中间整定模型。 S704: Train the initial parameter tuning model based on the auxiliary training data set and the local training data set to obtain an intermediate tuning model.
最后,根据上述实施例中,构建的辅助训练数据集、本地训练数据集,训练构建的参数整定初始模型,对参数整定初始模型的参数进行修正,就得到了中间整定模型。Finally, according to the above embodiment, the constructed auxiliary training data set and the local training data set are trained to construct the initial parameter tuning model, and the parameters of the initial parameter tuning model are modified to obtain the intermediate tuning model.
在本实施例中,根据均方根误差、决定系数,确定了隐藏层节点数量,进一步构建了参数整定初始模型,使得构建的模型与训练集的数据量更为贴合,拟合能力更强,训练速度更快。In this embodiment, the number of hidden layer nodes is determined based on the root mean square error and coefficient of determination, and an initial parameter tuning model is further constructed, so that the constructed model is more consistent with the data volume of the training set and has stronger fitting ability. , the training speed is faster.
如图9所示,本申请实施例还提供一种工业过程控制方法,该方法可以应用于能够对新建装置进行PID参数整定的处理设备,参阅图9,该方法可包括如下步骤:As shown in Figure 9, the embodiment of the present application also provides an industrial process control method, which can be applied to processing equipment that can perform PID parameter tuning for newly built devices. Referring to Figure 9, the method can include the following steps:
S801,根据参数整定模型,确定待控制的新建装置的整定参数值,参数整定模型基于前述实施例中任一项中的参数整定模型的构建方法得到。S801. Determine the setting parameter values of the newly-built device to be controlled according to the parameter setting model. The parameter setting model is obtained based on the construction method of the parameter setting model in any of the foregoing embodiments.
在一些实施例中,可以根据上述实施例,确定参数整定模型,该模型可以应用于新建装置上,根据新建装置中的输入参数值,输出对应的PID参数值,也就是待控制的新建装置的整定参数值。In some embodiments, a parameter tuning model can be determined according to the above embodiments, and the model can be applied to a new device. According to the input parameter values in the new device, the corresponding PID parameter value is output, that is, the new device to be controlled. Tuning parameter values.
可以理解的是,由于在训练参数整定模型的过程中,引入了待整定的工业控制系统中的多个新建装置,因此,参数整定模型对于该待整定的工业控制系统中的多个新建装置都能够输出准确的整定参数值。It can be understood that since in the process of training the parameter tuning model, multiple new devices in the industrial control system to be tuned are introduced, the parameter tuning model is suitable for the multiple new devices in the industrial control system to be tuned. Able to output accurate tuning parameter values.
S802,根据整定参数值控制新建装置执行目标过程。S802: Control the newly created device to execute the target process according to the setting parameter value.
目标过程可以是新建装置根据整定参数值运行的过程,可以理解的是,整定参数值为参数整定模型输出的,需对新建装置调整的值。因此,可以将整定参数值输入至新建装置中,控制其运行,执行目标过程。The target process may be a process in which the new device is run according to the setting parameter value. It can be understood that the setting parameter value is the value output by the parameter setting model and needs to be adjusted for the new device. Therefore, tuning parameter values can be input into the newly built device to control its operation and execute the target process.
在本实施例中,根据参数整定模型输出的整定参数值,控制新建装置运行,能够在新建装置上,以较高的效率达到预设的控制效果,提升参数整定的自动化程度。In this embodiment, the operation of the newly-built device is controlled based on the tuning parameter value output by the parameter-tuning model. The preset control effect can be achieved with higher efficiency on the newly-built device, and the degree of automation of parameter tuning is improved.
参阅图10,本申请实施例还提供一种参数整定模型的构建装置100,包括:Referring to Figure 10, an embodiment of the present application also provides a device 100 for constructing a parameter tuning model, which includes:
数据集构建模块1001,设置为根据新建装置的回路信息以及辅助装置的运行数据,构建辅助训练数据集以及验证数据集,其中,新建装置为待训练的参数整定模型所应用的装置,辅助装置为参数整定完成且正式运行的装置;The data set construction module 1001 is configured to construct an auxiliary training data set and a verification data set based on the circuit information of the newly created device and the operating data of the auxiliary device, where the new device is the device to which the parameter tuning model to be trained is applied, and the auxiliary device is The device whose parameter setting has been completed and is officially in operation;
数据集构建模块1001还设置为,根据新建装置的初始运行数据,构建本地训练数据集。The data set construction module 1001 is also configured to construct a local training data set based on the initial operating data of the newly created device.
模型训练模块1002,设置为根据辅助训练数据集、验证数据集以及本地训练数据集,训练得到参数整定模型。 The model training module 1002 is configured to train and obtain a parameter tuning model based on the auxiliary training data set, the verification data set and the local training data set.
数据集构建模块1001具体还设置为,根据新建装置的回路类型以及控制回路对应的物理特性,从辅助装置的运行数据中筛选出目标数据集;对目标数据集进行拆分处理,得到辅助训练数据集以及验证数据集。The data set construction module 1001 is also specifically configured to filter out the target data set from the operating data of the auxiliary device according to the circuit type of the new device and the corresponding physical characteristics of the control loop; split the target data set to obtain auxiliary training data set and validation data set.
数据集构建模块1001具体还设置为,根据新建装置的回路类型,从辅助装置的运行数据中筛选与回路类型匹配的多个可选运行数据;根据新建装置的控制回路对应的物理特性,从多个可选运行数据中筛选出目标数据集。The data set construction module 1001 is also specifically configured to filter multiple optional operating data matching the loop type from the operating data of the auxiliary device according to the loop type of the newly-built device; and select multiple optional operating data matching the loop type according to the physical characteristics corresponding to the control loop of the newly-built device. Filter out the target data set from optional run data.
模型训练模块1002具体还设置为,基于辅助训练数据集以及本地训练数据集,训练得到中间整定模型;基于验证数据集对中间整定模型进行验证,并在验证通过后,按照预设输入参数值运行中间整定模型,得到中间整定模型的输出参数值;获取新建装置按照预设输入参数值运行后的回路PID参数值;根据回路PID参数值以及输出参数值,对中间整定模型进行参数优化,得到参数整定模型。The model training module 1002 is specifically configured to train to obtain an intermediate tuning model based on the auxiliary training data set and the local training data set; verify the intermediate tuning model based on the verification data set; and after passing the verification, run according to the preset input parameter values Intermediate tuning model, obtain the output parameter value of the intermediate tuning model; obtain the loop PID parameter value after the new device operates according to the preset input parameter value; perform parameter optimization on the intermediate tuning model according to the loop PID parameter value and output parameter value, and obtain the parameters Tuning the model.
模型训练模块1002具体还设置为,根据回路PID参数值以及输出参数值,确定参数错误率;根据参数错误率,对中间整定模型的模型参数进行迭代修正,得到参数整定模型。The model training module 1002 is specifically configured to determine the parameter error rate based on the loop PID parameter value and the output parameter value; and iteratively correct the model parameters of the intermediate tuning model based on the parameter error rate to obtain the parameter tuning model.
模型训练模块1002具体还设置为,模型参数包括:第一中间权重向量以及中间偏置参数值;根据参数错误率,对中间偏置参数值进行修正,得到过程偏置参数值;根据过程偏置参数值对第一中间权重向量进行修正,得到第一过程权重向量;根据过程偏置参数值以及第一过程权重向量,得到新的中间整定模型,重新确定中间整定模型的参数错误率;重复上述过程,直至参数错误率小于预设阈值,将中间整定模型作为参数整定模型。The model training module 1002 is specifically configured as follows: the model parameters include: a first intermediate weight vector and an intermediate offset parameter value; according to the parameter error rate, the intermediate offset parameter value is corrected to obtain a process offset parameter value; according to the process offset Modify the first intermediate weight vector with the parameter value to obtain the first process weight vector; obtain a new intermediate tuning model based on the process offset parameter value and the first process weight vector, and re-determine the parameter error rate of the intermediate tuning model; repeat the above process until the parameter error rate is less than the preset threshold, and the intermediate tuning model is used as the parameter tuning model.
模型构建模块1003,设置为根据辅助训练数据集以及本地训练数据集,确定均方根误差以及决定系数;根据均方根误差以及决定系数,确定参数整定初始模型的隐藏层节点数量;根据隐藏层节点数量、预设的输入层节点数量以及预设的输出层节点数量,构建参数整定初始模型;根据辅助训练数据集以及本地训练数据集,对参数整定初始模型进行训练,得到中间整定模型。The model building module 1003 is configured to determine the root mean square error and the coefficient of determination based on the auxiliary training data set and the local training data set; determine the number of hidden layer nodes of the initial model for parameter tuning based on the root mean square error and the coefficient of determination; The number of nodes, the preset number of input layer nodes and the preset number of output layer nodes are used to construct an initial parameter tuning model; based on the auxiliary training data set and the local training data set, the initial parameter tuning model is trained to obtain an intermediate tuning model.
参阅图11,本申请实施例还提供一种工业过程控制装置110,包括:Referring to Figure 11, an embodiment of the present application also provides an industrial process control device 110, including:
确定模块1101,设置为根据参数整定模型,确定待控制的新建装置的整定参数值,参数整定模型基于前述实施例中任一项的参数整定模型的构建方法得到。The determination module 1101 is configured to determine the tuning parameter values of the new device to be controlled based on the parameter tuning model. The parameter tuning model is obtained based on the construction method of the parameter tuning model in any of the previous embodiments.
控制模块1102,设置为根据整定参数值控制新建装置执行目标过程。The control module 1102 is configured to control the newly created device to execute the target process according to the setting parameter value.
请参阅图12,本实施例还提供一种处理设备,该处理设备包括:处理器2001、存储器2002和总线,存储器2002存储有处理器2001可执行的机器可读指令,当处理设 备运行时,执行上述机器可读指令,处理器2001与存储器2002之间通过总线通信,处理器2001设置为执行上述实施例中的参数整定模型的构建方法或工业过程控制方法的步骤。Please refer to Figure 12. This embodiment also provides a processing device. The processing device includes: a processor 2001, a memory 2002 and a bus. The memory 2002 stores machine-readable instructions executable by the processor 2001. When the processing device When ready to run, the above machine-readable instructions are executed, and the processor 2001 communicates with the memory 2002 through a bus. The processor 2001 is configured to execute the steps of the parameter setting model construction method or the industrial process control method in the above embodiments.
存储器2002、处理器2001以及总线各元件相互之间直接或间接地电性连接,以实现数据的传输或交互。例如,这些元件相互之间可通过一条或多条通讯总线或信号线实现电性连接。参数整定模型的构建系统或工业过程控制系统的数据处理装置包括至少一个可以软件或固件(firmware)的形式存储于存储器2002中或固化在处理设备的操作系统(operating system,OS)中的软件功能模块。处理器2001设置为执行存储器2002中存储的可执行模块,例如参数整定模型的构建系统或工业过程控制系统的数据处理装置所包括的软件功能模块及计算机程序等。The memory 2002, the processor 2001, and the components of the bus are directly or indirectly electrically connected to each other to realize data transmission or interaction. For example, these components may be electrically connected to each other through one or more communication buses or signal lines. The parameter setting model building system or the data processing device of the industrial process control system includes at least one software function that can be stored in the memory 2002 in the form of software or firmware or solidified in the operating system (OS) of the processing device. module. The processor 2001 is configured to execute executable modules stored in the memory 2002, such as software function modules and computer programs included in a parameter setting model building system or a data processing device of an industrial process control system.
其中,存储器2002可以是,但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)等。Among them, the memory 2002 can be, but is not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), and can Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), etc.
在一些实施例中,本申请还提供一种存储介质,存储介质上存储有计算机程序,计算机程序被处理器运行时执行上述方法实施例的步骤。具体实现方式和技术效果类似,这里不再赘述。In some embodiments, the present application also provides a storage medium. A computer program is stored on the storage medium. When the computer program is run by a processor, the steps of the above method embodiments are executed. The specific implementation methods and technical effects are similar and will not be described again here.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考方法实施例中的对应过程,本申请中不再赘述。在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the method embodiments, and will not be described again in this application. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some communication interfaces, indirect coupling or communication connection of devices or modules, and may be in electrical, mechanical or other forms.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分 步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。In addition, each functional unit in various embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in various embodiments of this application. step. The aforementioned storage media include: U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application. All are covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
工业实用性Industrial applicability
本申请实施例提供的技术方案可适用于工业自动化控制技术领域,采用本申请提供的参数整定模型的构建方法及工业过程控制方法,能够借助辅助装置的运行数据,构建辅助训练数据集,将其与利用新建装置的运行数据构建的本地训练数据集一起,训练并建立参数整定模型。本申请充分利用了已经参数整定完成、正式运行的辅助装置的运行数据训练参数整定模型,弥补了新建装置可用的有效数据少的缺点,提升了新建装置上建立的参数整定模型的PID参数整定的准确率和效率。 The technical solution provided by the embodiments of the present application can be applied to the field of industrial automation control technology. By using the parameter setting model construction method and the industrial process control method provided by the present application, an auxiliary training data set can be constructed with the help of the operating data of the auxiliary device, and the auxiliary training data set can be constructed. Together with a local training data set constructed from operational data from a newly built installation, a parameter tuning model is trained and built. This application makes full use of the operating data of the auxiliary device that has completed parameter setting and is officially in operation to train the parameter setting model, which makes up for the shortcomings of less effective data available for the new device and improves the PID parameter tuning of the parameter setting model established on the new device. Accuracy and efficiency.

Claims (10)

  1. 一种参数整定模型的构建方法,所述方法包括:A method for constructing a parameter tuning model, the method includes:
    根据新建装置的回路信息以及辅助装置的运行数据,构建辅助训练数据集以及验证数据集,其中,所述新建装置为待训练的参数整定模型所应用的装置,所述辅助装置为参数整定完成且正式运行的装置;An auxiliary training data set and a verification data set are constructed based on the circuit information of the newly-built device and the operating data of the auxiliary device, where the new device is a device to which the parameter tuning model to be trained is applied, and the auxiliary device is a device whose parameter tuning has been completed and Officially operating device;
    根据所述新建装置的初始运行数据,构建本地训练数据集;Construct a local training data set based on the initial operating data of the newly built device;
    根据所述辅助训练数据集、所述验证数据集以及所述本地训练数据集,训练得到参数整定模型。According to the auxiliary training data set, the verification data set and the local training data set, a parameter tuning model is trained.
  2. 根据权利要求1所述的参数整定模型的构建方法,其中,所述根据新建装置的回路信息以及辅助装置的运行数据,构建辅助训练数据集以及验证数据集,包括:The method of constructing a parameter tuning model according to claim 1, wherein said constructing an auxiliary training data set and a verification data set based on the circuit information of the newly-built device and the operating data of the auxiliary device includes:
    根据所述新建装置的回路类型以及控制回路对应的物理特性,从所述辅助装置的运行数据中筛选出目标数据集;Filter out the target data set from the operating data of the auxiliary device according to the circuit type of the new device and the corresponding physical characteristics of the control loop;
    对所述目标数据集进行拆分处理,得到所述辅助训练数据集以及所述验证数据集。The target data set is split to obtain the auxiliary training data set and the verification data set.
  3. 根据权利要求2所述的参数整定模型的构建方法,其中,所述根据所述新建装置的回路类型以及控制回路对应的物理特性,从所述辅助装置的运行数据中筛选出目标数据集,包括:The method of constructing a parameter tuning model according to claim 2, wherein the target data set is selected from the operating data of the auxiliary device according to the loop type of the newly-built device and the corresponding physical characteristics of the control loop, including :
    根据所述新建装置的回路类型,从所述辅助装置的运行数据中筛选与所述回路类型匹配的多个可选运行数据;According to the circuit type of the newly-built device, screen a plurality of optional operating data matching the circuit type from the operating data of the auxiliary device;
    根据所述新建装置的控制回路对应的物理特性,从所述多个可选运行数据中筛选出所述目标数据集。The target data set is selected from the plurality of optional operating data according to the physical characteristics corresponding to the control loop of the newly constructed device.
  4. 根据权利要求1-3任一项所述的参数整定模型的构建方法,其中,所述根据所述辅助训练数据集、所述验证数据集以及所述本地训练数据集,训练得到参数整定模型,包括:The method for constructing a parameter tuning model according to any one of claims 1 to 3, wherein the parameter tuning model is obtained by training according to the auxiliary training data set, the verification data set and the local training data set, include:
    基于所述辅助训练数据集以及所述本地训练数据集,训练得到中间整定模型;Based on the auxiliary training data set and the local training data set, train an intermediate tuning model;
    基于所述验证数据集对所述中间整定模型进行验证,并在验证通过后,按照预设输入参数值运行所述中间整定模型,得到所述中间整定模型的输出参数值;Verify the intermediate tuning model based on the verification data set, and after passing the verification, run the intermediate tuning model according to the preset input parameter values to obtain the output parameter values of the intermediate tuning model;
    获取所述新建装置按照所述预设输入参数值运行后的回路PID参数值;Obtain the loop PID parameter value after the new device is operated according to the preset input parameter value;
    根据所述回路PID参数值以及所述输出参数值,对所述中间整定模型进行参数优化,得到所述参数整定模型。 According to the loop PID parameter value and the output parameter value, parameter optimization is performed on the intermediate tuning model to obtain the parameter tuning model.
  5. 根据权利要求4所述的参数整定模型的构建方法,其中,所述根据所述回路PID参数值以及所述输出参数值,对所述中间整定模型进行参数优化,得到所述参数整定模型,包括:The method of constructing a parameter tuning model according to claim 4, wherein the parameter optimization of the intermediate tuning model is performed according to the loop PID parameter value and the output parameter value to obtain the parameter tuning model, including :
    根据所述回路PID参数值以及所述输出参数值,确定参数错误率;Determine the parameter error rate according to the loop PID parameter value and the output parameter value;
    根据所述参数错误率,对所述中间整定模型的模型参数进行迭代修正,得到所述参数整定模型。According to the parameter error rate, the model parameters of the intermediate tuning model are iteratively corrected to obtain the parameter tuning model.
  6. 根据权利要求5所述的参数整定模型的构建方法,其中,所述模型参数包括:第一中间权重向量以及中间偏置参数值;The method of constructing a parameter tuning model according to claim 5, wherein the model parameters include: a first intermediate weight vector and an intermediate bias parameter value;
    所述根据所述参数错误率,对所述中间整定模型的模型参数进行迭代修正,得到所述参数整定模型,包括:Iteratively correcting the model parameters of the intermediate tuning model according to the parameter error rate to obtain the parameter tuning model includes:
    根据所述参数错误率,对所述中间偏置参数值进行修正,得到过程偏置参数值;According to the parameter error rate, the intermediate offset parameter value is corrected to obtain a process offset parameter value;
    根据所述过程偏置参数值对所述第一中间权重向量进行修正,得到第一过程权重向量;Modify the first intermediate weight vector according to the process offset parameter value to obtain a first process weight vector;
    根据所述过程偏置参数值以及所述第一过程权重向量,得到新的中间整定模型,重新确定所述中间整定模型的参数错误率;Obtain a new intermediate tuning model according to the process bias parameter value and the first process weight vector, and re-determine the parameter error rate of the intermediate tuning model;
    重复上述过程,直至所述参数错误率小于预设阈值,将所述中间整定模型作为所述参数整定模型。Repeat the above process until the parameter error rate is less than the preset threshold, and use the intermediate tuning model as the parameter tuning model.
  7. 根据权利要求4所述的参数整定模型的构建方法,其中,所述基于所述辅助训练数据集以及所述本地训练数据集,训练得到中间整定模型之前,所述方法还包括:The method for constructing a parameter tuning model according to claim 4, wherein before training to obtain an intermediate tuning model based on the auxiliary training data set and the local training data set, the method further includes:
    根据所述辅助训练数据集以及所述本地训练数据集,确定均方根误差以及决定系数;Determine the root mean square error and coefficient of determination according to the auxiliary training data set and the local training data set;
    根据所述均方根误差以及所述决定系数,确定参数整定初始模型的隐藏层节点数量;According to the root mean square error and the coefficient of determination, determine the number of hidden layer nodes of the initial model for parameter tuning;
    根据所述隐藏层节点数量、预设的输入层节点数量以及预设的输出层节点数量,构建所述参数整定初始模型;Construct the initial parameter tuning model according to the number of hidden layer nodes, the preset number of input layer nodes, and the preset number of output layer nodes;
    根据所述辅助训练数据集以及所述本地训练数据集,对所述参数整定初始模型进行训练,得到所述中间整定模型。The initial parameter tuning model is trained according to the auxiliary training data set and the local training data set to obtain the intermediate tuning model.
  8. 一种工业过程控制方法,所述方法包括: An industrial process control method, the method includes:
    根据所述参数整定模型,确定待控制的新建装置的整定参数值,所述参数整定模型基于权利要求1-7任一项所述的参数整定模型的构建方法得到;Determine the tuning parameter values of the newly-built device to be controlled according to the parameter tuning model, which is obtained based on the construction method of the parameter tuning model described in any one of claims 1-7;
    根据所述整定参数值控制所述新建装置执行目标过程。The newly created device is controlled to execute a target process according to the setting parameter value.
  9. 一种处理设备,所述处理设备包括:处理器、存储介质和总线,所述存储介质存储有所述处理器可执行的机器可读指令,当所述处理设备运行时,所述处理器与所述存储介质之间通过总线通信,所述处理器执行所述机器可读指令,以执行如权利要求1-7任一项所述的参数整定模型的构建方法或权利要求8所述的工业过程控制方法的步骤。A processing device, the processing device includes: a processor, a storage medium and a bus, the storage medium stores machine readable instructions executable by the processor, when the processing device is running, the processor and The storage media communicate through a bus, and the processor executes the machine-readable instructions to execute the method for constructing a parameter tuning model as claimed in any one of claims 1-7 or the industrial method as claimed in claim 8. Steps of process control methods.
  10. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时,实现如权利要求1-7任一项所述的参数整定模型的构建方法或权利要求8所述的工业过程控制方法的步骤。 A computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the method for constructing a parameter setting model as described in any one of claims 1-7 is implemented. The steps of the industrial process control method according to claim 8.
PCT/CN2023/075229 2022-07-22 2023-02-09 Method for constructing parameter setting model and industrial process control method WO2024016637A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210859981.X 2022-07-22
CN202210859981.XA CN115061365B (en) 2022-07-22 2022-07-22 Method for constructing parameter setting model and industrial process control method

Publications (1)

Publication Number Publication Date
WO2024016637A1 true WO2024016637A1 (en) 2024-01-25

Family

ID=83206748

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/075229 WO2024016637A1 (en) 2022-07-22 2023-02-09 Method for constructing parameter setting model and industrial process control method

Country Status (2)

Country Link
CN (1) CN115061365B (en)
WO (1) WO2024016637A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115061365B (en) * 2022-07-22 2022-11-11 浙江中控技术股份有限公司 Method for constructing parameter setting model and industrial process control method
CN115598967B (en) * 2022-11-01 2023-12-08 南栖仙策(南京)高新技术有限公司 Parameter setting model training, parameter determining method, device, equipment and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109459927A (en) * 2019-01-16 2019-03-12 中国科学院光电技术研究所 PID controller parameter setting method neural network based
CN109754068A (en) * 2018-12-04 2019-05-14 中科恒运股份有限公司 Transfer learning method and terminal device based on deep learning pre-training model
CN110308658A (en) * 2019-07-24 2019-10-08 广东工业大学 A kind of pid parameter setting method, device, system and readable storage medium storing program for executing
CN111291917A (en) * 2018-12-10 2020-06-16 财团法人工业技术研究院 Dynamic prediction model establishing method, electronic device and user interface
CN111489034A (en) * 2020-04-10 2020-08-04 华中科技大学 Construction method and application of oil and gas reservoir permeability prediction model
CN111650829A (en) * 2020-05-18 2020-09-11 瑞纳智能设备股份有限公司 Embedded PID module parameter adjusting method, system and device based on artificial intelligence
US20210264263A1 (en) * 2020-02-24 2021-08-26 Capital One Services, Llc Control of hyperparameter tuning based on machine learning
CN115061365A (en) * 2022-07-22 2022-09-16 浙江中控技术股份有限公司 Method for constructing parameter setting model and industrial process control method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10474789B2 (en) * 2016-06-24 2019-11-12 The Boeing Company Prediction methods and systems for structural repair during heavy maintenance of aircraft
EP3587046A1 (en) * 2018-06-28 2020-01-01 Siemens Aktiengesellschaft Method and device for the computer-aided determination of control parameters for favourable handling of a technical system
CN109031943B (en) * 2018-09-17 2021-07-27 余正环 Method and device for setting parameters of analog quantity control loop controller
CN109802609A (en) * 2019-01-01 2019-05-24 武汉船用电力推进装置研究所(中国船舶重工集团公司第七一二研究所) A kind of Speed Sensorless Induction Motor speed-regulating system PI parameter tuning method
US11651211B2 (en) * 2019-12-17 2023-05-16 Adobe Inc. Training of neural network based natural language processing models using dense knowledge distillation
CN114001562B (en) * 2021-10-12 2023-09-01 宁波大学 Cement pre-demodulation furnace temperature-regulating PID parameter self-setting method
CN114185264B (en) * 2021-12-06 2023-09-19 广东工业大学 PID controller parameter setting method based on physical information neural network
CN114488801B (en) * 2022-01-18 2023-12-22 无锡安起科技有限公司 Bridge crane model prediction control method based on data driving

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109754068A (en) * 2018-12-04 2019-05-14 中科恒运股份有限公司 Transfer learning method and terminal device based on deep learning pre-training model
CN111291917A (en) * 2018-12-10 2020-06-16 财团法人工业技术研究院 Dynamic prediction model establishing method, electronic device and user interface
CN109459927A (en) * 2019-01-16 2019-03-12 中国科学院光电技术研究所 PID controller parameter setting method neural network based
CN110308658A (en) * 2019-07-24 2019-10-08 广东工业大学 A kind of pid parameter setting method, device, system and readable storage medium storing program for executing
US20210264263A1 (en) * 2020-02-24 2021-08-26 Capital One Services, Llc Control of hyperparameter tuning based on machine learning
CN111489034A (en) * 2020-04-10 2020-08-04 华中科技大学 Construction method and application of oil and gas reservoir permeability prediction model
CN111650829A (en) * 2020-05-18 2020-09-11 瑞纳智能设备股份有限公司 Embedded PID module parameter adjusting method, system and device based on artificial intelligence
CN115061365A (en) * 2022-07-22 2022-09-16 浙江中控技术股份有限公司 Method for constructing parameter setting model and industrial process control method

Also Published As

Publication number Publication date
CN115061365A (en) 2022-09-16
CN115061365B (en) 2022-11-11

Similar Documents

Publication Publication Date Title
WO2024016637A1 (en) Method for constructing parameter setting model and industrial process control method
US20210089511A1 (en) Management of snapshot in blockchain
CN110533183B (en) Task placement method for heterogeneous network perception in pipeline distributed deep learning
CN110481536B (en) Control method and device applied to hybrid electric vehicle
CN104834215A (en) Variation particle swarm optimized BP neural network proportion integration differentiation (PID) control algorithm
CN104978450B (en) A kind of helicopter vibration active control position preferred method
AU2022215288B2 (en) Distributed set point configuration in heating, ventilation, and air-conditioning systems
CN112818025A (en) Test question generation method, device and system, computer storage medium and program product
US20200242464A1 (en) Incremental ai firmware updates using in-device training and peer-to-peer updates
CN107391045A (en) A kind of directory space quota method and system
US10885593B2 (en) Hybrid classification system
CN114202076A (en) Deep learning model training method, natural language processing method and device
WO2023173550A1 (en) Cross-domain data recommendation method and apparatus, and computer device and medium
Yao et al. Decentralized fixed‐time control for state‐constrained stochastic systems via nonlinear state‐dependent function approach
CN114384931B (en) Multi-target optimal control method and equipment for unmanned aerial vehicle based on strategy gradient
Qiao et al. Boosting federated learning convergence with prototype regularization
TW202219750A (en) Machine learning model training method, electronic device, controller, and storage medium
CN102063308A (en) Method for controlling processing flow of seismic prospecting data
Xie et al. Uncertain regression model based on Huber loss function
Yang et al. Incremental data-driven optimization of complex systems in nonstationary environments
US11210018B2 (en) Holistic linking of data across data sources
CN112464395B (en) Method and device for calibrating physical model parameters of engine
Yan et al. State Observer for Delay-coupled Genetic Regulatory Networks with Two Central Modes
Tan et al. Selection bias correction and effect size estimation under dependence
CN115619269A (en) Green building economy judgment method based on neutral two-type fuzzy set

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23841715

Country of ref document: EP

Kind code of ref document: A1