CN115096914A - Liquid detection method and device and liquid detection equipment - Google Patents

Liquid detection method and device and liquid detection equipment Download PDF

Info

Publication number
CN115096914A
CN115096914A CN202210751660.8A CN202210751660A CN115096914A CN 115096914 A CN115096914 A CN 115096914A CN 202210751660 A CN202210751660 A CN 202210751660A CN 115096914 A CN115096914 A CN 115096914A
Authority
CN
China
Prior art keywords
liquid
information
container
detection
detection data
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
CN202210751660.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.)
Hangzhou Ruiying Technology Co ltd
Original Assignee
Hangzhou Ruiying 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 Hangzhou Ruiying Technology Co ltd filed Critical Hangzhou Ruiying Technology Co ltd
Priority to CN202210751660.8A priority Critical patent/CN115096914A/en
Publication of CN115096914A publication Critical patent/CN115096914A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N22/00Investigating or analysing materials by the use of microwaves or radio waves, i.e. electromagnetic waves with a wavelength of one millimetre or more
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Measurement Of Levels Of Liquids Or Fluent Solid Materials (AREA)

Abstract

The embodiment of the invention provides a liquid detection method, a liquid detection device and liquid detection equipment, which are applied to the technical field of data processing. The method comprises the following steps: acquiring original detection data detected by liquid detection equipment aiming at liquid, and determining first characteristic information corresponding to the original detection data; determining size information of the container according to size detection data detected by a size detection sensor for the container in the liquid detection process; determining compensation information corresponding to the first feature information and the determined size information using a predetermined first correspondence relationship; compensating the original detection data by using the determined compensation information to obtain target detection data; the kind of the liquid is determined based on the target detection data or the second characteristic information of the target detection data. Through the scheme, the accuracy of the detection result of the liquid detection can be improved.

Description

Liquid detection method and device and liquid detection equipment
Technical Field
The invention relates to the technical field of data processing, in particular to a liquid detection method, a liquid detection device and liquid detection equipment.
Background
Liquid detection refers to detecting the liquid type of the liquid to be detected. For example, the liquid class may be a natural attribute class, such as distilled water, ethanol, soda, and the like; alternatively, the liquid category may be a dangerous category, such as no danger, dangerous, etc.
Generally, a microwave reflection method is used for detecting liquid, specifically, detection data of liquid to be detected is obtained by emitting microwaves to the liquid to be detected through liquid detection equipment, and then a detection result of the liquid to be detected is determined based on the detection data.
However, due to the reflection of the microwave in the containers with different size information (such as width information), the detection data of the same liquid measured in the containers with different size information are often different, and the final detection result is inaccurate.
Disclosure of Invention
The embodiment of the invention aims to provide a liquid detection method, a liquid detection device and liquid detection equipment so as to improve the accuracy of a detection result of liquid detection. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a liquid detection method, which is applied to a liquid detection device that detects liquid in a container based on a microwave reflection principle, where the liquid detection device includes a size detection sensor, and the method includes:
acquiring original detection data detected by the liquid detection equipment aiming at the liquid, and determining first characteristic information corresponding to the original detection data;
determining size information of the container based on size detection data detected by the size detection sensor for the container during liquid detection;
determining compensation information corresponding to the first characteristic information and the determined size information by using a predetermined first corresponding relation, wherein the first corresponding relation is used for representing the corresponding relation among the characteristic information of the detection data, the size information of the container and the compensation information of the detection data;
compensating the original detection data by using the determined compensation information to obtain target detection data;
determining the type of the liquid based on the target detection data or second characteristic information of the target detection data.
In a second aspect, an embodiment of the present invention provides a liquid detection apparatus, which is applied to a liquid detection device that detects liquid in a container based on a microwave reflection principle, where the liquid detection device includes a size detection sensor, and the apparatus includes:
the data acquisition module is used for acquiring original detection data of the liquid detection equipment for the liquid and determining first characteristic information corresponding to the original detection data;
the size information determining module is used for determining the size information of the container according to the size detection data detected by the size detection sensor aiming at the container in the liquid detection process;
the supplementary information determining module is used for determining compensation information corresponding to the first characteristic information and the determined size information by utilizing a first predetermined corresponding relation, wherein the first corresponding relation is used for representing the corresponding relation among the characteristic information of the detection data, the size information of the container and the compensation information of the detection data;
the data supplement module is used for compensating the original detection data by using the determined compensation information to obtain target detection data;
and the type determining module is used for determining the type of the liquid according to the target detection data or the second characteristic information of the target detection data.
In a third aspect, an embodiment of the present invention provides a liquid detection apparatus, including a liquid detection position, a size detection sensor, a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
the liquid detection position is used for bearing a container containing liquid to be detected and detecting the liquid to be detected;
a size detection sensor for detecting size information of a container containing a liquid to be measured;
a memory for storing a computer program;
a processor for implementing the method steps of any of the first aspect when executing a program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of any one of the first aspect.
The embodiment of the invention has the following beneficial effects:
according to the liquid detection method, the liquid detection device and the liquid detection equipment provided by the embodiment of the invention, original detection data of the liquid detection equipment for liquid detection can be obtained, and first characteristic information corresponding to the original detection data is determined; determining size information of the container according to size detection data detected by a size detection sensor for the container in the liquid detection process; determining compensation information corresponding to the first characteristic information and the determined size information by using a predetermined first corresponding relation, wherein the first corresponding relation is used for representing the corresponding relation among the characteristic information of the detection data, the size information of the container and the compensation information of the detection data; compensating the original detection data by using the determined compensation information to obtain target detection data; the kind of the liquid is determined based on the target detection data or the second characteristic information of the target detection data. The compensation information corresponding to the first characteristic information and the determined size information can be determined based on the first characteristic information corresponding to the original detection data and the size information of the container, so that different compensation information can be adopted for compensating for the liquid in the container with different size information, and the accuracy of the detection result of liquid detection is improved.
Of course, it is not necessary for any product or method to achieve all of the above-described advantages at the same time for practicing the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by referring to these drawings.
Fig. 1 is a schematic structural diagram of a liquid detection apparatus according to an embodiment of the present invention.
FIG. 2 is a flow chart of a liquid detection method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of another liquid detection apparatus provided in the embodiment of the present invention;
FIG. 4 is a flow chart of another liquid detection method according to an embodiment of the present invention
FIG. 5 is a schematic structural diagram of a liquid detection apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a liquid detection apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived from the embodiments of the present invention by those skilled in the art based on the description, are within the scope of the present invention.
In order to improve the accuracy of a detection result of liquid detection, the embodiment of the invention provides a liquid detection method, a liquid detection device and liquid detection equipment.
It should be noted that the embodiment of the present invention may be applied to a liquid detection device for detecting liquid in a container based on the microwave reflection principle, where the liquid detection device includes a size detection sensor, and in this case, after detecting detection data of the liquid in the container, the liquid detection device may determine a detection result directly based on the detection data. Moreover, the liquid detection method provided by the embodiment of the invention can be realized in a software, hardware or software and hardware combination mode.
In an embodiment, as shown in fig. 1, a schematic structural diagram of a liquid detection apparatus provided in an embodiment of the present invention includes a microwave antenna, a size detection sensor, a data processing device, and a display. The microwave antenna is used for emitting and detecting microwave signals of liquid to be detected, the size detection sensor is used for measuring size information of a container containing the liquid to be detected, the data processing equipment is used for executing liquid detection logic, and the display is used for displaying detection results.
The liquid detection method provided by the embodiment of the invention can comprise the following steps:
acquiring original detection data detected by liquid detection equipment aiming at liquid, and determining first characteristic information corresponding to the original detection data;
determining size information of the container according to size detection data detected by a size detection sensor for the container in the liquid detection process;
determining compensation information corresponding to the first characteristic information and the determined size information by using a predetermined first corresponding relation, wherein the first corresponding relation is used for representing the corresponding relation among the characteristic information of the detection data, the size information of the container and the compensation information of the detection data;
compensating the original detection data by using the determined compensation information to obtain target detection data;
the kind of the liquid is determined based on the target detection data or the second characteristic information of the target detection data.
In the solution provided in this embodiment, compensation information corresponding to the first characteristic information and the determined size information may be determined based on the first characteristic information corresponding to the original detection data and the size information of the container, so that different compensation information may be used to compensate for the liquid in the container with different size information, thereby improving the accuracy of the detection result of the liquid detection.
The liquid detection method provided by the embodiment of the invention will be explained in detail below with reference to the accompanying drawings.
As shown in fig. 2, an embodiment of the present invention provides a liquid detection method, which is applied to a liquid detection device for detecting liquid in a container based on a microwave reflection principle, where the liquid detection device includes a size detection sensor, and includes steps S201 to S205, where:
s201, acquiring original detection data of liquid detection equipment for liquid detection, and determining first characteristic information corresponding to the original detection data;
the original detection data are detection data obtained by measuring the liquid in the container by the liquid detection equipment.
The detection data may be detection data obtained by measuring the liquid in the container by using a microwave signal with a single frequency by the liquid detection device, for example, the liquid detection device measures the liquid in the container by using a 10HZ microwave signal, the obtained reflection signal is f, and the liquid detection device may use an amplitude value and/or a phase value of the reflection signal f as the detection data. In brief, after receiving the reflected signal f, the liquid detection apparatus may determine an amplitude value and/or a phase value of the reflected signal f, and if the amplitude value or the phase value is determined, the determined amplitude value and phase value may be used as the detection data, or if the amplitude value and phase value is determined, the amplitude value and phase value may be combined into a vector or a complex number, for example, the detection data is a vector (a, b), where a is the amplitude value and b is the vector value, or the detection data is a complex number z ═ c + di, where the amplitude value of the reflected signal f is the amplitude value and b is the vector value, and the detection data is the complex number z ═ c + di
Figure BDA0003721199290000051
The phase value of the reflected signal f is arctan (d/c). If the frequency of the reflected signal f is not fixed, the reflected signal f may be decomposed into a combination of a plurality of frequency signals, and for each frequency signal, the detection data of the signal corresponding to each frequency may be determined by using the above-mentioned calculation method of the single-frequency microwave signal.
For the liquid detection device, the liquid detection device may further detect the liquid in the container by using microwave signals of multiple frequencies, and in this case, the detection data measured by the liquid detection device for the liquid in the container may include detection data corresponding to each frequency. For example, the liquid detecting apparatus may respectively detect the liquid in the container by using 10HZ, 20HZ, and 30HZ microwave signals, and obtain detection data 1, detection data 2, and detection data 3, respectively, and the raw detection data may include detection data 1, detection data 2, and detection data 3.
Optionally, in a case that the liquid detection device detects the liquid in the container by using microwave signals with multiple frequencies, and the detection data includes an amplitude value and a phase value, the detection data obtained by the liquid detection device may be expressed in the following form:
Figure BDA0003721199290000052
wherein S is detection data detected by the liquid detection equipment aiming at the liquid in the container, A i =[A i1 ,A i2 ,...,A in ],P i =[P i1 ,P i2 ,...,P in ]M is the type of liquid detected by the liquid detection equipment, n is the number of microwave signals with various frequencies, A ij Aiming at the ith liquid, the liquid detection equipment adopts the microwave signal of the jth frequency to carry out measurement, and the amplitude value, P, of the obtained reflection signal ij And for the liquid detection device, measuring by using a microwave signal of a jth frequency aiming at the ith type of liquid, and obtaining a phase value of a reflection signal.
After the original detection data detected by the liquid detection equipment for the liquid are obtained, first characteristic information corresponding to the original detection data can be determined.
In one implementation manner, after original detection data detected by liquid detection equipment for liquid is acquired, feature information extraction may be performed on the original detection data, and the extracted feature information is used as first feature information corresponding to the original detection data.
If the original detection data is single detection data obtained by measuring the liquid to be detected by the liquid detection equipment by using a microwave signal with a single frequency, the single detection data can be processed according to a specified data processing mode to obtain first characteristic information. For example, if the original detection data is an amplitude value of a single reflection signal, normalization processing may be performed on the amplitude value to obtain a normalized value as the first feature information, and if the original detection data is an amplitude value and a phase value of a single reflection signal, a mode value of a vector formed by combining the amplitude value and the phase value may be calculated as the first feature information.
If the original detection data are a plurality of detection data obtained by measuring the liquid to be detected by the liquid detection equipment by using microwave signals with a plurality of frequencies, the statistical characteristics of the original detection data can be calculated and used as first characteristic information; and/or determining the waveform characteristics of the original detection data along with the frequency change of the microwave signal as first characteristic information.
At this time, the first characteristic information includes statistical characteristics of the original detection data, and/or waveform characteristics of the original detection data varying with the frequency of the microwave signal;
the statistical characteristics may include at least one of a mean, a variance, a skewness, a kurtosis, an energy, a root mean square, a square root amplitude, and a peak-to-peak value.
As shown in table 1, the formula for calculation of each statistical feature is:
TABLE 1
Figure BDA0003721199290000061
In each formula in the above table, x i Indicating the ith detection data among the detection data, n indicating the number of the plurality of detection data, x max For the detection data having the largest value among the plurality of detection data, x min The detection data having the smallest value among the plurality of detection data is obtained.
The waveform characteristic of the original detection data changing along with the frequency of the microwave signal is the waveform characteristic of the plurality of detection data changing along with the frequency of the microwave signal. In a simple manner, the plurality of detection data are characterized by a change in frequency of the microwave signal in a coordinate system in which the frequency of the microwave signal is plotted on the abscissa and the numerical value of the detection data is plotted on the ordinate.
When the original detection data includes an amplitude value and/or a phase value of a received reflection signal when the liquid detection device detects the liquid to be detected, if the original detection data only includes the amplitude value or the phase value, the numerical value of the detection data is the amplitude value or the phase value; if the original detection data includes amplitude values and phase values, the values of the detection data may be any one of the amplitude values and the phase values, or the values of the detection data may also be modulus values of vectors combined by the amplitude values and the phase values.
In another implementation manner, in order to further improve the accuracy of the detection result of the liquid detection, when the original detection data is obtained, the original detection data may be subjected to device consistency compensation first, and then the supplemented detection data is subjected to feature extraction, so as to obtain first feature information of the original detection data, where the device consistency compensation is compensation for a difference between the detection data detected by the liquid detection device and reference device, and the reference device is a device for measuring and obtaining the detection data of the first corresponding relationship used in the subsequent steps. Optionally, feature information extraction is performed on the original detection data, and then, based on a third corresponding relationship between preset feature information of the liquid and device compensation information, device compensation information corresponding to the extracted feature information is determined, the determined device compensation information is used for compensating the original detection data, feature information extraction is performed on the compensated original detection data, and the extracted feature information is used as first feature information corresponding to the original detection data. Wherein, the equipment compensation information corresponding to the characteristic information of each liquid is as follows: a reference device and a liquid detection device for detecting difference information between detection data for the liquid.
In this case, the first characteristic information includes a statistical characteristic of the compensated raw detection data, and/or a waveform characteristic of the compensated raw detection data varying with the frequency of the microwave signal.
S202, determining size information of the container according to size detection data detected by the size detection sensor aiming at the container in the liquid detection process;
the size information of the container may be width information of the container, a radius, a circumference, an area of a horizontal section of the container, and the width information may be opening width information of the container, bottom width information, or width information of an arbitrary portion. The size detection sensor may be any sensor capable of measuring information on the size of the container. For example, the size detection sensor may include at least one of a pressure sensor, an ultrasonic sensor, and a displacement sensor. In the case where the liquid detection apparatus includes a plurality of size sensors, the size information may be determined by integrating the size detection data measured by the size sensors, for example, by averaging the size detection data measured by the size sensors to obtain the size information of the container. In the case where the liquid detection apparatus includes only a single size sensor, the size information of the container may be determined using only size detection data measured by the single size sensor. It should be noted that, in the liquid detection process, to improve the detection accuracy, the container needs to be placed in the center of the container carrying platform, for example, the vertical central axis of the container should be located in the center of the container carrying platform.
In one implementation, the size detection sensor includes: the liquid detection device comprises a plurality of pressure sensors which are arranged on different positions on a container bearing platform of the liquid detection device, wherein the arrangement position of each pressure sensor is different from the center of the container bearing platform.
As shown in fig. 3, an embodiment of the present invention provides a schematic structural diagram of a liquid detection apparatus. In the figure, an outer rectangular region represents liquid detection equipment, a concentric circle region represents a container bearing platform of the liquid detection equipment, an inner rectangle on the left side is a transmitting antenna of a microwave signal, an inner rectangle on the right side is a receiving antenna of the microwave signal, a plurality of circular icons on the container bearing platform represent a plurality of pressure sensors deployed at different positions of the container bearing platform, and the deployment positions of the pressure sensors are different from the center distance of the container bearing platform.
At this time, at least one effective pressure sensor may be determined from the pressure sensors according to pressure data detected by the pressure sensors for the container during the liquid detection, where each effective pressure sensor is a pressure sensor whose detected pressure data is greater than a first pressure threshold, and then a pressure sensor whose deployment position is farthest from the center of the container supporting platform is determined from the at least one effective pressure sensor as a container edge pressure sensor, and the size information of the container may be determined based on a distance between the deployment position of the container edge pressure sensor and the center of the container supporting platform. For example, the distance between the deployment position of the container edge pressure sensor and the center of the container carrying platform can be directly used as the size information of the container; or determining the size information of the current container by combining the preset mapping relation between the distance between the deployment position of the container edge pressure sensor and the center of the container bearing platform and the container size information.
The first pressure threshold may be set according to a demand or an actual situation, or may be determined based on a pressure value that can be detected by the pressure sensor when the container is empty, for example, the first pressure threshold may be a pressure value that can be detected by the pressure sensor when the container is empty, or a sum of a pressure value that can be detected by the pressure sensor when the container is empty and a predetermined difference value, which may be set according to a demand and a situation, for example, 10% of a pressure value that can be detected by the pressure sensor when the container is empty, may be used as the first pressure threshold.
For any pressure sensor, when the pressure data of the pressure sensor is greater than the first pressure threshold, the pressure sensor can support the container when the container is placed on the container support platform, so that the container radius of the container is not less than the distance between the pressure sensor and the center of the container support platform; when the pressure data of the pressure sensor is not greater than the first pressure threshold, it indicates that the container is not supported by the pressure sensor when the container is placed on the container support platform, and thus indicates that the container radius of the container is less than the distance between the pressure sensor and the center of the container support platform. Based on this, the present application may determine, from among the at least one effective pressure sensor, the pressure sensor having the deployment location furthest from the center of the container support platform as the container edge pressure sensor, and further determine the dimensional information of the container based on the distance between the deployment location of the container edge pressure sensor and the center of the container support platform.
In one implementation, the size detection sensor includes: the ultrasonic sensor is deployed at the edge of a container bearing platform of the liquid detection equipment and emits ultrasonic waves to the center of the container bearing platform;
at this time, the deployment distance of the ultrasonic sensor and the difference value of the container edge distance detected by the ultrasonic sensor aiming at the container in the liquid detection process can be calculated and used as the size information of the container;
wherein, the deployment distance of the ultrasonic sensor is as follows: the distance between the deployment position of the ultrasonic sensor and the center of the container bearing platform, and the container edge distance is the distance between the deployment position of the ultrasonic sensor and the edge of the container.
The ultrasonic sensor is arranged at the edge of the container bearing platform of the liquid detection equipment and emits ultrasonic waves to the center of the container bearing platform, so that the distance from the ultrasonic sensor to the edge of the container, which is detected by the ultrasonic sensor aiming at the container, is the distance from the ultrasonic sensor to the edge of the container in the liquid detection process, and the difference value between the arrangement distance of the ultrasonic sensor and the distance from the ultrasonic sensor to the edge of the container in the liquid detection process is used as the size information of the container.
In one implementation, the size detection sensor includes: the size detection sensor includes: the displacement sensor comprises a first clamping plate and a second clamping plate, and the first clamping plate and the second clamping plate are used for clamping the container in the liquid detection process;
at this time, in the liquid detection process, the distance between the first clamp plate and the second clamp plate detected by the displacement sensor for the container is determined as the size information of the container.
The distance between the first clamping plate and the second clamping plate, which is detected by the displacement sensor for the container, can be understood as the diameter or the transverse width of the cross section of the container, and can be used as the size information of the container.
S203, determining compensation information corresponding to the first characteristic information and the determined size information by using a first predetermined corresponding relation, wherein the first corresponding relation is used for representing the corresponding relation among the characteristic information of the detection data, the size information of the container and the compensation information of the detection data;
the first corresponding relationship may be a relationship determined based on specified difference information, where the specified difference information is: for each liquid, it is possible to obtain difference information between detection data of the liquid in each container and detection data of the liquid in a container having a specified size.
In one implementation, the first corresponding relationship may include: and the corresponding relation between the third characteristic information of each reference liquid and the second corresponding relation. Wherein, the third characteristic information of each reference liquid is: the liquid detection equipment measures the reference liquid to obtain characteristic information of detection data;
the second corresponding relation corresponding to each piece of third feature information includes: a correspondence between the dimensional information and the compensation information for each container; for example, the detection data measured by the liquid detection device for the reference liquid may be:
Figure BDA0003721199290000101
where N is the number of containers with different size information, w j Indicating the size information of the jth container,
Figure BDA0003721199290000102
for liquid detection equipment to jth containerThe reference liquid in the device and the detected data obtained by detection.
In practical application, it is often necessary to determine a second corresponding relationship corresponding to the third characteristic information of the plurality of reference liquids, and at this time, for each reference liquid, the detection data measured by the liquid detection apparatus for each reference liquid may be expressed as:
Figure BDA0003721199290000103
wherein S is w The detection data measured by the liquid detection equipment for each reference liquid, M is the quantity of the reference liquid, S ci The detection data set measured in containers with different size information aiming at the ith type of liquid by the liquid detection equipment is obtained;
Figure BDA0003721199290000104
wherein,
Figure BDA0003721199290000105
the detection data obtained by the liquid detection device aiming at the ith type liquid measurement in the jth container is obtained.
In this embodiment, the reference container may be any one of the N containers. It may be independent of other containers in the test data set, as described above.
In one example, the reference container is the b-th container of the N containers; in this case, the detection data in the b-th container may be determined for all of the M reference liquids to obtain a set
Figure BDA0003721199290000106
Figure BDA0003721199290000107
Wherein,
Figure BDA0003721199290000108
the measured data for the i-th type of liquid in the b-th container are shown.
It is thus possible to calculate the difference Δ S between the data detected by the reference liquid in each container and the data detected by the reference liquid in the reference container:
Figure BDA0003721199290000111
thus, a second object relationship of the third feature information pair can be determined:
Figure BDA0003721199290000112
the second object relationship corresponding to the third characteristic information of the ith type of reference liquid comprises: delta S i1 ,ΔS i2 ,...,ΔS iN
Figure BDA0003721199290000113
And compensation information corresponding to the dimension information of the j-th container corresponding to the third characteristic information of the i-th type reference liquid.
Optionally, in the second corresponding relationship corresponding to the third characteristic information for each reference liquid, the compensation information corresponding to the size information of each container includes: compensation values corresponding to the first frequencies; wherein each first frequency is a signal frequency of each microwave signal used in liquid detection of the reference liquid; the compensation value corresponding to each first frequency is: the difference between the detection data of the reference liquid in the container by the microwave signal of the first frequency and the detection data of the reference liquid in the reference container by the microwave signal of the first frequency.
Illustratively, the above is when the liquid detection apparatus measures the microwave signal using a plurality of microwave signals at a first frequency
Figure BDA0003721199290000114
Wherein, t kjb The difference between the detection data of the ith type of reference liquid in the jth container and the detection data of the ith type of reference liquid in the b-th container (reference container) by the liquid detection device using the microwave signal of the kth first frequency is shown.
After the first feature information is determined, the compensation information belonging to the first feature information, that is, the compensation information corresponding to the first feature information and the determined size information may be determined using the first correspondence relationship. The compensation information belonging to each feature information is compensation information determined by using compensation information corresponding to the first feature information or compensation information corresponding to feature information matched with the first feature information.
That is, after the first feature information is determined, the compensation information corresponding to the first feature information may be determined using the first correspondence relationship, and the compensation information belonging to the first feature information may be determined using the determined compensation information. For example, the determined compensation information is directly used as the compensation information belonging to the first feature information, or the determined compensation information is adjusted based on a preset adjustment coefficient, so as to obtain the compensation information belonging to the first feature information.
Or after the first feature information is determined, the compensation information corresponding to the feature information matched with the first feature information may be determined by using the first corresponding relationship, and then the compensation information belonging to the first feature information is determined by using the determined compensation information.
S204, compensating the original detection data by using the determined compensation information to obtain target detection data;
after the compensation information corresponding to the first feature information and the determined size information is determined, in order to obtain a more accurate detection result, the determined compensation information may be used to compensate the original detection data, so as to obtain the target detection data.
Alternatively, after the information is compensated, the sum of the original detection data and the determined compensation information may be directly calculated as the target detection data.
In the process of detecting the liquid to be detected by the liquid detection device, if the microwave signal utilized by the liquid detection device for the liquid to be detected is only a partial microwave signal in the multiple microwave signals utilized by the reference device when the liquid is measured by the base station, after the compensation information belonging to the first characteristic information is determined, partial compensation information needs to be determined from the compensation information, and the determined partial compensation information is used for compensating the original detection data to obtain target detection data.
In one implementation, the compensation information corresponding to the size information of each container includes: in the case of the compensation value corresponding to each first frequency, the original detection data may include detection data corresponding to a second frequency.
The second frequency is the signal frequency of the microwave signal utilized when the liquid detection equipment detects the liquid to be detected; the second frequency is the frequency in each first frequency;
illustratively, the first frequency includes a frequency 1, a frequency 2, a frequency 3, and a frequency 4, and the second frequency may be at least one of the frequency 1, the frequency 2, the frequency 3, and the frequency 4, such as the frequency 1, but the second frequency may also be identical to the first frequency, such as the frequency 1, the frequency 2, the frequency 3, and the frequency 4.
In this case, the compensation value belonging to the second frequency may be determined from the determined compensation values corresponding to the respective first frequencies, and the sum of the detection data corresponding to the second frequency and the determined compensation value may be calculated as the compensated detection data corresponding to the second frequency to obtain the target detection data.
It should be emphasized that, in the case that the device consistency compensation has been performed on the original detection data when the first feature information corresponding to the original detection data is acquired, at this time, after the determined compensation information, the original detection data after the device consistency compensation has been performed may be compensated, so that it may be ensured that the result is more accurate.
S205, the type of the liquid is determined based on the target detection data or the second characteristic information of the target detection data.
After the target detection data is obtained, the type of the liquid to be detected is determined by using the target detection data, that is, the type of the liquid is determined based on the target detection data or the second characteristic information of the target detection data. Optionally, the target detection data or the second characteristic information of the target detection data may be classified based on a preset liquid type classification standard, so as to obtain a liquid type of the liquid to be detected.
The liquid type classification criterion may include a correspondence between the liquid type and the detection data or characteristic information of the detection data. For example, when the detection data or the feature information of the detection data is located in the classification zone 1, the type of the liquid is type 1, and when the detection data or the feature information of the detection data is located in the classification zone 2, the type of the liquid is type 2, so that after the target detection data is obtained, the classification zone in which the second feature information corresponding to the target detection data or the target detection data is located can be determined using the correspondence relationship, and the type of the liquid corresponding to the classification zone can be used as the type of the liquid to be measured.
Alternatively, in order to more accurately detect the liquid type of the liquid, the liquid type classification criterion may be a criterion for classifying the liquid by the detection model; the detection model is a classification model obtained by training reference detection data obtained by carrying out liquid detection on different types of liquid based on reference equipment; or the detection model is a classification model obtained by training based on characteristic information of each datum detection data obtained by carrying out liquid detection on different types of liquid by datum equipment. At this time, after the target detection data is obtained, the target detection data or the second characteristic information of the target detection data may be input to the detection model to obtain the liquid type of the liquid to be measured output by the detection model. The process of determining the second characteristic information by the target detection data is the same as or similar to the process of determining the first characteristic information in the original detection data, and is not repeated herein.
In the solution provided in this embodiment, compensation information corresponding to the first characteristic information and the determined size information may be determined based on the first characteristic information corresponding to the original detection data and the size information of the container, so that different compensation information may be used to compensate for the liquid in the container with different size information, thereby improving the accuracy of the detection result of the liquid detection.
As shown in fig. 4, an embodiment of the present invention provides another liquid detection method, where the first corresponding relationship includes: in the case of the correspondence between the third characteristic information of each reference liquid and the second correspondence, step S203 may include steps S2031 to S2033:
s2031, determining at least one matching feature information matched with the first feature information from each third feature information based on the first feature information and the feature distance between the first feature information and the third feature information of each reference liquid;
in this embodiment of the present invention, after the first feature information corresponding to the original detection data is acquired, at least one piece of matching feature information that matches the first feature information may be determined from each piece of third feature information based on a feature distance between the first feature information and the piece of third feature information of each reference liquid.
Optionally, after the first feature information of the original detection data is obtained, feature distances between the first feature information and each piece of third feature information may be respectively calculated, and then based on the calculated feature distances, at least one piece of matching feature information matching the first feature information is determined from each piece of third feature information. For example, each of the third feature information includes feature information 1, feature information 2, feature information 3, and feature information 4, and it is possible to calculate that the feature distance between the first feature information and the feature information 1 is distance 1, the feature distance between the first feature information and the feature information 2 is distance 2, the feature distance between the first feature information and the feature information 3 is distance 3, and the feature distance between the first feature information and the feature information 4 is distance 4, so that at least one matching feature information matching the first feature information can be determined from among the feature information 1, the feature information 2, the feature information 3, and the feature information 4 based on the distances 1, 2, 3, and 4.
Specifically, there are many ways to determine at least one matching feature information matching the first feature information, for example, at least one of the following two ways is included:
in the first matching feature information determining method, feature information having the shortest feature distance to the first feature information may be determined from the third feature information as matching feature information;
in this manner, the third feature information having the shortest feature distance from the first feature information may be selected as the matching feature information.
In the second matching feature information determination method, feature information having a feature distance from the first feature information smaller than a predetermined distance threshold may be determined as matching feature information from among the third feature information.
In this embodiment, the third feature information in which the feature distance between the first feature information is smaller than the predetermined distance threshold is used as the matching feature information. The above-mentioned specified distance threshold may be determined based on practical experience and requirements, and this embodiment of the present invention is not particularly limited in this respect. In this embodiment, at least one matching feature information most similar to the first feature information may be determined from the third feature information.
S2032, according to the corresponding relation between the third characteristic information and the second corresponding relation of each reference liquid, determining the second corresponding relation corresponding to at least one matching characteristic information as the second corresponding relation corresponding to the first characteristic information;
after determining at least one piece of matching characteristic information that matches the first characteristic information, a second corresponding relationship corresponding to the at least one piece of matching characteristic information may be determined according to a corresponding relationship between the third characteristic information and the second corresponding relationship of each reference liquid.
If there are a plurality of pieces of matching feature information, it is necessary to determine, for each piece of matching feature information, compensation information corresponding to the piece of matching feature information according to a correspondence between the third feature information and the second correspondence of each reference liquid.
S2033, for each matching feature information, determining a compensation value corresponding to each first frequency corresponding to the determined size information according to the second corresponding relationship corresponding to the matching feature information, as a compensation value corresponding to the matching feature information and belonging to each first frequency;
the second corresponding relationship corresponding to each piece of characteristic information includes a corresponding relationship between the size information and the compensation information of each container, and the compensation information corresponding to the size information of each container includes: and the compensation value corresponds to each first frequency. Therefore, after the second correspondence relationship corresponding to each matching feature information is determined, the compensation value corresponding to each first frequency corresponding to the size information may be determined as the compensation value belonging to each first frequency corresponding to the matching feature information, from among the size information and the compensation information of each container included in the second object relationship.
In this case, since the original detection data includes detection data corresponding to the second frequency, the step S204 may include steps S2041 to S2044:
s2041, for each matching feature information, selecting a compensation value corresponding to a second frequency from the compensation values corresponding to the first frequencies corresponding to the matching feature information, as a compensation value corresponding to the matching feature information;
in the process of detecting the liquid in the container of the liquid detection device, the microwave signal used by the liquid detection device in the actual application process may be only a part of the microwave signals used by the liquid detection device when measuring the reference liquid, so after each matching characteristic information is determined, the compensation value corresponding to the second frequency may be selected from the compensation values corresponding to the first frequencies corresponding to the matching characteristic information, and used as the compensation value corresponding to the matching characteristic information.
For example, for the matching characteristic information 1, the first frequencies corresponding to the matching characteristic information 1 are frequency 1, frequency 2, frequency 3 and frequency 4, where frequency 1 corresponds to a compensation value 1, frequency 2 corresponds to a compensation value 2, frequency 3 corresponds to a compensation value 3 and frequency 4 corresponds to a compensation value 4. If the second frequency is frequency 1, the selected compensation is a compensation value 1; if the second frequency is multiple, for example, frequency 1 and frequency 2, the selected compensation value includes a compensation value 1 corresponding to frequency 1 and a compensation value 2 corresponding to frequency 2.
S2042, determining the weight of a compensation value corresponding to each piece of matching feature information based on the total amount of each piece of matching feature information or the feature distance between each piece of matching feature information and the first feature information;
specifically, there are many ways to determine the weight of the compensation information corresponding to each matching feature information, for example, at least one of the following two ways is included:
in the first weight determination method, the reciprocal of the total amount of each matching feature information may be calculated as the weight of the compensation information corresponding to each matching feature information;
in brief, if the total number of the matching feature information is 4, the reciprocal of the total number of the matching feature information is 1/4, and the weight of the compensation information corresponding to each matching feature information is 1/4 — 0.25.
In the second weight determination method, for each matching feature information, a ratio of a feature distance between the matching feature information and the first feature information to a total feature distance may be calculated, and based on the calculated ratio, a weight of compensation information corresponding to the matching feature information may be determined.
The above-mentioned manner of determining the weight of the compensation information corresponding to the matching feature information based on the calculated ratio may be multiple, for example, the ratio may be used as the weight of the compensation information corresponding to the matching feature information, or the square, open, three-side, etc. values of the ratio may be calculated as the weight of the compensation information corresponding to the matching feature information.
S2043, according to the weight of the compensation value corresponding to each matching characteristic information, carrying out weighted summation on the compensation value corresponding to each matching characteristic information, and taking the summation as the compensation value belonging to the second frequency;
after determining the weight of the compensation value corresponding to each matching feature information, the compensation values corresponding to each matching feature information may be weighted and summed according to the weight of the compensation value corresponding to each matching feature information, and the weighted sum is used as the compensation value belonging to the second frequency.
For example, the second frequency includes frequency 1, frequency 2, and frequency 3, the compensation value corresponding to the matching characteristic information 1 includes compensation values corresponding to frequency 1, frequency 2, and frequency 3, which are respectively the compensation value 11, and the compensation value 13, and the compensation value corresponding to the matching characteristic information 2 includes compensation values corresponding to frequency 1, frequency 2, and frequency 3, which are respectively the compensation value 21, and the compensation value 23; the weight of the offset value corresponding to the matching feature information 1 is weight 1, and the weight of the offset value corresponding to the matching feature information 2 is weight 2. The complementary value weight 1 × the compensation value 11+ the weight 2 × the compensation value 21 belonging to the frequency 1, and the compensation value belonging to the frequency 2 is the weight 1 × the compensation value 12+ the weight 2 × the compensation value 22; the compensation value belonging to the frequency 3 is 1 × compensation value 13+ 2 × compensation value 23.
S2044, calculating the sum of the detection data corresponding to the second frequency and the determined compensation value as the compensated detection data corresponding to the second frequency to obtain target detection data.
After the compensation values each belonging to the second frequency are obtained, the sum of the detection data corresponding to the second frequency and the determined compensation value may be calculated as compensated detection data corresponding to the second frequency to obtain target detection data.
For example, the second frequency includes frequency 1, frequency 2, and frequency 3. If the detected data corresponding to the frequency 1 is detected data 1, the detected data corresponding to the frequency 2 is detected data 2, the detected data corresponding to the frequency 3 is detected data 3, the compensation value belonging to the frequency 1 is compensation value 1, the compensation value belonging to the frequency 2 is compensation value 2, and the compensation value belonging to the frequency 3 is compensation value 3, then the target detected data is data 1+ compensation value 1 for the frequency 1; for frequency 2, its target detection data is data 2+ compensation value 2; for frequency 3, its target detection data is data 3+ offset 3.
In the scheme provided by the embodiment, the accuracy of the detection result of the liquid detection can be improved, a specific compensation value determining and compensating mode is provided, and an implementation basis is provided for improving the accuracy of the detection result of the liquid detection.
In another liquid detection method provided by the embodiment of the invention, in order to avoid invalid detection and save equipment resources, before the original detection data of the liquid detection equipment for the liquid is obtained, whether the liquid to be detected exists in the container can be determined, and if the liquid exists in the container, the liquid in the container is detected.
There are many ways to determine whether the liquid to be measured is present in the container, for example, at least one of the following two implementations is included:
in a first determination mode, under the condition that a plurality of pressure sensors are deployed on a container bearing platform of liquid detection equipment, if pressure data larger than a second pressure threshold exists in detected pressure data of the plurality of pressure sensors, it is determined that liquid to be detected exists in a container;
the second pressure threshold may be set according to a demand or an actual situation, and may be, for example, 0, or determined based on a pressure value that can be detected by the pressure sensor when the container is empty, for example, the second pressure threshold may be a pressure value that can be detected by the pressure sensor when the container is empty, or a sum of a pressure value that can be detected by the pressure sensor when the container is empty and a predetermined difference value, which may be set according to a demand and a situation, for example, 5% of a pressure value that can be detected by the pressure sensor when the container is empty, may be used as the first pressure threshold.
For any pressure sensor, when the pressure data of the pressure sensor is greater than the pressure data of the second pressure threshold value, the type of the container is greater than the empty weight of the container, so that the liquid in the container can be determined, and at the moment, the liquid in the container can be detected. If the detected pressure data of the pressure sensors are not smaller than the pressure data of the second pressure threshold, it is determined that the liquid to be detected does not exist in the container, and at the moment, the liquid detection device can enter a dormant state until the liquid to be detected exists in the container.
It should be noted that, under the condition that a plurality of pressure sensors are disposed on a container carrying platform of the liquid detection device, the plurality of pressure sensors may also be responsible for determining size information of the container, and at this time, the plurality of pressure sensors disposed on the liquid detection device are used for detecting the size information of the container and also for determining whether liquid exists in the container, so that maximum application of the pressure sensors is realized, and waste is avoided.
Of course, in the case that a plurality of pressure sensors are disposed on the container carrying platform of the liquid detection apparatus, the liquid detection apparatus may also measure the size information of the container by using other size sensors, and at this time, the plurality of pressure sensors disposed on the container carrying platform of the liquid detection apparatus may only be used to determine whether liquid exists in the container.
In a second determination mode, under the condition that the liquid detection device comprises an image acquisition device, acquiring a container image acquired by the image acquisition device aiming at a container; and carrying out liquid identification on the container image, and if the liquid is identified, determining that the liquid to be detected exists in the container.
The image acquisition device can be a camera, and optionally, the visual field range of the camera can cover the container bearing platform, so that the container can be acquired by the camera after the container is placed on the container bearing platform.
After the container image is acquired, a preset liquid identification algorithm may be used to identify whether liquid exists in the container, where the liquid identification algorithm may be any algorithm capable of identifying liquid, such as a liquid identification model, and this is not specifically limited in the embodiment of the present invention.
If the liquid is identified from the container image, it indicates that the liquid to be measured is present in the container, and at this time, the liquid in the container can be detected. If no liquid is identified from the container image, the liquid is not in the container, and at the moment, the liquid detection equipment can enter a dormant state until the liquid to be detected is determined to be in the container.
In the scheme provided by the embodiment, the accuracy of the detection result of the liquid detection can be improved, and meanwhile, before the original detection data of the liquid detection equipment for the liquid detection is obtained, whether the liquid to be detected exists in the container can be determined, so that invalid detection can be avoided.
Corresponding to the liquid detection method provided by the above embodiment of the present invention, as shown in fig. 5, an embodiment of the present invention further provides a liquid detection apparatus applied to a liquid detection device that detects liquid in a container based on a microwave reflection principle, where the liquid detection device includes a size detection sensor, and the apparatus includes:
a data obtaining module 501, configured to obtain original detection data detected by the liquid detection device for the liquid, and determine first feature information corresponding to the original detection data;
a size information determining module 502 for determining size information of the container based on size detection data detected by the size detection sensor for the container during liquid detection;
a supplementary information determining module 503, configured to determine compensation information corresponding to the first feature information and the determined size information by using a predetermined first corresponding relationship, where the first corresponding relationship is used to represent a corresponding relationship between feature information of the detection data, size information of the container, and compensation information of the detection data;
a data supplementing module 504, configured to compensate the original detection data by using the determined compensation information, so as to obtain target detection data;
a kind determining module 505, configured to determine the kind of the liquid according to the target detection data or the second characteristic information of the target detection data.
Optionally, the size detection sensor includes at least one of a pressure sensor, an ultrasonic sensor, and a displacement sensor.
Optionally, the size detection sensor includes: the system comprises a plurality of pressure sensors which are arranged at different positions on a container carrying platform of the liquid detection equipment, wherein the arrangement position of each pressure sensor is different from the center distance of the container carrying platform;
the size information determining module is specifically configured to determine at least one effective pressure sensor from the pressure sensors according to pressure data detected by the pressure sensors for the container in a liquid detection process, where each effective pressure sensor is a pressure sensor whose detected pressure data is greater than a first pressure threshold; determining, from among the at least one effective pressure sensor, a pressure sensor having a deployment location furthest from a center of the vessel support platform as a vessel edge pressure sensor; determining dimensional information for the container based on a distance between a deployment location of the container edge pressure sensor and a center of the container support platform.
Optionally, the size detection sensor includes: the ultrasonic sensor is deployed at the edge of a container bearing platform of the liquid detection equipment and emits ultrasonic waves to the center of the container bearing platform;
the size information determining module is specifically configured to calculate a difference between a deployment distance of the ultrasonic sensor and a container edge distance detected by the ultrasonic sensor for the container in a liquid detection process, and use the difference as the size information of the container; wherein the deployment distance of the ultrasonic sensor is as follows: the distance between the deployment position of the ultrasonic sensor and the center of the container bearing platform, and the container edge distance is the distance between the deployment position of the ultrasonic sensor and the edge of the container.
Optionally, the size detection sensor includes: a displacement sensor; the displacement sensor comprises a first clamping plate and a second clamping plate, and the first clamping plate and the second clamping plate are used for clamping the container in the liquid detection process;
the size information determining module is specifically configured to determine, as the size information of the container, a distance between the first clamping plate and the second clamping plate, which is detected by the displacement sensor for the container, in a liquid detection process.
Optionally, the first corresponding relationship includes: the corresponding relation between the third characteristic information and the second corresponding relation of each reference liquid; the third characteristic information of each reference liquid is: the liquid detection equipment measures the reference liquid to obtain characteristic information of detection data;
the second corresponding relation corresponding to each piece of third feature information includes: a correspondence between the dimensional information and the compensation information for each container; for the third characteristic information of each reference liquid, in a second corresponding relation corresponding to the third characteristic information, the compensation information corresponding to the size information of each container includes: compensation values corresponding to the first frequencies;
wherein each first frequency is a signal frequency of each microwave signal used in liquid detection of the reference liquid; the compensation value corresponding to each first frequency is: the difference between the detection data of the reference liquid in the container by the microwave signal of the first frequency and the detection data of the reference liquid in the reference container by the microwave signal of the first frequency.
Optionally, the original detection data includes detection data corresponding to a second frequency; the second frequency is the signal frequency of the microwave signal utilized when the liquid detection equipment detects the liquid to be detected; the second frequency is the frequency in the first frequencies;
the data supplement module comprises:
a supplement value operator module, configured to determine a compensation value belonging to the second frequency from the determined compensation values corresponding to the first frequencies;
and the data supplement submodule is used for calculating the sum of the detection data corresponding to the second frequency and the determined compensation value, and taking the sum as the compensated detection data corresponding to the second frequency to obtain target detection data.
Optionally, the supplementary information determining module is specifically configured to determine, based on the first feature information and a feature distance between the first feature information and third feature information of each reference liquid, at least one piece of matching feature information that matches the first feature information from each piece of third feature information; determining a second corresponding relation corresponding to the at least one matching characteristic information according to the corresponding relation between the third characteristic information and the second corresponding relation of each reference liquid, and taking the second corresponding relation as a second corresponding relation corresponding to the first characteristic information; for each matching feature information, determining a compensation value corresponding to each first frequency corresponding to the determined size information according to a second corresponding relation corresponding to the matching feature information, and taking the compensation value corresponding to the matching feature information and belonging to each first frequency;
the compensation value operator module is specifically configured to select, for each matching feature information, a compensation value corresponding to the second frequency from compensation values corresponding to the first frequencies corresponding to the matching feature information, and use the compensation value as a compensation value corresponding to the matching feature information; determining the weight of a compensation value corresponding to each matching feature information based on the total amount of each matching feature information or the feature distance between each matching feature information and the first feature information; and according to the weight of the compensation value corresponding to each matching characteristic information, carrying out weighted summation on the compensation value corresponding to each matching characteristic information to serve as the compensation value belonging to the second frequency.
Optionally, the data obtaining module includes:
the characteristic information determining submodule is used for extracting characteristic information of the original detection data and taking the extracted characteristic information as first characteristic information corresponding to the original detection data; or extracting characteristic information of the original detection data; determining equipment compensation information corresponding to the extracted characteristic information based on a third corresponding relation between the preset characteristic information of the liquid and the equipment compensation information; compensating the original detection data by using the determined equipment compensation information; extracting characteristic information of the compensated original detection data, and taking the extracted characteristic information as first characteristic information corresponding to the original detection data; wherein, the device compensation information corresponding to the characteristic information of each liquid is as follows: and the reference device and the liquid detection device are used for detecting the difference information between the detection data of the liquid.
Optionally, the first feature information includes a statistical feature of the original detection data, and/or a waveform feature of the original detection data varying with a frequency of the microwave signal;
or the first characteristic information comprises the statistical characteristics of the compensated original detection data and/or the waveform characteristics of the compensated original detection data along with the frequency change of the microwave signal.
Optionally, the data acquiring module is further configured to determine whether a liquid to be detected exists in the container before the original detection data detected by the liquid detecting apparatus for the liquid is acquired; and if so, carrying out liquid detection on the liquid in the container.
Optionally, the data obtaining module is specifically configured to, in a case that a plurality of pressure sensors are deployed on a container carrying platform of the liquid detection apparatus, determine that liquid to be detected exists in the container if pressure data that is greater than a second pressure threshold exists in pressure data detected by the plurality of pressure sensors; or, in case the liquid detection apparatus comprises an image acquisition device, acquiring a container image acquired by the image acquisition device for the container; and identifying the liquid in the container image, and if the liquid is identified, determining that the liquid to be detected exists in the container.
In the solution provided by this embodiment, because the compensation information corresponding to the first characteristic information and the determined size information can be determined based on the first characteristic information corresponding to the original detection data and the size information of the container, different compensation information can be adopted to compensate for the liquid in the container with different size information, thereby improving the accuracy of the detection result of the liquid detection.
An embodiment of the present invention further provides a liquid detection apparatus, as shown in fig. 6, including a liquid detection position 601, a size detection sensor 602, a processor 603, a communication interface 604, a memory 605, and a communication bus 606, where the liquid detection position 601, the size detection sensor 602, the processor 603, and the communication interface 604, the memory 605 completes mutual communication through the communication bus 606,
the liquid detection position 601 is used for bearing a container containing liquid to be detected and detecting the liquid to be detected;
a size detection sensor 602 for detecting size information of a container containing a liquid to be measured;
a memory 605 for storing a computer program;
the processor 603 is configured to implement the following steps when executing the program stored in the memory 605:
acquiring original detection data detected by the liquid detection equipment aiming at the liquid, and determining first characteristic information corresponding to the original detection data;
determining size information of the container based on size detection data detected by the size detection sensor for the container during liquid detection;
determining compensation information corresponding to the first characteristic information and the determined size information by using a predetermined first corresponding relation, wherein the first corresponding relation is used for representing the corresponding relation among the characteristic information of the detection data, the size information of the container and the compensation information of the detection data;
compensating the original detection data by using the determined compensation information to obtain target detection data;
determining the kind of the liquid based on the target detection data or second characteristic information of the target detection data.
In the solution provided in this embodiment, compensation information corresponding to the first characteristic information and the determined size information may be determined based on the first characteristic information corresponding to the original detection data and the size information of the container, so that different compensation information may be used to compensate for the liquid in the container with different size information, thereby improving the accuracy of the detection result of the liquid detection.
The communication bus mentioned in the liquid detection apparatus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this is not intended to represent only one bus or type of bus.
The communication interface is used for communication between the liquid detection device and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program is used for implementing the steps of any one of the above liquid detection methods when executed by a processor.
In yet another embodiment provided by the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the liquid detection methods of the above embodiments.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus, the liquid detection device, the computer-readable storage medium, and the computer program embodiment, since they are substantially similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the partial description of the method embodiment.
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. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (15)

1. A liquid detection method applied to a liquid detection device for detecting liquid in a container based on the principle of microwave reflection, the liquid detection device including a size detection sensor, the method comprising:
acquiring original detection data detected by the liquid detection equipment aiming at the liquid, and determining first characteristic information corresponding to the original detection data;
determining size information of the container based on size detection data detected by the size detection sensor for the container during liquid detection;
determining compensation information corresponding to the first characteristic information and the determined size information by using a predetermined first corresponding relation, wherein the first corresponding relation is used for representing the corresponding relation among the characteristic information of the detection data, the size information of the container and the compensation information of the detection data;
compensating the original detection data by using the determined compensation information to obtain target detection data;
determining the type of the liquid based on the target detection data or second characteristic information of the target detection data.
2. The method of claim 1, wherein the size detection sensor comprises at least one of a pressure sensor, an ultrasonic sensor, and a displacement sensor.
3. The method of claim 2, wherein the size detection sensor comprises: the system comprises a plurality of pressure sensors which are arranged at different positions on a container carrying platform of the liquid detection equipment, wherein the arrangement position of each pressure sensor is different from the center distance of the container carrying platform;
the determining the size information of the container according to the size detection data detected by the size detection sensor for the container in the liquid detection process comprises:
determining at least one effective pressure sensor from the pressure sensors according to pressure data detected by the pressure sensors aiming at the container in the liquid detection process, wherein each effective pressure sensor is a pressure sensor with the detected pressure data being larger than a first pressure threshold value;
determining, from the at least one effective pressure sensor, a pressure sensor having a deployment location furthest from a center of the vessel support platform as a vessel rim pressure sensor;
determining dimensional information for the container based on a distance between a deployment location of the container edge pressure sensor and a center of the container support platform.
4. The method of claim 2, wherein the size detection sensor comprises: the ultrasonic sensor is deployed at the edge of a container bearing platform of the liquid detection equipment and emits ultrasonic waves to the center of the container bearing platform;
the determining the size information of the container according to the size detection data detected by the size detection sensor for the container in the liquid detection process comprises:
calculating a difference value between the deployment distance of the ultrasonic sensor and the container edge distance detected by the ultrasonic sensor for the container in the liquid detection process as size information of the container;
wherein the deployment distance of the ultrasonic sensor is as follows: the distance between the deployment position of the ultrasonic sensor and the center of the container bearing platform, and the container edge distance is the distance between the deployment position of the ultrasonic sensor and the edge of the container.
5. The method of claim 2, wherein the size detection sensor comprises: a displacement sensor; the displacement sensor comprises a first clamping plate and a second clamping plate, and the first clamping plate and the second clamping plate are used for clamping the container in the liquid detection process;
the determining the size information of the container according to the size detection data detected by the size detection sensor for the container in the liquid detection process comprises:
during the liquid detection, the distance between the first clamping plate and the second clamping plate detected by the displacement sensor for the container is determined as the size information of the container.
6. The method according to any one of claims 1-5, wherein the first correspondence comprises: a correspondence between the third characteristic information of each reference liquid and the second correspondence; the third characteristic information of each reference liquid is: the liquid detection equipment measures the reference liquid to obtain characteristic information of detection data;
the second corresponding relation corresponding to each piece of third feature information includes: a correspondence between the dimensional information and the compensation information for each container; for the third characteristic information of each reference liquid, in the second corresponding relationship corresponding to the third characteristic information, the compensation information corresponding to the size information of each container includes: compensation values corresponding to the first frequencies;
wherein each first frequency is a signal frequency of each microwave signal used in liquid detection of the reference liquid; the compensation value corresponding to each first frequency is: the difference between the detection data of the reference liquid in the container by the microwave signal of the first frequency and the detection data of the reference liquid in the reference container by the microwave signal of the first frequency.
7. The method of claim 6, wherein the raw detection data comprises detection data corresponding to a second frequency; the second frequency is the signal frequency of the microwave signal utilized when the liquid detection equipment detects the liquid to be detected; the second frequency is the frequency in the first frequencies;
the compensating the original detection data by using the determined compensation information to obtain target detection data includes:
determining a compensation value belonging to the second frequency from the determined compensation values corresponding to the first frequencies;
and calculating the sum of the detection data corresponding to the second frequency and the determined compensation value, and taking the sum as the compensated detection data corresponding to the second frequency to obtain target detection data.
8. The method of claim 7, wherein determining compensation information corresponding to the first characteristic information and the determined size information using a predetermined first correspondence relationship comprises:
determining at least one matching feature information matched with the first feature information from each third feature information based on the first feature information and a feature distance between the first feature information and the third feature information of each reference liquid;
determining a second corresponding relation corresponding to the at least one matching characteristic information according to the corresponding relation between the third characteristic information and the second corresponding relation of each reference liquid, and taking the second corresponding relation as a second corresponding relation corresponding to the first characteristic information;
for each matching feature information, determining a compensation value corresponding to each first frequency corresponding to the determined size information according to a second corresponding relation corresponding to the matching feature information, and taking the compensation value corresponding to the matching feature information and belonging to each first frequency;
the determining, from the determined compensation values corresponding to the first frequencies, a compensation value belonging to the second frequency includes:
for each matching characteristic information, selecting a compensation value corresponding to the second frequency from compensation values corresponding to the first frequencies corresponding to the matching characteristic information as a compensation value corresponding to the matching characteristic information;
determining the weight of a compensation value corresponding to each matching feature information based on the total amount of each matching feature information or the feature distance between each matching feature information and the first feature information;
and according to the weight of the compensation value corresponding to each matching characteristic information, carrying out weighted summation on the compensation value corresponding to each matching characteristic information to serve as the compensation value belonging to the second frequency.
9. The method according to any one of claims 1-5, wherein the determining the first feature information corresponding to the raw detection data comprises:
extracting feature information of the original detection data, and taking the extracted feature information as first feature information corresponding to the original detection data; or,
extracting characteristic information of the original detection data; determining equipment compensation information corresponding to the extracted characteristic information based on a third corresponding relation between the preset characteristic information of the liquid and the equipment compensation information; compensating the original detection data by using the determined equipment compensation information; extracting characteristic information of the compensated original detection data, and taking the extracted characteristic information as first characteristic information corresponding to the original detection data; wherein, the device compensation information corresponding to the characteristic information of each liquid is as follows: and the reference device and the liquid detection device are used for detecting the difference information between the detection data of the liquid.
10. The method of claim 9, wherein the first characteristic information comprises statistical characteristics of the raw detection data, and/or waveform characteristics of the raw detection data as a function of frequency of the microwave signal;
or the first characteristic information comprises statistical characteristics of the compensated original detection data and/or waveform characteristics of the compensated original detection data along with the frequency change of the microwave signal.
11. The method of claim 1, wherein prior to said obtaining raw detection data detected by said liquid detection device for said liquid, said method further comprises:
determining whether a liquid to be tested is present in the container;
and if so, carrying out liquid detection on the liquid in the container.
12. The method of claim 11, wherein said determining whether the liquid to be tested is present in the container comprises:
under the condition that a plurality of pressure sensors are deployed on a container bearing platform of the liquid detection equipment, if pressure data larger than a second pressure threshold value exists in the detected pressure data of the plurality of pressure sensors, determining that liquid to be detected exists in the container;
or, in case the liquid detection apparatus comprises an image acquisition device, acquiring a container image acquired by the image acquisition device for the container; and performing liquid identification on the container image, and if liquid is identified, determining that the liquid to be detected exists in the container.
13. A liquid detection device, characterized in that, be applied to the liquid detection equipment who carries out the interior liquid detection of container based on microwave reflection principle, liquid detection equipment includes size detection sensor, the device includes:
the data acquisition module is used for acquiring original detection data detected by the liquid detection equipment aiming at the liquid and determining first characteristic information corresponding to the original detection data;
the size information determining module is used for determining the size information of the container according to the size detection data detected by the size detection sensor aiming at the container in the liquid detection process;
the supplementary information determining module is used for determining compensation information corresponding to the first characteristic information and the determined size information by utilizing a first predetermined corresponding relation, wherein the first corresponding relation is used for representing the corresponding relation among the characteristic information of the detection data, the size information of the container and the compensation information of the detection data;
the data supplement module is used for compensating the original detection data by using the determined compensation information to obtain target detection data;
and the type determining module is used for determining the type of the liquid according to the target detection data or the second characteristic information of the target detection data.
14. The liquid detection equipment is characterized by comprising a liquid detection position, a size detection sensor, a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the liquid detection position is used for bearing a container containing liquid to be detected and detecting the liquid to be detected;
a size detection sensor for detecting size information of a container containing a liquid to be measured;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-12 when executing a program stored in the memory.
15. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-12.
CN202210751660.8A 2022-06-29 2022-06-29 Liquid detection method and device and liquid detection equipment Pending CN115096914A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210751660.8A CN115096914A (en) 2022-06-29 2022-06-29 Liquid detection method and device and liquid detection equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210751660.8A CN115096914A (en) 2022-06-29 2022-06-29 Liquid detection method and device and liquid detection equipment

Publications (1)

Publication Number Publication Date
CN115096914A true CN115096914A (en) 2022-09-23

Family

ID=83295096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210751660.8A Pending CN115096914A (en) 2022-06-29 2022-06-29 Liquid detection method and device and liquid detection equipment

Country Status (1)

Country Link
CN (1) CN115096914A (en)

Similar Documents

Publication Publication Date Title
CN102499625A (en) Infrared remote control vision automatic measuring device and testing device
EP2937689A1 (en) Adaptive baseline damage detection system and method
CN107621279A (en) Data processing method, sensing data calibration method and device
CN113971653A (en) Target detection method, device and equipment for remote sensing image and storage medium
CN106643965A (en) Method for accurately recognizing liquid level by template matching
Villasante et al. Measurement errors in the use of smartphones as low-cost forestry hypsometers
CN103925878A (en) Hole set detection method and system based on Hough round convolution transformation algorithm
WO2023093087A1 (en) Image recognition-based coal conveying amount monitoring method and apparatus, device, and storage medium
US20200184147A1 (en) Method and apparatus for displaying function parameter in spreadsheet, and electronic device
CN108152458A (en) Gas detection method and device
CN115096914A (en) Liquid detection method and device and liquid detection equipment
CN107300562A (en) A kind of X-ray lossless detection method of measuring relay finished product contact spacing
CN109683028A (en) A kind of electrostatic detection methods and device
Chen et al. Vertical tank capacity measurement based on Monte Carlo method
CN113358226B (en) Temperature measuring method, electronic equipment and storage medium
CN117233257A (en) Detection method, detection device, detection equipment and storage medium
CN108254038A (en) A kind of crude oil storage tank oil-water interfaces data go pseudo- and level gauging computational methods
CN106841522A (en) A kind of gas monitoring method
CN212134943U (en) Ship classification detection system based on radar images
CN110007068B (en) Urine leakage detection method
CN113989513A (en) Method for recognizing reading of square pointer type instrument
CN115130586A (en) Training method of liquid detection model, liquid detection method and device
JP2021163161A (en) Monitoring device, monitoring system, monitoring method, and monitoring program
CN115343769A (en) Liquid detection method and device and liquid detection equipment
CN116124664B (en) Flotation foam measurement equipment and calibration method

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