An ethylene plant material and energy balance online calculation and deviation intelligent diagnosis method and system

By constructing a material and energy balance model in an ethylene plant, and combining adaptive data correction and cascade utilization constraints, the logical inconsistency caused by independent calculation of material and energy balance in an ethylene plant was solved, achieving synchronous convergence of material and energy balance and accurate calculation of steam energy consumption.

CN123139075APending Publication Date: 2026-11-20连云港石化有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611288126.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-24
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

The material and energy balance calculations for the ethylene plant are performed independently, lacking joint iteration and coordinated correction, resulting in logical inconsistencies in the calculation results, insufficient handling of abnormal metering instrument signals, and systematic biases in steam energy consumption calculations.

Method used

The ethylene plant is divided into cracking, quenching, compression, separation, refrigeration, and utility units. A material and energy balance model is constructed, and a full-process coupled calculation is performed based on the conservation laws of mass, carbon, and components. An adaptive data correction algorithm and the energy conservation law are used to classify steam levels, construct cascade utilization constraint equations, and perform simultaneous iterative updates and anomaly diagnosis.

Benefits of technology

It achieves synchronous convergence of material and energy balance, eliminates the problem of logical inconsistency in calculation results, improves the accuracy of metering data and the calculation precision of steam energy consumption, and provides a real-time visualization of balance status and anomaly diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123139075A_ABST
    Figure CN123139075A_ABST
Patent Text Reader

Abstract

The application discloses an ethylene device material and energy balance online calculation and deviation intelligent diagnosis method, relates to the technical field of industrial process control, and divides the ethylene device into multiple units, obtains real-time measurement data and component data of each unit measurement point to construct a material balance model, constructs an energy balance model by using a multi-grade steam cascade utilization constraint equation, performs dynamic filtering and statistical verification correction on the real-time measurement data by using a self-adaptive data correction algorithm, feeds the corrected data to the two models to perform simultaneous iteration and update until convergence, constructs an abnormal diagnosis library, matches the material balance rate, carbon balance rate and comprehensive energy consumption with the abnormal diagnosis library, triggers the abnormal diagnosis library to perform abnormal tracing and output abnormal types and positioning results when the deviation exceeds the limit, associates and fuses the abnormal positioning results with the data of each unit after convergence, visualizes and generates a balance report, and realizes integrated online calculation of material and energy balance and automatic tracing and diagnosis of deviation abnormalities.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial process control technology, and in particular to a method and system for online calculation of material and energy balance and intelligent diagnosis of deviations in an ethylene plant. Background Technology

[0002] As the core production unit of the petrochemical industry, the accurate calculation of material and energy balance throughout the entire process of ethylene plants is an important foundation for measuring plant operating efficiency, guiding process optimization, and achieving energy conservation and emission reduction goals. With the increasing scale of ethylene production and the increasing complexity of plant operating conditions, real-time and accurate online balance calculation of materials and energy throughout the entire process, along with the ability to intelligently diagnose deviations, has become a key requirement for improving the operation and management level of ethylene plants.

[0003] Currently, material and energy balance accounting for ethylene plants mainly relies on offline manual calculations or independent summary calculations based on real-time databases. Industrial practice suffers from the following shortcomings: material balance and energy balance are usually calculated independently. Material balance focuses on closed-loop matching of mass flow rate and component concentration, while energy balance focuses on the supply and consumption statistics of energy flow media such as steam, fuel gas, and electricity. There is a lack of joint iteration and collaborative correction mechanisms based on the same set of input data between the two, often resulting in logical inconsistencies in the calculation results. Furthermore, when the corrected data from the material balance is substituted into the energy model, it fails to meet the energy flow conservation constraints.

[0004] Field metering instruments operate under harsh conditions such as high temperature, high pressure, and multiphase flow for a long time. The measurement signals are mixed with abnormal components such as noise and drift. Existing data correction methods are mostly single-point independent amplitude limiting processing, lacking the means to combine the whole process conservation constraints to jointly correct related measurement points. When the corrected dataset is substituted into the equilibrium model, the residuals are accumulated and amplified step by step along the flow tracking path.

[0005] Steam systems include multiple grade levels such as high pressure, medium pressure, and low pressure. There are pressure reduction and cascade utilization relationships between the steam at each level. Existing methods generally sum up the steam at each level after uniform conversion, ignoring the impact of the interstage enthalpy retention coefficient on the actual usable heat, resulting in systematic biases in the calculation of comprehensive energy consumption. Summary of the Invention

[0006] This invention provides a method and system for online calculation of material and energy balance and intelligent diagnosis of deviations in an ethylene plant, in order to solve the problems mentioned in the background art.

[0007] To achieve the above objectives, the present invention provides an online calculation and intelligent deviation diagnosis method for material and energy balance in an ethylene plant, comprising the following steps:

[0008] S1. Divide the ethylene unit into cracking, quenching, compression, separation, refrigeration and utility units, and obtain real-time metering data and component data of material flow measurement points, energy flow measurement points and component analysis measurement points in each unit;

[0009] S2. Construct a material balance model based on the conservation laws of mass, carbon elements and components. Input real-time metering data and component data into the material balance model, perform full-process closed-loop tracking and iterative coupling calculation on all streams, and output the material balance rate and carbon balance rate of each unit.

[0010] S3. Based on the law of conservation of energy, classify the energy flow grades of high, medium and low pressure steam, establish energy flow balance and cascade utilization constraint equations for multi-level steam, construct an energy balance model, perform full-system energy flow tracing and load distribution calculations for all energy flows, and output comprehensive energy consumption and energy consumption distribution data of each unit.

[0011] S4. The real-time metering data is dynamically filtered and statistically verified and corrected using an adaptive data correction algorithm to obtain corrected data. The corrected data is then fed back to the material balance model and energy balance model for simultaneous iterative updates until the balance calculation converges.

[0012] S5. Construct an anomaly diagnosis library based on preset deviation thresholds and anomaly feature rules. Match the material balance rate, carbon balance rate, and comprehensive energy consumption with the anomaly diagnosis library for threshold matching. When any indicator triggers a deviation exceeding the limit, call the anomaly diagnosis library to trace the source of the anomaly and output the anomaly type and anomaly location result.

[0013] S6. The anomaly location results are correlated, fused, and multidimensionally merged with the data of each unit after the balance calculation converges. The real-time balance status and deviation level are displayed synchronously through a visual interface. Shift, daily, and monthly balance reports are automatically generated according to a preset cycle. Verification prompts or operation adjustment suggestions are output based on the anomaly tracing results.

[0014] Furthermore: The ethylene unit is divided into cracking, quenching, compression, separation, refrigeration, and utility units. Real-time metering data and component data are obtained from the stream flow measurement points, energy flow measurement points, and component analysis measurement points within each unit, including:

[0015] Based on the physical boundaries and material flow relationships of each process unit, the entire ethylene plant process is divided into cracking unit, quenching unit, compression unit, separation unit, refrigeration unit and utility unit.

[0016] Based on the source and destination of the process flow streams within each unit, corresponding material flow measurement points, energy flow measurement points, and component analysis measurement points are determined respectively. Among them, material flow measurement points are used to obtain the flow rate data of feed and discharge, and energy flow measurement points are used to obtain energy consumption and output data.

[0017] Furthermore: A material balance model is constructed based on the laws of conservation of mass, carbon, and components. Real-time metering data and component data are input into the material balance model. The model performs full-process closed-loop tracking and iterative coupled calculations on all streams corresponding to the material flow points, outputting the material balance rate and carbon balance rate of each unit, including:

[0018] The material balance model includes a mass balance constraint layer, a carbon balance constraint layer, and a component balance constraint layer;

[0019] Based on the mass balance constraint layer, carbon balance constraint layer, and component balance constraint layer, establish a set of material balance equations covering the entire process, where the balance equations for each unit are combined.

[0020]

[0021]

[0022]

[0023] in, For the mass flow rate of the stream, The mass fraction of carbon in the stream. The first in the flow Mass fraction of chemical components in the middle This represents the total accumulated amount of materials within the unit. This represents the cumulative amount of carbon within a unit. For the first unit Accumulated amount of middle components , These represent the total number of feed and discharge streams, respectively. The total number of chemical components involved in the balance;

[0024] By combining the equations of all units, a material balance model covering the entire process is formed.

[0025] Furthermore: Using an energy balance model, system-wide energy flow tracing and load allocation calculations are performed on all energy flows corresponding to the energy flow measurement points, outputting comprehensive energy consumption and energy consumption distribution data for each unit, including:

[0026] The energy balance model divides all energy flows into fuel gas energy flows, steam energy flows, electricity energy flows, and circulating water energy flows based on the energy medium type at each energy flow measurement point.

[0027] Using each unit as a node and real-time metering data from each energy flow measurement point as input, reverse tracing is performed along the supply and consumption paths of each energy flow to determine the supply source and consumption destination of each type of energy flow in the cracking unit, quenching unit, compression unit, separation unit, refrigeration unit, and utility unit.

[0028] Based on the process operation load of each unit, the total supply of each energy flow is allocated to each unit according to the consumption ratio of each unit, so as to obtain the consumption of each type of energy flow in each unit.

[0029] The energy consumption of each unit is converted into the same standard energy unit according to the preset conversion factor and then summarized to obtain the overall energy consumption of the device; the energy consumption of each unit is summarized separately to obtain the energy consumption distribution data of each unit.

[0030] Furthermore: Based on the law of conservation of energy, high, medium, and low-pressure steam energy flow grades are classified according to steam pressure levels. Constraint equations for energy flow balance and cascade utilization of multi-grade steam are established, and an energy balance model is constructed, including:

[0031] Based on the law of conservation of energy, steam pressure parameters are used as the basis for classifying energy flow grade. Steam energy flow is divided into three levels according to preset pressure thresholds: high-pressure steam energy flow, medium-pressure steam energy flow, and low-pressure steam energy flow.

[0032] For each level of high-pressure steam energy flow, medium-pressure steam energy flow, and low-pressure steam energy flow, an energy flow balance equation is established for that level of steam. This energy flow balance equation is constrained by the condition that the total supply of that level of steam in each unit equals the sum of the total consumption of that level of steam in each unit and the system losses. A cascade utilization constraint equation is then constructed.

[0033]

[0034]

[0035] in, This stage of steam receives the total heat discharged from the previous stage. The heat generated by the steam generation unit of this grade of steam itself. This refers to the heat released after the steam from the previous stage has been depressurized and is used in the process. and These are the enthalpy retention coefficients when high-pressure steam is depressurized and discharged into medium-pressure and medium-pressure steam is depressurized and discharged into low-pressure, respectively, and 0 < ≤1;

[0036] By combining the energy flow balance equations for each level of steam with the cascade utilization constraint equations, an energy balance model covering the entire steam system is formed.

[0037] Further: An adaptive data correction algorithm is used to perform dynamic filtering and statistical verification correction on the real-time metering data to obtain corrected data. This corrected data is then fed back to the material balance model and energy balance model for simultaneous iterative updates until the balance calculation converges. This includes:

[0038] The adaptive data correction algorithm takes the real-time measurement data of each measuring point as input and classifies the logistics measuring point data, energy flow measuring point data and component analysis measuring point data according to the measuring point type.

[0039] The dynamic filtering is as follows: the real-time measurement data of each measuring point is subjected to sliding window filtering according to the time series to remove the high-frequency noise component caused by the instantaneous fluctuation of the instrument signal, so as to obtain the filtered data of each measuring point;

[0040] The filtered data of each measuring point is compared with its historical statistical distribution characteristics. Data that exceed the preset confidence interval are identified as outliers and removed. The missing data after removal is filled in according to the statistical characteristic value of the historical data of the same period of the measuring point. The measuring point data that continuously shows systematic shifts are corrected by overall translation according to the historical benchmark value of the measuring point to obtain the single correction data of each measuring point.

[0041] The single calibration data of each measuring point are aligned according to the timestamp and then summarized to form a calibration dataset covering all measuring points, which is used as the calibration data.

[0042] The corrected dataset is used as the updated input variable and substituted into the material balance model and energy balance model respectively. The material balance calculation and energy balance calculation are re-performed to obtain the updated material balance rate, carbon balance rate and energy consumption distribution data of each unit.

[0043] The convergence of the equilibrium calculation is determined as follows:

[0044]

[0045] in, For material balance rate, For carbon balance ratio, For the overall energy consumption of the device, This represents the current iteration number. and These are the preset material, carbon balance convergence threshold, and energy consumption convergence threshold, respectively. The value range is 0.001-0.01. The value range is 0.5-1 t / h;

[0046] The formula for determining convergence of the balance calculation is satisfied. The simultaneous iterative calculation of the material balance model and the energy balance model is determined to be converged. The iteration is stopped, and the material balance rate, carbon balance rate and energy consumption distribution data of each unit obtained from the last iteration calculation are used as the final output results.

[0047] Furthermore: An anomaly diagnosis library is constructed based on preset deviation thresholds and anomaly characteristic rules. Material balance rate, carbon balance rate, and comprehensive energy consumption are compared against the anomaly diagnosis library using threshold matching. When any indicator triggers an excessive deviation, the anomaly diagnosis library is invoked to trace the source of the anomaly, outputting the anomaly type and anomaly location results, including:

[0048] For each type of anomaly, corresponding deviation threshold conditions and anomaly feature rules are set, and the deviation threshold conditions, the anomaly feature rules, and the corresponding anomaly types and anomaly location information are associated and stored to form an anomaly diagnosis library that includes a metering anomaly diagnosis sub-library, a material loss diagnosis sub-library, an energy loss diagnosis sub-library, and an operation fluctuation diagnosis sub-library.

[0049] The deviation threshold conditions include the upper limit values ​​of material balance rate deviation, carbon balance rate deviation, and comprehensive energy consumption deviation corresponding to each anomaly type; the anomaly feature rules include the trend characteristics of material balance rate deviation, carbon balance rate deviation, and comprehensive energy consumption deviation corresponding to each anomaly type.

[0050] The material balance rate and carbon balance rate of each unit output by S2, and the comprehensive energy consumption of the device output by S3 are compared one by one with the deviation threshold conditions of each sub-library in the anomaly diagnosis library. The over-limit triggering definition is:

[0051]

[0052] in, , , This is the preset benchmark value for the corresponding indicator. , , This is the preset upper limit of the deviation;

[0053] Based on the type of indicator that triggers the deviation exceeding the limit and its location in the unit, an anomaly feature rule that matches the indicator type and unit location is retrieved from the anomaly diagnosis library, and the current deviation change trend of the indicator that triggers the deviation exceeding the limit is matched with the retrieved anomaly feature rule.

[0054] The matching criterion is that the absolute value of the deviation change rate exceeds a preset change rate threshold. ,Right now ,in The corresponding indicator deviation amount that triggers the deviation exceeding the limit:

[0055]

[0056] Combination The sign of the error is used to determine the anomaly type. If a match is found, the anomaly type and anomaly location information corresponding to the anomaly feature rule are output.

[0057] Furthermore: The anomaly location results are correlated, fused, and multidimensionally merged with the data from each unit after the balance calculation converges. The real-time balance status and deviation level are simultaneously displayed through a visual interface, and shift balance reports, daily balance reports, and monthly balance reports are automatically generated according to a preset cycle. Simultaneously, based on the anomaly tracing results, verification prompts or operational adjustment suggestions for anomaly points are output, including:

[0058] Using the name of each unit as the primary key, the anomaly location results are merged with the converged material balance rate, carbon balance rate and energy consumption distribution data of each unit to form an integrated dataset.

[0059] The visual interface displays the balance index values ​​of each unit in sections, and marks each index as either in a normal state or a state of different deviation levels based on whether it exceeds the deviation threshold.

[0060] According to the preset shift, daily and monthly time nodes, the converged unit balance index data and anomaly location results up to the current time point are summarized and organized in three time dimensions: shift, day and month, and corresponding shift balance report, daily balance report and monthly balance report are generated.

[0061] Based on the anomaly type, a preset processing suggestion library is matched. If it is a metering anomaly, an instrument calibration prompt for the corresponding measuring point is output. If it is a material loss, energy loss, or operational fluctuation, a process parameter adjustment suggestion for the corresponding unit is output.

[0062] Compared with the prior art, the present invention has the following beneficial effects: by synchronously feeding back the adaptively corrected data to the material balance model and the energy balance model for joint iterative updates, and using the simultaneous convergence of the three indicators of material balance rate, carbon balance rate and comprehensive energy consumption as a unified criterion, the two models are repeatedly iterated and constrained to each other under the same set of inputs until they converge in coordination, thus eliminating the data inconsistency defect of the two results contradicting each other under the existing discrete calculation mode.

[0063] During the entire process of data correction, the correction values ​​of each measuring point are synchronously coordinated under the overall constraints of mass conservation, component conservation and energy conservation. The calculation residual generated by the input to the equilibrium model after each correction guides the direction and magnitude of the next round of correction in reverse, forming an adaptive optimization process that is globally governed by the process conservation law, eliminating the error that is gradually amplified along the flow path.

[0064] By introducing the enthalpy retention coefficient into the constraint equations for the stepwise transfer of heat from high pressure to medium pressure and from medium pressure to low pressure, and using the inter-stage heat transfer relationship as the boundary condition for steam energy flow balance, the limitation of simply summing the uniform calorific values ​​of steam at each stage while ignoring grade differences is eliminated. As a result, the accuracy of steam loss and comprehensive energy consumption calculation is substantially improved. Attached Figure Description

[0065] Figure 1 This is a schematic diagram of the process of the present invention.

[0066] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0067] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0068] Example 1:

[0069] Reference Figure 1 As shown, a method for online calculation and intelligent deviation diagnosis of material and energy balance in an ethylene plant includes:

[0070] S1. Divide the ethylene unit into cracking, quenching, compression, separation, refrigeration, and utility units, and acquire real-time metering data and component data from the stream flow measurement points, energy flow measurement points, and component analysis measurement points within each unit, including:

[0071] Based on the physical boundaries and material flow relationships of each process unit, the entire ethylene plant process is divided into cracking unit, quenching unit, compression unit, separation unit, refrigeration unit and utility unit.

[0072] Based on the source and destination of the process flow streams within each unit, corresponding material flow measurement points, energy flow measurement points, and component analysis measurement points are determined respectively. Among them, material flow measurement points are used to obtain the flow rate data of feed and discharge, and energy flow measurement points are used to obtain energy consumption and output data.

[0073] Based on the physical boundaries and material flow relationships of each process unit, the entire ethylene plant process is divided into cracking unit, quenching unit, compression unit, separation unit, refrigeration unit, and utility unit. The implementation method is as follows: retrieve the process design documents and piping and instrumentation diagrams of the entire ethylene plant process; read the complete layout information of each process equipment, each connecting pipeline, and each control valve from the process design documents; read the medium type, flow path, and operating parameters of each stream from the piping and instrumentation diagrams; use the geographical area where each major process equipment is located and the plant building as the primary basis for dividing the physical boundaries; mark the independent space occupied by the cracking furnace area, quench tower area, compressor unit area, separation tower group area, refrigeration unit area, and utility facilities area on the plant layout plan.

[0074] The material flow sequence in the process flow is used as the main line for tracing the material flow relationship. Starting from the raw material inlet of the cracking furnace, the path of the material entering the quench tower after the cracked gas leaves the cracking furnace is traced. Then, the path of the material entering the quench unit is traced along the pipeline of the gas exiting the quench tower into the compressor. Then, the path of the material entering the compression unit is traced along the pipeline of the gas exiting the compressor into the separation system. At the same time, the circulation path of the refrigerant between the refrigeration unit and each cooling unit is traced, as well as the distribution and return path of common media such as fuel gas, steam, electricity, and circulating water in the unit.

[0075] The core of the unit division is the set of equipment that undergoes major chemical transformation or physical separation of materials during the circulation process. The cracking furnace and its associated raw material preheating coil, radiant section furnace tube and quench boiler are classified into the cracking unit; the quench tower, quench oil circulation pump and quench water circulation pump are classified into the quench unit; the cracking gas compressor and its inter-stage cooler and inter-stage separator are classified into the compression unit; the deethaner, depropanizer, demethanizer, ethylene distillation tower and propylene distillation tower are classified into the separation unit; the ethylene refrigeration compressor and propylene refrigeration compressor are classified into the refrigeration unit; and the steam distribution station, circulating water station, fuel gas pressure regulating station and power distribution room are classified into the utilities unit.

[0076] Boundary shut-off valves are installed at the internal boundaries of each process unit and on the connecting pipes between units. The start and end points of each unit are determined according to the installation position of the boundary shut-off valves. The division between the pyrolysis unit and the quench unit is completed from the raw material inlet of the pyrolysis unit to the pyrolysis gas inlet of the quench unit. The division between the quench unit and the compression unit is completed from the pyrolysis gas outlet of the quench unit to the compressor inlet of the compression unit. The division between the compression unit and the separation unit is completed from the compressor outlet of the compression unit to the feed inlet of the separation unit. The division between the separation unit and the refrigeration unit is completed from the refrigerant inlet and outlet of the separation unit to the refrigerant supply and return pipes of the refrigeration unit. The division between the utility unit and each process unit is completed from the steam, power, and circulating water output ends of the utility unit to the corresponding receiving ends of each process unit. In this way, six independent and interconnected process units are formed: pyrolysis unit, quench unit, compression unit, separation unit, refrigeration unit, and utility unit.

[0077] Based on the source and destination of the process flow streams within each unit, corresponding material flow measurement points, energy flow measurement points, and component analysis measurement points are determined respectively. The material flow measurement points are used to obtain feed and discharge flow data, while the energy flow measurement points are used to obtain energy consumption and output data.

[0078] For each process unit that has been divided, first read the numbers of all feed pipes entering the unit and all discharge pipes leaving the unit from the piping and instrumentation diagram. Mark each feed pipe and each discharge pipe as an independent process flow. For each marked process flow, read the name of the starting device and the name of the ending device from the piping and instrumentation diagram. The starting device name is the source of the flow and the ending device name is the destination of the flow. Record the source information and destination information in the attribute fields of the flow respectively.

[0079] For a stream originating from an upstream unit or outside the boundary and destined for a device within this unit, a flow measurement point is set on the pipe at the point where the stream enters the boundary of this unit. The flow measurement point is used to obtain the feed flow rate data of the stream entering this unit. For a stream originating from a device within this unit and destined for a downstream unit or outside the boundary, a flow measurement point is set on the pipe at the point where the stream leaves the boundary of this unit. The flow measurement point is used to obtain the discharge flow rate data of the stream leaving this unit. For a stream originating from a device within this unit and destined for another device within this unit, a flow measurement point is set on the pipe connecting the two devices, at a position close to the outlet of the upstream device. The flow measurement point is used to obtain the intermediate flow rate data of the stream circulating within this unit.

[0080] A pipeline for transporting energy medium that provides driving power or heating / cooling energy to a certain process equipment is traced from the source of the energy medium supply to the energy receiving port of the process equipment. An energy flow measurement point is set at the boundary of the energy medium pipeline entering the process unit to obtain energy consumption data of the energy medium entering the unit. A pipeline for recovering waste heat or by-product steam output by a certain process equipment during operation is traced from the energy output port of the process equipment to the boundary of the recovery pipeline leaving the unit. An energy flow measurement point is set at the boundary of the recovery pipeline leaving the unit to obtain energy output data of the energy medium leaving the unit.

[0081] For process streams containing multiple chemical components and whose component changes affect downstream operating conditions, the installation location of the online analyzer that the stream passes through is read from the piping and instrumentation diagram. The location of the online analyzer is determined as the component analysis measurement point. The component analysis measurement point is used to obtain the concentration data of each component in the stream.

[0082] After all logistics measurement points, energy flow measurement points, and component analysis measurement points are determined, the measurement point list for each unit is compiled by summarizing the unit number, unit name, pipeline number, measurement point type, corresponding flow source, and flow destination. The measurement point lists of all units are then merged to form a complete measurement point configuration table covering all six units.

[0083] S2. Based on the laws of conservation of mass, carbon, and components, a material balance model is constructed. Real-time metering data and component data are input into the material balance model. The material balance model performs full-process closed-loop tracking and iterative coupled calculation on all streams corresponding to the material flow points, and outputs the material balance rate and carbon balance rate of each unit, including:

[0084] The material balance model includes a mass balance constraint layer, a carbon balance constraint layer, and a component balance constraint layer;

[0085] Based on the mass balance constraint layer, carbon balance constraint layer, and component balance constraint layer, establish a set of material balance equations covering the entire process, where the balance equations for each unit are combined.

[0086]

[0087]

[0088]

[0089] in, For the mass flow rate of the stream, The mass fraction of carbon in the stream. The first in the flow Mass fraction of chemical components in the middle This represents the total accumulated amount of materials within the unit. This represents the cumulative amount of carbon within a unit. For the first unit Accumulated amount of middle components , These represent the total number of feed and discharge streams, respectively. The total number of chemical components involved in the balance;

[0090] By combining the equations of all units, a material balance model covering the entire process is formed.

[0091] The material balance model described in the above scheme includes a mass balance constraint layer, a carbon balance constraint layer, and a component balance constraint layer. The implementation method is as follows: real-time metering data of all feed streams and discharge streams within each process unit are obtained, and the mass fraction of carbon element and the mass fraction of each chemical component in each stream are obtained from the component analysis measurement points. These data are used as the basic input variables of the material balance model.

[0092] For each process unit, the sum of the mass flow rates of all streams entering the unit is taken as the total input mass of the unit, and the sum of the mass flow rates of all streams leaving the unit is taken as the total output mass of the unit. According to the law of conservation of mass, the total input mass of the unit minus the total output mass equals the rate of change of the material accumulation within the unit, thus forming the mass balance constraint layer of the unit.

[0093] For the same process unit, the total input carbon mass is obtained by multiplying the mass flow rate of all streams entering the unit by their corresponding carbon element mass fractions and summing the results. The total output carbon mass is obtained by multiplying the mass flow rate of all streams leaving the unit by their corresponding carbon element mass fractions and summing the results. According to the law of conservation of carbon, the total input carbon mass minus the total output carbon mass equals the rate of change of the cumulative amount of carbon elements within the unit, thus forming the carbon balance constraint layer of the unit.

[0094] For each chemical component participating in the balance within the unit, the mass flow rate of all streams entering the unit is multiplied by the mass fraction of the chemical component in each stream, and the sum is taken as the total input mass of the unit for that component. The mass flow rate of all streams leaving the unit is multiplied by the mass fraction of the chemical component in each stream, and the sum is taken as the total output mass of the unit for that component. According to the law of conservation of components, the total input mass of the component minus the total output mass equals the rate of change of the cumulative amount of the component within the unit. The above operation is performed on all chemical components participating in the balance one by one to form the component balance constraint layer of the unit.

[0095] The mass balance constraint layer, carbon balance constraint layer and component balance constraint layer of each process unit are arranged according to the flow connection relationship between the units. The output flow of each unit must be used as the input flow of the downstream unit. In this way, the balance constraint layers of all units are connected into a complete constraint system covering the entire process. This constraint system is the material balance model.

[0096] Substitute real-time metering data and component data into the material balance model. Following the sequence of pyrolysis unit, quench unit, compression unit, separation unit, refrigeration unit, and utility unit, starting from the feed stream of the pyrolysis unit, track the mass flow rate and composition data of each material stream as it passes through each unit. Ensure that each stream is recorded as an outlet in its source unit and as an inlet in its destination unit, until all streams are tracked, completing the closed-loop tracking of the entire process.

[0097] Due to measurement deviations in real-time metering data, the balance constraint layers of each unit cannot simultaneously meet the conservation conditions after initial substitution. At this point, iterative coupling calculations are performed on the material balance model. In each iteration, the data of the relevant streams are coordinated and adjusted according to the deviation direction of the balance constraint layers of each unit, so that the output adjustment of the upstream unit is consistent with the input adjustment of the downstream unit. This coordinated adjustment process is repeated until the mass balance constraint layer, carbon balance constraint layer and component balance constraint layer of all units simultaneously reach an acceptable deviation range, and the iteration is stopped.

[0098] After the iterative coupling calculation converges, for each process unit, the ratio of the total output mass to the total input mass of the unit is taken as the material balance rate of the unit, and the ratio of the total output carbon mass to the total input carbon mass of the unit is taken as the carbon balance rate of the unit. The material balance rate and carbon balance rate of the pyrolysis unit, quench unit, compression unit, separation unit, refrigeration unit and utility unit are output separately as the final output results of the material balance model.

[0099] S3. Based on the law of conservation of energy, using steam pressure parameters as the basis for classifying energy flow grade, steam energy flow is divided into three levels according to preset pressure thresholds: high-pressure steam energy flow, medium-pressure steam energy flow, and low-pressure steam energy flow.

[0100] For each level of high-pressure steam energy flow, medium-pressure steam energy flow, and low-pressure steam energy flow, an energy flow balance equation is established for that level of steam. This energy flow balance equation is constrained by the condition that the total supply of that level of steam in each unit equals the sum of the total consumption of that level of steam in each unit and the system losses. A cascade utilization constraint equation is then constructed.

[0101]

[0102]

[0103] in, This stage of steam receives the total heat discharged from the previous stage. The heat generated by the steam generation unit of this grade of steam itself. This refers to the heat released after the steam from the previous stage has been depressurized and is used in the process. and These are the enthalpy retention coefficients when high-pressure steam is depressurized and discharged into medium-pressure and medium-pressure steam is depressurized and discharged into low-pressure, respectively, and 0 < ≤1;

[0104] By combining the energy flow balance equations for each level of steam with the cascade utilization constraint equations, an energy balance model covering the entire steam system is formed.

[0105] The above scheme is implemented as follows: read the design pressure values ​​of all steam pipelines from the steam pipeline instrumentation flow diagram of each process unit, compare each read design pressure value with the preset high pressure threshold, medium pressure threshold and low pressure threshold, steam in steam pipelines with design pressure values ​​greater than or equal to the high pressure threshold is classified as high pressure steam energy flow, steam in steam pipelines with design pressure values ​​greater than or equal to the medium pressure threshold and less than the high pressure threshold is classified as medium pressure steam energy flow, steam in steam pipelines with design pressure values ​​greater than or equal to the low pressure threshold and less than the medium pressure threshold is classified as low pressure steam energy flow, and steam in steam pipelines with design pressure values ​​less than the low pressure threshold is not included in the classification range;

[0106] The high-pressure steam consumption of each unit (cracking unit, quenching unit, compression unit, separation unit, refrigeration unit, and utility unit) is read from the steam consumption statistics table of each unit. The high-pressure steam generated by the waste heat boiler or waste heat boiler in each unit is read from the steam output statistics table of each unit. The difference between the total consumption of this level of steam in all units and the total output of all units is taken as the system loss of high-pressure steam. The energy flow balance equation of high-pressure steam is established. The equation takes the total output of high-pressure steam in all units as equal to the sum of the total consumption of high-pressure steam in all units and the system loss of high-pressure steam as the constraint condition.

[0107] The consumption of medium-pressure steam in each unit is read from the steam consumption statistics table of each unit, and the amount of medium-pressure steam generated by the medium-pressure steam generator in each unit is read from the steam output statistics table of each unit. At the same time, the total heat discharged into the medium-pressure steam network after the high-pressure steam is depressurized and discharged into the medium-pressure steam network after being used by each process equipment is read from the high-pressure steam discharge pipeline process. The total consumption of this level of steam in all units, the loss of the medium-pressure steam system, and the total heat discharged into the medium-pressure steam network after the high-pressure steam is depressurized are taken as the source of the total supply of medium-pressure steam. The energy flow balance equation of medium-pressure steam is established. The equation takes the total supply of medium-pressure steam as equal to the sum of the total consumption of medium-pressure steam in all units and the loss of the medium-pressure steam system as the constraint condition.

[0108] The consumption of low-pressure steam in each unit is read from the steam consumption statistics table of each unit, and the amount of low-pressure steam generated by the low-pressure steam generator in each unit is read from the steam output statistics table of each unit. At the same time, the total heat discharged into the low-pressure steam network after the medium-pressure steam is depressurized and discharged into the low-pressure steam network after being used by each process equipment is read from the condensate discharge pipeline flow of the medium-pressure steam. The total consumption of this level of steam in all units, the loss of the low-pressure steam system, and the total heat discharged into the low-pressure steam network after the medium-pressure steam is depressurized are taken as the source of the total supply of low-pressure steam. The energy flow balance equation of low-pressure steam is established. The equation takes the total supply of low-pressure steam as equal to the sum of the total consumption of low-pressure steam in all units and the loss of the low-pressure steam system as the constraint condition.

[0109] The total heat value of high-pressure steam after pressure reduction and discharge after being used by various process equipment is extracted from the high-pressure steam utilization process. This total heat value is directly used as the input value of the total heat discharged from high-pressure steam into the medium-pressure steam pipeline network in the medium-pressure steam energy flow balance equation, thus forming a cascade utilization constraint relationship from high-pressure steam to medium-pressure steam.

[0110] The total heat value of medium-pressure steam after pressure reduction and discharge after being used by various process equipment is extracted from the step-by-step utilization process of medium-pressure steam. This total heat value is directly used as the input value of the total heat discharged into the low-pressure steam pipeline network by medium-pressure steam after pressure reduction in the low-pressure steam energy flow balance equation, thus forming a step-by-step utilization constraint relationship from medium-pressure steam to low-pressure steam.

[0111] The energy flow balance equations for high-pressure steam, medium-pressure steam, and low-pressure steam are connected in series according to the stepwise transfer order from high pressure to medium pressure and from medium pressure to low pressure. The energy flow balance calculation results of high-pressure steam are used as the external input conditions for the energy flow balance equation of medium-pressure steam, and the energy flow balance calculation results of medium-pressure steam are used as the external input conditions for the energy flow balance equation of low-pressure steam. This couples the energy flow balance equations of the three levels in terms of heat transfer relationship, forming a complete energy balance model covering the entire high-pressure steam network, medium-pressure steam network, and low-pressure steam network.

[0112] The energy balance model is used to perform system-wide energy flow tracing and load distribution calculations on all energy flows corresponding to the energy flow measurement points, outputting comprehensive energy consumption and energy consumption distribution data for each unit, including:

[0113] The energy balance model divides all energy flows into fuel gas energy flows, steam energy flows, electricity energy flows, and circulating water energy flows based on the energy medium type at each energy flow measurement point.

[0114] Using each unit as a node and real-time metering data from each energy flow measurement point as input, reverse tracing is performed along the supply and consumption paths of each energy flow to determine the supply source and consumption destination of each type of energy flow in the cracking unit, quenching unit, compression unit, separation unit, refrigeration unit, and utility unit.

[0115] Based on the process operation load of each unit, the total supply of each energy flow is allocated to each unit according to the consumption ratio of each unit, so as to obtain the consumption of each type of energy flow in each unit.

[0116] The energy consumption of each unit is converted into the same standard energy unit according to the preset conversion factor and then summarized to obtain the overall energy consumption of the device; the energy consumption of each unit is summarized separately to obtain the energy consumption distribution data of each unit.

[0117] The above scheme is implemented as follows: read the energy medium type field from the instrument label of each energy flow measuring point, classify all energy flows corresponding to energy flow measuring points with the medium type field marked as fuel gas into fuel gas energy flows, classify all energy flows corresponding to energy flow measuring points with the medium type field marked as steam into steam energy flows, classify all energy flows corresponding to energy flow measuring points with the medium type field marked as electricity into electricity energy flows, classify all energy flows corresponding to energy flow measuring points with the medium type field marked as circulating water into circulating water energy flows, and energy flows of other medium types are not included in these four classifications.

[0118] Using the six units of cracking unit, quenching unit, compression unit, separation unit, refrigeration unit and utility unit as independent tracking nodes, and the real-time metering data provided by each energy flow measurement point as the starting input value for each energy flow path, starting from the interface position of the terminal energy-consuming equipment corresponding to each energy flow, the energy flow is traced upstream segment by segment in the reverse direction of the energy flow's delivery pipeline, passing through each level of distribution station and each level of pressure regulating device, and finally reaching the source supply equipment of the energy flow. The unit where the source supply equipment is located is determined as the supply source of the energy flow, and the unit where the terminal energy-consuming equipment is located is determined as the consumption destination of the energy flow. This reverse tracking operation is performed on all energy flows one by one to obtain the supply source distribution and consumption destination distribution of each type of energy flow in the six units.

[0119] The feed throughput of the pyrolysis furnace is read from the process operation control system of each unit as the process operation load of the pyrolysis unit, the circulating oil flow rate of the quench tower is read as the process operation load of the quench unit, the speed and inter-stage pressure of the compressor are read as the process operation load of the compression unit, the reflux ratio and top output of the distillation tower are read as the process operation load of the separation unit, the refrigerant circulation rate of the refrigeration compressor is read as the process operation load of the refrigeration unit, and the evaporation rate of the steam boiler and the delivery rate of the circulating water pump are read as the process operation load of the utility unit. The six values ​​read are used as the operating load reference values ​​of each unit. The operating load reference values ​​of all units are summed to obtain the total operating load of the entire unit. The percentage of the operating load reference value of each unit to the total operating load of the entire unit is calculated as the consumption ratio coefficient of that unit.

[0120] For fuel gas energy flows, the total supply of this type of energy flow in all units is multiplied by the consumption ratio coefficient of the cracking unit to obtain the fuel gas consumption of the cracking unit, multiplied by the consumption ratio coefficient of the quenching unit to obtain the fuel gas consumption of the quenching unit, multiplied by the consumption ratio coefficient of the compression unit to obtain the fuel gas consumption of the compression unit, multiplied by the consumption ratio coefficient of the separation unit to obtain the fuel gas consumption of the separation unit, multiplied by the consumption ratio coefficient of the refrigeration unit to obtain the fuel gas consumption of the refrigeration unit, and multiplied by the consumption ratio coefficient of the utility unit to obtain the fuel gas consumption of the utility unit.

[0121] The total supply of steam energy flow in all units is multiplied by the consumption ratio coefficient of each unit to obtain the steam consumption of each of the following units: cracking unit, quenching unit, compression unit, separation unit, refrigeration unit, and utility unit. The total supply of electrical energy flow in all units is multiplied by the consumption ratio coefficient of each unit to obtain the electrical consumption of each of the following units: cracking unit, quenching unit, compression unit, separation unit, refrigeration unit, and utility unit. The total supply of circulating water energy flow in all units is multiplied by the consumption ratio coefficient of each unit to obtain the circulating water consumption of each of the following units: cracking unit, quenching unit, compression unit, separation unit, refrigeration unit, and utility unit.

[0122] Multiply the four types of energy flow consumption of the pyrolysis unit by their respective reduction factors to obtain the four types of energy flow reduction values ​​of the pyrolysis unit. Add the four types of energy flow reduction values ​​together to obtain the reduction value of the pyrolysis unit. Repeat the same reduction and addition operation for the quench unit, compression unit, separation unit, refrigeration unit and utility unit to obtain the reduction value of each unit. Add the reduction values ​​of all six units together to obtain the overall energy consumption of the unit expressed in standard energy measurement units.

[0123] The fuel gas consumption, steam consumption, electricity consumption, and circulating water consumption of the pyrolysis unit are arranged and summarized in the classification order of fuel gas, steam, electricity, and circulating water to form the energy consumption distribution data of the pyrolysis unit. The same summary operation is performed on the quench unit, compression unit, separation unit, refrigeration unit, and utility unit to form the energy consumption distribution data of each unit. These data are used as the final output of the energy balance model for the energy consumption distribution data of each unit.

[0124] S4. An adaptive data correction algorithm is used to perform dynamic filtering and statistical verification correction on the real-time metering data to obtain corrected data. This corrected data is then fed back to the material balance model and energy balance model for simultaneous iterative updates until the balance calculation converges. This includes:

[0125] The adaptive data correction algorithm takes the real-time measurement data of each measuring point as input and classifies the logistics measuring point data, energy flow measuring point data and component analysis measuring point data according to the measuring point type.

[0126] The dynamic filtering is as follows: the real-time measurement data of each measuring point is subjected to sliding window filtering according to the time series to remove the high-frequency noise component caused by the instantaneous fluctuation of the instrument signal, so as to obtain the filtered data of each measuring point;

[0127] The filtered data of each measuring point is compared with its historical statistical distribution characteristics. Data that exceed the preset confidence interval are identified as outliers and removed. The missing data after removal is filled in according to the statistical characteristic value of the historical data of the same period of the measuring point. The measuring point data that continuously shows systematic shifts are corrected by overall translation according to the historical benchmark value of the measuring point to obtain the single correction data of each measuring point.

[0128] The single calibration data of each measuring point are aligned according to the timestamp and then summarized to form a calibration dataset covering all measuring points, which is used as the calibration data.

[0129] The corrected dataset is used as the updated input variable and substituted into the material balance model and energy balance model respectively. The material balance calculation and energy balance calculation are re-performed to obtain the updated material balance rate, carbon balance rate and energy consumption distribution data of each unit.

[0130] The convergence of the equilibrium calculation is determined as follows:

[0131]

[0132] in, For material balance rate, For carbon balance ratio, For the overall energy consumption of the device, This represents the current iteration number. and These are the preset material, carbon balance convergence threshold, and energy consumption convergence threshold, respectively. The value range is 0.001-0.01. The value range is 0.5-1 t / h;

[0133] The formula for determining convergence of the balance calculation is satisfied. The simultaneous iterative calculation of the material balance model and the energy balance model is determined to be converged. The iteration is stopped, and the material balance rate, carbon balance rate and energy consumption distribution data of each unit obtained from the last iteration calculation are used as the final output results.

[0134] The above scheme is implemented as follows: real-time metering data with timestamps is read from the real-time data acquisition system of each measuring point. According to the measuring point type identifier, the measuring point data belonging to the flow meter is classified into logistics measuring point data, the measuring point data belonging to the energy metering instrument is classified into energy flow measuring point data, and the measuring point data belonging to the online analyzer is classified into component analysis measuring point data. The three types of data are stored in three independent data buffers respectively.

[0135] For each measurement point in the logistics measurement data, the measurement values ​​of several consecutive sampling times before the current time of the measurement point are taken to form a fixed-length time series window. All values ​​in the window are arranged in ascending order and the value in the middle position is taken as the filtered value at the current time. The window is slid backward by one sampling interval and the same operation is repeated until all real-time measurement data of the measurement point at all times are processed to obtain the filtered data of the measurement point.

[0136] For energy flow measurement point data and component analysis measurement point data, the same sliding window filtering operation as for material flow measurement point data is performed on each measurement point. The median value of each value in the time series window of the measurement point is taken as the filtered value at that moment. The window is slid through all data point by point to obtain the filtered data of the measurement point.

[0137] Read the measurement data collected under the same historical working conditions as the measurement point from the historical database of the measurement point, calculate the average value of these historical data as the historical benchmark value, calculate the standard deviation value of these historical data, and use the range of the historical benchmark value plus or minus three times the standard deviation value as the preset confidence interval. Mark the data points in the filtered data of the measurement point that exceed the confidence interval as outliers.

[0138] Data points marked as outliers are removed from the filtered data sequence to form gaps. Data values ​​of the measurement point at the same time on each day within the same historical period are read, and the average value of these historical data for the same period is calculated as a statistical feature value. This statistical feature value is then filled into the gap to complete the filling of the missing data.

[0139] Read the overall average value of all filtered data at the measurement point, compare the overall average value with the historical benchmark value of the measurement point, and if the absolute value of the difference between the two is greater than the preset allowable offset, it is determined that there is a systematic offset in the data of the measurement point. Then, shift all filtered data of the measurement point in the direction of the difference between the overall average value and the historical benchmark value, that is, subtract the difference from each filtered data to obtain the data sequence after overall shift correction.

[0140] For measurement points that do not exhibit systematic shifts, their filtered data is directly used as the single-correction data for that measurement point. For measurement points that exhibit systematic shifts and have undergone overall translation correction, their translation-corrected data sequence is used as the single-correction data for that measurement point, thus obtaining the single-correction data for each measurement point.

[0141] Align all single calibration data of all measuring points according to their original timestamps, so that the calibration data of material flow measuring points, energy flow measuring points and component analysis measuring points under the same timestamp are combined into a complete record. Summarize the records under all timestamps to form a calibration dataset covering all measuring points. This calibration dataset is the calibration data.

[0142] The corrected data is used as the updated input variable and substituted into the material balance model. The whole process closed-loop tracking and iterative coupling calculation is re-executed to obtain the updated material balance rate and carbon balance rate of each unit. At the same time, the corrected data is used as the updated input variable and substituted into the energy balance model. The whole system energy flow traceability and load distribution calculation is re-executed to obtain the updated energy consumption distribution data of each unit.

[0143] The material balance rate, carbon balance rate and overall energy consumption of each unit obtained in this iteration are compared with the corresponding values ​​obtained in the previous iteration. If the change in the material balance rate of each unit, the change in the carbon balance rate of each unit and the change in the overall energy consumption of the unit are all less than the preset allowable change, then the balance calculation is determined to have converged and the iterative calculation is stopped.

[0144] If the change in any indicator in the comparison results is greater than or equal to its corresponding preset allowable change, it is determined that the balance calculation has not yet converged. The updated material balance rate, carbon balance rate, and energy consumption distribution data of each unit obtained in this iteration are used as the new input state, and the calculation process of substituting the correction data into the material balance model and energy balance model is executed again. The above comparison and judgment are repeated until the change in all indicators is less than their respective preset allowable change. After the balance calculation converges, the material balance rate, carbon balance rate, and energy consumption distribution data of each unit obtained in the last iteration are used as the final output result of the joint iterative update of the material balance model and energy balance model. This final output result will not participate in subsequent iterations.

[0145] S5. Construct an anomaly diagnosis library based on preset deviation thresholds and anomaly characteristic rules. Perform threshold matching and comparison between the material balance rate, carbon balance rate, and comprehensive energy consumption and the anomaly diagnosis library. When any indicator triggers an excessive deviation, call the anomaly diagnosis library to trace the anomaly source and output the anomaly type and anomaly location results, including:

[0146] For each type of anomaly, corresponding deviation threshold conditions and anomaly feature rules are set, and the deviation threshold conditions, the anomaly feature rules, and the corresponding anomaly types and anomaly location information are associated and stored to form an anomaly diagnosis library that includes a metering anomaly diagnosis sub-library, a material loss diagnosis sub-library, an energy loss diagnosis sub-library, and an operation fluctuation diagnosis sub-library.

[0147] The deviation threshold conditions include the upper limit values ​​of material balance rate deviation, carbon balance rate deviation, and comprehensive energy consumption deviation corresponding to each anomaly type; the anomaly feature rules include the trend characteristics of material balance rate deviation, carbon balance rate deviation, and comprehensive energy consumption deviation corresponding to each anomaly type.

[0148] The material balance rate and carbon balance rate of each unit output by S2, and the comprehensive energy consumption of the device output by S3 are compared one by one with the deviation threshold conditions of each sub-library in the anomaly diagnosis library. The over-limit triggering definition is:

[0149]

[0150] in, , , This is the preset benchmark value for the corresponding indicator. , , This is the preset upper limit of the deviation;

[0151] Based on the type of indicator that triggers the deviation exceeding the limit and its location in the unit, an anomaly feature rule that matches the indicator type and unit location is retrieved from the anomaly diagnosis library, and the current deviation change trend of the indicator that triggers the deviation exceeding the limit is matched with the retrieved anomaly feature rule.

[0152] The matching criterion is that the absolute value of the deviation change rate exceeds a preset change rate threshold. ,Right now ,in The corresponding indicator deviation amount that triggers the deviation exceeding the limit:

[0153]

[0154] Combination The sign of the error is used to determine the anomaly type. If a match is found, the anomaly type and anomaly location information corresponding to the anomaly feature rule are output.

[0155] The above scheme is implemented as follows: read all previously recorded material balance rate deviation events, carbon balance rate deviation events, and comprehensive energy consumption deviation events from the historical operation database of the ethylene unit; read the final diagnosis conclusion of each deviation event from the corresponding operation log; classify events that belong to metering instrument failure in the final diagnosis conclusion into metering anomaly type; classify events that belong to material leakage or material loss into material loss type; classify events that belong to steam leakage, excessive heat dissipation, or power loss into energy loss type; and classify events that belong to load change or improper adjustment of operating parameters into operation fluctuation type, thereby determining four types of anomalies.

[0156] For the type of metering anomaly, the absolute values ​​of the differences between the material balance rate and the preset benchmark value, the absolute values ​​of the differences between the carbon balance rate and the preset benchmark value, and the absolute values ​​of the differences between the comprehensive energy consumption and the preset benchmark value of each unit are read from historical deviation events. The minimum value among these absolute values ​​is taken as the upper limit of the deviation of the material balance rate, the upper limit of the deviation of the carbon balance rate, and the upper limit of the deviation of the comprehensive energy consumption. The continuous high-frequency oscillation of the material balance rate of each unit over time is taken as the deviation trend feature of the metering anomaly. The irregular jumping of the carbon balance rate over time and the random fluctuation of the comprehensive energy consumption over time are taken as the anomaly feature rules of this type.

[0157] For material loss types, the material balance rate deviation value and carbon balance rate deviation value of each unit are read from the historical deviation events when this type is triggered each time. The minimum value among these deviation values ​​is taken as the upper limit value of material balance rate deviation and carbon balance rate deviation. The upper limit value of comprehensive energy consumption deviation for this type is set to infinity. The unidirectional continuous decline of material balance rate and carbon balance rate over time in each unit are taken as abnormal feature rules of material loss.

[0158] For each type of energy loss, the comprehensive energy consumption deviation value of each unit is read from the historical deviation events. The minimum value among these deviation values ​​is taken as the upper limit of the comprehensive energy consumption deviation. The upper limit of the material balance rate deviation and the upper limit of the carbon balance rate deviation for this type are both set to infinity. The unidirectional continuous upward change of comprehensive energy consumption over time is taken as the abnormal characteristic rule of energy loss.

[0159] For operational fluctuation types, the material balance rate deviation, carbon balance rate deviation, and comprehensive energy consumption deviation values ​​of each unit are read from historical deviation events at the time of each trigger. The minimum value among these deviation values ​​is taken as the upper limit of material balance rate deviation, upper limit of carbon balance rate deviation, and upper limit of comprehensive energy consumption deviation. The pulse-like change pattern of material balance rate, carbon balance rate, and comprehensive energy consumption of each unit over time, which first rises and then falls or falls and then falls, is taken as the abnormal characteristic rule of operational fluctuation.

[0160] The metering anomaly types and their corresponding upper limits for material balance rate deviation, carbon balance rate deviation, and comprehensive energy consumption deviation, as well as the deviation trend characteristics and anomaly location information, are associated and stored in the same data table to form a metering anomaly diagnosis sub-library. The material loss types and their corresponding deviation threshold conditions, anomaly characteristic rules, and anomaly location information are associated and stored in the second data table to form a material loss diagnosis sub-library. The energy loss types and their corresponding deviation threshold conditions, anomaly characteristic rules, and anomaly location information are associated and stored in the third data table to form an energy loss diagnosis sub-library. The operation fluctuation types and their corresponding deviation threshold conditions, anomaly characteristic rules, and anomaly location information are associated and stored in the fourth data table to form an operation fluctuation diagnosis sub-library. The four data tables are merged to form an anomaly diagnosis library.

[0161] Read the current material balance rate and carbon balance rate values ​​of each unit from the material balance rate and carbon balance rate output by the material balance model, including the cracking unit, quenching unit, compression unit, separation unit, refrigeration unit, and utility unit. Read the current comprehensive energy consumption value of the unit from the comprehensive energy consumption output by the energy balance model. Subtract the preset material balance rate benchmark value of the unit from the material balance rate of each unit and take the absolute value to obtain the material balance rate deviation of the unit. Subtract the preset carbon balance rate benchmark value of the unit from the carbon balance rate of each unit and take the absolute value to obtain the carbon balance rate deviation of the unit. Subtract the comprehensive energy consumption of the unit from the preset comprehensive energy consumption benchmark value and take the absolute value to obtain the comprehensive energy consumption deviation.

[0162] The material balance rate deviation of each unit is compared one by one with the upper limit of the material balance rate deviation recorded in each sub-library of the anomaly diagnosis library. The carbon balance rate deviation of each unit is compared one by one with the upper limit of the carbon balance rate deviation recorded in each sub-library of the anomaly diagnosis library. The comprehensive energy consumption deviation is compared with the upper limit of the comprehensive energy consumption deviation recorded in each sub-library of the anomaly diagnosis library. When the material balance rate deviation of a unit is greater than the upper limit of the material balance rate deviation of the sub-library it is compared with, it is determined that the indicator triggers an over-limit deviation for that sub-library. When the carbon balance rate deviation of a unit is greater than the upper limit of the carbon balance rate deviation of the sub-library it is compared with, it is determined that the indicator triggers an over-limit deviation for that sub-library. When the comprehensive energy consumption deviation is greater than the upper limit of the comprehensive energy consumption deviation of the sub-library it is compared with, it is determined that the indicator triggers an over-limit deviation for that sub-library.

[0163] Based on the type of indicator that triggers the deviation exceeding the limit and the unit location of the indicator, search the anomaly diagnosis library for anomaly feature rules that match the indicator type and unit location. If the trigger is the material balance rate deviation exceeding the limit of the pyrolysis unit, retrieve the deviation change trend feature corresponding to the material balance rate of the pyrolysis unit from the anomaly diagnosis library. If the trigger is the overall energy consumption deviation exceeding the limit of the unit, retrieve the deviation change trend feature corresponding to the overall energy consumption from the anomaly diagnosis library.

[0164] The historical values ​​of the indicator that triggered the deviation limit were read from the real-time data sequence for multiple consecutive moments before the current moment. These historical values ​​were arranged in chronological order and the difference between each adjacent moment was calculated. The average of all the differences was taken as the current deviation change rate of the indicator. The absolute value of the current deviation change rate was compared with the preset change rate threshold. If the absolute value was greater than the preset change rate threshold, the current deviation change trend was determined to match the retrieved abnormal feature rule. If the absolute value was less than or equal to the preset change rate threshold, the match was determined to be unsuccessful.

[0165] After a successful match, the sign of the deviation change rate is read. If the deviation change rate is positive and the value of the indicator increases over time, the deviation trend is determined to be upward. If the deviation change rate is negative and the value of the indicator decreases over time, the deviation trend is determined to be downward. The anomaly type corresponding to the successfully matched anomaly feature rule and the anomaly location information associated with the anomaly type are combined together as the anomaly tracing result. The anomaly tracing result includes a clear anomaly type name and the unit location or measurement point location where the anomaly occurred.

[0166] S6. The anomaly location results are correlated, fused, and multidimensionally merged with the data from each unit after the balance calculation converges. The real-time balance status and deviation level are displayed synchronously through a visual interface. Shift balance reports, daily balance reports, and monthly balance reports are automatically generated according to a preset cycle. Simultaneously, based on the anomaly tracing results, verification prompts or operational adjustment suggestions for anomaly points are output, including:

[0167] Using the name of each unit as the primary key, the anomaly location results are merged with the converged material balance rate, carbon balance rate and energy consumption distribution data of each unit to form an integrated dataset.

[0168] The visual interface displays the balance index values ​​of each unit in sections, and marks each index as either in a normal state or a state of different deviation levels based on whether it exceeds the deviation threshold.

[0169] According to the preset shift, daily and monthly time nodes, the converged unit balance index data and anomaly location results up to the current time point are summarized and organized in three time dimensions: shift, day and month, and corresponding shift balance report, daily balance report and monthly balance report are generated.

[0170] Based on the anomaly type, a preset processing suggestion library is matched. If it is a metering anomaly, an instrument calibration prompt for the corresponding measuring point is output. If it is a material loss, energy loss, or operational fluctuation, a process parameter adjustment suggestion for the corresponding unit is output.

[0171] The above steps are implemented as follows: Read the anomaly type name and the unit location or measurement point location where the anomaly occurred from the anomaly diagnosis library; read the material balance rate, carbon balance rate and energy consumption distribution data of each unit from the final output of the material balance model and energy balance model after simultaneous iteration and convergence; use the names of the six units—cracking unit, quenching unit, compression unit, separation unit, refrigeration unit and utility unit—as the association primary key; merge the records belonging to the cracking unit in the anomaly location results with the converged cracking unit material balance rate, carbon balance rate and energy consumption distribution data into a complete cracking unit record; merge the records belonging to the quenching unit in the anomaly location results with the corresponding data of the converged quenching unit into a complete quenching unit record; repeat the same merging operation for the compression unit, separation unit, refrigeration unit and utility unit; and gather the six complete unit records together to form an integrated dataset.

[0172] The material balance rate and carbon balance rate of the pyrolysis unit, as well as the comprehensive energy consumption value from the energy consumption distribution data, are read from the integrated dataset. A pyrolysis unit display area is set up in the upper left area of ​​the visualization interface, displaying the material balance rate, carbon balance rate, and comprehensive energy consumption values ​​of the unit in this area. The corresponding three values ​​of the quench unit are read from the integrated dataset and displayed in the quench unit display area in the upper right area of ​​the visualization interface. The corresponding three values ​​of the compression unit are read from the integrated dataset and displayed in the compression unit display area in the middle left of the visualization interface. The corresponding three values ​​of the separation unit are read from the integrated dataset and displayed in the separation unit display area in the middle right of the visualization interface. The corresponding three values ​​of the refrigeration unit are read from the integrated dataset and displayed in the refrigeration unit display area in the lower left of the visualization interface. The corresponding three values ​​of the utility unit are read from the integrated dataset and displayed in the utility unit display area in the lower right of the visualization interface.

[0173] The material balance rate value in the display partition of the pyrolysis unit is compared with the preset material balance rate deviation threshold of the unit. If the value does not exceed the deviation threshold, the background color of the value is marked in green and labeled with the text "normal status". If the value exceeds the deviation threshold but the exceedance is less than twice the deviation threshold, the background color of the value is marked in yellow and labeled with the text "first-level deviation status". If the value exceeds the deviation threshold and the exceedance is greater than or equal to twice the deviation threshold, the background color of the value is marked in red and labeled with the text "second-level deviation status". The same comparison and color marking operation is performed on the carbon balance rate value and the comprehensive energy consumption value in the display partition of the pyrolysis unit. The same threshold comparison and color marking operation is performed on each index value in the display partition of the quench unit, compression unit, separation unit, refrigeration unit and utility unit. The display content of all partitions is updated periodically according to the preset refresh cycle.

[0174] Read the material balance rate, carbon balance rate, and energy consumption distribution data of each unit at the current moment, as well as the anomaly location results, from the integrated dataset. Use the start and end times of the shift to which the current moment belongs as the range boundary of the shift time dimension. Summarize the above data of all moments within this range into a table. Each row in the table corresponds to a unit, and each column lists the average material balance rate, average carbon balance rate, and total energy consumption of the unit in the shift, as well as the anomaly type and anomaly location information that occurred in the shift. Generate a shift balance report from this table.

[0175] Using the midnight and midnight of the current natural day as the boundary of the daily time dimension, the material balance rate, carbon balance rate, and energy consumption distribution data of each unit at all times within the range, as well as the anomaly location results, are summarized into a daily balance report. Each row in the report corresponds to a unit, and each column lists the average material balance rate, average carbon balance rate, and total energy consumption of the unit in the natural day, as well as all anomaly types and anomaly location information that occurred in the natural day.

[0176] Using the first day of the current natural month at midnight and the last day at midnight as the boundary of the monthly time dimension, the material balance rate, carbon balance rate, and energy consumption distribution data of each unit at all times within the range, as well as the anomaly location results, are summarized into a monthly balance report. Each row in the report corresponds to a unit, and each column lists the average material balance rate, average carbon balance rate, and total energy consumption of the unit in the natural month, as well as all anomaly types and anomaly location information that occurred in the natural month. The shift balance report, daily balance report, and monthly balance report are stored in the report database in the order of their generation time.

[0177] The anomaly type name is retrieved from the anomaly tracing results. If the anomaly type name is a measurement anomaly, the instrument calibration operation instructions associated with the corresponding measurement point number are retrieved from the preset processing suggestion library using the measurement point number as the search keyword. These instrument calibration operation instructions are then output as instrument calibration prompts. If the anomaly type name is material loss, the operation instructions for material sealing checks and feed flow rate adjustments associated with the corresponding unit name are retrieved from the processing suggestion library using the unit name as the search keyword. These operation instructions are then output as process parameter adjustment suggestions for that unit. If the anomaly type name is energy loss, the operation instructions for material loss are retrieved from the preset processing suggestion library using the measurement point number as the search keyword. The corresponding unit name is used as the search keyword to find the operation instructions for steam trap inspection and insulation layer repair associated with that unit name in the processing suggestion library. These operation instructions are then output as process parameter adjustment suggestions for that unit. If the anomaly type name is "operational fluctuation", the corresponding unit name is used as the search keyword to find the operation instructions for operation parameter return and load stabilization adjustment associated with that unit name in the processing suggestion library. These operation instructions are then output as process parameter adjustment suggestions for that unit. All verification prompts and process parameter adjustment suggestions are displayed together with the corresponding unit name and anomaly type in the side information bar of the visualization interface.

[0178] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A method for online calculation and intelligent deviation diagnosis of material and energy balance in an ethylene plant, characterized in that, Includes the following steps: S1. Divide the ethylene unit into cracking, quenching, compression, separation, refrigeration and utility units, and obtain real-time metering data and component data of material flow measurement points, energy flow measurement points and component analysis measurement points in each unit; S2. Construct a material balance model based on the conservation laws of mass, carbon elements and components. Input real-time metering data and component data into the material balance model, perform full-process closed-loop tracking and iterative coupling calculation on all streams, and output the material balance rate and carbon balance rate of each unit. S3. Based on the law of conservation of energy, classify the energy flow grades of high, medium and low pressure steam, establish energy flow balance and cascade utilization constraint equations for multi-level steam, construct an energy balance model, perform full-system energy flow tracing and load distribution calculations for all energy flows, and output comprehensive energy consumption and energy consumption distribution data of each unit. S4. The real-time metering data is dynamically filtered and statistically verified and corrected using an adaptive data correction algorithm to obtain corrected data. The corrected data is then fed back to the material balance model and energy balance model for simultaneous iterative updates until the balance calculation converges. S5. Construct an anomaly diagnosis library based on preset deviation thresholds and anomaly feature rules. Match the material balance rate, carbon balance rate, and comprehensive energy consumption with the anomaly diagnosis library for threshold matching. When any indicator triggers a deviation exceeding the limit, call the anomaly diagnosis library to trace the source of the anomaly and output the anomaly type and anomaly location result. S6. The anomaly location results are correlated, fused, and multidimensionally merged with the data of each unit after the balance calculation converges. The real-time balance status and deviation level are displayed synchronously through a visual interface. Shift, daily, and monthly balance reports are automatically generated according to a preset cycle. Verification prompts or operation adjustment suggestions are output based on the anomaly tracing results.

2. The method for online calculation and intelligent deviation diagnosis of material and energy balance in an ethylene plant as described in claim 1, characterized in that, The ethylene unit is divided into cracking, quenching, compression, separation, refrigeration, and utility units. Real-time metering data and component data are obtained from the stream flow measurement points, energy flow measurement points, and component analysis measurement points within each unit, including: Based on the physical boundaries and material flow relationships of each process unit, the entire ethylene plant process is divided into cracking unit, quenching unit, compression unit, separation unit, refrigeration unit and utility unit. Based on the source and destination of the process flow streams within each unit, corresponding material flow measurement points, energy flow measurement points, and component analysis measurement points are determined respectively. Among them, material flow measurement points are used to obtain the flow rate data of feed and discharge, and energy flow measurement points are used to obtain energy consumption and output data.

3. The method for online calculation and intelligent deviation diagnosis of material and energy balance in an ethylene plant as described in claim 2, characterized in that, A material balance model is constructed based on the laws of conservation of mass, carbon, and components. Real-time metering data and component data are input into the material balance model. The model performs full-process closed-loop tracking and iterative coupled calculations on all streams corresponding to the material flow points, outputting the material balance rate and carbon balance rate of each unit, including: The material balance model includes a mass balance constraint layer, a carbon balance constraint layer, and a component balance constraint layer. Based on the mass balance constraint layer, carbon balance constraint layer, and component balance constraint layer, establish a set of material balance equations covering the entire process, where the balance equations for each unit are combined. in, For the mass flow rate of the stream, The mass fraction of carbon in the stream. The first in the flow Mass fraction of chemical components in the middle This represents the total accumulated amount of materials within the unit. This represents the cumulative amount of carbon within a unit. For the first unit Cumulative amount of components in the group , These represent the total number of feed and discharge streams, respectively. The total number of chemical components involved in the balance; By combining the equations of all units, a material balance model covering the entire process is formed.

4. The method for online calculation and intelligent deviation diagnosis of material and energy balance in an ethylene plant as described in claim 3, characterized in that, The energy balance model is used to perform system-wide energy flow tracing and load allocation calculations on all energy flows corresponding to the energy flow measurement points, outputting comprehensive energy consumption and energy consumption distribution data for each unit, including: The energy balance model divides all energy flows into fuel gas energy flows, steam energy flows, electricity energy flows, and circulating water energy flows based on the energy medium type at each energy flow measurement point. Using each unit as a node and real-time metering data from each energy flow measurement point as input, reverse tracing is performed along the supply and consumption paths of each energy flow to determine the supply source and consumption destination of each type of energy flow in the cracking unit, quenching unit, compression unit, separation unit, refrigeration unit, and utility unit. Based on the process operation load of each unit, the total supply of each energy flow is allocated to each unit according to the consumption ratio of each unit, so as to obtain the consumption of each type of energy flow in each unit. The energy consumption of each unit is converted into the same standard energy unit according to the preset conversion factor and then summarized to obtain the overall energy consumption of the device; the energy consumption of each unit is summarized separately to obtain the energy consumption distribution data of each unit.

5. The method for online calculation and intelligent deviation diagnosis of material and energy balance in an ethylene plant as described in claim 4, characterized in that, Based on the law of conservation of energy, high, medium, and low-pressure steam energy flow grades are classified according to steam pressure levels. Constraint equations for energy flow balance and cascade utilization of multi-grade steam are established, and an energy balance model is constructed, including: Based on the law of conservation of energy, steam pressure parameters are used as the basis for classifying energy flow grade. Steam energy flow is divided into three levels according to preset pressure thresholds: high-pressure steam energy flow, medium-pressure steam energy flow, and low-pressure steam energy flow. For each level of high-pressure steam energy flow, medium-pressure steam energy flow, and low-pressure steam energy flow, an energy flow balance equation is established for that level of steam. This energy flow balance equation is constrained by the condition that the total supply of that level of steam in each unit equals the sum of the total consumption of that level of steam in each unit and the system losses. A cascade utilization constraint equation is then constructed. in, This stage of steam receives the total heat discharged from the previous stage. The heat generated by the steam generation unit of this grade of steam itself. This refers to the heat released after the steam from the previous stage has been depressurized and is used in the process. and These are the enthalpy retention coefficients when high-pressure steam is depressurized and discharged into medium-pressure and medium-pressure steam is depressurized and discharged into low-pressure, respectively, and 0 < ≤1; By combining the energy flow balance equations for each level of steam with the cascade utilization constraint equations, an energy balance model covering the entire steam system is formed.

6. The method for online calculation and intelligent deviation diagnosis of material and energy balance in an ethylene plant as described in claim 4, characterized in that, An adaptive data correction algorithm is used to perform dynamic filtering and statistical verification on the real-time metering data to obtain corrected data. This corrected data is then fed back to the material balance model and energy balance model for simultaneous iterative updates until the balance calculation converges. This process includes: The adaptive data correction algorithm takes the real-time measurement data of each measuring point as input and classifies the logistics measuring point data, energy flow measuring point data and component analysis measuring point data according to the measuring point type. The dynamic filtering is as follows: the real-time measurement data of each measuring point is subjected to sliding window filtering according to the time series to remove the high-frequency noise component caused by the instantaneous fluctuation of the instrument signal, so as to obtain the filtered data of each measuring point; The filtered data of each measuring point is compared with its historical statistical distribution characteristics. Data that exceed the preset confidence interval are identified as outliers and removed. The missing data after removal is filled in according to the statistical characteristic value of the historical data of the same period of the measuring point. The measuring point data that continuously shows systematic shifts are corrected by overall translation according to the historical benchmark value of the measuring point to obtain the single correction data of each measuring point. The single calibration data of each measuring point are aligned according to the timestamp and then summarized to form a calibration dataset covering all measuring points, which is used as the calibration data. The corrected dataset is used as the updated input variable and substituted into the material balance model and energy balance model respectively. The material balance calculation and energy balance calculation are re-performed to obtain the updated material balance rate, carbon balance rate and energy consumption distribution data of each unit. The convergence of the equilibrium calculation is determined as follows: in, For material balance rate, For carbon balance rate, For the overall energy consumption of the device, This represents the current iteration number. and These are the preset material, carbon balance convergence threshold, and energy consumption convergence threshold, respectively. The value range is 0.001-0.

01. The value range is 0.5-1 t / h; The formula for determining convergence of the balance calculation is satisfied. The simultaneous iterative calculation of the material balance model and the energy balance model is determined to be converged. The iteration is stopped, and the material balance rate, carbon balance rate and energy consumption distribution data of each unit obtained from the last iteration calculation are used as the final output results.

7. The method for online calculation and intelligent deviation diagnosis of material and energy balance in an ethylene plant as described in claim 4, characterized in that, An anomaly diagnosis library is constructed based on preset deviation thresholds and anomaly characteristic rules. Material balance rate, carbon balance rate, and comprehensive energy consumption are compared against the anomaly diagnosis library using threshold matching. When any indicator triggers an excessive deviation, the anomaly diagnosis library is invoked to trace the anomaly source, outputting the anomaly type and anomaly location results, including: For each type of anomaly, corresponding deviation threshold conditions and anomaly feature rules are set, and the deviation threshold conditions, the anomaly feature rules, and the corresponding anomaly types and anomaly location information are associated and stored to form an anomaly diagnosis library that includes a metering anomaly diagnosis sub-library, a material loss diagnosis sub-library, an energy loss diagnosis sub-library, and an operation fluctuation diagnosis sub-library. The deviation threshold conditions include the upper limit values ​​of material balance rate deviation, carbon balance rate deviation, and comprehensive energy consumption deviation corresponding to each anomaly type; the anomaly feature rules include the trend characteristics of material balance rate deviation, carbon balance rate deviation, and comprehensive energy consumption deviation corresponding to each anomaly type. The material balance rate and carbon balance rate of each unit output by S2, and the comprehensive energy consumption of the device output by S3 are compared one by one with the deviation threshold conditions of each sub-library in the anomaly diagnosis library. The over-limit triggering definition is: in, , , This is the preset benchmark value for the corresponding indicator. , , This is the preset upper limit of the deviation; Based on the type of indicator that triggers the deviation exceeding the limit and its location in the unit, an anomaly feature rule that matches the indicator type and unit location is retrieved from the anomaly diagnosis library, and the current deviation change trend of the indicator that triggers the deviation exceeding the limit is matched with the retrieved anomaly feature rule. The matching criterion is that the absolute value of the deviation change rate exceeds a preset change rate threshold. ,Right now ,in The corresponding indicator deviation amount that triggers the deviation exceeding the limit: Combination The sign of the error is used to determine the anomaly type. If a match is found, the anomaly type and anomaly location information corresponding to the anomaly feature rule are output.

8. The method for online calculation and intelligent deviation diagnosis of material and energy balance in an ethylene plant as described in claim 4, characterized in that, The anomaly location results are correlated, fused, and multidimensionally merged with the data from each unit after the balance calculation converges. The real-time balance status and deviation level are simultaneously displayed through a visual interface. Shift balance reports, daily balance reports, and monthly balance reports are automatically generated according to a preset cycle. Simultaneously, based on the anomaly tracing results, verification prompts or operational adjustment suggestions for anomaly points are output, including: Using the name of each unit as the primary key, the anomaly location results are merged with the converged material balance rate, carbon balance rate and energy consumption distribution data of each unit to form an integrated dataset. The visual interface displays the balance index values ​​of each unit in sections, and marks each index as either in a normal state or a state of different deviation levels based on whether it exceeds the deviation threshold. According to the preset shift, daily and monthly time nodes, the converged unit balance index data and anomaly location results up to the current time point are summarized and organized in three time dimensions: shift, day and month, and corresponding shift balance report, daily balance report and monthly balance report are generated. Based on the anomaly type, a preset processing suggestion library is matched. If it is a metering anomaly, an instrument calibration prompt for the corresponding measuring point is output. If it is a material loss, energy loss, or operational fluctuation, a process parameter adjustment suggestion for the corresponding unit is output.