Liquid detection method, device and liquid detection equipment

By determining the original detection data characteristic information of the liquid detection equipment and applying appropriate compensation information, the inaccuracy caused by the differences in detection data between different devices is solved, and the accuracy of liquid detection is improved.

CN115343769BActive Publication Date: 2025-02-11HANGZHOU RAYIN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210764937.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2025-02-11
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

Different liquid detection equipment may have different detection data on the same liquid, resulting in inaccurate detection results.

Method used

By determining the characteristic information of the original detection data, and determining the appropriate compensation information based on the correspondence between the preset liquid characteristic information and the compensation information, compensating the original detection data, and obtaining more accurate target detection data.

Benefits of technology

The accuracy of the detection results of liquid detection is improved, ensuring that more suitable compensation information can be used for different liquids, thereby reducing the error of the detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115343769B_ABST
    Figure CN115343769B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a liquid detection method, device and liquid detection equipment, which can be applied to the field of security inspection technology. The method includes: determining the first characteristic information of the original detection data, wherein the original detection data is the detection data obtained by the liquid detection equipment for the liquid to be detected; based on the correspondence between the preset characteristic information of the liquid and the compensation information, determining the compensation information belonging to the first characteristic information; wherein the compensation information corresponding to the characteristic information of each liquid is: the difference information between the detection data measured by the reference equipment and the liquid detection equipment for the liquid; using the determined compensation information to compensate the original detection data to obtain the target detection data; based on the preset liquid type classification standard, classifying and processing the target detection data or the second characteristic information of the target detection data to obtain the liquid type of the liquid to be detected. Through this scheme, the accuracy of the detection result of liquid detection can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of security inspection technology and data processing technology, and in particular to a liquid detection method, device and liquid detection equipment. Background Art

[0002] Liquid detection refers to detecting the liquid category of the liquid to be tested. Exemplarily, the liquid category can be a natural property category, such as distilled water, ethanol, soda water, etc.; or, the liquid category can also be a danger level category, such as non-hazardous, dangerous, etc. Liquid detection is usually achieved by microwave reflection method. Specifically, the liquid detection equipment transmits microwaves to the liquid to be tested to obtain the detection data of the liquid to be tested, and then uses the preset liquid type classification standard to process the detection data to obtain the detection result of the liquid to be tested. Generally speaking, the above-mentioned liquid type classification standard is determined based on the detection data collected by the reference equipment.

[0003] Due to the consistency problem of different liquid detection devices, that is, the detection data collected by different liquid detection devices for the same liquid may be different, the detection data collected by the liquid detection device may be different from the detection data collected by the reference device, resulting in inaccurate detection results of the liquid to be tested.

[0004] In order to reduce the impact of inconsistency on the test results, in the related technology, after the test data of the liquid to be tested is obtained based on the liquid detection device, the test data is compensated using a fixed compensation value pre-set for the liquid detection device, and the compensated test data is processed using a preset liquid type classification standard to obtain the test result.

[0005] In the related art, the detection data of different liquids detected by the same liquid detection device are all compensated using a fixed compensation value, and the differences between different liquids are also large, so the final detection result is still inaccurate. Summary of the invention

[0006] The purpose of the embodiments of the present invention is to provide a liquid detection method, device and liquid detection equipment to improve the accuracy of the detection results of liquid detection. The specific technical solution is as follows:

[0007] In a first aspect, an embodiment of the present invention provides a liquid detection method, which is applied to a liquid detection device that performs liquid detection based on the microwave reflection principle, and the method includes:

[0008] Determine first characteristic information of original detection data, wherein the original detection data is detection data obtained by the liquid detection device for measuring the liquid to be detected, and different characteristic information is used to characterize different detection data;

[0009] Based on the correspondence between the preset characteristic information of the liquid and the compensation information, the compensation information belonging to the first characteristic information is determined; wherein the compensation information corresponding to the characteristic information of each liquid is: the difference information between the detection data measured by the reference device and the liquid detection device for the liquid;

[0010] Compensating the original detection data using the determined compensation information to obtain target detection data;

[0011] Based on a preset liquid type classification standard, the target detection data or the second characteristic information of the target detection data is classified and processed to obtain the liquid type of the liquid to be tested; wherein the liquid type classification standard is determined by the benchmark detection data obtained by using the benchmark device to perform liquid detection on different liquid types.

[0012] In a second aspect, an embodiment of the present invention provides a liquid detection device, which is applied to a liquid detection device for liquid detection based on the microwave reflection principle, and the device includes:

[0013] A characteristic information determination module, used to determine first characteristic information of original detection data, wherein the original detection data is detection data obtained by the liquid detection device for measuring the liquid to be detected, and different characteristic information is used to characterize different detection data;

[0014] A compensation information determination module, used to determine the compensation information belonging to the first characteristic information based on the correspondence between the characteristic information of the preset liquid and the compensation information; wherein the compensation information corresponding to the characteristic information of each liquid is: the difference information between the detection data measured by the reference device and the liquid detection device for the liquid;

[0015] A data compensation module, used to compensate the original detection data using the determined compensation information to obtain target detection data;

[0016] A liquid classification module is used to classify the target detection data or the second characteristic information of the target detection data based on a preset liquid type classification standard to obtain the liquid type of the liquid to be tested; wherein the liquid type classification standard is determined by the benchmark detection data obtained by using the benchmark device to perform liquid detection on different liquid types.

[0017] In a third aspect, an embodiment of the present invention provides a liquid detection device, including a liquid detection position, a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0018] A liquid detection position, used to carry a container containing a liquid to be detected and to detect the liquid to be detected;

[0019] Memory, used to store computer programs;

[0020] The processor is used to implement any method step described in the first aspect when executing the program stored in the memory.

[0021] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any method step described in the first aspect is implemented.

[0022] Beneficial effects of the embodiments of the present invention:

[0023] A liquid detection method, device and liquid detection equipment provided by an embodiment of the present invention can determine the first characteristic information of the original detection data, and based on the correspondence between the characteristic information of the preset liquid and the compensation information, determine the compensation information belonging to the first characteristic information, and use the determined compensation information to compensate the original detection data to obtain the target detection data, and classify the target detection data or the second characteristic information of the target detection data based on the preset liquid type classification standard to obtain the liquid type of the liquid to be detected. Since the compensation information belonging to the characteristic information can be determined based on the characteristic information of the detection data, compensation information that is more suitable for the liquid can be used for compensation for different liquids, thereby improving the accuracy of the detection results of the liquid detection.

[0024] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0026] Figure 1 A schematic diagram of transmitting and receiving a microwave signal;

[0027] Figure 2 A flow chart of a liquid detection method provided by an embodiment of the present invention;

[0028] Figure 3 Another flow chart of the liquid detection method provided by an embodiment of the present invention;

[0029] Figure 4A schematic diagram of the structure of a liquid detection device provided by an embodiment of the present invention;

[0030] Figure 5 This is a schematic diagram of the structure of a liquid detection device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field based on this application belong to the scope of protection of the present invention.

[0032] In order to more clearly illustrate the solution provided by the embodiment of the present invention, the microwave reflection method is first briefly introduced.

[0033] like Figure 1 The figure shows a schematic diagram of transmitting and receiving a microwave signal. The liquid measuring device includes a radio frequency chip, a transmitting antenna and a receiving antenna. The radio frequency chip controls the transmitting antenna to transmit a microwave signal, and the receiving antenna receives the microwave signal returned by the liquid to be measured.

[0034] First, the liquid detection process of the reference device is analyzed. Assume that the signal input from the RF chip of the reference device to the transmitting antenna is S in , the signal transmitted by the transmitting antenna of the reference device is f1(S in ), after the transmitted signal is reflected by the liquid to be tested, the reflected signal becomes kf1(S in ), where k is the comprehensive reflection coefficient of the liquid and the mold. The receiving antenna of the liquid detection device receives the signal kf1(S in ), the output signal is f2(kf1(S in )). Since the reference signal S ref is a known quantity, so the reflected signal received by the reference device is f3(f2(kf1(S in ))-S ref ).

[0035] The reference device receives the reflected signal f3(f2(kf1(S in ))-S ref ) can be used to calculate f3(f2(kf1(S in ))-S ref ) to obtain the test data of the liquid to be tested, such as f3(f2(kf1(S in ))-S ref ) as the detection data of the liquid to be tested.

[0036] In order to more clearly explain the equipment consistency problem that the microwave reflection method needs to solve, the detection process of other liquid detection equipment is analyzed. Similar to the benchmark equipment, it is assumed that the RF chip input signal of the liquid detection equipment is S' in , the signal transmitted by the transmitting antenna of the liquid detection equipment is f 11 (S' in ), after the transmitted signal is reflected by the liquid to be tested, the reflected signal becomes kf 11 (S' in ). The receiving antenna of the liquid detection device receives the signal kf reflected by the liquid 11 (S' in ), the output signal becomes f 21 (kf 11 (S' in )). Since the reference signal S ref is a known quantity, so the output signal received by the liquid detection device (called the reflection signal in the embodiment of the present invention) is f3(f 21 (kf 11 (S' in ))-S ref ).

[0037] From the above analysis, we can know that for the same liquid, with different transmitting antennas and receiving antennas, the difference between the signals detected by the liquid detection device and the reference device is constant at ΔS=f3(f2(kf1(S in ))-S ref )-f3(f 21 (kf 11 (S' in ))-S ref ), it can be seen that the difference between the liquid detection device and the reference device is the difference between f1 and f 11 The difference between f2 and f 21 This is determined by the difference in the liquid detection equipment, so it is necessary to compensate for the consistency of the equipment.

[0038] In order to improve the accuracy of the detection results of liquid detection, the embodiments of the present invention provide a liquid detection method, a liquid detection device and a liquid detection equipment.

[0039] It should be noted that the embodiments of the present invention can be applied to liquid detection equipment that detects liquid based on the microwave reflection principle. In this case, after detecting the detection data of the liquid to be detected, the liquid detection equipment can directly determine the detection result based on the detection data. In addition, the liquid detection method provided by the embodiments of the present invention can be implemented by software, hardware, or a combination of software and hardware.

[0040] The liquid detection method provided in the embodiment of the present invention is applied to a liquid detection device for liquid detection based on the microwave reflection principle, and may include:

[0041] Determine first characteristic information of original detection data, wherein the original detection data is detection data obtained by the liquid detection device for measuring the liquid to be detected, and different characteristic information is used to characterize different detection data;

[0042] Based on the correspondence between the preset characteristic information of the liquid and the compensation information, the compensation information belonging to the first characteristic information is determined; wherein the compensation information corresponding to the characteristic information of each liquid is: the difference information between the detection data measured by the reference device and the liquid detection device for the liquid;

[0043] Compensating the original detection data using the determined compensation information to obtain target detection data;

[0044] Based on a preset liquid type classification standard, the target detection data or the second characteristic information of the target detection data is classified and processed to obtain the liquid type of the liquid to be tested; wherein the liquid type classification standard is determined by the benchmark detection data obtained by using the benchmark device to perform liquid detection on different liquid types.

[0045] In the solution provided in this embodiment, since the compensation information belonging to the characteristic information can be determined based on the characteristic information of the detection data, compensation information more suitable for the liquid can be used for compensation for different liquids, thereby improving the accuracy of the detection results of the liquid detection.

[0046] The liquid detection method provided by the embodiment of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0047] like Figure 2 As shown, an embodiment of the present invention provides a liquid detection method, including steps S201-S204, wherein:

[0048] S201, determining first characteristic information of original detection data;

[0049] The original detection data is the detection data obtained by the liquid detection device for the liquid to be tested, and different characteristic information is used to characterize different detection data. In simple terms, for any two detection data, when the characteristic information of the two detection data is different, it indicates that the two detection data are different, for example, the detection data obtained for different types of liquid detection. It should be emphasized that in the present embodiment, when the characteristic information of any two detection data is the same, it does not mean that the two detection data are necessarily the same, it only indicates that the liquids to which the two detection data belong have the same or similar properties.

[0050] The above detection data may be the detection data obtained by the liquid detection device using a single frequency microwave signal to measure the liquid to be detected. For example, the liquid detection device uses a 10 Hz microwave signal to measure the liquid to be detected, and the reflection signal obtained is f 31 , and the liquid detection device can convert the reflected signal f 31 The amplitude value and / or phase value are used as the detection data. In simple terms, the liquid detection device receives the reflected signal f 31 After that, the reflected signal f can be determined 31 If the amplitude value or phase value is determined, the determined amplitude value and phase value can be used as the detection data; if the amplitude value and phase value are determined, the amplitude value and phase value can 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 vector z=c+di, where the reflection signal f 31 The amplitude value is Reflected signal f 31 The phase value of the reflected signal is arctan(d / c). 31 The frequency of the reflected signal f 31 The microwave signal is decomposed into a combination of multiple frequency signals, and then for each frequency signal, the above-mentioned calculation method of the single-frequency microwave signal can be used to determine the detection data of the microwave signal corresponding to each frequency.

[0051] For the liquid detection device, the liquid detection device can also use microwave signals of multiple frequencies to detect the liquid to be detected. At this time, the detection data obtained by the liquid detection device for the liquid to be detected can include the detection data corresponding to each frequency. Exemplarily, the liquid detection device can use microwave signals of 10HZ, 20HZ, and 30HZ to detect the liquid to be detected, and obtain detection data 1, detection data 2, and detection data 3 respectively. Then the detection data obtained by the above liquid detection device can include detection data 1, detection data 2, and detection data 3.

[0052] After the liquid detection device measures the liquid to be detected and obtains the original detection data, the first characteristic information of the original detection data can be determined.

[0053] If the original detection data is a single detection data obtained by the liquid detection device using a single frequency microwave signal to measure the liquid to be detected, the single detection data can be processed according to the specified data processing method to obtain the first characteristic information. For example, if the original detection data is the amplitude value of a single reflection signal, the amplitude value can be normalized to obtain a normalized value as the first characteristic information; if the original detection data is the amplitude value and phase value of a single reflection signal, the modulus value of the vector composed of the amplitude value and the phase value can be calculated as the first characteristic information.

[0054] If the original detection data are multiple detection data obtained by the liquid detection equipment using microwave signals of multiple frequencies to measure the liquid to be tested, the statistical characteristics of the original detection data can be calculated as the first characteristic information; and / or, the waveform characteristics of the original detection data that change with the frequency of the microwave signal can be determined as the first characteristic information.

[0055] The statistical characteristics may include at least one of mean, variance, skewness, kurtosis, energy, root mean square, root square amplitude and peak-to-peak value.

[0056] As shown in Table 1, the calculation formulas for each statistical feature are:

[0057] Table 1

[0058]

[0059]

[0060] In the formulas in the table above, x i represents the i-th detection data in the detection data, n represents the number of multiple detection data, x max is the detection data with the largest value among multiple detection data, x min It is the detection data with the smallest value among multiple detection data.

[0061] The waveform characteristics of the above original detection data changing with the frequency of the microwave signal are the waveform characteristics of the multiple detection data changing with the frequency of the microwave signal. In simple terms, in a coordinate system with the frequency of the microwave signal as the horizontal axis and the value of the detection data as the vertical axis, the characteristics of the above multiple detection data changing with the frequency of the microwave signal.

[0062] Among them, in the case where the original detection data includes the amplitude value and / or phase value of the reflected signal received when the liquid detection device detects the liquid to be tested, if the original detection data only includes the amplitude value or the phase value, then the value of the above-mentioned detection data is the amplitude value or the phase value; if the original detection data includes the amplitude value and the phase value, then the value of the above-mentioned detection data can be any one of the amplitude value and the phase value, or the value of the detection data can also be the modulus value of the vector composed of the amplitude value and the phase value.

[0063] S202, determining compensation information belonging to the first characteristic information based on a preset correspondence between characteristic information of the liquid and compensation information;

[0064] The compensation information corresponding to the characteristic information of each liquid is: the difference information between the detection data measured by the reference device and the liquid detection device for the liquid. In other words, the compensation information corresponding to the characteristic information of each liquid is the difference information between the first detection data and the second detection data, the first detection data is the detection data obtained by the reference device for measuring the liquid, and the second detection data is the detection data obtained by the liquid detection device for measuring the liquid.

[0065] In one implementation, the compensation information corresponding to the characteristic information of each liquid includes compensation values ​​corresponding to each first frequency; wherein each first frequency is the signal frequency of the microwave signal used by the liquid detection device when performing liquid detection on a reference liquid; the compensation value corresponding to the first frequency is: the difference between the detection data obtained by the liquid detection device and the reference device when performing liquid detection on the reference liquid using the microwave signal of the first frequency, respectively.

[0066] In simple terms, the compensation value corresponding to each first frequency is: the difference between the detection data obtained by respectively measuring the reference liquid using the reference device and the liquid detection device and detecting the liquid using the microwave signal of the first frequency.

[0067] Exemplarily, the detection data obtained by the reference device for different types of reference liquids can be expressed as:

[0068]

[0069] Where m is the number of different types of reference liquids, A i is the test data obtained by the reference device for the i-th reference liquid. i =[A i1 ,A i2 ,...,A in ], where n is the number of first frequencies, A ijThe reference device uses the j-th microwave signal of the first frequency to measure the ith reference liquid and obtains the detection data.

[0070] Similarly, the test data obtained by the liquid testing equipment for different types of reference liquids can be expressed as:

[0071]

[0072] Among them, A' i It is the detection data obtained by the liquid detection device for measuring the i-th reference liquid.

[0073] A' i =[A' i1 ,A' i2 ,...,A' in ], where A' ij The detection data is obtained by the liquid detection device measuring the ith reference liquid using the jth microwave signal of the first frequency.

[0074] After obtaining S and S', we can calculate:

[0075]

[0076] Among them, t i represents the difference between the test data measured by the reference device for the i-th reference liquid and the test data measured by the liquid detection device for the i-th reference liquid. i =[t i1 ,t i2 ,...,t in ], where t ij It represents the difference between the detection data obtained by the reference device using the microwave signal of the jth first frequency to measure the i-th reference liquid and the detection data obtained by the liquid detection device using the microwave signal of the jth first frequency to measure the i-th reference liquid, that is, the compensation value corresponding to the j-th first frequency.

[0077] After determining the first characteristic information, the above correspondence relationship can be used to determine compensation information belonging to the first characteristic information, wherein the compensation information belonging to each characteristic information is compensation information determined by using compensation information corresponding to the first characteristic information or compensation information corresponding to characteristic information matching the first characteristic information.

[0078] That is, after determining the first characteristic information, the above correspondence relationship can be used to determine the compensation information corresponding to the first characteristic information, and then the determined compensation information can be used to determine the compensation information belonging to the first characteristic information. For example, the determined compensation information can be directly used as the compensation information belonging to the first characteristic information, or the determined compensation information can be adjusted based on a preset adjustment coefficient to obtain the compensation information belonging to the first characteristic information.

[0079] Alternatively, after determining the first feature information, the above correspondence relationship may be used to determine compensation information corresponding to the feature information matching the first feature information, and then the determined compensation information may be used. The details will be described in detail in subsequent embodiments and will not be repeated here.

[0080] S203, compensating the original detection data using the determined compensation information to obtain target detection data;

[0081] After the compensation information belonging to the first characteristic information is determined, in order to make the detection result more accurate, the original detection data can be compensated using the determined compensation information to obtain the target detection data.

[0082] During the process of detecting the liquid to be detected by the liquid detection device, if the microwave signal used by the liquid detection device for the liquid to be detected is the same as the microwave signal used by the reference device when measuring the reference liquid, for example, both use microwave information of the same frequency to measure the liquid, then after determining the compensation information belonging to the first characteristic information, the sum of the original detection data and the determined compensation information can be directly calculated as the target detection data.

[0083] During the process of detecting the liquid to be detected by the liquid detection device, if the microwave signal used by the liquid detection device for the liquid to be detected is only a part of the multiple microwave signals used by the reference device when measuring the reference liquid, then after determining the compensation information belonging to the first characteristic information, it is necessary to determine part of the compensation information from the compensation information, and use the determined part of the compensation information to compensate the original detection data to obtain the target detection data.

[0084] In one implementation, when the compensation information corresponding to the characteristic information of each liquid includes compensation values ​​corresponding to each first frequency, the original detection data may include detection data corresponding to the second frequency.

[0085] The second frequency is the signal frequency of the microwave signal used by the liquid detection device when performing liquid detection on the liquid to be detected. The second frequency is a frequency among the first frequencies. When detecting the liquid, multiple frequencies can be used, so the compensation information belonging to the first characteristic information can include compensation values ​​belonging to the first frequencies.

[0086] Exemplarily, the first frequency includes frequency 1, frequency 2, frequency 3 and frequency 4, and the second frequency can be at least one of frequency 1, frequency 2, frequency 3 and frequency 4, such as frequency 1. Of course, the second frequency can also be exactly the same as the first frequency, such as frequency 1, frequency 2, frequency 3 and frequency 4.

[0087] At this time, the compensation value belonging to the second frequency can be selected from the determined compensation values ​​corresponding to the first frequencies, and then the sum of the detection data corresponding to the second frequency and the selected compensation value can be calculated to obtain the target detection data.

[0088] Exemplarily, the compensation information belonging to the first characteristic information includes: compensation value 1 belonging to frequency 1, compensation value 2 belonging to frequency 2, compensation value 3 belonging to frequency 3, and compensation value 4 belonging to frequency 4. If the second frequency is frequency 1, the original detection data includes detection data 1 corresponding to frequency 1. At this time, since the second frequency is the same as frequency 1, the compensation value belonging to the second frequency is compensation value 1, and then the sum of detection data 1 and compensation value 1 can be calculated as target detection data. If the second frequency is multiple, such as frequency 1 and frequency 2, the original detection data includes detection data 1 corresponding to frequency 1 and detection data 2 corresponding to frequency 2. At this time, since the second frequency includes the same frequency 1 and frequency 2, the compensation values ​​belonging to the second frequency include: compensation value 1 belonging to frequency 1 and compensation value 2 belonging to frequency 2, and then the sum of detection data 1 and compensation value 1, as well as the sum of detection data 2 and compensation value 2 can be calculated as target detection data.

[0089] S204, based on a preset liquid type classification standard, classify and process the target detection data or the second characteristic information of the target detection data to obtain the liquid type of the liquid to be tested; wherein the liquid type classification standard is determined by the benchmark detection data obtained by using a benchmark device to perform liquid detection on different liquid types.

[0090] After the target detection data is obtained, the liquid type of the liquid to be tested is determined using the target detection data, that is, based on a preset liquid type classification standard, the target detection data or the second characteristic information of the target detection data is classified and processed to obtain the liquid type of the liquid to be tested.

[0091] The above liquid type classification standard may include a correspondence between the liquid type and the detection data or the characteristic information of the detection data. For example, when the detection data or the characteristic information of the detection data is located in the classification interval 1, the liquid type is type 1, and when the detection data or the characteristic information of the detection data is located in the classification interval 2, the liquid type is type 2. After obtaining the target detection data, the above correspondence may be used to determine the classification interval in which the target detection data or the second characteristic information corresponding to the target detection data is located, and then the liquid type corresponding to the classification area is used as the liquid type of the liquid to be detected.

[0092] Alternatively, in order to more accurately detect the liquid type of the liquid, the above-mentioned liquid type classification standard can be a standard for the detection model to classify the liquid; wherein the detection model is a classification model trained based on each benchmark detection data obtained by the benchmark device for different types of liquids; or, the detection model is a classification model trained based on the feature information of each benchmark detection data obtained by the benchmark device for different types of liquids. At this time, after obtaining the target detection data, the target detection data or the second feature information of the target detection data can be input into the detection model to obtain the liquid type of the liquid to be tested output by the detection model. The implementation process of determining the second feature information of the above-mentioned target detection data is the same or similar to the aforementioned process of determining the first feature information in the original detection data, and will not be repeated here.

[0093] In the solution provided in this embodiment, since the compensation information belonging to the characteristic information can be determined based on the characteristic information of the detection data, compensation information more suitable for the liquid can be used for compensation for different liquids, thereby improving the accuracy of the detection results of the liquid detection.

[0094] like Figure 3 As shown, the embodiment of the present invention provides another liquid detection method, the above step S202 may include steps S301-S303:

[0095] S301, based on the first feature information and the feature distance between each preset feature information, determine at least one matching feature information matching the first feature information from each preset feature information;

[0096] Among them, each preset characteristic information is each characteristic information in the correspondence relationship between the characteristic information of the preset liquid and the compensation information. For example, the correspondence between the characteristic information of the preset liquid and the compensation information includes: characteristic information 1 corresponds to compensation information 1, characteristic information 2 corresponds to compensation information 2, characteristic information 3 corresponds to compensation information 3, and characteristic information 4 corresponds to compensation information 4, then each preset characteristic information is characteristic information 1, characteristic information 2, characteristic information 3, and characteristic information 4.

[0097] In an embodiment of the present invention, after obtaining the first characteristic information of the original detection data, at least one matching characteristic information matching the first characteristic information can be determined from each preset characteristic information based on the characteristic distance between the first characteristic information and each preset characteristic information.

[0098] Optionally, after obtaining the first characteristic information of the original detection data, the characteristic distance between the first characteristic information and each preset characteristic information can be calculated respectively, and then based on the calculated characteristic distances, at least one matching characteristic information that matches the first characteristic information can be determined from each preset characteristic information. Still using the above example for illustration, each preset characteristic information includes characteristic information 1, characteristic information 2, characteristic information 3, and characteristic information 4, then it can be calculated that the characteristic distance between the first characteristic information and characteristic information 1 is distance 1, the characteristic distance between the first characteristic information and characteristic information 2 is distance 2, the characteristic distance between the first characteristic information and characteristic information 3 is distance 3, and the characteristic distance between the first characteristic information and characteristic information 4 is distance 4, so that based on distance 1, distance 2, distance 3, and distance 4, at least one matching characteristic information that matches the first characteristic information can be determined from characteristic information 1, characteristic information 2, characteristic information 3, and characteristic information 4.

[0099] Specifically, there are many ways to determine at least one matching feature information that matches the first feature information, for example, at least one of the following two ways:

[0100] In the first matching feature information determination method, feature information having the shortest feature distance to the first feature information may be determined from various preset feature information as matching feature information;

[0101] In this method, the preset feature information with the shortest feature distance between the first feature information may be selected as the matching feature information.

[0102] In the second matching feature information determination method, feature information whose feature distance with the first feature information is less than a specified distance threshold may be determined from various preset feature information as matching feature information.

[0103] In this method, the preset feature information whose feature distance between the first feature information is less than the specified distance threshold is used as the matching feature information. The above-mentioned specified distance threshold can be determined based on actual experience and needs, and the embodiment of the present invention does not specifically limit this. In this method, at least one matching feature information that is most similar to the first feature information can be determined from each preset feature information.

[0104] S302, determining compensation information corresponding to at least one matching feature information according to the above correspondence relationship;

[0105] After determining at least one piece of matching feature information that matches the first feature information, the compensation information corresponding to the at least one piece of matching feature information is determined according to the above correspondence relationship.

[0106] If there are multiple pieces of at least one piece of matching feature information, it is necessary to determine the compensation information corresponding to each piece of matching feature information according to the above correspondence relationship.

[0107] S303: Determine compensation information belonging to the first feature information based on compensation information corresponding to at least one matching feature information.

[0108] After determining the compensation information corresponding to the at least one matching feature information, the compensation information belonging to the first feature information may be determined based on the compensation information corresponding to the at least one matching feature information.

[0109] In the case where there is at least one matching feature information, the compensation information corresponding to the one matching feature information can be directly determined as the compensation information belonging to the first feature information. In the case where there are multiple matching feature information, the compensation information of multiple matching feature information can be combined to determine the compensation information belonging to the first feature information. In one implementation, the above-mentioned determination of the compensation information belonging to the first feature information based on the compensation information corresponding to the at least one matching feature information can include steps A1-A2, wherein:

[0110] Step A1, determining the weight of compensation information corresponding to each matching feature information based on the total number of each matching feature information or the feature distance between each matching feature information and the first feature information;

[0111] Specifically, there are many ways to determine the weight of the compensation information corresponding to each matching feature information, for example, including at least one of the following two ways:

[0112] In the first weight determination method, the inverse of the total number of each matching feature information may be calculated as the weight of the compensation information corresponding to each matching feature information;

[0113] In simple terms, if the total number of matching feature information is 4, the reciprocal of the total number of matching feature information is 1 / 4, so the weight of the compensation information corresponding to each matching feature information is 1 / 4=0.25.

[0114] In the second weight determination method, for each matching feature information, the ratio of the feature distance between the matching feature information and the first feature information to the total feature distance can be calculated, and the weight of the compensation information corresponding to the matching feature information can be determined based on the calculated ratio.

[0115] In order to determine more accurate compensation information, in this method, the more similar the matching feature information is to the first feature information, that is, the smaller the matching feature information is from the first feature information, the greater the weight of the corresponding compensation information is, and vice versa. Specifically, for each matching feature information, the ratio of the feature distance between the matching feature information and the first feature information to the total feature distance can be calculated first, and then based on the calculated ratio, the weight of the compensation information corresponding to the matching feature information is determined, wherein the total feature distance is the sum of the feature distances between each matching feature information and the first feature information.

[0116] There are multiple ways to determine the weight of the compensation information corresponding to the matching feature information based on the calculated ratio. For example, the ratio can be used as the weight of the compensation information corresponding to the matching feature information, or the square, open, tripartite, etc. values ​​of the ratio can be calculated as the weight of the compensation information corresponding to the matching feature information. Both of these are possible.

[0117] Step A2: based on the weight of the compensation information corresponding to each matching feature information, a weighted sum of the compensation information corresponding to each matching feature information is calculated as the compensation information belonging to the first feature information.

[0118] After the weight of the compensation information corresponding to each matching feature information is obtained, the weighted sum of the compensation information corresponding to each matching feature information may be calculated as the compensation information belonging to the first feature information.

[0119] In an embodiment of the present invention, when the compensation information corresponding to the characteristic information of each liquid includes the compensation values ​​corresponding to each first frequency, the weighted sum of the compensation values ​​corresponding to the first frequency in the compensation information corresponding to each matching characteristic information can be calculated for each first frequency based on the weight of the compensation information corresponding to each matching characteristic information, as the compensation value belonging to the first frequency in the compensation information belonging to the first characteristic information.

[0120] For example, matching feature information 1 includes compensation values ​​corresponding to frequency 1, frequency 2, and frequency 3, which are compensation value 11, compensation value 11, and compensation value 13, respectively; matching feature information 2 includes compensation values ​​corresponding to frequency 1, frequency 2, and frequency 3, which are compensation value 21, compensation value 21, and compensation value 23, respectively; the weight of the compensation information corresponding to matching feature information 1 is weight 1, and the weight of the compensation information corresponding to matching feature information 1 is weight 2. Then, in the compensation information belonging to the first feature information, the compensation value belonging to frequency 1 = weight 1 × compensation value 11 + weight 2 × compensation value 21, in the compensation information belonging to the first feature information, the compensation value belonging to frequency 2 = weight 1 × compensation value 12 + weight 2 × compensation value 22; in the compensation information belonging to the first feature information, the compensation value belonging to frequency 3 = weight 1 × compensation value 13 + weight 2 × compensation value 23.

[0121] In the scheme provided in this embodiment, the accuracy of the detection results of liquid detection can be improved. Furthermore, based on the first characteristic information and the characteristic distance between each preset characteristic information, at least one matching characteristic information matching the first characteristic information can be determined from each preset characteristic information, and then according to the corresponding relationship, the compensation information corresponding to the at least one matching characteristic information can be determined, and based on the compensation information corresponding to the at least one matching characteristic information, the compensation information belonging to the first characteristic information can be determined. This can ensure that when the first characteristic information does not exist in each characteristic information included in the object relationship, the device consistency compensation of the original detection data can still be achieved to the greatest extent, thereby improving the scope of use of the embodiment of the present invention.

[0122] Since in actual use, when the type of liquid changes with demand, the liquid type of the liquid to be tested obtained by using the preset liquid classification standard may not be accurate. For example, in a conventional scenario (a scenario in which the correspondence between the characteristic information of the liquid and the compensation information is constructed, or a scenario in which the preset liquid classification standard is determined), the liquid whose content of component 1 in the liquid is greater than the first ratio is regarded as a first type of liquid, such as a dangerous liquid, and the liquid whose content of component 1 in the liquid is not greater than the first ratio is regarded as a second type of liquid, such as a safe liquid. In some characteristic scenarios, or with different demands, it is necessary to regard the liquid whose content of component 1 in the liquid is greater than the second ratio as the first type of liquid, and the liquid whose content of component 1 in the liquid is not greater than the second ratio as the second type of liquid, wherein the first ratio is less than the second ratio. Therefore, for the liquid whose content of component 1 in the liquid is greater than the second ratio and less than the first ratio, the liquid type obtained by using the preset liquid classification standard should be the second type of liquid, but in special scenarios, it should be classified as the first type of liquid, resulting in that the liquid type of the liquid to be tested obtained by using the preset liquid classification standard may not be accurate.

[0123] Generally speaking, different classification requirements for special scenarios require the pre-construction of different liquid detection classification standards, which greatly increases labor costs.

[0124] In order to avoid the increase of labor costs, the embodiment of the present invention also provides another liquid detection method. After the target detection data or the second characteristic information of the target detection data is classified and processed based on the preset liquid type classification standard to obtain the liquid type of the liquid to be tested, the liquid type of the determined liquid to be tested can be corrected according to the specified correction method; wherein, the specified correction method includes: when the second characteristic information is not within the specified characteristic range, correcting the liquid type of the determined liquid to be tested; wherein, the specified characteristic range is: a characteristic range set in advance for the liquid type of the determined liquid to be tested; in addition, when the second characteristic information is within the specified characteristic range, refusing to perform the correction processing and retaining the determined liquid type of the liquid to be tested.

[0125] The above-mentioned specified feature range can be set according to different classification requirements for the liquid type of the liquid to be tested in the current scenario and the conventional scenario. For example, in the current classification requirements, liquids whose feature information is within the range of (feature value 1, feature value 2] need to be classified as the first category, while liquids whose feature information is within other feature ranges need to be classified as the second category.

[0126] When the determined liquid type of the liquid to be tested is the first category, it can be determined whether the second characteristic information is within the range of [characteristic value 1, characteristic value 2]. If it is not within the range, the liquid type of the liquid to be tested needs to be corrected from the first category to the second category; if it is within the range, it means that the determined liquid type of the liquid to be tested is accurate, so the correction process can be rejected and the determined liquid type of the liquid to be tested is retained.

[0127] In the solution provided in this embodiment, the accuracy of the detection results of liquid detection can be improved. At the same time, for different classification requirements, the accuracy of the classification results can be ensured by specifying a correction method, thereby eliminating the need to build preset liquid type classification standards for special classification requirements, saving labor costs, and improving the application scenarios of liquid detection methods.

[0128] Corresponding to the liquid detection method provided by the above embodiment of the present invention, as Figure 4 As shown, an embodiment of the present invention further provides a liquid detection device, which is applied to a liquid detection device for liquid detection based on the microwave reflection principle, and the device includes:

[0129] The characteristic information determination module 401 is used to determine first characteristic information of original detection data, wherein the original detection data is detection data obtained by the liquid detection device for the liquid to be detected, and different characteristic information is used to characterize different detection data;

[0130] The compensation information determination module 402 is used to determine the compensation information belonging to the first characteristic information based on the correspondence between the characteristic information of the preset liquid and the compensation information; wherein the compensation information corresponding to the characteristic information of each liquid is: the difference information between the detection data measured by the reference device and the liquid detection device for the liquid;

[0131] A data compensation module 403 is used to compensate the original detection data using the determined compensation information to obtain target detection data;

[0132] The liquid classification module 404 is used to classify the target detection data or the second characteristic information of the target detection data based on a preset liquid type classification standard to obtain the liquid type of the liquid to be tested; wherein the liquid type classification standard is determined by the benchmark detection data obtained by using the benchmark device to perform liquid detection on different liquid types.

[0133] Optionally, the compensation information corresponding to the characteristic information of each liquid includes compensation values ​​corresponding to each first frequency;

[0134] Among them, each first frequency is the signal frequency of the microwave signal used by the liquid detection equipment when performing liquid detection on the reference liquid; the compensation value corresponding to the first frequency is: the difference between the detection data obtained by the liquid detection equipment and the reference equipment respectively using the microwave signal of the first frequency to perform liquid detection on the reference liquid.

[0135] Optionally, the original detection data includes: detection data corresponding to a second frequency; the second frequency is a signal frequency of a microwave signal used by the liquid detection device when performing liquid detection on the liquid to be detected; the second frequency is a frequency among the first frequencies;

[0136] The data compensation module is specifically used to select the compensation value belonging to the second frequency from the determined compensation values ​​corresponding to the first frequencies; calculate the sum of the detection data corresponding to the second frequency and the selected compensation value to obtain target detection data.

[0137] Optionally, the characteristic information determination module is specifically used to calculate statistical characteristics of the original detection data as the first characteristic information; and / or determine waveform characteristics of the original detection data that change with the frequency of the microwave signal as the first characteristic information.

[0138] Optionally, the original detection data includes: an amplitude value and / or a phase value of a reflected signal received when the liquid detection device detects the liquid to be tested.

[0139] Optionally, the compensation information determination module includes:

[0140] A first information determination submodule, for determining at least one matching feature information matching the first feature information from each preset feature information based on the first feature information and the feature distance between each preset feature information; wherein each preset feature information is each feature information in the correspondence relationship between the preset feature information of the liquid and the compensation information;

[0141] A second information determination submodule, configured to determine compensation information corresponding to the at least one matching feature information according to the corresponding relationship;

[0142] The third information determination submodule is used to determine compensation information belonging to the first feature information based on the compensation information corresponding to the at least one matching feature information.

[0143] Optionally, the first information determination submodule is specifically used to determine, from the various preset feature information, feature information whose feature distance to the first feature information is the shortest, as matching feature information; or to determine, from the various preset feature information, feature information whose feature distance to the first feature information is less than a specified distance threshold, as matching feature information.

[0144] Optionally, the third information determination submodule includes:

[0145] a first information determining unit, configured to, when the at least one matching feature information is one, determine the compensation information corresponding to the one matching feature information as the compensation information belonging to the first feature information;

[0146] The second information determining unit includes:

[0147] a weight determination subunit, configured to determine, when there are multiple pieces of at least one piece of matching feature information, a weight of compensation information corresponding to each piece of matching feature information based on a total number of each piece of matching feature information or a feature distance between each piece of matching feature information and the first feature information;

[0148] The information calculation subunit is used to calculate the weighted sum of the compensation information corresponding to each matching feature information based on the weight of the compensation information corresponding to each matching feature information as the compensation information belonging to the first feature information.

[0149] Optionally, the compensation information corresponding to the characteristic information of each liquid includes compensation values ​​corresponding to each first frequency; wherein each first frequency is a signal frequency of a microwave signal used by the liquid detection device when performing liquid detection on a reference liquid; and the compensation value corresponding to the first frequency is: the difference between the detection data obtained by the liquid detection device and the reference device respectively performing liquid detection on the reference liquid using the microwave signal of the first frequency;

[0150] The information calculation subunit is specifically used to calculate, for each first frequency, based on the weight of the compensation information corresponding to each matching feature information, the weighted sum of the compensation values ​​corresponding to the first frequency in the compensation information corresponding to each matching feature information, as the compensation value belonging to the first frequency in the compensation information belonging to the first feature information.

[0151] Optionally, the weight determination subunit is specifically used to calculate the inverse of the total number of each matching feature information as the weight of the compensation information corresponding to each matching feature information; or

[0152] For each matching feature information, calculate the ratio of the feature distance between the matching feature information and the first feature information to the total feature distance, and determine the weight of the compensation information corresponding to the matching feature information based on the calculated ratio; wherein the total feature distance is the sum of the feature distances between each matching feature information and the first feature information.

[0153] Optionally, the preset liquid type classification standard is a standard for liquid classification by the detection model;

[0154] The detection model is a classification model trained based on various benchmark detection data obtained by the benchmark device for liquid detection of different types of liquids; or, the detection model is a classification model trained based on feature information of various benchmark detection data obtained by the benchmark device for liquid detection of different types of liquids.

[0155] Optionally, the liquid classification module is also used to classify the target detection data or the second characteristic information of the target detection data based on the preset liquid type classification standard, and after obtaining the liquid type of the liquid to be tested, correct the determined liquid type of the liquid to be tested according to a specified correction method; wherein the specified correction method includes: when the second characteristic information is not within a specified characteristic range, correcting the determined liquid type of the liquid to be tested; wherein the specified characteristic range is: a characteristic range set in advance for the determined liquid type of the liquid to be tested; in addition, when the second characteristic information is within the specified characteristic range, refusing to perform correction processing and retaining the determined liquid type of the liquid to be tested.

[0156] In the solution provided in this embodiment, since the compensation information belonging to the characteristic information can be determined based on the characteristic information of the detection data, compensation information more suitable for the liquid can be used for compensation for different liquids, thereby improving the accuracy of the detection results of the liquid detection.

[0157] The embodiment of the present invention also provides a liquid detection device, such as Figure 5 As shown, it includes a liquid detection position 501, a processor 502, a communication interface 503, a memory 504 and a communication bus 505, wherein the liquid detection position 501, the processor 502, the communication interface 503, and the memory 504 communicate with each other through the communication bus 505;

[0158] The liquid detection position 501 is used to carry a container containing a liquid to be detected and detect the liquid to be detected;

[0159] Memory 504, used for storing computer programs;

[0160] The processor 502 is used to execute the program stored in the memory 504, and implements the following steps:

[0161] Determine first characteristic information of original detection data, wherein the original detection data is detection data obtained by the liquid detection device for measuring the liquid to be detected, and different characteristic information is used to characterize different detection data;

[0162] Based on the correspondence between the preset characteristic information of the liquid and the compensation information, the compensation information belonging to the first characteristic information is determined; wherein the compensation information corresponding to the characteristic information of each liquid is: the difference information between the detection data measured by the reference device and the liquid detection device for the liquid;

[0163] Compensating the original detection data using the determined compensation information to obtain target detection data;

[0164] Based on a preset liquid type classification standard, the target detection data or the second characteristic information of the target detection data is classified and processed to obtain the liquid type of the liquid to be tested; wherein the liquid type classification standard is determined by the benchmark detection data obtained by using the benchmark device to perform liquid detection on different liquid types.

[0165] In the solution provided in this embodiment, since the compensation information belonging to the characteristic information can be determined based on the characteristic information of the detection data, compensation information more suitable for the liquid can be used for compensation for different liquids, thereby improving the accuracy of the detection results of the liquid detection.

[0166] The communication bus mentioned in the above liquid detection device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0167] The communication interface is used for communication between the above-mentioned liquid detection device and other equipment.

[0168] 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 storage device located away from the aforementioned processor.

[0169] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0170] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned liquid detection methods are implemented.

[0171] In another embodiment provided by the present invention, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any of the liquid detection methods in the above embodiments.

[0172] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can 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 the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0173] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0174] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device, computer-readable storage medium, and computer program embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0175] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A liquid detection method, characterized in that: A liquid detection device for liquid detection based on the microwave reflection principle, the method comprising: Determine first characteristic information of original detection data, wherein the original detection data is detection data obtained by the liquid detection device for measuring the liquid to be detected, and different characteristic information is used to characterize different detection data; Based on the correspondence between the preset characteristic information of the liquid and the compensation information, the compensation information belonging to the first characteristic information is determined; wherein the compensation information corresponding to the characteristic information of each liquid is: the difference information between the detection data measured by the reference device and the liquid detection device for the liquid; Compensating the original detection data using the determined compensation information to obtain target detection data; Based on a preset liquid type classification standard, the target detection data or the second characteristic information of the target detection data is classified and processed to obtain the liquid type of the liquid to be detected; wherein the liquid type classification standard is determined by the reference detection data obtained by using the reference device to perform liquid detection on different liquid types; The compensation information corresponding to the characteristic information of each liquid includes compensation values ​​corresponding to each first frequency; each first frequency is the signal frequency of the microwave signal used by the liquid detection device when performing liquid detection on the reference liquid; the compensation value corresponding to each first frequency is: the difference between the detection data obtained by the liquid detection device and the reference device respectively performing liquid detection on the reference liquid using the microwave signal of the first frequency; The original detection data includes: detection data corresponding to the second frequency; the second frequency is the signal frequency of the microwave signal used by the liquid detection device when performing liquid detection on the liquid to be detected; the second frequency is a frequency among the first frequencies; The using the determined compensation information to compensate the original detection data to obtain target detection data includes: Selecting a compensation value for the second frequency from the determined compensation values ​​corresponding to the first frequencies; The sum of the detection data corresponding to the second frequency and the selected compensation value is calculated to obtain target detection data.

2. The method according to claim 1, characterized in that The determining of the first characteristic information of the original detection data includes: Calculating statistical features of the original detection data as first feature information; and / or, The waveform characteristics of the original detection data that vary with the frequency of the microwave signal are determined as first characteristic information.

3. The method according to claim 2, characterized in that The original detection data includes: the amplitude value and / or phase value of the reflected signal received when the liquid detection device detects the liquid to be detected.

4. The method according to claim 1, characterized in that The determining of the compensation information belonging to the first characteristic information based on the correspondence between the characteristic information of the preset liquid and the compensation information includes: Based on the first characteristic information and the characteristic distance between each preset characteristic information, at least one matching characteristic information matching the first characteristic information is determined from each preset characteristic information; wherein each preset characteristic information is each characteristic information in the correspondence relationship between the characteristic information of the preset liquid and the compensation information; Determining compensation information corresponding to the at least one matching feature information according to the corresponding relationship; Based on the compensation information corresponding to the at least one matching feature information, compensation information belonging to the first feature information is determined.

5. The method according to claim 4, characterized in that The determining, based on the first feature information and the feature distance between each preset feature information, at least one matching feature information matching the first feature information from each preset feature information includes: Determine, from the preset feature information, feature information having the shortest feature distance to the first feature information as matching feature information; or From the preset feature information, feature information whose feature distance with the first feature information is less than a specified distance threshold is determined as matching feature information.

6. The method according to claim 4 or 5, characterized in that: The determining, based on the compensation information corresponding to the at least one matching feature information, the compensation information belonging to the first feature information includes: In the case where the at least one matching feature information is one, determining the compensation information corresponding to the one matching feature information as the compensation information belonging to the first feature information; or In the case where there are multiple matching feature information, the weight of the compensation information corresponding to each matching feature information is determined based on the total number of each matching feature information or the feature distance between each matching feature information and the first feature information, and based on the weight of the compensation information corresponding to each matching feature information, the weighted sum of the compensation information corresponding to each matching feature information is calculated as the compensation information belonging to the first feature information.

7. The method according to claim 6, characterized in that The compensation information corresponding to the characteristic information of each liquid includes compensation values ​​corresponding to each first frequency; wherein each first frequency is the signal frequency of the microwave signal used by the liquid detection device when performing liquid detection on the reference liquid; the compensation value corresponding to the first frequency is: the difference between the detection data obtained by the liquid detection device and the reference device respectively performing liquid detection on the reference liquid using the microwave signal of the first frequency; The calculating, based on the weight of the compensation information corresponding to each matching feature information, the weighted sum of the compensation information corresponding to each matching feature information as the compensation information belonging to the first feature information includes: For each first frequency, based on the weight of the compensation information corresponding to each matching feature information, the weighted sum of the compensation values ​​corresponding to the first frequency in the compensation information corresponding to the matching feature information is calculated as the compensation value belonging to the first frequency in the compensation information belonging to the first feature information.

8. The method according to claim 6, characterized in that The determining, based on the total number of each matching feature information or the feature distance between each matching feature information and the first feature information, the weight of the compensation information corresponding to each matching feature information includes: Calculate the inverse of the total number of each matching feature information as the weight of the compensation information corresponding to each matching feature information; or, For each matching feature information, calculate the ratio of the feature distance between the matching feature information and the first feature information to the total feature distance, and determine the weight of the compensation information corresponding to the matching feature information based on the calculated ratio; wherein the total feature distance is the sum of the feature distances between each matching feature information and the first feature information.

9. The method according to claim 1, characterized in that: The preset liquid type classification standard is the standard for the detection model to classify liquids; The detection model is a classification model trained based on various benchmark detection data obtained by the benchmark device for liquid detection of different types of liquids; or, the detection model is a classification model trained based on feature information of various benchmark detection data obtained by the benchmark device for liquid detection of different types of liquids.

10. The method according to claim 1, characterized in that After classifying the target detection data or the second characteristic information of the target detection data based on the preset liquid type classification standard to obtain the liquid type of the liquid to be detected, the method further includes: Correcting the determined liquid type of the liquid to be tested according to a specified correction method; The specified correction method includes: When the second characteristic information is not within the specified characteristic range, the determined liquid type of the liquid to be tested is corrected; wherein the specified characteristic range is: a characteristic range pre-set for the determined liquid type of the liquid to be tested; Alternatively, the method further comprises: When the second characteristic information is within the specified characteristic range, the correction process is rejected and the determined liquid type of the liquid to be tested is retained.

11. A liquid detection device, characterized in that: A liquid detection device for liquid detection based on the microwave reflection principle, the device comprising: A characteristic information determination module, used to determine first characteristic information of original detection data, wherein the original detection data is detection data obtained by the liquid detection device for measuring the liquid to be detected, and different characteristic information is used to characterize different detection data; A compensation information determination module, used to determine the compensation information belonging to the first characteristic information based on the correspondence between the characteristic information of the preset liquid and the compensation information; wherein the compensation information corresponding to the characteristic information of each liquid is: the difference information between the detection data measured by the reference device and the liquid detection device for the liquid; A data compensation module, used to compensate the original detection data using the determined compensation information to obtain target detection data; A liquid classification module, configured to classify the target detection data or the second characteristic information of the target detection data based on a preset liquid type classification standard to obtain the liquid type of the liquid to be detected; wherein the liquid type classification standard is determined by the reference detection data obtained by performing liquid detection on different liquid types using the reference device; The compensation information corresponding to the characteristic information of each liquid includes compensation values ​​corresponding to each first frequency; each first frequency is the signal frequency of the microwave signal used by the liquid detection device when performing liquid detection on the reference liquid; the compensation value corresponding to each first frequency is: the difference between the detection data obtained by the liquid detection device and the reference device respectively performing liquid detection on the reference liquid using the microwave signal of the first frequency; The original detection data includes: detection data corresponding to the second frequency; the second frequency is the signal frequency of the microwave signal used by the liquid detection device when performing liquid detection on the liquid to be detected; the second frequency is a frequency among the first frequencies; The data compensation module is specifically used to select the compensation value belonging to the second frequency from the determined compensation values ​​corresponding to the first frequencies; calculate the sum of the detection data corresponding to the second frequency and the selected compensation value to obtain target detection data.

12. A liquid detection device, characterized in that: It includes a liquid detection unit, a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; A liquid detection position, used to carry a container containing a liquid to be detected and to detect the liquid to be detected; Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-10 when executing a program stored in a memory.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Detector for detecting liquid dangerous goods in near field or far field detection mode

    CN103675921A

  • Electromagnetic induction type device for detecting solution density

    CN203534998U