Liquid level monitoring method and device, electronic equipment and storage medium

By screening and analyzing the change slope of the liquid level data, the normal range of the liquid level data is determined, which solves the problem of inconsistent liquid level instrument data and improves the accuracy and reliability of liquid level monitoring.

CN118533256APending Publication Date: 2024-08-23AISINO CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310143842.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing liquid level gauges lack unified national standards, resulting in inconsistent data records for the same oil tank by liquid level gauges from different manufacturers, making it impossible to accurately monitor the liquid level of the oil tank.

Method used

By obtaining the liquid level data in the preset period, filtering out the data with changing characteristics, calculating the change slope, and determining the normal range of the liquid level data based on the maximum and minimum values ​​in the confidence interval, thereby improving the monitoring accuracy of the liquid level data. and reliability.

Benefits of technology

It greatly reduces the interference of invalid data, improves the authenticity and reliability of liquid level data, saves computing resources, and improves the monitoring precision and accuracy of liquid level data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118533256A
    Figure CN118533256A
Patent Text Reader

Abstract

The invention discloses a liquid level monitoring method and device, electronic equipment and a storage medium. The liquid level monitoring method and device are used for improving the accuracy of liquid level data monitoring. In the embodiment of the invention, in response to a range acquisition instruction, a normal range corresponding to a preset time period is acquired; and within the preset time period, the liquid level in the target object is detected based on the normal range. In the application, the liquid level data is supervised based on the change slope of the liquid level data, interference of invalid data is greatly reduced, the normal range is determined based on historical data, historical analysis result features are highlighted, the precision of the normal range is improved, and the accuracy of the normal range is improved by analyzing and supervising the liquid level data. And the authenticity and reliability of liquid level data are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] As we all know, the input business data of gas stations can be collected through gas pump collection equipment, and this collection equipment has national unified standards and is managed in a relatively standardized manner. Through the real-time collection of the input business data of gas pumps, the gas station business data is first obtained. At the same time, by judging the rationality of the data, the data of the gas pump can be identified and accurately determined.

[0003] As for the oil tank inventory at gas stations, data is generally recorded through level meters, and business data is obtained based on the level meter collection equipment. There is currently no national unified standard for level meters, so level meters from different manufacturers may have different data for the same oil tank, resulting in the inability to accurately monitor the liquid level of the oil tank. Summary of the invention

[0004] The purpose of the present application is to provide a liquid level monitoring method, device, electronic device and storage medium, which are used to improve the accuracy of liquid level data monitoring.

[0005] In a first aspect, an embodiment of the present application provides a liquid level monitoring method, the method comprising:

[0006] In response to the range acquisition instruction, acquiring a normal range corresponding to a preset time period;

[0007] Within the preset time period, detecting the liquid level in the target object based on the normal range;

[0008] The normal range is determined according to the following method:

[0009] Acquire sample liquid level data in the target object and the collection time corresponding to each sample liquid level data;

[0010] Sorting the sample liquid level data according to the acquisition time to obtain a liquid level data sequence;

[0011] Screening out liquid level data with change characteristics from the liquid level data sequence, and constructing a new data sequence based on the liquid level data with change characteristics; wherein the liquid level data with change characteristics is obtained based on the liquid level data in the liquid level data sequence that is adjacent in time sequence;

[0012] For any adjacent liquid level data in the new data sequence, calculating the change slope of the any adjacent liquid level data;

[0013] Based on the maximum and minimum values ​​of the change slope in the preset confidence interval, a normal range corresponding to the liquid level data is obtained.

[0014] In the present application, the liquid level data is supervised based on the slope of the change of the liquid level data, which greatly reduces the interference of invalid data. By determining the normal range based on historical data, the characteristics of the historical analysis results are highlighted, the accuracy of the normal range is improved, and the authenticity and reliability of the liquid level data are greatly improved through analysis and supervision of the liquid level data.

[0015] In some possible embodiments, the step of filtering out the liquid level data having a change characteristic from the liquid level data sequence includes:

[0016] For any one liquid level data in the liquid level data sequence, determining a first difference value and a second difference value between the liquid level data and the liquid level data adjacent to each other in time sequence;

[0017] If it is determined that any one of the first difference and the second difference is greater than a preset difference, the liquid level data is determined to be liquid level data with a change characteristic.

[0018] In the present application, the liquid level data sample data is screened based on the change characteristics, avoiding the screening of the full amount of data, saving computing resources and improving the computing speed.

[0019] In some possible embodiments, the liquid level data includes oil volume and oil height, and the step of calculating the change slope of any adjacent liquid level data in the new data sequence includes:

[0020] For any liquid level data in the new data sequence, the arbitrary liquid level data is used as the target liquid level data, and based on the target liquid level data and the oil volumes corresponding to the front liquid level data and the rear liquid level data, a first oil volume difference and a second oil volume difference are obtained; and,

[0021] Based on the target liquid level data and the oil heights corresponding to the front liquid level data and the rear liquid level data, a first oil height difference and a second oil height difference are obtained;

[0022] The front liquid level data is the liquid level data that is adjacent to the target liquid level data in the new data sequence and is located before the target liquid level data in time sequence; the rear liquid level data is the liquid level data that is adjacent to the target liquid level data in the new data sequence and is located after the target liquid level data in time sequence;

[0023] Based on the first oil quantity difference and the first oil height difference, obtaining a change slope between the target liquid level data and the previous liquid level data;

[0024] Based on the second oil quantity difference and the second oil height difference, a change slope between the target liquid level data and the rear liquid level data is obtained.

[0025] In the present application, the change slope is determined based on the oil volume and the oil height, thereby ensuring the accuracy of the liquid level data monitoring.

[0026] In some possible embodiments, obtaining a normal range corresponding to the liquid level data of the target object based on the maximum value and the minimum value of the change slope includes:

[0027] Acquire two liquid level data corresponding to the maximum value of the change slope; the two liquid level data corresponding to the maximum value are respectively two liquid level data involved in calculating the maximum value of the change slope;

[0028] Acquire two liquid level data corresponding to the minimum value of the change slope; the two liquid level data corresponding to the minimum value are respectively two liquid level data involved in calculating the minimum value of the change slope;

[0029] The maximum value of the two liquid level data corresponding to the maximum value is used as the upper limit of the liquid level data range;

[0030] The minimum value of the two liquid level data corresponding to the minimum value is used as the lower limit of the liquid level data range;

[0031] A normal range corresponding to the liquid level data of the target object is determined based on an upper limit of the liquid level data range and a lower limit of the liquid level data range.

[0032] In the present application, the normal range is determined based on historical data, so that the determined normal range is more referenceable.

[0033] In some possible embodiments, obtaining sample liquid level data of the target object includes:

[0034] Acquiring liquid level data collected within a preset time period of the target object;

[0035] If it is determined that the amount of liquid level data collected within the preset time period is greater than the preset amount of data, the liquid level data collected within the preset time period are grouped according to the preset time period to obtain multiple groups of liquid level data sets;

[0036] A specified number of liquid level data are extracted from each liquid level data set to form the sample liquid level data.

[0037] In this application, by processing historical data, the workload of data processing is reduced and the resources consumed in the data processing process are saved.

[0038] In a second aspect, the present application further provides a liquid level monitoring device, the device comprising:

[0039] A response module, configured to obtain a normal range corresponding to a preset time period in response to a range acquisition indication;

[0040] A detection module, configured to detect the liquid level in the target object within the preset time period based on the normal range;

[0041] The normal range is determined according to the following method:

[0042] Acquire sample liquid level data in the target object and the collection time corresponding to each sample liquid level data;

[0043] Sorting the sample liquid level data according to the acquisition time to obtain a liquid level data sequence;

[0044] Screening out liquid level data with change characteristics from the liquid level data sequence, and constructing a new data sequence based on the liquid level data with change characteristics; wherein the liquid level data with change characteristics is obtained based on the liquid level data in the liquid level data sequence that is adjacent in time sequence;

[0045] For any adjacent liquid level data in the new data sequence, calculating the change slope of the any adjacent liquid level data;

[0046] Based on the maximum and minimum values ​​of the change slope in the preset confidence interval, a normal range corresponding to the liquid level data is obtained.

[0047] In some possible embodiments, when the response module performs the operation of filtering out the liquid level data having the change characteristics from the liquid level data sequence, the response module is specifically configured as follows:

[0048] For any one liquid level data in the liquid level data sequence, determining a first difference value and a second difference value between the liquid level data and the liquid level data adjacent to each other in time sequence;

[0049] If it is determined that any one of the first difference and the second difference is greater than a preset difference, the liquid level data is determined to be liquid level data with a change characteristic.

[0050] In some possible embodiments, the liquid level data includes oil volume and oil height, and when the response module calculates the change slope of any adjacent liquid level data in the new data sequence, the response module is specifically configured as follows:

[0051] For any liquid level data in the new data sequence, the arbitrary liquid level data is used as the target liquid level data, and based on the target liquid level data and the oil volumes corresponding to the front liquid level data and the rear liquid level data, a first oil volume difference and a second oil volume difference are obtained; and,

[0052] Based on the target liquid level data and the oil heights corresponding to the front liquid level data and the rear liquid level data, a first oil height difference and a second oil height difference are obtained;

[0053] The front liquid level data is the liquid level data that is adjacent to the target liquid level data in the new data sequence and is located before the target liquid level data in time sequence; the rear liquid level data is the liquid level data that is adjacent to the target liquid level data in the new data sequence and is located after the target liquid level data in time sequence;

[0054] Based on the first oil quantity difference and the first oil height difference, obtaining a change slope between the target liquid level data and the previous liquid level data;

[0055] Based on the second oil quantity difference and the second oil height difference, a change slope between the target liquid level data and the rear liquid level data is obtained.

[0056] In some possible embodiments, when the response module executes the normal range corresponding to the liquid level data of the target object based on the maximum value and the minimum value of the change slope, the response module is specifically configured as follows:

[0057] Acquire two liquid level data corresponding to the maximum value of the change slope; the two liquid level data corresponding to the maximum value are respectively two liquid level data involved in calculating the maximum value of the change slope;

[0058] Acquire two liquid level data corresponding to the minimum value of the change slope; the two liquid level data corresponding to the minimum value are respectively two liquid level data involved in calculating the minimum value of the change slope;

[0059] The maximum value of the two liquid level data corresponding to the maximum value is used as the upper limit of the liquid level data range;

[0060] The minimum value of the two liquid level data corresponding to the minimum value is used as the lower limit of the liquid level data range;

[0061] A normal range corresponding to the liquid level data of the target object is determined based on an upper limit of the liquid level data range and a lower limit of the liquid level data range.

[0062] In some possible embodiments, when the response module executes acquiring the sample liquid level data of the target object, it is specifically configured as follows:

[0063] Acquiring liquid level data collected within a preset time period of the target object;

[0064] If it is determined that the amount of liquid level data collected within the preset time period is greater than the preset amount of data, the liquid level data collected within the preset time period are grouped according to the preset time period to obtain multiple groups of liquid level data sets;

[0065] A specified number of liquid level data are extracted from each liquid level data set to form the sample liquid level data.

[0066] In the third aspect, another embodiment of the present application also provides an electronic device, comprising at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any method provided in the embodiment of the first aspect of the present application.

[0067] In a fourth aspect, another embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is used to enable a computer to execute any method provided in the embodiment of the first aspect of the present application.

[0068] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0070] Figure 1 A schematic diagram of an application scenario of a liquid level monitoring method provided in an embodiment of the present application;

[0071] Figure 2 A schematic diagram of the overall process of a liquid level monitoring method provided in an embodiment of the present application;

[0072] Figure 3 A schematic diagram of a flow chart of determining a normal range of a liquid level monitoring method provided in an embodiment of the present application;

[0073] Figure 4 A schematic diagram of a flow chart of determining liquid level data with changing characteristics in a liquid level monitoring method provided in an embodiment of the present application;

[0074] Figure 5 An oil quantity timing diagram and an oil height timing diagram of a liquid level monitoring method provided in an embodiment of the present application;

[0075] Figure 6 A schematic diagram of a flow chart of determining a change slope of a liquid level monitoring method provided in an embodiment of the present application;

[0076] Figure 7 A schematic diagram of a flow chart for determining the upper and lower limits of a normal range of a liquid level monitoring method provided in an embodiment of the present application;

[0077] Figure 8 A schematic diagram of a flow chart of determining the maximum and minimum values ​​of a change slope based on a confidence interval in a liquid level monitoring method provided in an embodiment of the present application;

[0078] Fig. 9 A schematic diagram of determining the maximum and minimum values ​​of a change slope based on a confidence interval in a liquid level monitoring method provided in an embodiment of the present application;

[0079] Fig.10 A schematic diagram of a flow chart of determining sample liquid level data of a liquid level monitoring method provided in an embodiment of the present application;

[0080] Fig.11 A schematic diagram of a liquid level monitoring method provided in an embodiment of the present application;

[0081] Fig.12 A schematic diagram of an electronic device for a liquid level monitoring method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0082] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be arbitrarily combined with each other. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.

[0083] The terms "first" and "second" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive protection. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in the present application can mean at least two, for example, two, three or more, and the embodiments of the present application are not limited.

[0084] In the technical solution of this application, the collection, dissemination, and use of data are in compliance with the requirements of relevant national laws and regulations.

[0085] The inventors have found that, as is well known, the input business data of gas stations can be collected through gas pump collection equipment, and the collection equipment has national unified standards and is managed in a relatively standardized manner. By collecting the input business data of gas pumps in real time, the gas station operating business data is first obtained, and by judging the rationality of the data, the data of the gas pumps can be identified and accurately determined.

[0086] As for the oil tank inventory at gas stations, data is generally recorded through level meters, and business data is obtained based on the level meter collection equipment. There is currently no national unified standard for level meters, so level meters from different manufacturers may have different data for the same oil tank, resulting in the inability to accurately monitor the liquid level of the oil tank.

[0087] In view of this, the present application proposes a liquid level monitoring method, device, electronic device and storage medium for solving the above problems. The inventive concept of the present application can be summarized as follows: in response to a range acquisition indication, a normal range corresponding to a preset time period is acquired; within the preset time period, the liquid level in the target object is detected based on the normal range; wherein the normal range is determined according to the following method: sample liquid level data in the target object is acquired, and the acquisition time corresponding to each sample liquid level data; the sample liquid level data is sorted according to the acquisition time to obtain a liquid level data sequence; liquid level data with change characteristics are screened out from the liquid level data sequence, and a new data sequence is constructed based on the liquid level data with change characteristics; wherein the liquid level data with change characteristics is obtained based on the liquid level data in the liquid level data sequence that is adjacent in time sequence; for any adjacent liquid level data in the new data sequence, the change slope of any adjacent liquid level data is calculated; based on the maximum and minimum values ​​of the change slope in the preset confidence interval, the normal range corresponding to the liquid level data is obtained.

[0088] For ease of understanding, a liquid level monitoring method provided in an embodiment of the present application is described in detail below with reference to the accompanying drawings:

[0089] like Figure 1 As shown, it is an application scenario diagram of a liquid level monitoring method in an embodiment of the present application. The diagram includes: a server 10, a target object 20, and a liquid level meter 30; wherein:

[0090] The server 10 obtains a normal range corresponding to a preset period in response to the range acquisition instruction; within the preset period, the liquid level in the target object 20 is detected based on the normal range; wherein the normal range is determined according to the following method:

[0091] The sample liquid level data in the target object 20 and the collection time corresponding to each sample liquid level data are obtained through the liquid level meter 30; the sample liquid level data are sorted according to the collection time to obtain a liquid level data sequence; the liquid level data with change characteristics are screened out from the liquid level data sequence, and a new data sequence is constructed based on the liquid level data with change characteristics; wherein the liquid level data with change characteristics are obtained based on the liquid level data in the liquid level data sequence that are adjacent in time sequence; for any adjacent liquid level data in the new data sequence, the change slope of any adjacent liquid level data is calculated; based on the maximum and minimum values ​​of the change slope in the preset confidence interval, the normal range corresponding to the liquid level data is obtained.

[0092] The description in this application only details a single server 10, a target object 20, and a liquid level meter 30, but it should be understood by those skilled in the art that the server 10, the target object 20, and the liquid level meter 30 shown are intended to represent the operation of the server 10, the target object 20, and the liquid level meter 30 involved in the technical solution of this application. It does not imply any restrictions on the number, type, or location of the server 10, the target object 20, and the liquid level meter 30. It should be noted that if additional modules are added to the illustrated environment or individual modules are removed therefrom, the underlying concepts of the example embodiments of this application will not be changed. In addition, it will be understood by those skilled in the art that the sending and receiving of the above data also needs to be implemented through a network.

[0093] In addition, the liquid level monitoring method proposed in this application is not only applicable to Figure 1 The application scenario shown is also applicable to any device with liquid level monitoring requirements.

[0094] like Figure 2 FIG. 1 is a schematic diagram of the overall process of a liquid level monitoring method provided in an embodiment of the present application, wherein:

[0095] In step 201: in response to a range acquisition instruction, a normal range corresponding to a preset time period is acquired;

[0096] In step 202: within a preset period of time, the liquid level in the target object is detected based on a normal range.

[0097] The normal range is based on Figure 3 The method shown determines:

[0098] In step 301: obtaining sample liquid level data in the target object and the collection time corresponding to each sample liquid level data;

[0099] In step 302: sorting the sample liquid level data according to the acquisition time to obtain a liquid level data sequence;

[0100] In step 303: liquid level data with change characteristics are screened out from the liquid level data sequence, and a new data sequence is constructed based on the liquid level data with change characteristics;

[0101] The liquid level data with the change characteristic is obtained based on the liquid level data adjacent to the liquid level data in the time series;

[0102] In step 304: for any adjacent liquid level data in the new data sequence, the change slope of any adjacent liquid level data is calculated;

[0103] Step 305: Obtain a normal range corresponding to the liquid level data based on the maximum and minimum values ​​of the change slope within a preset confidence interval.

[0104] In the present application, the liquid level data is supervised based on the slope of the change of the liquid level data, which greatly reduces the interference of invalid data. By determining the normal range based on historical data, the characteristics of the historical analysis results are highlighted, the accuracy of the normal range is improved, and the authenticity and reliability of the liquid level data are greatly improved through analysis and supervision of the liquid level data.

[0105] In order to facilitate further understanding of a liquid level monitoring method provided in an embodiment of the present application, Figure 2 as well as Figure 3 The steps in are described in detail.

[0106] In some possible embodiments, in order to reduce computing power and waste of computing resources, it is necessary to process the full amount of liquid level data and filter out the required data. In the present application, the liquid level data with change characteristics is obtained based on the liquid level data that is adjacent to the liquid level data in the time series in the liquid level data sequence, which can characterize the change of the liquid level data inside the target object. Therefore, it is necessary to filter out the liquid level data with change characteristics from the liquid level data sequence, which can be specifically implemented as follows: Figure 4 Steps shown:

[0107] In step 401: for any one liquid level data in the liquid level data sequence, a first difference value and a second difference value between the liquid level data and the liquid level data adjacent to each other in time sequence are determined;

[0108] In step 402: if it is determined that any one of the first difference and the second difference is greater than the preset difference, the liquid level data is determined to be liquid level data with a change characteristic.

[0109] In the present application, the liquid level data includes oil quantity and oil height. Therefore, when calculating the first difference and the second difference, for the target liquid level data, it is necessary to calculate the difference between the oil quantity and oil height of the target liquid level data and the oil quantity and oil height of the front and rear adjacent data, for example: for the target liquid level data, its oil height is 2 and the oil quantity is 10, the oil height of the front liquid level data is 3 and the oil quantity is 10.5, and the oil height of the rear liquid level data is 2 and the oil quantity is 10; then the first difference is (1, 0.5), and the second difference is (0, 0); the preset difference is (a, b).

[0110] For example: Figure 5 As shown, the oil volume timing diagram and oil height timing diagram respectively correspond to some liquid level data in the liquid level data sequence. The preset difference is (a, b). It can be determined that the liquid level data corresponding to points B, C, D, E, and F respectively are liquid level data with changing characteristics.

[0111] In some possible embodiments, after obtaining the liquid level data with a change characteristic, for any adjacent liquid level data in the new data sequence, when calculating the change slope of the any adjacent liquid level data, it can be implemented as follows: Figure 6 The steps shown, where:

[0112] In step 601: for any liquid level data in the new data sequence, the any liquid level data is taken as the target liquid level data, and based on the target liquid level data and the oil volumes corresponding to the front liquid level data and the rear liquid level data, a first oil volume difference and a second oil volume difference are obtained;

[0113] In step 602: based on the target liquid level data and the oil heights corresponding to the front liquid level data and the rear liquid level data, a first oil height difference and a second oil height difference are obtained;

[0114] The front liquid level data is the liquid level data that is adjacent to the target liquid level data in the new data sequence and is located before the target liquid level data in time sequence; the rear liquid level data is the liquid level data that is adjacent to the target liquid level data in the new data sequence and is located after the target liquid level data in time sequence;

[0115] In step 603: based on the first oil quantity difference and the first oil height difference, a change slope between the target liquid level data and the previous liquid level data is obtained;

[0116] In step 604: based on the second oil quantity difference and the second oil height difference, a change slope between the target liquid level data and the rear liquid level data is obtained.

[0117] For example: the liquid level data included in the new data sequence are: liquid level data 1 (oil volume 10, oil height 10), liquid level data 2 (oil volume 9, oil height 8), liquid level data 3 (oil volume 7, oil height 7), liquid level data 4 (oil volume 6, oil height 6); taking liquid level data 2 as the target liquid level data, the previous liquid level data of liquid level data 2 is liquid level data 1, and the subsequent liquid level data of liquid level data 2 is liquid level data 3, then the first oil volume difference is 1, the second oil volume difference is 2, the first oil height difference is 2, and the second oil height difference is 1.

[0118] After obtaining the change slope, it is necessary to further determine the normal range corresponding to the liquid level data of the target object according to the change slope. In the embodiment of the present application, when the normal range corresponding to the liquid level data of the target object is obtained based on the maximum value and the minimum value of the change slope, it can be implemented as follows: Figure 7 The steps shown, where:

[0119] In step 701: obtaining two liquid level data corresponding to the maximum value of the change slope;

[0120] The two liquid level data corresponding to the maximum value are respectively the two liquid level data participating in the calculation of the maximum value of the change slope;

[0121] In step 702: obtaining two liquid level data corresponding to the minimum value of the change slope;

[0122] The two liquid level data corresponding to the minimum value are respectively the two liquid level data participating in the calculation of the minimum value of the change slope;

[0123] In step 703: the maximum value of the two liquid level data corresponding to the maximum value is used as the upper limit of the liquid level data range;

[0124] In step 704: the minimum value of the two liquid level data corresponding to the minimum value is used as the lower limit of the liquid level data range;

[0125] In step 705 : a normal range corresponding to the liquid level data of the target object is determined based on the upper limit of the liquid level data range and the lower limit of the liquid level data range.

[0126] For example: the obtained change slopes are: 0.5, 0.2, 1, 1.2, 2.4 respectively; the maximum value of the change slope is determined to be 2.4, and the minimum value is 0.2; the liquid level data corresponding to the maximum value is determined to be liquid level data 1 and liquid level data 2, and the liquid level data corresponding to the minimum value is determined to be liquid level data 3 and liquid level data 4; the largest value between liquid level data 1 and liquid level data 2 is liquid level data 1, and the minimum value between liquid level data 3 and liquid level data 4 is liquid level data 4; then the upper limit of the liquid level data range is determined to be the liquid level data corresponding to liquid level data 1, and the lower limit of the liquid level data range is the liquid level data corresponding to liquid level data 4.

[0127] It is important to know that the liquid level data refers to the oil height and oil volume in the oil tank. The relationship between the oil volume and the oil height is proportional. The more oil volume, the higher the oil height. Therefore, when determining the maximum and minimum values ​​of the two liquid data corresponding to the change slope, you can choose either the oil height or the oil volume for comparison.

[0128] In some other possible embodiments, in order to make the liquid level data more reliable and universal, a confidence interval can be set according to the distribution of the change slope over time, and the change slope can be screened according to the confidence interval, and the normal range can be determined based on the screened change slope. Therefore, before obtaining the normal range corresponding to the liquid level data of the target object based on the maximum and minimum values ​​of the change slope, the following can be used to determine the normal range. Figure 8 The steps shown determine the maximum and minimum values ​​of the slope of change that are more general, where:

[0129] In step 801: determining a confidence interval according to the time corresponding to the change slope;

[0130] In step 802: the change slope is screened according to the confidence interval to obtain the screened change slope;

[0131] In step 803: the maximum value among the filtered change slopes is taken as the maximum value of the change slopes, and the minimum value among the filtered change slopes is taken as the minimum value of the change slopes.

[0132] For example: Fig. 9 As shown, this is the distribution of the change slope. According to the distribution of the change slope, the confidence interval is set to [a, b]. After screening the change slope according to the confidence interval, it is determined that the maximum value of the change slope is c and the minimum value is d.

[0133] In some possible embodiments, in order to ensure the accuracy of liquid level data monitoring and reduce the waste of computing resources, therefore, in this application, when obtaining the sample liquid level data of the target object, it can be specifically implemented as follows: Fig.10 The steps shown, where:

[0134] In step 1001: obtaining liquid level data collected within a preset time period of a target object;

[0135] In step 1002: if it is determined that the amount of liquid level data collected within the preset time period is greater than the preset amount of data, the liquid level data collected within the preset time period is grouped and processed according to the preset time period to obtain multiple groups of liquid level data sets;

[0136] In step 1003: a specified number of liquid level data are extracted from each liquid level data set to form sample liquid level data.

[0137] For example: the liquid level data of the target object in the month before the current time is obtained, and it is determined that the number of liquid level data collected in the liquid level data in the month before is greater than the preset data amount, and the preset time period refers to the data on Monday and Tuesday of the first week in the liquid level data in the month before, and the data on Wednesday and Thursday of the second week in the month before is obtained, and the data on Friday and Saturday of the third week in the month before is obtained, and the data on Sunday of the fourth week in the month before is obtained, then four or five liquid level data are obtained, and n liquid level data are extracted from each group of liquid level data to form sample liquid level data.

[0138] In another embodiment, it can also be implemented as follows: obtaining the liquid level data of the target object one month before the current time, determining that the amount of liquid level data collected in the liquid level data of the previous month is greater than a preset data amount, and the preset time period indicates obtaining the liquid level data corresponding to 0 o'clock to 12 o'clock in the liquid level data collected every day, then obtaining the liquid level data corresponding to 0 o'clock to 12 o'clock every day from the liquid level data of the previous month to form the sample liquid level data.

[0139] In the specific implementation, the technicians can construct the sample liquid level data according to their own needs. This application only provides two embodiments, and this application does not limit the specific implementation method of constructing the sample liquid level data.

[0140] like Fig.11 As shown, based on the same inventive concept, a liquid level monitoring device 1100 is proposed, and the device includes:

[0141] A response module 11001 is used to obtain a normal range corresponding to a preset time period in response to a range acquisition instruction;

[0142] A detection module 11002 is used to detect the liquid level in the target object based on the normal range within the preset time period;

[0143] The normal range is determined according to the following method:

[0144] Acquire sample liquid level data in the target object and the collection time corresponding to each sample liquid level data;

[0145] Sorting the sample liquid level data according to the acquisition time to obtain a liquid level data sequence;

[0146] Screening out liquid level data with change characteristics from the liquid level data sequence, and constructing a new data sequence based on the liquid level data with change characteristics; wherein the liquid level data with change characteristics is obtained based on the liquid level data in the liquid level data sequence that is adjacent in time sequence;

[0147] For any adjacent liquid level data in the new data sequence, calculating the change slope of the any adjacent liquid level data;

[0148] Based on the maximum and minimum values ​​of the change slope in the preset confidence interval, a normal range corresponding to the liquid level data is obtained.

[0149] In some possible embodiments, when the response module performs the operation of filtering out the liquid level data having the change characteristics from the liquid level data sequence, the response module is specifically configured as follows:

[0150] For any one liquid level data in the liquid level data sequence, determining a first difference value and a second difference value between the liquid level data and the liquid level data adjacent to each other in time sequence;

[0151] If it is determined that any one of the first difference and the second difference is greater than a preset difference, the liquid level data is determined to be liquid level data with a change characteristic.

[0152] In some possible embodiments, the liquid level data includes oil volume and oil height, and when the response module calculates the change slope of any adjacent liquid level data in the new data sequence, the response module is specifically configured as follows:

[0153] For any liquid level data in the new data sequence, the arbitrary liquid level data is used as the target liquid level data, and based on the target liquid level data and the oil volumes corresponding to the front liquid level data and the rear liquid level data, a first oil volume difference and a second oil volume difference are obtained; and,

[0154] Based on the target liquid level data and the oil heights corresponding to the front liquid level data and the rear liquid level data, a first oil height difference and a second oil height difference are obtained;

[0155] The front liquid level data is the liquid level data that is adjacent to the target liquid level data in the new data sequence and is located before the target liquid level data in time sequence; the rear liquid level data is the liquid level data that is adjacent to the target liquid level data in the new data sequence and is located after the target liquid level data in time sequence;

[0156] Based on the first oil quantity difference and the first oil height difference, obtaining a change slope between the target liquid level data and the previous liquid level data;

[0157] Based on the second oil quantity difference and the second oil height difference, a change slope between the target liquid level data and the rear liquid level data is obtained.

[0158] In some possible embodiments, when the response module executes the normal range corresponding to the liquid level data of the target object based on the maximum value and the minimum value of the change slope, the response module is specifically configured as follows:

[0159] Acquire two liquid level data corresponding to the maximum value of the change slope; the two liquid level data corresponding to the maximum value are respectively two liquid level data involved in calculating the maximum value of the change slope;

[0160] Acquire two liquid level data corresponding to the minimum value of the change slope; the two liquid level data corresponding to the minimum value are respectively two liquid level data involved in calculating the minimum value of the change slope;

[0161] The maximum value of the two liquid level data corresponding to the maximum value is used as the upper limit of the liquid level data range;

[0162] The minimum value of the two liquid level data corresponding to the minimum value is used as the lower limit of the liquid level data range;

[0163] A normal range corresponding to the liquid level data of the target object is determined based on an upper limit of the liquid level data range and a lower limit of the liquid level data range.

[0164] In some possible embodiments, when the response module executes acquiring the sample liquid level data of the target object, it is specifically configured as follows:

[0165] Acquiring liquid level data collected within a preset time period of the target object;

[0166] If it is determined that the amount of liquid level data collected within the preset time period is greater than the preset amount of data, the liquid level data collected within the preset time period are grouped according to the preset time period to obtain multiple groups of liquid level data sets;

[0167] A specified number of liquid level data are extracted from each liquid level data set to form the sample liquid level data.

[0168] After introducing the liquid level monitoring method and device according to the exemplary embodiment of the present application, next, an electronic device according to another exemplary embodiment of the present application is introduced.

[0169] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.

[0170] In some possible implementations, the electronic device according to the present application may include at least one processor and at least one memory, wherein the memory stores program code, and when the program code is executed by the processor, the processor executes the steps of the liquid level monitoring method according to various exemplary implementations of the present application described above in this specification.

[0171] Refer to the following Fig.12 The electronic device 130 according to this embodiment of the present application is described. Fig.12 The electronic device 130 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0172] like Fig.12 As shown, the electronic device 130 is in the form of a general electronic device. The components of the electronic device 130 may include but are not limited to: the at least one processor 131, the at least one memory 132, and a bus 133 connecting different system components (including the memory 132 and the processor 131).

[0173] Bus 133 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.

[0174] The memory 132 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 1321 and / or a cache memory 1322 , and may further include a read-only memory (ROM) 1323 .

[0175] The memory 132 may also include a program / utility 1325 having a set (at least one) of program modules 1324, such program modules 1324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0176] The electronic device 130 may also communicate with one or more external devices 134 (e.g., keyboards, pointing devices, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 130, and / or communicate with any device that enables the electronic device 130 to communicate with one or more other electronic devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 135. Furthermore, the electronic device 130 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 136. As shown, the network adapter 136 communicates with other modules for the electronic device 130 via a bus 133. It should be understood that although Fig.12 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 130, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0177] In some possible embodiments, various aspects of a liquid level monitoring method provided in the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of a liquid level monitoring method according to various exemplary embodiments of the present application described above in this specification.

[0178] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0179] The program product for liquid level monitoring of the embodiment of the present application can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on an electronic device. However, the program product of the present application is not limited to this. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0180] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein readable program code is carried. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0181] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0182] The program code for performing the operations of the present application can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and also conventional procedural programming languages ​​such as "C" language or similar programming languages. The program code can be executed entirely on the user electronic device, partially on the user device, as an independent software package, partially on the user electronic device and partially on the remote electronic device, or entirely on the remote electronic device or server. In the case of a remote electronic device, the remote electronic device can be connected to the user electronic device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external electronic device (for example, using an Internet service provider to connect through the Internet).

[0183] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.

[0184] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0185] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0186] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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.

[0187] 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.

[0188] 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. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0189] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A liquid level monitoring method, characterized in that: The method comprises: In response to the range acquisition instruction, acquiring a normal range corresponding to a preset time period; Within the preset time period, detecting the liquid level in the target object based on the normal range; The normal range is determined according to the following method: Acquire sample liquid level data in the target object and the collection time corresponding to each sample liquid level data; Sorting the sample liquid level data according to the acquisition time to obtain a liquid level data sequence; Screening out liquid level data with change characteristics from the liquid level data sequence, and constructing a new data sequence based on the liquid level data with change characteristics; wherein the liquid level data with change characteristics is obtained based on the liquid level data in the liquid level data sequence that is adjacent in time sequence; For any adjacent liquid level data in the new data sequence, calculating the change slope of the any adjacent liquid level data; Based on the maximum and minimum values ​​of the change slope in the preset confidence interval, a normal range corresponding to the liquid level data is obtained.

2. The method according to claim 1, characterized in that The step of selecting liquid level data having a change characteristic from the liquid level data sequence comprises: For any one liquid level data in the liquid level data sequence, determining a first difference value and a second difference value between the liquid level data and the liquid level data adjacent to each other in time sequence; If it is determined that any one of the first difference and the second difference is greater than a preset difference, the liquid level data is determined to be liquid level data with a change characteristic.

3. The method according to claim 1, characterized in that: The liquid level data includes oil volume and oil height, and the step of calculating the change slope of any adjacent liquid level data in the new data sequence includes: For any liquid level data in the new data sequence, the arbitrary liquid level data is used as the target liquid level data, and based on the target liquid level data and the oil volumes corresponding to the front liquid level data and the rear liquid level data, a first oil volume difference and a second oil volume difference are obtained; and, Based on the target liquid level data and the oil heights corresponding to the front liquid level data and the rear liquid level data, a first oil height difference and a second oil height difference are obtained; The front liquid level data is the liquid level data that is adjacent to the target liquid level data in the new data sequence and is located before the target liquid level data in time sequence; the rear liquid level data is the liquid level data that is adjacent to the target liquid level data in the new data sequence and is located after the target liquid level data in time sequence; Based on the first oil quantity difference and the first oil height difference, obtaining a change slope between the target liquid level data and the previous liquid level data; Based on the second oil quantity difference and the second oil height difference, a change slope between the target liquid level data and the rear liquid level data is obtained.

4. The method according to claim 1, characterized in that: The normal range corresponding to the liquid level data of the target object is obtained based on the maximum value and the minimum value of the change slope, including: Acquire two liquid level data corresponding to the maximum value of the change slope; the two liquid level data corresponding to the maximum value are respectively two liquid level data involved in calculating the maximum value of the change slope; Acquire two liquid level data corresponding to the minimum value of the change slope; the two liquid level data corresponding to the minimum value are respectively two liquid level data involved in calculating the minimum value of the change slope; The maximum value of the two liquid level data corresponding to the maximum value is used as the upper limit of the liquid level data range; The minimum value of the two liquid level data corresponding to the minimum value is used as the lower limit of the liquid level data range; A normal range corresponding to the liquid level data of the target object is determined based on an upper limit of the liquid level data range and a lower limit of the liquid level data range.

5. The method according to any one of claims 1 to 4, characterized in that: The step of obtaining sample liquid level data of the target object includes: Acquiring liquid level data collected within a preset time period of the target object; If it is determined that the amount of liquid level data collected within the preset time period is greater than the preset amount of data, the liquid level data collected within the preset time period are grouped according to the preset time period to obtain multiple groups of liquid level data sets; A specified number of liquid level data are extracted from each liquid level data set to form the sample liquid level data.

6. A liquid level monitoring device, characterized in that: The device comprises: A response module, configured to obtain a normal range corresponding to a preset time period in response to a range acquisition indication; A detection module, configured to detect the liquid level in the target object within the preset time period based on the normal range; The normal range is determined according to the following method: Acquire sample liquid level data in the target object and the collection time corresponding to each sample liquid level data; Sorting the sample liquid level data according to the acquisition time to obtain a liquid level data sequence; Screening out liquid level data with change characteristics from the liquid level data sequence, and constructing a new data sequence based on the liquid level data with change characteristics; wherein the liquid level data with change characteristics is obtained based on the liquid level data in the liquid level data sequence that is adjacent in time sequence; For any adjacent liquid level data in the new data sequence, calculating the change slope of the any adjacent liquid level data; Based on the maximum and minimum values ​​of the change slope in the preset confidence interval, a normal range corresponding to the liquid level data is obtained.

7. The device according to claim 6, characterized in that When the response module performs the operation of filtering out the liquid level data having the change characteristics from the liquid level data sequence, the response module is specifically configured as follows: For any one liquid level data in the liquid level data sequence, determining a first difference value and a second difference value between the liquid level data and the liquid level data adjacent to each other in time sequence; If it is determined that any one of the first difference and the second difference is greater than a preset difference, the liquid level data is determined to be liquid level data with a change characteristic.

8. The device according to claim 6, characterized in that The liquid level data includes oil volume and oil height. When the response module calculates the change slope of any adjacent liquid level data in the new data sequence, the response module is specifically configured as follows: For any liquid level data in the new data sequence, the arbitrary liquid level data is used as the target liquid level data, and based on the target liquid level data and the oil volumes corresponding to the front liquid level data and the rear liquid level data, a first oil volume difference and a second oil volume difference are obtained; and, Based on the target liquid level data and the oil heights corresponding to the front liquid level data and the rear liquid level data, a first oil height difference and a second oil height difference are obtained; The front liquid level data is the liquid level data that is adjacent to the target liquid level data in the new data sequence and is located before the target liquid level data in time sequence; the rear liquid level data is the liquid level data that is adjacent to the target liquid level data in the new data sequence and is located after the target liquid level data in time sequence; Based on the first oil quantity difference and the first oil height difference, obtaining a change slope between the target liquid level data and the previous liquid level data; Based on the second oil quantity difference and the second oil height difference, a change slope between the target liquid level data and the rear liquid level data is obtained.

9. The device according to claim 6, characterized in that When the response module executes the normal range corresponding to the liquid level data of the target object based on the maximum value and the minimum value of the change slope, the response module is specifically configured as follows: Acquire two liquid level data corresponding to the maximum value of the change slope; the two liquid level data corresponding to the maximum value are respectively two liquid level data involved in calculating the maximum value of the change slope; Acquire two liquid level data corresponding to the minimum value of the change slope; the two liquid level data corresponding to the minimum value are respectively two liquid level data involved in calculating the minimum value of the change slope; The maximum value of the two liquid level data corresponding to the maximum value is used as the upper limit of the liquid level data range; The minimum value of the two liquid level data corresponding to the minimum value is used as the lower limit of the liquid level data range; A normal range corresponding to the liquid level data of the target object is determined based on an upper limit of the liquid level data range and a lower limit of the liquid level data range.

10. The device according to any one of claims 6 to 9, characterized in that: When the response module executes to obtain the sample liquid level data of the target object, it is specifically configured as follows: Acquiring liquid level data collected within a preset time period of the target object; If it is determined that the amount of liquid level data collected within the preset time period is greater than the preset amount of data, the liquid level data collected within the preset time period are grouped according to the preset time period to obtain multiple groups of liquid level data sets; A specified number of liquid level data are extracted from each liquid level data set to form the sample liquid level data.

11. An electronic device, characterized in that: It comprises at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to implement the method as described in any one of claims 1 to 7.

12. A computer storage medium, characterized in that: The computer storage medium stores a computer program, and the computer program is used to enable a computer to execute the method according to any one of claims 1 to 7.