In-vehicle living-body detection method and apparatus, and vehicle, device 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 in live body detection in the car are solved, and high-accuracy and low-cost detection results are achieved.
Patent Information
- Application Number
- PCT/CN2024/085294
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-14
- Filing Date
- 2024-04-01
- Publication Date
- 2024-10-17
AI Technical Summary
Existing in-vehicle living body detection technology is expensive and sensitive to light, with poor accuracy and reliability. Especially at night or in low-light environments, detection performance drops significantly.
Using the in-vehicle sending device and receiving device as dual-station nodes, the original detection signal is sampled to generate a living body detection signal sequence, the detection complex vector is generated and converted into a digital time-frequency signal, and the pre-trained breathing detection model is input to obtain the living body in the car Detection results, using ultra-wideband signals and UWB digital key systems to reduce costs and improve detection performance.
It improves the accuracy and reliability of in-vehicle living body detection at low cost, reduces dependence on light, and enhances detection performance, especially at night or in environments with insufficient light.
Smart Images

Figure CN2024085294_17102024_PF_FP_ABST
Abstract
Description
In-vehicle liveness detection method, device, vehicle, equipment, and storage medium 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 numerous reports of children being forgotten in cars, which has also attracted the attention of relevant organizations to the in-car liveness 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 assessments in 2025, and the program tends to use direct detection to detect living things left in the car.
[0003] In-vehicle liveness detection often relies on cameras. For example, cameras can directly detect living things inside the vehicle cabin. However, due to limited field of view, multiple cameras are often required to address blind spots, which is costly. Furthermore, cameras are sensitive to light, and detection performance degrades significantly at night or in low-light conditions. Therefore, a low-cost, efficient, and accurate method for detecting liveness inside vehicles is urgently needed.
[0004] Summary of the Invention
[0005] 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 the related art in-vehicle liveness detection methods such as high cost, accuracy greatly affected by light, and poor reliability.
[0006] In response to 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 transmitting device; generating at least one detection complex vector based on the 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 the original sample signal received when a living body is present in the sample vehicle.
[0007] 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 transmitting device to transmit an original detection signal, wherein the original detection signal is an ultra-wideband signal; receiving the original detection signal by at least one in-vehicle receiving device, performing a first sampling on the received original detection signal, and obtaining the liveness detection signal sequence; wherein the in-vehicle transmitting device and the in-vehicle receiving device are arranged inside the vehicle to be detected.
[0008] 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 moment, 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.
[0009] 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 that of the first target complex signal.
[0010] 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.
[0011] 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 obtained 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.
[0012] In one embodiment of the present invention, if there are multiple detection complex vectors, generating a detection matrix based on all the detection complex vectors includes: sequentially writing the obtained detection complex vectors into a preset receive buffer; monitoring the current number of detection complex vectors in the preset receive 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 receive buffer; and clearing the detection complex vectors in the preset receive buffer that are sorted before a fourth preset vector threshold, where the fourth preset vector threshold is less than the third preset vector threshold.
[0013] 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, where the detection sampling channels selected for each generated detection complex vector 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 an initial detection result for each detection digitized time-frequency signal.
[0014] In one embodiment of the present invention, 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 the initial detection result based on 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 each 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 based on a comparison result between the total detection result value and a preset observation threshold.
[0015] In one embodiment of the present invention, the method for determining the total test result value includes:
[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 index value of the initial detection result, and pred t+L-i is the Lith initial detection result, 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 based on a comparison result of the total detection result value and a 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 liveness; 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 no liveness, 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 no liveness, and the in-vehicle liveness detection result represented by the second preset result value is liveness.
[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 the initial detection results of each 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 weight of each initial detection result in the preset result queue decreases in sequence.
[0022] In one embodiment of the present invention, 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 a sample vehicle, wherein the sample detection signal sequences are obtained by performing a second sampling operation 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 based on the sample channel complex signal of at least one sample sampling channel of the sample detection signal sequence, and repeating the process multiple times. , obtaining 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 liveness state to obtain a liveness label of each sample digitized time-frequency signal, wherein the sample liveness state is the presence 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 based on the multiple sample digitized time-frequency signals and the liveness labels of each of the sample digitized time-frequency signals, training the initial detection model through the training set until the initial detection model converges, and obtaining the breathing detection model.
[0023] In one embodiment of the present invention, after generating an 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 indicates 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 for acquiring 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 transmitting device; a complex vector generation module for generating at least one detection complex vector based on 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 for generating a detection digital time-frequency signal based on all detection complex vectors; a detection module for inputting the detection digital 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 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 the 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 the 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 living things 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 microcontroller unit, wherein the microcontroller 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 microcontroller unit via a bus, so as to detect the presence of living beings inside the vehicle through the in-vehicle liveness detection device.
[0027] An embodiment of the present invention also provides an electronic device, comprising 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 having a computer program stored thereon, wherein 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 liveness 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 dual-station nodes in the vehicle, 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 dual-station node of the in-vehicle receiving device and the in-vehicle transmitting device, a higher quality breathing signal can be extracted, and checked through the 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 the nodes of other systems, such as the digital key system, which can significantly reduce costs and increase accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] FIG1 is a system architecture diagram illustrating an exemplary embodiment of the present application;
[0032] FIG2 is a flow chart of a method for detecting a living body in a vehicle according to an exemplary embodiment of the present application;
[0033] FIG3 is a schematic structural diagram of an exemplary breathing detection model shown in an exemplary embodiment of the present application;
[0034] FIG4 is a block diagram of an in-vehicle living body detection device shown in an exemplary embodiment of the present application;
[0035] FIG5 is a block diagram of a vehicle according to an exemplary embodiment of the present application;
[0036] FIG6 is a schematic structural diagram of a vehicle according to an exemplary embodiment of the present application;
[0037] FIG7 is a block diagram of a vehicle according to another exemplary embodiment of the present application;
[0038] FIG8 is a schematic structural diagram of a vehicle according to another exemplary embodiment of the present application;
[0039] FIG9 is a schematic structural diagram of an electronic device provided by an embodiment. DETAILED DESCRIPTION
[0040] The following describes the embodiments of the present invention through specific examples. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments. The details in this specification can also be modified or changed 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 unless they conflict.
[0041] It should be noted that the illustrations provided in the following embodiments are merely schematic illustrations of the basic concept of the present invention. Therefore, the illustrations only show components related to the present invention and are not 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 complex.
[0042] Please refer to Figure 1, which is a system architecture diagram of an exemplary embodiment of the present application. As shown in Figure 1, a vehicle 100 is provided with an in-vehicle transmitting device 101 and an in-vehicle receiving device 102. The number of in-vehicle receiving devices can be one or more. Figure 1 shows an example of the location of the in-vehicle transmitting device and the in-vehicle receiving device. Those skilled in the art can also adjust the location as needed, including but not limited to swapping the locations of the in-vehicle transmitting device and the in-vehicle receiving device. When performing in-vehicle liveness detection on the vehicle, the in-vehicle transmitting device sends an original detection signal, which is received by the in-vehicle receiving device. When a living being is present in the vehicle, the received original detection signal will change. By performing a first sampling on 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 a pre-trained breathing detection model to obtain the in-vehicle liveness detection result. The above method provides a new approach for in-vehicle liveness detection. Based on the above method, in-vehicle liveness detection can avoid the problem of being affected by lighting when relying on cameras for liveness detection, effectively improving the scene applicability and accuracy of in-vehicle liveness detection, while also reducing costs.
[0043] It should be noted that 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 using a processor core and memory located outside the vehicle. The above is only an example, and the specific implementation method can be selected by those skilled in the art as needed. In other words, the liveness detection device can be implemented using the vehicle's own hardware or with the help of external hardware devices.
[0044] Please refer to Figure 2, which is a flow chart illustrating a method for detecting liveness in a vehicle, according to an exemplary embodiment of the present application. This method can be implemented using the system architecture shown in Figure 1, or other implementation environments known to those skilled in the art. As shown in Figure 2, in an exemplary embodiment, the method for detecting liveness in a vehicle includes at least steps S201 to S204, which are described in detail as follows:
[0045] Step S201: Acquire 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 transmitted by the in-vehicle transmitting device and received by the in-vehicle receiving device. Both the in-vehicle receiving device and the in-vehicle transmitting device are located inside the vehicle to be detected. An exemplary arrangement is shown in Figure 1. As mentioned in the above embodiment, the placement of the in-vehicle receiving device and the in-vehicle transmitting device can be adjusted as needed by those skilled in the art. The placement in Figure 1 is merely an example.
[0047] For example, the liveness detection signal sequence may be a signal of a certain sampling time window pre-set by those skilled in the art, wherein 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 length of multiple sampling periods.
[0048] The execution of this step can be implemented by a processor and memory set 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 those skilled in the art. 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 step of liveness detection in the vehicle.
[0049] In one embodiment, before obtaining a liveness detection signal sequence of a vehicle to be detected, the method includes: controlling an in-vehicle transmitting device to transmit an original detection signal, where the original detection signal is an ultra-wideband signal; receiving the original detection signal via 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 disposed inside the vehicle to be detected.
[0050] In this embodiment, a first sampling is performed on the received original detection signal to obtain a liveness 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] Furthermore, at each sampling moment, all original detection signals reaching the receiving device in the vehicle 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 rules or different sampling methods. The specific implementation may be achieved 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 obtaining 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. The Initiator sends a 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 receiver at that moment are superimposed to obtain the I / Q complex signal I+Qj at that sampling moment;
[0060] 4. Continuously sample within 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, thereby obtaining a liveness detection signal sequence.
[0062] To save costs, the dual-station UWB nodes in this embodiment (in-vehicle transmitting device and in-vehicle receiving device) 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 the detection channel complex signal of at least one detection sampling channel of a living body detection signal sequence, including: determining the 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 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 that of the first target complex signal.
[0065] For example, a sampling window of length t can be opened by the in-vehicle receiving device, with a sampling period of T. At each sampling moment, all the original detection signals arriving at the in-vehicle receiving device are superimposed to obtain the I / Q complex signal I+Qj at that sampling moment, which is also the detection channel complex signal. Continuous sampling within the time window of t yields the channel impulse response (CIR), which is the original signal sequence and has a length of t / T.
[0066] By performing a first sampling of the liveness detection signal sequence during a detection sampling period to obtain the original signal, the above steps are repeated, performing multiple samplings during multiple detection sampling periods within a sampling window to obtain the CIR original signal sequence. 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 with the largest detection signal modulus is selected as the first target sampling channel, and the detection channel complex signals of several detection sampling channels following the first target sampling channel are selected as the second target complex signal. The detection sampling channels are sorted by signal reception time. Therefore, the second target complex signal is received 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. The detection complex vector generated in this way is more accurate, and ultimately the detection result of the living body in the vehicle is also more accurate. Of course, based on the above principles, 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 specific selection of the 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 current state of existence of the 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 period, a detection complex vector can be obtained. If the original detection signal is sampled for multiple detection sampling periods, multiple detection complex vectors can be obtained. The specific number of detection sampling periods and the setting of the detection sampling periods can be set by those skilled in the art as needed. In other words, each sampling period can be performed for one or more detection sampling periods.
[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 detected digitized time-frequency signal based on all the detected 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 for the rows and columns of the detection matrix are only an example. Those skilled in the art can also easily think of setting up 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 this embodiment and does not deviate from the core of this application and is within the scope of protection of this 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 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 based on 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 zero, continue to generate detection complex vectors based on the detection channel complex signals of the detection sampling channels of the liveness 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] In other words, when historical complex vectors exist, the detection matrix must be generated by combining the currently obtained detection complex vector and the historical complex vectors. In other words, when performing continuous in-vehicle liveness detection, the detection matrices obtained from two previous and subsequent phases intersect. Historical complex vectors are one or more complex vectors from the previous detection matrix. It should be noted that to ensure more accurate detection results, 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 of the detection complex vectors includes: sequentially writing the obtained detection complex vectors into a preset receive buffer; monitoring the current number of detection complex vectors in the preset receive buffer; if the current number reaches a third preset vector threshold, generating a detection matrix based on all of the detection complex vectors in the preset receive buffer; and clearing the detection complex vectors in the preset receive buffer that are ranked before a fourth preset vector threshold, where 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 receive buffer have at least one overlap in the detection complex vectors.
[0082] In this embodiment, normalizing the detected time-frequency signal includes converting the element values of the detected time-frequency signal to a preset numerical interval, such as the interval [0, 1]. Through normalization, the signal can be digitized to meet the requirements of the model input signal. Of course, other methods known to those skilled in the art may also be used to normalize the detected time-frequency signal.
[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 respiratory detection model, meeting 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 an in-vehicle liveness detection result of a vehicle to be detected based on an 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 a liveness detection signal sequence, where the detection sampling channels selected for each generated detection complex vector 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 to obtain an initial detection result for 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 implemented according to the timing selection or other methods set by technical personnel in this field.
[0088] It should be noted that when performing multiple first sampling on the original detection signal, the original detection signal may be a continuous signal or a discontinuous signal, and the sampling mode of the multiple first sampling may be continuous or discontinuous.
[0089] In this embodiment, a liveness detection result in a vehicle to be detected is generated based on an initial detection result, including: determining a confidence detection result value of an initial detection result based on 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 and the second preset result value are not equal, 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 a liveness detection result in the vehicle to be detected based on a comparison result of the total detection result value and a 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] 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 index value of the initial detection result, and pred t+L-i is the Lith initial detection result, t is Pred t The corresponding moment, is the preset confidence weight of the Li-th initial detection result.
[0092] In this embodiment, an exemplary implementation method of determining the in-vehicle liveness detection result of the vehicle to be detected based on the comparison result of the total detection result value and the preset observation threshold is as follows:
[0093] If the total number of detection results is greater than the preset observation threshold, the vehicle's in-vehicle liveness detection result is considered live. If the total number of detection results is less than the preset observation threshold, the vehicle's in-vehicle liveness detection result is considered non-live. It should be noted that the total number of detection results represents the number of liveness detections.
[0094] Those skilled in the art will appreciate that if the total detection result value represents the number of non-live detections, an implementation method may be to determine that the vehicle's in-vehicle liveness detection result is non-live if the total detection result value is greater than a preset observation threshold; otherwise, it is considered live. This solution is merely a simple variation of the above method and remains within the scope of protection of this embodiment.
[0095] 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 the initial detection results of each 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 ranking value of the initial detection result in the preset result queue, and the total ranking value of the preset result queue, and the preset confidence weights of each initial detection result in the preset result queue decrease in sequence.
[0096] Among them, one way to determine the preset credit weight is as follows:
[0097] 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.
[0098] It should be noted that the preset confidence weight of each position in the preset result queue can also be pre-set by those skilled in the art, and there is no need to make a temporary determination each time, which can also reduce the number of operations.
[0099] In one embodiment, a breathing detection model is trained using multiple sample digitized time-frequency signals generated based on multiple sample detection signal sequences from a sample vehicle, at least some of which are obtained by performing a second sampling of original detection signals received when a living person is present within the sample vehicle. The breathing detection model trained in this manner is capable of detecting liveness detection signal sequences even when a living person is present.
[0100] 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 a sample vehicle, the sample detection signal sequence being obtained by performing a second sampling on an original sample signal received by a sample receiving device and sent by a sample sending device, the sample receiving device and the sample sending device being arranged inside the sample vehicle, and at least part of the original sample signal being a signal detected when a living body exists in the sample vehicle; generating at least one sample complex vector based on the sample channel complex signal of at least one sample sampling channel of the sample detection signal sequence, repeating the process 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 for each sample digitized time-frequency signal, the sample living body state being the state of existence of a living body in the sample vehicle when the sample detection signal that generates the sample digitized time-frequency signal is detected; generating a training set based on the multiple sample digitized time-frequency signals and the living body label 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 a breathing detection model.
[0101] It should be noted that 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.
[0102] In one embodiment, the breathing detection model is modeled based on a time series prediction method and a recurrent neural network LSTM. Please refer to FIG3 , which is a structural diagram of an exemplary breathing detection model shown in an exemplary embodiment of the present application.
[0103] Because a neural network model is involved, the respiratory model needs to be trained and the model parameters determined before deployment. The training method for the recurrent neural network (LSTM) can also be implemented using methods known to those skilled in the art and will not be described in detail here. It should be noted that during the training phase, the input to the model should also be a normalized time-frequency signal. That is, the input data pattern during the training phase should be consistent with the input data pattern during the deployment phase.
[0104] In one embodiment, based on chip parameters such as the MCU's storage space and CPU computing power, further reference can be made to model compression methods known to those skilled in the art to perform dimensionality reduction, compression, and other processing on the respiratory detection model parameters, so as to further reduce the model size and computational complexity, thereby facilitating deployment in actual vehicles.
[0105] 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.
[0106] In one embodiment, after generating a liveness detection result of the vehicle to be detected based on the initial detection result, the method further includes: if the liveness detection result of the vehicle to be detected is that there is a live body, controlling the vehicle to be detected to execute a preset alarm measure.
[0107] 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.
[0108] In this embodiment, the level of a preset alarm measure can be determined based on the number of liveness detection results obtained in the vehicle indicating liveness. If the number of liveness results is less than a first threshold, a primary alarm is executed, which may include flashing the vehicle's lights a certain number of times or honking the horn a certain number of times. If the number of liveness results is greater than the first threshold and less than a second threshold, and the first threshold is less than the second threshold, a high-level alarm is executed, which may include flashing the vehicle's lights a certain number of times or keeping them on, or honking the horn a certain number of times or continuously. At least one of the number of flashes or the duration of the lights being on in the primary alarm is less than the number of flashes or the duration of the lights being on in the high-level alarm. Similarly, at least one of the number of honking times or the duration of the honking in the primary alarm is less than the number of honking times or the duration of the honking in the high-level alarm. If the number of liveness results is greater than the second threshold, active intervention measures may be taken, such as opening the windows to a certain degree to allow air circulation inside and outside the vehicle. The liveness detection results can also be pushed to a preset terminal via a preset contact method, such as by phone, text message, email, or app push notification, so that the preset user is aware of the situation. When the number of liveness results exceeds a third threshold, an alarm or other method can also be directly used, where the third threshold is greater than the second threshold.
[0109] 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 will be upgraded to a high-level 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.
[0110] The in-vehicle liveness detection method provided by the above 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 pre-established breathing detection model is used for inspection, which is more robust to environmental noise, has better detection performance, low cost, and higher accuracy.
[0111] 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.
[0112] The following further illustrates the in-vehicle living body detection method provided by the above embodiment through a specific embodiment.
[0113] First, an exemplary embodiment of the transmission and reception of the original detection signal is provided. Taking the in-vehicle receiving device as Responder, the in-vehicle transmitting device 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: the Initiator sends a UWB synchronization signal to the Responder, and the Responder enters the receiving state; the Initiator sends a UWB pulse signal; the 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; continuous sampling is performed within the time window of t to obtain the channel impulse response CIR (Channel Impulse Response), which is the original signal sequence with a length of t / T; 2, 3, and 4 are periodically repeated to continuously receive CIR signals, which are also the liveness detection signal sequence.
[0114] 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:
[0115] 1. Select n sampling channels from the CIR original signal sequence to obtain the complex vector V n and write it to the receive buffer.
[0116] The CIR original signal sequence contains t / T sampling channels. Assuming the sampling window time length t = 1μs and the sampling period T = 1ns, the CIR contains t / T = 1000 sampling channels in total, and each sampling channel corresponds to a complex signal I+Qj. The channel selection method is as follows: traverse all sampling channels and calculate the signal modulus value |I of each sampling channel 2 +Q 2 |; Find the sampling channel max_idx with the largest modulus value; Select n sampling channels (can be continuous or discontinuous) starting from max_idx (after the sampling time), that is, [max_idx, max_idx+n-1], and obtain the complex vector V containing n sampling channels n .
[0117] 2. Check the receive buffer to see if m complex vectors V have been accumulated n , if so, batch-read m complex vectors V n , and obtain matrix C mxn , and at the same time clear the first k complex vectors V in the buffer n (k < m).
[0118] It should be noted that 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 one sampling channel. The meaning of k < m is that there is an intersection between the matrices C read twice before and after mxn .
[0119] 3. Calculate matrix C mxn to obtain the time-domain signal CT mxn and the frequency-domain signal CF mxn respectively.
[0120] 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 .
[0121] 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.
[0122] 4. Combine CT mxn and CF mxn into a time-frequency signal CTF mx2n , and perform normalization processing to obtain the normalized time-frequency signal CNTF mx2n .
[0123] Normalization processing is to convert the element values of the time-frequency signal CTF mx2n to the interval [0, 1], which is a preprocessing operation for the input signal of the model.
[0124] 5. Input the normalized time-frequency signal CNTF mx2n into the respiration detection model to obtain the model recognition result pred.
[0125] The respiration detection model is modeled 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 one timestep, and there are m timesteps in total. For each timestep, its input is a column vector with a length of 2n. Each timestep will calculate an output result Pt , the output P of the last timestep m As the model prediction result pred, pred∈{0,1}.
[0126] 6. Post-process the recognition result pred and calculate the liveness detection recognition result result.
[0127] Assuming the UWB signal transmission period is 100ms, m = 50, k = 25, the model result is output once every 2500ms on average. The algorithm post-processing steps are as follows:
[0128] (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, the queue value is updated to [pred t+1 ,pred t+2 ,…,pred t+L-1 ,pred t+L ];
[0129] (2) Calculate the breathing detection probability value Prob. The calculation method can be found in formula (1);
[0130] (3) Set the breathing detection threshold Thresh. If Prob>Thresh, then result=true, otherwise false
[0131] 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], and Thresh = 2.0, then:
[0132] Prob=1×1+0.85×1+0.7×1+0.55×0=2.55, Prob>Thresh, result=true.
[0133] 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.
[0134] 7. If result = true, then trigger the vehicle warning or intervention measures.
[0135] According to Euro-NCAP, there are three levels of vehicle warnings or intervention measures:
[0136] (1) Initial warning, such as flashing lights and honking horn for 3 seconds;
[0137] (2) Upgrade warnings, such as increasing the duration of flashing lights and horns;
[0138] (3) Active intervention, such as opening the car window.
[0139] 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 time series prediction method and a recurrent neural network, which is more robust to environmental noise and has better detection performance.
[0140] Please refer to FIG4 , which is a block diagram of an in-vehicle liveness detection device according to an exemplary embodiment of the present application. As shown in FIG4 , this embodiment provides an in-vehicle liveness detection device 400 , which includes:
[0141] The signal acquisition module 401 is used to obtain a liveness detection signal sequence of the vehicle to be detected, where the liveness detection signal sequence is obtained by first sampling the original detection signal sent by the in-vehicle transmitting device and received by the in-vehicle receiving device;
[0142] 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;
[0143] A digital time-frequency signal generating module 403 is configured to generate a detection digital time-frequency signal based on all detection complex vectors;
[0144] 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 a liveness detection result for the vehicle to be detected 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 some of the sample detection signal sequences are obtained by second sampling of the original sample signals received when a living person is present in the sample vehicle.
[0145] 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 digitized time-frequency signal into a pre-trained breathing detection model, where 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 a living body exists in the sample vehicle; generate at least one sample complex vector based on 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; label 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, where the sample living body state is the state of existence of a living body in the sample vehicle when the sample detection signal that generates the sample digitized time-frequency signal is detected; generate a training set based on the multiple sample digitized time-frequency signals and the living body label of each sample digitized time-frequency signal, and train the initial detection model through the training set until the initial detection model converges to obtain a breathing detection model.
[0146] In one embodiment, the device further includes an early warning module for controlling 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.
[0147] In this embodiment, the device is essentially provided with multiple modules for executing the method in any of the above embodiments. The specific functions and technical effects can be referred to the above embodiments and will not be repeated here.
[0148] Please refer to FIG5 , which is a block diagram of a vehicle according to an exemplary embodiment of the present application. As shown in FIG5 , this embodiment provides a vehicle including an in-vehicle transmitting device and an in-vehicle receiving device. The in-vehicle receiving device is equipped with the in-vehicle living body detection apparatus described in the above embodiment.
[0149] The sending device in the vehicle is used to send the original detection signal;
[0150] 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 of living beings inside the vehicle.
[0151] Please refer to Figure 6, which is a structural diagram of a vehicle shown in an exemplary specific embodiment of the present application. As shown in Figure 6, 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, and 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 living things in the vehicle (the black blocks in the figure).
[0152] In this embodiment, the device is essentially provided with multiple modules for executing the method in any of the above embodiments. The specific functions and technical effects can be referred to the above embodiments and will not be repeated here.
[0153] Please refer to FIG. 7 , which is a block diagram of a vehicle according to another exemplary embodiment of the present application. As shown in FIG. 7 , this embodiment provides a vehicle including an in-vehicle transmitting device, an in-vehicle receiving device, and a microcontroller unit. The microcontroller unit is configured with the in-vehicle living body detection device described in the above embodiment.
[0154] The sending device in the vehicle is used to send the original detection signal;
[0155] 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 of living beings inside the vehicle through the in-vehicle liveness detection device.
[0156] Please refer to Figure 8, which is a structural diagram of a vehicle shown in another exemplary specific embodiment of the present application. As shown in Figure 8, 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, and 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.
[0157] In this embodiment, the device is essentially provided with multiple modules for executing the method in any of the above embodiments. The specific functions and technical effects can be referred to the above embodiments and will not be repeated here.
[0158] Referring to Figure 9, an embodiment of the present invention also 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 the computer program stored in the memory 902 to implement one or more methods described in the above embodiments.
[0159] 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 the method described in any one of the above-mentioned embodiments.
[0160] An 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 the instructions (instructions) of the steps included in embodiment 1 of the embodiment of the present application.
[0161] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, 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 that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport 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 thereof.
[0162] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0163] 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 stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0164] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0165] 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 skilled in 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 one of ordinary skill in the art without departing from the spirit and technical principles disclosed herein are intended to be covered by the claims of the present invention.
Claims
1. A method for detecting a living body in a vehicle, 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, wherein: 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, wherein: 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, wherein: 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 the 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, wherein: 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 detection time domain signal and the detection frequency domain signal are combined to obtain a detection time-frequency signal, and the 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, wherein: 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, wherein: 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, 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, wherein: 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, wherein: 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 Lith initial detection result, t 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, wherein: 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, wherein: 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, 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 the sample vehicle, wherein the sample detection signal sequences are obtained by performing a second sampling on the original sample signal received by the sample receiving device and sent by the 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 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, and ... the sample sending device is arranged The original sample signal is a signal 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, 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, 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 is configured to generate a complex vector according to at least one detection sampling channel of the living body detection signal sequence. Detecting the channel complex signal to generate at least one detection complex vector; 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, 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, 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, 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, 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.
Citation Information
Patent Citations
Moving object detection apparatus
CN106019267A
Living body detection method and device
CN109190528A
Vital sign detection method
CN114947772A
Method and device for detecting living body left in vehicle, electronic equipment and storage medium
CN115635916A
UWB-based respiration detection method and device and medium
CN115856769A
Cited By
Living body detection method and device, electronic equipment and vehicle
CN119796110A
