Oil and gas field data storage method and system
By calculating correlation parameters according to data types and time series in oil and gas field data, and reasonably grouping and compressing them, we solve the problems of slow query speed and poor compression effect caused by unreasonable grouping in the existing technology, and achieve more efficient data storage and query. .
Patent Information
- Application Number
- CN202410852615.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-28
AI Technical Summary
In existing oil and gas field data compression methods, unreasonable grouping results in slow query speed or poor compression effect.
By collecting and storing oil and gas field data, we obtain data points according to data types and time series, record query and call information, calculate the correlation parameters, correlation coefficients and correlation priority parameters of each group of data points, set the correlation priority threshold, and group them reasonably. compression.
It improves the data query speed, improves the compression effect, reduces the decompression probability of irrelevant data, relieves system pressure, and enhances data redundancy.
Smart Images

Figure CN118394792B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of oil and gas field data storage, and in particular to an oil and gas field data storage method and system. Background Art
[0002] Oil and gas field data include geological data, geophysical data, engineering data, wellbore data and other data. There are many types of data, large data volume and various data types. Data compression can significantly reduce data storage requirements, improve data transmission and processing efficiency, reduce operating costs, and enhance data security and confidentiality, providing more efficient and convenient data support for oil and gas field exploration and development, which will help promote the sustainable development of the oil and gas industry.
[0003] The traditional oil and gas field data compression method is to group and compress according to the type of oil and gas field data. The grouping method is mostly based on the data type or data generation time. If the data group is large, more data files may need to be decompressed when querying the data, the query speed is slow and the system memory occupancy rate is high; if the data group is small, since different groups may contain the same or similar redundant data, smaller groups may cause a larger compression rate when the global data is compressed, and the compression effect is not ideal. This is because the higher the data repetition, the more effectively the compression algorithm can identify and utilize repeated patterns, so the compression rate will be smaller. Summary of the invention
[0004] The present invention provides an oil and gas field data storage method and system to solve the existing problem that unreasonable grouping during oil and gas field data compression leads to slow query speed or poor compression effect.
[0005] An oil and gas field data storage method and system of the present invention adopts the following technical scheme: In a first aspect of the present invention, a method for storing oil and gas field data is provided, the method comprising the following steps: using a sensor to collect and store oil and gas field data, obtaining oil and gas field data points according to the type of oil and gas field data and the time series of the collected data, and recording the query and call data point information; obtaining the association parameters of each data point in each group of data points with each other data point in the group according to the number of times each group of data points in the oil and gas field data is queried and called, and the data points queried and called each time each group of data points is queried and called; obtaining each data point in each group of data points according to the association parameters of each data point in each group of data points with each other data point in the group and the data point grouping sequence. The correlation coefficient of the data points with the same sequence in the data point grouping; according to the number of times the data points with the same sequence in each data point grouping are queried or called, and the number of times the corresponding grouping is queried or called, obtain the stability parameter of the correlation coefficient of the data points with the same sequence in each data point grouping; combine the correlation coefficient of the data points with the same sequence in each data point grouping, the stability parameter of the correlation coefficient of the data points with the same sequence in each data point grouping and the data amount of the data points with the same sequence in each data point grouping, obtain the association priority parameter of the data points with the same sequence in each data point grouping; set the association priority parameter threshold, and obtain the association model and compress it in combination with the association priority parameter of the data points with the same sequence in each group of data points.
[0006] Furthermore, the method of using sensors to collect and store oil and gas field data, obtaining oil and gas field data points according to the type of oil and gas field data and the time series of collected data, and recording the query and call data point information includes the following specific methods: using sensors to collect and store oil and gas field data according to preset time intervals and data collection durations, adding labels of different memory sizes to each type of oil and gas field data, treating each type of oil and gas field data in each oil and gas field data collection as a data point, recording all data points contained in the oil and gas field data collected each time as a group of data points, traversing the data points in each group of data points in order from large to small according to the memory size of the oil and gas data type label, recording the number of times each group of data points is queried and called, and recording the data points and the data volume of each group of data points each time the data points are queried and called, in KB.
[0007] Further, the method of obtaining the association parameters of each data point in each group of data points with each other data point in the group according to the number of times each group of data points in the oil and gas field data is queried and called, and the data points that are queried and called each time each group of data points is queried and called includes the following specific methods: obtaining the historical number of queries and calls of each data point in each group of data points according to the number of times each group of data points is queried and called, and the data points that are queried and called each time each group of data points is queried and called; obtaining the association parameters of each data point in each group of data points with each other data point in the group according to the data points that are queried and called each time each group of data points is queried and called, and the historical number of queries and calls of each data point in each group of data points. The specific method is as follows: In the formula, represents the ath data point in the xth group of data, represents the correlation parameter of the ath data point in the xth group of data, T represents the data collection duration, t represents the data collection time interval, Indicates the historical query and call times of the a-th data point in the x-th group of data. Represents the historical query and call times of the i-th data point in the x-th group of data points; this method is used to obtain the association parameters of each data point in each group of data points with each other data point in the group.
[0008] Furthermore, the method of obtaining the correlation coefficient of the same data points in the sequence in each data point group according to the correlation parameters of each data point in each group of data points with each other data point in the group and the data point grouping sequence includes the following specific methods: In the formula, Represents the correlation coefficient of the data points with sequence a in the data point grouping, represents the correlation parameter of the ath data point in the jth group of data points, T represents the data collection duration, t represents the data collection time interval, and the correlation coefficient of the same data points in the sequence in each data point group is obtained according to the above method.
[0009] Furthermore, the stability parameter of the correlation coefficient of the same sequence of data points in each data point group is obtained according to the number of times the same sequence of data points in each data point group is queried or called and the number of times the corresponding group is queried or called, including the specific method of: In the formula, represents the stability parameter of the correlation coefficient of the data points in sequence a in the data point grouping, Indicates the number of times the ath data point in the Ith group of data points is queried or called, represents the number of times the first group of data points is queried or called, T represents the data collection duration, and t represents the data collection time interval. It represents the mean of the ratio of the number of times the a-th data point in each group of data points is queried or called to the number of times the corresponding data point group is queried or called. The stability parameter of the correlation coefficient of the same sequence data points in each data point group is obtained according to the above method.
[0010] Furthermore, the method of combining the correlation coefficient of the same sequence of data points in each data point group, the stability parameter of the correlation coefficient of the same sequence of data points in each data point group and the data volume of the same sequence of data points in each data point group to obtain the correlation priority parameter of the same sequence of data points in each data point group includes the following specific methods: In the formula, Represents the association priority parameter of the data point with sequence a in the data point group, represents the stability parameter of the correlation coefficient of the data points in sequence a in the data point grouping, Represents the correlation coefficient of the data points with sequence a in the data point grouping, Indicates the data size of the ath data point in the Jth data point group, represents the data size of the Eth data point in the eth data point group, N represents the type of oil and gas field data, T represents the data collection duration, and t represents the data collection time interval. According to the above method, the association priority parameters of the data points with the same sequence in each data point group are obtained.
[0011] Furthermore, the setting of the association priority parameter threshold, combining the association priority parameters of the data points of the same sequence in each group of data points to obtain the association model and compress it, includes the following specific methods: setting the association priority parameter, comparing the association priority parameters of the data points of the same sequence in each group of data with a preset association priority parameter threshold, retaining the data point sequence in the group whose association priority parameter is greater than the preset association priority parameter threshold, and dividing the data points corresponding to the retained data point sequence in each group of data points into a group to be compressed, and the other data points are grouped as a group to be compressed, and each group of groups to be compressed is compressed in units of groups.
[0012] Furthermore, the abnormal parameter threshold is set to be compared with the abnormal parameter of each single curve to determine whether the single curve belongs to scoliosis, and the specific method included is: specifically, the set abnormal parameter threshold is compared with the abnormal parameter of each single curve, if the abnormal parameter of the single curve is greater than the abnormal parameter threshold, the single curve belongs to scoliosis; if the abnormal parameter of the single curve is less than the abnormal parameter threshold, it does not belong to scoliosis.
[0013] According to a second aspect of the present invention, there is provided an oil and gas field data storage system, which includes a data acquisition module, a data analysis module and a data storage module, wherein: the data acquisition module is used to collect and store oil and gas field data using sensors, obtain oil and gas field data points according to the type of oil and gas field data and the time series of the collected data, and record the query and call data point information; the data analysis module is used to obtain the association parameters of each data point in each group of data points with each other data point in the group according to the number of times each group of data points in the oil and gas field data is queried and called, and the data points queried and called each time each group of data points is queried and called; according to the association parameters of each data point in each group of data points with each other data point in the group and the data point grouping sequence, obtain The correlation coefficient of the data points with the same sequence in each data point group; the stability parameter of the correlation coefficient of the data points with the same sequence in each data point group is obtained according to the number of times the data points with the same sequence in each data point group are queried or called and the number of times the corresponding group is queried or called; the correlation priority parameter of the data points with the same sequence in each data point group is obtained by combining the correlation coefficient of the data points with the same sequence in each data point group, the stability parameter of the correlation coefficient of the data points with the same sequence in each data point group and the data amount of the data points with the same sequence in each data point group; a data storage module is used to set the correlation priority parameter threshold, and obtain the correlation model and compress it by combining the correlation priority parameters of the data points with the same sequence in each group of data points.
[0014] A third aspect of the present invention is a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the above-mentioned oil and gas field data storage method.
[0015] A fourth aspect of the present invention is a computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned oil and gas field data storage method when executing the computer program.
[0016] The beneficial effects of the technical solution of the present invention are as follows: the oil and gas field data are divided into smaller data points according to the data collection time and the data type, and the data points have certain data integrity and readability. When the data points are combined, the distribution of the data in the memory can be guaranteed to be regular, which is convenient for data reading; according to the data points that are queried and called each time each group of data points is queried and called, the historical query and call times of each data point in each group of data points are obtained, and the correlation parameters of each data point in each group of data points with each other data point in the group are obtained, and the degree of correlation between the data point in each data point group and other data points can be judged from the frequency of the data point being queried or called; according to the correlation parameters of each data point in each group of data points with each other data point in the group and the data point grouping sequence, the correlation coefficient of the data points with the same sequence in each data point group is obtained, taking into account the timing problem of data collection. The data collected earlier may be operated more times, so the earlier the data collected, the more reference significance it has, and combined with the data in each data point group. The data points are operated, so that the obtained data association degree is more accurate; according to the number of times the data points of the same sequence in each data point group are queried or called, and the number of times the corresponding group is queried or called, the stability parameter of the association coefficient of the data points of the same sequence in each data point group is obtained. Considering that the number of times each data group is operated may be greatly different, resulting in a large difference in the number of times the same data in different groups is queried or called, affecting the calculation of the data association degree, this step judges the stability of the number of times the data is queried or called according to the frequency ratio of the same data in different groups. The higher the stability, the higher the degree of data association. The higher the reliability; combined with the correlation coefficient of the same sequence of data points in each data point group, the stability parameter of the correlation coefficient of the same sequence of data points in each data point group and the data volume of the same sequence of data points in each data point group, the correlation priority parameter of the same sequence of data points in each data point group is obtained, and the correlation priority parameter, stability parameter and correlation coefficient of the data point are combined to obtain a more accurate degree of data point correlation, and the data volume of different types of data is taken into account. The larger the data point, the less necessary it is to participate in the combined grouping, because for data points with a large amount of data, the data redundancy may be relatively high, and the effect of combining with other data points on improving the data redundancy may not be much, the compression effect is not significantly improved, and the probability of operating a large amount of irrelevant data during data query or call is increased, affecting system performance; set the correlation priority parameter threshold, combine the correlation priority parameters of the same sequence of data points in each group of data points to obtain the correlation model and compress it, select the appropriate priority parameter threshold, and make the data point memory as small as possible. Data points with strong correlation are grouped into one group for compression, which increases the data redundancy, improves the compression effect, and reduces the probability of decompressing irrelevant data when the data is queried or called, alleviating system pressure. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 The present invention is a flowchart of the steps of an oil and gas field data storage method.
[0019] Figure 2 This is a structural block diagram of an oil and gas field data storage system of the present invention. DETAILED DESCRIPTION
[0020] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the oil and gas field data storage method and system proposed by the present invention, its specific implementation, structure, features and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0021] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0022] The specific scheme of the oil and gas field data storage method and system provided by the present invention is described in detail below with reference to the accompanying drawings.
[0023] See also Figure 1 , which shows the first object of the present invention, a step flow chart of an oil and gas field data storage method, the method comprising the following steps: Step S001: Use sensors to collect and store oil and gas field data, obtain oil and gas field data points according to the type of oil and gas field data and the time series of collected data, and record query and call data point information.
[0024] It should be noted that there are many types of oil and gas field data collection, and oil and gas field data collection is mostly continuous. This step requires setting data points to group the oil and gas field data. To ensure data integrity and readability, it is necessary to obtain data points of the oil and gas field data according to the type of oil and gas field data and the time series of the collected data.
[0025] Specifically, the oil and gas field data are collected using sensors, and the oil and gas field data points are obtained according to the type of oil and gas field data and the time series of the collected data, and the query and call data point information are recorded. The specific method is as follows: Use sensors to collect and store oil and gas field data according to preset time intervals and data collection durations, add labels of different memory sizes to each type of oil and gas field data, and regard each type of oil and gas field data in each oil and gas field data collection as a data point, and record all data points contained in the oil and gas field data collected each time as a group of data points. According to the memory size of the oil and gas data type label, the data points in each group of data points are traversed in descending order, and the number of times each group of data points is queried and called is recorded. The data points and the data volume of the data points are recorded each time each group of data points is queried and called, and the unit is KB.
[0026] It should be noted that, for the convenience of description, in this embodiment, the preset time interval is t=1 day, the data collection time is T=30 days, and the oil and gas field data types N=100. In other embodiments, it depends on the specific implementation situation.
[0027] Step S002: according to the number of times each group of data points in the oil and gas field data is queried and called, and the data points that are queried and called each time each group of data points is queried and called, obtain the association parameters of each data point in each group of data points with each other data point in the group; according to the association parameters of each data point in each group of data points with each other data point in the group and the data point grouping sequence, obtain the association coefficient of the data points with the same sequence in each data point group; according to the number of times the data points with the same sequence in each data point group are queried or called, and the number of times the corresponding group is queried or called, obtain the stability parameter of the association coefficient of the data points with the same sequence in each data point group; in combination with the association coefficient of the data points with the same sequence in each data point group, the stability parameter of the association coefficient of the data points with the same sequence in each data point group and the data amount of the data points with the same sequence in each data point group, obtain the association priority parameter of the data points with the same sequence in each data point group.
[0028] It should be noted that the existing method of grouping and compressing oil and gas field data is to group and compress according to data type or data generation time. If the data group is large, more data files may need to be decompressed when querying data, the query speed is slow and the system memory occupancy rate is high; if the data group is small, because different groups may contain the same or similar redundant data, smaller groups may cause a large compression rate when compressing global data, and the compression effect is not ideal, because the higher the data repetition, the more effectively the compression algorithm can identify and use the repetitive pattern, so the compression rate will be smaller. Therefore, this step obtains the most suitable data point grouping for storing compressed data according to the degree of association of multiple data points when the data is called or queried and the amount of data in the associated data points. If multiple data points are highly correlated and the amount of data in the correlated data points is smaller, it means that the probability of the multiple data points being called or read at the same time is greater; and when these data points are compressed individually, due to the small amount of data in the data points, they may contain less identical or similar redundant data, and the compression rate is higher; grouping these data points into a group for compression can increase the data in the data group to contain the same or similar redundant data, making the compression rate smaller, saving storage space, and avoiding decompression operations on too much irrelevant data when calling or querying target data, thereby improving query speed and reducing memory usage.
[0029] According to the number of times each group of data points in the oil and gas field data is queried and called, and the data points that are queried and called each time each group of data points is queried and called, the specific method for obtaining the association parameters of each data point in each group of data points with any other data point in the group is as follows: According to the number of times each group of data points is queried and called, and the data points that are queried and called each time each group of data points is queried and called, the historical query and call times of each data point in each group of data points are obtained.
[0030] Furthermore, according to the data points that are queried and called each time each group of data points is queried and called, and the historical query and call times of each data point in each group of data points, the correlation parameters of each data point in each group of data points and each other data point in the group are obtained. The specific method is as follows: In the formula, represents the ath data point in the xth group of data, represents the correlation parameter of the ath data point in the xth group of data, T represents the data collection duration, t represents the data collection time interval, Indicates the historical query and call times of the a-th data point in the x-th group of data. Represents the historical query and call times of the i-th data point in the x-th group of data points; this method is used to obtain the association parameters of each data point in each group of data points with each other data point in the group.
[0031] If the historical query and call times of the a-th data point in the x-th group of data are higher, it means that the data point is used more frequently and should be compressed separately to avoid operating other data points when using this data point, wasting system resources, so the smaller the association parameter is; if the historical query and call times of the a-th data point in the x-th group of data points are closer to the historical query and call times of other data points in the group, it means that the query and call times of the a-th data point in the x-th group of data are closer to those of other data points in the group, that is, the probability that the a-th data point in the x-th group of data is associated with other data points in the group is greater, then The smaller the value of The larger the associated parameter The larger the value is, the higher the probability that the data point will be queried or called at the same time as other data points after being grouped with other data points.
[0032] It should be noted that the association parameters obtained by the above method are only obtained based on the query and call of one group of data points, without considering the query and call of other groups of data points. A group of data is accidental, and there may be calls or queries during the data collection process, that is, the data collected first may be called more frequently, so the data collected first is more referenceable. Therefore, this step obtains the association coefficients of the data points with the same sequence in different groups according to the size of the group sequence combined with the association parameters of the data points with the same sequence in different groups.
[0033] Specifically, according to the correlation parameters of each data point in each group of data points and each other data point in the group and the data point grouping sequence, the correlation coefficient of the data points with the same sequence in each data point group is obtained. The specific method is as follows: In the formula, Represents the correlation coefficient of the data points with sequence a in the data point grouping, represents the correlation parameter of the ath data point in the jth group of data points, T represents the data collection duration, t represents the data collection time interval, and the correlation coefficient of the same data points in the sequence in each data point group is obtained according to the above method.
[0034] It should be noted that data with an earlier data collection time is called more frequently, so it is given a larger weight when calculating the correlation coefficient, while data with a later data collection time is called less frequently, so it is given a smaller weight when calculating the correlation coefficient. The final correlation coefficient is more accurate. The larger the correlation coefficient, the greater the probability that the sequence data points in the data point grouping will be queried or called at the same time as other sequence data points in the data point grouping.
[0035] It should be further explained that, since the data collection time of different data point groups is different, the total number of times the data in different grouped data points are queried or called may also be different. The above calculation process does not take into account the proportion of the frequency of the same sequence data points being queried or called in the corresponding groups. There may be some data point groups that are queried or called less times, but some data points in these data point groups are queried or called more times, which makes the calculated correlation coefficient smaller. Therefore, this step determines the reliability of the data point association coefficient by judging the ratio of the number of times the same sequence data points in each group of data points are queried or called to the number of times the corresponding data point group is queried or called; if the ratio of the number of times the same sequence data points in different data point groups are queried or called to the number of times the corresponding group is queried or called fluctuates less, it means that the regularity of the data point being queried or called is universal, and the reliability of the data point association coefficient is higher; if the ratio of the number of times the same sequence data points in different data point groups are queried or called to the number of times the corresponding group is queried or called fluctuates greatly, it means that the situation of the data point being queried or called is accidental, and the reliability of the data point association coefficient is lower.
[0036] Specifically, according to the number of times the data points of the same sequence in each data point group are queried or called and the number of times the corresponding group is queried or called, the stability parameter of the correlation coefficient of the data points of the same sequence in each data point group is obtained. The specific method is as follows: In the formula, represents the stability parameter of the correlation coefficient of the data points in sequence a in the data point grouping, Indicates the number of times the ath data point in the Ith group of data points is queried or called, represents the number of times the first group of data points is queried or called, T represents the data collection duration, and t represents the data collection time interval. It represents the mean of the ratio of the number of times the a-th data point in each group of data points is queried or called to the number of times the corresponding data point group is queried or called. The stability parameter of the correlation coefficient of the same sequence data points in each data point group is obtained according to the above method.
[0037] It should be noted that if the ratio of the number of times the same sequence of data points in different data point groups are queried or called to the number of times the corresponding groups are queried or called fluctuates greatly, then the larger the stability parameter of the same sequence data point, the stronger the randomness of the situation in which the data point is queried or called, and the more unstable the correlation with other data points, then the smaller the probability that the sequence data point will be queried or called at the same time as other sequence data points in the data point group after grouping.
[0038] Specifically, the association priority parameters of the data points with the same sequence in each data point group are obtained by combining the association coefficient of the data points with the same sequence in each data point group, the stability parameter of the association coefficient of the data points with the same sequence in each data point group, and the data volume of the data points with the same sequence in each data point group. The specific method is as follows: In the formula, Represents the association priority parameter of the data point with sequence a in the data point group, represents the stability parameter of the correlation coefficient of the data points in sequence a in the data point grouping, Represents the correlation coefficient of the data points with sequence a in the data point grouping, Indicates the data size of the ath data point in the Jth data point group, represents the data size of the Eth data point in the eth data point group, N represents the type of oil and gas field data, T represents the data collection duration, and t represents the data collection time interval. According to the above method, the association priority parameters of the data points with the same sequence in each data point group are obtained.
[0039] It should be noted that the larger the stability parameter of the correlation coefficient, the more unstable the correlation between the data point and other data points, and the smaller the probability that the sequence data point is queried or called at the same time as other sequence data points in the data point grouping after grouping; the smaller the correlation coefficient, the smaller the probability that the sequence data point is queried or called at the same time as other sequence data points in the data point grouping after grouping; the larger the data volume of the data point, the lower the necessity of grouping the data point with other data points, because the data point with a large data volume itself has certain redundant information, and the data redundancy increased by grouping the data point with other data points is relatively limited, and the compression effect is not significantly improved; therefore, the larger the stability parameter of the correlation coefficient, the smaller the correlation coefficient, and the larger the data volume of the data point, the lower the association priority parameter of the data point, and the lower the necessity of the data point to participate in data grouping.
[0040] Step S003: setting an association priority parameter threshold, combining the association priority parameters of the same sequence data points in each group of data points to obtain an association model and compress it.
[0041] It should be noted that the above steps obtain the association priority parameters of the same sequence data points in each group of data points. Now it is necessary to set the association priority parameter threshold to selectively associate data points.
[0042] It should be further explained that the data point acquisition and traversal methods in the above steps illustrate that the data in the data points of the same sequence in each group of data points are the same type of data. The associated priority parameter threshold Thr set in this embodiment is discussed using Thr=16800 as an example. The value of the associated priority parameter threshold in other embodiments depends on the specific implementation situation.
[0043] Specifically, the specific method of setting the association priority parameter threshold and obtaining the association model and compressing it in combination with the association priority parameters of the data points of the same sequence in each group of data points is as follows: setting the association priority parameter, comparing the association priority parameters of the data points of the same sequence in each group of data with the preset association priority parameter threshold, retaining the data point sequence in the group whose association priority parameter is greater than the preset association priority parameter threshold, and dividing the data points corresponding to the retained data point sequence in each group of data points into a group to be compressed, and the other data points are grouped as a group to be compressed, and each group of groups to be compressed is compressed in units of groups.
[0044] See also Figure 2 , which shows the second object of the present invention, a structural block diagram of an oil and gas field data storage system, the system includes the following modules: a data acquisition module, used to collect and store oil and gas field data with sensors, obtain oil and gas field data points according to the type of oil and gas field data and the time series of the collected data, and record the query and call data point information; a data analysis module, used to obtain the association parameters of each data point in each group of data points with each other data point in the group according to the number of times each group of data points in the oil and gas field data is queried and called, and the data points queried and called each time each group of data points is queried and called; according to the association parameters of each data point in each group of data points with each other data point in the group and the data point grouping sequence, obtain each data point group The module comprises a correlation coefficient of the same data points in a sequence; a stability parameter of the correlation coefficient of the same data points in each data point grouping is obtained according to the number of times the data points in the same sequence in each data point grouping are queried or called and the number of times the corresponding grouping is queried or called; the correlation priority parameter of the same data points in a sequence in each data point grouping is obtained by combining the correlation coefficient of the same data points in a sequence in each data point grouping, the stability parameter of the correlation coefficient of the same data points in a sequence in each data point grouping and the data volume of the same data points in a sequence in each data point grouping; a data storage module is used to set the correlation priority parameter threshold, and obtain the correlation model and compress it by combining the correlation priority parameters of the same sequence data points in each group of data points.
[0045] The third purpose of an embodiment of the present invention is to provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned oil and gas field data storage method when executing the computer program.
[0046] A fourth objective of an embodiment of the present invention is to provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned oil and gas field data storage method are implemented.
[0047] In this embodiment, the oil and gas field data are divided into smaller data points according to the data collection time and the data type. The data points have certain data integrity and readability. When the data points are combined, the distribution of the data in the memory can be guaranteed to be regular, which is convenient for data reading; according to the data points that are queried and called each time each group of data points is queried and called, the historical query and call times of each data point in each group of data points are obtained, and the correlation parameters of each data point in each group of data points with each other data point in the group are obtained. The degree of correlation between the data point in each data point group and other data points can be judged from the frequency of the data point being queried or called; according to the correlation parameters of each data point in each group of data points with each other data point in the group and the data point grouping sequence, the correlation coefficient of the data points with the same sequence in each data point group is obtained, taking into account the timing problem of data collection. The data collected earlier may be operated more times, so the earlier the data collected, the more reference significance it has, and combined with the data in each data point group The data points are operated, so that the obtained data association degree is more accurate; according to the number of times the data points of the same sequence in each data point group are queried or called, and the number of times the corresponding group is queried or called, the stability parameter of the association coefficient of the data points of the same sequence in each data point group is obtained. Considering that the number of times each data group is operated may be greatly different, resulting in a large difference in the number of times the same data in different groups is queried or called, affecting the calculation of the data association degree, this step judges the stability of the number of times the data is queried or called according to the frequency ratio of the same data in different groups. The higher the stability, the higher the degree of data association. The higher the reliability; combined with the correlation coefficient of the same sequence of data points in each data point group, the stability parameter of the correlation coefficient of the same sequence of data points in each data point group and the data volume of the same sequence of data points in each data point group, the correlation priority parameter of the same sequence of data points in each data point group is obtained, and the correlation priority parameter, stability parameter and correlation coefficient of the data point are combined to obtain a more accurate degree of data point correlation, and the data volume of different types of data is taken into account. The larger the data point, the less necessary it is to participate in the combined grouping, because for data points with a large amount of data, the data redundancy may be relatively high, and the effect of combining with other data points on improving the data redundancy may not be much, the compression effect is not significantly improved, and the probability of operating a large amount of irrelevant data during data query or call is increased, affecting system performance; set the correlation priority parameter threshold, combine the correlation priority parameters of the same sequence of data points in each group of data points to obtain the correlation model and compress it, select the appropriate priority parameter threshold, and make the data point memory as small as possible. Data points with strong correlation are grouped into one group for compression, which increases the data redundancy, improves the compression effect, and reduces the probability of decompressing irrelevant data when the data is queried or called, alleviating system pressure.
[0048] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0049] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0050] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0051] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0052] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for storing oil and gas field data, characterized in that: The method comprises the following steps: Use sensors to collect and store oil and gas field data, obtain oil and gas field data points according to the type of oil and gas field data and the time series of collected data, and record query and call data point information; According to the number of times each group of data points in the oil and gas field data is queried and called, and the data points queried and called each time each group of data points is queried and called, obtaining the correlation parameters of each data point in each group of data points with each other data point in the group; The method of obtaining the correlation parameters between each data point in each group of data points and each other data point in the group according to the number of times each group of data points in the oil and gas field data is queried and called, and the data points queried and called each time each group of data points is queried and called, includes the following specific methods: According to the number of times each group of data points is queried and called, and the data points that are queried and called each time each group of data points is queried and called, the historical number of queries and calls of each data point in each group of data points is obtained; According to the data points that are queried and called each time each group of data points is queried and called, the historical query and call times of each data point in each group of data points, the association parameters of each data point in each group of data points with each other data point in the group are obtained. The specific method is as follows: In the formula, represents the ath data point in the xth group of data, represents the correlation parameter of the ath data point in the xth group of data, T represents the data collection duration, t represents the data collection time interval, Indicates the historical query and call times of the a-th data point in the x-th group of data. Represents the historical query and call times of the i-th data point in the x-th group of data points; this method is used to obtain the correlation parameters of each data point in each group of data points with each other data point in the group; According to the correlation parameters of each data point in each group of data points and each other data point in the group and the data point grouping sequence, the correlation coefficient of the same data points in the sequence in each data point group is obtained; The method of obtaining the correlation coefficient of the same data points in the sequence in each data point group according to the correlation parameters of each data point in each group of data points with each other data point in the group and the data point grouping sequence includes the following specific methods: In the formula, Represents the correlation coefficient of the data points with sequence a in the data point grouping, represents the correlation parameter of the ath data point in the jth group of data points, T represents the data collection time, t represents the data collection time interval, and the correlation coefficient of the same data points in the sequence in each data point group is obtained according to the above method; According to the number of times the data points of the same sequence in each data point group are queried or called and the number of times the corresponding group is queried or called, a stability parameter of the correlation coefficient of the data points of the same sequence in each data point group is obtained; The method of obtaining the stability parameter of the correlation coefficient of the same sequence of data points in each data point group according to the number of times the same sequence of data points in each data point group is queried or called and the number of times the corresponding group is queried or called includes the following specific methods: In the formula, represents the stability parameter of the correlation coefficient of the data points in sequence a in the data point grouping, Indicates the number of times the ath data point in the Ith group of data points is queried or called, represents the number of times the first group of data points is queried or called, T represents the data collection duration, and t represents the data collection time interval. Represents the mean of the ratio of the number of times the a-th data point in each group of data points is queried or called to the number of times the corresponding data point group is queried or called, and the stability parameter of the correlation coefficient of the same sequence data points in each data point group is obtained according to the above method; Combining the correlation coefficient of the same sequence of data points in each data point group, the stability parameter of the correlation coefficient of the same sequence of data points in each data point group and the data volume of the same sequence of data points in each data point group, obtaining the correlation priority parameter of the same sequence of data points in each data point group; The method of combining the correlation coefficient of the same sequence of data points in each data point group, the stability parameter of the correlation coefficient of the same sequence of data points in each data point group and the data volume of the same sequence of data points in each data point group to obtain the correlation priority parameter of the same sequence of data points in each data point group includes the following specific methods: In the formula, Represents the association priority parameter of the data point with sequence a in the data point group, represents the stability parameter of the correlation coefficient of the data points in sequence a in the data point grouping, Represents the correlation coefficient of the data points with sequence a in the data point grouping, Indicates the data size of the ath data point in the Jth data point group, represents the data volume of the Eth data point in the eth data point group, N represents the type of oil and gas field data, T represents the data collection time, and t represents the data collection time interval. According to the above method, the association priority parameters of the data points with the same sequence in each data point group are obtained; The association priority parameter threshold is set, and the association model is obtained and compressed by combining the association priority parameters of the same sequence data points in each group of data points.
2. The oil and gas field data storage method according to claim 1, characterized in that: The specific method of collecting and storing oil and gas field data using sensors, obtaining oil and gas field data points according to the types of oil and gas field data and the time series of collected data, and recording query and calling data point information includes: Use sensors to collect and store oil and gas field data according to preset time intervals and data collection durations, add labels with different memory sizes to each type of oil and gas field data, take each type of oil and gas field data collected each time as a data point, record all data points contained in the oil and gas field data collected each time as a group of data points, traverse the data points in each group of data points in order from large to small according to the memory size of the oil and gas data type label, record the number of times each group of data points is queried and called, and record the data points and data volume of each group of data points each time they are queried and called, in KB.
3. The oil and gas field data storage method according to claim 1, characterized in that: The method of setting the association priority parameter threshold and obtaining and compressing the association model by combining the association priority parameters of the same sequence data points in each group of data points includes: Set the association priority parameter, compare the association priority parameters of the data points of the same sequence in each group of data with the preset association priority parameter threshold, retain the data point sequence in the group whose association priority parameter is greater than the preset association priority parameter threshold, and divide the data points corresponding to the retained data point sequence in each group of data points into a group to be compressed. For other data points, each data point is a group to be compressed, and each group to be compressed is compressed in units of groups.
4. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the oil and gas field data storage method as described in any one of claims 1 to 3 are implemented.
5. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the oil and gas field data storage method as described in any one of claims 1 to 3 are implemented.
6. An oil and gas field data storage system, characterized in that: The system includes the following modules: The data acquisition module is used to collect and store oil and gas field data using sensors, obtain oil and gas field data points according to the type of oil and gas field data and the time series of collected data, and record query and call data point information; The data analysis module is used to obtain the correlation parameters of each data point in each group of data points with each other data point in the group according to the number of times each group of data points in the oil and gas field data is queried and called and the data points queried and called each time each group of data points is queried and called; The method of obtaining the correlation parameters between each data point in each group of data points and each other data point in the group according to the number of times each group of data points in the oil and gas field data is queried and called, and the data points queried and called each time each group of data points is queried and called, includes the following specific methods: According to the number of times each group of data points is queried and called, and the data points that are queried and called each time each group of data points is queried and called, the historical number of queries and calls of each data point in each group of data points is obtained; According to the data points that are queried and called each time each group of data points is queried and called, the historical query and call times of each data point in each group of data points, the association parameters of each data point in each group of data points with each other data point in the group are obtained. The specific method is as follows: In the formula, represents the ath data point in the xth group of data, represents the correlation parameter of the ath data point in the xth group of data, T represents the data collection duration, t represents the data collection time interval, Indicates the historical query and call times of the a-th data point in the x-th group of data. Indicates the historical query and call times of the i-th data point in the x-th group of data points; This method is used to obtain the correlation parameters of each data point in each group of data points with each other data point in the group; According to the correlation parameters of each data point in each group of data points and each other data point in the group and the data point grouping sequence, the correlation coefficient of the same data points in the sequence in each data point group is obtained; The method of obtaining the correlation coefficient of the same data points in the sequence in each data point group according to the correlation parameters of each data point in each group of data points with each other data point in the group and the data point grouping sequence includes the following specific methods: In the formula, Represents the correlation coefficient of the data points with sequence a in the data point grouping, represents the correlation parameter of the ath data point in the jth group of data points, T represents the data collection time, t represents the data collection time interval, and the correlation coefficient of the same data points in the sequence in each data point group is obtained according to the above method; According to the number of times the data points of the same sequence in each data point group are queried or called and the number of times the corresponding group is queried or called, a stability parameter of the correlation coefficient of the data points of the same sequence in each data point group is obtained; The method of obtaining the stability parameter of the correlation coefficient of the same sequence of data points in each data point group according to the number of times the same sequence of data points in each data point group is queried or called and the number of times the corresponding group is queried or called includes the following specific methods: In the formula, represents the stability parameter of the correlation coefficient of the data points in sequence a in the data point grouping, Indicates the number of times the ath data point in the Ith group of data points is queried or called, represents the number of times the first group of data points is queried or called, T represents the data collection duration, and t represents the data collection time interval. Represents the mean of the ratio of the number of times the a-th data point in each group of data points is queried or called to the number of times the corresponding data point group is queried or called, and the stability parameter of the correlation coefficient of the same sequence data points in each data point group is obtained according to the above method; Combining the correlation coefficient of the same sequence of data points in each data point group, the stability parameter of the correlation coefficient of the same sequence of data points in each data point group and the data volume of the same sequence of data points in each data point group, obtaining the correlation priority parameter of the same sequence of data points in each data point group; The method of combining the correlation coefficient of the same sequence of data points in each data point group, the stability parameter of the correlation coefficient of the same sequence of data points in each data point group and the data volume of the same sequence of data points in each data point group to obtain the correlation priority parameter of the same sequence of data points in each data point group includes the following specific methods: In the formula, Represents the association priority parameter of the data point with sequence a in the data point group, represents the stability parameter of the correlation coefficient of the data points in sequence a in the data point grouping, Represents the correlation coefficient of the data points with sequence a in the data point grouping, Indicates the data size of the ath data point in the Jth data point group, represents the data volume of the Eth data point in the eth data point group, N represents the type of oil and gas field data, T represents the data collection time, and t represents the data collection time interval. According to the above method, the association priority parameters of the data points with the same sequence in each data point group are obtained; The data storage module is used to set the threshold of the association priority parameter, and obtain the association model and compress it by combining the association priority parameters of the same sequence data points in each group of data points.
Citation Information
Patent Citations
Data real-time processing and storing system and method
CN110413599A
Method and device for detecting query of time series data and time series database system
CN113111098A
Data processing acceleration method and device
CN115470243A
Data query processing method and device and storage medium
CN115525651A
Coal rock data generation and permeability prediction method based on deep learning
CN116503323A
