Thermodynamics-based digital twinning modeling method and system for self-correcting chemical device

By splitting the process and thermodynamic models in the chemical digital twin model, and combining DCS and LIMS data for step-by-step correction, the problem that the chemical digital twin model cannot be updated in time when working conditions change is solved, and the accuracy and reliability of the model are improved. interpretive.

CN118536263APending Publication Date: 2024-08-23BEIJING ZHITONG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410530287.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing chemical digital twin models cannot be updated in time when faced with changes in working conditions, causing simulation results to deviate from actual working conditions. The self-correction algorithm relies on data, has poor interpretability, and cannot be effectively corrected when the data quality is insufficient.

Method used

A self-correcting chemical plant digital twin modeling method based on thermodynamics is adopted. By splitting the digital twin model into a process model and a thermodynamic model, and splitting the thermodynamic model into pure component parameters and binary interaction parameters, combined with DCS and LIMS data, The model parameters are updated step by step, and the partial least squares method is used to correct the physical properties and interaction parameters to ensure the accuracy of the model.

Benefits of technology

The accuracy of the digital twin model is improved, making it closer to the real production process, enhancing the interpretability and robustness, and avoiding the problem of model distortion due to failure to update in time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536263A
    Figure CN118536263A
Patent Text Reader

Abstract

The invention discloses a thermodynamics-based digital twinning modeling method and system for a self-correcting chemical device, and relates to the field of chemical production, and the method comprises the steps: building a plurality of sets of original digital twinning models with the same process parameters by applying different thermodynamics methods; screening key components from the device; correcting process operation parameters of the original digital twinborn model; correcting the physical property parameters of the key components corresponding to the streams of which the component purity is greater than the threshold value; reading analysis data in the LIMS, and correcting binary interaction parameters based on the analysis data and different thermodynamic methods; and calculating an error between each digital twinborn model and real measurement data, and taking the digital twinborn model with the minimum error as an optimal digital twinborn model. According to the method, the digital twin model is split into the process model and the thermodynamic method, then the thermodynamic model is split into the pure component parameters and the binary interaction parameters, the model parameters are updated in a step-by-step splitting and fitting mode, the method does not depend on a large amount of production data, and the interpretability and robustness are higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of chemical production, and in particular to a thermodynamically based self-correcting chemical plant digital twin modeling method and system. Background Art

[0002] In the actual chemical production process, the production plan and the operating performance parameters of each device are often changing due to the constant changes in the nature and price of raw materials, product specifications and requirements, production environment conditions and market demand, as well as the occurrence of abnormal failures in the process. And as the chemical process becomes increasingly large-scale and complex, and its various requirements are diversified, the requirements for the real-time and accuracy of the simulation of the chemical process are becoming higher and higher.

[0003] In traditional chemical digital twin models, most of the model's internal parameters cannot be changed as the operating conditions change, which will lead to a large deviation between the simulation results and the actual operating conditions, and thus the accuracy requirements of the simulation cannot be guaranteed. In the actual chemical process, in order to ensure the accuracy of the dynamic simulation, the parameters within the model that can characterize such changes in operating conditions need to be continuously corrected. Most of the existing self-correcting chemical digital twin models focus on a single controller or a single device, and there is no model building method based on the entire process of the chemical plant; and the correction algorithm depends on data, which has poor interpretability on the one hand, and on the other hand, when the data quality is poor, the correction work cannot be completed. Summary of the invention

[0004] The present invention provides a thermodynamically based self-correcting chemical plant digital twin modeling method and system to overcome at least one technical problem existing in the prior art.

[0005] On the one hand, an embodiment of the present invention provides a thermodynamically based self-correcting chemical plant digital twin modeling method, comprising:

[0006] Apply different thermodynamic methods to establish multiple sets of original digital twin models with the same process parameters;

[0007] screening key components from the device;

[0008] Correcting process operation parameters of the original digital twin model to obtain a first digital twin model;

[0009] Determining whether there is a flow stream in the device having a component purity of the key component greater than a threshold value;

[0010] When there is a stream with a component purity of a key component greater than the threshold:

[0011] Read the temperature and pressure of the corresponding components, and based on different thermodynamic methods, correct the physical property parameters of the key components corresponding to the streams with component purity greater than the threshold in the first digital twin model to obtain the second digital twin model;

[0012] Determine whether there is LIMS test data. If so, read the analysis data in LIMS, and based on the analysis data and different thermodynamic methods, correct the binary interaction parameters of the second digital twin model to obtain the third digital twin model; calculate the error between each third digital twin model and the real measurement data, and take the third digital twin model with the smallest error as the optimal digital twin model; if not, calculate the error between each second digital twin model and the real measurement data.

[0013] The second digital twin model with the smallest error is taken as the optimal digital twin model;

[0014] When there are no streams with a component purity greater than the threshold for the key component:

[0015] Determine whether there is LIMS test data. If so, read the analysis data in LIMS, and based on the analysis data and different thermodynamic methods, correct the binary interaction parameters of the first digital twin model to obtain the fourth digital twin model; calculate the error between each fourth digital twin model and the actual measurement data, and take the fourth digital twin model with the smallest error as the optimal digital twin model; if not, calculate the error between each first digital twin model and the actual measurement data, and take the first digital twin model with the smallest error as the optimal digital twin model.

[0016] Optionally, the process operation parameters represent parameters that vary over time during the production process, including temperature, pressure, and flow rate;

[0017] Correct the process operation parameters of the original digital twin model, specifically:

[0018] According to the temperature, pressure and flow data in the DCS, change the corresponding parameters in the original digital twin model.

[0019] Optionally, the physical property parameters of the key components corresponding to the streams whose component purity is greater than the threshold in the first digital twin model are corrected, specifically:

[0020] The partial least squares method is used to correct the physical properties of the key components corresponding to the streams whose component purity is greater than the threshold in the first digital twin model; wherein the physical properties include critical properties, eccentricity factor, phase change enthalpy, saturated vapor pressure, and molar heat capacity.

[0021] Optionally, the binary interaction parameters of the second digital twin model are corrected, specifically:

[0022] The partial least squares method is used to correct the binary interaction parameters of the second digital twin model.

[0023] Optionally, the error between each third digital twin model and the real measurement data is calculated, specifically:

[0024] Using the third digital twin model to perform prediction and obtain prediction data;

[0025] Calculating a mean square error between the predicted data and the actual measured data;

[0026] Calculating the mean absolute error between the predicted data and the actual measured data;

[0027] Calculate the mean absolute percentage error between the predicted data and the actual measured data;

[0028] The sum of the mean square error, the mean absolute error and the mean absolute percentage error is taken as the error between the corresponding third digital twin model and the actual measurement data.

[0029] On the other hand, the present invention also provides a thermodynamically based self-correcting chemical plant digital twin modeling system, comprising:

[0030] Establish modules for applying different thermodynamic methods to create original digital twin models with the same process unit parameters;

[0031] A screening module, used to screen key components from the device;

[0032] A correction module, used for correcting the process operation parameters of the original digital twin model to obtain a first digital twin model;

[0033] A judging module, used for judging whether there is a stream in the device whose purity of the key component is greater than a threshold value;

[0034] When there is a stream with a component purity of a key component greater than the threshold:

[0035] The correction module is also used to read the temperature and pressure of the corresponding component, and based on different thermodynamic methods, correct the physical property parameters of the key components corresponding to the streams with component purity greater than the threshold in the first digital twin model to obtain the second digital twin model;

[0036] The judgment module is also used to determine whether there is LIMS test data. If so, the correction module is also used to read the analysis data in LIMS, and based on the analysis data and different thermodynamic methods, correct the binary interaction parameters of the second digital twin model to obtain the third digital twin model; the calculation module is used to calculate the error between each third digital twin model and the real measurement data, and take the third digital twin model with the smallest error as the optimal digital twin model; if not, the calculation module is also used to calculate the error between each second digital twin model and the real measurement data, and take the second digital twin model with the smallest error as the optimal digital twin model;

[0037] When there are no streams with a component purity greater than the threshold for the key component:

[0038] The judgment module is also used to determine whether there is LIMS test data. If so, the correction module is also used to read the analysis data in LIMS, and based on the analysis data and different thermodynamic methods, correct the binary interaction parameters of the first digital twin model to obtain the fourth digital twin model; the calculation module is also used to calculate the errors between each fourth digital twin model and the actual measurement data, and take the fourth digital twin model with the smallest error as the optimal digital twin model; if not, calculate the errors between each first digital twin model and the actual measurement data, and take the first digital twin model with the smallest error as the optimal digital twin model.

[0039] Optionally, the process operation parameters represent parameters that vary over time during the production process, including temperature, pressure, and flow rate;

[0040] The correction module is specifically used for:

[0041] According to the temperature, pressure and flow data in the DCS, change the corresponding parameters in the original digital twin model.

[0042] Optionally, when correcting the physical property parameters of the key components corresponding to the streams whose component purity is greater than the threshold in the first digital twin model, the correction module is specifically used to:

[0043] The partial least squares method is used to calibrate the physical properties of the key components corresponding to the streams whose component purity is greater than the threshold in the first digital twin model.

[0044] Optionally, when correcting the binary interaction parameters of the second digital twin model, the correction module is specifically used to:

[0045] The partial least squares method is used to correct the binary interaction parameters of the second digital twin model.

[0046] Optionally, when calculating the error between each third digital twin model and the real measurement data, the calculation module is specifically used to:

[0047] Using the third digital twin model to perform prediction and obtain prediction data;

[0048] Calculating a mean square error between the predicted data and the actual measured data;

[0049] Calculating the mean absolute error between the predicted data and the actual measured data;

[0050] Calculate the mean absolute percentage error between the predicted data and the actual measured data;

[0051] The sum of the mean square error, the mean absolute error and the mean absolute percentage error is taken as the error between the corresponding third digital twin model and the actual measurement data.

[0052] The innovative features of the embodiments of the present invention include:

[0053] 1. In this embodiment, the digital twin model is split into a process model and a thermodynamic method, and then the thermodynamic model is split into pure component parameters and binary interaction parameters. This is a model building method for the entire process, and DCS data and LIMS analysis and testing data are coordinated to make the fitting process accurately fit the actual production process, thereby avoiding the problem that the process parameters of the digital twin model cannot be updated in time as the device runs for a longer time, resulting in their gradual distortion and deviation from the actual operation of the process device. This is one of the innovations of the embodiments of the present invention.

[0054] 2. In this embodiment, the thermodynamic model is split into pure component parameters and binary interaction parameters, and the model parameters are updated by a step-by-step splitting and fitting method. This not only makes the model calculation results closer to the actual production process, but also is based on an accurate simulation of the physicochemical properties of the substance. It is based on physical principles and does not rely on a large amount of production data. At the same time, it is more interpretable and robust, which is one of the innovations of the embodiment of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0056] Figure 1 A flow chart of a modeling method provided by an embodiment of the present invention;

[0057] Figure 2 A flow chart of calculating error provided by an embodiment of the present invention;

[0058] Figure 3 A schematic diagram of the structure of a modeling system provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present invention and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0061] The embodiment of the present invention discloses a thermodynamically based self-correcting chemical plant digital twin modeling method, which is described in detail below.

[0062] Figure 1 For a flow chart of a modeling method provided by an embodiment of the present invention, please refer to Figure 1 , the thermodynamics-based self-correcting chemical plant digital twin modeling method provided by the embodiment of the present invention includes:

[0063] Step 1: Apply different thermodynamic methods to establish multiple sets of original digital twin models with the same process parameters;

[0064] Step 2: Screening key components from the device;

[0065] Step 3: Correct the process operation parameters of the original digital twin model to obtain the first digital twin model;

[0066] Step 4: Determine whether there is a stream in the device whose purity of the key component is greater than a threshold value;

[0067] When there is a stream with a component purity of a key component greater than the threshold:

[0068] Step 41, reading the temperature and pressure of the corresponding component, and correcting the physical property parameters of the key component corresponding to the stream with component purity greater than the threshold in the first digital twin model based on different thermodynamic methods, to obtain the second digital twin model;

[0069] Step 42, determine whether there is LIMS test data. If so, read the analysis data in LIMS, and based on the analysis data and different thermodynamic methods, correct the binary interaction parameters of the second digital twin model to obtain the third digital twin model; calculate the error between each third digital twin model and the real measurement data, and take the third digital twin model with the smallest error as the optimal digital twin model; if not, calculate the error between each second digital twin model and the real measurement data,

[0070] The second digital twin model with the smallest error is taken as the optimal digital twin model;

[0071] When there are no streams with a component purity greater than the threshold for the key component:

[0072] Step 43, determine whether there is LIMS test data. If so, read the analysis data in LIMS, and based on the analysis data and different thermodynamic methods, correct the binary interaction parameters of the first digital twin model to obtain the fourth digital twin model; calculate the error between each fourth digital twin model and the real measurement data, and take the fourth digital twin model with the smallest error as the optimal digital twin model; if not, calculate the error between each first digital twin model and the real measurement data,

[0073] The first digital twin model with the smallest error is taken as the optimal digital twin model.

[0074] Specifically, please refer to Figure 1 , the thermodynamic-based self-correcting chemical plant digital twin modeling method provided by the embodiment of the present invention first establishes the original digital twin model in step 1. The accuracy of the digital twin model of the chemical plant is divided into two parts, such as the accurate simulation of the physicochemical properties of the substance and the accurate simulation of the equipment operating parameters. The simulation accuracy of the physicochemical properties of the substance is closely related to the selected thermodynamic method. Therefore, when establishing the original digital twin model, the present invention changes the selected thermodynamic method while keeping the process parameters unchanged, so as to obtain multiple sets of original digital twin models with the same process parameters but different thermodynamic methods.

[0075] It should be noted that when the present invention establishes the original digital twin model, existing commercial process simulation software such as Aspen, HYSYS, etc. can be used. For details, reference can be made to the existing Aspen, HYSYS, etc., which will not be repeated here.

[0076] Usually, a chemical plant contains many components, many of which account for a small proportion. In the process of modeling, if the parameters of each component are fitted, it takes a lot of computing power. Therefore, the present invention screens key components from the device through step 2, such as the main products and main impurities in the device. Here, when screening key components, screening can be performed according to the proportion of the components. For example, if the proportion of a certain component is greater than a preset threshold, the component is considered to be a key component.

[0077] Accurate simulation of process parameters is also crucial to the accuracy of the digital twin model of chemical plants. Here, process parameters can be divided into two parts, such as operating parameters and equipment parameters. Operating parameters refer to parameters that change over time during the production process, including temperature, pressure, flow, etc., while equipment parameters will not change after the equipment is installed, such as the size of the equipment.

[0078] In order to effectively improve the accuracy of the digital twin model, the present invention splits the digital twin model into a process model and a thermodynamic method. After obtaining the original digital twin model, the process operation parameters of the original digital twin model are first corrected through step 3, and the first digital twin model is obtained after the correction is completed. Here, when the process operation parameters of the digital twin model are corrected, the corresponding parameters in the original digital twin model are changed in real time according to the actual production data, such as temperature, pressure, flow and other data in the DCS (Distributed Control System), so that the fitting process accurately fits the actual production process, avoiding the problem that as the device runs longer and longer, the process operation parameters of the digital twin model cannot be updated in time, resulting in its gradual distortion and deviation from the actual process device operation.

[0079] In addition, the simulation accuracy of the physical and chemical properties of the substance is closely related to the selected thermodynamic method and the pure component. Therefore, the present invention detects all the streams in the device through step 4 to determine whether there is a stream with a purity of the key component greater than a threshold value. The threshold value here is a preset value. Assuming that the threshold value is 95%, when the purity of the component is greater than 95%, the component is considered to be a pure component.

[0080] After all streams are detected, when a stream with a component purity of a key component greater than a threshold is detected, step 41 is used to correct the physical property parameters of the key component corresponding to the stream with a component purity greater than the threshold in the first digital twin model for all different thermodynamic methods to obtain a second digital twin model.

[0081] It should be noted that the physical properties of pure components include critical properties, eccentricity factor, phase change enthalpy, saturated vapor pressure, molar heat capacity, etc., wherein saturated vapor pressure is the equation of pressure with respect to temperature. Therefore, in step 41, before correcting the physical properties of pure components, it is also necessary to read the temperature and pressure of the corresponding key components in DCS to calculate the saturated vapor pressure, thereby completing the correction of the physical properties.

[0082] It should be noted that the simulation accuracy of the physicochemical properties of the substance is also related to the accuracy of the binary interaction parameters. Therefore, after correcting the physical property parameters, it is also necessary to correct the binary interaction parameters. Therefore, through step 42, it is determined whether there is LIMS (Laboratory Information Management System) test data. If there is LIMS test data, the binary interaction parameters of the second digital twin model are corrected to obtain the third digital twin model. It should be noted that when correcting the binary interaction parameters of the second digital twin model, the analysis data in LIMS is used to correct the binary interaction parameters of all the second digital twin models according to different thermodynamic methods. Therefore, before correction, it is necessary to first read the analysis data in LIMS to complete the correction of the binary interaction parameters.

[0083] After obtaining the third digital twin model by correcting the binary interaction parameters, predictions are made through each third digital twin model to obtain the predicted value, and then the error between the predicted value of each third digital twin model and the actual measurement data is calculated, and the third digital twin model with the smallest error is screened out and used as the optimal digital twin model.

[0084] If there is no LIMS test data, there is no need to perform binary interaction parameter correction. Therefore, the second digital twin model is the model after the parameter update is completed. The error between the predicted value of each second digital twin model and the actual measurement data is calculated, and the second digital twin model with the smallest error is selected and used as the optimal digital twin model.

[0085] After all streams are detected, when no stream with a component purity of the key component greater than the threshold is detected, it means that there is no pure component, so there is no need to perform the physical property parameter correction step. The binary interaction parameters are directly corrected. Therefore, through step 43, it is determined whether there is LIMS test data. If there is LIMS test data, the binary interaction parameters of the first digital twin model are corrected to obtain the fourth digital twin model. It should be noted that when the binary interaction parameters of the first digital twin model are corrected, the analysis data in LIMS is used to correct the binary interaction parameters of all the first digital twin models according to different thermodynamic methods. Therefore, before correction, it is necessary to first read the analysis data in LIMS to complete the correction of the binary interaction parameters.

[0086] After obtaining the fourth digital twin model by correcting the binary interaction parameters, predictions are made through each fourth digital twin model to obtain predicted values, and then the errors between the predicted values ​​of each fourth digital twin model and the actual measured data are calculated, and the fourth digital twin model with the smallest error is selected as the optimal digital twin model.

[0087] If there is no LIMS test data, there is no need to perform binary interaction parameter correction. Therefore, the first digital twin model is the model after the parameter update is completed. The error between the predicted value of each first digital twin model and the actual measurement data is calculated, and the first digital twin model with the smallest error is selected and used as the optimal digital twin model.

[0088] The thermodynamic-based self-correcting chemical plant digital twin modeling method provided by the present invention splits the digital twin model into a process model and a thermodynamic method, and then splits the thermodynamic model into pure component parameters and binary interaction parameters. It is a model building method for the entire process, and coordinates DCS data and LIMS analysis and testing data, so that the fitting process accurately fits the actual production process, avoiding the problem that as the device runs longer and longer, the process parameters of the digital twin model cannot be updated in time, resulting in gradual distortion and deviation from the actual process device operation. In addition, the thermodynamic model is split into pure component parameters and binary interaction parameters, and the model parameters are updated by a step-by-step split fitting method, which not only makes the model calculation results closer to the actual production process, but also is based on an accurate simulation of the physical and chemical properties of the substance, is based on physical principles, does not rely on a large amount of production data, and is more interpretable and robust.

[0089] Optionally, the physical property parameters of the key components corresponding to the flow streams with component purity greater than a threshold in the first digital twin model are corrected, specifically: the partial least squares method is used to correct the physical property parameters of the key components corresponding to the flow streams with component purity greater than a threshold in the first digital twin model; wherein the physical property parameters include critical properties, eccentricity factors, phase change enthalpy, saturated vapor pressure, and molar heat capacity.

[0090] Specifically, after all streams are detected, when a stream with a component purity of a key component greater than a threshold is detected, the physical property parameters of the key component corresponding to the stream with a component purity greater than the threshold in the first digital twin model are corrected for all different thermodynamic methods. When the physical property parameters are corrected, the partial least squares method can be used. The partial least squares method is a mathematical optimization technique that can find the best function match for a set of data by minimizing the sum of squares of errors. For details, please refer to the prior art and will not be repeated here.

[0091] It should be noted that the physical properties of pure components include critical properties, eccentricity factor, phase change enthalpy, saturated vapor pressure, molar heat capacity, etc. Among them, saturated vapor pressure is the equation of pressure to temperature, which can be expressed by the formula: Among them, A i , B i , C i , D i 、E i 、F i , G i is the correlation coefficient of the saturated vapor pressure of an ideal gas, and T represents the temperature. The molar heat capacity can be expressed by the formula Calculate, where C 1i , C 2i , C 3i , C 4i , C 5i is the correlation coefficient of the molar heat capacity of an ideal gas, and T represents the temperature.

[0092] Optionally, the binary interaction parameters of the second digital twin model are corrected, specifically: the binary interaction parameters of the second digital twin model are corrected using partial least squares method.

[0093] Specifically, this embodiment uses partial least squares to correct the binary interaction parameters of the second digital twin model. Partial least squares is a mathematical optimization technique that can find the best function match for a set of data by minimizing the sum of squares of errors. For details, please refer to the prior art and will not be described here.

[0094] It should be noted that the use of partial least squares method to correct the binary interaction parameters is only an implementation method in this embodiment and is not intended to limit the present invention. In other embodiments, other methods may be used to correct the second hospital interaction parameters. In addition, the partial least squares method may also be used when correcting the binary interaction parameters of the first digital twin model.

[0095] Optionally, Figure 2 For a flow chart of calculating error provided by an embodiment of the present invention, please refer to Figure 1 and Figure 2 In step 42, the error between each third digital twin model and the real measurement data is calculated, specifically: step 421, use the third digital twin model to make predictions to obtain predicted data; step 422, calculate the mean square error between the predicted data and the real measurement data; step 423, calculate the mean absolute error between the predicted data and the real measurement data; step 424, calculate the mean absolute percentage error between the predicted data and the real measurement data; step 425, take the sum of the mean square error, the mean absolute error and the mean absolute percentage error as the error between the corresponding third digital twin model and the real measurement data.

[0096] Specifically, please refer to Figure 1 and Figure 2 , when calculating the error between each third digital twin model and the real measurement data, first in step 421, the third digital twin model is used to perform prediction to obtain the predicted data. After obtaining the predicted data, in step 422, the mean square error between the predicted data and the real measurement data is calculated. The mean square error refers to the expected value or average value of the square of the difference between the predicted data and the real measurement data, which can be expressed by the formula Calculate, where y i represents the real measurement data, Represents forecast data.

[0097] Through step 423, the mean absolute error between the predicted data and the actual measured data is calculated. The mean absolute error refers to the expected value or average value of the absolute difference between the predicted data and the actual measured data, which can be expressed by the formula Calculate, where y i represents the real measurement data, Represents forecast data.

[0098] Through step 424, the average absolute percentage error between the predicted data and the actual measured data is calculated. The average absolute percentage error is the expected value or average value of the percentage of the absolute difference between the predicted data and the actual measured data relative to the actual value, which can be calculated by the formula Calculate, where y i represents the real measurement data, Represents forecast data.

[0099] After obtaining the mean square error, mean absolute error and mean absolute percentage error, in step 425, the mean square error, mean absolute error and mean absolute percentage error are summed, and the summed value is used as the error between the corresponding third digital twin model and the actual measurement data, and then the third digital twin model with the smallest summed value is screened out and used as the optimal digital twin model.

[0100] It should be noted that only the calculation method of errors using the third digital twin model is introduced in detail here. In actual use, if it is in other cases, such as when it is necessary to use the first digital twin model to calculate errors, the error calculation method is the same and will not be repeated here.

[0101] Based on the same inventive concept, the present invention also provides a thermodynamically based self-correcting chemical plant digital twin modeling system. Figure 3 For a structural diagram of a modeling system provided by an embodiment of the present invention, please refer to Figure 3 , the thermodynamics-based self-correcting chemical plant digital twin modeling system 100 provided in an embodiment of the present invention includes:

[0102] Establishing module 10 for applying different thermodynamic methods to establish an original digital twin model with the same process device parameters;

[0103] A screening module 20, for screening key components from the device;

[0104] A correction module 30, used to correct the process operation parameters of the original digital twin model to obtain a first digital twin model;

[0105] A judgment module 40, used to judge whether there is a stream in the device whose purity of the key component is greater than a threshold value;

[0106] When there is a stream with a component purity of a key component greater than the threshold:

[0107] The correction module 30 is also used to read the temperature and pressure of the corresponding component, and based on different thermodynamic methods, correct the physical property parameters of the key components corresponding to the streams with component purity greater than the threshold in the first digital twin model to obtain the second digital twin model;

[0108] The judgment module 40 is also used to judge whether there is LIMS test data. If so, the correction module 30 is also used to read the analysis data in LIMS, and based on the analysis data and different thermodynamic methods, correct the binary interaction parameters of the second digital twin model to obtain the third digital twin model;

[0109] A calculation module is used to calculate the error between each third digital twin model and the real measurement data, and take the third digital twin model with the smallest error as the optimal digital twin model; if not, the calculation module also calculates the error between each second digital twin model and the real measurement data, and takes the second digital twin model with the smallest error as the optimal digital twin model;

[0110] When there are no streams with a component purity greater than the threshold for the key component:

[0111] The judgment module 40 is also used to determine whether there is LIMS test data. If so, the correction module 30 is also used to read the analysis data in LIMS, and based on the analysis data and different thermodynamic methods, correct the binary interaction parameters of the first digital twin model to obtain the fourth digital twin model; the calculation module is also used to calculate the error between each fourth digital twin model and the actual measurement data, and take the fourth digital twin model with the smallest error as the optimal digital twin model; if not, calculate the error between each first digital twin model and the actual measurement data, and take the first digital twin model with the smallest error as the optimal digital twin model.

[0112] Specifically, please refer to Figure 3 , the thermodynamic-based self-correcting chemical plant digital twin modeling system provided by the embodiment of the present invention first uses the establishment module 10 to establish the original digital twin model. The accuracy of the digital twin model of the chemical plant is divided into two parts, such as the accurate simulation of the physicochemical properties of the substance and the accurate simulation of the equipment operating parameters. The simulation accuracy of the physicochemical properties of the substance is closely related to the selected thermodynamic method. Therefore, when establishing the original digital twin model, the present invention changes the selected thermodynamic method while keeping the process parameters unchanged, so as to obtain multiple sets of original digital twin models with the same process parameters but different thermodynamic methods.

[0113] It should be noted that when the present invention establishes the original digital twin model, existing commercial process simulation software such as Aspen, HYSYS, etc. can be used. For details, reference can be made to the existing Aspen, HYSYS, etc., which will not be repeated here.

[0114] Usually, a chemical device contains many components, many of which account for a small proportion. In the process of modeling, if the parameters of each component are fitted, it takes a lot of computing power. Therefore, the present invention screens key components from the device through the screening module 20, such as the main products and main impurities in the device. Here, when screening key components, screening can be performed according to the proportion of the components. For example, if the proportion of a certain component is greater than a preset threshold, the component is considered to be a key component.

[0115] Accurate simulation of process parameters is also crucial to the accuracy of the digital twin model of chemical plants. Here, process parameters can be divided into two parts, such as operating parameters and equipment parameters. Operating parameters refer to parameters that change over time during the production process, including temperature, pressure, flow, etc., while equipment parameters will not change after the equipment is installed, such as the size of the equipment.

[0116] In order to effectively improve the accuracy of the digital twin model, the present invention splits the digital twin model into a process model and a thermodynamic method. After obtaining the original digital twin model, the process operation parameters of the original digital twin model are first corrected by the correction module 30, and the first digital twin model is obtained after the correction is completed. Here, when the process operation parameters of the digital twin model are corrected, the corresponding parameters in the original digital twin model are changed in real time according to the actual production data, such as the temperature, pressure, flow and other data in the DCS, so that the fitting process accurately fits the actual production process, avoiding the problem that as the device runs longer and longer, the process operation parameters of the digital twin model cannot be updated in time, resulting in its gradual distortion and deviation from the actual process device operation status.

[0117] In addition, the simulation accuracy of the physical and chemical properties of the substance is closely related to the selected thermodynamic method and also to the pure component. Therefore, the present invention detects all the streams in the device through the judgment module 40 to determine whether there is a stream with a purity of the key component greater than a threshold value. The threshold value here is a preset value. Assuming that the threshold value is 95%, when the purity of the component is greater than 95%, the component is considered to be a pure component.

[0118] After all flow streams are detected, when a flow stream with a component purity of a key component greater than a threshold is detected, the correction module 30 is used to correct the physical property parameters of the key component corresponding to the flow stream with a component purity greater than the threshold in the first digital twin model for all different thermodynamic methods to obtain a second digital twin model.

[0119] It should be noted that the physical properties of pure components include critical properties, eccentricity factor, phase change enthalpy, saturated vapor pressure, molar heat capacity, etc., among which saturated vapor pressure is the equation of pressure with respect to temperature. Therefore, before correcting the physical properties of pure components, it is also necessary to read the temperature and pressure of the corresponding key components in DCS in order to calculate the saturated vapor pressure and complete the correction of the physical properties.

[0120] It should be noted that the simulation accuracy of the physicochemical properties of the substance is also related to the accuracy of the binary interaction parameters. Therefore, after correcting the physical property parameters, it is also necessary to correct the binary interaction parameters. Therefore, through the judgment module 40, it is determined whether there is LIMS test data. If there is LIMS test data, the correction module 30 is used to correct the binary interaction parameters of the second digital twin model to obtain the third digital twin model. It should be noted that when correcting the binary interaction parameters of the second digital twin model, the analysis data in LIMS is used to correct the binary interaction parameters of all the second digital twin models according to different thermodynamic methods. Therefore, before correction, it is necessary to read the analysis data in LIMS first to complete the correction of the binary interaction parameters.

[0121] After obtaining the third digital twin model by correcting the binary interaction parameters, predictions are made through each third digital twin model to obtain predicted values. Then, the calculation module is used to calculate the error between the predicted value of each third digital twin model and the actual measurement data, and the third digital twin model with the smallest error is selected as the optimal digital twin model.

[0122] If there is no LIMS test data, there is no need for binary interaction parameter correction. Therefore, the second digital twin model is the model after the parameter update is completed. The calculation module is used to calculate the error between the predicted value and the actual measurement data of each second digital twin model, and the second digital twin model with the smallest error is selected and used as the optimal digital twin model.

[0123] After all streams are detected, when no stream with a purity of the key component greater than the threshold is detected, it means that there is no pure component, so there is no need to perform the physical property parameter correction step. The binary interaction parameters are directly corrected. Therefore, the judgment module 40 is used to determine whether there is LIMS test data. If there is LIMS test data, the correction module 30 is used to correct the binary interaction parameters of the first digital twin model to obtain the fourth digital twin model. It should be noted that when correcting the binary interaction parameters of the first digital twin model, the analysis data in LIMS is used to correct the binary interaction parameters of all the first digital twin models for different thermodynamic methods. Therefore, before correction, it is first necessary to read the analysis data in LIMS to complete the correction of the binary interaction parameters.

[0124] After obtaining the fourth digital twin model by correcting the binary interaction parameters, predictions are made through each fourth digital twin model to obtain predicted values. Then, the calculation module is used to calculate the error between the predicted value of each fourth digital twin model and the actual measurement data, and the fourth digital twin model with the smallest error is screened out and used as the optimal digital twin model.

[0125] If there is no LIMS test data, there is no need for binary interaction parameter correction. Therefore, the first digital twin model is the model after the parameter update is completed. The calculation module is used to calculate the error between the predicted value and the actual measurement data of each first digital twin model, and the first digital twin model with the smallest error is selected and used as the optimal digital twin model.

[0126] The thermodynamic-based self-correcting chemical plant digital twin modeling system provided by the present invention splits the digital twin model into a process model and a thermodynamic method, and then splits the thermodynamic model into pure component parameters and binary interaction parameters. It is a model building method for the entire process, and coordinates DCS data and LIMS analysis and testing data, so that the fitting process accurately fits the actual production process, avoiding the problem that as the device runs longer and longer, the process parameters of the digital twin model cannot be updated in time, resulting in gradual distortion and deviation from the actual process device operation. In addition, the thermodynamic model is split into pure component parameters and binary interaction parameters, and the model parameters are updated by a step-by-step split fitting method, which not only makes the model calculation results closer to the actual production process, but also is based on an accurate simulation of the physical and chemical properties of the substance, is based on physical principles, does not rely on a large amount of production data, and is more interpretable and robust.

[0127] Optionally, when correcting the physical property parameters of the key components corresponding to the flow stream whose component purity is greater than the threshold in the first digital twin model, the correction module 30 is specifically used to: use the partial least squares method to correct the physical property parameters of the key components corresponding to the flow stream whose component purity is greater than the threshold in the first digital twin model.

[0128] Specifically, after all streams are detected, when a stream with a component purity of a key component greater than a threshold is detected, the correction module 30 corrects the physical property parameters of the key components corresponding to the stream with a component purity greater than the threshold in the first digital twin model for all different thermodynamic methods. When correcting the physical property parameters, the partial least squares method can be used. The partial least squares method is a mathematical optimization technique that can find the best function match for a set of data by minimizing the sum of squares of errors. For details, please refer to the prior art and will not be repeated here.

[0129] It should be noted that the physical properties of pure components include critical properties, eccentricity factor, phase change enthalpy, saturated vapor pressure, molar heat capacity, etc. Among them, saturated vapor pressure is the equation of pressure to temperature, which can be expressed by the formula: Among them, A i , B i , C i , D i 、E i 、F i , G iis the correlation coefficient of the saturated vapor pressure of an ideal gas, and T represents the temperature. The molar heat capacity can be expressed by the formula Calculate, where C 1i , C 2i , C 3i , C 4i , C 5i is the correlation coefficient of the molar heat capacity of an ideal gas, and T represents the temperature.

[0130] Optionally, when correcting the binary interaction parameters of the second digital twin model, the correction module 30 is specifically used to: use the partial least squares method to correct the binary interaction parameters of the second digital twin model.

[0131] Specifically, this embodiment uses partial least squares to correct the binary interaction parameters of the second digital twin model. Partial least squares is a mathematical optimization technique that can find the best function match for a set of data by minimizing the sum of squares of errors. For details, please refer to the prior art and will not be described here.

[0132] It should be noted that the use of partial least squares method to correct the binary interaction parameters is only an implementation method in this embodiment and is not intended to limit the present invention. In other embodiments, other methods may be used to correct the second hospital interaction parameters. In addition, the partial least squares method may also be used when correcting the binary interaction parameters of the first digital twin model.

[0133] Optionally, when calculating the error between each third digital twin model and the real measurement data, the calculation module is specifically used to: use the third digital twin model to perform prediction to obtain predicted data; calculate the mean square error between the predicted data and the real measurement data; calculate the mean absolute error between the predicted data and the real measurement data; calculate the mean absolute percentage error between the predicted data and the real measurement data; and take the sum of the mean square error, the mean absolute error and the mean absolute percentage error as the error between the corresponding third digital twin model and the real measurement data.

[0134] Specifically, please refer to Figure 3 When calculating the error between each third digital twin model and the real measurement data, the third digital twin model is first used to make predictions to obtain the predicted data. After obtaining the predicted data, the mean square error between the predicted data and the real measurement data is calculated. The mean square error refers to the expected value or average value of the square difference between the predicted data and the real measurement data, which can be expressed by the formula Calculate, where y i represents the real measurement data, Represents forecast data.

[0135] Calculate the mean absolute error between the predicted data and the actual measured data. The mean absolute error refers to the expected value or average value of the absolute difference between the predicted data and the actual measured data, which can be expressed by the formula Calculate, where y i represents the real measurement data, Represents forecast data.

[0136] Calculate the mean absolute percentage error between the predicted data and the true measured data. The mean absolute percentage error is the expected value or average value of the absolute difference between the predicted data and the true measured data relative to the true value. It can be expressed by the formula Calculate, where y i represents the real measurement data, Represents forecast data.

[0137] After obtaining the mean square error, mean absolute error and mean absolute percentage error, the mean square error, mean absolute error and mean absolute percentage error are summed, and the summed value is used as the error between the corresponding third digital twin model and the actual measurement data. Then, the third digital twin model with the smallest summed value is screened out and used as the optimal digital twin model.

[0138] It should be noted that only the calculation method of errors using the third digital twin model is introduced in detail here. In actual use, if it is in other cases, such as when it is necessary to use the first digital twin model to calculate errors, the error calculation method is the same and will not be repeated here.

[0139] Those skilled in the art can understand that the accompanying drawings are only schematic diagrams of an embodiment, and the modules or processes in the accompanying drawings are not necessarily required to implement the present invention.

[0140] Those skilled in the art can understand that the modules in the device in the embodiment can be distributed in the device in the embodiment according to the description of the embodiment, or can be changed accordingly and located in one or more devices different from the embodiment. The modules in the above embodiment can be combined into one module, or can be further divided into multiple sub-modules.

[0141] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A thermodynamic self-correcting chemical plant digital twin modeling method, characterized in that: include: Apply different thermodynamic methods to establish multiple sets of original digital twin models with the same process parameters; screening key components from the device; Correcting process operation parameters of the original digital twin model to obtain a first digital twin model; Determining whether there is a flow stream in the device having a component purity of the key component greater than a threshold value; When there is a stream with a component purity of a key component greater than the threshold: Read the temperature and pressure of the corresponding components, and based on different thermodynamic methods, correct the physical property parameters of the key components corresponding to the streams with component purity greater than the threshold in the first digital twin model to obtain the second digital twin model; Determine whether there is LIMS test data. If so, read the analysis data in LIMS, and based on the analysis data and different thermodynamic methods, correct the binary interaction parameters of the second digital twin model to obtain a third digital twin model; calculate the error between each third digital twin model and the actual measurement data, and use the third digital twin model with the smallest error as the optimal digital twin model; if not, calculate the error between each second digital twin model and the actual measurement data, and use the second digital twin model with the smallest error as the optimal digital twin model; When there are no streams with a component purity greater than the threshold for the key component: Determine whether there is LIMS test data. If so, read the analysis data in LIMS, and based on the analysis data and different thermodynamic methods, correct the binary interaction parameters of the first digital twin model to obtain the fourth digital twin model; calculate the error between each fourth digital twin model and the actual measurement data, and take the fourth digital twin model with the smallest error as the optimal digital twin model; if not, calculate the error between each first digital twin model and the actual measurement data, and take the first digital twin model with the smallest error as the optimal digital twin model.

2. The method for digital twin modeling of a self-correcting chemical plant based on thermodynamics according to claim 1 is characterized in that: The process operation parameters refer to parameters that change over time during the production process, including temperature, pressure, and flow rate; Correct the process operation parameters of the original digital twin model, specifically: According to the temperature, pressure and flow data in the DCS, change the corresponding parameters in the original digital twin model.

3. The method for modeling a digital twin of a chemical plant based on thermodynamics according to claim 1, characterized in that: Correct the physical property parameters of the key components corresponding to the streams whose component purity is greater than the threshold in the first digital twin model, specifically: The partial least squares method is used to correct the physical properties of the key components corresponding to the streams whose component purity is greater than the threshold in the first digital twin model; wherein the physical properties include critical properties, eccentricity factor, phase change enthalpy, saturated vapor pressure, and molar heat capacity.

4. The method for digital twin modeling of a self-correcting chemical plant based on thermodynamics according to claim 1, characterized in that: Correct the binary interaction parameters of the second digital twin model, specifically: The partial least squares method is used to correct the binary interaction parameters of the second digital twin model.

5. The method for modeling a digital twin of a chemical plant based on thermodynamics according to claim 1, characterized in that: Calculate the error between each third digital twin model and the actual measurement data, specifically: Using the third digital twin model to perform prediction and obtain prediction data; Calculating a mean square error between the predicted data and the actual measured data; Calculating the mean absolute error between the predicted data and the actual measured data; Calculate the mean absolute percentage error between the predicted data and the actual measured data; The sum of the mean square error, the mean absolute error and the mean absolute percentage error is taken as the error between the corresponding third digital twin model and the actual measurement data.

6. A thermodynamic self-correcting chemical plant digital twin modeling system, characterized in that: include: Establish modules for applying different thermodynamic methods to create original digital twin models with the same process unit parameters; A screening module, used to screen key components from the device; A correction module, used for correcting the process operation parameters of the original digital twin model to obtain a first digital twin model; A judging module, used for judging whether there is a stream in the device whose purity of the key component is greater than a threshold value; When there is a stream with a component purity of a key component greater than the threshold: The correction module is also used to read the temperature and pressure of the corresponding component, and based on different thermodynamic methods, correct the physical property parameters of the key components corresponding to the streams with component purity greater than the threshold in the first digital twin model to obtain the second digital twin model; The judgment module is also used to determine whether there is LIMS test data. If so, the correction module is also used to read the analysis data in LIMS, and based on the analysis data and different thermodynamic methods, correct the binary interaction parameters of the second digital twin model to obtain the third digital twin model; the calculation module is used to calculate the error between each third digital twin model and the real measurement data, and take the third digital twin model with the smallest error as the optimal digital twin model; if not, the calculation module is also used to calculate the error between each second digital twin model and the real measurement data, and take the second digital twin model with the smallest error as the optimal digital twin model; When there are no streams with a component purity greater than the threshold for the key component: The judgment module is also used to determine whether there is LIMS test data. If so, the correction module is also used to read the analysis data in LIMS, and based on the analysis data and different thermodynamic methods, correct the binary interaction parameters of the first digital twin model to obtain the fourth digital twin model; the calculation module is also used to calculate the errors between each fourth digital twin model and the actual measurement data, and take the fourth digital twin model with the smallest error as the optimal digital twin model; if not, calculate the errors between each first digital twin model and the actual measurement data, and take the first digital twin model with the smallest error as the optimal digital twin model.

7. The thermodynamics-based self-correcting chemical plant digital twin modeling system according to claim 6 is characterized in that: The process operation parameters refer to parameters that change over time during the production process, including temperature, pressure, and flow rate; The correction module is specifically used for: According to the temperature, pressure and flow data in the DCS, change the corresponding parameters in the original digital twin model.

8. The thermodynamically-based self-correcting chemical plant digital twin modeling method according to claim 6 is characterized in that: When correcting the physical property parameters of the key components corresponding to the streams whose component purity is greater than the threshold in the first digital twin model, the correction module is specifically used to: The partial least squares method is used to calibrate the physical properties of the key components corresponding to the streams whose component purity is greater than the threshold in the first digital twin model.

9. The method for digital twin modeling of a self-correcting chemical plant based on thermodynamics according to claim 6, characterized in that: When correcting the binary interaction parameters of the second digital twin model, the correction module is specifically used to: The partial least squares method is used to correct the binary interaction parameters of the second digital twin model.

10. The method for digital twin modeling of a self-correcting chemical plant based on thermodynamics according to claim 6, characterized in that: When calculating the error between each third digital twin model and the real measurement data, the calculation module is specifically used to: Using the third digital twin model to perform prediction and obtain prediction data; Calculating a mean square error between the predicted data and the actual measured data; Calculating the mean absolute error between the predicted data and the actual measured data; Calculate the mean absolute percentage error between the predicted data and the actual measured data; The sum of the mean square error, the mean absolute error and the mean absolute percentage error is taken as the error between the corresponding third digital twin model and the actual measurement data.