A method, device and storage medium for detecting liquid in a metal can

By determining the compensation coefficient and performing temperature compensation in the unheated state, the problems of long detection time and low accuracy of liquid in metal cans are solved, and efficient and accurate liquid recognition is achieved.

CN115290694BActive Publication Date: 2025-08-01HANGZHOU RAYIN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210908557.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-29
Publication Date
2025-08-01
Estimated Expiration
2042-07-29

AI Technical Summary

Technical Problem

In the prior art, the metal canned liquid detection method has the problems of long detection time and low accuracy, especially the thermal conductivity method is prone to heat loss and error during the heating process.

Method used

By determining the compensation coefficient in the unheated state, using the heat transfer between the temperature sensor and the metal canned liquid, the mapping relationship between temperature and time is obtained, and the mapping relationship is compensated based on the compensation coefficient to determine whether the liquid is the target liquid.

Benefits of technology

It improves detection efficiency, reduces errors caused by temperature difference, improves detection accuracy, and can quickly and accurately identify target liquids.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115290694B_ABST
    Figure CN115290694B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device and storage medium for detecting liquid in a metal can, relating to the technical fields of security inspection and liquid detection, and at least used to improve the detection efficiency and detection accuracy of liquid in a metal can. The method includes: determining a compensation coefficient, where the compensation coefficient reflects the change in the temperature output by a temperature sensor during heat transfer between the temperature sensor and the liquid in the metal can within a first preset time when the liquid in the metal can is in an unheated state; obtaining a first mapping relationship, where the first mapping relationship is the mapping relationship between the temperature output and time when the temperature sensor contacts the surface of the metal can containing the liquid within a second preset time when the liquid in the metal can is in a heated state; compensating the temperature in the first mapping relationship based on the compensation coefficient to obtain a second mapping relationship; determining whether the liquid in the metal can is a target liquid according to the second mapping relationship, where the target liquid is a liquid with a thermal conductivity less than a preset threshold.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical fields of security inspection and liquid detection, and particularly relates to a method, device and storage medium for detecting liquid in a metal can. Background Art

[0002] As is well known, containers of various liquid beverages in daily life are mainly divided into two categories according to material properties, one is non-metal containers, and the other is metal containers. Due to the different materials of the containers, different detection methods are adopted. For the detection of liquids in non-metal containers, the relatively mature and reliable microwave reflection method is mainly used at home and abroad at present, while for the detection of liquids in metal containers, the thermal conductivity method is mainly used.

[0003] Among them, the principle of detecting liquid in a metal can by the thermal conductivity method is: heating the liquid to be detected, calculating the thermal conductivity of the liquid to be detected according to the temperature change information of the liquid to be detected within a certain period of time, and then determining the property of the liquid to be detected according to the thermal conductivity. However, this method has many deficiencies. For example, the detection time is relatively long, resulting in low detection efficiency; and for another example, during the heating process, there will be heat loss, thus generating errors and resulting in low detection accuracy. Summary of the Invention

[0004] The present application provides a method, device and storage medium for detecting liquid in a metal can, which are at least used to improve the detection efficiency and detection accuracy of liquid in a metal can.

[0005] In a first aspect, the present application provides a method for detecting liquid in a metal can, which is applied to a detection device connected to a temperature sensor; the temperature sensor is used to detect the temperature of the surface of the metal can of the liquid in the metal can; the method includes: determining a compensation coefficient; the compensation coefficient reflects the change situation of the temperature output by the temperature sensor during heat transfer between the temperature sensor and the liquid in the metal can within a first preset time when the liquid in the metal can is in an unheated state; obtaining a first mapping relationship; the first mapping relationship is the mapping relationship between the temperature output by the temperature sensor when it contacts the surface of the metal can of the liquid in the metal can and time when the liquid in the metal can is in a heated state within a second preset time; compensating the temperature in the first mapping relationship based on the compensation coefficient to obtain a second mapping relationship; and determining whether the liquid in the metal can is a target liquid according to the second mapping relationship; the target liquid is a liquid with a thermal conductivity less than a preset threshold value.

[0006] It can be understood that for the method provided in this application, when the liquid in the metal can is in an unheated state, according to the change of the temperature output by the temperature sensor during heat transfer (a short period of time) between the temperature sensor and the liquid in the metal can, the compensation coefficient is determined; and then when the liquid in the metal can is in a heated state, the temperature sensor is brought into contact with the surface of the metal can to obtain the first mapping relationship between the temperature output by the temperature sensor and time. Based on the temperature compensation coefficient, the temperature value at each time point in the first mapping relationship is temperature-compensated to obtain the second mapping relationship; finally, it is determined whether the liquid in the metal can is the target liquid according to the second mapping relationship. In this way, based on the above method, in the case where there is a temperature difference between the surface of the metal can containing the liquid in the metal can and the surface of the temperature sensor, the temperature difference can be converted into the temperature compensation value at each time point in the first mapping relationship according to the compensation coefficient, reducing the error caused by the temperature difference. In this way, on the one hand, there is no need to wait until the temperatures of the two are consistent before heating, improving the detection efficiency and solving the problem of long detection time; on the other hand, according to the compensation coefficient, the error caused by the temperature difference is reduced, effectively improving the detection accuracy.

[0007] In a possible implementation manner, when the liquid in the metal can is in an unheated state, the temperature on the surface of the temperature sensor is inconsistent with the temperature on the surface of the metal can of the liquid in the metal can.

[0008] In another possible implementation manner, the above-mentioned first preset time is less than the temperature difference elimination duration; the temperature difference elimination duration refers to the duration required to eliminate the temperature difference between the surface of the temperature sensor and the surface of the metal can of the liquid in the metal can through heat transfer.

[0009] In another possible implementation manner, before determining the compensation coefficient, the method provided in this application further includes: obtaining a third mapping relationship, which is the mapping relationship between the temperature output by the temperature sensor in contact with the surface of the metal can of the liquid in the metal can and time within the first preset time when the liquid in the metal can is in an unheated state; the above-mentioned determination of the compensation coefficient includes: determining the compensation coefficient based on the third mapping relationship.

[0010] In another possible implementation manner, the above-mentioned determination of the compensation coefficient based on the third mapping relationship includes: determining the temperature change rates corresponding to multiple time intervals according to the temperature values corresponding to multiple time points in the third mapping relationship, where any time interval is the time difference between any two time points; determining the compensation coefficient based on the temperature change rates corresponding to multiple time intervals.

[0011] In another possible implementation, determining the compensation coefficient based on the temperature change rates respectively corresponding to multiple time intervals includes: determining the weighting coefficient corresponding to each temperature change rate; wherein, the weighting coefficient corresponding to each temperature change rate is inversely proportional to the time interval corresponding to each temperature change rate; and determining the compensation coefficient based on each temperature change rate and the weighting coefficient corresponding to each temperature change rate.

[0012] In another possible implementation, compensating the temperature in the first mapping relationship based on the compensation coefficient to obtain the second mapping relationship includes: obtaining the compensated temperature value corresponding to each time point in the first mapping relationship based on the compensation coefficient and the first mapping relationship; and performing temperature compensation on the temperature value corresponding to each time point in the first mapping relationship according to the compensated temperature value corresponding to each time point in the first mapping relationship to obtain the second mapping relationship.

[0013] In another possible implementation, obtaining the compensated temperature value corresponding to each time point in the first mapping relationship based on the compensation coefficient and the first mapping relationship includes: determining the temperature compensation value corresponding to each time point in the first mapping relationship according to the product of the compensation coefficient and the temperature value corresponding to each time point in the first mapping relationship.

[0014] In another possible implementation, the method further includes: updating the compensation coefficient based on a preset thermal conductivity to obtain an updated compensation coefficient; the preset thermal conductivity is greater than the first thermal conductivity and less than the second thermal conductivity; the first thermal conductivity is the thermal conductivity of the target liquid; and the second thermal conductivity is the thermal conductivity of the non-target liquid.

[0015] In another possible implementation, compensating the temperature in the first mapping relationship based on the compensation coefficient to obtain the second mapping relationship includes: compensating the temperature in the first mapping relationship based on the updated compensation coefficient to obtain the second mapping relationship.

[0016] In another possible implementation, updating the compensation coefficient based on a preset thermal conductivity to obtain an updated compensation coefficient includes: obtaining the updated compensation coefficient according to the product of the compensation coefficient and the preset thermal conductivity.

[0017] Second aspect, the present application provides a detection device, which is connected to a temperature sensor; the temperature sensor is used to detect the temperature of the metal can surface of the metal-canned liquid; the detection device includes: a determination module, configured to determine a compensation coefficient; the compensation coefficient reflects the temperature change of the temperature sensor output during heat transfer between the temperature sensor and the metal-canned liquid within a first preset time when the metal-canned liquid is in an unheated state; an acquisition module, configured to acquire a first mapping relationship; the first mapping relationship is the mapping relationship between the temperature output by the temperature sensor in contact with the metal can surface of the metal-canned liquid and time when the metal-canned liquid is in a heated state within a second preset time; a compensation module, configured to compensate the temperature in the first mapping relationship based on the compensation coefficient to obtain a second mapping relationship; the determination module is further configured to determine whether the metal-canned liquid is a target liquid according to the second mapping relationship; the target liquid is a liquid with a thermal conductivity less than a preset threshold.

[0018] In a possible implementation manner, when the metal-canned liquid is in an unheated state, the temperature on the surface of the temperature sensor is inconsistent with the temperature of the metal can surface of the metal-canned liquid.

[0019] In another possible implementation manner, the above-mentioned first preset time is less than the temperature difference elimination duration; the temperature difference elimination duration refers to the duration required to eliminate the temperature difference between the surface of the temperature sensor and the metal can surface of the metal-canned liquid through heat transfer.

[0020] In another possible implementation manner, the above-mentioned acquisition module is further configured to acquire a third mapping relationship, where the third mapping relationship is the mapping relationship between the temperature output by the temperature sensor in contact with the metal can surface of the metal-canned liquid and time within the first preset time when the metal-canned liquid is in an unheated state; the above-mentioned determination module is specifically configured to determine the compensation coefficient based on the third mapping relationship.

[0021] In another possible implementation manner, the above-mentioned determination module is specifically configured to determine the temperature change rates corresponding to multiple time intervals according to the temperature values corresponding to multiple time points in the third mapping relationship, where any time interval is the time difference between any two time points; and determine the compensation coefficient based on the temperature change rates corresponding to the multiple time intervals.

[0022] In another possible implementation manner, the above-mentioned determination module is specifically configured to determine the weighting coefficient corresponding to each temperature change rate; where the weighting coefficient corresponding to each temperature change rate is inversely proportional to the time interval corresponding to each temperature change rate; and determine the compensation coefficient based on each temperature change rate and the weighting coefficient corresponding to each temperature change rate.

[0023] In another possible implementation manner, the above compensation module is specifically configured to obtain a compensated temperature value corresponding to each time point in the first mapping relationship based on a compensation coefficient and the first mapping relationship; and perform temperature compensation on the temperature value corresponding to each time point in the first mapping relationship according to the compensated temperature value corresponding to each time point in the first mapping relationship, so as to obtain a second mapping relationship.

[0024] In another possible implementation manner, the above compensation module is specifically configured to determine a temperature compensation value corresponding to each time point in the first mapping relationship according to the product of the compensation coefficient and the temperature value corresponding to each time point in the first mapping relationship.

[0025] In another possible implementation manner, the above device further includes: an update module, configured to update the compensation coefficient based on a preset thermal conductivity to obtain an updated compensation coefficient; the preset thermal conductivity is greater than a first thermal conductivity and less than a second thermal conductivity; the first thermal conductivity is the thermal conductivity of a target liquid; and the second thermal conductivity is the thermal conductivity of a non-target liquid.

[0026] In another possible implementation manner, the above compensation module is further configured to compensate the temperature in the first mapping relationship based on the updated compensation coefficient to obtain a second mapping relationship.

[0027] In another possible implementation manner, the above update module is specifically configured to obtain the updated compensation coefficient according to the product of the compensation coefficient and the preset thermal conductivity.

[0028] In a third aspect, the present application provides a liquid detection device, including: a temperature sensor, configured to detect the temperature of the surface of a metal can containing a liquid; one or more processors; and one or more memories; wherein, the one or more memories are configured to store computer program code, and the computer program code includes computer instructions. When the one or more processors execute the computer instructions, the detection device executes any one of the metal canned liquid detection methods provided in the first aspect above.

[0029] In a fourth aspect, the present application provides a computer-readable storage medium, storing computer-executable instructions, which, when running on a computer, cause the computer to execute any one of the metal canned liquid detection methods provided in the first aspect above.

[0030] The descriptions of the second to fourth aspects in the present application may refer to the detailed description of the first aspect; and for the beneficial effects of the descriptions of the second to fourth aspects, reference may be made to the analysis of the beneficial effects of the first aspect, which will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 Schematic diagram of an implementation environment related to a metal canned liquid detection method provided in an embodiment of the present applicationFigure 1 ;

[0032] Figure 2 Schematic diagram of the implementation environment involved in a method for detecting liquid in a metal can provided by an embodiment of the present application Figure 2 ;

[0033] Figure 3 Flow chart of a method for detecting liquid in a metal can provided by an embodiment of the present application Figure 1 ;

[0034] Figure 4 Schematic diagram of a temperature change curve provided by an embodiment of the present application Figure 1 ;

[0035] Figure 5 Schematic diagram of a temperature change curve provided by an embodiment of the present application Figure 2 ;

[0036] Figure 6 Flow chart of a method for detecting liquid in a metal can provided by an embodiment of the present application Figure 2 ;

[0037] Figure 7 Flow chart of a method for detecting liquid in a metal can provided by an embodiment of the present application Figure 3 ;

[0038] Figure 8 Schematic diagram of a temperature change curve provided by an embodiment of the present application Figure 3 ;

[0039] Figure 9 Schematic diagram of a temperature change curve provided by an embodiment of the present application Figure 4 ;

[0040] Figure 10 Flow chart of a method for detecting liquid in a metal can provided by an embodiment of the present application Figure 4 ;

[0041] Figure 11 Schematic diagram of the structure of a detection device provided by an embodiment of the present application Figure 1 ;

[0042] Figure 12 Schematic diagram of the structure of a detection device provided by an embodiment of the present application Figure 2 。 Detailed implementation manners

[0043] In this article, the term "and / or" merely describes the associated relationship of associated objects and indicates that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. These three situations

[0044] In the description of this application and the accompanying drawings, terms such as "first" and "second" are used to distinguish different objects or different processes for the same object, rather than to describe a specific order of the objects.

[0045] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally further include other unlisted steps or units, or may optionally further include other steps or units inherent to these processes, methods, products, or devices.

[0046] It should be noted that in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner.

[0047] In the description of this application, unless otherwise specified, the meaning of "a plurality" refers to two or more.

[0048] As described in the background art, the main method for detecting metal-canned liquids provided by the prior art is the thermal conductivity method, and its principle is as follows: heating the liquid to be detected, calculating the thermal conductivity of the liquid based on the temperature change information of the liquid to be detected within a certain period of time, and then determining the properties of the liquid to be detected based on the thermal conductivity.

[0049] Among them, when detecting the temperature of the liquid, a temperature sensor is usually used for detection. However, the initial temperatures between the temperature sensor and the surface of the metal-canned liquid to be detected are inconsistent (usually the temperature of the metal can surface of the metal-canned liquid to be detected is higher than the temperature of the surface of the temperature sensor). At this time, if directly heated, a large amount of heat needs to be given to overcome the heat change error caused by the temperature difference, resulting in low detection accuracy; if waiting for the temperatures of the two to be consistent before heating, the detection time is too long, resulting in low detection efficiency.

[0050] Based on the above technical problems, an embodiment of the present application provides a method for detecting a liquid in a metal can. The idea is as follows: when the metal can filled with liquid is in an unheated state, according to the change of the temperature output by the temperature sensor during heat transfer (a short period of time) between the temperature sensor and the metal can filled with liquid, a compensation coefficient is determined; then, when the metal can filled with liquid is in a heated state, the temperature sensor is made to contact the surface of the metal can to obtain a first mapping relationship between the temperature output by the temperature sensor and time, and temperature compensation is performed on the temperature value at each time point in the first mapping relationship based on the temperature compensation coefficient to obtain a second mapping relationship; finally, it is determined whether the liquid in the metal can is the target liquid according to the second mapping relationship. In this way, based on the above method, in the case where there is a temperature difference between the surface of the metal can of the metal can filled with liquid and the surface of the temperature sensor, the temperature difference can be converted into a temperature compensation value at each time point in the first mapping relationship according to the compensation coefficient, reducing the error caused by the temperature difference. In this way, on the one hand, it is not necessary to wait until the temperatures of the two are close to each other before heating, improving the detection efficiency and solving the problem of long detection time in the existing solution; on the other hand, according to the compensation coefficient, the error caused by the temperature difference is reduced, effectively improving the detection accuracy. Moreover, by using the technical solution provided by the embodiment of the present application, for any liquid to be detected, the corresponding compensation coefficient can be quickly determined and used for temperature compensation, ensuring the detection accuracy of any liquid.

[0051] The implementation manners of the embodiments of the present application will be described in detail below with reference to the drawings.

[0052] Please refer to Figure 1 , which shows a schematic structural diagram of a liquid detection device involved in a method for detecting a liquid in a metal can provided by an embodiment of the present application. As Figure 1 shown, the liquid detection device may include: a temperature sensor 100 and a detection device 200. Exemplarily, the temperature sensor 100 and the detection device 200 may be functional modules integrated in the liquid detection device, and the liquid detection device may include a desktop liquid detection device or a handheld liquid detection device.

[0053] In some embodiments, the temperature sensor 100 and the detection device 200 may communicate with each other. Optionally, the temperature sensor 100 and the detection device 200 may be integrated together; or, the temperature sensor 100 and the detection device 200 may be two independent devices or functional modules.

[0054] The temperature sensor 100 is used to detect the temperature of the surface of the metal can of the metal can filled with liquid.

[0055] Optionally, the temperature sensor 100 may be a thermistor temperature sensor, which is a temperature sensor that measures temperature based on the principle that the resistance value of a semiconductor changes with temperature.

[0056] Specifically, the temperature sensor 100 is used to detect the temperature change of the metal can surface when the metal canned liquid is in a heated state or an unheated state.

[0057] In some embodiments, the temperature sensor 100 is also used to convert the measured temperature into an electrical signal and send it to the detection device 200.

[0058] The detection device 200 is used to determine whether the metal canned liquid is the target liquid according to the temperature change of the metal can surface of the metal canned liquid.

[0059] Among them, the target liquid is a liquid with a thermal conductivity less than a preset threshold. Exemplarily, the target liquid may be a dangerous liquid with a low thermal conductivity such as gasoline, alcohol, sulfuric acid, sodium hydroxide, etc. Generally, under the same heating conditions and heating time, the temperature change value of a liquid with a low thermal conductivity is greater than that of a liquid with a high thermal conductivity.

[0060] In some embodiments, the detection device 200 is also used to determine the compensation coefficient between the temperature sensor 100 and the metal can surface of the metal canned liquid according to the temperature change of the metal can surface when the metal canned liquid is in an unheated state (which also reflects the temperature change of the metal canned liquid).

[0061] In some embodiments, the detection device 200 is specifically used to determine whether the metal canned liquid is the target liquid according to the temperature change of the metal can surface when the metal canned liquid is in a heated state (which also reflects the temperature change of the metal canned liquid) and the compensation coefficient.

[0062] Exemplarily, the detection device 200 may be a server. For example, it may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It may also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks, and big data servers.

[0063] In another example, the detection device 200 may be an electronic device, such as a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) / virtual reality (VR) device, etc. The present application does not impose any special restrictions on the specific form of the detection device 200.

[0064] Specifically, as Figure 2 shown, the temperature sensor 100 obtains the temperature change of the metal canned liquid in the heated state and the unheated state respectively, and sends it to the detection device 200; the detection device 200 first determines the compensation coefficient between the temperature sensor 100 and the metal canned liquid according to the temperature change of the metal canned liquid in the unheated state; then, according to the temperature change of the metal canned liquid in the heated state and the compensation coefficient, determines the compensated temperature change; finally, determines whether the metal canned liquid is the target liquid according to the compensated temperature change.

[0065] Next, a method for detecting metal canned liquid provided by the present application will be specifically introduced.

[0066] The method for detecting metal canned liquid provided by the embodiments of the present application can be executed by a detection device as Figure 1 shown, and the detection device is connected to the temperature sensor. As Figure 3 shown, the method includes the following steps:

[0067] S101. Determine the compensation coefficient.

[0068] Among them, the compensation coefficient reflects the temperature change of the temperature sensor output during the heat transfer between the temperature sensor and the metal canned liquid within the first preset time (the first preset time is a continuous time period) when the metal canned liquid is in the unheated state.

[0069] In some embodiments, when the metal canned liquid is in the unheated state, the temperature on the surface of the temperature sensor is inconsistent with the temperature on the surface of the metal can of the metal canned liquid; that is, within the first preset time, the temperature on the surface of the temperature sensor is inconsistent with the temperature on the surface of the metal can of the metal canned liquid (i.e., there is a temperature difference).

[0070] In some embodiments, the first preset time is less than the temperature difference elimination duration; the temperature difference elimination duration refers to the duration required to eliminate the temperature difference between the surface of the temperature sensor and the surface of the metal can of the metal-canned liquid through heat transfer (that is, the duration required to eliminate the temperature difference between the surface of the temperature sensor and the metal-canned liquid). That is, when using this solution to detect the liquid, there is no need to wait until the temperatures of the surface of the temperature sensor and the metal-canned liquid are exactly the same before starting heating, which helps to shorten the detection time and improve the detection efficiency.

[0071] The embodiments of the present application do not limit the method for determining the compensation coefficient. As a possible implementation, the compensation coefficient can be determined by the temperature change rate per unit time during heat transfer between the temperature sensor and the metal-canned liquid when the metal-canned liquid is in an unheated state. Specifically, the following steps S201-S202 can be referred to.

[0072] S102. Obtain the first mapping relationship.

[0073] Among them, the first mapping relationship is the mapping relationship between the temperature and time output when the temperature sensor contacts the surface of the metal can of the metal-canned liquid during the second preset time when the metal-canned liquid is in a heated state. Exemplarily, as Figure 4 shown, with time as the abscissa and temperature as the ordinate, the first mapping relationship can be represented as a temperature change curve with time within the second preset time. Among them, the second preset time is the time period for heating the metal-canned liquid. The second preset time is a continuous time period. During the liquid detection process, the second preset time and the first preset time are continuous time periods.

[0074] It can be understood that before heating the metal-canned liquid, since there is a temperature difference between the surface of the metal can of the metal-canned liquid and the surface of the temperature sensor, during the heating process, a part of the heat obtained by the metal-canned liquid is used to balance the temperature difference between the two. Therefore, the temperature measured by the temperature sensor is not the actual temperature of the metal-canned liquid.

[0075] Therefore, to make up for the heat loss of the metal-canned liquid when balancing the temperature difference, the embodiments of the present application perform temperature compensation on the temperature corresponding to each time point in the first mapping relationship according to the compensation coefficient (that is, perform the following step S103), so as to reduce the measurement error caused by the temperature difference.

[0076] S103. Compensate the temperature in the first mapping relationship based on the compensation coefficient to obtain the second mapping relationship.

[0077] Among them, the second mapping relationship is the mapping relationship between the temperature obtained after temperature compensation for the temperature output by the temperature sensor when the liquid in the metal can is in a heated state and time. Exemplarily, according to the compensation coefficient, the temperature value at each time point in the first mapping relationship can be compensated, and then, according to each time point and the temperature value after compensation at each time point, the second mapping relationship can be obtained. Exemplarily, the first mapping relationship and the second mapping relationship can be in the form as Figure 5 shown.

[0078] In some embodiments, as Figure 6 shown, step S103 can be implemented as the following steps:

[0079] S1031. Based on the compensation coefficient and the first mapping relationship, obtain the compensated temperature value corresponding to each time point in the first mapping relationship.

[0080] Among them, the above-mentioned compensated temperature value is used to compensate for the temperature value reduced at each time point in the first mapping relationship to balance the temperature difference.

[0081] In some embodiments, the product of the compensation coefficient and a time point in the first mapping relationship can be used as the compensated temperature value corresponding to that time point. It can be understood that since the compensation coefficient reflects the change in the temperature output by the temperature sensor during heat transfer between the temperature sensor and the liquid in the metal can when the liquid in the metal can is in an unheated state (for example, the temperature change rate per unit time), therefore, the compensated temperature value determined according to the product of the compensation coefficient and a time point can accurately reflect the heat loss at that time point to make up for the temperature difference between the surface of the metal can of the liquid in the metal can and the surface of the temperature sensor.

[0082] Exemplarily, assume that the compensation coefficient is 0.5. If in the first mapping relationship, the temperature value corresponding to the 1st s is \(30^{\circ}C\), the temperature value corresponding to the 2nd s is \(35^{\circ}C\), the temperature value corresponding to the 3rd s is \(42^{\circ}C\), and the temperature value corresponding to the 4th s is \(50^{\circ}C\); then in the first mapping relationship, the compensated temperature value corresponding to the 1st s is: \(0.5\times1 = 0.5^{\circ}C\), the compensated temperature value corresponding to the 2nd s is: \(0.5\times2 = 1^{\circ}C\), the compensated temperature value corresponding to the 3rd s is: \(0.5\times3 = 1.5^{\circ}C\), and the compensated temperature value corresponding to the 4th s is: \(0.5\times4 = 2^{\circ}C\).

[0083] S1032. According to the compensated temperature value corresponding to each time point in the first mapping relationship, perform temperature compensation on the temperature value corresponding to each time point in the first mapping relationship to obtain the second mapping relationship.

[0084] In some embodiments, the sum of the temperature value corresponding to each time point in the first mapping relationship and the compensated temperature value corresponding to each time point is used as the temperature value corresponding to each time point in the second mapping relationship.

[0085] Exemplarily, assume that in the first mapping relationship, the temperature value corresponding to the 1st second is 30 °C and the compensated temperature value is 0.5 °C; the temperature value corresponding to the 2nd second is 35 °C and the compensated temperature value is 1 °C; the temperature value corresponding to the 3rd second is 42 °C and the compensated temperature value is 1.5 °C; the temperature value corresponding to the 4th second is 50 °C and the compensated temperature value is 2 °C. Then, the temperature value after temperature compensation for the temperature value corresponding to the 1st second is: 30 °C + 0.5 °C = 30.5 °C, the temperature value after temperature compensation for the temperature value corresponding to the 2nd second is: 35 °C + 1 °C = 36 °C, the temperature value after temperature compensation for the temperature value corresponding to the 3rd second is: 42 °C + 1.5 °C = 43.5 °C, and the temperature value after temperature compensation for the temperature value corresponding to the 4th second is: 50 °C + 2 °C = 52 °C. Therefore, in the obtained second mapping relationship, the temperature value corresponding to the 1st second is 30.5 °C, the temperature value corresponding to the 2nd second is 36 °C, the temperature value corresponding to the 3rd second is 43.5 °C, and the temperature value corresponding to the 4th second is 52 °C.

[0086] It can be understood that the compensated temperature value for each time point is determined according to the product of the compensation coefficient and each time point in the first mapping relationship. Then, according to the temperature value and the compensated temperature value of each time point, the second mapping relationship is obtained. In this way, through the compensation coefficient, the temperature difference between the surface of the metal can of the liquid in the metal can and the surface of the temperature sensor is converted into the compensated temperature value of each time point in the first mapping relationship, reducing the error caused by the temperature difference.

[0087] S104. Determine whether the liquid in the metal can is the target liquid according to the second mapping relationship.

[0088] In some embodiments, the target liquid is a liquid with a thermal conductivity less than a preset threshold. Exemplarily, the target liquid can be a liquid with a low thermal conductivity such as gasoline, alcohol, sulfuric acid, sodium hydroxide, etc.

[0089] Among them, the thermal conductivity reflects the heat conduction ability of a substance. The lower the thermal conductivity of a substance, the greater the change value of the temperature under the same heating conditions and heating time. It has been experimentally measured that the thermal conductivities of dangerous liquids such as gasoline, alcohol, sulfuric acid, and sodium hydroxide are relatively low; the thermal conductivities of safe liquids such as water, juice, milk, and beer are relatively high. Therefore, in the embodiments of the present application, dangerous liquids and safe liquids are distinguished according to the thermal conductivity, and a liquid with a temperature change value greater than the preset threshold under the same heating conditions and heating time is identified as a dangerous liquid.

[0090] In some embodiments, according to the second mapping relationship, determine the temperature change value of the liquid in the metal can when it is in a heated state; when the temperature change value is greater than a preset threshold, determine that the liquid in the metal can is the target liquid.

[0091] Exemplarily, if the heating time of the liquid in the metal can is from the 2nd second to the 6th second, the second mapping relationship includes: the temperature value corresponding to the 2nd second is 28 °C, the temperature value corresponding to the 3rd second is 30.5 °C, the temperature value corresponding to the 4th second is 36 °C, the temperature value corresponding to the 5th second is 43.5 °C, and the temperature value corresponding to the 6th second is 52 °C; then the temperature change value of the liquid in the metal can when it is in a heated state is: 52 °C - 28 °C = 24 °C. Assuming that the preset threshold is 20 °C, then determine that the liquid in the metal can is the target liquid.

[0092] It can be understood that for the technical solution provided in the embodiments of the present application, when the liquid in the metal can is in an unheated state, according to the change situation of the temperature output by the temperature sensor during heat transfer (a short period of time) between the temperature sensor and the liquid in the metal can, determine the compensation coefficient; and then when the liquid in the metal can is in a heated state, let the temperature sensor contact the surface of the metal can, obtain the first mapping relationship between the temperature output by the temperature sensor and time, and perform temperature compensation on the temperature value of each time point in the first mapping relationship based on the temperature compensation coefficient to obtain the second mapping relationship; finally, determine whether the liquid in the metal can is the target liquid according to the second mapping relationship. In this way, based on the above method, when there is a temperature difference between the surface of the metal can of the liquid in the metal can and the surface of the temperature sensor, the temperature difference can be converted into the temperature compensation value of each time point in the first mapping relationship according to the compensation coefficient, reducing the error caused by the temperature difference. In this way, on the one hand, there is no need to wait until the temperatures of the two tend to be the same before heating, improving the detection efficiency; on the other hand, according to the compensation coefficient, the error caused by the temperature difference is reduced, effectively improving the detection accuracy.

[0093] In some embodiments, as Figure 7 shown, the embodiments of the present application show a method for determining the compensation coefficient (that is, a specific implementation manner of the above step S101), and this method includes:

[0094] S201. Obtain a third mapping relationship.

[0095] Among them, the third mapping relationship is the mapping relationship between the temperature output and time when the temperature sensor contacts the surface of the metal can of the liquid in the metal can when the liquid in the metal can is in an unheated state. As a possible implementation manner, the third mapping relationship can be represented as a temperature change curve of temperature changing with time. Exemplarily, as Figure 8As shown in the figure, with time as the abscissa and temperature as the ordinate, the third mapping relationship can be represented as the temperature change curve over time within the first preset time. Herein, the first preset time is the time when the temperature sensor is in contact with the surface of the metal can of the metal-canned liquid in the unheated state.

[0096] In some embodiments, as Figure 9 shown, the first preset time is less than the temperature difference elimination duration; the temperature difference elimination duration refers to the duration required to eliminate the temperature difference between the surface of the temperature sensor and the surface of the metal can of the metal-canned liquid through heat transfer.

[0097] Generally, the temperature of the surface of the metal can of the metal-canned liquid is much higher than the temperature of the surface of the temperature sensor, that is, there is a temperature difference between the two. According to the temperature difference compensation principle, when there is a temperature difference between objects, heat will transfer from the object with a higher temperature to the object with a lower temperature, that is, a heat transfer phenomenon occurs to eliminate the temperature difference between the surface of the temperature sensor and the surface of the metal can of the metal-canned liquid (that is, the temperature difference between the surface of the temperature sensor and the metal-canned liquid). Among them, the heat transfer phenomenon satisfies the following formula (1):

[0098] dQ = kSΔtdt Formula (1)

[0099] Wherein, dQ is the heat flux transferred per unit time, k is the thermal conductivity, Δt is the temperature difference, and S is the contact area.

[0100] Therefore, when the temperature sensor contacts the surface of the metal-canned liquid, heat will transfer from the surface of the metal can of the metal-canned liquid to the surface of the temperature sensor, causing the temperature of the surface of the metal can of the metal-canned liquid to decrease and the temperature of the surface of the temperature sensor to increase, thereby eliminating the temperature difference existing between the surface of the temperature sensor and the surface of the metal can of the metal-canned liquid.

[0101] However, according to the heat transfer formula, the greater the temperature difference, the more heat flux needs to be transferred, and thus the more time is required to eliminate the temperature difference. In the actual situation, the temperature of the surface of the metal can of the metal-canned liquid is usually much higher than the temperature of the surface of the temperature sensor. Therefore, if only relying on heat transfer to eliminate the temperature difference between the surface of the metal can of the metal-canned liquid and the surface of the temperature sensor, it will take a long time and result in a reduction in detection efficiency.

[0102] In this regard, for the method provided by the embodiments of the present application, when the liquid in the metal can is in an unheated state, the temperature sensor is first brought into contact with the surface of the metal can of the liquid in the metal can for a short period of time (for example, the first preset time), and the third mapping relationship between the temperature and time output by the temperature sensor within this short period of time is obtained. Then, the detection of the liquid in the metal can is realized by performing the following steps S102 - S105.

[0103] In addition, it should be noted that since the thermal conductivity of solids is much higher than that of liquids. For example, the thermal conductivity of iron is 40 * 1.163 w / (m * c), while the thermal conductivity of water is 0.59 w / (m * c), and the metal can is relatively thin (the thickness of the metal can is less than or equal to 0.4 mm). Therefore, the heat loss due to the temperature rise of the metal can can be ignored. Thus, the temperature of the surface of the metal can can reflect the temperature of the liquid in the metal can. When the temperature sensor is in contact with the surface of the metal can, the influence of the metal can on heat conduction can be ignored. Therefore, the heat transfer between the surface of the metal can of the liquid in the metal can and the surface of the temperature sensor essentially reflects the heat transfer between the liquid in the metal can and the surface of the temperature sensor.

[0104] S202. Determine a compensation coefficient based on the third mapping relationship.

[0105] Among them, the compensation coefficient reflects the change in the temperature output by the temperature sensor during the heat transfer between the temperature sensor and the liquid in the metal can when the liquid in the metal can is in an unheated state.

[0106] In some embodiments, as Figure 10 shown, the above step S202 can be implemented as the following steps:

[0107] S2021. Determine the temperature change rates corresponding to multiple time intervals according to the temperature values corresponding to multiple time points in the third mapping relationship.

[0108] Among them, the multiple time intervals mentioned in the embodiments of the present application include the case of 1 time interval or the case of at least two time intervals. Any time interval is the time difference between any two time points. The temperature change rate can be the quotient of the temperature difference between any two time points and the time difference between these two time points. Or, by referring to the method of solving the slope corresponding to a specific point on the curve, the slopes (i.e., temperature change rates) corresponding to multiple specific time points are determined as the temperature change rates corresponding to the multiple time intervals. Exemplarily, the time interval can be the time difference between any two adjacent time points within the first preset time. Correspondingly, the temperature change rate can be the quotient of the temperature difference between any two adjacent time points and the time difference between these two adjacent time points.

[0109] Exemplarily, since the third mapping relationship reflects the temperature change curve over time within the first preset time, the first preset time can be divided into multiple time points with the same time interval. For example, assuming the first preset time is from 0s to 8s, the first preset time can be divided into 5 time points with the same time interval (i.e., 4 equal parts), and the time interval between two adjacent time points is 2s. Of course, the first preset time can also be divided into multiple time points according to non-uniform time intervals. For example, the first time interval is 2s and the second time interval is 1s. That is, the embodiment of the present application does not limit the time length of the time interval.

[0110] Exemplarily, if in the third mapping relationship, the temperature value at the 1st second is 30°C and the temperature value at the 2nd second is 35°C, then the temperature change rate between the 1st second and the 2nd second can be: (35°C - 30°C) / 1 = 5°C / s.

[0111] Another exemplarily, if in the third mapping relationship, the temperature values corresponding to multiple time points include: the temperature value corresponding to the t-th second is T0, the temperature value corresponding to the (t + 1)-th second is T1, the temperature value corresponding to the (t + 2)-th second is T2, and the temperature value corresponding to the (t + 3)-th second is T3, then the temperature change rate between the t-th second and the (t + 1)-th second is: (T1 - T0); the temperature change rate between the (t + 1)-th second and the (t + 2)-th second is: (T2 - T1); the temperature change rate between the (t + 2)-th second and the (t + 3)-th second is: (T3 - T2); the temperature change rate between the t-th second and the (t + 3)-th second is: (T3 - T0) / 3.

[0112] S2022. Determine a compensation coefficient based on the temperature change rates corresponding to multiple time intervals.

[0113] Specifically, step S2022 can be implemented as the following steps:

[0114] Step a1. Determine the weighting coefficient corresponding to each temperature change rate.

[0115] Among them, the weighting coefficient is determined by the time interval between any two time points within the first preset time. The weighting coefficient corresponding to each temperature change rate is inversely proportional to the time interval corresponding to each temperature change rate. Exemplarily, the longer the time interval between any two time points, the smaller the weighting coefficient corresponding to the temperature change rate corresponding to this time interval; the shorter the time interval between any two time points, the larger the weighting coefficient corresponding to the temperature change rate corresponding to this time interval. It can be understood that if the time interval between any two time points is longer, the temperature change amount corresponding to these two time points is larger. If the value of the weighting coefficient is relatively large at this time, overshoot may occur (that is, the temperature change rate adjusted according to the weighting coefficient exceeds the set range, resulting in inaccurate detection). If the time interval between any two time points is shorter, the temperature change amount corresponding to these two time points is smaller. Therefore, by increasing the weighting coefficient, the temperature change rate can be adjusted to improve the accuracy of temperature compensation, and further improve the accuracy of liquid detection.

[0116] Exemplarily, if multiple time intervals include: a first time interval, a second time interval, and a third time interval; if the temperature change rate corresponding to the first time interval is V T1 , and the temperature change rate corresponding to the second time interval is V T2 , and the temperature change rate corresponding to the third time interval is V T3 ; where V T2 > V T1 > V T3 ; then, the weighting coefficient b corresponding to the temperature change rate within the second time interval is greater than the weighting coefficient a corresponding to the temperature change rate within the first time interval, which is greater than the weighting coefficient c corresponding to the temperature change rate within the third time interval, that is, b > a > c.

[0117] Step a2: Determine the compensation coefficient based on each temperature change rate and the weighting coefficient corresponding to each temperature change rate.

[0118] The embodiments of the present application do not limit the method for determining the compensation coefficient. For example, based on the weighting coefficient corresponding to each temperature change rate, each temperature change rate can be amplified or reduced, and then the final compensation coefficient can be determined according to the amplified or reduced temperature change rate. Exemplarily, each temperature change rate can be multiplied by the weighting coefficient corresponding to each temperature change rate, and the obtained multiple products can be averaged to obtain the compensation coefficient.

[0119] Continuing with the above example, the final compensation coefficient can be expressed as: (a·V T1 + b·V T2 + c·V T3 ) / 3.

[0120] It can be understood that, according to the third mapping relationship, the embodiments of the present application determine the temperature change rates corresponding to multiple time intervals within the first preset time. Each temperature change rate reflects the temperature change detected by the temperature sensor per unit time under the condition of heat transfer between the metal canned liquid and the temperature sensor. Furthermore, the compensation coefficient is determined based on the weighted average of multiple temperature change rates. Using this compensation coefficient, the temperature difference between the surface of the metal can of the metal canned liquid and the surface of the temperature sensor can be proportionally converted and added to the temperature value corresponding to each time point of the first mapping relationship (that is, the above steps S103 - S104 are executed), thereby reducing the measurement error caused by the temperature difference.

[0121] In some other embodiments, the above method further includes: updating the compensation coefficient based on a preset thermal conductivity to obtain an updated compensation coefficient.

[0122] Thus, the above step S103 can also be implemented as: determining a second mapping relationship based on the updated compensation coefficient and the first mapping relationship. The specific implementation manner can refer to the above steps S1031 - S1032 and will not be elaborated here.

[0123] Wherein, the preset thermal conductivity is determined according to the first thermal conductivity and the second thermal conductivity; for example, the preset thermal conductivity is greater than the first thermal conductivity and less than the second thermal conductivity. Wherein, the first thermal conductivity is the thermal conductivity of the target liquid; the second thermal conductivity is the thermal conductivity of the non - target liquid.

[0124] Exemplarily, assuming the first thermal conductivity is Q1 and the second thermal conductivity is Q2, the preset thermal conductivity can be the intermediate value Q3 between the first thermal conductivity Q1 and the second thermal conductivity Q2, where Q1 < Q3 < Q2.

[0125] In some embodiments, when the method provided by the embodiments of the present application is used to distinguish between hazardous liquids and safe liquids, the target liquid can be a hazardous liquid, and the non - target liquid can be a safe liquid. Then, the first thermal conductivity is the thermal conductivity of the hazardous liquid, and the second thermal conductivity is the thermal conductivity of the safe liquid. The hazardous liquids in the embodiments of the present application refer to: flammable, explosive, and corrosive liquids such as gasoline, alcohol, sulfuric acid, and sodium hydroxide. The safe liquids in the embodiments of the present application refer to: liquids such as water, juice, milk, and beer.

[0126] Optionally, the first thermal conductivity may be the thermal conductivity corresponding to the liquid with the maximum thermal conductivity among the hazardous liquids. Exemplarily, assuming the hazardous liquids include: gasoline (thermal conductivity of 0.15), alcohol (thermal conductivity of 0.17), then the first thermal conductivity is the thermal conductivity of alcohol, which is 0.17. The second thermal conductivity may be the thermal conductivity corresponding to the liquid with the minimum thermal conductivity among the safe liquids. Exemplarily, assuming the safe liquids include: water (thermal conductivity of 0.6), fruit juice (for example, the thermal conductivity of apple juice is 0.58), then the first thermal conductivity is the thermal conductivity of fruit juice, which is 0.58.

[0127] The embodiments of the present application do not limit the manner of updating the compensation coefficient based on the preset thermal conductivity. For example, updating the compensation coefficient based on the preset thermal conductivity includes: amplifying or reducing the compensation coefficient based on the preset thermal conductivity. Exemplarily, the updated compensation coefficient can be obtained according to the product of the compensation coefficient and the preset thermal conductivity. Among them, in the case where the order of magnitude of the compensation coefficient is not unified with the order of magnitude of the preset thermal conductivity, it is necessary to unify the order of magnitude first and then multiply.

[0128] Continuing with the above example, the final compensation coefficient is expressed as: (a·V T1 +b·V T2 +c·V T3 ) / 3; if the preset thermal conductivity is Q3, the updated compensation coefficient can be expressed as: [(a·V T1 +b·V T2 +c·V T3 ) / 3]·Q3.

[0129] Another exemplarily, assuming that the initial temperatures of both the hazardous liquid and the safe liquid are 40°C, and the temperature on the surface of the temperature sensor is 20°C (assuming there are two temperature sensors with the same surface temperature). The two temperature sensors are respectively contacted with the surface of the metal tank of the hazardous liquid and the surface of the metal tank of the safe liquid. After heat transfer for a period of time, the temperature on the surface of the metal tank of the hazardous liquid drops to 35°C, and the temperature on the surface of the metal tank of the safe liquid drops to 30°C. Assuming the preset thermal conductivity is Q3, in the above case, the temperature of the liquid with the thermal conductivity of Q3 may drop from 40°C to 33°C; it can be seen that the temperature drop of the safe liquid (10°C) is greater than the temperature drop of the liquid with the thermal conductivity of Q3 (7°C), and the temperature drop of the hazardous liquid (5°C) is less than the temperature drop of the liquid with the thermal conductivity of Q3 (7°C); therefore, according to the compensation coefficient updated based on the preset thermal conductivity, when compensating the temperature on the surface of the liquid in the metal tank, the compensation value of the hazardous liquid can be increased, and the compensation value of the safe liquid can be reduced, thereby improving the discrimination between the hazardous liquid and the safe liquid.

[0130] It is understandable that the above technical solution obtains an updated compensation coefficient according to the product of a preset thermal conductivity and a compensation coefficient. In this way, the compensation coefficient can be scaled by the preset thermal conductivity to adjust the magnitude of the compensation coefficient, thereby improving the distinguishability between the hazardous liquid and the safe liquid.

[0131] As Figure 11 shown, an embodiment of the present application provides a detection device for performing the metal canned liquid detection method as Figure 3 shown. The detection device 300 includes: a determination module 301, an acquisition module 302, and a compensation module 303. In some other embodiments, the detection device 300 further includes: an update module 304.

[0132] The determination module 301 is configured to determine a compensation coefficient; the compensation coefficient reflects the change in the temperature output by the temperature sensor during heat transfer between the temperature sensor and the metal canned liquid within a first preset time when the metal canned liquid is in an unheated state.

[0133] The acquisition module 302 acquires a first mapping relationship; the first mapping relationship is the mapping relationship between the temperature output by the temperature sensor contacting the metal can surface of the metal canned liquid and time when the metal canned liquid is in a heated state within a second preset time.

[0134] The compensation module 303 is configured to compensate the temperature in the first mapping relationship based on the compensation coefficient to obtain a second mapping relationship.

[0135] The determination module 301 is further configured to determine whether the metal canned liquid is a target liquid according to the second mapping relationship; the target liquid is a liquid with a thermal conductivity less than a preset threshold.

[0136] In a possible implementation manner, when the metal canned liquid is in an unheated state, the temperature on the surface of the temperature sensor is inconsistent with the temperature on the metal can surface of the metal canned liquid.

[0137] In another possible implementation manner, the above first preset time is less than the temperature difference elimination duration; the temperature difference elimination duration refers to the duration required to eliminate the temperature difference between the surface of the temperature sensor and the metal can surface of the metal canned liquid through heat transfer.

[0138] In another possible implementation manner, the above acquisition module 302 is further configured to acquire a third mapping relationship, where the third mapping relationship is the mapping relationship between the temperature output by the temperature sensor contacting the metal can surface of the metal canned liquid and time within the first preset time when the metal canned liquid is in an unheated state; the determination module 301 is specifically configured to determine the compensation coefficient based on the third mapping relationship.

[0139] In another possible implementation manner, the above-mentioned determination module 301 is specifically configured to determine temperature change rates corresponding to multiple time intervals according to temperature values corresponding to multiple time points in the third mapping relationship, where any time interval is the time difference between any two time points; and determine a compensation coefficient based on the temperature change rates corresponding to the multiple time intervals.

[0140] In another possible implementation manner, the above-mentioned determination module 301 is specifically configured to determine a weighting coefficient corresponding to each temperature change rate; where the weighting coefficient corresponding to each temperature change rate is inversely proportional to the time interval corresponding to each temperature change rate; and determine a compensation coefficient based on each temperature change rate and the weighting coefficient corresponding to each temperature change rate.

[0141] In another possible implementation manner, the above-mentioned compensation module 303 is specifically configured to obtain a compensated temperature value corresponding to each time point in the first mapping relationship based on the compensation coefficient and the first mapping relationship; and perform temperature compensation on the temperature value corresponding to each time point in the first mapping relationship according to the compensated temperature value corresponding to each time point in the first mapping relationship to obtain a second mapping relationship.

[0142] In another possible implementation manner, the above-mentioned compensation module 303 is specifically configured to determine a temperature compensation value corresponding to each time point in the first mapping relationship according to the product of the compensation coefficient and the temperature value corresponding to each time point in the first mapping relationship.

[0143] In another possible implementation manner, the above-mentioned device further includes: an update module 304, configured to update the compensation coefficient based on a preset thermal conductivity to obtain an updated compensation coefficient; the preset thermal conductivity is greater than the first thermal conductivity and less than the second thermal conductivity; the first thermal conductivity is the thermal conductivity of the target liquid; the second thermal conductivity is the thermal conductivity of the non-target liquid.

[0144] In another possible implementation manner, the above-mentioned compensation module 303 is further configured to perform compensation on the temperature in the first mapping relationship based on the updated compensation coefficient to obtain a second mapping relationship.

[0145] In another possible implementation manner, the above-mentioned update module 304 is specifically configured to obtain the updated compensation coefficient according to the product of the compensation coefficient and the preset thermal conductivity.

[0146] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, an embodiment of the present application provides another possible structural schematic diagram of the detection device involved in the above-mentioned embodiment. As Figure 12 shown, the detection device 400 includes: a processor 402, a communication interface 403, and a bus 404. Optionally, the detection device may further include a memory 401.

[0147] The processor 402 can be a device that implements or executes various exemplary logical blocks, modules, and circuits described in connection with the disclosure of this application. The processor 402 can be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It can implement or execute various exemplary logical blocks, modules, and circuits described in connection with the disclosure of this application. The processor 402 can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0148] The communication interface 403 is used to connect to other devices through a communication network. The communication network can be an Ethernet, a wireless access network, a wireless local area network (WLAN), etc.

[0149] The memory 401 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or it can also be an electrically erasable programmable read-only memory (EEPROM), a magnetic disk storage medium, or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0150] As a possible implementation, the memory 401 can exist independently of the processor 402. The memory 401 can be connected to the processor 402 through a bus 404 and is used to store instructions or program code. When the processor 402 calls and executes the instructions or program code stored in the memory 401, it can implement the metal can liquid detection method provided in the embodiments of this application.

[0151] In another possible implementation, the memory 401 can also be integrated with the processor 402.

[0152] The bus 404 can be an extended industry standard architecture (EISA) bus, etc. The bus 404 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 12 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.

[0153] From the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be allocated to different functional modules as needed, that is, the internal structure of the detection device is divided into different functional modules to complete all or part of the functions described above.

[0154] The embodiment of the present application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be completed by computer instructions instructing relevant hardware. The program can be stored in the above computer-readable storage medium. When the program is executed, it can include the processes of the above method embodiments. The computer-readable storage medium can be the memory of any of the foregoing embodiments. The above computer-readable storage medium can also be an external storage device of the above detection device, such as a plug-in hard disk equipped on the above detection device, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the above computer-readable storage medium can also include both the internal storage unit of the above detection device and the external storage device. The above computer-readable storage medium is used to store the above computer program and other programs and data required by the above detection device. The above computer-readable storage medium can also be used to temporarily store the data that has been output or will be output.

[0155] The embodiment of the present application also provides a computer program product. The computer product includes a computer program. When the computer program product runs on a computer, the computer is caused to execute any one of the metal can liquid detection methods provided in the above embodiments.

[0156] Although the present application has been described in conjunction with various embodiments herein, however, in the process of implementing the claimed present application, those skilled in the art can understand and realize other variations of the disclosed embodiments by viewing the drawings, the disclosure content, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality of situations. A single processor or other unit can implement several functions recited in the claims. Certain measures are recited in mutually different dependent claims, but this does not mean that these measures cannot be combined to produce good results.

[0157] Although the present application has been described in connection with specific features and their embodiments, it will be apparent that various modifications and combinations can be made without departing from the spirit and scope of the present application. Accordingly, the present specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these changes and modifications.

[0158] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for detecting a liquid in a metal can, characterized in that, Applied to a detection device, the detection device is connected to a temperature sensor; the temperature sensor is used to detect the temperature of the surface of the metal can of the metal-canned liquid; the method includes: Determine a compensation coefficient; the compensation coefficient reflects the change in the temperature output by the temperature sensor during heat transfer between the temperature sensor and the metal-canned liquid within a first preset time when the metal-canned liquid is in an unheated state. Obtain a first mapping relationship; the first mapping relationship is the mapping relationship between the temperature output by the temperature sensor in contact with the surface of the metal can of the metal-canned liquid and time when the metal-canned liquid is in a heated state within a second preset time. Update the compensation coefficient based on a preset thermal conductivity to obtain an updated compensation coefficient; the preset thermal conductivity is greater than a first thermal conductivity and less than a second thermal conductivity; the first thermal conductivity is the thermal conductivity of the target liquid; the second thermal conductivity is the thermal conductivity of the non-target liquid. Compensate the temperature in the first mapping relationship based on the updated compensation coefficient to obtain a second mapping relationship. Determine whether the metal-canned liquid is the target liquid according to the second mapping relationship; the target liquid is a liquid with a thermal conductivity less than a preset threshold.

2. The method according to claim 1, wherein When the metal-canned liquid is in an unheated state, the temperature on the surface of the temperature sensor is inconsistent with the temperature on the surface of the metal can of the metal-canned liquid.

3. The method according to claim 1, wherein The first preset time is less than the temperature difference elimination duration; the temperature difference elimination duration refers to the duration required to eliminate the temperature difference between the surface of the temperature sensor and the surface of the metal can of the metal-canned liquid through heat transfer.

4. The method according to claim 1, wherein Before determining the compensation coefficient, the method further includes: Obtain a third mapping relationship, which is the mapping relationship between the temperature output by the temperature sensor in contact with the surface of the metal can of the metal-canned liquid within the first preset time and time when the metal-canned liquid is in an unheated state. The determination of the compensation coefficient includes: Determine the compensation coefficient based on the third mapping relationship.

5. The method according to claim 4, characterized in that, The determination of the compensation coefficient based on the third mapping relationship includes: According to the temperature values corresponding to multiple time points in the third mapping relationship, determine the temperature change rates corresponding to multiple time intervals, where any time interval is the time difference between any two time points. Determine the compensation coefficient based on the temperature change rates corresponding to the multiple time intervals.

6. The method according to claim 5, characterized in that, The determination of the compensation coefficient based on the temperature change rates corresponding to the multiple time intervals includes: Determine the weighting coefficient corresponding to each temperature change rate; where the weighting coefficient corresponding to each temperature change rate is inversely proportional to the time interval corresponding to each temperature change rate. Determine the compensation coefficient based on each temperature change rate and the weighting coefficient corresponding to each temperature change rate.

7. The method according to any one of claims 1 to 6, characterized in that The compensation of the temperature in the first mapping relationship based on the updated compensation coefficient to obtain a second mapping relationship includes: Based on the updated compensation coefficient and the first mapping relationship, obtain the compensated temperature value corresponding to each time point in the first mapping relationship; According to the compensated temperature value corresponding to each time point in the first mapping relationship, perform temperature compensation on the temperature value corresponding to each time point in the first mapping relationship to obtain the second mapping relationship.

8. The method according to claim 7, wherein The obtaining, based on the updated compensation coefficient and the first mapping relationship, of the compensated temperature value corresponding to each time point in the first mapping relationship includes: Determine the temperature compensation value corresponding to each time point in the first mapping relationship according to the product of the updated compensation coefficient and the temperature value corresponding to each time point in the first mapping relationship.

9. The method according to claim 1, characterized in that, The updating of the compensation coefficient based on a preset thermal conductivity to obtain an updated compensation coefficient includes: Obtain the updated compensation coefficient according to the product of the compensation coefficient and the preset thermal conductivity.

10. A detection device, characterized in that, The detection device is connected to a temperature sensor; the temperature sensor is used to detect the temperature of the surface of the metal can of the metal-canned liquid; the detection device includes: A determination module, configured to determine a compensation coefficient; the compensation coefficient reflects the change in the temperature output by the temperature sensor during heat transfer between the temperature sensor and the metal-canned liquid within a first preset time when the metal-canned liquid is in an unheated state. An acquisition module, configured to acquire a first mapping relationship; the first mapping relationship is the mapping relationship between the temperature output by the temperature sensor in contact with the surface of the metal can of the metal-canned liquid and time when the metal-canned liquid is in a heated state within a second preset time. An update module, configured to update the compensation coefficient based on a preset thermal conductivity to obtain an updated compensation coefficient; the preset thermal conductivity is greater than a first thermal conductivity and less than a second thermal conductivity; the first thermal conductivity is the thermal conductivity of the target liquid; the second thermal conductivity is the thermal conductivity of the non-target liquid. A compensation module, configured to compensate the temperature in the first mapping relationship based on the updated compensation coefficient to obtain a second mapping relationship. The determination module is further configured to determine whether the metal-canned liquid is a target liquid according to the second mapping relationship; the target liquid is a liquid with a thermal conductivity less than a preset threshold.

11. A liquid detection device, characterized in that, including: A temperature sensor, configured to detect the temperature of the surface of the metal can of the metal-canned liquid; One or more processors; One or more memories; Wherein, the one or more memories are used to store computer program code, and the computer program code includes computer instructions. When the one or more processors execute the computer instructions, the liquid detection device executes the metal-canned liquid detection method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions run on a computer, the computer executes the metal-canned liquid detection method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Temperature measurement method and device, data processing system and storage medium

    CN113449237A

  • Dangerous liquid inspection tester

    CN205157806U