A method for liquid level measurement and volume calculation based on multi-parameter dynamic compensation

CN122306194APending Publication Date: 2026-06-30HUBEI EMERGENCY IND TECH RES INST CO LTD +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HUBEI EMERGENCY IND TECH RES INST CO LTD
Filing Date
2026-04-17
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

Existing liquid level measurement technologies mainly rely on a single liquid level value, which is difficult to reflect the structural characteristics of the liquid in spatial distribution. Furthermore, they are easily affected by noise, local anomalies, and dynamic changes under complex working conditions, resulting in large fluctuations in measurement results. They also lack modeling of the spatial connectivity of the liquid and its temporal evolution process, which affects the accuracy and stability of liquid level measurement and volume calculation results.

Method used

A multi-parameter dynamic compensation method is adopted. By collecting liquid level sensing data, temperature parameters, and pressure parameters, a compensated liquid level data sequence is generated. The target container is divided into spatial units, and a set of liquid occupancy states and topology are constructed. Connectivity analysis and dynamic updates are performed to extract the stable liquid space occupancy structure under stability conditions, thereby realizing liquid level measurement and volume calculation.

Benefits of technology

It improves the accuracy and stability of liquid level measurement, enhances the adaptability to complex working conditions, reduces the impact of local measurement errors and environmental disturbances, and achieves spatial consistency and temporal stability between liquid level measurement and volume calculation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122306194A_ABST
    Figure CN122306194A_ABST
Patent Text Reader

Abstract

This invention discloses a method for liquid level measurement and volume calculation based on multi-parameter dynamic compensation, comprising the following steps: collecting liquid level sensing data and parameters within a target container to generate a standardized state dataset; performing multi-parameter coupling correction to generate a compensated liquid level data sequence; performing liquid occupancy state determination to generate a set of spatial units and a set of liquid occupancy states; performing connectivity analysis to generate a liquid spatial occupancy topology; performing dynamic updates to extract stable liquid spatial occupancy structures; extracting the upper boundary position of the liquid, performing volume accumulation, and generating liquid level measurement and volume calculation results. This invention employs spatial occupancy topology and dynamic compensation methods to achieve liquid level measurement and volume calculation, offering advantages such as high accuracy and strong stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of liquid level measurement and volume calculation, and in particular to a method for liquid level measurement and volume calculation based on multi-parameter dynamic compensation. Background Technology

[0002] Existing liquid level measurement technologies mainly acquire liquid level sensing data through liquid level sensors, and then correct the measurement results by combining temperature, pressure, or medium parameters. The volume is then calculated by using a preset function relationship or a lookup table. This type of method usually focuses on processing a single liquid level value, emphasizing the correction of sensing errors, and is widely used in scenarios such as tank monitoring and industrial process control.

[0003] Existing technologies are mostly based on point-value measurement and static correction methods, which are difficult to reflect the structural characteristics of liquids in spatial distribution. Furthermore, they are easily affected by noise, local anomalies, and dynamic changes under complex working conditions, resulting in large fluctuations in measurement results. At the same time, the lack of modeling of the spatial connectivity of liquids and their temporal evolution process makes it impossible to effectively identify stable state structures, thereby affecting the accuracy and stability of liquid level measurement and volume calculation results. Summary of the Invention

[0004] One objective of this invention is to propose a liquid level measurement and volume calculation method based on multi-parameter dynamic compensation. This invention uses spatial occupancy topology and dynamic compensation methods to achieve liquid level measurement and volume calculation, which has the advantages of high accuracy and strong stability.

[0005] A liquid level measurement and volume calculation method based on multi-parameter dynamic compensation according to an embodiment of the present invention includes the following steps: Collect liquid level sensor data, as well as temperature, pressure, and medium parameters inside the target container, and preprocess them to generate a standardized state dataset; Using a standardized state dataset, multi-parameter coupling correction is performed on the liquid level sensing data. The influence of each parameter is calculated and superimposed to compensate, generating a compensated liquid level data sequence. Based on the compensation liquid level data sequence, the target container is divided into multiple spatial units, and the liquid occupancy status is determined for each spatial unit to generate a set of spatial units and a set of liquid occupancy statuses. By combining the adjacency relationships between spatial units, a connectivity analysis is performed on the spatial units in the liquid-occupied state to generate a liquid-occupied topology. Within a continuous time window, the topology of liquid space occupancy is dynamically updated to generate a sequence of liquid space occupancy evolution structures, and stable liquid space occupancy structures that meet the stability conditions are extracted from the sequence of liquid space occupancy evolution structures. The upper boundary position of the liquid is extracted from the spatial distribution boundary of the stable structure occupied by the liquid space, and the volume accumulation is performed on the spatial unit in the liquid-occupied state to generate liquid level measurement and volume calculation results.

[0006] Optionally, the preprocessing specifically includes data alignment, anomaly handling, missing data handling, denoising, normalization, and temporal reconstruction.

[0007] Optionally, the generation of the compensation liquid level data sequence specifically includes: Liquid level sensing data, temperature parameters, pressure parameters, and medium parameters are extracted from the standardized state dataset and arranged in chronological order to generate a multi-parameter synchronous data sequence. For multi-parameter synchronous data sequences, the single-parameter influence of temperature, pressure and medium parameters on liquid level sensing data is calculated respectively, generating temperature influence sequence, pressure influence sequence and medium influence sequence; Coupling processing is performed on the temperature influence sequence, pressure influence sequence, and medium influence sequence to generate a multi-parameter coupled influence sequence; The multi-parameter coupling influence sequence is superimposed with the liquid level sensing data, and dynamic compensation calculation is performed on the liquid level sensing data to generate compensated liquid level data. The compensation liquid level data generated under each time index are reconstructed in chronological order to generate a compensation liquid level data sequence.

[0008] Optionally, the generation of the spatial unit set and the liquid occupancy state set specifically includes: Read the compensation liquid level data corresponding to each time index in the compensation liquid level data sequence, divide the target container into layers along the vertical direction according to the spatial geometry of the target container, and perform horizontal division within each layer to generate multiple spatial units and form a set of spatial units; For each spatial unit in the spatial unit set, its spatial position parameters are extracted, and combined with the compensation liquid level data of the corresponding time index in the compensation liquid level data sequence, the liquid occupancy status of each spatial unit is determined, and the liquid occupancy status of each spatial unit is generated. The liquid occupancy states of each spatial unit under the same time index are arranged in the order of the spatial units to generate a liquid occupancy state vector under the corresponding time index. The liquid occupation state vectors under different time indices are combined to generate a set of liquid occupation states. A continuity check is performed on the set of liquid-occupied states. Continuous intervals in the spatial unit sequence that are in liquid-occupied states are identified, and non-continuous intervals are corrected to generate a corrected set of liquid-occupied states.

[0009] Optionally, the generation of the liquid space-occupied topology specifically includes: Read the set of spatial units and the set of liquid occupancy states, establish the adjacency relationship between spatial units based on the spatial position relationship of the spatial units in the target container, and generate a set of spatial unit adjacency relationships; For the set of spatial unit adjacency relationships, extract the liquid occupancy state of each spatial unit under the corresponding time index, perform connectivity determination processing on the liquid occupancy state of adjacent spatial units, and generate a set of connectivity relationships; Grouping is performed on the set of connected relationships, and interconnected spatial units are aggregated to generate multiple liquids occupying the connected regions; For each liquid occupying a connected region, the connecting paths within the region are extracted according to the connectivity between spatial units, and the length of each connecting path is calculated to generate a set of path lengths corresponding to each liquid occupying a connected region. Perform a filtering process on the path length set, retain the liquid-occupied connected regions whose path lengths meet the preset conditions, and generate a set of valid liquid-occupied connected regions. Based on the set of effectively occupied connected regions, a liquid space occupation topology is constructed according to the connectivity between spatial units.

[0010] Optionally, the generation of the stable structure occupying the liquid space specifically includes: Read the liquid space occupancy topology and the corresponding liquid occupancy state set under different time indices, arrange them in time order, and generate a liquid space occupancy topology sequence; For the sequence of liquid space occupancy topology, the liquid occupancy state corresponding to the spatial unit is extracted under each time index and arranged according to the order of the spatial units to generate the liquid occupancy state vector corresponding to each time index. Perform difference calculation processing on the liquid occupancy state vectors corresponding to adjacent time indices to generate a sequence of liquid occupancy state changes; Accumulation processing is performed on the sequence of changes in liquid occupancy state within a continuous time window to generate a sequence of cumulative changes. The stability determination process is performed on the cumulative change sequence. The liquid space occupied topology corresponding to the time index where the cumulative change meets the preset condition is marked as a stable state, and a set of stable topologies is generated. The set of stable topologies is filtered to extract the liquid space-occupied topologies that maintain a stable state over a continuous time range, thus generating stable liquid space-occupied structures.

[0011] Optionally, the generation of the liquid level measurement and volume calculation results specifically includes: Extract spatial units in a liquid-occupied state from a liquid-occupied stable structure to generate a set of liquid-occupied spatial units; For each spatial unit in the set of liquid-occupied spatial units, its spatial geometric parameters are extracted, and the volume value corresponding to each spatial unit is determined based on the spatial geometric parameters to generate a set of spatial unit volumes. The volume of the spatial unit is accumulated to generate the liquid volume calculation result. For the spatial distribution boundary of the stable structure occupied by liquid space, the spatial unit with the largest height value among the spatial units in the liquid-occupied state is extracted, and its corresponding height value is determined as the liquid level measurement result. The liquid level measurement result sequence is correlated with the liquid volume calculation result sequence to generate liquid level measurement and volume calculation results.

[0012] The beneficial effects of this invention are: This invention addresses the shortcomings of existing liquid level measurement and volume calculation methods, which rely solely on single liquid level values, fail to accurately reflect the spatial distribution of liquids, and lack adaptability to complex operating conditions. It proposes a liquid level measurement and volume calculation method based on multi-parameter dynamic compensation and spatial structure modeling. By collaboratively processing liquid level sensing data along with temperature, pressure, and medium parameters, a compensated liquid level data sequence is generated. Based on this, the target container is divided into spatial units, and a set of liquid occupancy states is constructed. This transforms the method from "point-value measurement" to "spatial structure representation," effectively improving the ability to depict the actual distribution of liquids and reducing the impact of local measurement errors or environmental disturbances.

[0013] This invention constructs a liquid space occupancy topology, analyzes the connectivity between spatial units, and dynamically updates the topology over time. It then extracts stable liquid space occupancy structures that meet stability conditions, thereby achieving a comprehensive judgment of the continuity and stability of the liquid distribution state. This process not only effectively filters out instantaneous fluctuations and abnormal data but also identifies truly stable liquid distribution areas, significantly enhancing the reliability of liquid level measurement results. Furthermore, by accumulating and calculating the volume of spatial units within the stable structure and extracting the spatial distribution boundaries, it achieves the coordinated output of liquid level measurement and volume calculation results. This ensures that the final result possesses both spatial consistency and temporal stability, offering significant advantages over traditional methods, including higher accuracy, stronger anti-interference capabilities, and superior adaptability to complex working conditions. Attached Figure Description

[0014] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings: Figure 1 This is a flowchart of a liquid level measurement and volume calculation method based on multi-parameter dynamic compensation proposed in this invention; Figure 2 This is a schematic diagram of the liquid space occupancy topology construction for a liquid level measurement and volume calculation method based on multi-parameter dynamic compensation proposed in this invention. Figure 3 This is a schematic diagram illustrating the extraction of stable liquid space occupancy structures in a liquid level measurement and volume calculation method based on multi-parameter dynamic compensation proposed in this invention. Detailed Implementation

[0015] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.

[0016] refer to Figures 1-3 A method for liquid level measurement and volume calculation based on multi-parameter dynamic compensation includes the following steps: Collect liquid level sensor data, as well as temperature, pressure, and medium parameters inside the target container, and preprocess them to generate a standardized state dataset; Using a standardized state dataset, multi-parameter coupling correction is performed on the liquid level sensing data. The influence of each parameter is calculated and superimposed to compensate, generating a compensated liquid level data sequence. Based on the compensation liquid level data sequence, the target container is divided into multiple spatial units, and the liquid occupancy status is determined for each spatial unit to generate a set of spatial units and a set of liquid occupancy statuses. By combining the adjacency relationships between spatial units, a connectivity analysis is performed on the spatial units in the liquid-occupied state to generate a liquid-occupied topology. Within a continuous time window, the topology of liquid space occupancy is dynamically updated to generate a sequence of liquid space occupancy evolution structures, and stable liquid space occupancy structures that meet the stability conditions are extracted from the sequence of liquid space occupancy evolution structures. The upper boundary position of the liquid is extracted from the spatial distribution boundary of the stable structure occupied by the liquid space, and the volume accumulation is performed on the spatial unit in the liquid-occupied state to generate liquid level measurement and volume calculation results.

[0017] In this embodiment, preprocessing specifically includes data alignment, anomaly handling, missing data handling, noise reduction, normalization, and temporal reconstruction.

[0018] In this embodiment, the generation of the compensation liquid level data sequence specifically includes: Liquid level sensing data, temperature parameters, pressure parameters, and medium parameters are extracted from the standardized state dataset and arranged in chronological order to generate a multi-parameter synchronous data sequence. For multi-parameter synchronous data sequences, the single-parameter influence of temperature, pressure and medium parameters on liquid level sensing data is calculated respectively, generating temperature influence sequence, pressure influence sequence and medium influence sequence; Coupling processing is performed on the temperature influence sequence, pressure influence sequence, and medium influence sequence to generate a multi-parameter coupled influence sequence; The multi-parameter coupling influence sequence is superimposed with the liquid level sensing data, and dynamic compensation calculation is performed on the liquid level sensing data to generate compensated liquid level data. The compensation liquid level data generated under each time index are reconstructed in chronological order to generate a compensation liquid level data sequence.

[0019] In this embodiment, the generation of the spatial unit set and the liquid occupancy state set specifically includes: Read the compensation liquid level data corresponding to each time index in the compensation liquid level data sequence, divide the target container into layers along the vertical direction according to the spatial geometry of the target container, and perform horizontal division within each layer to generate multiple spatial units and form a set of spatial units; For each spatial unit in the spatial unit set, its spatial position parameters are extracted, and combined with the compensation liquid level data of the corresponding time index in the compensation liquid level data sequence, the liquid occupancy status of each spatial unit is determined, and the liquid occupancy status of each spatial unit is generated. The liquid occupancy states of each spatial unit under the same time index are arranged in the order of the spatial units to generate a liquid occupancy state vector under the corresponding time index. The liquid occupation state vectors under different time indices are combined to generate a set of liquid occupation states. A continuity check is performed on the set of liquid-occupied states. The continuous intervals in the spatial unit sequence that are in liquid-occupied states are identified, and the non-continuous intervals are corrected to generate a corrected set of liquid-occupied states. The generation of the corrected set of liquid-occupied states specifically includes: The liquid occupation state vectors corresponding to each time index in the liquid occupation state set are traversed. Continuous intervals in liquid occupation state are identified according to spatial unit order, generating a continuous interval set. For each continuous interval set, the starting and ending spatial unit positions are marked, generating a continuous interval position set. Spatial units in the liquid occupation state vector that are not marked as continuous intervals are identified to determine the spatial unit set corresponding to non-continuous intervals. For the spatial unit set corresponding to non-continuous intervals, consistency correction processing is performed based on the liquid occupation states of adjacent spatial units, updating the liquid occupation states corresponding to spatial units in non-continuous intervals to generate a corrected liquid occupation state vector. The corrected liquid occupation state vectors generated under each time index are combined according to time order to generate the corrected liquid occupation state set.

[0020] In this embodiment, the generation of the liquid space-occupied topology specifically includes: Read the set of spatial units and the set of liquid occupancy states, establish the adjacency relationship between spatial units based on the spatial position relationship of the spatial units in the target container, and generate a set of spatial unit adjacency relationships; For the set of spatial unit adjacency relationships, extract the liquid occupancy state of each spatial unit under the corresponding time index, perform connectivity determination processing on the liquid occupancy state of adjacent spatial units, and generate a set of connectivity relationships; Grouping is performed on the set of connected relationships, and interconnected spatial units are aggregated to generate multiple liquids occupying the connected regions; The generation of multiple liquids occupying a connected region specifically includes: The connectivity relationships between spatial units in the connectivity set are traversed. A set of spatial units that are liquid-occupied and interconnected is identified, generating an initial set of connected units. For this initial set, an expansion process is performed based on the connectivity relationships between spatial units. Spatial units connected to any spatial unit in the initial set are merged into the initial set, generating an expanded set of connected units. A duplicate detection process is performed on the expanded set to identify intersecting spatial units. These intersecting sets are then merged, generating a merged set of connected units. The merged set is then divided according to the connectivity relationships of the spatial units, generating multiple independent sets of spatial units. Each independent set of spatial units is defined as a liquid-occupied connected region, generating multiple liquid-occupied connected regions. For each liquid occupying a connected region, the connecting paths within the region are extracted according to the connectivity between spatial units, and the length of each connecting path is calculated to generate a set of path lengths corresponding to each liquid occupying a connected region. The generation of the path length set specifically includes: For each liquid occupying a connected region, the corresponding set of spatial units and their connectivity are read. The connection order between spatial units is identified according to their connectivity, generating a set of connection paths within the region. Path expansion processing is performed on each connection path in the set, arranging the spatial units in the path sequentially according to their connectivity order, generating a sequence of spatial units corresponding to each connection path. For each sequence of spatial units corresponding to a connection path, spatial position parameters between adjacent spatial units are extracted, and the distance between adjacent spatial units is calculated, generating a path distance sequence. The path distance sequence is accumulated to generate the path length value corresponding to each connection path. The path length values ​​corresponding to each connection path are then summarized to generate a set of path lengths corresponding to each liquid occupying a connected region. Perform a filtering process on the path length set, retain the liquid-occupied connected regions whose path lengths meet the preset conditions, and generate a set of valid liquid-occupied connected regions. The generation of the set of connected regions occupied by effective liquids specifically includes: The process involves: obtaining the path length values ​​corresponding to each liquid-occupied connected region in the path length set; identifying each liquid-occupied connected region according to its path length value to generate a path length identifier set; comparing the path length values ​​of each liquid-occupied connected region in the path length identifier set to identify liquid-occupied connected regions whose path lengths meet preset conditions, generating a candidate liquid-occupied connected region set; sorting the candidate liquid-occupied connected regions according to their path length values ​​to generate a sorted sequence of liquid-occupied connected regions; selecting liquid-occupied connected regions sequentially from largest to smallest path length value and performing overlap detection on the selected liquid-occupied connected regions to generate a set of non-overlapping liquid-occupied connected regions; and confirming the filtering results of the non-overlapping liquid-occupied connected regions to generate a set of valid liquid-occupied connected regions. Based on the set of effective liquid-occupied connected regions, a liquid space-occupied topology is constructed according to the connectivity between spatial units. The generation of the liquid space-occupied topology specifically includes: The process involves obtaining the set of spatial units corresponding to each liquid-occupied connected region and their connectivity relationships from the set of valid liquid-occupied connected regions. The spatial units within each liquid-occupied connected region are then organized according to their spatial position to generate a sequence of regional spatial units. For each sequence of regional spatial units, the connectivity relationships between the spatial units are extracted and integrated to generate a set of regional connectivity relationships. A merging process is then performed on each set of regional connectivity relationships to associate spatial units with connectivity relationships between different liquid-occupied connected regions, generating a complete set of connectivity relationships. Based on this complete set of connectivity relationships, a connection relationship mapping process is performed on each spatial unit in the set of spatial units to generate a connection structure between the spatial units. Finally, a structural organization process is performed on the connection structure to uniformly express the spatial units and their connection relationships according to their spatial position, generating a liquid space occupation topology structure.

[0021] In this embodiment, the generation of the stable structure occupied by the liquid space specifically includes: Read the liquid space occupancy topology and the corresponding liquid occupancy state set under different time indices, arrange them in time order, and generate a liquid space occupancy topology sequence; For the sequence of liquid space occupancy topology, the liquid occupancy state corresponding to the spatial unit is extracted under each time index and arranged according to the order of the spatial units to generate the liquid occupancy state vector corresponding to each time index. Perform difference calculation processing on the liquid occupancy state vectors corresponding to adjacent time indices to generate a sequence of liquid occupancy state changes; Accumulation processing is performed on the sequence of changes in liquid occupancy state within a continuous time window to generate a sequence of cumulative changes. The generation of the cumulative change series specifically includes: The changes in liquid occupancy state corresponding to each time index in the liquid occupancy state change sequence are arranged in chronological order to generate a change time series. Based on the change time series, multiple consecutive time windows are divided on the time axis according to a preset time window length to generate a time window set. For each time window in the time window set, the changes in liquid occupancy state within the corresponding time range are extracted, and the changes in liquid occupancy state are accumulated to generate the cumulative change for each time window. The cumulative change for each time window is arranged in chronological order to generate a cumulative change sequence. Time index marking is performed on the cumulative change sequence to establish a correspondence between each cumulative change and the corresponding time window, generating a time-marked cumulative change sequence. The stability determination process is performed on the cumulative change sequence. The liquid space occupied topology corresponding to the time index where the cumulative change meets the preset condition is marked as a stable state, and a set of stable topologies is generated. The generation of a stable set of topologies specifically includes: The cumulative change values ​​corresponding to each time index in the cumulative change value sequence are compared and processed to identify the time indices where the cumulative change value meets preset conditions, generating a candidate time index set. Based on the candidate time index set, the liquid space occupancy topology structure under the corresponding time index is extracted to generate a candidate topology structure set. The candidate topology structure set is arranged in chronological order to generate a candidate topology structure sequence. Continuity detection processing is performed on the candidate topology structure sequence to identify the topology structure that maintains the cumulative change value meeting preset conditions within a continuous time range, generating a continuous stable topology structure set. The continuous stable topology structure set is then filtered to generate a stable topology structure set. The set of stable topologies is filtered to extract the liquid space-occupied topologies that maintain a stable state over a continuous time range, thus generating stable liquid space-occupied structures. The formation of stable structures by liquid space specifically includes: The liquid space-occupied topologies in the stable topology set are arranged according to time index to generate a stable topology sequence. Based on the stable topology sequence, the distribution of each liquid space-occupied topology on the time axis is continuously identified, generating multiple continuous time ranges. For each continuous time range, the liquid space-occupied topologies within that time range are extracted to generate a candidate stable topology set. The candidate stable topology set is subjected to length comparison processing, and candidate stable topologies whose continuous time range lengths meet preset conditions are selected to generate a target stable topology set. The target stable topology set is subjected to structural consistency verification processing, and liquid space-occupied topologies with consistent structures within continuous time ranges are extracted to generate liquid space-occupied stable structures.

[0022] In this embodiment, the generation of liquid level measurement and volume calculation results specifically includes: Extract spatial units in a liquid-occupied state from a liquid-occupied stable structure to generate a set of liquid-occupied spatial units; For each spatial unit in the set of liquid-occupied spatial units, its spatial geometric parameters are extracted, and the volume value corresponding to each spatial unit is determined based on the spatial geometric parameters to generate a set of spatial unit volumes. The volume of the spatial unit is accumulated to generate the liquid volume calculation result. For the spatial distribution boundary of the stable structure occupied by liquid space, the spatial unit with the largest height value among the spatial units in the liquid-occupied state is extracted, and its corresponding height value is determined as the liquid level measurement result. The liquid level measurement result sequence is correlated with the liquid volume calculation result sequence to generate liquid level measurement and volume calculation results.

[0023] Example 1: To verify the feasibility of the present invention in practice, it was applied to a large vertical storage tank group in a coastal petrochemical storage and transportation base. In this scenario, the medium inside the storage tank changes significantly with the ambient temperature and is affected by the feeding and discharging operations, resulting in continuous fluctuations in the liquid level. The traditional method of relying on a single liquid level sensor data and performing simple compensation has significant errors in actual operation, especially when the temperature difference is large at night and loading and unloading operations are frequent, the liquid level measurement results show jump phenomena, which further affects the stability and continuity of the volume calculation results and makes it difficult to meet the requirements of refined management.

[0024] In this scenario, liquid level sensors and temperature, pressure, and medium parameter acquisition devices are deployed to continuously acquire liquid level data, temperature parameters, pressure parameters, and medium parameters within the target container. Preprocessing operations are then performed on the acquired data, including time alignment of different data sources, identification and handling of abnormal fluctuations, completion of missing data, and data normalization to generate a standardized state dataset. Based on this, multi-parameter coupling correction processing is performed on the liquid level sensor data. The effects of volume expansion caused by temperature changes, density changes caused by pressure changes, and liquid level shifts caused by changes in medium parameters are uniformly modeled and superimposed for compensation, generating a compensated liquid level data sequence. This ensures that the liquid level data remains consistent under different environmental conditions.

[0025] The target container is divided into multiple spatial units according to its spatial geometry. By mapping the compensated liquid level data to each spatial unit, the liquid occupancy status is determined for each spatial unit, resulting in a set of liquid occupancy statuses under each time index. During this process, the continuity of the spatial unit sequence is checked, and discontinuous occupancy statuses caused by sensor noise or local anomalies are corrected, ensuring that the liquid occupancy status remains continuously distributed in space, thereby avoiding physically unreasonable broken structures. Furthermore, based on the adjacency relationship between spatial units, connectivity analysis is performed on the spatial units in the liquid occupancy status, generating multiple liquid-occupied connected regions. Connection paths are extracted within each connected region, and the lengths of the connection paths are calculated. By filtering the path lengths, connected regions that meet preset conditions are retained, ultimately constructing a liquid spatial occupancy topology structure, thus providing a structured expression of the spatial distribution relationship of the liquid in the container.

[0026] In the time dimension, the liquid space occupancy topology under different time indices is dynamically updated to generate a liquid space occupancy topology sequence. By calculating the change in liquid occupancy state between adjacent time indices, the change is accumulated within a continuous time window to generate a change accumulation sequence. By judging the stability of the change accumulation sequence, the topology with small changes within the continuous time range is selected, and the liquid space occupancy topology that maintains a stable state within the continuous time range is further extracted to generate a stable liquid space occupancy structure, thereby effectively eliminating the interference of short-term fluctuations on the measurement results.

[0027] In the results output stage, spatial units in a liquid-occupied state are extracted from the stable structure occupied by the liquid space. The volume of each spatial unit is accumulated to generate the liquid volume calculation result. At the same time, the upper boundary position of the liquid is extracted according to the spatial distribution boundary of the stable structure to generate the liquid level measurement result. The liquid level measurement result and the liquid volume calculation result are correlated and output. In actual operation, within a continuous operating cycle at the same location, it can be observed by comparing historical operating data that after adopting the method of this invention, the liquid level measurement result still maintains a continuous and stable trend during periods of significant diurnal temperature variation. The consistency between the volume calculation result and the on-site material balance record is significantly improved. No sudden changes or abnormal fluctuations occur during long-term operation, which fully demonstrates that this invention can effectively solve the problem of unstable measurement in complex environments using traditional methods.

[0028] As can be seen from the above implementation process, this invention, by introducing a multi-parameter dynamic compensation mechanism and a spatial unit occupancy structure modeling method, transforms liquid level measurement from a single numerical calculation into a comprehensive analysis process of spatial structure and time evolution. In practical applications, it not only improves the accuracy of liquid level measurement but also enhances the stability and reliability of volume calculation results. It can adapt to application scenarios with large environmental changes and complex working conditions, demonstrating good engineering application value.

[0029] Table 1 Comparison of Liquid Level Measurement and Volume Calculation Performance

[0030] As can be seen from Table 1, under the same operating environment, the method of the present invention outperforms the traditional single-point liquid level measurement method and the traditional compensation method in several key indicators of liquid level measurement and volume calculation. In terms of liquid level measurement accuracy, the average error of the method of the present invention is significantly reduced, with the error reduction exceeding half compared to the traditional single-point measurement method. At the same time, it still has significant advantages over the traditional compensation method. This improvement mainly comes from the fact that the present invention introduces a multi-parameter coupling correction mechanism of temperature parameters, pressure parameters and medium parameters on the basis of liquid level sensing data, which effectively eliminates the systematic influence of environmental changes on the measurement results.

[0031] In terms of volume calculation, the method of this invention expands the liquid distribution from a single liquid level value to a spatial structure expression by dividing the space into units and modeling the liquid occupancy state. This makes the volume calculation no longer dependent on simple geometric functions or lookup tables, but based on the actual occupied space for cumulative calculation, thereby significantly reducing the volume error. At the same time, in terms of volatility indicators, the standard deviation of liquid level fluctuation and the standard deviation of volume calculation fluctuation of the method of this invention are significantly smaller than those of traditional methods, indicating that it has better stability under dynamic conditions. This is mainly due to the construction of the liquid space occupancy topology and the subsequent evolution analysis within the time window. By screening the continuity and stability of the liquid distribution structure, the fluctuations caused by instantaneous disturbances are effectively suppressed.

[0032] Furthermore, regarding the impact of abnormal data, the method of this invention has a stronger ability to suppress abnormal fluctuations, and the liquid level deviation caused by abnormal data is significantly reduced. This is closely related to the continuity verification and structural correction mechanism of liquid occupancy state. By automatically correcting the discontinuous occupancy state, the results are more consistent with the actual physical distribution law. In terms of continuous operation stability, the method of this invention can maintain stable output over a longer period of time, which indicates that it has stronger anti-interference ability and continuous reliability under complex working conditions. In terms of response delay, the method of this invention does not introduce significant time overhead while ensuring calculation accuracy and stability. On the contrary, it reduces unnecessary repeated calculations through structured processing, thereby improving the overall response speed.

[0033] In summary, this invention achieves a synergistic improvement in the accuracy, stability, and anti-interference capability of liquid level measurement and volume calculation through the technical approach of "multi-parameter dynamic compensation + spatial occupancy structure modeling + topological evolution stability determination". Its performance improvement comes from the in-depth characterization of the liquid spatial distribution structure and time evolution characteristics, rather than single parameter correction, thus showing better comprehensive performance in practical applications.

[0034] The above are merely preferred embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.

Claims

1. A method for liquid level measurement and volume calculation based on multi-parameter dynamic compensation, characterized in that, Includes the following steps: Collect liquid level sensor data, as well as temperature, pressure, and medium parameters inside the target container, and preprocess them to generate a standardized state dataset; Using a standardized state dataset, multi-parameter coupling correction is performed on the liquid level sensing data. The influence of each parameter is calculated and superimposed to compensate, generating a compensated liquid level data sequence. Based on the compensation liquid level data sequence, the target container is divided into multiple spatial units, and the liquid occupancy status is determined for each spatial unit to generate a set of spatial units and a set of liquid occupancy statuses. By combining the adjacency relationships between spatial units, a connectivity analysis is performed on the spatial units in the liquid-occupied state to generate a liquid-occupied topology. Within a continuous time window, the topology of liquid space occupancy is dynamically updated to generate a sequence of liquid space occupancy evolution structures, and stable liquid space occupancy structures that meet the stability conditions are extracted from the sequence of liquid space occupancy evolution structures. The upper boundary position of the liquid is extracted from the spatial distribution boundary of the stable structure occupied by the liquid space, and the volume accumulation is performed on the spatial unit in the liquid-occupied state to generate liquid level measurement and volume calculation results.

2. The method for liquid level measurement and volume calculation based on multi-parameter dynamic compensation according to claim 1, characterized in that, The preprocessing specifically includes data alignment, anomaly handling, missing data handling, noise reduction, normalization, and temporal reconstruction.

3. The method for liquid level measurement and volume calculation based on multi-parameter dynamic compensation according to claim 1, characterized in that, The generation of the compensation liquid level data sequence specifically includes: Liquid level sensing data, temperature parameters, pressure parameters, and medium parameters are extracted from the standardized state dataset and arranged in chronological order to generate a multi-parameter synchronous data sequence. For multi-parameter synchronous data sequences, the single-parameter influence of temperature, pressure and medium parameters on liquid level sensing data is calculated respectively, generating temperature influence sequence, pressure influence sequence and medium influence sequence; Coupling processing is performed on the temperature influence sequence, pressure influence sequence, and medium influence sequence to generate a multi-parameter coupled influence sequence; The multi-parameter coupling influence sequence is superimposed with the liquid level sensing data, and dynamic compensation calculation is performed on the liquid level sensing data to generate compensated liquid level data. The compensation liquid level data generated under each time index are reconstructed in chronological order to generate a compensation liquid level data sequence.

4. The liquid level measurement and volume calculation method based on multi-parameter dynamic compensation according to claim 1, characterized in that, The generation of the spatial unit set and the liquid occupancy state set specifically includes: Read the compensation liquid level data corresponding to each time index in the compensation liquid level data sequence, divide the target container into layers along the vertical direction according to the spatial geometry of the target container, and perform horizontal division within each layer to generate multiple spatial units and form a set of spatial units; For each spatial unit in the spatial unit set, its spatial position parameters are extracted, and combined with the compensation liquid level data of the corresponding time index in the compensation liquid level data sequence, the liquid occupancy status of each spatial unit is determined, and the liquid occupancy status of each spatial unit is generated. The liquid occupancy states of each spatial unit under the same time index are arranged in the order of the spatial units to generate a liquid occupancy state vector under the corresponding time index. The liquid occupation state vectors under different time indices are combined to generate a set of liquid occupation states. A continuity check is performed on the set of liquid-occupied states. Continuous intervals in the spatial unit sequence that are in liquid-occupied states are identified, and non-continuous intervals are corrected to generate a corrected set of liquid-occupied states.

5. The method for liquid level measurement and volume calculation based on multi-parameter dynamic compensation according to claim 1, characterized in that, The generation of the liquid space-occupied topology specifically includes: Read the set of spatial units and the set of liquid occupancy states, establish the adjacency relationship between spatial units based on the spatial position relationship of the spatial units in the target container, and generate a set of spatial unit adjacency relationships; For the set of spatial unit adjacency relationships, extract the liquid occupancy state of each spatial unit under the corresponding time index, perform connectivity determination processing on the liquid occupancy state of adjacent spatial units, and generate a set of connectivity relationships; Grouping is performed on the set of connected relationships, and interconnected spatial units are aggregated to generate multiple liquids occupying the connected regions; For each liquid occupying a connected region, the connecting paths within the region are extracted according to the connectivity between spatial units, and the length of each connecting path is calculated to generate a set of path lengths corresponding to each liquid occupying a connected region. Perform a filtering process on the path length set, retain the liquid-occupied connected regions whose path lengths meet the preset conditions, and generate a set of valid liquid-occupied connected regions. Based on the set of effectively occupied connected regions, a liquid space occupation topology is constructed according to the connectivity between spatial units.

6. The method for liquid level measurement and volume calculation based on multi-parameter dynamic compensation according to claim 1, characterized in that, The generation of the stable structure occupied by the liquid space specifically includes: Read the liquid space occupancy topology and the corresponding liquid occupancy state set under different time indices, arrange them in time order, and generate a liquid space occupancy topology sequence; For the sequence of liquid space occupancy topology, the liquid occupancy state corresponding to the spatial unit is extracted under each time index and arranged according to the order of the spatial units to generate the liquid occupancy state vector corresponding to each time index. Perform difference calculation processing on the liquid occupancy state vectors corresponding to adjacent time indices to generate a sequence of liquid occupancy state changes; Accumulation processing is performed on the sequence of changes in liquid occupancy state within a continuous time window to generate a sequence of cumulative changes. The stability determination process is performed on the cumulative change sequence. The liquid space occupied topology corresponding to the time index where the cumulative change meets the preset condition is marked as a stable state, and a set of stable topologies is generated. The set of stable topologies is filtered to extract the liquid space-occupied topologies that maintain a stable state over a continuous time range, thus generating stable liquid space-occupied structures.

7. The method for liquid level measurement and volume calculation based on multi-parameter dynamic compensation according to claim 1, characterized in that, The generation of the liquid level measurement and volume calculation results specifically includes: Extract spatial units in a liquid-occupied state from a liquid-occupied stable structure to generate a set of liquid-occupied spatial units; For each spatial unit in the set of liquid-occupied spatial units, its spatial geometric parameters are extracted, and the volume value corresponding to each spatial unit is determined based on the spatial geometric parameters to generate a set of spatial unit volumes. The volume of the spatial unit is accumulated to generate the liquid volume calculation result. For the spatial distribution boundary of the stable structure occupied by liquid space, the spatial unit with the largest height value among the spatial units in the liquid-occupied state is extracted, and its corresponding height value is determined as the liquid level measurement result. The liquid level measurement result sequence is correlated with the liquid volume calculation result sequence to generate liquid level measurement and volume calculation results.