Method for efficiently compressing and storing monitoring data of oil field station based on digital twinning

Through the combination of digital twin technology and time series database, a variety of strategies and algorithms are used to solve the problem of low storage efficiency and high cost of oil field monitoring data, achieve efficient compression storage and intelligent management, significantly save storage space and improve data access. speed.

CN118626015APending Publication Date: 2024-09-10SHENZHEN JIAYUNTONG ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410794165.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Oilfield station monitoring data is large in volume and variety. Traditional storage methods occupy a large amount of space, have low storage efficiency, high real-time requirements and high costs, making it difficult to achieve effective management.

Method used

Adopt an efficient compression storage method based on digital twins, through classified data storage, management of data frequency, business-driven view storage strategy, data optimal utilization strategy, business-driven compression strategy, data table compression strategy, classified data collection mechanism, view The data priority retention strategy and data traceability strategy combine with the compression algorithm and intelligent scheduling algorithm of the time series database to optimize data storage and access.

Benefits of technology

It has achieved 90% savings in data storage space, reduced operating costs, improved data access speed and management intelligence, and significantly improved storage efficiency and data utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626015A
    Figure CN118626015A
Patent Text Reader

Abstract

The invention relates to the technical field of oil field station data monitoring, in particular to an oil field station monitoring data efficient compression and storage method based on digital twinning, and the technical scheme of the oil field station monitoring data efficient compression and storage method comprises the following steps: 1, a classification data storage mechanism, a button point position is operated to cancel storage and warehousing (such as fire lifting, fire lowering, manual and automatic switching, starting, stopping and the like); and 2, managing a data storage frequency mechanism: setting higher storage frequency according to the specific situation of a site and a point location (such as environment temperature) which is small in change and low in timeliness. According to the efficient compression algorithm, the compression algorithm (such as Gorilla, Delta + FPC and the like) specially aiming at time sequence data is adopted, the time sequence correlation and tendency of the data can be fully utilized, and a compression strategy and a storage scheme of the data are adopted, so that the higher compression rate is realized, nearly 90% of storage space can be saved, the storage space of a server is greatly saved, and the operation cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of oilfield station data monitoring, and in particular to a method for efficiently compressing and storing oilfield station monitoring data based on digital twins. Background Art

[0002] Some main types and uses of oilfield station monitoring data:

[0003] Production data: including the production of oil wells and gas wells, the injection volume of water injection wells, the inlet and outlet pressures of oil and gas separators, the operating status of pumps, etc. These data are used to evaluate the production efficiency of oil fields and formulate production plans;

[0004] Pressure data: including pipeline and tank pressure, temperature, etc., which are critical to predicting and preventing equipment failures, leaks, and ensuring operational safety;

[0005] Flow data: The flow rate of crude oil, natural gas and water resources monitored by flow meters. This data helps optimize resource allocation and transportation plans;

[0006] Environmental monitoring data: including air quality and groundwater pollution monitoring data, which are used to ensure that the environmental protection standards of oilfield stations meet regulations and prevent and reduce the impact on the surrounding environment;

[0007] Equipment status data: including the operating hours, maintenance records and failure history of various types of equipment, which helps to carry out predictive maintenance and management of equipment;

[0008] Image and video data: Visual information from surveillance cameras can be used to monitor station safety and equipment operating conditions in real time.

[0009] In the management and operation of oilfield stations, traditional methods often make it difficult to fully acquire and analyze real-time data, resulting in low production efficiency, high costs, and increased safety risks.

[0010] Digital twin technology can effectively solve the pain points of real-time management and equipment maintenance fault prediction difficulties and insufficient decision-making support caused by data silos through real-time monitoring, predictive maintenance, production optimization, safety management, remote operation, etc., providing favorable support for the intelligent management of oilfield stations.

[0011] However, due to the large amount of data from oilfield station equipment, the storage process faces challenges such as huge data volume and various types of data, traditional storage methods occupying a large amount of storage space, low storage efficiency, high real-time requirements and high storage costs. Summary of the invention

[0012] The purpose of the present invention is to solve the above-mentioned shortcomings in the prior art and to propose an efficient compression and storage method for oil field station monitoring data based on digital twins.

[0013] In order to achieve the above object, the present invention adopts the following technical solutions:

[0014] Design an efficient compression and storage method for oilfield station monitoring data based on digital twins. The efficient compression technical solution for oilfield station monitoring data is as follows:

[0015] Step 1: Classification data storage mechanism: cancel some points of storage and storage, and cancel storage at the operation button points (such as raising the fire, lowering the fire, manual and automatic switching, starting, stopping, etc.);

[0016] Step 2: Manage the data storage frequency mechanism: According to the specific situation on site, set a higher storage frequency for points with small changes and low timeliness (such as ambient temperature);

[0017] Step 3: Business-driven view storage strategy: Add an aggregation strategy to each real-time data table to generate three view tables;

[0018] Step 4: Optimal data storage utilization strategy: Flexibly manage the retention of data views based on the frequency and importance of data use to achieve optimal storage space utilization;

[0019] Step 5: Business-driven compression strategy: In the database, add a compression strategy to the table that stores PLC point data by month, and compress the data two weeks ago;

[0020] Step 6: Data table compression strategy: Add a compression strategy to the materialized view table of each monthly table to compress the data older than one month;

[0021] Step 7: Adopt a classified data collection mechanism: According to the specific situation on site, the alarm storage frequency is changed from 50s to 60s;

[0022] Step 8: View data priority retention strategy: By adopting different retention strategies for different types of data views, ensure that high-frequency and high-importance data can be retained for a long time, while low-frequency and low-importance data can be compressed or deleted as needed;

[0023] Step 9: View aggregation strategy: Create materialized view tables with different rule aggregation strategies and refresh strategies according to business needs;

[0024] Step 10: Data traceability strategy: Add corresponding data retention time strategy to each view table;

[0025] The operation process of the digital twin time series database compression storage method is as follows: after adopting the classified data collection mechanism, the frequency of equipment point data storage, creating a hypertable for PLC point data storage, setting the time interval of the hypertable data block, setting the retention time of the hypertable data, adding a compression strategy to the hypertable, creating a materialized view, creating an automatic refresh continuous aggregation strategy for the materialized view, adding a compression strategy to the materialized view, and adopting different preservation strategies.

[0026] In detail, after adopting the classified data collection mechanism: cancel the points of the storage (whether to store is no) button operation category.

[0027] Specifically, the device point data storage frequency: based on the specific conditions on site, the alarm storage frequency is changed from 50s to 60s.

[0028] In detail, the hypertable for storing PLC point data is created: SELECT create_hypertable('table name','createtime').

[0029] In detail, the time interval for setting the hypertable data block is:

[0030] SELECT set_chunk_time_interval('table name',INTERVAL'2hours');

[0031] The following describes how to set the retention time of the hypertable data:

[0032] SELECT add_retention_policy('table name',INTERVAL'3months').

[0033] In detail, the hypertable adds a compression strategy:

[0034] SELECT add_compression_policy('table name', compress_after=>'2weeks'::interval, if_not_exists=>true).

[0035] In detail, the creation of materialized views:

[0036] CREATE MATERIALIZED VIEW 'table name' WITH (timescaledb.continuous) AS SELECT table field 1, table field 2, table field 3

[0037] AS plcfunctionid,avg(cast(table field 4ASnumeric))AS plcdatavalue,time_bucket(INTERVAL'1days',createtime)AS

[0038] createdatetime FROM 'table name' GROUP BY

[0039] equipmentid,plcid,plcfunctionid,createdatetime.

[0040] In detail, the materialized view creates a strategy for automatically refreshing continuous aggregates:

[0041] SELECTadd_continuous_aggregate_policy('table name', start_offset=>INTERVAL'1month', end_offset=>INTERVAL'1days', schedule_interval=>INTERVAL'1days').

[0042] In detail, the materialized view adds a compression strategy:

[0043] SELECT add_compression_policy('table name', compress_after=>'31days'::interval, if_not_exists=>true).

[0044] In detail, different storage strategies are adopted: according to business needs, in order to save data storage space, a view storage strategy is adopted;

[0045] Retain data within the corresponding time range: The real-time equipment point data table takes up a large amount of storage space, so set a three-month data retention policy. For point data view tables that are stored at intervals of ten minutes and one hour, set a six-month data retention policy. For point data view tables that are stored at intervals of one day, set a one-year data retention policy.

[0046] The design scheme proposed by the present invention has the following beneficial effects during application:

[0047] 1. Efficient compression algorithm: The present invention adopts a compression algorithm specifically for time series data (such as Gorilla, Delta+FPC, etc.), which can make full use of the time series correlation and trend of the data. By adopting data compression strategies and storage solutions, a higher compression rate can be achieved, which can save nearly 90% of the storage space, greatly save the storage space of the server, and reduce operating costs.

[0048] 2. Tiered storage strategy: Store high-frequency data on high-performance storage media and low-frequency data on low-cost storage media, which optimizes data access paths and storage efficiency, significantly improves data access speed, and optimizes index and cache mechanisms: By establishing an efficient index structure and introducing a cache mechanism, it reduces disk I / O operations, speeds up data retrieval and access, and improves user experience.

[0049] 3. Intelligent scheduling algorithm: The present invention adopts an intelligent scheduling algorithm to dynamically adjust the storage level and compression strategy of the data according to the frequency of use and access mode of the data, so as to realize intelligent and efficient data management. Digital twin technology: Through digital twin technology, real-time monitoring, simulation and prediction of data can be carried out to ensure the accuracy and consistency of the data and improve the intelligent level of data management. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It is a schematic diagram of the data compression technology solution strategy of the present invention;

[0051] Figure 2 It is a schematic diagram of the data compression operation flow of the present invention. DETAILED DESCRIPTION

[0052] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0053] Reference Figure 1-Figure 2 , an efficient compression and storage method for oilfield station monitoring data based on digital twin, characterized in that: the technical scheme for efficient compression of oilfield station monitoring data is as follows:

[0054] Step 1: Classification data storage mechanism: cancel some points of storage and storage, and cancel storage at the operation button points (such as raising the fire, lowering the fire, manual and automatic switching, starting, stopping, etc.);

[0055] Step 2: Manage the data storage frequency mechanism: According to the specific situation on site, set a higher storage frequency for points with small changes and low timeliness (such as ambient temperature);

[0056] Step 3: Business-driven view storage strategy: Add an aggregation strategy to each real-time data table to generate three view tables;

[0057] Step 4: Optimal data storage utilization strategy: Flexibly manage the retention of data views based on the frequency and importance of data use to achieve optimal storage space utilization;

[0058] Step 5: Business-driven compression strategy: In the database, add a compression strategy to the table that stores PLC point data by month, and compress the data two weeks ago;

[0059] Step 6: Data table compression strategy: Add a compression strategy to the materialized view table of each monthly table to compress the data older than one month;

[0060] Step 7: Adopt a classified data collection mechanism: According to the specific situation on site, the alarm storage frequency is changed from 50s to 60s;

[0061] Step 8: View data priority retention strategy: By adopting different retention strategies for different types of data views, ensure that high-frequency and high-importance data can be retained for a long time, while low-frequency and low-importance data can be compressed or deleted as needed;

[0062] Step 9: View aggregation strategy: Create materialized view tables with different rule aggregation strategies and refresh strategies according to business needs;

[0063] Step 10: Data traceability strategy: Add corresponding data retention time strategy to each view table;

[0064] The operation process of the digital twin time series database compression storage method is as follows: after adopting the classified data collection mechanism, the frequency of equipment point data storage, creating a hypertable for PLC point data storage, setting the time interval of the hypertable data block, setting the retention time of the hypertable data, adding a compression strategy to the hypertable, creating a materialized view, creating an automatic refresh continuous aggregation strategy for the materialized view, adding a compression strategy to the materialized view, and adopting different preservation strategies.

[0065] It should be further explained that after adopting the classified data collection mechanism: cancel the points of the storage (whether to store is no) button operation category.

[0066] It should be further explained that the storage frequency of equipment point data is changed from 50s to 60s according to the specific conditions on site.

[0067] It should be further explained that a hypertable is created to store PLC point data: SELECT create_hypertable('table name','createtime').

[0068] It is further necessary to explain that the time interval for setting the hypertable data block is:

[0069] SELECT set_chunk_time_interval('table name',INTERVAL'2hours');

[0070] The following describes how to set the retention time of the hypertable data:

[0071] SELECT add_retention_policy('table name',INTERVAL'3months').

[0072] It is further necessary to explain that the hypertable adds a compression strategy:

[0073] SELECT add_compression_policy('table name', compress_after=>'2weeks'::interval, if_not_exists=>true).

[0074] It is further necessary to explain that to create a materialized view:

[0075] CREATE MATERIALIZED VIEW 'table name' WITH (timescaledb.continuous) AS SELECT table field 1, table field 2, table field 3

[0076] AS plcfunctionid,avg(cast(table field 4AS numeric))AS plcdatavalue,time_bucket(INTERVAL'1days',createtime)AS

[0077] createdatetime FROM 'table name' GROUP BY

[0078] equipmentid,plcid,plcfunctionid,createdatetime.

[0079] It is further noted that the materialized view creates a policy that automatically refreshes continuous aggregates.

[0080] Omitted: SELECT add_continuous_aggregate_policy('table name',start_offset=>INTERVAL'1month',end_offset=>INTERVAL'1

[0081] days',schedule_interval=>INTERVAL'1days').

[0082] It is further necessary to explain that the compression strategy is added to the materialized view:

[0083] SELECT add_compression_policy('table name', compress_after=>'31days'::interval, if_not_exists=>true).

[0084] It is further necessary to explain that different preservation strategies are adopted: according to business needs, in order to save data storage space, the view storage strategy is adopted;

[0085] Retain data within the corresponding time range: The real-time equipment point data table takes up a large amount of storage space, so set a three-month data retention policy. For point data view tables that are stored at intervals of ten minutes and one hour, set a six-month data retention policy. For point data view tables that are stored at intervals of one day, set a one-year data retention policy.

[0086] Advantages during implementation: The present invention significantly improves the storage efficiency, access speed, management intelligence level and data security of oilfield station monitoring data through innovative data compression and storage methods, intelligent data management and scheduling, application of digital twin technology, and data security and reliability measures, reduces storage costs, and improves data utilization, and has obvious technical advantages and application value.

[0087] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. An efficient compression and storage method for oilfield station monitoring data based on digital twins, characterized by: The technical solution for efficient compression of oilfield station monitoring data is as follows: Step 1: Classification data storage mechanism: cancel some points of storage and storage, and cancel storage at the operation button points (such as raising the fire, lowering the fire, manual and automatic switching, starting, stopping, etc.); Step 2: Manage the data storage frequency mechanism: According to the specific situation on site, set a higher storage frequency for points with small changes and low timeliness (such as ambient temperature); Step 3: Business-driven view storage strategy: Add an aggregation strategy to each real-time data table to generate three view tables; Step 4: Optimal data storage utilization strategy: Flexibly manage the retention of data views based on the frequency and importance of data use to achieve optimal storage space utilization; Step 5: Business-driven compression strategy: In the database, add a compression strategy to the table that stores PLC point data by month, and compress the data two weeks ago; Step 6: Data table compression strategy: Add a compression strategy to the materialized view table of each monthly table to compress the data older than one month; Step 7: Adopt a classified data collection mechanism: According to the specific situation on site, the alarm storage frequency is changed from 50s to 60s; Step 8: View data priority retention strategy: By adopting different retention strategies for different types of data views, ensure that high-frequency and high-importance data can be retained for a long time, while low-frequency and low-importance data can be compressed or deleted as needed; Step 9: View aggregation strategy: Create materialized view tables with different rule aggregation strategies and refresh strategies according to business needs; Step 10: Data traceability strategy: Add corresponding data retention time strategy to each view table; The operation process of the digital twin time series database compression storage method is as follows: after adopting the classified data collection mechanism, the frequency of equipment point data storage, creating a hypertable for PLC point data storage, setting the time interval of the hypertable data block, setting the retention time of the hypertable data, adding a compression strategy to the hypertable, creating a materialized view, creating an automatic refresh continuous aggregation strategy for the materialized view, adding a compression strategy to the materialized view, and adopting different preservation strategies.

2. The method for efficiently compressing and storing oilfield station monitoring data based on digital twin according to claim 1 is characterized in that: After adopting the classified data collection mechanism: cancel the points of the storage (whether to store is no) button operation category.

3. The method for efficiently compressing and storing oilfield station monitoring data based on digital twin according to claim 1 is characterized in that: The device point data storage frequency: According to the specific situation on site, the alarm storage frequency is changed from 50s to 60s.

4. The method for efficiently compressing and storing oilfield station monitoring data based on digital twin according to claim 1 is characterized in that: The hypertable for storing PLC point data is created as follows: SELECT create_hypertable('table name', 'createtime').

5. The method for efficiently compressing and storing oilfield station monitoring data based on digital twin according to claim 1 is characterized in that: The time interval for setting the hypertable data block is: SELECT set_chunk_time_interval('table name',INTERVAL'2hours'); The following describes how to set the retention time of the hypertable data: SELECT add_retention_policy('table name',INTERVAL'3months').

6. The method for efficiently compressing and storing oilfield station monitoring data based on digital twin according to claim 1 is characterized in that: The hypertable adds a compression strategy: SELECT add_compression_policy('table name', compress_after=>'2weeks'::interval, if_not_exists=>true).

7. The method for efficiently compressing and storing oilfield station monitoring data based on digital twin according to claim 1 is characterized in that: To create a materialized view: CREATE MATERIALIZEDVIEW 'table name' WITH (timescaledb.continuous)AS SELECT table field 1, table field 2, table field 3AS plcfunctionid, avg(cast(table field 4AS numeric))AS plcdatavalue, time_bucket(INTERVAL'1days', createtime)AScreatedatetime FROM'table name'GROUP BY equipmentid,plcid,plcfunctionid,createdatetime.

8. The method for efficiently compressing and storing oilfield station monitoring data based on digital twin according to claim 1 is characterized in that: The materialized view creates a policy for automatically refreshing continuous aggregates: SELECT add_continuous_aggregate_policy('table name', start_offset=>INTERVAL'1month', end_offset=>INTERVAL'1days', schedule_interval=>INTERVAL'1days').

9. The method for efficiently compressing and storing oilfield station monitoring data based on digital twin according to claim 1 is characterized in that: The materialized view adds a compression strategy: SELECT add_compression_pol icy('table name',compress_after=>'31days'::interval,if_not_exists=>true).

10. The method for efficient compression and storage of oilfield station monitoring data based on digital twin according to claim 1, characterized in that: The different storage strategies are adopted: according to business needs, in order to save data storage space, a view storage strategy is adopted; Retain data within the corresponding time range: The real-time equipment point data table takes up a large amount of storage space, so set a three-month data retention policy. For point data view tables that are stored at intervals of ten minutes and one hour, set a six-month data retention policy. For point data view tables that are stored at intervals of one day, set a one-year data retention policy.