CN111998235A - Temperature compensation method and device for leakage positioning and computer storage medium - Google Patents

Temperature compensation method and device for leakage positioning and computer storage medium Download PDF

Info

Publication number
CN111998235A
CN111998235A CN202010798185.0A CN202010798185A CN111998235A CN 111998235 A CN111998235 A CN 111998235A CN 202010798185 A CN202010798185 A CN 202010798185A CN 111998235 A CN111998235 A CN 111998235A
Authority
CN
China
Prior art keywords
data
linear function
target
measurement data
data points
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010798185.0A
Other languages
Chinese (zh)
Other versions
CN111998235B (en
Inventor
冯博
林祥龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN XIANGWEI MEASUREMENT CONTROL TECHNOLOGY CO LTD
Original Assignee
SHENZHEN XIANGWEI MEASUREMENT CONTROL TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN XIANGWEI MEASUREMENT CONTROL TECHNOLOGY CO LTD filed Critical SHENZHEN XIANGWEI MEASUREMENT CONTROL TECHNOLOGY CO LTD
Priority to CN202010798185.0A priority Critical patent/CN111998235B/en
Publication of CN111998235A publication Critical patent/CN111998235A/en
Application granted granted Critical
Publication of CN111998235B publication Critical patent/CN111998235B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F17STORING OR DISTRIBUTING GASES OR LIQUIDS
    • F17DPIPE-LINE SYSTEMS; PIPE-LINES
    • F17D5/00Protection or supervision of installations
    • F17D5/02Preventing, monitoring, or locating loss
    • F17D5/06Preventing, monitoring, or locating loss using electric or acoustic means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/15Correlation function computation including computation of convolution operations
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E30/00Energy generation of nuclear origin
    • Y02E30/30Nuclear fission reactors

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Algebra (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Acoustics & Sound (AREA)
  • Mechanical Engineering (AREA)
  • Examining Or Testing Airtightness (AREA)

Abstract

The invention discloses a temperature compensation method, a device and a computer storage medium for leakage positioning, wherein the method comprises the following steps: acquiring a plurality of measurement data acquired by the positioning leakage controller; acquiring linear functions corresponding to the plurality of measurement data to acquire compensation parameters according to the linear functions; and compensating each measurement data based on the compensation parameter to obtain target measurement data corresponding to each measurement data. Therefore, the measurement data collected by the positioning leakage controller are compensated by obtaining the compensation parameters, more accurate measurement data are obtained, and the precision rate of subsequent leakage treatment is improved.

Description

Temperature compensation method and device for leakage positioning and computer storage medium
Technical Field
The present invention relates to the field of leakage location technology, and in particular, to a temperature compensation method and apparatus for leakage location, and a computer storage medium.
Background
At present, the positioning leakage controller is widely applied, most of sensitive devices of the positioning leakage controller are made of metal or semiconductor materials, the static characteristics of the sensitive devices are closely related to the ambient temperature, and in actual work, due to the influence of the working ambient temperature of the positioning leakage controller, great deviation exists between the measured data and the theoretical data acquired by the positioning leakage controller.
Disclosure of Invention
The invention provides a temperature compensation method and device for leakage positioning and a computer storage medium, and aims to solve the technical problem that measurement data acquired by a positioning leakage controller is inaccurate.
To achieve the above object, the present invention provides a temperature compensation method for leak location, including:
acquiring a plurality of measurement data acquired by the positioning leakage controller;
acquiring linear functions corresponding to the plurality of measurement data to acquire compensation parameters according to the linear functions;
and compensating each measurement data based on the compensation parameter to obtain target measurement data corresponding to each measurement data.
Preferably, the step of obtaining a linear function corresponding to the plurality of measurement data to obtain a compensation parameter according to the linear function includes:
respectively determining theoretical data corresponding to each measured data;
respectively constructing data points corresponding to the measured data and the theoretical data in a preset coordinate system;
and calculating linear functions corresponding to the data points in a preset coordinate system to obtain compensation parameters according to the linear functions.
Preferably, the step of calculating a linear function corresponding to a plurality of data points in the preset coordinate system includes:
constructing trend lines corresponding to a plurality of data points in a preset coordinate system;
calculating a correlation coefficient corresponding to the trend line;
calculating linear functions corresponding to the plurality of data points according to the correlation coefficients;
and determining a compensation parameter according to the linear function.
Preferably, the linear function includes a first target linear function, and the step of calculating the linear functions corresponding to the plurality of data points according to the correlation coefficients includes:
judging whether the correlation coefficient is larger than a preset correlation value or not;
and if the correlation coefficient is greater than or equal to a preset correlation value, performing linear fitting on the plurality of data points to obtain a first target linear function corresponding to the plurality of data points.
Preferably, the linear function includes a second target linear function, and the step of calculating the linear functions corresponding to the plurality of data points according to the correlation coefficients includes:
if the correlation coefficient is smaller than a preset correlation value, determining separation points in data points corresponding to the data points;
dividing the plurality of data points into a plurality of data intervals according to the separation points;
and respectively calculating a second target linear function corresponding to the data points of each data interval.
Preferably, the step of calculating the second target linear function corresponding to the data point of each data interval includes:
determining a head data point and a tail data point of each data interval;
and calculating a second target linear function corresponding to the data points of each data interval according to the head data point and the tail data point.
Preferably, the linear function includes a first target linear function and a second target linear function, and the step of obtaining the compensation parameter according to the linear function includes:
if the linear function is a first target linear function, determining a first target slope of the first target linear function, and taking the first target slope as a compensation parameter;
and if the linear function is a second target linear function, determining a second target slope and intercept of the second target linear function, and using the second target slope and intercept as compensation parameters.
Further, to achieve the above object, the present invention also provides a temperature compensation device for leak location, including:
the first acquisition module is used for acquiring the measurement data acquired by the positioning leakage controller;
the second acquisition module is used for acquiring linear functions corresponding to the plurality of measurement data so as to acquire compensation parameters according to the linear functions;
and the third acquisition module is used for compensating each measurement data based on the compensation parameter so as to acquire target measurement data corresponding to each measurement data.
Furthermore, in order to achieve the above object, the present invention further provides a temperature compensation device for leak location, which includes a memory, a processor, and a temperature compensation program for leak location stored in the memory and executable on the processor, wherein the temperature compensation program for leak location implements the steps of the temperature compensation program method for leak location as described above when executed by the processor.
Further, to achieve the above object, the present invention also provides a computer storage medium having stored thereon a temperature compensation program for leak location, which when executed by a processor, implements the steps of the temperature compensation method for leak location as described above.
Compared with the prior art, the invention discloses a temperature compensation method and a temperature compensation device for leakage positioning and a computer storage medium, and a plurality of measurement data acquired by the positioning leakage controller are acquired; acquiring linear functions corresponding to the plurality of measurement data to acquire compensation parameters according to the linear functions; and compensating each measurement data based on the compensation parameter to obtain target measurement data corresponding to each measurement data. Therefore, the measurement data collected by the positioning leakage controller are compensated by obtaining the compensation parameters, more accurate measurement data are obtained, and the precision rate of subsequent leakage treatment is improved.
Drawings
FIG. 1 is a schematic diagram of a terminal architecture of a hardware operating environment according to embodiments of the present invention;
FIG. 2 is a schematic flow chart diagram of a first embodiment of a temperature compensation method for leak location according to the present invention;
FIG. 3 is a schematic flow chart diagram of a second embodiment of the temperature compensation method for leak location of the present invention;
fig. 4 is a functional block diagram of a first embodiment of the temperature compensation device for leak location of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to embodiments of the present invention. In this embodiment of the present invention, the terminal device may include a processor 1001 (e.g., a Central Processing Unit, CPU), a communication bus 1002, an input port 1003, an output port 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the input port 1003 is used for data input; the output port 1004 is used for data output, the memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory, and the memory 1005 may optionally be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration depicted in FIG. 1 is not intended to be limiting of the present invention, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
With continued reference to FIG. 1, the memory 1005 of FIG. 1, which is one type of readable storage medium, may include an operating system, a network communication module, an application program module, and a temperature compensation program for leak location. In fig. 1, the network communication module is mainly used for connecting to a server and performing data communication with the server; and processor 1001 may call a temperature compensation program stored in memory 1005 for leak location and perform the following operations:
acquiring a plurality of measurement data acquired by the positioning leakage controller;
acquiring linear functions corresponding to the plurality of measurement data to acquire compensation parameters according to the linear functions;
and compensating each measurement data based on the compensation parameter to obtain target measurement data corresponding to each measurement data.
Further, the processor 1001 may be further configured to call a temperature compensation program for leak location stored in the memory 1005, and perform the following steps:
respectively determining theoretical data corresponding to each measured data;
respectively constructing data points corresponding to the measured data and the theoretical data in a preset coordinate system;
and calculating linear functions corresponding to the data points in a preset coordinate system to obtain compensation parameters according to the linear functions.
Further, the processor 1001 may be further configured to call a temperature compensation program for leak location stored in the memory 1005, and perform the following steps:
constructing trend lines corresponding to a plurality of data points in a preset coordinate system;
calculating a correlation coefficient corresponding to the trend line;
calculating linear functions corresponding to the plurality of data points according to the correlation coefficients;
and determining a compensation parameter according to the linear function.
Further, the processor 1001 may be further configured to call a temperature compensation program for leak location stored in the memory 1005, and perform the following steps:
judging whether the correlation coefficient is larger than a preset correlation value or not;
and if the correlation coefficient is greater than or equal to a preset correlation value, performing linear fitting on the plurality of data points to obtain a first target linear function corresponding to the plurality of data points.
Further, the processor 1001 may be further configured to call a temperature compensation program for leak location stored in the memory 1005, and perform the following steps:
if the correlation coefficient is smaller than a preset correlation value, determining separation points in data points corresponding to the data points;
dividing the plurality of data points into a plurality of data intervals according to the separation points;
and respectively calculating a second target linear function corresponding to the data points of each data interval.
Further, the processor 1001 may be further configured to call a temperature compensation program for leak location stored in the memory 1005, and perform the following steps:
determining a head data point and a tail data point of each data interval;
and calculating a second target linear function corresponding to the data points of each data interval according to the head data point and the tail data point.
Further, the processor 1001 may be further configured to call a temperature compensation program for leak location stored in the memory 1005, and perform the following steps:
if the linear function is a first target linear function, determining a first target slope of the first target linear function, and taking the first target slope as a compensation parameter;
and if the linear function is a second target linear function, determining a second target slope and intercept of the second target linear function, and using the second target slope and intercept as compensation parameters.
Based on the above-described structure, various embodiments of the temperature compensation method for leak location of the present invention are presented.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the temperature compensation method for leak location according to the present invention.
In this embodiment, the temperature compensation method for leak location includes:
step S10: acquiring a plurality of measurement data acquired by the positioning leakage controller;
step S20: acquiring linear functions corresponding to the plurality of measurement data to acquire compensation parameters according to the linear functions;
in this embodiment, the temperature compensation method for leakage positioning provided by the present invention is applied to a positioning leakage controller, and it should be noted that the positioning leakage controller is a device for monitoring leakage, for example, is commonly used for monitoring a leakage site of a water supply pipeline, specifically, a leakage sensing line is installed in the water supply pipeline, wherein the leakage sensing line is used for sensing whether the leakage occurs in the water supply pipeline, the positioning leakage controller is in circuit communication with the leakage sensing line, the positioning leakage controller is used for monitoring the leakage sensing line, the leakage position is immediately displayed by the positioning leakage controller for subsequent processing of the leakage position, however, since the positioning leakage controller is greatly influenced by ambient temperature and humidity, the accuracy of the positioning leakage controller in measuring the leakage position is further influenced, for example, for a leakage sensing line of 200m, theoretically, the number of meters measured by the positioning leakage controller should be 200m, however, at a temperature of 15 ℃, the number of meters actually measured by the positioning leakage controller is 199.09m, at a temperature of 15 ℃, the number of meters actually measured by the positioning leakage controller is 199.09m, at a temperature of 20 ℃, the number of meters actually measured by the positioning leakage controller is 199.41m, at a temperature of 25 ℃, the number of meters actually measured by the positioning leakage controller is 199.81m, and at a temperature of 40 ℃, the number of meters actually measured by the positioning leakage controller is 201.17m, it can be seen that, due to the influence of the temperature, a certain positive deviation or negative deviation occurs to the data measured by the positioning leakage controller, so that before the positioning leakage controller is used for monitoring leakage, or when the positioning leakage controller is used for monitoring leakage, in order to solve the technical problem that the positioning leakage controller is influenced by temperature and humidity and further causes inaccuracy of the measured data, the invention provides a temperature compensation method for leakage positioning, which comprises the steps of acquiring a plurality of measurement data collected by a positioning leakage controller, optionally, monitoring the temperature and humidity of the environment around the positioning leakage controller in real time because the deviation between the data measured by the positioning leakage controller at 25 ℃ and theoretical data is small, controlling the positioning leakage controller to start a data compensation mode when the temperature and humidity of the environment around the positioning leakage controller are monitored to exceed a preset value, namely, controlling a plurality of measurement data collected by the positioning leakage controller, and compensating the plurality of measurement data collected by the positioning leakage controller.
Specifically, in this embodiment, a plurality of measurement data collected by the positioning leakage controller are obtained, where the measurement data corresponding to the leakage induction lines of different lengths collected by the positioning leakage controller at the same temperature are obtained, and then, based on a preset algorithm, a linear function corresponding to the plurality of measurement data is obtained, so as to obtain a compensation parameter according to the linear function, and then, each measurement data is compensated according to the compensation parameter, so as to obtain target measurement data corresponding to each measurement data.
Specifically, step S20 further includes:
step S201: respectively determining theoretical data corresponding to each measured data;
step S202: respectively constructing data points corresponding to the measured data and the theoretical data in a preset coordinate system;
step S203: and calculating linear functions corresponding to the data points in a preset coordinate system to obtain compensation parameters according to the linear functions.
It should be noted that, in order to obtain a linear function corresponding to a plurality of measurement data, a plurality of data points corresponding to the plurality of measurement data and used for constructing the linear function need to be obtained first, specifically, theoretical data corresponding to each measurement data is determined respectively, that is, a length of a leakage induction line corresponding to each measurement data measured by a positioning leakage controller is determined respectively.
Further, after determining theoretical data corresponding to each measurement data, respectively, obtaining linear functions corresponding to a plurality of measurement data based on a preset algorithm, specifically, respectively constructing data points corresponding to each measurement data and the theoretical data in a preset coordinate system, optionally, respectively constructing data points corresponding to each measurement data and the theoretical data in the preset coordinate system by using the theoretical data as an abscissa and the measurement data as an ordinate, for example, at 15 degrees celsius, data measured by a positioning leak controller under a 10m leak sensing line is 9.99m, data measured by a positioning leak controller under a 20m leak sensing line is 19.98m, data measured by a positioning leak controller under a 50m leak sensing line is 49.94m, data measured by a positioning leak controller under a 110m leak sensing line is 109m, data measured by a positioning leak controller under a 200m leak sensing line is 199.81m, and the like, then, data points (10m, 9.99m), (20m, 19.98m), (50m, 49.94m), (110m, 109m), (200m, 199.81m) and the like are respectively constructed in a preset coordinate system, then linear functions corresponding to a plurality of data points are calculated in the preset coordinate system to obtain compensation parameters according to the linear functions, optionally, before the linear functions corresponding to the plurality of data points are calculated in the preset coordinate system, the plurality of data points can be screened to improve the accuracy of the linear functions, optionally, deviation absolute values corresponding to measured data and theoretical data in the data points are respectively calculated, then, whether the deviation absolute values are larger than a preset deviation value is judged, and if the deviation absolute values are larger than the preset deviation value, the data points are deleted.
Further, when a linear function corresponding to a plurality of data points is calculated in a preset coordinate system, a correlation coefficient between the plurality of data points may be determined, if the correlation coefficient is greater than a preset correlation value, it indicates that the correlation between the plurality of data points is strong, a first target linear function corresponding to the plurality of data points is constructed, wherein the first target linear function is a direct proportional function, if the correlation coefficient is less than the preset correlation value, it indicates that the correlation between the plurality of data points is weak, according to the correlation between the plurality of data points, the plurality of data points are divided into a plurality of groups of data intervals having strong correlation, and second target linear functions corresponding to the data points in the data intervals are calculated respectively, wherein the second target linear function is a linear function.
Further, after calculating linear functions corresponding to a plurality of data points, determining compensation parameters according to the linear functions, specifically:
if the linear function is a first target linear function, determining a first target slope of the first target linear function, and taking the first target slope as a compensation parameter;
and if the linear function is a second target linear function, determining a second target slope and intercept of the second target linear function, and using the second target slope and intercept as compensation parameters.
It should be noted that, if the linear function is a first target linear function, a first target slope of the first target linear function is a compensation parameter corresponding to the plurality of measurement data, and if the linear function is a second target linear function, a second target slope and an intercept of the second target linear function are compensation values of the measurement data corresponding to each data point in a data interval matched with the second target linear function.
Step S30: and compensating each measurement data based on the compensation parameter to obtain target measurement data corresponding to each measurement data.
In this step, if the compensation parameter is the first target slope, the measurement data is divided by the first target slope to obtain the target measurement data, and if the compensation parameter is the second target slope and the intercept, the measurement data is divided by the second target slope after the intercept value is subtracted, so as to obtain the target measurement data.
According to the scheme, a plurality of measurement data collected by the positioning leakage controller are obtained; acquiring linear functions corresponding to the plurality of measurement data to acquire compensation parameters according to the linear functions; and compensating each measurement data based on the compensation parameter to obtain target measurement data corresponding to each measurement data. Therefore, the measurement data collected by the positioning leakage controller are compensated by obtaining the compensation parameters, more accurate measurement data are obtained, and the precision rate of subsequent leakage treatment is improved.
A second embodiment of the present invention is proposed based on the first embodiment shown in fig. 2 described above. Referring to fig. 3, fig. 3 is a schematic flow chart of a second embodiment of the temperature compensation method for leak location according to the present invention.
In this embodiment, step S203: the step of calculating the linear functions corresponding to the plurality of data points in the preset coordinate system comprises the following steps:
step S2031: constructing trend lines corresponding to a plurality of data points in a preset coordinate system;
step S2032: calculating a correlation coefficient corresponding to the trend line;
step S2033: calculating linear functions corresponding to the plurality of data points according to the correlation coefficients;
step S2034: and determining a compensation parameter according to the linear function.
In the step, a trend line corresponding to a plurality of data points is established in a preset coordinate system, further, before establishing the trend line corresponding to the plurality of data points, optionally, a deviation absolute value corresponding to the measured data and the theoretical data in each data point is respectively calculated, then, whether the deviation absolute value is larger than a preset deviation value is judged, if the deviation absolute value is larger than the preset deviation value, the data point corresponding to the deviation absolute value is deleted, then, trend lines corresponding to the rest data points are established in the preset coordinate system, wherein the data points are located on the trend line as much as possible, then, a correlation coefficient corresponding to the trend line is calculated according to a preset algorithm, wherein the correlation coefficient value is between 0 and 1, the more biased to 1 indicates that the correlation is stronger, therefore, after obtaining the correlation coefficient, the correlation coefficient is larger according to the correlation coefficient of the trend lines of the plurality of data points, and calculating linear functions corresponding to the plurality of data points to determine compensation parameters according to the linear functions.
Specifically, step S2033 comprises:
step S20331: judging whether the correlation coefficient is larger than a preset correlation value or not;
step S20332 a: and if the correlation coefficient is greater than or equal to a preset correlation value, performing linear fitting on the plurality of data points to obtain a first target linear function corresponding to the plurality of data points.
Step S20333 a: if the correlation coefficient is smaller than a preset correlation value, determining separation points in data points corresponding to the data points;
step S20334 a: dividing the plurality of data points into a plurality of data intervals according to the separation points;
step S20335 a: and respectively calculating a second target linear function corresponding to the data points of each data interval.
In this step, it should be noted that, when a linear function corresponding to a plurality of data points is constructed, it is required to ensure that the data points are adapted to the constructed linear function as much as possible, so after obtaining the correlation coefficient, it is determined whether the correlation coefficient is greater than a preset correlation value, and if the correlation coefficient is greater than or equal to the preset correlation value, it indicates that the stronger the correlation between the plurality of data points is, the linear fitting is performed on the plurality of data points, so as to obtain a first target linear function corresponding to the plurality of data points.
If the correlation coefficient is smaller than the preset correlation value, the weaker the correlation between the data points is, determining a separation point in the data points corresponding to the data points, optionally, connecting any two adjacent data points, calculating the slope of a connecting line between any two adjacent data points, then calculating a deviation value between the slopes of any two adjacent connecting lines, determining two adjacent connecting lines with the deviation value larger than the preset deviation, then judging a common data point between the two adjacent connections as the separation point, dividing the data points into a plurality of data intervals according to the separation point after the separation point is obtained, and respectively calculating a second target linear function corresponding to the data point of each data interval.
Further, after step S20331, the method further comprises:
step S20332 b: the step of calculating the second target linear function corresponding to the data point of each data interval includes:
step S20332 b: determining a head data point and a tail data point of each data interval;
step S20332 b: and calculating a second target linear function corresponding to the data points of each data interval according to the head data point and the tail data point.
In the step, after a plurality of data points are divided into a plurality of data intervals, head data and tail data of each data interval are determined, and the head data and the tail data of each data interval are sequentially input into a preset linear model to obtain parameters of the linear model, so that a second target linear function corresponding to each data interval is obtained.
According to the scheme, the trend lines corresponding to a plurality of data points are constructed in the preset coordinate system; calculating a correlation coefficient corresponding to the trend line; calculating linear functions corresponding to the plurality of data points according to the correlation coefficients; and determining a compensation parameter according to the linear function, thereby obtaining the compensation parameter, further compensating the measurement data acquired by the positioning leakage controller by obtaining the compensation parameter, obtaining more accurate measurement data, and further improving the precision rate of subsequent leakage treatment.
In addition, the embodiment also provides a temperature compensation device for leakage positioning. Referring to fig. 4, fig. 4 is a functional block diagram of a first embodiment of a temperature compensation device for leak location according to the present invention.
In this embodiment, the temperature compensation device for leak location is a virtual device, and is stored in the memory 1005 of the terminal device shown in fig. 1, so as to implement all functions of the temperature compensation program for leak location: the positioning leakage controller is used for acquiring a plurality of measurement data acquired by the positioning leakage controller; the system comprises a plurality of measurement data acquisition units, a plurality of data acquisition units and a plurality of data processing units, wherein the measurement data acquisition units are used for acquiring a plurality of measurement data; and the compensation module is used for compensating each measurement data based on the compensation parameter so as to obtain target measurement data corresponding to each measurement data.
Specifically, the temperature compensation device for leak location includes:
the first acquisition module 10 is used for acquiring the measurement data acquired by the positioning leakage controller;
a second obtaining module 20, configured to obtain a linear function corresponding to the plurality of measurement data, so as to obtain a compensation parameter according to the linear function;
and a third obtaining module 30, configured to compensate each measurement data based on the compensation parameter, so as to obtain target measurement data corresponding to each measurement data.
Further, the second obtaining module further includes:
the determining unit is used for respectively determining theoretical data corresponding to each measured data;
the construction unit is used for respectively constructing data points corresponding to the measurement data and the theoretical data in a preset coordinate system;
and the calculating unit is used for calculating linear functions corresponding to the data points in a preset coordinate system so as to obtain compensation parameters according to the linear functions.
Further, the construction unit further includes:
the building subunit is used for building trend lines corresponding to a plurality of data points in a preset coordinate system;
the first calculating subunit is used for calculating a correlation coefficient corresponding to the trend line;
the second calculating subunit is used for calculating linear functions corresponding to the plurality of data points according to the correlation coefficients;
and the first determining subunit is used for determining a compensation parameter according to the linear function.
Further, the construction unit further includes:
the judging subunit is used for judging whether the correlation coefficient is larger than a preset correlation value;
and the fitting subunit is used for performing linear fitting on the plurality of data points to obtain a first target linear function corresponding to the plurality of data points if the correlation coefficient is greater than or equal to a preset correlation value.
Further, the construction unit further includes:
the second determining subunit is configured to determine, if the correlation coefficient is smaller than a preset correlation value, a separation point in data points corresponding to the plurality of data points;
the dividing subunit is used for dividing the plurality of data points into a plurality of data intervals according to the separation points;
and the third calculation subunit is used for calculating second target linear functions corresponding to the data points of the data intervals respectively.
Further, the third computing subunit is further configured to:
determining a head data point and a tail data point of each data interval;
and calculating a second target linear function corresponding to the data points of each data interval according to the head data point and the tail data point.
Further, the second obtaining module further includes:
a third determining subunit, configured to determine a first target slope of the first target linear function if the linear function is the first target linear function, and use the first target slope as a compensation parameter;
and the fourth determining subunit is configured to determine a second target slope and an intercept of the second target linear function if the linear function is the second target linear function, and use the second target slope and the intercept as compensation parameters.
In addition, an embodiment of the present invention further provides a computer storage medium, where a temperature compensation program for leak location is stored on the computer storage medium, and when the temperature compensation program for leak location is executed by a processor, the steps of the temperature compensation method for leak location as described above are implemented, which are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a terminal device to execute the method according to the embodiments of the present invention.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all equivalent structures or flow transformations made by the present specification and drawings, or applied directly or indirectly to other related arts, are included in the scope of the present invention.

Claims (10)

1. A temperature compensation method for leak location, wherein the temperature compensation method for leak location is applied to a location leak controller, the temperature compensation method for leak location comprising the steps of:
acquiring a plurality of measurement data acquired by the positioning leakage controller;
acquiring linear functions corresponding to the plurality of measurement data to acquire compensation parameters according to the linear functions;
and compensating each measurement data based on the compensation parameter to obtain target measurement data corresponding to each measurement data.
2. The method of claim 1, wherein the step of obtaining a linear function corresponding to the plurality of measurement data to obtain the compensation parameter according to the linear function comprises:
respectively determining theoretical data corresponding to each measured data;
respectively constructing data points corresponding to the measured data and the theoretical data in a preset coordinate system;
and calculating linear functions corresponding to the data points in a preset coordinate system to obtain compensation parameters according to the linear functions.
3. The method of claim 2, wherein the step of calculating a linear function corresponding to a plurality of data points in a predetermined coordinate system comprises:
constructing trend lines corresponding to a plurality of data points in a preset coordinate system;
calculating a correlation coefficient corresponding to the trend line;
calculating linear functions corresponding to the plurality of data points according to the correlation coefficients;
and determining a compensation parameter according to the linear function.
4. The method of claim 3, wherein the linear function comprises a first target linear function, and wherein calculating a linear function corresponding to a plurality of data points based on the correlation coefficients comprises:
judging whether the correlation coefficient is larger than a preset correlation value or not;
and if the correlation coefficient is greater than or equal to a preset correlation value, performing linear fitting on the plurality of data points to obtain a first target linear function corresponding to the plurality of data points.
5. The method of claim 3, wherein the linear function comprises a second target linear function, and wherein calculating a linear function corresponding to the plurality of data points based on the correlation coefficients comprises:
if the correlation coefficient is smaller than a preset correlation value, determining separation points in data points corresponding to the data points;
dividing the plurality of data points into a plurality of data intervals according to the separation points;
and respectively calculating a second target linear function corresponding to the data points of each data interval.
6. The method of claim 5, wherein the step of calculating the second target linear function corresponding to the data points of each data interval comprises:
determining a head data point and a tail data point of each data interval;
and calculating a second target linear function corresponding to the data points of each data interval according to the head data point and the tail data point.
7. The method of any one of claims 1 to 6, wherein the linear function comprises a first target linear function and a second target linear function, and the step of obtaining the compensation parameter from the linear function comprises:
if the linear function is a first target linear function, determining a first target slope of the first target linear function, and taking the first target slope as a compensation parameter;
and if the linear function is a second target linear function, determining a second target slope and intercept of the second target linear function, and using the second target slope and intercept as compensation parameters.
8. A temperature compensation device for leak location, the temperature compensation device for leak location comprising:
the first acquisition module is used for acquiring the measurement data acquired by the positioning leakage controller;
the second acquisition module is used for acquiring linear functions corresponding to the plurality of measurement data so as to acquire compensation parameters according to the linear functions;
and the third acquisition module is used for compensating each measurement data based on the compensation parameter so as to acquire target measurement data corresponding to each measurement data.
9. A temperature compensation device for leak location, characterized in that the temperature compensation device for leak location comprises a memory, a processor and a temperature compensation program for leak location stored on the memory and executable on the processor, which when executed by the processor implements the steps of the temperature compensation program method for leak location according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that the computer storage medium has stored thereon a temperature compensation program for leak localization, which when executed by a processor implements the steps of the temperature compensation method for leak localization according to any one of claims 1-7.
CN202010798185.0A 2020-08-12 2020-08-12 Temperature compensation method and device for leakage positioning and computer storage medium Active CN111998235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010798185.0A CN111998235B (en) 2020-08-12 2020-08-12 Temperature compensation method and device for leakage positioning and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010798185.0A CN111998235B (en) 2020-08-12 2020-08-12 Temperature compensation method and device for leakage positioning and computer storage medium

Publications (2)

Publication Number Publication Date
CN111998235A true CN111998235A (en) 2020-11-27
CN111998235B CN111998235B (en) 2022-08-30

Family

ID=73463003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010798185.0A Active CN111998235B (en) 2020-08-12 2020-08-12 Temperature compensation method and device for leakage positioning and computer storage medium

Country Status (1)

Country Link
CN (1) CN111998235B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004102831A (en) * 2002-09-11 2004-04-02 Japan Research Institute Ltd Parameter estimation method, data prediction method, parameter estimation device, data prediction device, computer program, and recording medium
CN107449521A (en) * 2017-07-31 2017-12-08 深圳市泰和安科技有限公司 Method, terminal device and the computer-readable recording medium of temperature-compensating
CN108818540A (en) * 2018-08-28 2018-11-16 珠海格力智能装备有限公司 Method and device, the pocessor and storage media of compensating parameter
CN109060899A (en) * 2018-06-29 2018-12-21 广州瑞普医疗科技有限公司 Compensation method, device and the equipment of electrochemical sensor measurement result
CN109696216A (en) * 2018-12-24 2019-04-30 中国科学院微电子研究所 Compensation method, device, storage medium, processor and the system of flow signal
CN110647718A (en) * 2019-09-26 2020-01-03 深圳芯英科技有限公司 Data processing method, device, equipment and computer readable storage medium
CN111238667A (en) * 2018-11-28 2020-06-05 广东威灵汽车部件有限公司 Temperature compensation method, printed circuit board, compressor and vehicle

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004102831A (en) * 2002-09-11 2004-04-02 Japan Research Institute Ltd Parameter estimation method, data prediction method, parameter estimation device, data prediction device, computer program, and recording medium
CN107449521A (en) * 2017-07-31 2017-12-08 深圳市泰和安科技有限公司 Method, terminal device and the computer-readable recording medium of temperature-compensating
CN109060899A (en) * 2018-06-29 2018-12-21 广州瑞普医疗科技有限公司 Compensation method, device and the equipment of electrochemical sensor measurement result
CN108818540A (en) * 2018-08-28 2018-11-16 珠海格力智能装备有限公司 Method and device, the pocessor and storage media of compensating parameter
CN111238667A (en) * 2018-11-28 2020-06-05 广东威灵汽车部件有限公司 Temperature compensation method, printed circuit board, compressor and vehicle
CN109696216A (en) * 2018-12-24 2019-04-30 中国科学院微电子研究所 Compensation method, device, storage medium, processor and the system of flow signal
CN110647718A (en) * 2019-09-26 2020-01-03 深圳芯英科技有限公司 Data processing method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN111998235B (en) 2022-08-30

Similar Documents

Publication Publication Date Title
CN109115257B (en) Method, device, equipment and storage medium for correcting sensor characteristic curve
CN107449521A (en) Method, terminal device and the computer-readable recording medium of temperature-compensating
CN112945411B (en) Real-time dynamic compensation method and device for armored thermocouple temperature sensor
CN110146128A (en) Nuclear piping monitoring method, system, device, equipment and storage medium
CN110147319B (en) Database testing method and device and computer equipment
CN105719348A (en) Point cloud boundary fitting system and method
CN113283082A (en) Centroid trajectory generation method and device, computer readable storage medium and robot
CN111998235B (en) Temperature compensation method and device for leakage positioning and computer storage medium
CN111178126A (en) Target detection method, target detection device, computer equipment and storage medium
CN116399374B (en) MEMS gyroscope sensor compensation method, device, terminal and storage medium
CN113531403A (en) Water pipe leakage detection method and device
CN111024986B (en) Ultrasonic anemorumbometer data calibration method, device and equipment and storage medium
CN112985867A (en) Steering engine test method, device, equipment and storage medium
CN112720450B (en) Robot joint angle inspection method, device, equipment and medium
CN111730410A (en) Static pressure and dynamic and static pressure main shaft oil film rigidity damping real-time measurement method and device, detection device, storage medium and system
CN115831295B (en) Material constitutive equation parameter calibration method and device and computer equipment
CN101713636A (en) System and method for correcting and drawing three-dimensional coordinate system
CN114440866B (en) Sensor data calibration method and calibration system
JP4529964B2 (en) Simulation device, simulation method, and simulation program
CN108052721A (en) Carrier rocket Reliability Assessment method and device, storage medium, terminal
CN114607495A (en) Method and device for determining concentration of nitrogen oxide, electronic equipment and storage medium
CN113654715B (en) Temperature compensation method, device and equipment of water pressure sensor and storage medium
CN114185351B (en) Operation method and device of disinfection robot
JP6492923B2 (en) Power system state estimation device, power system state estimation program, and power system state estimation method
CN113514013A (en) Sag measuring method, sag measuring device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant