In-vehicle living body detection method, device, vehicle, equipment and storage medium
By setting up dual-station nodes in the car to process live body detection signals and input the breath detection model, the existing technology problems of high cost and light sensitivity of live body detection in the car are solved, and efficient and accurate in-car live body detection is achieved.
Patent Information
- Application Number
- CN202310403238.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-14
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2043-04-14
AI Technical Summary
Existing in-vehicle living body detection technology is expensive, sensitive to light, and has poor accuracy. Especially at night or in low-light environments, detection performance drops significantly.
Using in-vehicle sending equipment and receiving equipment as dual-station nodes, the living body detection signal sequence is generated by first sampling the original detection signal, the detection complex vector is generated and converted into a detection digital time-frequency signal, and the pre-trained breath detection model is input to obtain In-car live body detection results use ultra-wideband signals and UWB digital key systems to reduce costs and improve detection performance.
It is possible to improve the accuracy and robustness of in-vehicle live body detection at low cost, reduce dependence on light, and enhance detection performance, especially at night or in low-light environments.
Smart Images

Figure CN116461456B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a method, device, vehicle, equipment and storage medium for in-vehicle living body detection. Background Art
[0002] In recent years, there have been endless reports of children being forgotten in cars, which has also attracted the attention of relevant organizations to the in-car living body detection function, especially the child abandonment detection function, which has been included in the safety bonus items of Euro-NCAP (European New Car Assessment Program). my country's C-NCAP (China New Car Assessment Program) will also include this function configuration in the safety bonus items of new car assessment in 2025, and the program tends to use direct detection to detect living bodies left in the car.
[0003] In the related technologies, the method of detecting living things in the car is often realized by cameras. For example, the living things in the car can be directly observed by the camera, but due to the limitation of the field of view, multiple cameras are often required to solve the blind spot problem, which is costly. At the same time, the camera is sensitive to light, and the detection performance will be significantly reduced at night or in dimly lit scenes in the car. Therefore, a low-cost, efficient and accurate method for detecting living things in the car is urgently needed. Summary of the invention
[0004] In view of the shortcomings of the prior art described above, the purpose of the present invention is to provide a method, device, vehicle, equipment and storage medium for in-vehicle liveness detection, which are used to solve the technical problems of high cost, great influence of light on the accuracy and poor reliability of the in-vehicle liveness detection method in the related art.
[0005] In view of the above problems, the present invention provides a method for in-vehicle liveness detection, the method comprising: obtaining a liveness detection signal sequence of a vehicle to be detected, the liveness detection signal sequence being obtained by first sampling an original detection signal received by an in-vehicle receiving device and sent by an in-vehicle sending device; generating at least one detection complex vector according to a detection channel complex signal of at least one detection sampling channel of the liveness detection signal sequence; generating a detection digitized time-frequency signal based on all the detection complex vectors; inputting the detection digitized time-frequency signal into a pre-trained breathing detection model to obtain an initial detection result, and generating an in-vehicle liveness detection result of the vehicle to be detected based on the initial detection result, the breathing detection model being obtained by training multiple sample digitized time-frequency signals, the multiple sample digitized time-frequency signals being generated based on multiple sample detection signal sequences of sample vehicles, and at least part of the sample detection signal sequence being obtained by second sampling an original sample signal received when a living body is present in the sample vehicle.
[0006] In one embodiment of the present invention, before obtaining the liveness detection signal sequence of the vehicle to be detected, the method includes: controlling the in-vehicle sending device to send an original detection signal, wherein the original detection signal is an ultra-wideband signal; receiving the original detection signal by at least one of the in-vehicle receiving devices, performing a first sampling on the received original detection signal, and obtaining the liveness detection signal sequence; wherein the in-vehicle sending device and the in-vehicle receiving device are arranged inside the vehicle to be detected.
[0007] In one embodiment of the present invention, a first sampling is performed on the received original detection signal to obtain the liveness detection signal sequence, including: continuously sampling the received original detection signal within a preset time window to obtain a channel impulse response, and using the channel impulse response as the original signal sequence; continuously sampling the received original detection signal multiple times within the preset time window, and generating the liveness detection signal sequence based on the obtained multiple original signal sequences; and, at each sampling, superimposing all the original detection signals reaching the in-vehicle receiving device at the sampling moment to obtain a detection channel complex signal of the detection sampling channel at the sampling moment.
[0008] In one embodiment of the present invention, at least one detection complex vector is generated based on the detection channel complex signal of at least one detection sampling channel of the living body detection signal sequence, including: determining the detection signal modulus of each detection sampling channel based on the detection channel complex signal; generating the detection complex vector of the detection sampling period based on a first target complex signal and multiple second target complex signals, the first target complex signal is the detection channel complex signal corresponding to the maximum detection signal modulus value, and the second target complex signal is the detection channel complex signal whose signal reception time is later than the first target complex signal.
[0009] In one embodiment of the present invention, a detection digitized time-frequency signal is generated based on all detection complex vectors, including: generating a detection matrix based on all detection complex vectors, each row of the detection matrix corresponds to a detection channel complex signal of a detection sampling period, and each column of the detection matrix corresponds to a detection sampling channel; calculating the detection matrix to obtain a detection time domain signal and a detection frequency domain signal; merging the detection time domain signal and the detection frequency domain signal to obtain a detection time-frequency signal, and normalizing the detection time-frequency signal to obtain the detection digitized time-frequency signal.
[0010] In one embodiment of the present invention, if the number of the detection complex vectors is multiple, a detection matrix is generated based on all the detection complex vectors, including at least one of the following: if the number of the detection complex vectors reaches a first preset vector threshold and the number of historical complex vectors is greater than zero, a detection matrix is generated based on all the obtained detection complex vectors; if the number of the detection complex vectors reaches a first preset vector threshold and the number of historical complex vectors is equal to zero, the detection complex vectors are continued to be generated based on the detection channel complex signals of the detection sampling channel of the living body detection signal sequence until the number of the detection complex vectors reaches a second preset vector threshold, and a detection matrix is generated based on all the obtained detection complex vectors, and the second preset vector threshold is greater than the first preset vector threshold.
[0011] In one embodiment of the present invention, if the number of the detection complex vectors is multiple, generating a detection matrix based on all the detection complex vectors includes: writing the obtained detection complex vectors into a preset receiving buffer in sequence; monitoring the current number of detection complex vectors in the preset receiving buffer; if the current number reaches a third preset vector threshold, generating a detection matrix based on all the detection complex vectors in the preset receiving buffer; and clearing the detection complex vectors in the preset receiving buffer that are sorted before a fourth preset vector threshold, where the fourth preset vector threshold is less than the third preset vector threshold.
[0012] In one embodiment of the present invention, before generating the in-vehicle liveness detection result of the vehicle to be detected based on the initial detection result, the method includes: repeatedly generating multiple detection complex vectors based on the detection channel complex signals of multiple detection sampling channels of the liveness detection signal sequence, and the detection sampling channels selected for the detection complex vectors generated each time are different; generating a detection digitized time-frequency signal based on all the detection complex vectors generated each time to obtain multiple detection digitized time-frequency signals; and inputting the multiple detection digitized time-frequency signals into a pre-trained breathing detection model respectively to obtain the initial detection result of each detection digitized time-frequency signal.
[0013] In one embodiment of the present invention, an in-vehicle liveness detection result of the vehicle to be detected is generated based on the initial detection result, including: determining a confidence detection result value of the initial detection result according to an initial detection result and a preset confidence weight of the initial detection result, the initial detection result being a first preset result value or a second preset result value, the first preset result value is not equal to the second preset result value, and the preset confidence weights of the initial detection results are not equal; determining a total detection result value based on the confidence detection result values of all initial detection results; and determining the in-vehicle liveness detection result of the vehicle to be detected according to a comparison result between the total detection result value and a preset observation threshold.
[0014] In one embodiment of the present invention, the method for determining the total test result value includes:
[0015]
[0016] Among them, Prob is the total detection result value, L is the number of initial detection results, α is the preset weight attenuation factor, i is the ordinal value of the initial detection result, and pred t+L-i is the initial detection result of the Lith time, t is Pred t The corresponding moment, is the preset confidence weight of the Li-th initial detection result.
[0017] In one embodiment of the present invention, determining the in-vehicle liveness detection result of the vehicle to be detected according to the comparison result of the total detection result value and the preset observation threshold includes:
[0018] If the total detection result value is greater than the preset observation threshold, the in-vehicle liveness detection result of the vehicle to be detected is liveness; if the total detection result value is less than the preset observation threshold, the in-vehicle liveness detection result of the vehicle to be detected is no liveness, wherein the first preset result value is less than the second preset result value, the in-vehicle liveness detection result represented by the first preset result value is no liveness, and the in-vehicle liveness detection result represented by the second preset result value is liveness;
[0019] or,
[0020] If the total detection result value is less than the preset observation threshold, the in-vehicle liveness detection result of the vehicle to be detected is that there is a live body; if the total detection result value is greater than the preset observation threshold, the in-vehicle liveness detection result of the vehicle to be detected is that there is no live body, wherein the first preset result value is greater than the second preset result value, the in-vehicle liveness detection result represented by the first preset result value is that there is no live body, and the in-vehicle liveness detection result represented by the second preset result value is that there is a live body.
[0021] In one embodiment of the present invention, before determining the confidence detection result value of an initial detection result based on an initial detection result and the preset confidence weight of the initial detection result, the method includes: storing each initial detection result of the detected digitized time-frequency signal into a preset result queue in sequence; determining the preset confidence weight of the initial detection result based on a preset weight attenuation factor, the sequence value of the initial detection result in the preset result queue, and the length of the preset result queue, and the preset confidence weights of each initial detection result in the preset result queue are reduced in sequence.
[0022] In one embodiment of the present invention, before the detected digitized time-frequency signal is input into a pre-trained breathing detection model, the method includes: obtaining multiple sample detection signal sequences of a sample vehicle, wherein the sample detection signal sequences are obtained by performing a second sampling on an original sample signal received by a sample receiving device and sent by a sample sending device, wherein the sample receiving device and the sample sending device are arranged inside the sample vehicle, and at least part of the original sample signal is a signal detected when a living body exists in the sample vehicle; generating at least one sample complex vector according to a sample channel complex signal of at least one sample sampling channel of the sample detection signal sequence, and repeating the process multiple times. , obtain multiple sample complex vector sets; generate a sample digitized time-frequency signal based on each sample complex vector set to obtain multiple sample digitized time-frequency signals; label each sample digitized time-frequency signal according to the sample live state to obtain a live label of each sample digitized time-frequency signal, wherein the sample live state is the existence state of the live body in the sample vehicle when the sample detection signal generating the sample digitized time-frequency signal is detected; generate a training set according to multiple sample digitized time-frequency signals and the live labels of each of the sample digitized time-frequency signals, train the initial detection model through the training set until the initial detection model converges, and obtain the breathing detection model.
[0023] In one embodiment of the present invention, after generating the in-vehicle liveness detection result of the vehicle to be detected based on the initial detection result, the method further includes: if the in-vehicle liveness detection result is that there is a live body, controlling the vehicle to be detected to execute a preset alarm measure.
[0024] An embodiment of the present invention also provides an in-vehicle liveness detection device, the device comprising: a signal acquisition module, used to acquire a liveness detection signal sequence of a vehicle to be detected, the liveness detection signal sequence being obtained by first sampling an original detection signal received by an in-vehicle receiving device and sent by an in-vehicle sending device; a complex vector generation module, used to generate at least one detection complex vector according to a detection channel complex signal of at least one detection sampling channel of the liveness detection signal sequence; a digital time-frequency signal generation module, used to generate a detection digital time-frequency signal based on all detection complex vectors; a detection module, used to input the detection digital time-frequency signal into a pre-trained breathing detection model to obtain an initial detection result, and generate an in-vehicle liveness detection result of the vehicle to be detected based on the initial detection result, the breathing detection model being obtained by training multiple sample digital time-frequency signals, the multiple sample digital time-frequency signals being generated based on multiple sample detection signal sequences of sample vehicles, and at least part of the sample detection signal sequence being obtained by second sampling an original sample signal received when a living body is present in the sample vehicle.
[0025] An embodiment of the present invention also provides a vehicle, comprising an in-vehicle transmitting device and an in-vehicle receiving device, wherein the in-vehicle receiving device is configured with an in-vehicle liveness detection device as described in the above embodiment; the in-vehicle transmitting device is used to send an original detection signal; the in-vehicle receiving device is used to receive the original detection signal passing through the interior of the vehicle, and transmit the original detection signal to the in-vehicle liveness detection device, so as to detect the presence of a living body inside the vehicle through the in-vehicle liveness detection device.
[0026] An embodiment of the present invention also provides a vehicle, comprising an in-vehicle transmitting device, an in-vehicle receiving device and a micro-control unit, wherein the micro-control unit is configured with an in-vehicle liveness detection device as described in the above embodiment; the in-vehicle transmitting device is used to send an original detection signal; the in-vehicle receiving device is used to receive the original detection signal passing through the interior of the vehicle, and transmit the original detection signal to the in-vehicle liveness detection device in the micro-control unit through a bus, so as to detect the presence of a living body inside the vehicle through the in-vehicle liveness detection device.
[0027] An embodiment of the present invention also provides an electronic device, including a processor, a memory and a communication bus; the communication bus is used to connect the processor and the memory; the processor is used to execute a computer program stored in the memory to implement a method as described in any one of the above embodiments.
[0028] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. The computer program is used to enable the computer to execute the method as described in any one of the above embodiments.
[0029] As described above, the present invention provides a method, device, vehicle, equipment and storage medium for detecting living bodies in a vehicle, which have the following beneficial effects:
[0030] By using the in-vehicle receiving device and the in-vehicle transmitting device as the in-vehicle dual-station node, and the in-vehicle receiving device as the receiving node, the original detection signal received by the receiving node in the dual-station node in the vehicle to be detected is first sampled to obtain a liveness detection signal sequence, and the detection channel complex signal of the sampling channel is detected according to the liveness detection signal sequence to generate a detection complex vector, and a detection digitized time-frequency signal is generated, and the detection digitized time-frequency signal is input into a pre-trained breathing detection model to obtain an initial detection result, and the in-vehicle liveness detection result of the vehicle to be detected is generated based on the initial detection result. By using the in-vehicle receiving device and the in-vehicle transmitting device as a dual-station node, a higher quality breathing signal can be extracted, and the breathing signal can be checked through a pre-established breathing detection model, which is more robust to environmental noise and has better detection performance. The in-vehicle dual-station node can be fully or partially reused by nodes of other systems, such as a digital key system, which can significantly reduce costs and increase accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A system architecture diagram showing an exemplary embodiment of the present application;
[0032] Figure 2 is a flow chart of a method for detecting a living body in a vehicle shown in an exemplary embodiment of the present application;
[0033] Figure 3 is a structural schematic diagram of an exemplary breathing detection model shown in an exemplary embodiment of the present application;
[0034] Figure 4 is a block diagram of an in-vehicle living body detection device shown in an exemplary embodiment of the present application;
[0035] Figure 5 is a block diagram of a vehicle shown in an exemplary embodiment of the present application;
[0036] Figure 6 is a schematic structural diagram of a vehicle shown in an exemplary specific embodiment of the present application;
[0037] Figure 7 is a block diagram of a vehicle shown in another exemplary embodiment of the present application;
[0038] Figure 8 is a schematic structural diagram of a vehicle shown in another exemplary specific embodiment of the present application;
[0039] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment. DETAILED DESCRIPTION
[0040] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0041] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0042] See also Figure 1 , Figure 1 This is a system architecture diagram showing an exemplary embodiment of the present application. Figure 1 As shown, the vehicle 100 is provided with an in-vehicle transmitting device 101 and an in-vehicle receiving device 102. The number of the in-vehicle receiving devices may be one or more. Figure 1 The figure is an example of the setting position of the in-vehicle transmitting device and the in-vehicle receiving device. Those skilled in the art can also adjust the position as needed, including but not limited to exchanging the positions of the in-vehicle transmitting device and the in-vehicle receiving device. When the vehicle is subjected to in-vehicle liveness detection, the original detection signal is sent by the in-vehicle transmitting device, and the original detection signal is received by the in-vehicle receiving device. When there is a living body in the vehicle, the received original detection signal will change. By first sampling the received original detection signal, a liveness detection signal sequence is obtained. The liveness detection device 103 generates one or more detection complex vectors based on the detection channel complex signals of one or more detection sampling channels of the liveness detection signal sequence, and converts them into detection digitized time-frequency signals. The detection digitized time-frequency signals are input into the pre-trained breathing detection model to obtain the in-vehicle liveness detection result. The above method provides a new way for in-vehicle liveness detection. Based on the above method, in-vehicle liveness detection can avoid the problem of being affected by light when relying on the camera to realize liveness detection, effectively improves the scene applicability and accuracy of in-vehicle liveness detection, and also reduces the cost.
[0043] It should be noted that the implementation of the method of this embodiment can also be implemented based on the vehicle's own processor and memory. The specific implementation method is not limited here. It can also be implemented by a processor core memory set outside the vehicle. The above is only an example. The specific implementation method can be selected by those skilled in the art as needed. In other words, the liveness detection device is implemented by the hardware of the example vehicle itself, or it can be implemented with the help of external hardware equipment.
[0044] See also Figure 2 , Figure 2 is a flow chart of a method for detecting a living body in a vehicle according to an exemplary embodiment of the present application. Figure 1 The system architecture shown in the figure may also be implemented by other implementation environments known to those skilled in the art. Figure 2 As shown, in an exemplary embodiment, the in-vehicle living body detection method includes at least steps S201 to S204, which are described in detail as follows:
[0045] Step S201, obtaining a liveness detection signal sequence of a vehicle to be detected.
[0046] The liveness detection signal sequence is obtained by first sampling the original detection signal received by the in-vehicle receiving device and sent by the in-vehicle sending device. Both the in-vehicle receiving device and the in-vehicle sending device are arranged inside the vehicle to be detected. An exemplary arrangement can be referred to Figure 1 As mentioned in the above embodiment, the locations of the in-vehicle receiving device and the in-vehicle transmitting device can be adjusted by those skilled in the art as needed. Figure 1 The location is only an example.
[0047] For example, the liveness detection signal sequence may be a signal of a certain sampling time window pre-set by a person skilled in the art, and the time length of the sampling time window is greater than the time length of the sampling period. Generally speaking, the sampling time window may include the time lengths of multiple sampling periods.
[0048] The execution of this step can be implemented by a processor and memory arranged inside the vehicle, or by receiving a liveness detection signal sequence sent by the vehicle through a cloud server, etc. The specific implementation method can be selected based on the needs of technicians in this field. For example, in order to improve the efficiency of liveness detection, reduce costs, and maximize the reuse of existing equipment in the vehicle, taking the liveness detection signal sequence as an ultra-wideband signal (UWB (Ultra Wide-Band) signal) as an example, the execution of this step can be implemented by the vehicle reusing the node of the UWB digital key system in the vehicle, or by forwarding the liveness detection signal sequence to the CAN bus in real time through the receiving device in the vehicle, and the MCU (Microcontroller Unit) receives data from the CAN bus to execute the steps of liveness detection in the vehicle.
[0049] In one embodiment, before obtaining the liveness detection signal sequence of the vehicle to be detected, the method includes: controlling an in-vehicle transmitting device to send an original detection signal, which is an ultra-wideband signal; receiving the original detection signal through at least one in-vehicle receiving device, performing a first sampling on the received original detection signal, and obtaining a liveness detection signal sequence; wherein the in-vehicle transmitting device and the in-vehicle receiving device are arranged inside the vehicle to be detected.
[0050] In this embodiment, a first sampling is performed on the received original detection signal to obtain a living body detection signal sequence, including:
[0051] Continuously sampling the received original detection signal within a preset time window to obtain a channel impulse response, and using the channel impulse response as the original signal sequence;
[0052] Performing multiple continuous sampling of the received original detection signal within a preset time window, and generating a liveness detection signal sequence based on the obtained multiple original signal sequences;
[0053] And, at each sampling, all original detection signals reaching the receiving device in the vehicle at the sampling moment are superimposed to obtain a detection channel complex signal of the detection sampling channel at the sampling moment.
[0054] In other words, the detection channel complex signal is obtained by superimposing all original detection signals in the detection sampling channel that reach the in-vehicle receiving device.
[0055] It should be noted that the first sampling in this embodiment and the second sampling in the following embodiments may adopt the same sampling rule or different sampling methods. The specific implementation may be implemented in a manner known to those skilled in the art. The "first sampling" and "second sampling" in this application are distinguished based on the different sampling objects.
[0056] Taking the original detection signal as a UWB signal as an example, an exemplary method for acquiring a liveness detection signal sequence is as follows:
[0057] 1. The in-vehicle sending device Initiator sends a UWB synchronization signal to the in-vehicle receiving device Responder, and the Responder enters the receiving state;
[0058] 2. Initiator sends UWB pulse signal (original detection signal);
[0059] 3. Responder opens a sampling window with a time length of t and a sampling period of T. At each sampling, all UWB signals arriving at the receiving end at that moment are superimposed to obtain the I / Q complex signal I+Qj at that sampling moment;
[0060] 4. Continuously sample in the time window t to obtain the channel impulse response CIR (Channel Impulse Response). The CIR is the original signal sequence with a length of t / T.
[0061] 5. Repeat steps 2, 3, and 4 periodically to continuously receive CIR signals, that is, to obtain a liveness detection signal sequence.
[0062] To save costs, the dual-station UWB nodes (in-vehicle transmitting device and in-vehicle receiving device) in this embodiment can reuse the nodes of the in-vehicle UWB digital key system, so there is no need to increase new hardware costs. The in-vehicle receiving device serves as the UWB signal receiving end and also as the MCU. The liveness detection software runs on the in-vehicle receiving device, or the in-vehicle receiving device forwards the received UWB signal to the CAN bus in real time. The MCU receives data from the CAN bus and executes the steps of in-vehicle liveness detection.
[0063] Step S202 : generating at least one detection complex vector according to a detection channel complex signal of at least one detection sampling channel of a living body detection signal sequence.
[0064] In one embodiment, at least one detection complex vector is generated based on a detection channel complex signal of at least one detection sampling channel of a living body detection signal sequence, including: determining a detection signal modulus of each detection sampling channel based on the detection channel complex signal; generating a detection complex vector of a detection sampling period based on a first target complex signal and a plurality of second target complex signals, wherein the first target complex signal is a detection channel complex signal corresponding to a maximum detection signal modulus, and the second target complex signal is a detection channel complex signal whose signal receiving time is later than that of the first target complex signal.
[0065] For example, a sampling window with a time length of t can be opened through the in-vehicle receiving device, and the sampling period is T. At each sampling, all the original detection signals arriving at the in-vehicle receiving device at that moment are superimposed to obtain the I / Q complex signal I+Qj at the sampling moment, that is, the detection channel complex signal. Continuous sampling within the t time window obtains the channel impulse response CIR (Channel Impulse Response), which is the original signal sequence with a length of t / T.
[0066] By performing a first sampling on the liveness detection signal sequence in a detection sampling period to obtain the original signal, repeating the above steps, performing multiple samplings in multiple detection sampling periods in a sampling window, a CIR original signal sequence can be obtained, and by selecting n sampling channels from the CIR original signal sequence, a complex vector Vn (detection channel complex signal) is obtained. In other words, the liveness detection signal sequence includes multiple original signal sequences.
[0067] In this embodiment, the CIR original signal sequence includes signals of multiple sampling channels. The detection complex vector can be generated by traversing all detection sampling channels and calculating the detection signal modulus value |I of each detection sampling channel. 2 +Q 2 |, the detection sampling channel where the maximum detection signal modulus value with the largest detection signal modulus value is located is taken as the first target sampling channel, and the detection channel complex signals of several detection sampling channels after the first target sampling channel are selected as the second target complex signal. Among them, the detection sampling channels are sorted according to the signal receiving time. Therefore, the second target complex signal is a signal receiving time later than the first target complex signal.
[0068] The detection sampling channels where each second target complex signal is located can be continuous, and there is a detection sampling channel where the second target complex signal is located that is continuous with the order of the first target sampling channel. In this way, the detection complex vector generated is more accurate, and ultimately the detection result of the living body in the vehicle is more accurate. Of course, based on the above principle, those skilled in the art can also choose a second target complex signal that is discontinuous with the first target sampling channel, or at least a part of the second target complex signal is discontinuous in the detection sampling channel. The selection of the specific second target complex signal can also be adjusted based on the needs of those skilled in the art. For example, a detection sampling channel after the detection sampling channel where the maximum detection signal modulus value with the largest detection signal modulus value is located can also be used as the first target sampling channel. Although compared with the solution of using the detection sampling channel where the maximum detection signal modulus value with the largest detection signal modulus value is located as the first target sampling channel, the detection complex vector generated by it is not so able to characterize the existence state of the current living body, it is also a reference implementation method.
[0069] It should be noted that, each time the original detection signal is sampled for one detection sampling cycle, a detection complex vector can be obtained. If the original detection signal is sampled for multiple detection sampling cycles, multiple detection complex vectors can be obtained. The specific number of detection sampling cycles and the setting of the detection sampling cycle can be set by those skilled in the art as needed. In other words, each sampling can perform sampling for one or more detection sampling cycles.
[0070] Through the above method, useless information in the liveness detection signal sequence can be removed, the subsequent calculation amount can be reduced, the waste of computing resources can be reduced, the cost can be reduced, and the detection efficiency can be improved.
[0071] Step S203: Generate a detection digitized time-frequency signal based on all the detection complex vectors.
[0072] In one embodiment, a detection digitized time-frequency signal is generated based on all detection complex vectors, including: generating a detection matrix based on all detection complex vectors, each row of the detection matrix corresponds to a detection channel complex signal of a detection sampling period, and each column of the detection matrix corresponds to a detection sampling channel; calculating the detection matrix to obtain a detection time domain signal and a detection frequency domain signal; merging the detection time domain signal and the detection frequency domain signal to obtain a detection time-frequency signal, and normalizing the detection time-frequency signal to obtain a detection digitized time-frequency signal.
[0073] It should be noted that the above-mentioned provisions on the rows and columns of the detection matrix are only an example. Those skilled in the art can also easily think of setting the detection matrix in a manner such that each column corresponds to a complex signal of a detection channel of a detection sampling period, and each row corresponds to a detection sampling channel. This is a simple transformation of the present embodiment, does not deviate from the core of the present application, and is within the protection scope of the present application.
[0074] An example method of calculating the detection matrix to obtain the detection time domain signal and the detection frequency domain signal may be: obtaining the time domain signal by calculating the amplitude of the detection matrix, and obtaining the frequency domain signal by calculating the Fourier transform pair of the detection matrix.
[0075] In this embodiment, before calculating the detection matrix to obtain the detection time domain signal and the detection frequency domain signal, the method further includes: performing low-pass filtering on the living body detection signal sequence to remove high-frequency noise in the signal.
[0076] In this embodiment, if there are multiple detection complex vectors, generating a detection matrix based on all the detection complex vectors includes at least one of the following:
[0077] If the number of detected complex vectors reaches a first preset vector threshold, and the number of historical complex vectors is greater than zero, generating a detection matrix according to all the obtained detected complex vectors;
[0078] If the number of detection complex vectors reaches a first preset vector threshold and the number of historical complex vectors is equal to zero, continue to generate detection complex vectors based on the detection channel complex signals of the detection sampling channel of the living body detection signal sequence until the number of obtained detection complex vectors reaches a second preset vector threshold, and generate a detection matrix based on all the obtained detection complex vectors, wherein the second preset vector threshold is greater than the first preset vector threshold.
[0079] That is, when there are historical complex vectors, the generation of the detection matrix needs to be combined with the currently obtained detection complex vector and the historical complex vector. That is, when the in-vehicle liveness detection is continuously performed, the detection matrices obtained twice before and after have an intersection. The historical complex vector is one or more complex vectors of the previous detection matrix. It should be noted that in order to make the detection result more accurate, the historical complex vectors in each detection matrix cannot be complex vectors generated by signals at the same sampling time.
[0080] Of course, sometimes the detection matrix may be the first detection matrix and there is no history matrix before. In this case, the detection matrix can be generated based on the obtained detection complex vector without the participation of the history complex vector.
[0081] In this embodiment, if there are multiple detection complex vectors, generating a detection matrix based on all the detection complex vectors includes: writing the obtained detection complex vectors into a preset receiving buffer in sequence; monitoring the current number of detection complex vectors in the preset receiving buffer; if the current number reaches a third preset vector threshold, generating a detection matrix based on all the detection complex vectors in the preset receiving buffer; clearing the detection complex vectors in the preset receiving buffer that are sorted before a fourth preset vector threshold, and the fourth preset vector threshold is less than the third preset vector threshold. In other words, the two detection matrices generated based on the complex vectors in the preset receiving buffer twice have at least one detection complex vector overlapped.
[0082] In this embodiment, the detection time-frequency signal is normalized, including: converting the element value of the detection time-frequency signal into a preset numerical interval. For example, the interval [0, 1], etc. Through the normalization process, the above signal can be digitized to meet the requirements of the model input signal. Of course, the method of normalizing the detection time-frequency signal can also adopt other methods known to those skilled in the art.
[0083] It should be noted that the specific method of converting the detection complex vector of the signal into the detection digital time-frequency signal that can be recognized by the breathing detection model may also adopt other methods known to those skilled in the art.
[0084] Through the above method, the collected liveness detection signal sequence can be converted into a data format that can be recognized by the breathing detection model to meet the needs of model input.
[0085] Step S204: input the detected digitized time-frequency signal into a pre-trained breathing detection model to obtain an initial detection result, and generate an in-vehicle liveness detection result of the vehicle to be detected based on the initial detection result.
[0086] In this embodiment, before generating the in-vehicle liveness detection result of the vehicle to be detected based on the initial detection result, the method includes: repeatedly generating multiple detection complex vectors based on the detection channel complex signals of multiple detection sampling channels of the liveness detection signal sequence, and the detection sampling channels selected for the detection complex vectors generated each time are different; generating a detection digitized time-frequency signal based on all the detection complex vectors generated each time to obtain multiple detection digitized time-frequency signals; and inputting the multiple detection digitized time-frequency signals into a pre-trained breathing detection model respectively to obtain the initial detection result of each detection digitized time-frequency signal.
[0087] That is, multiple detection sampling channels can be selected for the liveness detection signal sequence to generate multiple detection complex vectors, and the above steps can be repeated to obtain multiple groups of detection complex vectors. The detection sampling channels selected each time are different, and can be selected according to the timing, or other methods set by technical personnel in this field.
[0088] It should be noted that when the original detection signal is sampled multiple times for the first time, the original detection signal may be a continuous signal or a discontinuous signal, and the sampling mode of the multiple first samplings may be continuous or discontinuous.
[0089] In this embodiment, the in-vehicle liveness detection result of the vehicle to be detected is generated based on the initial detection result, including: determining the confidence detection result value of an initial detection result according to an initial detection result and a preset confidence weight of the initial detection result, the initial detection result is a first preset result value or a second preset result value, the first preset result value is not equal to the second preset result value, and the preset confidence weights of the initial detection results are not equal; determining the total detection result value based on the confidence detection result values of all initial detection results; determining the in-vehicle liveness detection result of the vehicle to be detected according to the comparison result of the total detection result value and the preset observation threshold. The first preset result value, the second preset result value, and the preset confidence weight are all values preset by those skilled in the art and are not limited here.
[0090] In this embodiment, the method for determining the total test result value includes:
[0091]
[0092] Among them, Prob is the total detection result value, L is the number of initial detection results, α is the preset weight attenuation factor, i is the ordinal value of the initial detection result, and pred t+L-i is the initial detection result of the Lith time, t is Pred t The corresponding moment, is the preset confidence weight of the Li-th initial detection result.
[0093] In this embodiment, an exemplary implementation method of determining the in-vehicle liveness detection result of the vehicle to be detected according to the comparison result of the total detection result value and the preset observation threshold is:
[0094] If the total detection result value is greater than the preset observation threshold, the in-vehicle liveness detection result of the vehicle to be detected is liveness, and if the total detection result value is less than the preset observation threshold, the in-vehicle liveness detection result of the vehicle to be detected is no liveness. It should be noted that at this time, the total detection result value represents the number of detections with liveness.
[0095] Those skilled in the art should know that if the total value of the detection result represents the number of detections without a live body, the implementation method can be that if the total value of the detection result is greater than the preset observation threshold, the in-vehicle live body detection result of the vehicle to be detected is that there is no live body, otherwise it is that there is a live body. This solution is only a simple variation of the above method and should still be within the scope of protection of the solution of this embodiment.
[0096] In this embodiment, before determining the confidence detection result value of an initial detection result based on an initial detection result and a preset confidence weight of an initial detection result, the method includes: storing each initial detection result of the detected digitized time-frequency signal obtained into a preset result queue in sequence; determining the preset confidence weight of the initial detection result based on a preset weight attenuation factor, a ranking value of the initial detection result in the preset result queue, and a total ranking value of the preset result queue, and the preset confidence weights of each initial detection result in the preset result queue are reduced in sequence.
[0097] Among them, one way to determine the preset credit weight is as follows:
[0098]
[0099] Among them, M is the preset confidence weight of the Li-th initial detection result in the preset result queue, L is the number of initial detection results, α is the preset weight attenuation factor, and Li is the sequence value of the initial detection result in the preset result queue.
[0100] It should be noted that the preset signal weight of each position in the preset result queue can also be pre-set by a person skilled in the art, and there is no need to make a temporary determination each time, which can also reduce the number of operations.
[0101] In one embodiment, the breathing detection model is trained by multiple sample digitized time-frequency signals, and the multiple sample digitized time-frequency signals are generated based on multiple sample detection signal sequences of sample vehicles, and at least part of the sample detection signal sequences are obtained by performing a second sampling on the original detection signals received when a living body exists in the sample vehicle. The breathing detection model trained in this way can realize the detection of the live body detection signal sequence in which a living body exists.
[0102] In one embodiment, before inputting the detected digitized time-frequency signal into a pre-trained breathing detection model, the method includes: obtaining multiple sample detection signal sequences of the sample vehicle, the sample detection signal sequence is obtained by performing a second sampling on the original sample signal received by the sample receiving device and sent by the sample sending device, the sample receiving device and the sample sending device are arranged inside the sample vehicle, and at least part of the original sample signal is a signal detected when a living body exists in the sample vehicle; generating at least one sample complex vector according to the sample channel complex signal of at least one sample sampling channel of the sample detection signal sequence, repeating multiple times to obtain multiple sample complex vector sets; generating a sample digitized time-frequency signal based on each sample complex vector set to obtain multiple sample digitized time-frequency signals; labeling each sample digitized time-frequency signal according to the sample living body state to obtain a living body label of each sample digitized time-frequency signal, the sample living body state being the existence state of the living body in the sample vehicle when the sample detection signal generating the sample digitized time-frequency signal is detected; generating a training set according to the multiple sample digitized time-frequency signals and the living body labels of each sample digitized time-frequency signal, and training the initial detection model through the training set until the initial detection model converges to obtain the breathing detection model.
[0103] It should be noted that, for the second sampling of the original sample signal, the generation method of multiple sample detection signal sequences, sample complex vectors and sample digitized time-frequency signals can refer to the generation method of the above-mentioned detection complex vectors and detection digitized time-frequency signals, and will not be repeated here.
[0104] In one embodiment, the breathing detection model is modeled based on a time series prediction method and a recurrent neural network LSTM, see Figure 3 , Figure 3 It is a structural diagram of an exemplary breathing detection model shown in an exemplary embodiment of the present application.
[0105] Since a neural network model is involved, the breathing model needs to be trained before deployment to determine the model parameters. The training method of the recurrent neural network LSTM can also be implemented in a manner known to those skilled in the art, which will not be repeated here. It should be noted that in the training phase, the input to the model should also be a normalized time-frequency signal, that is, the input data pattern in the training phase is consistent with the input data pattern in the deployment phase.
[0106] In one embodiment, according to the chip parameters such as the storage space of the MCU and the CPU computing power, further reference may be made to the model compression method known to those skilled in the art to perform dimension reduction, compression and other processing on the breathing detection model parameters, so as to further reduce the model size and the amount of calculation, and facilitate deployment in actual vehicles.
[0107] It should be noted that LSTM can be replaced by various variants of RNN such as GRU, which should all fall within the scope of this solution.
[0108] In one embodiment, after generating the in-vehicle liveness detection result of the vehicle to be detected based on the initial detection result, the method further includes: if the in-vehicle liveness detection result is that there is a live body, controlling the vehicle to be detected to execute a preset alarm measure.
[0109] Among them, the preset warning measures include but are not limited to warning methods such as flashing lights, honking horns, and active intervention measures such as opening windows.
[0110] In this embodiment, the level of the preset alarm measures can be determined according to the number of liveness results obtained for the in-vehicle liveness detection results that indicate liveness. If the number of liveness results is less than the first number threshold, a primary alarm is executed, and the vehicle lights can be controlled to flash several times or honk several times; if the number of liveness results is greater than the first number threshold and less than the second number threshold, and the first number threshold is less than the second number threshold, a high-level alarm is executed, and the vehicle lights can be controlled to flash several times or stay on, or honk several times, or honk all the time; wherein at least one of the number of flashes of the lights and the length of time the lights stay on of the primary alarm is less than the number of flashes of the lights and the length of time the lights stay on of the high-level alarm, and similarly, at least one of the number of honk times and the length of time the honk is honked of the primary alarm is less than the number of honk times and the length of time the honk is honked of the high-level alarm. If the number of liveness results is greater than the second number threshold, active intervention measures can be taken, such as opening the window, so that the window is lowered to a certain degree to allow air to circulate inside and outside the vehicle. The liveness detection result in the vehicle can also be pushed to a preset terminal through a preset contact method by phone, text message, email, program push information, etc., so that the preset user knows the situation. When the number of liveness results is greater than the third number threshold, an alarm or other method can also be directly used for processing, and the third number threshold is greater than the second number threshold.
[0111] That is, an initial alarm is issued first. If the alarm is not eliminated (the number of live results will increase further at this time), the alarm is upgraded to an advanced alarm. If the alarm is still not eliminated within a period of time, active intervention will be carried out and active intervention measures will be implemented.
[0112] The in-vehicle liveness detection method provided by the above-mentioned embodiment uses the in-vehicle receiving device and the in-vehicle transmitting device as the dual-station nodes in the vehicle, and the in-vehicle receiving device as the receiving node. The detection complex vector is obtained by sampling the liveness detection signal sequence of the dual-station node in the vehicle to be detected, and a detection digitized time-frequency signal is generated. The detection digitized time-frequency signal is input into a pre-trained breathing detection model to obtain an initial detection result, and the in-vehicle liveness detection result of the vehicle to be detected is generated based on the initial detection result. By using the dual-station node of the in-vehicle receiving device and the in-vehicle transmitting device, a higher quality breathing signal can be extracted, and the breathing signal can be checked by the pre-established breathing detection model. It is more robust to environmental noise, has better detection performance, low cost and higher accuracy.
[0113] Optionally, in the in-vehicle liveness detection method provided in the above embodiment, the dual-station nodes can reuse the nodes of the in-vehicle UWB digital key system, without adding new hardware costs, thereby further reducing costs.
[0114] The following is a further exemplary description of the in-vehicle living body detection method provided in the above embodiment through a specific embodiment.
[0115] First, an exemplary embodiment of the reception and transmission of the original detection signal is provided. Taking the in-vehicle receiving device identified as Responder, the in-vehicle sending device identified as Initiator, and the liveness detection signal sequence as an ultra-wideband signal (UWB signal) as an example, a specific method for obtaining the liveness detection signal sequence is as follows: Initiator sends a UWB synchronization signal to Responder, and Responder enters a receiving state; Initiator sends a UWB pulse signal; Responder opens a sampling window with a time length of t and a sampling period of T. At each sampling, all UWB signals arriving at the receiving end at that moment are superimposed to obtain an I / Q complex signal I+Qj at the sampling moment; continuous sampling is performed within the t time window to obtain a channel impulse response CIR (Channel Impulse Response), which is the original signal sequence with a length of t / T; 2, 3, and 4 are repeated periodically to continuously receive CIR signals, which is also the liveness detection signal sequence.
[0116] If the above-mentioned original detection signal transmission and reception mode is sampled, in an exemplary embodiment, taking the liveness detection signal sequence as an ultra-wideband signal (UWB signal) as an example, the specific in-vehicle liveness detection method is described in detail as follows:
[0117] 1. Select n sampling channels from the CIR original signal sequence to obtain the complex vector V n and writes it to the receive buffer.
[0118] The CIR original signal sequence contains t / T sampling channels. Assume that the sampling window time length t = 1 μs and the sampling period T = 1 ns, then there are t / T = 1000 sampling channels in the CIR, and each sampling channel corresponds to a complex signal I + Qj. The channel selection method is as follows: traverse all sampling channels, calculate the signal modulus |I 2 +Q 2 |; find the sampling channel max_idx with the largest modulus; select n sampling channels (which can be continuous or discontinuous) starting from max_idx and going backward (after the sampling time), i.e., [max_idx, max_idx + n - 1], to obtain a complex vector V containing n sampling channels n .
[0119] 2. Check the receive buffer to see if m complex vectors V n have been accumulated. If so, batch-read m complex vectors V n to obtain a matrix C mxn , and at the same time clear the first k complex vectors V in the buffer n (k < m).
[0120] It should be noted that the matrix C mxn is a matrix with m rows and n columns. Each row corresponds to the received signal of one transmission period, and each column corresponds to a sampling channel. The meaning of k < m is that there is an intersection between the matrices C mxn read in two consecutive times.
[0121] 3. Calculate the matrix C mxn to obtain the time-domain signal CT mxn and the frequency-domain signal CF mxn .
[0122] The time-domain signal CT mxn is obtained by calculating the amplitude of C mxn , and the frequency-domain signal CF mxn is obtained by calculating the Fourier transform pair of C mxn .
[0123] Optionally, before or after obtaining the time-domain signal and the frequency-domain signal, the signal can be subjected to low-pass filtering to remove high-frequency noise in the signal.
[0124] 4. Combine CT mxn and CF mxn into a time-frequency signal CTF mx2n , and perform normalization processing to obtain a normalized time-frequency signal CNTF mx2n .
[0125] The normalization processing is to normalize the time-frequency signal CTF mx2nConverting the element values to the [0,1] interval is a preprocessing operation for the model input signal.
[0126] 5. Normalize the time-frequency signal CNTF mx2n Input into the breathing detection model to obtain the model recognition result pred.
[0127] The breathing detection model is based on the time series prediction method and the recurrent neural network LSTM. The input of the model is the normalized time-frequency signal CNTF mx2n , each row of the matrix corresponds to a timestep, and there are m timesteps in total. For each timestep, the input is a column vector of length 2n. Each timestep will calculate an output result P t , the output P of the last timestep m As the model prediction result pred, pred∈{0,1}.
[0128] 6. Post-process the recognition result pred and calculate the liveness detection recognition result result.
[0129] Assuming that the transmission period of the UWB signal is 100ms, m=50, k=25, the model result will be output once every 2500ms on average. The steps of algorithm post-processing are as follows:
[0130] (1) Maintain a queue of length L. At time t+L, all elements in the queue are first shifted left by 1 bit, and then the model prediction result pred is t+L Add to the end of the queue, and update the queue value to [pred t+1 ,pred t+2 ,…,pred t+L-1 ,pred t+L ];
[0131] (2) Calculate the breathing detection probability value Prob. The calculation method can be seen in formula (1);
[0132] (3) Set the breathing detection threshold Thresh. If Prob>Thresh, then result = true, otherwise false
[0133] The post-processing process of the algorithm is further described below through a specific embodiment. Assuming L = 4, α = 0.4, queue value = [0, 1, 1, 1], Thresh = 2.0, then:
[0134] Prob=1×1+0.85×1+0.7×1+0.55×0=2.55, Prob>Thresh, result=true.
[0135] The purpose of algorithm post-processing is to fuse the signal recognition results within the historical period of 2500ms*4=10s, thereby obtaining a more reliable breathing detection result than a single recognition.
[0136] 7. If result = true, the vehicle warning or intervention measures are triggered.
[0137] According to Euro-NCAP, there are three levels of vehicle warnings or intervention measures:
[0138] (1) Initial warning, such as flashing lights and honking horn for 3 seconds;
[0139] (2) Upgrade warnings, such as increasing the duration of flashing lights and honking horns;
[0140] (3) Active intervention, such as opening the car window.
[0141] The method provided by the above embodiment can be applied to vehicles with UWB digital key systems without the need for additional equipment installation, which can significantly reduce system costs; breathing signals can be extracted using dual-station UWB nodes; a breathing detection model is established based on a timing prediction method and a recurrent neural network, which is more robust to environmental noise and has better detection performance.
[0142] See also Figure 4 , Figure 4 is a block diagram of an in-vehicle living body detection device shown in an exemplary embodiment of the present application, such as Figure 4 As shown, this embodiment provides a vehicle-based living body detection device 400, which includes:
[0143] The signal acquisition module 401 is used to acquire a liveness detection signal sequence of a vehicle to be detected, where the liveness detection signal sequence is obtained by first sampling an original detection signal received by an in-vehicle receiving device and sent by an in-vehicle sending device;
[0144] A complex vector generating module 402 generates at least one detection complex vector according to a detection channel complex signal of at least one detection sampling channel of a living body detection signal sequence;
[0145] A digital time-frequency signal generating module 403, used to generate a detection digital time-frequency signal based on all detection complex vectors;
[0146] The detection module 404 is used to input the detected digitized time-frequency signal into a pre-trained breathing detection model to obtain an initial detection result, and generate an in-vehicle liveness detection result of the vehicle to be detected based on the initial detection result. The breathing detection model is obtained by training multiple sample digitized time-frequency signals, and the multiple sample digitized time-frequency signals are generated based on multiple sample detection signal sequences of sample vehicles. At least part of the sample detection signal sequences are obtained by performing a second sampling on the original sample signal received when there is a living body in the sample vehicle.
[0147] In one embodiment, the device also includes a model training module, which is used to obtain multiple sample detection signal sequences of the sample vehicle before inputting the detected digital time-frequency signal into the pre-trained breathing detection model, the sample detection signal sequence is obtained by performing a second sampling on the original sample signal sent by the sample sending device and received by the sample receiving device, the sample receiving device and the sample sending device are arranged inside the sample vehicle, and at least part of the original sample signal is a signal detected when there is a living body in the sample vehicle; at least one sample complex vector is generated according to the sample channel complex signal of at least one sample sampling channel of the sample detection signal sequence, and the process is repeated multiple times to obtain multiple sample complex vector sets; a sample digitized time-frequency signal is generated based on each sample complex vector set to obtain multiple sample digitized time-frequency signals; each sample digitized time-frequency signal is labeled according to the sample living body state to obtain a living body label of each sample digitized time-frequency signal, and the sample living body state is the existence state of the living body in the sample vehicle when the sample detection signal generating the sample digitized time-frequency signal is detected; a training set is generated according to the multiple sample digitized time-frequency signals and the living body labels of each sample digitized time-frequency signal, and the initial detection model is trained by the training set until the initial detection model converges to obtain a breathing detection model.
[0148] In one embodiment, the device further includes an early warning module, which is used to control the vehicle to be detected to execute preset warning measures if the result of the in-vehicle living body detection is that there is a living body.
[0149] In this embodiment, the device is substantially provided with a plurality of modules for executing the method in any of the above embodiments. The specific functions and technical effects may refer to the above embodiments and will not be described in detail here.
[0150] See also Figure 5 , Figure 5 is a block diagram of a vehicle shown in an exemplary embodiment of the present application, such as Figure 5 As shown, this embodiment provides a vehicle, which includes an in-vehicle transmitting device and an in-vehicle receiving device, and the in-vehicle receiving device is configured with the in-vehicle living body detection device described in the above embodiment;
[0151] The sending device in the vehicle is used to send the original detection signal;
[0152] The in-vehicle receiving device is used to receive the original detection signal passing through the interior of the vehicle, and transmit the original detection signal to the in-vehicle liveness detection device, which detects the presence status of the living body inside the vehicle.
[0153] See also Figure 6 , Figure 6 is a schematic diagram of the structure of a vehicle shown in an exemplary specific embodiment of the present application, such as Figure 6 As shown, if there is a node of the UWB digital key system in the vehicle, the node of the UWB digital key system in the vehicle can be reused, the in-vehicle sending device Initiator serves as the UWB signal transmitter, and the in-vehicle receiving device Responder serves as the UWB signal receiver, and also serves as the MCU. The liveness detection software runs on the in-vehicle liveness detection device of the in-vehicle receiving device Responder to detect the liveness in the vehicle (the black block in the figure).
[0154] In this embodiment, the device is substantially provided with a plurality of modules for executing the method in any of the above embodiments. The specific functions and technical effects may refer to the above embodiments and will not be described in detail here.
[0155] See also Figure 7 , Figure 7 is a block diagram of a vehicle shown in another exemplary embodiment of the present application, such as Figure 7 As shown, this embodiment provides a vehicle, which includes an in-vehicle transmitting device, an in-vehicle receiving device and a micro control unit, and the micro control unit is configured with the in-vehicle living body detection device described in the above embodiment;
[0156] The sending device in the vehicle is used to send the original detection signal;
[0157] The in-vehicle receiving device is used to receive the original detection signal passing through the interior of the vehicle, and transmit the original detection signal to the in-vehicle liveness detection device in the microcontroller unit through the bus, so as to detect the presence status of the live body inside the vehicle through the in-vehicle liveness detection device.
[0158] See also Figure 8 , Figure 8 is a schematic diagram of the structure of a vehicle shown in another exemplary embodiment of the present application, such as Figure 8 As shown, if there is a node of the UWB digital key system in the vehicle, the node of the UWB digital key system in the vehicle can be reused, the in-vehicle sending device Initiator serves as the UWB signal transmitter, and the in-vehicle receiving device Responder serves as the UWB signal receiver. The Responder forwards the received UWB signal to the CAN bus in real time, the microcontroller unit MCU receives data from the CAN bus, and the in-vehicle liveness detection device on the MCU runs the liveness detection software.
[0159] In this embodiment, the device is substantially provided with a plurality of modules for executing the method in any of the above embodiments. The specific functions and technical effects may refer to the above embodiments and will not be described in detail here.
[0160] See also Fig. 9 An embodiment of the present invention further provides an electronic device 900, including a processor 901, a memory 902 and a communication bus 903; the communication bus 903 is used to connect the processor 901 and the memory 902; the processor 901 is used to execute a computer program stored in the memory 902 to implement one or more of the methods described in the above embodiments.
[0161] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. The computer program is used to enable a computer to execute any of the methods described in the first embodiment above.
[0162] The embodiment of the present application also provides a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute instructions (instructions) of the steps included in the embodiment 1 of the embodiment of the present application.
[0163] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. 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 of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0164] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0165] Computer program code for performing the operations of the present disclosure 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 separate software package, partially on the user's computer and partially on a remote computer, or entirely on a 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).
[0166] The flow chart and block diagram in the accompanying drawings illustrate the possible implementation architecture, function and operation of the method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0167] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A method for detecting liveness in a vehicle. It is characterized in that The in-vehicle living body detection method comprises: Acquire a liveness detection signal sequence of a vehicle to be detected, where the liveness detection signal sequence is obtained by first sampling an original detection signal received by an in-vehicle receiving device and sent by an in-vehicle sending device; Generate at least one detection complex vector according to the detection channel complex signal of at least one detection sampling channel of the living body detection signal sequence; Generate a detection digitized time-frequency signal based on all detection complex vectors; The detected digitized time-frequency signal is input into a pre-trained breathing detection model to obtain an initial detection result, and a liveness detection result of the vehicle to be detected is generated based on the initial detection result. The breathing detection model is trained by multiple sample digitized time-frequency signals, and the multiple sample digitized time-frequency signals are generated based on multiple sample detection signal sequences of sample vehicles. At least part of the sample detection signal sequence is obtained by second sampling of the original sample signal received when a living body is present in the sample vehicle.
2. The method for detecting a living body in a vehicle according to claim 1, It is characterized in that Before obtaining the liveness detection signal sequence of the vehicle to be detected, the method includes: Controlling the in-vehicle sending device to send an original detection signal, wherein the original detection signal is an ultra-wideband signal; Receiving the original detection signal through at least one of the in-vehicle receiving devices, performing a first sampling on the received original detection signal, and obtaining the living body detection signal sequence; Wherein, the in-vehicle sending device and the in-vehicle receiving device are arranged inside the vehicle to be detected.
3. The method for detecting a living body in a vehicle according to claim 2, It is characterized in that Performing a first sampling on the received original detection signal to obtain the living body detection signal sequence includes: Continuously sampling the received original detection signal within a preset time window to obtain a channel impulse response, and using the channel impulse response as an original signal sequence; Performing multiple continuous sampling on the received original detection signal within a preset time window, and generating the living body detection signal sequence based on the obtained multiple original signal sequences; And, each time sampling is performed, all original detection signals reaching the in-vehicle receiving device at the sampling moment are superimposed to obtain a detection channel complex signal of the detection sampling channel at the sampling moment.
4. The method for detecting a living body in a vehicle according to claim 1, It is characterized in that Generating at least one detection complex vector according to the detection channel complex signal of at least one detection sampling channel of the living body detection signal sequence, comprising: Determine the detection signal modulus value of each detection sampling channel based on the detection channel complex signal; A detection complex vector of a detection sampling period is generated based on a first target complex signal and multiple second target complex signals, wherein the first target complex signal is a detection channel complex signal corresponding to a maximum detection signal modulus value, and the second target complex signal is a detection channel complex signal whose signal receiving time is later than that of the first target complex signal.
5. The method for detecting a living body in a vehicle according to claim 1, It is characterized in that Generate a detection digitized time-frequency signal based on all detection complex vectors, including: Generate a detection matrix based on all detection complex vectors, each row of the detection matrix corresponds to a detection channel complex signal of a detection sampling period, and each column of the detection matrix corresponds to a detection sampling channel; Calculating the detection matrix to obtain a detection time domain signal and a detection frequency domain signal; The detected time domain signal and the detected frequency domain signal are combined to obtain a detected time-frequency signal, and the detected time-frequency signal is normalized to obtain the detected digitized time-frequency signal.
6. The method for detecting a living body in a vehicle according to claim 5, It is characterized in that If there are multiple detection complex vectors, generating a detection matrix based on all the detection complex vectors includes at least one of the following: If the number of the detected complex vectors reaches a first preset vector threshold, and the number of historical complex vectors is greater than zero, generating a detection matrix according to all the obtained detected complex vectors; If the number of the detection complex vectors reaches a first preset vector threshold and the number of historical complex vectors is equal to zero, continue to generate detection complex vectors based on the detection channel complex signals of the detection sampling channel of the living body detection signal sequence until the number of the obtained detection complex vectors reaches a second preset vector threshold, and generate a detection matrix based on all the obtained detection complex vectors, and the second preset vector threshold is greater than the first preset vector threshold.
7. The method for detecting a living body in a vehicle according to claim 5, It is characterized in that If there are multiple detection complex vectors, generating a detection matrix based on all the detection complex vectors includes: Writing the obtained detection complex vectors into a preset receiving buffer in sequence; Monitoring the current number of detection complex vectors in the preset receiving buffer; If the current number reaches a third preset vector threshold, generating a detection matrix based on all detection complex vectors in the preset receiving buffer; The detected complex vectors in the preset receiving buffer that are sorted before a fourth preset vector threshold are cleared, and the fourth preset vector threshold is less than the third preset vector threshold.
8. The method for detecting a living body in a vehicle according to any one of claims 1 to 7, It is characterized in that Before generating the in-vehicle liveness detection result of the vehicle to be detected based on the initial detection result, the method includes: Repeating multiple times to generate multiple detection complex vectors based on the detection channel complex signals of multiple detection sampling channels of the living body detection signal sequence, wherein the detection sampling channels selected for each generated detection complex vector are different; Generate a detection digitized time-frequency signal based on all the detection complex vectors generated each time, and obtain multiple detection digitized time-frequency signals; A plurality of detection digitized time-frequency signals are respectively input into a pre-trained breathing detection model to obtain an initial detection result of each detection digitized time-frequency signal.
9. The method for detecting a living body in a vehicle according to claim 8, It is characterized in that Generating a liveness detection result of the vehicle to be detected based on the initial detection result includes: Determining a confidence detection result value of an initial detection result according to an initial detection result and a preset confidence weight of the initial detection result, wherein the initial detection result is a first preset result value or a second preset result value, the first preset result value is not equal to the second preset result value, and the preset confidence weights of the initial detection results are not equal; Determining a total test result value based on the confidence test result values of all initial test results; The in-vehicle liveness detection result of the vehicle to be detected is determined according to a comparison result between the total detection result value and a preset observation threshold.
10. The method for detecting a living body in a vehicle according to claim 9, It is characterized in that The method for determining the total test result value includes: Among them, Prob is the total detection result value, L is the number of initial detection results, α is the preset weight attenuation factor, i is the ordinal value of the initial detection result, and pred t+L-i is the initial detection result of the Lith time, t is Pred t The corresponding moment, is the preset confidence weight of the Li-th initial detection result.
11. The method for detecting a living body in a vehicle according to claim 9, It is characterized in that Determining the in-vehicle liveness detection result of the vehicle to be detected according to the comparison result of the total detection result value and the preset observation threshold, including: If the total detection result value is greater than the preset observation threshold, the in-vehicle liveness detection result of the vehicle to be detected is that there is a live body; If the total detection result value is less than the preset observation threshold, the in-vehicle living body detection result of the vehicle to be detected is no living body.
12. The method for detecting a living body in a vehicle according to claim 9, It is characterized in that Before determining a confidence detection result value of an initial detection result according to an initial detection result and a preset confidence weight of the initial detection result, the method includes: The initial detection results of each detected digitized time-frequency signal are sequentially stored in a preset result queue; The preset weight of the initial detection result is determined according to the preset weight attenuation factor, the sequence value of the initial detection result in the preset result queue, and the length of the preset result queue, and the preset weight of each initial detection result in the preset result queue decreases in sequence.
13. The method for detecting a living body in a vehicle according to any one of claims 1 to 7, It is characterized in that Before inputting the detected digitized time-frequency signal into a pre-trained breathing detection model, the method comprises: Acquire multiple sample detection signal sequences of a sample vehicle, wherein the sample detection signal sequences are obtained by performing a second sampling on an original sample signal received by a sample receiving device and sent by a sample sending device, wherein the sample receiving device and the sample sending device are arranged inside the sample vehicle, and at least part of the original sample signals are signals detected when a living body exists in the sample vehicle; Generate at least one sample complex vector according to the sample channel complex signal of at least one sample sampling channel of the sample detection signal sequence, repeat multiple times to obtain multiple sample complex vector sets; Generate a sample digitized time-frequency signal based on each sample complex vector set to obtain multiple sample digitized time-frequency signals; Labeling each sample digitized time-frequency signal according to the sample live state to obtain a live label of each sample digitized time-frequency signal, wherein the sample live state is the existence state of the live body in the sample vehicle when the sample detection signal of the sample digitized time-frequency signal is generated for detection; A training set is generated according to multiple sample digitized time-frequency signals and the living body labels of each of the sample digitized time-frequency signals, and an initial detection model is trained by the training set until the initial detection model converges to obtain the breathing detection model.
14. The method for detecting a living body in a vehicle according to any one of claims 1 to 7, It is characterized in that After generating the in-vehicle liveness detection result of the vehicle to be detected based on the initial detection result, the method further includes: If the in-vehicle live body detection result is that there is a live body, the vehicle to be detected is controlled to execute a preset alarm measure.
15. A liveness detection device in a vehicle, It is characterized in that The in-vehicle living body detection device comprises: A signal acquisition module, used to acquire a liveness detection signal sequence of a vehicle to be detected, wherein the liveness detection signal sequence is obtained by first sampling an original detection signal received by an in-vehicle receiving device and sent by an in-vehicle sending device; A complex vector generation module, which generates at least one detection complex vector according to a detection channel complex signal of at least one detection sampling channel of the living body detection signal sequence; A digital time-frequency signal generation module, used for generating a detection digital time-frequency signal based on all detection complex vectors; A detection module is used to input the detected digitized time-frequency signal into a pre-trained breathing detection model to obtain an initial detection result, and generate an in-vehicle liveness detection result of the vehicle to be detected based on the initial detection result, wherein the breathing detection model is obtained by training multiple sample digitized time-frequency signals, and the multiple sample digitized time-frequency signals are generated based on multiple sample detection signal sequences of sample vehicles, and at least part of the sample detection signal sequences are obtained by second sampling of original sample signals received when a living body exists in the sample vehicle.
16. A vehicle, It is characterized in that The vehicle comprises an in-vehicle transmitting device and an in-vehicle receiving device, and the in-vehicle receiving device is configured with the in-vehicle living body detection device according to claim 15; The in-vehicle sending device is used to send the original detection signal; The in-vehicle receiving device is used to receive the original detection signal passing through the interior of the vehicle, and transmit the original detection signal to the in-vehicle living body detection device, so as to detect the presence status of living bodies in the vehicle through the in-vehicle living body detection device.
17. A vehicle, It is characterized in that The vehicle comprises an in-vehicle transmitting device, an in-vehicle receiving device and a micro control unit, wherein the micro control unit is configured with the in-vehicle living body detection device according to claim 15; The in-vehicle sending device is used to send the original detection signal; The in-vehicle receiving device is used to receive the original detection signal passing through the interior of the vehicle, and transmit the original detection signal to the in-vehicle liveness detection device in the microcontroller unit through a bus, so as to detect the presence status of liveness inside the vehicle through the in-vehicle liveness detection device.
18. An electronic device, It is characterized in that including a processor, a memory and a communication bus; The communication bus is used to connect the processor and the memory; The processor is configured to execute the computer program stored in the memory to implement the method according to any one of claims 1 to 14.
19. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, The computer program is used to make the computer execute the method according to any one of claims 1 to 14.
