CN117330143A - Method, device, equipment and medium for determining measurement threshold based on ultrasonic waves - Google Patents

Method, device, equipment and medium for determining measurement threshold based on ultrasonic waves Download PDF

Info

Publication number
CN117330143A
CN117330143A CN202311372445.8A CN202311372445A CN117330143A CN 117330143 A CN117330143 A CN 117330143A CN 202311372445 A CN202311372445 A CN 202311372445A CN 117330143 A CN117330143 A CN 117330143A
Authority
CN
China
Prior art keywords
pulse width
threshold
preset
measurement threshold
measurement
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.)
Pending
Application number
CN202311372445.8A
Other languages
Chinese (zh)
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.)
Audiowell Electronics Guangdong Co ltd
Original Assignee
Audiowell Electronics Guangdong 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 Audiowell Electronics Guangdong Co ltd filed Critical Audiowell Electronics Guangdong Co ltd
Priority to CN202311372445.8A priority Critical patent/CN117330143A/en
Publication of CN117330143A publication Critical patent/CN117330143A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F1/00Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow
    • G01F1/66Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow by measuring frequency, phase shift or propagation time of electromagnetic or other waves, e.g. using ultrasonic flowmeters
    • G01F1/667Arrangements of transducers for ultrasonic flowmeters; Circuits for operating ultrasonic flowmeters
    • G01F1/668Compensating or correcting for variations in velocity of sound

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Fluid Mechanics (AREA)
  • General Physics & Mathematics (AREA)
  • Investigating Or Analyzing Materials By The Use Of Ultrasonic Waves (AREA)

Abstract

The application provides a method, a device, equipment and a medium for determining a measurement threshold based on ultrasonic waves, and relates to the technical field of ultrasonic wave measurement. The method comprises the following steps: acquiring an echo signal corresponding to a fluid in a target object; adjusting a preset first measurement threshold according to a first pulse width ratio corresponding to the echo signal, and acquiring a plurality of second pulse width ratios based on the adjusted first measurement threshold; acquiring a mutation point threshold value through a difference value of adjacent second pulse width ratios; and determining a target measurement threshold according to the number of the mutation point thresholds and the first preset threshold. According to the method and the device for measuring the fluid, the measurement threshold value related to ultrasonic detection can be adjusted according to the actual echo signal, interference of impurities in the fluid on the measurement result is eliminated, the target measurement threshold value corresponding to the current fluid is obtained, and therefore accuracy of the measurement result is improved, and measurement errors are reduced.

Description

Method, device, equipment and medium for determining measurement threshold based on ultrasonic waves
Technical Field
The application relates to the technical field of ultrasonic measurement, in particular to a method, a device, equipment and a medium for determining a measurement threshold based on ultrasonic waves.
Background
With the development of society and the advancement of technology, people pay more and more attention to environmental protection and energy conservation, especially the energy conservation of daily used energy sources such as electricity, water and fuel gas plays an increasingly important role, and the premise of energy conservation is the accurate measurement of the energy sources.
For metering of fluids, such as water, crude oil, gas, etc., the development of metering devices has been over a long period of time, from the original mechanical devices to the latter semi-mechanical semi-electronic devices to the present purely electronic devices. For fluid metering, the ultrasonic flowmeter is a new product developed in recent years, has the characteristics of difficult abrasion, small pressure loss and the like, is increasingly touted by industries, and is widely applied to the fields of petroleum, chemical industry, water treatment and the like.
Ultrasonic flow meters are used in these watershed to detect certain types of fluids (e.g., water, oil, alcohol, etc. fluids). However, in some industrial field applications, there are often cases where different types of fluids flow through the same pipe or impurities (stones, silt, etc. affect the measurement) are present in the fluid. Firstly, because of the differences of density, viscosity and other physical characteristics of different types of fluids, when an ultrasonic flowmeter is used for measuring the pipeline fluid, the ultrasonic flowmeter defaults to use the same measurement threshold value, so that the measurement result is inaccurate easily, and the measurement result has great error; secondly, when impurities (stones, silt and the like) are accompanied in the fluid and flow through the pipeline, the impurities in the fluid can interfere with the measurement result of the fluid, and the measurement result is inaccurate easily, so that a great error exists in the measurement result.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a medium for determining a measurement threshold based on ultrasonic waves, which can solve the problems that when different types of fluids flow through or impurities exist in the fluids, the measurement threshold is fixed, the measurement result is inaccurate easily, and the error is large. To achieve this object, embodiments of the present application provide the following solutions.
According to an aspect of the embodiments of the present application, there is provided an ultrasonic-based measurement threshold determining method, including:
acquiring an echo signal corresponding to a fluid in a target object; the echo signal is a signal obtained by detecting the fluid ultrasonic wave;
adjusting a preset first measurement threshold according to a first pulse width ratio corresponding to the echo signal, and acquiring a plurality of second pulse width ratios based on the adjusted first measurement threshold;
acquiring a mutation point threshold value through a difference value of adjacent second pulse width ratios;
and determining a target measurement threshold according to the number of the mutation point thresholds and the first preset threshold.
In one possible implementation manner, the determining the target measurement threshold according to the number of mutation point thresholds and the first preset threshold includes:
judging whether the number of the mutation point thresholds is larger than or equal to a first preset threshold;
if the number of the mutation point thresholds is larger than or equal to a first preset threshold, ending the threshold determining work, and restarting the threshold determining work within the preset time;
if the number of the mutation point thresholds is smaller than the first preset threshold, determining a target measurement threshold according to the mutation point thresholds and the second pulse width ratio.
In one possible implementation manner, the adjusting the preset first measurement threshold according to the first pulse width ratio corresponding to the echo signal includes:
acquiring a first pulse width ratio corresponding to a preset first measurement threshold according to the echo signal;
and if the first pulse width ratio is determined not to be in the preset range, adjusting the first measurement threshold.
In one possible implementation manner, the adjusting the preset first measurement threshold according to the first pulse width ratio corresponding to the echo signal includes:
acquiring a first pulse width ratio corresponding to a preset first measurement threshold according to the echo signal;
and if the first pulse width ratio is determined not to be in the preset range, adjusting the first measurement threshold.
In one possible implementation manner, the adjusting the preset first measurement threshold according to the first pulse width ratio corresponding to the echo signal, and obtaining a plurality of second pulse width ratios based on the adjusted first measurement threshold includes:
controlling the first measurement threshold to obtain a plurality of second measurement thresholds based on the first preset interval change;
and obtaining a second pulse width ratio corresponding to each second measurement threshold, wherein the second pulse width ratio is a first waveform and peak wave corresponding to each second measurement threshold, and determining the ratio of the pulse width of the first waveform to the pulse width of the peak wave as the second pulse width ratio.
In one possible implementation manner, the obtaining the mutation point threshold through the difference value of the adjacent second pulse width ratio includes:
acquiring a difference value of two adjacent second pulse width ratios;
and if the absolute value of the difference value is larger than a second preset threshold value, determining that the second measurement threshold value corresponding to the two adjacent second pulse width ratios is a mutation point threshold value.
In one possible implementation manner, the determining the target measurement threshold according to the mutation point threshold and the second pulse width ratio includes:
and determining a second measurement threshold corresponding to a second pulse width ratio meeting preset conditions as a target measurement threshold, wherein the preset conditions comprise that the absolute value of the difference value between the second pulse width ratio and the first preset value is minimum, and the interval between the second measurement threshold corresponding to the second pulse width ratio and the mutation point threshold is larger than a second preset interval.
In one possible implementation manner, the acquiring the echo signal corresponding to the fluid in the target object includes:
acquiring ultrasonic detection information of a target object;
and if the fluid exists in the target object according to the ultrasonic detection information, acquiring an echo signal corresponding to the fluid in the target object.
The application provides a measurement threshold determining device based on ultrasonic wave, including:
the echo signal acquisition unit is used for acquiring echo signals corresponding to the fluid in the target object; the echo signal is a signal obtained by detecting the fluid ultrasonic wave;
the measurement threshold adjusting unit is used for adjusting a preset first measurement threshold according to the first pulse width ratio corresponding to the echo signal and acquiring a plurality of second pulse width ratios corresponding to the echo signal based on the adjusted first measurement threshold;
the abrupt point threshold value acquisition unit is used for acquiring an abrupt point threshold value through the difference value of the adjacent second pulse width ratio;
the target measurement threshold acquiring unit is used for determining the target measurement threshold according to the number of the mutation point thresholds and the first preset threshold.
The present application provides an electronic device comprising a memory, a processor and a computer program stored on the memory, the processor executing the computer program to carry out the steps of the method as described above.
According to a further aspect of embodiments of the present application, there is provided a computer storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method as described above.
The beneficial effects that technical scheme that this application embodiment provided brought are:
the application provides a measurement threshold determining method based on ultrasonic waves, specifically, an echo signal corresponding to a fluid in a target object is obtained, a preset first measurement threshold is adjusted according to a first pulse width ratio corresponding to the echo signal, a plurality of second pulse width ratios are obtained based on the adjusted first measurement threshold, a mutation point threshold is obtained through a difference value of adjacent second pulse width ratios, the target measurement threshold is determined according to the number of the mutation point thresholds and the first preset threshold, the echo signal corresponding to the fluid is obtained according to the embodiment of the application, the preset first measurement threshold is adjusted according to the first pulse width ratio to obtain a plurality of second pulse width ratios, then the mutation point threshold is obtained through a difference value of adjacent second pulse width ratios, and a final target measurement threshold is determined according to the number of the mutation point threshold and the first preset threshold. According to the method and the device for measuring the fluid, the measurement threshold value related to ultrasonic detection can be adjusted according to the actual echo signal, interference of impurities in the fluid on the measurement result is eliminated, the target measurement threshold value corresponding to the current fluid is obtained, and therefore accuracy of the measurement result is improved, and measurement errors are reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly describe the drawings that are required to be used in the description of the embodiments of the present application.
FIG. 1 is a flow chart of an ultrasound-based measurement threshold determination method provided by an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating the acquisition of a first pulse width ratio according to an embodiment of the present disclosure;
FIG. 3 is a graph of pulse width ratio versus measurement threshold for different fluids provided in an embodiment of the present application;
FIG. 4 is a flow chart of an ultrasonic-based impurity determination method according to an embodiment of the present application;
FIG. 5 is a flow chart of impurity determination and measurement threshold adjustment provided in an embodiment of the present application;
FIG. 6 is a block diagram of an ultrasonic-based measurement threshold determination device provided in an embodiment of the present application;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below with reference to the drawings in the present application. It should be understood that the embodiments described below with reference to the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application, and the technical solutions of the embodiments of the present application are not limited.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and "comprising," when used in this application, specify the presence of stated features, information, data, steps, operations, elements, and/or components, but do not preclude the presence or addition of other features, information, data, steps, operations, elements, components, and/or groups thereof, all of which may be included in the present application. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein indicates at least one of the items defined by the term, e.g. "a and/or B" indicates implementation as "a", or as "a and B".
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the following detailed description of the embodiments of the present invention will be given with reference to the accompanying drawings.
The technical solutions of the embodiments of the present invention and technical effects produced by the technical solutions of the present invention are described below by describing several exemplary embodiments. It should be noted that the following embodiments may be referred to, or combined with each other, and the description will not be repeated for the same terms, similar features, similar implementation steps, and the like in different embodiments.
The method, the device, the equipment and the medium for determining the measurement threshold based on the ultrasonic wave aim to solve at least one technical problem in the prior art.
The embodiment of the application provides a measurement threshold determining method based on ultrasonic waves, which is applied to an ultrasonic flowmeter, and can also be applied to an ultrasonic flowmeter, an ultrasonic range finder, an ultrasonic flaw detector, a gas meter and other devices for measuring by using ultrasonic waves. As shown in fig. 1-3, the ultrasonic-based measurement threshold determination method includes steps S101-S104.
S101: and acquiring an echo signal corresponding to the fluid in the target object.
Optionally, the echo signal is a signal obtained by detecting fluid ultrasonic waves, the ultrasonic flowmeter transmits the ultrasonic signal to the target object, and the echo signal returned is collected, and fluid detection is performed according to the echo signal.
Alternatively, the target object may be a pipeline for transporting fluid, and may also be a river channel or other object carrying fluid or flowing fluid. The fluid may be water, alcohol, glycol, petroleum, and other types of fluids.
Optionally, the object for transmitting the ultrasonic signal and the object for collecting the echo signal may be the same object, or the object for transmitting the ultrasonic signal and the object for collecting the echo signal may be different objects according to the requirement or the actual environment.
In one embodiment, the target object is a pipeline, and the ultrasonic flowmeter ultrasonically detects the interior of the pipeline for a predetermined period of time or at a specific frequency to obtain the echo signal.
Optionally, after the echo signal is obtained, the corresponding upstream and downstream flight time can be obtained according to the echo signal, whether the difference value of the upstream and downstream flight time is located in a preset area is detected, if yes, it is determined that no fluid exists in the pipeline, and the set measurement threshold is not adjusted. If the fluid is not in the preset range, determining that the fluid exists in the pipeline. The preset area is an area corresponding to the difference value of the upstream and downstream flight time when no fluid exists in the pipeline.
S102: and adjusting a preset first measurement threshold according to the first pulse width ratio corresponding to the echo signal, and acquiring a plurality of second pulse width ratios based on the adjusted first measurement threshold.
Optionally, a first pulse width ratio is obtained according to a first measurement threshold preset at present, where the first pulse width ratio is a ratio of a pulse width of a first waveform received by the ultrasonic flowmeter based on the first measurement threshold to a pulse width of a peak waveform. The waveform with the highest first peak in the echo signal is taken as the peak wave.
In one embodiment, as shown in fig. 2, the waveform denoted by reference numeral 1 is a first waveform corresponding to a first measurement threshold, the waveform denoted by reference numeral 2 is a peak waveform, and correspondingly, the pulse width corresponding to reference numeral 1 is shown as reference numeral 3, and the pulse width corresponding to the waveform denoted by reference numeral 2 is shown as reference numeral 4.
Optionally, as shown in fig. 3, when the fluid is clear water or antifreeze, the measurement threshold-pulse width ratio curves of the two are respectively curve 5 and curve 6, that is, the first pulse width ratio of different fluids under different measurement thresholds is different. Therefore, after the first pulse width ratio is obtained, whether the first pulse width ratio is in a preset range is detected, if yes, it is determined that the first measurement threshold is matched with the fluid in the target object, and the first measurement threshold does not need to be adjusted. If the first measurement threshold value is not within the preset range, the first measurement threshold value is determined to be required to be adjusted.
Optionally, the preset range is a range in which the pulse width ratio of the generated echo signal is located when the fluid ultrasonic wave corresponding to the first measurement threshold is detected, and the specific size of the range is determined by the type of the fluid in the target object and the target object.
Alternatively, after the first measurement threshold is acquired, whether the fluid is present in the target object may be detected according to the echo signal.
Optionally, the first measurement threshold is controlled to be changed based on the first preset interval, so as to obtain a plurality of second measurement thresholds, and a second pulse width ratio corresponding to each second measurement threshold is obtained. Wherein the second pulse width ratio is a ratio of a pulse width of the first waveform to a pulse width of the peak waveform detected by the second measurement threshold.
Alternatively, the first preset interval may be 1mv, or may be 2mv, 2.5mv, or other values, where the specific size may be set according to the actual requirement or the detection environment.
In one embodiment, the target object is a pipeline, the preset range is 0.45-0.75, the first preset interval is 1mv, after the echo signals are acquired, a first pulse width ratio corresponding to the echo signals is acquired according to a first measurement threshold, and whether the first pulse width ratio is in the range of 0.45-0.75 is detected. If so, determining that the current measurement threshold does not need to be changed, if the first pulse width ratio is not in the range of 0.45-0.75, detecting whether the pipeline is an empty pipe, if not, determining that the first measurement threshold needs to be adjusted, and changing the first measurement threshold with 1mv as an interval to obtain a plurality of second measurement thresholds. And acquiring echo signals in a preset time period, acquiring a first waveform and a peak wave corresponding to each second measurement threshold based on the echo signals, and calculating a second pulse width ratio according to the pulse width of the first waveform and the pulse width of the peak wave. The number of the second pulse width ratios can be set according to actual requirements.
S103: and obtaining the mutation point threshold value through the difference value of the adjacent second pulse width ratio.
Optionally, obtaining a difference value between adjacent second pulse width ratios, obtaining an absolute value of the difference value, detecting whether the absolute value is larger than a second preset threshold value, and if so, marking a second measurement threshold value larger than the absolute value of the second preset threshold value as a mutation point threshold value.
Alternatively, the second preset threshold may be 0.3, or may be 0.4, 0.5, or other values; which may be set as desired, as this application is not limited in this regard.
In one embodiment, the second preset threshold is 0.3, after a sufficient number of second pulse width ratios are obtained, adjacent second pulse width ratios are subtracted to obtain an absolute value of a subtraction result, and if the absolute value is greater than 0.3, the second measurement threshold of the absolute value is determined to be the mutation point threshold.
S104: and determining a target measurement threshold according to the number of the mutation point thresholds and the first preset threshold.
Optionally, judging whether the number of the mutation point thresholds is larger than or equal to a first preset threshold; if the number of the mutation point thresholds is larger than or equal to a first preset threshold, ending the threshold determining work, and restarting the threshold determining work within the preset time; if the number of the mutation point thresholds is smaller than the first preset threshold, determining a target measurement threshold according to the mutation point thresholds and the second pulse width ratio.
In one embodiment, after the number of the mutation point thresholds is greater than or equal to a first preset threshold, determining that impurities exist in the fluid, ending the acquisition of the target measurement threshold, stopping the acquisition of the measurement result of the fluid, timing, and re-acquiring the target measurement threshold within a preset time according to timing information until the measurement result of the fluid is acquired after the target measurement threshold is obtained.
Optionally, after the mutation point threshold is obtained, detecting whether the number of the mutation point threshold is smaller than a first preset threshold, if yes, determining a target measurement threshold according to the first preset threshold, and if not, ending the target measurement threshold obtaining operation.
Alternatively, the first preset threshold may be 4, or may be 6, 8, or other values; which may be set as desired, as this application is not limited in this regard.
Optionally, if the number of the mutation point thresholds is determined to be smaller than the first preset threshold, searching a second pulse width ratio closest to the first preset value, and if the interval between a second measurement threshold corresponding to the second pulse width ratio and the mutation point threshold is greater than a second preset interval, determining the second measurement threshold as the target measurement threshold.
In one embodiment, the first preset threshold is 4, the first preset value is 0.5, and the second preset interval is 3mv. After the mutation point threshold is obtained, selecting a second measurement threshold corresponding to a second pulse width ratio closest to 0.5, and taking the second measurement threshold as a target measurement threshold if the interval between the second measurement threshold and the mutation point threshold is determined to be more than 3mv.
Because after ultrasonic flowmeter used the certain time, its ultrasonic probe can have certain decay, this application has adopted the mode of dynamic adjustment measurement threshold value, can adapt to the problem that ultrasonic probe used the decay after the certain time to still can guarantee measuring accuracy.
According to the method, echo signals corresponding to the fluid are obtained, a preset first measurement threshold is adjusted according to the first pulse width ratio to obtain a plurality of second pulse width ratios, then a mutation point threshold is obtained through the difference value of the adjacent second pulse width ratios, and a final target measurement threshold is determined according to the number of the mutation point thresholds and the first preset threshold. According to the method and the device for measuring the fluid flow, the measurement threshold value related to ultrasonic detection can be adjusted according to the actual echo signal, and the target measurement threshold value corresponding to the current fluid is obtained, so that accuracy of a measurement result is improved, and measurement errors are reduced.
According to an aspect of the present application, the present application further proposes an ultrasonic wave-based impurity determination method, as shown in fig. 4 and 5, including:
s201: ultrasonic detection information of the target object is acquired.
Alternatively, the target object may be a pipeline in which water, antifreeze, alcohol, crude oil, and other pipeline-conveyed fluids may be present.
S202: and if the fluid exists in the target object according to the ultrasonic detection information, acquiring an echo signal corresponding to the fluid in the target object.
Alternatively, the upstream and downstream flight times are acquired by ultrasonic detection information, and the presence or absence of fluid in the target object is detected based on the upstream and downstream flight times. The current ultrasonic waveform or wave velocity may be obtained according to the ultrasonic detection information, and the ultrasonic waveform or wave velocity may be compared with the waveform or wave velocity when the fluid is not present, if the ultrasonic waveform or wave velocity is matched with the waveform or wave velocity, it is determined that the fluid is not present in the target object, and if the ultrasonic waveform or wave velocity is not matched with the waveform or wave velocity, it is determined that the fluid is present in the target object.
S203: and adjusting a preset first measurement threshold according to a first pulse width ratio corresponding to the echo signal.
Optionally, acquiring a first pulse width ratio corresponding to a preset first measurement threshold according to the echo signal; and if the first pulse width ratio is determined not to be in the preset range, adjusting a first measurement threshold.
In one embodiment, the preset range is 0.45-0.75, and whether the first pulse width ratio is within the preset range is detected, if the first pulse width ratio is determined to be within the preset range, the first measurement threshold is determined not to be required to be adjusted, and if the first pulse width ratio is determined not to be within the first preset range, the first measurement threshold is adjusted.
Optionally, a first waveform and a peak wave corresponding to a preset first measurement threshold value in the echo signal are obtained, a ratio of a pulse width corresponding to the first waveform to a pulse width corresponding to the peak wave is calculated, and the ratio is determined as a first pulse width ratio.
In one embodiment, the echo signal is processed through a first measurement threshold to obtain a first waveform meeting the first measurement threshold, a peak wave in the echo signal is obtained, a ratio of a pulse width of the first waveform to a pulse width of the peak wave is obtained, and the ratio is determined as a first pulse width ratio.
Optionally, adjusting the first measurement threshold includes: and controlling the first measurement threshold to change based on the first preset interval to obtain a plurality of second measurement thresholds.
In one embodiment, the first preset interval is 1mv, the first measurement threshold is changed at intervals of 1mv, and the changed first measurement threshold is determined as the second measurement threshold. The number of the second measurement thresholds may be preset, and after the number of the second measurement thresholds obtained by determining reaches the preset value, the operation of obtaining the second measurement thresholds is stopped.
S204: a plurality of second pulse width ratios are obtained based on the adjusted first measurement threshold.
Optionally, a second pulse width ratio corresponding to each second measurement threshold is obtained according to the echo signal in the preset time period, the second pulse width ratio is a first waveform and a peak wave corresponding to each second measurement threshold, and the ratio of the pulse width of the first waveform to the pulse width of the peak wave is determined as the second pulse width ratio.
S205: and acquiring a difference value of two adjacent second pulse width ratios, and if the absolute value of the difference value is larger than a second preset threshold value, determining a second measurement threshold value corresponding to the two adjacent second pulse width ratios as a mutation point threshold value.
Optionally, the second preset threshold may be 0.3, if two second measurement thresholds are adjacent in value (for example, 3, 4, 5, where 3 is adjacent to 4), the second pulse width ratio corresponding to the two second measurement thresholds is determined to be adjacent, the absolute value of the difference value of the adjacent second pulse width ratio is obtained, and if the absolute value is greater than 0.3, the second measurement threshold corresponding to the adjacent second pulse width ratio is determined to be the mutation point threshold. If the absolute value is smaller than 0.3, the second measurement threshold corresponding to the adjacent second pulse width ratio is not determined as the mutation point threshold.
S206: and judging impurities according to the number of the mutation point thresholds and the first preset threshold.
Optionally, judging whether the number of the mutation point thresholds is larger than or equal to a first preset threshold; if the number of the mutation point thresholds is larger than or equal to a first preset threshold, determining that impurities exist in the fluid, ending the impurity judging work, stopping fluid measurement or marking a measurement result corresponding to a time period when the impurities are determined to exist as an abnormal result, and restarting the impurity judging work within a preset time.
Optionally, if the number of the mutation point thresholds is smaller than the first preset threshold after the impurity judging work is started currently or restarted, determining that no impurity exists currently or the impurity cannot affect the detection result, determining a second measurement threshold corresponding to a second pulse width ratio meeting preset conditions as a target measurement threshold, wherein the preset conditions comprise that the absolute value of a difference value between the second pulse width ratio and the first preset value is minimum, and the interval between the second measurement threshold corresponding to the second pulse width ratio and the mutation point threshold is larger than a second preset interval.
In one embodiment, the first preset threshold may be 4, the second preset interval may be 3mv, the second pulse width ratio corresponding to each second measurement threshold is obtained, the second measurement threshold, whose second pulse width ratio is closest to 0.5 and whose interval with the mutation point threshold is greater than 3mv, is selected, and the second measurement threshold is determined as the target measurement threshold. And obtaining a difference value between the second pulse width ratio and 0.5, obtaining an absolute value of the difference value, and determining the second pulse width ratio corresponding to the minimum absolute value as the second pulse width ratio closest to 0.5.
Optionally, if there are a plurality of second measurement thresholds closest to 0.5 and spaced from the mutation point threshold by more than 3mv, the first second measurement threshold among the second measurement thresholds is taken as the target measurement threshold.
The measurement threshold determining method can be used for measuring various fluids, such as water, ethylene glycol and the like, and ensures measurement accuracy.
In the use process of the ultrasonic flowmeter, although corresponding interference mediums such as stones, silt and the like possibly exist in the measured fluid, the mediums which influence the measurement possibly exist in the fluid can be identified through judging the number of the mutation point threshold values, so that the measurement can be ignored when the interference mediums exist in the fluid (when the number of the mutation point threshold values is larger than or equal to a first preset threshold value, the measurement is ignored), and the accuracy of the ultrasonic flowmeter in the measurement process is improved.
It should be noted that, in the alternative embodiment of the present application, the related data (such as the echo signal, the first pulse width ratio, the second pulse width ratio, etc.) needs to be licensed or agreed upon by the user when the above embodiment of the present application is applied to a specific product or technology, and the collection, use and processing of the related data need to comply with the relevant laws and regulations and standards of the relevant country and region. That is, in the embodiments of the present application, if data related to the subject is involved, the data needs to be obtained through the subject authorization consent, and in compliance with relevant laws and regulations and standards of the country and region.
According to an aspect of the present application, there is also provided an ultrasonic-based measurement threshold determining apparatus 300, as shown in fig. 6, including: an echo signal obtaining unit 301, configured to obtain an echo signal corresponding to a fluid in a target object; the echo signal is a signal obtained by detecting fluid ultrasonic waves; the measurement threshold adjustment unit 302 is configured to adjust a preset first measurement threshold according to a first pulse width ratio corresponding to the echo signal, and obtain a plurality of second pulse width ratios corresponding to the echo signal based on the adjusted first measurement threshold; a mutation point threshold value obtaining unit 303, configured to obtain a mutation point threshold value through a difference value of adjacent second pulse width ratios; the target measurement threshold obtaining unit 304 is configured to determine a target measurement threshold according to the number of mutation point thresholds and the first preset threshold.
Optionally, determining the target measurement threshold according to the number of mutation point thresholds and the first preset threshold includes: judging whether the number of the mutation point thresholds is larger than or equal to a first preset threshold; if the number of the mutation point thresholds is larger than or equal to a first preset threshold, ending the threshold determining work, and restarting the threshold determining work within the preset time; if the number of the mutation point thresholds is smaller than the first preset threshold, determining a target measurement threshold according to the mutation point thresholds and the second pulse width ratio.
Optionally, adjusting a preset first measurement threshold according to a first pulse width ratio corresponding to the echo signal includes: acquiring a first pulse width ratio corresponding to a preset first measurement threshold according to the echo signal; and if the first pulse width ratio is determined not to be in the preset range, adjusting the first measurement threshold.
Optionally, acquiring a first pulse width ratio corresponding to a preset first measurement threshold according to the echo signal includes: and acquiring a first waveform and a peak wave corresponding to the preset first measurement threshold value in the echo signal, calculating the ratio of the pulse width corresponding to the first waveform to the pulse width corresponding to the peak wave, and determining the ratio as a first pulse width ratio.
Optionally, adjusting a preset first measurement threshold according to a first pulse width ratio corresponding to the echo signal, and acquiring a plurality of second pulse width ratios based on the adjusted first measurement threshold, including: controlling the first measurement threshold to obtain a plurality of second measurement thresholds based on the first preset interval change; and obtaining a second pulse width ratio corresponding to each second measurement threshold, wherein the second pulse width ratio is a first waveform and peak wave corresponding to each second measurement threshold, and determining the ratio of the pulse width of the first waveform to the pulse width of the peak wave as the second pulse width ratio.
Optionally, obtaining the mutation point threshold through a difference value of adjacent second pulse width ratios includes: acquiring a difference value of two adjacent second pulse width ratios; and if the absolute value of the difference value is larger than a second preset threshold value, determining that the second measurement threshold value corresponding to the two adjacent second pulse width ratios is a mutation point threshold value.
Optionally, determining the target measurement threshold according to the mutation point threshold and the second pulse width ratio includes determining a second measurement threshold corresponding to the second pulse width ratio meeting a preset condition as the target measurement threshold, where the preset condition includes that an absolute value of a difference between the second pulse width ratio and the first preset value is minimum, and an interval between the second measurement threshold corresponding to the second pulse width ratio and the mutation point threshold is greater than a second preset interval.
Optionally, acquiring an echo signal corresponding to the fluid in the target object includes: acquiring ultrasonic detection information of a target object; and if the fluid exists in the target object according to the ultrasonic detection information, acquiring an echo signal corresponding to the fluid in the target object.
In an alternative embodiment, there is provided an electronic device, as shown in fig. 7, the electronic device 4000 shown in fig. 7 includes: a processor 4001 and a memory 4003. Wherein the processor 4001 is coupled to the memory 4003, such as via a bus 4002. Optionally, the electronic device 4000 may further comprise a transceiver 4004, the transceiver 4004 may be used for data interaction between the electronic device and other electronic devices, such as transmission of data and/or reception of data, etc. It should be noted that, in practical applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 is not limited to the embodiment of the present application.
The processor 4001 may be a CPU (central processing unit), a general purpose processor, a DSP (digital signal processor), an ASIC (application specific integrated circuit), an FPGA (field programmable gate array) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. The processor 4001 may also be a combination that implements computing functionality, e.g., comprising one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
Bus 4002 may include a path to transfer information between the aforementioned components. The bus 4002 may be a PCI (peripheral component interconnect) bus, an EISA (extended industrial standard architecture) bus, or the like. The bus 4002 can be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The memory 4003 may be a ROM (read only memory) or other type of static storage device that can store static information and instructions, a RAM (random access memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (electrically erasable programmable read only memory), a CD-ROM (compact disc read only memory) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store a computer program and that can be read by a computer, without limitation.
The memory 4003 is used for storing a computer program that executes an embodiment of the present application, and is controlled to be executed by the processor 4001. The processor 4001 is configured to execute a computer program stored in the memory 4003 to realize the steps shown in the foregoing method embodiment.
The electronic device may be any electronic product that can perform man-machine interaction with an object, for example, a personal computer, a tablet computer, a smart phone, a personal digital assistant (PersonalDigitalAssistant, PDA), a game console, an interactive internet protocol television (InternetProtocolTelevision, IPTV), an intelligent wearable device, and the like.
The electronic device may also include a network device and/or an object device. Wherein the network device includes, but is not limited to, a single network server, a server group made up of multiple network servers, or a cloud based on cloud computing (CloudComputing) made up of a large number of hosts or network servers.
The network in which the electronic device is located includes, but is not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VirtualPrivateNetwork, VPN), and the like.
The embodiment of the application provides a computer storage medium, and a computer program is stored on the computer storage medium, and when the computer program is executed by a processor, the steps and corresponding contents of the foregoing method embodiment can be realized.
The terms "first," "second," "third," "fourth," "1," "2," and the like in the description and in the claims of this application and in the above-described figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the present application described herein may be implemented in other sequences than those illustrated or otherwise described.
It should be understood that, although the flowcharts of the embodiments of the present application indicate the respective operation steps by arrows, the order of implementation of these steps is not limited to the order indicated by the arrows. In some implementations of embodiments of the present application, the implementation steps in the flowcharts may be performed in other orders as desired, unless explicitly stated herein. Furthermore, some or all of the steps in the flowcharts may include multiple sub-steps or multiple stages based on the actual implementation scenario. Some or all of these sub-steps or phases may be performed at the same time, or each of these sub-steps or phases may be performed at different times, respectively. In the case of different execution time, the execution sequence of the sub-steps or stages may be flexibly configured according to the requirement, which is not limited in the embodiment of the present application.
The foregoing is merely an optional implementation manner of the implementation scenario of the application, and it should be noted that, for those skilled in the art, other similar implementation manners based on the technical ideas of the application are adopted without departing from the technical ideas of the application, and also belong to the protection scope of the embodiments of the application.

Claims (10)

1. An ultrasonic-based measurement threshold determination method, comprising:
acquiring an echo signal corresponding to a fluid in a target object; the echo signal is a signal obtained by detecting the fluid ultrasonic wave;
adjusting a preset first measurement threshold according to a first pulse width ratio corresponding to the echo signal, and acquiring a plurality of second pulse width ratios based on the adjusted first measurement threshold;
acquiring a mutation point threshold value through a difference value of adjacent second pulse width ratios;
and determining a target measurement threshold according to the number of the mutation point thresholds and the first preset threshold.
2. The method of claim 1, wherein determining the target measurement threshold based on the number of mutation point thresholds and the first preset threshold comprises:
judging whether the number of the mutation point thresholds is larger than or equal to a first preset threshold;
if the number of the mutation point thresholds is larger than or equal to a first preset threshold, ending the threshold determining work, and restarting the threshold determining work within the preset time;
if the number of the mutation point thresholds is smaller than the first preset threshold, determining a target measurement threshold according to the mutation point thresholds and the second pulse width ratio.
3. The method according to claim 2, wherein the adjusting the preset first measurement threshold according to the first pulse width ratio corresponding to the echo signal includes:
acquiring a first pulse width ratio corresponding to a preset first measurement threshold according to the echo signal;
and if the first pulse width ratio is determined not to be in the preset range, adjusting the first measurement threshold.
4. A method according to claim 3, wherein said obtaining a first pulse width ratio corresponding to a preset first measurement threshold from said echo signal comprises:
and acquiring a first waveform and a peak wave corresponding to the preset first measurement threshold value in the echo signal, calculating the ratio of the pulse width corresponding to the first waveform to the pulse width corresponding to the peak wave, and determining the ratio as a first pulse width ratio.
5. The method according to claim 2, wherein the adjusting the preset first measurement threshold according to the first pulse width ratio corresponding to the echo signal, and obtaining the plurality of second pulse width ratios based on the adjusted first measurement threshold, includes:
controlling the first measurement threshold to obtain a plurality of second measurement thresholds based on the first preset interval change;
and obtaining a second pulse width ratio corresponding to each second measurement threshold, wherein the second pulse width ratio is a first waveform and peak wave corresponding to each second measurement threshold, and determining the ratio of the pulse width of the first waveform to the pulse width of the peak wave as the second pulse width ratio.
6. The method of claim 5, wherein the obtaining the mutation point threshold by the difference of adjacent second pulse width ratios comprises:
acquiring a difference value of two adjacent second pulse width ratios;
and if the absolute value of the difference value is larger than a second preset threshold value, determining that the second measurement threshold value corresponding to the two adjacent second pulse width ratios is a mutation point threshold value.
7. The method of claim 5, wherein determining the target measurement threshold based on the mutation point threshold and the second pulse width ratio comprises:
and determining a second measurement threshold corresponding to a second pulse width ratio meeting preset conditions as a target measurement threshold, wherein the preset conditions comprise that the absolute value of the difference value between the second pulse width ratio and the first preset value is minimum, and the interval between the second measurement threshold corresponding to the second pulse width ratio and the mutation point threshold is larger than a second preset interval.
8. An ultrasonic-based measurement threshold determination apparatus, comprising:
the echo signal acquisition unit is used for acquiring echo signals corresponding to the fluid in the target object; the echo signal is a signal obtained by detecting the fluid ultrasonic wave;
the measurement threshold adjusting unit is used for adjusting a preset first measurement threshold according to the first pulse width ratio corresponding to the echo signal and acquiring a plurality of second pulse width ratios corresponding to the echo signal based on the adjusted first measurement threshold;
the abrupt point threshold value acquisition unit is used for acquiring an abrupt point threshold value through the difference value of the adjacent second pulse width ratio;
the target measurement threshold acquiring unit is used for determining the target measurement threshold according to the number of the mutation point thresholds and the first preset threshold.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory, characterized in that the processor executes the computer program to carry out the steps of the method according to any one of claims 1-7.
10. A computer storage medium comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method of any of claims 1-7.
CN202311372445.8A 2023-10-20 2023-10-20 Method, device, equipment and medium for determining measurement threshold based on ultrasonic waves Pending CN117330143A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311372445.8A CN117330143A (en) 2023-10-20 2023-10-20 Method, device, equipment and medium for determining measurement threshold based on ultrasonic waves

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311372445.8A CN117330143A (en) 2023-10-20 2023-10-20 Method, device, equipment and medium for determining measurement threshold based on ultrasonic waves

Publications (1)

Publication Number Publication Date
CN117330143A true CN117330143A (en) 2024-01-02

Family

ID=89277114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311372445.8A Pending CN117330143A (en) 2023-10-20 2023-10-20 Method, device, equipment and medium for determining measurement threshold based on ultrasonic waves

Country Status (1)

Country Link
CN (1) CN117330143A (en)

Similar Documents

Publication Publication Date Title
Oberg et al. Validation of streamflow measurements made with acoustic Doppler current profilers
CA2875878A1 (en) Method and system for correcting for temperature variations in ultrasonic testing systems
CN110646042A (en) Cross-correlation interpolation method for calculating flight time difference of low-power-consumption ultrasonic flowmeter
CN103926463B (en) The method for measuring phase difference that a kind of Data extension formula is relevant
CN107860430A (en) A kind of ultrasonic gas flowmeter measurement method for time difference based on time difference method
Perdana et al. Water leak detection and shut-off system on water distribution pipe network using wireless sensor network
CN111044110A (en) Gas ultrasonic flowmeter signal processing method based on similarity analysis
Li et al. Leakage localization using pressure sensors and spatial clustering in water distribution systems
Li et al. Pipeline leak detection using the multiple signal classification-like method
CN103063171A (en) Method for measuring wall thickness of workpiece
CN106908522A (en) The ultrasonic guided wave detecting of defect of pipeline axial width demarcates sample pipe and scaling method
CN117330143A (en) Method, device, equipment and medium for determining measurement threshold based on ultrasonic waves
Díaz Lozada et al. Dynamic selection of exposure time for turbulent flow measurements
Guo et al. Experimental study on three simple tracers for the assessment of extraneous water into sewer systems
KR101764870B1 (en) Signal processing system for ultrasonic floemeter
Rychagov et al. Multipath flowrate measurements of symmetric and asymmetric flows
CN108731714B (en) A kind of coding/decoding method and device of frequency-scan data
Du et al. Approach for near-real-time pipe burst detection, localization, and quantification with low data transmission and sampling rates
CN103733033A (en) Linear relationship between tracks
Mingwei et al. Research on improving the accuracy of the ultrasonic flow-meter with time difference method
CN202304777U (en) Workpiece thickness measurement device
Zheng et al. A new characteristic peaks group judgement method for the accurate measurement of time‐of‐flight in the ultrasonic gas flowmeter
Lee et al. An implementation of ultrasonic water meter using dToF measurement
Li et al. The time delay of flow and sediment in the middle and lower Yangtze River and its response to the Three Gorges Dam
Chen et al. Research on a transit-time liquid ultrasonic flowmeter under unstable flow fields

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