Live detection method and device, electronic equipment and storage medium

By performing spectral transformation on the pulse wave signal to obtain the amplitude of the fundamental and harmonic frequencies, the problem of pulse wave sensors being triggered by non-living objects is solved, and efficient liveness detection is achieved.

CN119302618BActive Publication Date: 2026-05-12GUANGZHOU SHIYUAN ELECTRONICS CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGZHOU SHIYUAN ELECTRONICS CO LTD
Filing Date
2023-07-12
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

In existing technologies, pulse wave sensors are easily triggered by non-living objects such as tissues or clothing, resulting in false pulse wave signal measurements. Furthermore, the process of identifying living individuals using additional signals is complex and time-consuming.

Method used

By performing spectral transformation on the pulse wave signal, the fundamental frequency and harmonic frequencies are obtained. Using the amplitude corresponding to the fundamental frequency, the amplitude corresponding to the harmonic frequency, and the amplitude of each frequency in the frequency domain amplitude spectrum, it is determined whether the object to be detected is a living body.

Benefits of technology

It improves the efficiency of liveness detection, simplifies the identification process, and reduces reliance on other vital signs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119302618B_ABST
    Figure CN119302618B_ABST
Patent Text Reader

Abstract

The application relates to a living body detection method and device, electronic equipment and a storage medium. The method comprises the following steps: obtaining a pulse wave signal of a to-be-detected object; performing frequency spectrum transformation on the pulse wave signal to obtain a frequency domain amplitude spectrum in a preset frequency band; obtaining a fundamental wave frequency of the pulse wave signal; determining a plurality of harmonic frequencies located in the preset frequency band according to the fundamental wave frequency; and determining whether the to-be-detected object is a living body according to the amplitude corresponding to the fundamental wave frequency, the amplitudes corresponding to the plurality of harmonic frequencies and the amplitudes corresponding to the frequencies in the frequency domain amplitude spectrum. The application can identify whether the to-be-detected object is a living body by performing frequency spectrum transformation on the pulse wave signal, according to the relationship among the amplitude corresponding to the fundamental wave frequency, the amplitudes corresponding to the harmonic frequencies and the amplitudes corresponding to the frequencies in the frequency domain amplitude spectrum, and only needs to process the pulse wave signal, thereby improving the living body detection efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of signal processing technology, and in particular to a liveness detection method, apparatus, electronic device, and storage medium. Background Technology

[0002] Photoplethysmograph (PPG) signals are commonly used to measure vital signs and can be obtained using a pulse wave sensor.

[0003] Due to limitations in the measurement principle of pulse wave sensors, in practical applications, some non-living objects, such as tissues or clothing, can trigger pulse wave sensor measurements, resulting in false pulse wave signals. In such cases, calculating vital signs from PPG signals generated by non-living objects may produce numerous invalid results, or even erroneously trigger alarms.

[0004] In related technologies, signals other than PPG, such as electrocardiogram signals, acceleration, and temperature, are needed to identify whether the object generating the pulse wave signal is a living body. The identification process is complex and time-consuming. Summary of the Invention

[0005] Based on this, the purpose of this application is to provide a liveness detection method, apparatus, electronic device, and storage medium, which can improve the efficiency of liveness detection.

[0006] According to a first aspect of the embodiments of this application, a liveness detection method is provided, comprising the following steps:

[0007] Acquire the pulse wave signal of the object to be detected;

[0008] Perform spectral transformation on the pulse wave signal to obtain the frequency domain amplitude spectrum within the preset frequency band;

[0009] Obtain the fundamental frequency of the pulse wave signal;

[0010] Based on the fundamental frequency, determine several harmonic frequencies located within a preset frequency band;

[0011] Based on the amplitude corresponding to the fundamental frequency, the amplitude corresponding to several harmonic frequencies, and the amplitude corresponding to each frequency in the frequency domain amplitude spectrum, it is determined whether the object to be detected is a living body.

[0012] According to a second aspect of the embodiments of this application, a liveness detection device is provided, comprising:

[0013] The signal acquisition module is used to acquire the pulse wave signal of the object to be detected;

[0014] The amplitude spectrum acquisition module is used to perform spectral transformation on the pulse wave signal to obtain the frequency domain amplitude spectrum within a preset frequency band.

[0015] The fundamental frequency acquisition module is used to acquire the fundamental frequency of the pulse wave signal;

[0016] The harmonic frequency determination module is used to determine several harmonic frequencies located within a preset frequency band based on the fundamental frequency.

[0017] The liveness detection module is used to determine whether the object to be detected is a live body based on the amplitude corresponding to the fundamental frequency, the amplitude corresponding to several harmonic frequencies, and the amplitude corresponding to each frequency in the frequency domain amplitude spectrum.

[0018] According to a third aspect of the embodiments of this application, an electronic device is provided, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed as in any of the above-described liveness detection methods.

[0019] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the liveness detection method as described in any of the above.

[0020] This application embodiment acquires the pulse wave signal of the object to be detected; performs spectral transformation on the pulse wave signal to obtain a frequency domain amplitude spectrum within a preset frequency band; acquires the fundamental frequency of the pulse wave signal; determines several harmonic frequencies within the preset frequency band based on the fundamental frequency; and determines whether the object to be detected is a living body based on the amplitude corresponding to the fundamental frequency, the amplitude corresponding to the several harmonic frequencies, and the amplitude corresponding to each frequency in the frequency domain amplitude spectrum. This application, by performing spectral transformation on the pulse wave signal and based on the relationship between the amplitude corresponding to the fundamental frequency, the amplitude corresponding to the harmonic frequencies, and the amplitude corresponding to each frequency in the frequency domain amplitude spectrum, can identify whether the object to be detected is a living body. It only requires processing the pulse wave signal, thus improving the efficiency of liveness detection.

[0021] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application.

[0022] To better understand and implement this invention, the following detailed description is provided in conjunction with the accompanying drawings. Attached Figure Description

[0023] Figure 1 A schematic flowchart of a liveness detection method provided in one embodiment of this application;

[0024] Figure 2 This is a flowchart illustrating step S30 of a liveness detection method provided in one embodiment of this application.

[0025] Figure 3 This is a flowchart illustrating step S40 of a liveness detection method provided in one embodiment of this application.

[0026] Figure 4 This is a flowchart illustrating step S50 of a liveness detection method provided in one embodiment of this application.

[0027] Figure 5 This is a flowchart illustrating step S54 of a liveness detection method provided in one embodiment of this application.

[0028] Figure 6 This is a structural block diagram of a liveness detection device provided in one embodiment of this application;

[0029] Figure 7 This is a schematic block diagram of the structure of an electronic device provided in one embodiment of this application. Detailed Implementation

[0030] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0031] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0032] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the embodiments of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0033] In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims. In the description of this application, it should be understood that the terms "first," "second," "third," etc., are used only to distinguish similar objects and are not necessarily used to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0034] Furthermore, in the description of this application, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0035] To better understand the design scheme of this application, the following explanation will be provided in conjunction with specific application scenarios.

[0036] The application scenarios of the liveness detection method in this application include pulse wave sensors and liveness detection devices; the pulse wave sensor is connected to the liveness detection device, and the pulse wave sensor transmits the pulse wave signal of the detected object to the liveness detection device.

[0037] The liveness detection method of this application embodiment can be executed by a liveness detection device, which can be implemented by software and / or hardware. The liveness detection device can consist of two or more physical entities, or it can consist of a single physical entity. The hardware referred to by the liveness detection device essentially refers to computer equipment; for example, the liveness detection device can be a computer, mobile phone, tablet, or smart interactive whiteboard, or other intelligent devices.

[0038] To better understand the design scheme of this application, the following section introduces the liveness detection method of related technologies.

[0039] When performing liveness detection, pulse wave sensors are typically used to collect pulse pulse rate (PPG) signals. However, non-living objects, such as tissues or clothing, can also trigger PPG measurements, resulting in false pulse wave signals. In such cases, calculating vital signs from PPG signals generated by non-living objects may produce numerous invalid results or even falsely trigger alarms.

[0040] In related technologies, to improve the accuracy of liveness detection, signals other than PPG are needed to identify whether the object generating the pulse wave signal is a living being. For example, many wearable devices are equipped with pulse wave sensors, heart rate detection modules, and temperature detection modules. The pulse wave sensor detects the object's pulse wave signal, the heart rate detection module detects the object's heart rate signal, and the temperature detection module detects the object's body temperature signal. By comprehensively analyzing the pulse wave signal, heart rate signal, and body temperature signal, it is possible to identify whether the object generating the pulse wave signal is a living being. This identification process is complex and time-consuming.

[0041] Therefore, this application proposes a liveness detection method.

[0042] Please see Figure 1 , Figure 1The following is a flowchart illustrating a liveness detection method according to an embodiment of this application. The method includes the following steps:

[0043] S10: Acquire the pulse wave signal of the object to be detected.

[0044] The object to be tested is the object that needs to be determined to be alive. The object to be tested may be a living organism or a non-living organism. A living organism refers to a living organism with vital signs, such as humans and animals, while a non-living organism refers to an object that does not have life characteristics, such as tissues, clothing, and other miscellaneous items.

[0045] In this embodiment, a pulse wave sensor is used to detect the pulse wave signal of the object to be detected. The pulse wave signal detected by the pulse wave sensor over a certain period of time is collected and then transmitted to a liveness detection device. For example, a pulse wave signal with a duration of 8 seconds.

[0046] S20: Perform spectral transformation on the pulse wave signal to obtain the frequency domain amplitude spectrum within the preset frequency band.

[0047] Spectrum transformation is used to convert time-domain signals into corresponding frequency-domain signals. Specifically, spectrum transformation includes, but is not limited to, chirp z-transform (CZT), fast Fourier transform, and discrete Fourier transform.

[0048] The preset frequency band refers to a preset frequency range. Specifically, since the common human pulse rate is between 30 and 300 bpm, the corresponding preset frequency band is 0.5 to 5 Hz.

[0049] In this embodiment, the liveness detection device obtains a frequency domain amplitude spectrum by performing spectral transformation on the pulse wave signal. The frequency domain amplitude spectrum characterizes the distribution of signal amplitude with frequency, including different frequencies and the amplitude corresponding to each frequency. Based on a preset frequency band, the frequency domain amplitude spectrum is filtered to obtain the frequency domain amplitude spectrum within the preset frequency band. Specifically, it is determined whether each frequency in the frequency domain amplitude spectrum is within the preset frequency band, identifying several frequencies within the preset frequency band, obtaining the amplitudes corresponding to these frequencies, and obtaining the frequency domain amplitude spectrum within the preset frequency band based on these frequencies and their corresponding amplitudes.

[0050] S30: Acquire the fundamental frequency of the pulse wave signal.

[0051] The fundamental wave refers to the sinusoidal wave component in a complex periodic oscillation that has the longest period of that oscillation, and the frequency corresponding to this period is called the fundamental wave frequency.

[0052] In this embodiment, the liveness detection device performs spectral transformation on the pulse wave signal, and can obtain the fundamental frequency from the frequency domain amplitude spectrum. Alternatively, the pulse rate can be determined from the pulse wave signal, and the fundamental frequency can be obtained based on the pulse rate. Here, pulse rate refers to the number of pulse beats per minute.

[0053] S40: Determine several harmonic frequencies located within a preset frequency band based on the fundamental frequency.

[0054] Among them, harmonics refer to sinusoidal wave components whose frequencies are integer multiples of the fundamental frequency. The harmonic frequency is an integer multiple of the fundamental frequency.

[0055] In this embodiment, after obtaining the fundamental frequency, the liveness detection device can multiply the fundamental frequency by several integers to obtain several harmonic frequencies. Based on a preset frequency band, all harmonic frequencies are filtered to obtain several harmonic frequencies located within the preset frequency band.

[0056] S50: Determine whether the object to be detected is a living body based on the amplitude corresponding to the fundamental frequency, the amplitude corresponding to several harmonic frequencies, and the amplitude corresponding to each frequency in the frequency domain amplitude spectrum.

[0057] For pulse wave signals generated by a living organism, the presence of a pulse results in a periodic pulse wave signal. This is represented in the frequency domain amplitude spectrum by frequency components with high amplitudes and multiple harmonics. In contrast, for pulse wave signals generated by a non-living organism, the absence of a pulse leads to smaller amplitudes for the fundamental and harmonic frequencies in the frequency domain amplitude spectrum.

[0058] In this embodiment, the liveness detection device calculates a first ratio of the amplitude corresponding to the fundamental frequency to the sum of the amplitudes corresponding to each frequency in the frequency domain amplitude spectrum, calculates a second ratio of the sum of the amplitudes corresponding to several harmonic frequencies to the sum of the amplitudes corresponding to each frequency in the frequency domain amplitude spectrum, and determines whether the object to be detected is a live body based on the first ratio and the second ratio.

[0059] In one optional embodiment, if the first ratio is greater than or equal to a first preset threshold and the second ratio is greater than or equal to a second preset threshold, the liveness detection device determines that the object to be detected is a live body; if the first ratio is less than the first preset threshold or the second ratio is less than the second preset threshold, the object to be detected is determined to be a non-live body. In another optional embodiment, the liveness detection device calculates the sum of the first ratio and the second ratio; if the sum is greater than or equal to a preset threshold, the object to be detected is determined to be a live body; if the sum is less than the preset threshold, the object to be detected is determined to be a non-live body.

[0060] By applying the embodiments of this application, the pulse wave signal of the object to be detected is acquired; the pulse wave signal is subjected to spectral transformation to obtain the frequency domain amplitude spectrum within a preset frequency band; the fundamental frequency of the pulse wave signal is acquired; based on the fundamental frequency, several harmonic frequencies located within the preset frequency band are determined; and based on the amplitude corresponding to the fundamental frequency, the amplitude corresponding to the several harmonic frequencies, and the amplitude corresponding to each frequency in the frequency domain amplitude spectrum, it is determined whether the object to be detected is a living body. This application, by performing spectral transformation on the pulse wave signal and based on the relationship between the amplitude corresponding to the fundamental frequency, the amplitude corresponding to the harmonic frequencies, and the amplitude corresponding to each frequency in the frequency domain amplitude spectrum, can identify whether the object to be detected is a living body. It only requires processing the pulse wave signal and does not require the use of other vital sign signals for liveness detection, thus improving the efficiency of liveness detection.

[0061] In an optional embodiment, step S21 is included before step S20, as follows:

[0062] S21: Perform preprocessing operations on the pulse wave signal to obtain a preprocessed pulse wave signal; wherein, the preprocessing operations include, but are not limited to, filtering and noise reduction.

[0063] Filtering is used to acquire pulse wave signals within a certain frequency band, and includes low-pass filtering, high-pass filtering, and band-pass filtering. Denoising is used to remove high-frequency noise from the pulse wave signal.

[0064] In this embodiment, a bandpass filter is used to bandpass filter the pulse wave signal to obtain a pulse wave signal within a certain frequency band. For example, the certain frequency band is 0.3 to 30 Hz. A denoising algorithm is then used to denoise the pulse wave signal to obtain a denoised pulse wave signal. The denoising algorithm includes wavelet transform denoising, adaptive filtering denoising, and spectral subtraction denoising, etc.

[0065] By performing preprocessing operations on the pulse wave signal, the quality of the pulse wave signal is improved.

[0066] In an optional embodiment, please refer to Figure 2 Step S30, including steps S31 to S32, is as follows:

[0067] S31: Obtain the pulse rate of the pulse wave signal.

[0068] In this embodiment of the application, the peaks and troughs of the pulse wave signal are detected using the extreme value method to obtain the period of the pulse wave signal, and the reciprocal of the period is the pulse rate.

[0069] S32: Divide the pulse rate by the preset value to obtain the fundamental frequency of the pulse wave signal.

[0070] The preset value is 60. The pulse rate is the number of pulse beats per minute. The fundamental frequency is related to the pulse rate. For a living organism, the fundamental frequency of the pulse wave signal is equivalent to the number of pulse beats per second. Dividing the pulse rate by 60 gives the fundamental frequency of the pulse wave signal.

[0071] The embodiments of this application can automatically and quickly obtain the fundamental frequency of the pulse wave signal by using the pulse rate of the pulse wave signal.

[0072] In an optional embodiment, step S30 includes step S301, which is as follows:

[0073] S301: The frequency corresponding to the largest amplitude value in the frequency domain amplitude spectrum is taken as the fundamental frequency of the pulse wave signal.

[0074] In this embodiment of the application, each frequency in the frequency domain amplitude spectrum corresponds to an amplitude. The amplitude corresponding to each frequency is obtained, the magnitude of the amplitude corresponding to each frequency is compared, the maximum amplitude and the frequency corresponding to the maximum amplitude are determined, and the frequency corresponding to the maximum amplitude is taken as the fundamental frequency of the pulse wave signal.

[0075] By comparing the amplitude values ​​corresponding to each frequency in the frequency domain amplitude spectrum, the fundamental frequency of the pulse wave signal can be obtained automatically and quickly.

[0076] In an optional embodiment, please refer to Figure 3 Step S40, including steps S401 to S402, is as follows:

[0077] S401: Calculate the frequency of the nth harmonic based on the fundamental frequency; where n is an integer greater than or equal to 2.

[0078] Among them, the frequency of a harmonic is an integer multiple of the frequency of the fundamental wave. A wave with a frequency three times that of the fundamental wave is called the third harmonic, a wave with a frequency five times that of the fundamental wave is called the fifth harmonic, and so on.

[0079] In the embodiments of this application, the fundamental frequency is multiplied by the harmonic order n to obtain the frequency of the nth harmonic.

[0080] S402: Determine several harmonic frequencies located within a preset frequency band from the frequencies of the nth harmonic.

[0081] In this embodiment, after calculating the frequency of the nth harmonic, the frequency of each harmonic is compared with a preset frequency band to determine several harmonic frequencies located within the preset frequency band. For example, if the fundamental frequency is 1Hz, the harmonic frequencies are 2Hz, 3Hz, 4Hz, 5Hz, 6Hz, ..., and the preset frequency band is 0.5 to 5Hz, then the harmonic frequencies 2Hz, 3Hz, 4Hz, and 5Hz are located within the preset frequency band.

[0082] By filtering harmonic frequencies according to a preset frequency band, several harmonic frequencies located within the preset frequency band can be obtained automatically and quickly.

[0083] In an optional embodiment, please refer to Figure 4 Step S50, including steps S51 to S54, is as follows:

[0084] S51: Summate the amplitude corresponding to the fundamental frequency with the amplitudes corresponding to all harmonic frequencies to obtain the first summation result;

[0085] S52: Summate the amplitudes corresponding to each frequency in the frequency domain amplitude spectrum to obtain the second summation result;

[0086] S53: Calculate the ratio of the first summation result to the second summation result;

[0087] S54: Compare the ratio with a preset threshold to determine whether the object to be detected is a living organism.

[0088] In this embodiment of the application, the specific expression for the ratio is:

[0089]

[0090] Where f1 represents the fundamental frequency, f m Represents each harmonic frequency, where m ≥ 2 and is an integer, a[f m The symbol represents the amplitude corresponding to the fundamental frequency and the amplitude corresponding to each harmonic frequency. Let represent the first summation result, w represent each frequency in the frequency domain amplitude spectrum, and a[w] represent the amplitude corresponding to each frequency in the frequency domain amplitude spectrum. This represents the second summation result, and r represents the ratio.

[0091] After obtaining the ratio, the ratio is compared with a preset threshold to obtain the comparison result. Based on the comparison result, it can be determined whether the object to be detected is a living body.

[0092] By using the amplitude corresponding to the fundamental frequency and the sum of the amplitudes corresponding to the harmonic frequencies, as well as the sum of the amplitudes corresponding to each frequency in the frequency domain amplitude spectrum, it is possible to automatically and quickly determine whether the object to be detected is a living body.

[0093] In an optional embodiment, please refer to Figure 5 Step S54, including steps S541 to S542, is as follows:

[0094] S541: If the ratio is greater than or equal to the preset threshold, the object to be detected is determined to be a living organism;

[0095] S542: If the ratio is less than the preset threshold, the object to be detected is determined to be non-living.

[0096] The preset threshold can be a value obtained from the analysis of multiple experimental data of liveness detection and non-liveness detection, used to distinguish between live and non-liveness.

[0097] In this embodiment of the application, by comparing the ratio with a preset threshold, it is possible to automatically and quickly determine whether the object to be detected is a living body.

[0098] This application also provides an apparatus embodiment that can be used to execute the liveness detection method described in the embodiments of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the liveness detection method described in the embodiments of this application.

[0099] Please see Figure 6 This illustration shows a schematic diagram of the structure of a liveness detection device according to an embodiment of this application. The liveness detection device 6 provided in this embodiment includes:

[0100] Signal acquisition module 61 is used to acquire the pulse wave signal of the object to be detected;

[0101] The amplitude spectrum acquisition module 62 is used to perform spectral transformation on the pulse wave signal to obtain the frequency domain amplitude spectrum within a preset frequency band.

[0102] The fundamental frequency acquisition module 63 is used to acquire the fundamental frequency of the pulse wave signal;

[0103] The harmonic frequency determination module 64 is used to determine several harmonic frequencies located within a preset frequency band based on the fundamental frequency.

[0104] The liveness detection module 65 is used to determine whether the object to be detected is a live body based on the amplitude corresponding to the fundamental frequency, the amplitude corresponding to several harmonic frequencies, and the amplitude corresponding to each frequency in the frequency domain amplitude spectrum.

[0105] Optional, the fundamental frequency acquisition module includes:

[0106] The pulse rate acquisition unit is used to acquire the pulse rate of the pulse wave signal;

[0107] The fundamental frequency acquisition unit is used to divide the pulse rate by a preset value to obtain the fundamental frequency of the pulse wave signal.

[0108] Optional, the fundamental frequency acquisition module includes:

[0109] The fundamental frequency determination unit is used to determine the frequency corresponding to the largest amplitude value in the frequency domain amplitude spectrum as the fundamental frequency of the pulse wave signal.

[0110] Optional, the harmonic frequency determination module includes:

[0111] The frequency calculation unit is used to calculate the frequency of the nth harmonic based on the fundamental frequency; where n is an integer greater than or equal to 2.

[0112] The harmonic frequency determination unit is used to determine a number of harmonic frequencies located within a preset frequency band from the frequencies of the nth harmonic.

[0113] Optional, a liveness detection module, including:

[0114] The first summation result acquisition unit is used to sum the amplitude corresponding to the fundamental frequency with the amplitude corresponding to all harmonic frequencies to obtain the first summation result;

[0115] The second summation result acquisition unit is used to sum the amplitudes corresponding to each frequency in the frequency domain amplitude spectrum to obtain the second summation result;

[0116] The ratio calculation unit is used to calculate the ratio of the first summation result to the second summation result;

[0117] The ratio comparison unit is used to compare the ratio with a preset threshold to determine whether the object to be detected is a living organism.

[0118] Optional, ratio comparison units include:

[0119] The first judgment unit is used to determine that the object to be detected is a living body if the ratio is greater than or equal to a preset threshold.

[0120] The second judgment unit is used to determine that the object to be detected is a non-living body if the ratio is less than a preset threshold.

[0121] By applying the embodiments of this application, the pulse wave signal of the object to be detected is acquired; the pulse wave signal is subjected to spectral transformation to obtain the frequency domain amplitude spectrum within a preset frequency band; the fundamental frequency of the pulse wave signal is acquired; based on the fundamental frequency, several harmonic frequencies located within the preset frequency band are determined; and based on the amplitude corresponding to the fundamental frequency, the amplitude corresponding to the several harmonic frequencies, and the amplitude corresponding to each frequency in the frequency domain amplitude spectrum, it is determined whether the object to be detected is a living body. This application, by performing spectral transformation on the pulse wave signal and based on the relationship between the amplitude corresponding to the fundamental frequency, the amplitude corresponding to the harmonic frequencies, and the amplitude corresponding to each frequency in the frequency domain amplitude spectrum, can identify whether the object to be detected is a living body. Only the pulse wave signal needs to be processed, thus improving the efficiency of liveness detection.

[0122] This application also provides a device embodiment that can be used to execute the liveness detection method described in the embodiments of this application. For details not disclosed in the device embodiments of this application, please refer to the liveness detection method described in the embodiments of this application.

[0123] Please see Figure 7This application also provides an electronic device 300, which may specifically be a computer, mobile phone, tablet computer, liveness detection device, etc. In an exemplary embodiment of this application, the electronic device 300 is a liveness detection device, which includes: at least one processor 301, at least one memory 302, at least one display, at least one network interface 303, user interface 304, and at least one communication bus 305.

[0124] The user interface 304 is primarily used to provide an input interface for the user and to acquire user input data. Optionally, the user interface may also include a standard wired interface or a wireless interface.

[0125] The network interface 303 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).

[0126] The communication bus 305 is used to enable communication between these components.

[0127] The processor 301 may include one or more processing cores. The processor connects to various parts of the electronic device using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in memory, and by calling data stored in memory. Optionally, the processor may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor.

[0128] The memory 302 may include random access memory (RAM) or read-only memory. Optionally, the memory may include a non-transitory computer-readable storage medium. The memory can be used to store instructions, programs, code, code sets, or instruction sets. The memory may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), instructions for implementing the various method embodiments described above, etc.; the data storage area may store data involved in the various method embodiments described above, etc. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor. Figure 7 As shown, a memory, as a computer storage medium, may include an operating system, a network communication module, a user interface module, and operating applications.

[0129] The processor can be used to call the application program of the liveness detection method stored in the memory and specifically execute the liveness detection method steps of the above embodiment. For the specific execution process, please refer to the specific description of the liveness detection method in the embodiment, which will not be repeated here.

[0130] This application also provides a computer-readable storage medium storing a computer program thereon, the instructions of which are adapted to be loaded by a processor and executed by the method steps of Embodiment 1 shown above. The specific execution process can be found in the detailed description of the embodiments, and will not be repeated here. The device containing the storage medium can be an electronic device such as a personal computer, laptop computer, smartphone, or tablet computer.

[0131] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative, wherein the components described as separate parts may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this application according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0132] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0133] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function selected in one or more boxes.

[0134] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function selected in one or more boxes.

[0135] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0136] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0137] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0138] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0139] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A method for detecting liveness, characterized in that, Includes the following steps: Acquire the pulse wave signal of the object to be detected; The pulse wave signal is subjected to spectral transformation to obtain the frequency domain amplitude spectrum within a preset frequency band; Obtain the fundamental frequency of the pulse wave signal; Based on the fundamental frequency, determine a number of harmonic frequencies located within the preset frequency band; Based on the amplitude corresponding to the fundamental frequency, the amplitude corresponding to several harmonic frequencies, and the amplitude corresponding to each frequency in the frequency domain amplitude spectrum, the amplitude corresponding to the fundamental frequency is summed with the amplitude corresponding to all harmonic frequencies to obtain a first summation result; The amplitudes corresponding to each frequency in the frequency domain amplitude spectrum are summed to obtain a second summation result; Calculate the ratio of the first summation result to the second summation result; The ratio is compared with a preset threshold to determine whether the object to be detected is a living organism.

2. The live detection method according to claim 1, characterized in that: The step of obtaining the fundamental frequency of the pulse wave signal includes: Obtain the pulse rate of the pulse wave signal; Divide the pulse rate by a preset value to obtain the fundamental frequency of the pulse wave signal.

3. The live detection method according to claim 1, characterized in that: The step of obtaining the fundamental frequency of the pulse wave signal includes: The frequency corresponding to the largest amplitude value in the frequency domain amplitude spectrum is taken as the fundamental frequency of the pulse wave signal.

4. The liveness detection method according to claim 1, characterized in that: The step of comparing the ratio with a preset threshold to determine whether the object to be detected is a living organism includes: If the ratio is greater than or equal to a preset threshold, the object to be detected is determined to be a living organism; If the ratio is less than a preset threshold, the object to be detected is determined to be non-living.

5. The live detection method according to any one of claims 1 to 4, characterized in that: The step of determining a plurality of harmonic frequencies located within the preset frequency band based on the fundamental frequency includes: Calculate the frequency of the nth harmonic based on the fundamental frequency; where n is an integer greater than or equal to 2. From the frequencies of the nth harmonic, determine a number of harmonic frequencies located within the preset frequency band.

6. The liveness detection method according to any one of claims 1 to 4, characterized in that: Before the step of performing spectral transformation on the pulse wave signal to obtain the frequency domain amplitude spectrum within a preset frequency band, the following steps are included: The pulse wave signal is preprocessed to obtain a preprocessed pulse wave signal; wherein the preprocessing operation includes, but is not limited to, filtering and noise reduction.

7. A liveness detection device, characterized in that, include: The signal acquisition module is used to acquire the pulse wave signal of the object to be detected; An amplitude spectrum acquisition module is used to perform spectral transformation on the pulse wave signal to obtain a frequency domain amplitude spectrum within a preset frequency band. A fundamental frequency acquisition module is used to acquire the fundamental frequency of the pulse wave signal; The harmonic frequency determination module is used to determine a number of harmonic frequencies located within the preset frequency band based on the fundamental frequency. The liveness detection module is used to determine whether the object to be detected is a live body based on the amplitude corresponding to the fundamental frequency, the amplitude corresponding to several harmonic frequencies, and the amplitude corresponding to each frequency in the frequency domain amplitude spectrum.

8. An electronic device, characterized in that, include: A processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the liveness detection method as described in any one of claims 1 to 6.