Alcohol detection method, device, equipment and storage medium based on dual sensors
The dual-sensor system combined with temperature correction solves the problem of poor accuracy of the alcohol lock under high and low temperature conditions, and achieves efficient alcohol detection at the ambient temperature required for vehicles.
Patent Information
- Application Number
- CN202411175076.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2044-08-26
AI Technical Summary
The single electrochemical or semiconductor alcohol sensor in the existing alcohol lock has poor accuracy under high and low temperature conditions, and is not priced appropriately, making it difficult to meet the ambient temperature requirements of vehicle regulations.
A dual-sensor system is used, combining electrochemical and semiconductor sensors. The ambient temperature value is obtained through the temperature sensor, divided into temperature intervals, and the electrochemical sensor response value is corrected based on the semiconductor sensor response value to improve accuracy.
Improve the detection accuracy of alcohol locks under high and low temperature conditions, reduce costs, and meet the ambient temperature requirements of vehicle regulations.
Smart Images

Figure CN119044466B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of drunk driving detection, and in particular to an alcohol detection method, apparatus, device and storage medium based on dual sensors. Background Art
[0002] Alcohol lock devices consist of a handheld device and a control box. Existing alcohol detection methods for alcohol locks typically use an electrochemical or semiconductor alcohol sensor. Electrochemical sensors offer relatively high accuracy but are also expensive. Imported electrochemical sensors are particularly expensive, contributing to the high cost of alcohol locks and severely hindering their widespread use. Semiconductor alcohol sensors, while inexpensive, offer poor accuracy. Furthermore, alcohol locks using a single electrochemical alcohol sensor have an operating temperature range that is difficult to meet the automotive ambient temperature requirements of -40°C to 85°C. The response curve drifts under high and low temperature conditions, resulting in poor accuracy.
[0003] The above content is only used to assist in understanding the technical solution of this application and does not constitute an admission that the above content is prior art. Summary of the Invention
[0004] The main purpose of this application is to provide an alcohol detection method, device, equipment and storage medium based on dual sensors, aiming to solve the technical problem of being unable to accurately detect alcohol under high and low temperature conditions.
[0005] To achieve the above objectives, the present application proposes a dual-sensor alcohol detection method, which includes:
[0006] Acquiring an electrochemical sensor response value collected by the electrochemical sensor and a semiconductor sensor response value collected by the semiconductor sensor;
[0007] Obtaining an ambient temperature value collected by a temperature sensor, and determining a temperature range corresponding to the ambient temperature value;
[0008] When the ambient temperature value is within a first temperature range, correcting the electrochemical sensor response value based on the semiconductor sensor response value to obtain a corrected electrochemical sensor response value;
[0009] An alcohol detection result is obtained according to the calibrated electrochemical sensor response value.
[0010] In one embodiment, the step of correcting the electrochemical sensor response value based on the semiconductor sensor response value to obtain the corrected electrochemical sensor response value includes:
[0011] Determine the conversion coefficient between semiconductor sensors and electrochemical sensors;
[0012] determining a first electrochemical sensor response value and a second electrochemical sensor response value that are adjacent to each other in the electrochemical sensor response values, wherein the first electrochemical sensor response value is an electrochemical sensor response value one second before the second electrochemical sensor response value;
[0013] determining a first semiconductor sensor response value and a second semiconductor sensor response value that are adjacent to each other in the semiconductor sensor response values, wherein the first semiconductor sensor response value is a semiconductor sensor response value one second before the second semiconductor sensor response value, and the response time of the electrochemical sensor response value and the semiconductor sensor response value is the same;
[0014] The second electrochemical sensor response value is corrected according to the first electrochemical sensor response value, the conversion coefficient between the semiconductor sensor and the electrochemical sensor, the first semiconductor sensor response value, and the second semiconductor sensor response value to obtain a corrected electrochemical sensor response value.
[0015] In one embodiment, after the steps of obtaining the ambient temperature value collected by the temperature sensor and determining the temperature range corresponding to the ambient temperature value, the method further includes:
[0016] Determine the conversion coefficient between semiconductor sensors and electrochemical sensors;
[0017] When the ambient temperature value is within a second temperature interval, determining an electrochemical sensor response value sequence and a semiconductor sensor response value sequence;
[0018] determining, based on the electrochemical sensor response value sequence, a first electrochemical sensor response value and a second electrochemical sensor response value adjacent to each other in the electrochemical sensor response value sequence, wherein the first electrochemical sensor response value is an electrochemical sensor response value one second before the second electrochemical sensor response value;
[0019] determining, based on the semiconductor sensor response value sequence, a first semiconductor sensor response value and a second semiconductor sensor response value adjacent to each other in the semiconductor sensor response value sequence, wherein the first semiconductor sensor response value is a semiconductor sensor response value one second before the second semiconductor sensor response value, and the electrochemical sensor response value and the semiconductor sensor response value have the same response time;
[0020] obtaining a correction difference value based on the first electrochemical sensor response value, the second electrochemical sensor response value, a conversion coefficient between the semiconductor sensor and the electrochemical sensor, the first semiconductor sensor response value, and the second semiconductor sensor response value;
[0021] When the correction difference is less than a preset value, the second electrochemical sensor response value is corrected according to the first electrochemical sensor response value, the conversion coefficient between the semiconductor sensor and the electrochemical sensor, the first semiconductor sensor response value, and the second semiconductor sensor response value to obtain a corrected electrochemical sensor response value.
[0022] In one embodiment, after the steps of obtaining the ambient temperature value collected by the temperature sensor and determining the temperature range corresponding to the ambient temperature value, the method further includes:
[0023] When the ambient temperature value is within a third temperature range, an alcohol detection result is obtained according to a response value of the electrochemical sensor.
[0024] In one embodiment, after the steps of obtaining the ambient temperature value collected by the temperature sensor and determining the temperature range corresponding to the ambient temperature value, the method further includes:
[0025] Determine the conversion coefficient between semiconductor sensors and electrochemical sensors;
[0026] When the ambient temperature value is within a fourth temperature interval, determining an electrochemical sensor response value sequence and a semiconductor sensor response value sequence;
[0027] determining, based on the electrochemical sensor response value sequence, a first electrochemical sensor response value and a second electrochemical sensor response value adjacent to each other in the electrochemical sensor response value sequence, wherein the first electrochemical sensor response value is an electrochemical sensor response value one second before the second electrochemical sensor response value;
[0028] determining, based on the semiconductor sensor response value sequence, a first semiconductor sensor response value and a second semiconductor sensor response value adjacent to each other in the semiconductor sensor response value sequence, wherein the first semiconductor sensor response value is a semiconductor sensor response value one second before the second semiconductor sensor response value, and the electrochemical sensor response value and the semiconductor sensor response value have the same response time;
[0029] obtaining a correction difference value based on the first electrochemical sensor response value, the second electrochemical sensor response value, a conversion coefficient between the semiconductor sensor and the electrochemical sensor, the first semiconductor sensor response value, and the second semiconductor sensor response value;
[0030] When the correction difference is greater than a preset value, the second electrochemical sensor response value is corrected according to the first electrochemical sensor response value, the conversion coefficient between the semiconductor sensor and the electrochemical sensor, the first semiconductor sensor response value, and the second semiconductor sensor response value to obtain a corrected electrochemical sensor response value.
[0031] In one embodiment, the step of obtaining an alcohol detection result based on the calibrated electrochemical sensor response value includes:
[0032] determining a current value according to the calibrated electrochemical sensor response value;
[0033] Determine a mapping relationship table between current value and alcohol concentration;
[0034] An alcohol detection result is obtained based on the current value and a mapping relationship table between the current value and the alcohol concentration.
[0035] In one embodiment, before the step of determining the temperature range corresponding to the ambient temperature value, the method further includes:
[0036] Get the air pressure response value of the air pressure sensor;
[0037] When the air pressure response value is greater than a preset air pressure response value, the step of determining the temperature interval corresponding to the ambient temperature value is performed.
[0038] In addition, to achieve the above-mentioned purpose, the present application also proposes an alcohol detection device based on a dual sensor, the alcohol detection device based on a dual sensor comprising:
[0039] An alcohol detection module, used to obtain an electrochemical sensor response value collected by the electrochemical sensor and a semiconductor sensor response value collected by the semiconductor sensor;
[0040] A temperature acquisition module is used to obtain the ambient temperature value collected by the temperature sensor and determine the temperature range corresponding to the ambient temperature value;
[0041] a detection and correction module, configured to correct the electrochemical sensor response value based on the semiconductor sensor response value when the ambient temperature value is within a first temperature range, to obtain a corrected electrochemical sensor response value;
[0042] The detection output module is used to obtain an alcohol detection result according to the calibrated electrochemical sensor response value.
[0043] In addition, to achieve the above-mentioned purpose, the present application also proposes an alcohol detection device based on a dual sensor, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program is configured to implement the steps of the alcohol detection method based on a dual sensor as described above.
[0044] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium. A computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the dual-sensor based alcohol detection method as described above are implemented.
[0045] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the steps of the dual-sensor based alcohol detection method as described above.
[0046] One or more technical solutions proposed in the present application have at least the following technical effects: obtaining an electrochemical sensor response value collected by an electrochemical sensor and a semiconductor sensor response value collected by a semiconductor sensor, obtaining an ambient temperature value collected by a temperature sensor, determining a temperature range corresponding to the ambient temperature value, correcting the electrochemical sensor response value based on the semiconductor sensor response value when the ambient temperature value is in a first temperature range to obtain a corrected electrochemical sensor response value, obtaining an alcohol detection result based on the corrected electrochemical sensor response value, measuring alcohol concentration by simultaneously using an electrochemical alcohol sensor and a semiconductor alcohol sensor, using different alcohol concentration calculation methods according to different ambient temperatures, and using the semiconductor alcohol sensor response value to correct the electrochemical alcohol sensor response value under high and low temperature conditions, thereby improving the accuracy of the alcohol lock under high and low temperature conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0049] Figure 1 A flow chart of the first embodiment of the alcohol detection method based on dual sensors of the present application is provided;
[0050] Figure 2 This is a block diagram of the alcohol lock principle provided by an embodiment of the alcohol detection method based on dual sensors of this application;
[0051] Figure 3 An alcohol sensor response curve diagram provided for an embodiment of the dual-sensor alcohol detection method of this application;
[0052] Figure 4 This is a graph showing the response curves of the electrochemical sensor under high and low temperature conditions provided in an embodiment of the alcohol detection method based on dual sensors of this application;
[0053] Figure 5 A block diagram of the principle of an improved alcohol lock provided in accordance with an embodiment of the alcohol detection method based on dual sensors of the present application;
[0054] Figure 6 This is a schematic diagram of the module structure of the alcohol detection device based on dual sensors according to an embodiment of the present application;
[0055] Figure 7 This is a schematic diagram of the device structure of the hardware operating environment involved in the alcohol detection method based on dual sensors in an embodiment of the present application.
[0056] The purpose, features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0057] It should be understood that the specific embodiments described herein are merely used to explain the technical solutions of the present application and are not intended to limit the present application.
[0058] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0059] The main solution of the embodiment of the present application is: obtaining an electrochemical sensor response value collected by the electrochemical sensor and a semiconductor sensor response value collected by the semiconductor sensor; obtaining an ambient temperature value collected by the temperature sensor, and determining a temperature range corresponding to the ambient temperature value; when the ambient temperature value is in a first temperature range, correcting the electrochemical sensor response value based on the semiconductor sensor response value to obtain a corrected electrochemical sensor response value; and obtaining an alcohol detection result based on the corrected electrochemical sensor response value.
[0060] In this embodiment, for ease of description, the following description is made by taking the identification of an alcohol detection device based on a dual sensor as the execution subject.
[0061] Existing alcohol detection methods typically use an electrochemical or semiconductor alcohol sensor. Electrochemical sensors offer relatively high accuracy but are also expensive. Imported electrochemical sensors are particularly expensive, contributing to the high cost of alcohol locks, severely hindering their widespread use. Semiconductor alcohol sensors, while inexpensive, offer poor accuracy. Furthermore, alcohol locks using a single electrochemical alcohol sensor operate within a temperature range that is difficult to meet the automotive ambient temperature requirements of -40°C to 85°C. The response curve drifts under high and low temperature conditions, resulting in poor accuracy.
[0062] The present application provides a solution, which obtains an electrochemical sensor response value collected by an electrochemical sensor and a semiconductor sensor response value collected by a semiconductor sensor, obtains an ambient temperature value collected by a temperature sensor, determines a temperature range corresponding to the ambient temperature value, and when the ambient temperature value is in a first temperature range, corrects the electrochemical sensor response value based on the semiconductor sensor response value to obtain a corrected electrochemical sensor response value, obtains an alcohol detection result based on the corrected electrochemical sensor response value, and improves the accuracy of the alcohol lock under high and low temperature conditions.
[0063] It can be seen from the above embodiments that the present application obtains the electrochemical sensor response value collected by the electrochemical sensor and the semiconductor sensor response value collected by the semiconductor sensor, obtains the ambient temperature value collected by the temperature sensor, determines the temperature range corresponding to the ambient temperature value, and when the ambient temperature value is in the first temperature range, corrects the electrochemical sensor response value based on the semiconductor sensor response value to obtain the corrected electrochemical sensor response value, obtains the alcohol detection result according to the corrected electrochemical sensor response value, and improves the accuracy of the alcohol lock under high and low temperature conditions.
[0064] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, mobile phone, etc., or an electronic device capable of performing the above functions, such as a dual-sensor alcohol detection device. The following uses a dual-sensor alcohol detection device as an example to illustrate this embodiment and the following embodiments.
[0065] Based on this, the embodiment of the present application provides an alcohol detection method based on dual sensors, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the alcohol detection method based on dual sensors of the present application.
[0066] In this embodiment, the dual-sensor alcohol detection method includes steps S10 to S40:
[0067] Step S10 , acquiring an electrochemical sensor response value collected by the electrochemical sensor and a semiconductor sensor response value collected by the semiconductor sensor.
[0068] It should be noted that both the electrochemical sensor and the semiconductor sensor are deployed in the handheld end of the alcohol lock, wherein the alcohol lock includes a handheld end and a control box, such as Figure 2 As shown, Figure 2This is a block diagram of the alcohol lock mechanism. Each time the driver starts the vehicle, they blow into a handheld device. A pressure sensor in the handheld device detects whether the blowing pressure and duration meet the requirements. A gas sensor then checks whether the alcohol concentration in the blown air meets the requirements. Based on the test results, the control box determines whether the wiring harness between the ignition switch and the control panel is connected. If the alcohol test result is below the set threshold, the wiring harness between the ignition switch and the control panel is connected, allowing the vehicle to start normally. Otherwise, the ignition switch will not start the vehicle, ensuring that the driver cannot start the vehicle after drinking. Current alcohol sensors are either electrochemical or semiconductor sensors.
[0069] It should be understood that if Figure 3 As shown, Figure 3 This is the response curve of the alcohol sensor. The alcohol detection of existing alcohol locks usually uses an electrochemical or semiconductor alcohol sensor to collect the response value of the alcohol sensor for 10s to 20s (such as current, voltage, resistance or temperature, etc.), and then integrates the response value with time and performs a linear conversion (adding bias and / or multiplying by a conversion coefficient) to obtain the alcohol concentration value (mg / 100ml). Then, based on the alcohol concentration value, it is determined whether the vehicle is allowed to start. Existing alcohol lock alcohol detection methods usually use an electrochemical or semiconductor alcohol sensor. Electrochemical alcohol sensors have relatively high accuracy but are also expensive. In particular, imported electrochemical alcohol sensors are very expensive, which makes the price of alcohol locks high, seriously restricting the promotion and use of alcohol locks. Although semiconductor alcohol sensors are cheap, their accuracy is poor. In addition, the operating temperature range of the alcohol lock with a single electrochemical alcohol sensor is difficult to meet the vehicle ambient temperature requirements of -40℃ to 85℃. The response curve will drift under high and low temperature conditions, resulting in poor accuracy. Figure 4 As shown, Figure 4 This is the response curve of the electrochemical sensor under high and low temperature conditions.
[0070] Therefore, this embodiment proposes a configuration of an alcohol lock, in which a temperature sensor, an air pressure sensor, an electrochemical alcohol sensor, and a semiconductor alcohol sensor are deployed in the handheld end of the alcohol lock. Compared with the current alcohol lock, the addition of an air pressure sensor and the use of an electrochemical alcohol sensor and a semiconductor alcohol sensor to realize alcohol detection can improve the accuracy of alcohol detection.
[0071] In the specific implementation, refer to Figure 5 , Figure 5It is a schematic block diagram of an improved alcohol lock principle. When the driver triggers the ignition switch to attempt to connect the vehicle power supply, the control box needs to receive the ignition signal transmitted from the ignition switch through the wiring harness within one cycle. Then, the driver blows air through the blowing end of the alcohol lock to detect the alcohol concentration in the exhaled gas of the driver, and transmits the generated alcohol signal to the control box. The control box can determine whether to connect the vehicle power supply based on the ignition signal and the alcohol signal. Therefore, during alcohol detection, it is possible to record the electrochemical sensor response value and the semiconductor sensor response value generated by the electrochemical sensor and the semiconductor sensor based on the alcohol content in the gas during the driver's blowing process. The frequency of the electrochemical sensor response value and the semiconductor sensor response value can be generated once per second, and the specific frequency can be set according to the actual situation. This embodiment does not limit this.
[0072] Step S20: Obtain the ambient temperature value collected by the temperature sensor and determine the temperature range corresponding to the ambient temperature value.
[0073] It should be noted that the ambient temperature value refers to the current temperature within the vehicle space, which is detected by the temperature sensor deployed in the handheld end of the alcohol lock. According to different specific temperature values, the ambient temperature can be divided into multiple temperature ranges, and these multiple temperature ranges are mutually exclusive. And all the temperature ranges combined are continuous temperature ranges. It can be understood that the maximum range boundary value and the minimum range boundary value of the temperature range are set based on the highest temperature and the lowest temperature of the actual environment.
[0074] In a specific implementation, the temperature sensor can continuously detect the current ambient temperature, and when the driver blows air, the temperature at this time is defined as the effective temperature value. Therefore, it is possible to determine the temperature range in which the current effective temperature value is located according to the current effective temperature value. For different temperature ranges, there are respective calibration strategies for the electrochemical alcohol sensor response value and the semiconductor alcohol sensor response value to avoid the change of the temperature value affecting the accuracy of the alcohol detection result.
[0075] Step S30: When the ambient temperature value is within the first temperature range, calibrate the electrochemical sensor response value based on the semiconductor sensor response value to obtain the calibrated electrochemical sensor response value.
[0076] It should be noted that according to the influence relationship of the temperature value on the alcohol detection result, several special temperature values can be determined, and multiple temperature ranges are divided based on these special temperature values. For example, in this embodiment, four special temperature values T1, T2, T3, and T4 can be determined, and the first temperature range refers to the temperature range when T < T1 or T > T4.
[0077] In a specific implementation, when the ambient temperature value is within the first temperature range, that is, the temperature T < T1 or T > T4, the response value of the electrochemical sensor can be corrected according to the response value of the semiconductor sensor, and the corrected response value of the electrochemical sensor can be obtained. When performing the correction, the response value of the electrochemical sensor can be corrected by means of dual-sensor fusion. Specifically, the conversion coefficient between the semiconductor sensor and the electrochemical sensor can be determined; the adjacent first electrochemical sensor response value and the second electrochemical sensor response value in the response value of the electrochemical sensor are determined, where the first electrochemical sensor response value is the response value of the electrochemical sensor one second before the second electrochemical sensor response value; the adjacent first semiconductor sensor response value and the second semiconductor sensor response value in the response value of the semiconductor sensor are determined, where the first semiconductor sensor response value is the response value of the semiconductor sensor one second before the second semiconductor sensor response value, and the response times of the response value of the electrochemical sensor and the response value of the semiconductor sensor are the same; the second electrochemical sensor response value is corrected according to the first electrochemical sensor response value, the conversion coefficient between the semiconductor sensor and the electrochemical sensor, the first semiconductor sensor response value, and the second semiconductor sensor response value, and the corrected response value of the electrochemical sensor is obtained. Specifically, when the driver blows air, the response values X
[0079] , of the electrochemical sensor for n seconds and the response values X 电1 of the semiconductor sensor can be measured respectively, and the values of x 电2 to x 电n in the response value X 半 of the electrochemical sensor are corrected through Formula 1, and finally the alcohol concentration is calculated using the corrected response value X 电n of the electrochemical sensor. In Formula 1, x<000... 半i are the response values of the electrochemical sensor and the semiconductor sensor at the i-th second respectively, and α is the conversion coefficient between the semiconductor sensor and the electrochemical sensor, which is obtained from the calibration test.
[0078] X 电i = X 电i-1 + α(X 半i - X 半i-1 ) Formula 1
[0079]
[0079] In a feasible implementation manner, after the step of obtaining the ambient temperature value collected by the temperature sensor and determining the temperature range corresponding to the ambient temperature value, the following steps are further included:
[0080] Determine the conversion coefficient between the semiconductor sensor and the electrochemical sensor;
[0081] When the environmental temperature value is in the second temperature range, determine the electrochemical sensor response value sequence and the semiconductor sensor response value sequence;
[0082] Based on the electrochemical sensor response value sequence, determine the adjacent first electrochemical sensor response value and the second electrochemical sensor response value in the electrochemical sensor response value sequence, where the first electrochemical sensor response value is the electrochemical sensor response value one second before the second electrochemical sensor response value;
[0083] Based on the semiconductor sensor response value sequence, determine the adjacent first semiconductor sensor response value and the second semiconductor sensor response value in the semiconductor sensor response value sequence, where the first semiconductor sensor response value is the semiconductor sensor response value one second before the second semiconductor sensor response value, and the response times of the electrochemical sensor response value and the semiconductor sensor response value are the same;
[0084] Obtain a correction difference according to the first electrochemical sensor response value, the second electrochemical sensor response value, the conversion coefficient between the semiconductor sensor and the electrochemical sensor, the first semiconductor sensor response value, and the second semiconductor sensor response value;
[0085] When the correction difference is less than a preset value, correct the second electrochemical sensor response value according to the first electrochemical sensor response value, the conversion coefficient between the semiconductor sensor and the electrochemical sensor, the first semiconductor sensor response value, and the second semiconductor sensor response value to obtain a corrected electrochemical sensor response value.
[0086] It should be noted that according to the influence relationship of the temperature value on the alcohol detection result, several special temperature values can be determined, and multiple temperature ranges can be divided based on these special temperature values. For example, in this embodiment, four special temperature values T1, T2, T3, and T4 can be determined, and the second temperature range refers to the temperature range when the temperature T satisfies T1 ≤ T < T2.
[0087] In a specific implementation, when the electrochemical sensor response value X 电 and the semiconductor sensor response value X 半 are obtained, use formula 2 to calculate the Δ 电 value corresponding to each value of x 电2 ~x 电n in X i . If Δ i is less than zero, then use formula 1 to correct X 电Perform calibration, otherwise do not perform calibration, and finally use the electrochemical sensor response value X after partial calibration 电 Calculate the alcohol concentration.
[0088] Δ i = X 电i - X 电i-1 - α(X 半i - X 半i-1 ) Formula 2
[0089] In a feasible implementation manner, after the step of obtaining the ambient temperature value collected by the temperature sensor and determining the temperature range corresponding to the ambient temperature value, the following is further included:
[0090] When the ambient temperature value is in the third temperature range, obtain the alcohol detection result according to the electrochemical sensor response value.
[0091] It should be noted that according to the influence relationship of the temperature value on the alcohol detection result, several special temperature values can be determined, and based on these special temperature values, multiple temperature ranges can be divided. For example, in this embodiment, four special temperature values T1, T2, T3, and T4 can be determined, and the third temperature range refers to the temperature range when the temperature T is T2 ≤ T < T3.
[0092] In specific implementation, when the current temperature value is within T2 ≤ T < T3, the alcohol detection result can be directly obtained according to the electrochemical sensor response value.
[0093] In a feasible implementation manner, after the step of obtaining the ambient temperature value collected by the temperature sensor and determining the temperature range corresponding to the ambient temperature value, the following is further included:
[0094] Determine the conversion coefficient between the semiconductor sensor and the electrochemical sensor;
[0095] When the ambient temperature value is in the fourth temperature range, determine the electrochemical sensor response value sequence and the semiconductor sensor response value sequence;
[0096] Based on the electrochemical sensor response value sequence, determine the adjacent first electrochemical sensor response value and the second electrochemical sensor response value in the electrochemical sensor response value sequence, where the first electrochemical sensor response value is the electrochemical sensor response value one second before the second electrochemical sensor response value;
[0097] Determine the adjacent first semiconductor sensor response value and second semiconductor sensor response value in the semiconductor sensor response value sequence based on the semiconductor sensor response value sequence, where the first semiconductor sensor response value is the semiconductor sensor response value one second before the second semiconductor sensor response value, and the response times of the electrochemical sensor response value and the semiconductor sensor response value are the same;
[0098] Obtain a correction difference based on the first electrochemical sensor response value, the second electrochemical sensor response value, the conversion coefficient between the semiconductor sensor and the electrochemical sensor, the first semiconductor sensor response value, and the second semiconductor sensor response value;
[0099] When the correction difference is greater than a preset value, correct the second electrochemical sensor response value based on the first electrochemical sensor response value, the conversion coefficient between the semiconductor sensor and the electrochemical sensor, the first semiconductor sensor response value, and the second semiconductor sensor response value to obtain a corrected electrochemical sensor response value.
[0100] It should be noted that according to the influence relationship of the temperature value on the alcohol detection result, several special temperature values can be determined, and multiple temperature intervals can be divided based on these special temperature values. For example, in this embodiment, four special temperature values T1, T2, T3, and T4 can be determined, and the second temperature interval refers to the temperature interval when the temperature T satisfies T3 ≤ T < T4.
[0101] In a specific implementation, when the electrochemical sensor response value X 电 and the semiconductor sensor response value X 半 are obtained, use formula 2 to calculate the Δ <( 电 value corresponding to each value of x 电2 ~x 电n in the electrochemical sensor response value X i . If Δ i is greater than zero, then correct X 电 using formula 1, otherwise do not correct it. Finally, use the partially corrected electrochemical sensor response value X 电 to calculate the alcohol concentration.
[0102] Step S40, obtain an alcohol detection result based on the corrected electrochemical sensor response value.
[0103] It should be noted that the alcohol detection result refers to the detection result of the alcohol concentration in the gas when the driver blows air, and is used to measure the alcohol concentration.
[0104] In a specific implementation, when the alcohol detection result is obtained based on the calibrated electrochemical sensor response value, the current value can be determined through the calibrated electrochemical sensor response value, and a mapping relationship table between the calibrated current value and the alcohol concentration can be obtained at the same time, wherein the mapping relationship table between the current value and the alcohol concentration can reflect the corresponding relationship between the current value and the alcohol concentration, and the alcohol detection result can be obtained by traversing the mapping relationship table between the current value and the alcohol concentration based on the current value.
[0105] In a feasible implementation manner, before the step of determining the temperature range corresponding to the ambient temperature value, the step further includes:
[0106] Get the air pressure response value of the air pressure sensor;
[0107] When the air pressure response value is greater than a preset air pressure response value, the step of determining the temperature interval corresponding to the ambient temperature value is performed.
[0108] It should be noted that the air pressure response value is collected by the air pressure sensor. Based on the air pressure response value, it can be identified whether the driver is blowing according to the detection standard during the current blowing process, and a cheating detection function can be provided for the alcohol test results.
[0109] It should be noted that, since the alcohol lock handheld terminal is a cylindrical device that can pass air flow, although an exhaust port is provided, in order to be able to more accurately measure the alcohol concentration, the exhaust port can exhaust with an exhaust volume that is less than the blowing volume, and can relieve the pressure of the alcohol lock handheld terminal to a certain extent. When there is air leakage when blowing, or the blowing volume is deliberately reduced, the air pressure value detected by the air pressure sensor will be close to the atmospheric pressure, so the driver's alcohol detection behavior can be detected for cheating. Therefore, only when it is determined that the air pressure response value is greater than the preset air pressure response value, the step of determining the temperature range corresponding to the ambient temperature value is executed to perform alcohol detection.
[0110] This embodiment provides an alcohol detection method based on dual sensors. By acquiring an electrochemical sensor response value collected by an electrochemical sensor and a semiconductor sensor response value collected by a semiconductor sensor, an ambient temperature value collected by a temperature sensor is acquired, and a temperature range corresponding to the ambient temperature value is determined. When the ambient temperature value is in a first temperature range, the electrochemical sensor response value is corrected based on the semiconductor sensor response value to obtain a corrected electrochemical sensor response value. An alcohol detection result is obtained based on the corrected electrochemical sensor response value. Alcohol concentration is measured by simultaneously using the electrochemical alcohol sensor and the semiconductor alcohol sensor, different alcohol concentration calculation methods are used according to different ambient temperatures, and the semiconductor alcohol sensor response value is used to correct the electrochemical alcohol sensor response value under high and low temperature conditions, thereby improving the accuracy of the alcohol lock under high and low temperature conditions.
[0111] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the alcohol detection method based on dual sensors of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0112] This application also provides an alcohol detection device based on dual sensors, please refer to Figure 6 , the alcohol detection device based on dual sensors includes:
[0113] The alcohol detection module 10 is used to obtain the electrochemical sensor response value collected by the electrochemical sensor and the semiconductor sensor response value collected by the semiconductor sensor;
[0114] The temperature acquisition module 20 is used to obtain the ambient temperature value collected by the temperature sensor and determine the temperature range corresponding to the ambient temperature value;
[0115] a detection and correction module 30, configured to correct the electrochemical sensor response value based on the semiconductor sensor response value when the ambient temperature value is within a first temperature range, to obtain a corrected electrochemical sensor response value;
[0116] The detection output module 40 is used to obtain an alcohol detection result according to the calibrated electrochemical sensor response value.
[0117] The dual-sensor alcohol detection device provided in this application utilizes the dual-sensor alcohol detection method of the aforementioned embodiment, and can resolve the technical issue of being unable to accurately detect alcohol under high and low temperature conditions. Compared to the prior art, the beneficial effects of the dual-sensor alcohol detection device provided in this application are the same as those of the dual-sensor alcohol detection method of the aforementioned embodiment. The other technical features of the dual-sensor alcohol detection device are the same as those disclosed in the aforementioned embodiment and are not further elaborated here.
[0118] The present application provides an alcohol detection device based on a dual sensor, and the alcohol detection device based on a dual sensor includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the alcohol detection method based on the dual sensor in the above-mentioned embodiment 1.
[0119] Reference below Figure 7, which shows a schematic structural diagram of a dual-sensor alcohol detection device suitable for implementing an embodiment of the present application. The dual-sensor alcohol detection device in the embodiment of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 7 The dual-sensor based alcohol detection device shown is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present application.
[0120] like Figure 7 As shown, the alcohol detection device based on the dual sensor may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1002 or the program loaded from the storage device 1003 to the random access memory (RAM) 1004. In RAM 1004, various programs and data required for the operation of the alcohol detection device based on the dual sensor are also stored. The processing device 1001, ROM 1002 and RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the dual-sensor-based alcohol detection device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a dual-sensor-based alcohol detection device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have instead.
[0121] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0122] The dual-sensor alcohol detection device provided in this application utilizes the dual-sensor alcohol detection method of the aforementioned embodiment, resolving the technical issue of being unable to accurately detect alcohol under high and low temperature conditions. Compared to the prior art, the dual-sensor alcohol detection device provided in this application achieves the same beneficial effects as the dual-sensor alcohol detection method of the aforementioned embodiment. Other technical features of the dual-sensor alcohol detection device are the same as those disclosed in the aforementioned embodiment and are not further elaborated upon here.
[0123] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0124] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0125] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, a computer program) stored thereon, and the computer-readable program instructions are used to execute the dual-sensor-based alcohol detection method in the above-mentioned embodiment.
[0126] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0127] The computer-readable storage medium may be included in the dual-sensor based alcohol detection device; or it may exist independently without being assembled into the dual-sensor based alcohol detection device.
[0128] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the dual-sensor alcohol detection device, the dual-sensor alcohol detection device:
[0129] Acquiring an electrochemical sensor response value collected by the electrochemical sensor and a semiconductor sensor response value collected by the semiconductor sensor;
[0130] Obtaining an ambient temperature value collected by a temperature sensor, and determining a temperature range corresponding to the ambient temperature value;
[0131] When the ambient temperature value is within a first temperature range, correcting the electrochemical sensor response value based on the semiconductor sensor response value to obtain a corrected electrochemical sensor response value;
[0132] An alcohol detection result is obtained according to the calibrated electrochemical sensor response value.
[0133] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0134] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0135] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.
[0136] The computer-readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned dual-sensor alcohol detection method. This computer-readable storage medium can address the technical issue of being unable to accurately detect alcohol under high and low temperature conditions. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the dual-sensor alcohol detection method provided in the aforementioned embodiments, and are not further elaborated here.
[0137] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned dual-sensor based alcohol detection method when executed by a processor.
[0138] The computer program product provided in this application can solve the technical problem of being unable to accurately detect alcohol under high and low temperature conditions. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the dual-sensor alcohol detection method provided in the above embodiment, and will not be elaborated here.
[0139] The above description is only part of the embodiments of the present application and does not limit the patent scope of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.
Claims
1. An alcohol detection device based on dual sensors, characterized in that: The device comprises: An alcohol detection module, used to obtain an electrochemical sensor response value collected by the electrochemical sensor and a semiconductor sensor response value collected by the semiconductor sensor; A temperature acquisition module is used to obtain an ambient temperature value collected by a temperature sensor and determine a temperature range corresponding to the ambient temperature value, wherein the ambient temperature value is the current temperature in the vehicle; A detection and calibration module, which is used to calibrate the response value of the electrochemical sensor based on the response value of the semiconductor sensor when the ambient temperature value is within the first temperature range, and obtain the calibrated response value of the electrochemical sensor, including: determining four special temperature values T1, T2, T3, and T4, where the first temperature range refers to the temperature range when the temperature T is T < T1 or T > T4, T is the current temperature, and determining the conversion coefficient between the semiconductor sensor and the electrochemical sensor; determining adjacent first and second electrochemical sensor response values in the response value of the electrochemical sensor, where the first electrochemical sensor response value is the response value of the electrochemical sensor one second before the second electrochemical sensor response value; determining adjacent first and second semiconductor sensor response values in the response value of the semiconductor sensor, where the first semiconductor sensor response value is the response value of the semiconductor sensor one second before the second semiconductor sensor response value, and the response times of the electrochemical sensor response value and the semiconductor sensor response value are the same; calibrating the second electrochemical sensor response value according to the first electrochemical sensor response value, the conversion coefficient between the semiconductor sensor and the electrochemical sensor, the first semiconductor sensor response value, and the second semiconductor sensor response value, and obtaining the calibrated response value of the electrochemical sensor. The calibration formula is: , are the response values of the electrochemical sensor and the semiconductor sensor at the i-th second respectively, are the response values of the electrochemical sensor and the semiconductor sensor at the (i - 1)-th second respectively, is the conversion coefficient between the semiconductor sensor and the electrochemical sensor; The detection output module is used to obtain an alcohol detection result according to the calibrated electrochemical sensor response value.
2. The alcohol detection method based on the dual-sensor alcohol detection device according to claim 1, wherein: The alcohol detection method comprises: Acquiring an electrochemical sensor response value collected by the electrochemical sensor and a semiconductor sensor response value collected by the semiconductor sensor; Obtaining an ambient temperature value collected by a temperature sensor and determining a temperature range corresponding to the ambient temperature value, wherein the ambient temperature value is the current temperature in the vehicle; When the ambient temperature value is in the first temperature range, the electrochemical sensor response value is corrected based on the semiconductor sensor response value to obtain the corrected electrochemical sensor response value, including: determining four special temperature values T1, T2, T3, and T4, where the first temperature range refers to the temperature range when the temperature T is T < T1 or T > T4, and T is the current temperature; determining the conversion coefficient between the semiconductor sensor and the electrochemical sensor; determining the adjacent first electrochemical sensor response value and the second electrochemical sensor response value in the electrochemical sensor response value, where the first electrochemical sensor response value is the electrochemical sensor response value one second before the second electrochemical sensor response value; determining the adjacent first semiconductor sensor response value and the second semiconductor sensor response value in the semiconductor sensor response value, where the first semiconductor sensor response value is the semiconductor sensor response value one second before the second semiconductor sensor response value, and the response times of the electrochemical sensor response value and the semiconductor sensor response value are the same; correcting the second electrochemical sensor response value according to the first electrochemical sensor response value, the conversion coefficient between the semiconductor sensor and the electrochemical sensor, the first semiconductor sensor response value, and the second semiconductor sensor response value to obtain the corrected electrochemical sensor response value, where the correction formula is: , are the response values of the electrochemical sensor and the semiconductor sensor at the i-th second respectively, are the response values of the electrochemical sensor and the semiconductor sensor at the i-th second respectively, is the conversion coefficient between the semiconductor sensor and the electrochemical sensor; An alcohol detection result is obtained according to the calibrated electrochemical sensor response value.
3. The alcohol detection method according to claim 2, wherein After the steps of obtaining the ambient temperature value collected by the temperature sensor and determining the temperature range corresponding to the ambient temperature value, the method further includes: Determine the conversion coefficient between semiconductor sensors and electrochemical sensors; When the ambient temperature value is in the second temperature interval, the electrochemical sensor response value sequence and the semiconductor sensor response value sequence are determined. The second temperature interval refers to when the temperature T is temperature range; determining, based on the electrochemical sensor response value sequence, a first electrochemical sensor response value and a second electrochemical sensor response value adjacent to each other in the electrochemical sensor response value sequence, wherein the first electrochemical sensor response value is an electrochemical sensor response value one second before the second electrochemical sensor response value; determining, based on the semiconductor sensor response value sequence, a first semiconductor sensor response value and a second semiconductor sensor response value adjacent to each other in the semiconductor sensor response value sequence, wherein the first semiconductor sensor response value is a semiconductor sensor response value one second before the second semiconductor sensor response value, and the electrochemical sensor response value and the semiconductor sensor response value have the same response time; obtaining a correction difference value based on the first electrochemical sensor response value, the second electrochemical sensor response value, a conversion coefficient between the semiconductor sensor and the electrochemical sensor, the first semiconductor sensor response value, and the second semiconductor sensor response value; When the correction difference is less than a preset value, the second electrochemical sensor response value is corrected according to the first electrochemical sensor response value, the conversion coefficient between the semiconductor sensor and the electrochemical sensor, the first semiconductor sensor response value, and the second semiconductor sensor response value to obtain a corrected electrochemical sensor response value.
4. The alcohol detection method according to claim 2, wherein After the steps of obtaining the ambient temperature value collected by the temperature sensor and determining the temperature range corresponding to the ambient temperature value, the method further includes: When the ambient temperature is in the third temperature range, the alcohol detection result is obtained according to the response value of the electrochemical sensor. The third temperature range refers to when the temperature T is temperature range.
5. The alcohol detection method according to claim 2, wherein After the steps of obtaining the ambient temperature value collected by the temperature sensor and determining the temperature range corresponding to the ambient temperature value, the method further includes: Determine the conversion coefficient between semiconductor sensors and electrochemical sensors; When the ambient temperature value is within a fourth temperature interval, determining an electrochemical sensor response value sequence and a semiconductor sensor response value sequence; determining, based on the electrochemical sensor response value sequence, a first electrochemical sensor response value and a second electrochemical sensor response value adjacent to each other in the electrochemical sensor response value sequence, wherein the first electrochemical sensor response value is an electrochemical sensor response value one second before the second electrochemical sensor response value; determining, based on the semiconductor sensor response value sequence, a first semiconductor sensor response value and a second semiconductor sensor response value adjacent to each other in the semiconductor sensor response value sequence, wherein the first semiconductor sensor response value is a semiconductor sensor response value one second before the second semiconductor sensor response value, and the electrochemical sensor response value and the semiconductor sensor response value have the same response time; obtaining a correction difference value based on the first electrochemical sensor response value, the second electrochemical sensor response value, a conversion coefficient between the semiconductor sensor and the electrochemical sensor, the first semiconductor sensor response value, and the second semiconductor sensor response value; When the correction difference is greater than a preset value, the second electrochemical sensor response value is corrected according to the first electrochemical sensor response value, the conversion coefficient between the semiconductor sensor and the electrochemical sensor, the first semiconductor sensor response value, and the second semiconductor sensor response value to obtain a corrected electrochemical sensor response value.
6. The alcohol detection method according to claim 2, wherein: The step of obtaining an alcohol detection result according to the calibrated electrochemical sensor response value comprises: determining a current value according to the calibrated electrochemical sensor response value; Determine a mapping relationship table between current value and alcohol concentration; An alcohol detection result is obtained based on the current value and a mapping relationship table between the current value and the alcohol concentration.
7. The alcohol detection method according to any one of claims 2 to 6, wherein: Before the step of determining the temperature range corresponding to the ambient temperature value, the method further includes: Get the air pressure response value of the air pressure sensor; When the air pressure response value is greater than a preset air pressure response value, the step of determining the temperature interval corresponding to the ambient temperature value is performed.
Citation Information
Patent Citations
Breathalyzer based on sensor fusion and a breathalyzer measurement method using the breathalyzer
KR102598705B1
Ion detecting apparatus
US20140346347A1