A living body detection method, wearable device and computer-readable storage medium
By combining acceleration signals and wave signals in wearable devices, the problem of inaccurate pulse wave detection when the object to be measured is in motion is solved, and accurate living identification of the object to be measured is achieved.
Patent Information
- Application Number
- CN202110384429.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-09
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-04-09
AI Technical Summary
It is difficult for existing wearable devices to accurately detect pulse wave signals when the object to be measured is in motion, resulting in the inability to accurately determine whether the object to be measured is a living body.
By combining the acceleration signal and the fluctuation signal, the state of the object to be measured is determined, and the acceleration signal is acquired in a dynamic state to determine whether there is a pulse wave signal, thereby determining whether the object to be measured is a living or non-living body.
It improves the accuracy of living body detection of objects to be measured under motion, ensuring that wearable devices can effectively identify living bodies under motion.
Smart Images

Figure CN115191977B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic device applications, and in particular to a liveness detection method, a wearable device, and a computer-readable storage medium. Background Art
[0002] As schools and parents pay more and more attention to children's health, many wearable devices have added a function based on photoplethysmograph (PPG) (PPG function for short). The PPG function can detect the pulse wave of children using these wearable devices to obtain the heart rate of the children.
[0003] The PPG function can detect the presence of an object to be tested in front of the wearable device. However, if the object to be tested is in motion, the PPG function cannot accurately detect whether there is a pulse wave in the object to be tested, so that it cannot accurately determine whether the object to be tested is alive. Summary of the invention
[0004] Embodiments of the present invention provide a living body detection method, a wearable device, and a computer-readable storage medium, which are used to improve the accuracy of the wearable device in detecting a pulse wave signal based on a fluctuation signal and an acceleration signal when determining that the object to be detected is in motion, so as to determine that the object to be detected is a living body.
[0005] A first aspect of an embodiment of the present invention provides a living body detection method, which is applied to a wearable device, the wearable device includes an accelerometer, and the method may include:
[0006] When a fluctuation signal is detected in the object to be measured, determining the current state of the accelerometer;
[0007] If the current state is dynamic, obtaining the acceleration signal in the accelerometer;
[0008] Obtaining a first indication result according to the acceleration signal and the fluctuation signal;
[0009] If the first indication result indicates that a pulse wave signal exists in the fluctuation signal, the object to be detected is determined to be a living body.
[0010] Optionally, when a fluctuation signal is detected in the object to be tested, after determining the current state of the accelerometer, the method also includes: if the current state is static, determining whether there is a pulse wave signal in the fluctuation signal; if so, determining the object to be tested as a living body; if not, determining the object to be tested as a non-living body.
[0011] Optionally, the method further includes: when the fluctuation signal is not detected in the object to be tested, determining the object to be tested as a non-living body; or, if the first indication result indicates that the pulse wave signal does not exist in the fluctuation signal, determining the object to be tested as the non-living body.
[0012] Optionally, when a fluctuation signal is detected in the object to be measured, before determining the current state of the accelerometer, the method further includes: detecting a signal value received by the optical sensor through an infrared detection device; and determining that the object to be measured exists when the signal value is greater than a preset signal threshold.
[0013] Optionally, the method further includes: acquiring the distance between the infrared detection device and the object to be detected; when the distance is within a preset distance range, determining the target object to be detected;
[0014] When a fluctuation signal is detected in the object to be measured, determining the current state of the accelerometer comprises: when a fluctuation signal is detected in the target object to be measured, determining the current state of the accelerometer;
[0015] If the first indication result indicates that there is a pulse wave signal in the fluctuation signal, then the target object to be detected is determined to be a living body, including: if the first indication result indicates that there is a pulse wave signal in the fluctuation signal, then the target object to be detected is determined to be a living body.
[0016] Optionally, the method also includes: starting a first light emitter in the wearable device and controlling the light emitter to emit green light to detect the heart rate of the living body.
[0017] Optionally, starting the first light emitter in the wearable device and controlling the light emitter to emit green light to detect the heart rate of the living body includes: after waiting for a preset period of time, starting the first light emitter in the wearable device and controlling the light emitter to emit green light to detect the heart rate of the living body; or directly starting the first light emitter in the wearable device and controlling the light emitter to emit green light to periodically detect the heart rate of the living body according to the reflection signal of the green light.
[0018] A second aspect of an embodiment of the present invention provides a wearable device, the wearable device includes an accelerometer, and the wearable device may include:
[0019] A determination module, used for determining the current state of the accelerometer when a fluctuation signal is detected in the object to be measured;
[0020] An acquisition module, configured to acquire an acceleration signal in the accelerometer if the current state is dynamic; and obtain a first indication result according to the acceleration signal and the fluctuation signal;
[0021] A determination module, configured to determine that the object to be detected is a living body if the first indication result indicates that a pulse wave signal exists in the fluctuation signal
[0022] Optionally, the judgment module is further used to judge whether there is a pulse wave signal in the fluctuation signal if the current state is static;
[0023] The determination module is further configured to determine the object to be detected as a living body if the object exists; and to determine the object to be detected as a non-living body if the object does not exist.
[0024] Optionally, the determination module is also used to determine the object to be tested as a non-living body when the fluctuation signal is not detected in the object to be tested; or, if the first indication result indicates that the pulse wave signal does not exist in the fluctuation signal, determine the object to be tested as a non-living body.
[0025] Optionally, a detection module is used to detect the signal value received by the light sensor through an infrared detection device;
[0026] The determination module is also used to determine that there is an object to be detected when the signal value is greater than a preset signal threshold.
[0027] Optionally, the acquisition module is further used to acquire the distance between the infrared detection device and the object to be detected;
[0028] The determination module is further used to determine the target object to be detected when the distance is within a preset distance range;
[0029] The judgment module is specifically used to judge the current state of the accelerometer when a fluctuation signal is detected in the target object to be measured;
[0030] The determination module is specifically used to determine the target object to be detected as a living body if the first indication result indicates that a pulse wave signal exists in the fluctuation signal.
[0031] Optionally, the detection module is also used to start a first light emitter in the wearable device and control the light emitter to emit green light to detect the heart rate of the living body.
[0032] Optionally, the detection module is specifically used to start the first light emitter in the wearable device after waiting for a preset period of time, and control the light emitter to emit green light to detect the heart rate of the living body; or, directly start the first light emitter in the wearable device, and control the light emitter to emit green light to periodically detect the heart rate of the living body according to the reflection signal of the green light.
[0033] A third aspect of an embodiment of the present invention provides a wearable device, the wearable device includes an accelerometer, and the wearable device may include:
[0034] A memory storing executable program code;
[0035] and a processor coupled to the memory;
[0036] The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method as described in the first aspect of the embodiment of the present invention.
[0037] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium having executable program code stored thereon. When the executable program code is executed by a processor, the method described in the first aspect of the embodiment of the present invention is implemented.
[0038] A fifth aspect of an embodiment of the present invention discloses a computer program product. When the computer program product runs on a computer, the computer is enabled to execute any one of the methods disclosed in the first aspect of the embodiment of the present invention.
[0039] A sixth aspect of an embodiment of the present invention discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes any one of the methods disclosed in the first aspect of the embodiment of the present invention.
[0040] It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:
[0041] In an embodiment of the present invention, when a fluctuation signal is detected in the object to be tested, the current state of the accelerometer is determined; if the current state is dynamic, the acceleration signal in the accelerometer is obtained; a first indication result is obtained based on the acceleration signal and the fluctuation signal; if the first indication result indicates that there is a pulse wave signal in the fluctuation signal, the object to be tested is determined to be a living body. That is, the wearable device determines the state of the accelerometer when a fluctuation signal is detected in the object to be tested; if the accelerometer of the wearable device is in a dynamic state, the acceleration signal is obtained; the wearable device determines whether there is a pulse wave signal in the fluctuation signal based on the acceleration signal and the fluctuation signal; if the wearable device has a pulse wave signal, the object to be tested is determined to be a living body. This method can improve the accuracy of the wearable device in detecting the pulse wave signal based on the fluctuation signal and the acceleration signal when the object to be tested is in motion to determine whether the object to be tested is a living body. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments and the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and other drawings can be obtained based on these drawings.
[0043] Figure 1 A schematic diagram of an embodiment of a living body detection method in an embodiment of the present invention;
[0044] Figure 2 A schematic diagram of another embodiment of the living body detection method in an embodiment of the present invention;
[0045] Figure 3 A schematic diagram of another embodiment of the living body detection method in an embodiment of the present invention;
[0046] Figure 4 A schematic diagram of another embodiment of the living body detection method in an embodiment of the present invention;
[0047] Figure 5 A schematic diagram of another embodiment of the living body detection method in an embodiment of the present invention;
[0048] Figure 6a is a schematic diagram of an embodiment of a wearable device in an embodiment of the present invention;
[0049] Figure 6b is a schematic diagram of another embodiment of a wearable device in an embodiment of the present invention;
[0050] Figure 7 FIG. 4 is a schematic diagram of another embodiment of a wearable device in an embodiment of the present invention. DETAILED DESCRIPTION
[0051] Embodiments of the present invention provide a living body detection method, a wearable device, and a computer-readable storage medium, which are used to improve the accuracy of the wearable device in detecting a pulse wave signal based on a fluctuation signal and an acceleration signal when the object to be detected is in motion, so as to determine whether the object to be detected is a living body.
[0052] In order to make the technical personnel in the technical field better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all the embodiments. Based on the embodiments in the present invention, they should all belong to the scope of protection of the present invention.
[0053] It is understandable that the wearable device involved in the embodiments of the present invention can be directly worn on the user, or can be a portable electronic device integrated into the user's clothes or accessories. Wearable devices are not only a hardware device, but can also realize powerful intelligent functions through software support, data interaction, and cloud interaction, such as: computing function, positioning function, and alarm function, and can also be connected to mobile phones and various terminals. Wearable devices may include but are not limited to watches supported by wrists (such as watches, wrists, etc.), shoes supported by feet (such as shoes, socks or other products worn on the legs), Glass supported by the head (such as glasses, helmets, headbands, etc.), and various non-mainstream product forms such as smart clothing, school bags, crutches, accessories, etc.
[0054] The technical solution of the present invention is further described below by way of embodiments. Figure 1 FIG. 1 is a schematic diagram of an embodiment of a liveness detection method in an embodiment of the present invention. The method is applied to a wearable device, and the wearable device includes an accelerometer. The method may include:
[0055] 101. When a fluctuation signal is detected in the object to be measured, determine the current state of the accelerometer.
[0056] It should be noted that the object to be tested can be a living object (for example, the living object can include but is not limited to humans) or a non-living object (for example, the non-living object can be a table); the current state can be dynamic or static, which is not specifically limited here.
[0057] In particular, the living subject may be a child.
[0058] It is understandable that the present invention can be based on the perspective of children, and the wearable device can detect the heart rate of children in motion.
[0059] It is understood that an accelerometer refers to an instrument for measuring the linear acceleration of a carrier, wherein the accelerometer may be composed of a detection mass (also called a sensitive mass), a support, a potentiometer, a spring, a damper, and a housing. The accelerometer is located in the wearable device.
[0060] The working principle of the accelerometer is as follows: when the instrument housing accelerates along the input axis, the detection mass rotates around the output axis due to inertia, and the angle of rotation is obtained; the sensor element converts this angle of rotation into an electrical signal, which is amplified and fed to the torquer to form a closed loop. The feedback torque generated by the torquer is balanced with the inertia torque of the detection mass. At this time, the electrical signal (the magnitude of the current or the number of pulses per unit time) transmitted to the torquer can be used to measure the magnitude and direction of the acceleration. That is, the accelerometer can be used to measure the acceleration signal in the object to be measured.
[0061] Optionally, when the wearable device detects a fluctuation signal in the object to be measured, judging the current state of the accelerometer may include: the wearable device obtains the photoplethysmograph (PPG) signal in the object to be measured; the wearable device judges whether there is a fluctuation signal in the PPG signal; if so, the wearable device judges the current state of the accelerometer.
[0062] Among them, wearable devices can obtain PPG signals through PPG technology. PPG technology is an infrared non-destructive detection technology that uses photoelectric conversion technology to detect changes in blood volume in living tissue. When a light beam of a certain wavelength is irradiated onto the surface of the skin at the fingertips, the contraction and expansion of blood vessels will affect the transmission of light (for example, in transmission PPG, the light passing through the fingertips) or the reflection of light (for example, in reflection PPG, the light from near the wrist surface). When the light passes through the skin tissue and then reflects to the light sensor, the light will be attenuated to a certain extent. The absorption of light by muscles, bones, veins and other connecting tissues is basically unchanged (provided that there is no significant movement of the measurement site), but arteries are different. Since there is blood pulsation in the arteries, the absorption of light will naturally change. When the light sensor converts the light signal into an electrical signal, it is precisely because the absorption of light by the artery changes while the absorption of light by other tissues remains basically unchanged that the obtained signal can be divided into a direct current (DC) signal and an alternating current (AC) signal. Wearable devices can reflect the characteristics of blood flow based on the AC signal. That is, in the present invention, the PPG technology is used to detect whether there is a fluctuation signal in the object to be tested.
[0063] Optionally, after step 101, the method may further include: when the wearable device fails to detect the fluctuation signal in the object to be detected, determining the object to be detected as a non-living body.
[0064] It can be understood that the existence of the fluctuation signal is the basis for the wearable device to detect the pulse wave signal, and the existence of the pulse wave signal is the basis for the wearable device to determine that the object to be tested is a living body. If the object to be tested does not have a fluctuation signal, then the object to be tested does not have a pulse wave signal, so the wearable device can determine that the object to be tested is not a living body.
[0065] Optionally, after the wearable device determines that the object to be detected is a non-living object, the method may also include but is not limited to the following implementations:
[0066] Implementation method 1: The wearable device turns off the PPG on the wearable device.
[0067] It can be understood that, in the process of the wearable device turning off the PPG function on the wearable device, the PPG function is not turned off suddenly, but is turned off gradually and bit by bit.
[0068] Implementation method 2: The wearable device controls the wearable device to enter a standby state or a shutdown state.
[0069] It should be noted that whether the wearable device turns off the PPG or controls the wearable device to enter the standby state or the shutdown state, it is to save power consumption and extend the service life of the wearable device.
[0070] 102. If the current state is dynamic, obtain an acceleration signal from the accelerometer.
[0071] It can be understood that if the current state of the accelerometer is dynamic, then the wearable device can determine that the user using the wearable device is in motion, so that the wearable device can obtain the acceleration signal in the accelerometer.
[0072] 103. Obtain a first indication result according to the acceleration signal and the fluctuation signal.
[0073] Optionally, the wearable device obtains a first indication result based on the acceleration signal and the fluctuation signal, which may include: the wearable device subtracts the fluctuation signal from the acceleration signal to obtain a target signal; if the target signal is not zero, the wearable device determines that a pulse wave signal exists in the fluctuation signal.
[0074] It is understandable that if the user using the wearable device is in motion, it is difficult for the wearable device to detect the pulse wave signal in the fluctuation signal. Therefore, the wearable device can determine whether there is a pulse wave signal in the fluctuation signal based on the difference between the acceleration signal and the fluctuation signal.
[0075] Specifically, when the absolute value of the difference result is not zero, the wearable device can determine that there is a pulse wave signal in the fluctuation signal; when the absolute value of the difference result is zero, the wearable device can determine that there is no pulse wave signal in the fluctuation signal.
[0076] 104. If the first indication result indicates that a pulse wave signal exists in the fluctuation signal, the object to be detected is determined to be a living body.
[0077] It is understandable that the presence of the pulse wave signal is the basis for the wearable device to determine that the object to be detected is a living body. If the wearable device determines that the pulse wave signal exists in the fluctuation signal, then the wearable device can determine that the object to be detected is a living body.
[0078] Optionally, after step 104, the method may further include: if the first indication result indicates that the pulse wave signal does not exist in the fluctuation signal, determining the object to be detected as the non-living body.
[0079] In an embodiment of the present invention, when a fluctuation signal is detected in the object to be tested, the current state of the accelerometer is determined; if the current state is dynamic, the acceleration signal in the accelerometer is obtained; a first indication result is obtained based on the acceleration signal and the fluctuation signal; if the first indication result indicates that there is a pulse wave signal in the fluctuation signal, the object to be tested is determined to be a living body. That is, the wearable device determines the state of the accelerometer when a fluctuation signal is detected in the object to be tested; if the accelerometer of the wearable device is in a dynamic state, the acceleration signal is obtained; the wearable device determines whether there is a pulse wave signal in the fluctuation signal based on the acceleration signal and the fluctuation signal; if the wearable device has a pulse wave signal, the object to be tested is determined to be a living body. This method can improve the accuracy of the wearable device in detecting the pulse wave signal based on the fluctuation signal and the acceleration signal when the object to be tested is in motion to determine whether the object to be tested is a living body.
[0080] like Figure 2 FIG. 2 is a schematic diagram of another embodiment of a liveness detection method in an embodiment of the present invention. The method is applied to a wearable device, and the wearable device includes an accelerometer. The method may include:
[0081] 201. When a fluctuation signal is detected in the object to be measured, determine the current state of the accelerometer.
[0082] It should be noted that step 201 is similar to step 202 in this embodiment. Figure 1 The step 101 shown is similar and will not be repeated here.
[0083] 202. If the current state is static, determine whether there is a pulse wave signal in the fluctuation signal.
[0084] It is understandable that if the current state of the accelerometer is static, then the wearable device can determine that the user using the wearable device is in a resting state. At this time, the wearable device can more easily detect the pulse wave signal in the fluctuation signal. Therefore, the wearable device can directly determine whether there is a pulse wave signal in the fluctuation signal, without obtaining the acceleration signal in the accelerometer to determine whether there is a pulse wave signal in the fluctuation signal. In this way, not only is the step of the wearable device determining whether the object to be tested is a living body relatively simple, but it also does not affect the accuracy of the detection result.
[0085] 203. If so, the object to be detected is determined to be a living body.
[0086] 204. If not, determine the object to be detected as a non-living object.
[0087] In an embodiment of the present invention, when a fluctuation signal is detected in the object to be tested, the current state of the accelerometer is determined; if the current state is static, it is determined whether there is a pulse wave signal in the fluctuation signal; if there is, the object to be tested is determined to be a living body; if not, the object to be tested is determined to be a non-living body. That is, when the wearable device detects the presence of a fluctuation signal in the object to be tested, it determines the state of the accelerometer; if the accelerometer of the wearable device is in a static state, it directly determines whether there is a pulse wave signal in the fluctuation signal; if the wearable device has a pulse wave signal, it determines the object to be tested to be a living body. This method can improve the accuracy of the wearable device in directly detecting the pulse wave signal in the fluctuation signal to determine whether the object to be tested is a living body.
[0088] like Figure 3 FIG. 2 is a schematic diagram of another embodiment of a liveness detection method in an embodiment of the present invention. The method is applied to a wearable device, and the wearable device includes an accelerometer. The method may include:
[0089] 301. Detect the signal value received by the light sensor through an infrared detection device.
[0090] It should be noted that the function of the optical sensor is to receive an infrared radiation signal value, which is an analog signal value, and the infrared radiation signal value may be an infrared light signal value reflected on the object to be measured; the optical sensor converts the analog signal value to obtain a digital signal value (referred to as: signal value), and sends the digital signal value to the infrared detection device. The infrared detection device may be an infrared sensor, and the infrared detection device may receive the digital signal value sent by the optical sensor. Optionally, the digital signal value may be a current value, and the unit of the current value is milliampere (referred to as: mA).
[0091] Among them, the infrared detection device and the light sensor are both located in the wearable device, and the specific arrangement will not be described in detail.
[0092] Optionally, the wearable device detects the signal value received by the light sensor through an infrared detection device, which may include: the wearable device detects the signal value received by the light sensor through the infrared detection device at a first frequency.
[0093] It can be understood that the unit of frequency is Hertz (abbreviated as: Hz); the first frequency is within a first preset frequency range, and the first preset frequency range is collected by the wearable device from a large amount of first experimental data. The first preset frequency range can be composed of a first preset frequency threshold and a second preset frequency threshold, and the first preset frequency threshold is less than the second preset frequency threshold.
[0094] It should be noted that the value of the first frequency needs to meet the low power consumption function of the wearable device. In this way, when the wearable device is in a low power state, the wearable device turns on the low power consumption function, and the infrared detection device can still detect the signal value received by the light sensor at the first frequency, thereby determining whether there is an object to be detected in front of the wearable device.
[0095] Exemplarily, assuming that the first preset frequency range is (0 Hz, 10 Hz), and the first frequency is 5 Hz within (0 Hz, 10 Hz), at this time, the wearable device detects the signal value reflected by the object to be measured at a frequency of 5 Hz through the infrared detection device.
[0096] 302. When the signal value is greater than a preset signal threshold, it is determined that there is an object to be detected.
[0097] It should be noted that after the wearable device receives the signal value sent by the light sensor through the infrared detection device, the wearable device can compare the signal value with the preset signal threshold to determine whether there is an obstructing object in front of the wearable device. At this time, the obstructing object is the object to be detected, which can be a living object or a non-living object, and is not specifically limited here.
[0098] Among them, if the signal value is greater than the preset signal threshold, then the wearable device can determine that there is an obstructing object in front; if the signal value is less than or equal to the preset signal threshold, then the wearable device can determine that there is no obstructing object in front.
[0099] It can be understood that the preset signal threshold can be selected by the wearable device from a large amount of second experimental data, that is, the preset signal threshold is set by the wearable device before leaving the factory, and will not be described in detail here.
[0100] Exemplarily, assuming that the preset signal threshold is 5mA, the wearable device receives a signal value of 6mA sent by the light sensor through the infrared detection device, and the 6mA is greater than 5mA. At this time, the wearable device determines that there is an object to be detected in front.
[0101] Optionally, after step 302, the method may further include: when the signal value of the wearable device is less than or equal to the preset signal threshold, turning off the wearable device.
[0102] It is understandable that in the prior art, the wearable device will continuously turn on the green light to determine whether there is an object to be detected in front of the wearable device, and determine whether the object to be detected is a living body (especially, the living body can be a child) to detect the child's heart rate. Since the process of continuously turning on the green light will hurt the children's eyes, the present invention will use infrared light detection to determine whether there is an object to be detected in front of the wearable device, and determine whether the object to be detected is a child, so that the length of time the green light is turned on can be reduced to reduce the degree of damage to the children's eyes caused by the green light.
[0103] 303. When a fluctuation signal is detected in the object to be measured, determine the current state of the accelerometer.
[0104] 304. If the current state is dynamic, obtain an acceleration signal in the accelerometer.
[0105] 305. Obtain a first indication result according to the acceleration signal and the fluctuation signal.
[0106] 306. If the first indication result indicates that a pulse wave signal exists in the fluctuation signal, the object to be detected is determined to be a living body.
[0107] It should be noted that steps 303-306 are similar to those in this embodiment. Figure 1 The steps 101-104 shown are similar and will not be repeated here.
[0108] In an embodiment of the present invention, an infrared detection device is used to detect the signal value received by the optical sensor; when the signal value is greater than a preset signal threshold, it is determined that there is an object to be detected; when a fluctuation signal is detected in the object to be detected, the current state of the accelerometer is determined; if the current state is dynamic, the acceleration signal in the accelerometer is obtained; a first indication result is obtained based on the acceleration signal and the fluctuation signal; if the first indication result indicates that there is a pulse wave signal in the fluctuation signal, the object to be detected is determined to be a living body. That is, the wearable device first determines whether there is an object to be detected; when the wearable device determines that there is an object to be detected, it determines whether there is a fluctuation signal in the object to be detected; if the wearable device detects that there is a fluctuation signal in the object to be detected, it determines the state of the accelerometer; if the accelerometer of the wearable device is in a dynamic state, it obtains an acceleration signal; the wearable device determines whether there is a pulse wave signal in the fluctuation signal based on the acceleration signal and the fluctuation signal; if the wearable device determines that there is a pulse wave signal, the object to be detected is determined to be a living body. This method not only enables the wearable device to detect the object to be detected under certain conditions, but also can improve the accuracy of the wearable device in detecting the pulse wave signal based on the fluctuation signal and the acceleration signal when the object to be detected is in motion, so as to determine whether the object to be detected is a living body.
[0109] like Figure 4 FIG. 2 is a schematic diagram of another embodiment of a liveness detection method in an embodiment of the present invention. The method is applied to a wearable device, and the wearable device includes an accelerometer. The method may include:
[0110] 401. Detecting a signal value received by the light sensor through an infrared detection device;
[0111] 402. When the signal value is greater than a preset signal threshold, it is determined that there is an object to be detected.
[0112] It should be noted that steps 401-402 are similar to those in this embodiment. Figure 3 The steps 301-302 shown are similar and will not be repeated here.
[0113] 403. Obtain the distance between the infrared detection device and the object to be detected.
[0114] It should be noted that the distance may be detected by a distance detection device, and the distance detection device may be a distance sensor, and the distance sensor may be located in the wearable device.
[0115] 404. When the distance is within a preset distance range, determine the target object to be detected.
[0116] The preset distance range may be an interval formed by a first preset distance threshold and a second preset distance threshold, and the first preset distance threshold is smaller than the second preset distance threshold.
[0117] It is understandable that the wearable device can obtain multiple devices to be tested in front of the wearable device, but it only needs to detect whether the target device to be tested within the detection range is a living body.
[0118] For example, assuming that the first preset distance threshold is 0 meters (m for short), the second preset distance threshold is 1m, and the preset distance range is (0m, 1m). The wearable device detects through the distance sensor that the distance between the infrared detection device and the object to be detected is 0.8m, and the 0.8m is within (0m, 1m). At this time, the wearable device can determine the object to be detected as the target object to be detected.
[0119] 405. When a fluctuation signal is detected in the target object to be measured, determine the current state of the accelerometer.
[0120] 406. If the current state is dynamic, obtain an acceleration signal in the accelerometer.
[0121] 407. Obtain a first indication result according to the acceleration signal and the fluctuation signal.
[0122] 408. If the first indication result indicates that a pulse wave signal exists in the fluctuation signal, the target object to be detected is determined to be a living body.
[0123] It should be noted that steps 405-408 are similar to those in this embodiment. Figure 1 The steps 101-104 shown are similar and will not be repeated here.
[0124] In an embodiment of the present invention, the wearable device first determines whether there is an object to be tested; when the wearable device determines that there is an object to be tested, the wearable device narrows the range to determine the target object to be tested; the wearable device determines whether there is a fluctuation signal in the target object to be tested; if the wearable device detects that there is a fluctuation signal in the target object to be tested, the wearable device determines the state of the accelerometer; if the accelerometer of the wearable device is in a dynamic state, the wearable device obtains an acceleration signal; the wearable device determines whether there is a pulse wave signal in the fluctuation signal based on the acceleration signal and the fluctuation signal; if the wearable device determines that there is a pulse wave signal, the target object to be tested is determined to be a living body. This method not only enables the wearable device to narrow the range of the object to be tested under certain conditions to determine the target object to be tested, but also improves the accuracy of the wearable device in detecting the pulse wave signal based on the fluctuation signal and the acceleration signal to determine that the target object to be tested is a living body when the object to be tested is in motion.
[0125] It should be noted that steps 401-404 are similar to those in the present embodiment. Figure 2 The steps 201 shown can be combined with each other to form a new embodiment. The new embodiment is also within the scope of protection of the present invention and will not be described in detail here.
[0126] like Figure 5 FIG. 2 is a schematic diagram of another embodiment of a liveness detection method in an embodiment of the present invention. The method is applied to a wearable device, and the wearable device includes an accelerometer. The method may include:
[0127] 501. Detecting a signal value received by the light sensor through an infrared detection device;
[0128] 502. When the signal value is greater than a preset signal threshold, it is determined that there is an object to be detected.
[0129] 503. Obtain the distance between the infrared detection device and the object to be detected.
[0130] 504 When the distance is within the preset distance range, the target object to be detected is determined.
[0131] 505. When a fluctuation signal is detected in the target object to be measured, determine the current state of the accelerometer.
[0132] 506. If the current state is dynamic, obtain an acceleration signal from the accelerometer.
[0133] 507. Obtain a first indication result according to the acceleration signal and the fluctuation signal.
[0134] 508. If the first indication result indicates that a pulse wave signal exists in the fluctuation signal, the target object to be detected is determined to be a living body.
[0135] It should be noted that steps 501-508 are similar to those in this embodiment. Figure 4 The steps 401-408 shown are similar and will not be repeated here.
[0136] 509. Start a first light emitter in the wearable device and control the light emitter to emit green light to detect the heart rate of the living body.
[0137] Among them, a light transmitter is provided in the wearable device.
[0138] It should be noted that the reason why wearable devices use green light to detect heart rate is that the signal obtained by wearable devices using green light will have a larger change amplitude than the signal obtained by using red light, and the ability of using green light to resist the influence of ambient light is better than that of using red light. In this way, the signal-to-noise ratio of wearable devices using green light to detect heart rate is higher than that of using red light to detect heart rate. The higher the signal-to-noise ratio, the less interference the outside world has on the wearable device's detection of heart rate, and the more accurate the heart rate detected by the wearable device.
[0139] It is understandable that in the prior art, electronic devices generally use heart rate as a basis to determine whether the object to be tested is alive. In this way, the electronic device turns on the green light to detect the heart rate when the user is unprepared, and the green light may cause certain damage to the user's eyes. In the present invention, the wearable device first determines whether the object to be tested is alive based on the pulse wave. If it is determined to be alive, the green light is turned on for heart rate detection, which can effectively reduce the damage of the green light to the user's eyes.
[0140] Optionally, the wearable device starts a first light emitter in the wearable device and controls the light emitter to emit green light to detect the heart rate of the living body, which may include but is not limited to the following implementations:
[0141] Implementation method 1: The wearable device starts a first light emitter in the wearable device and controls the light emitter to emit green light to detect the heart rate of the living body at a second frequency.
[0142] It is understandable that the second frequency is within a second preset frequency range, wherein the second preset frequency range may be composed of a third preset frequency threshold and a fourth preset frequency threshold, and the third preset frequency threshold is less than the fourth preset frequency threshold.
[0143] It should be noted that the value of the second frequency needs to satisfy the condition that the wearable device can detect the heart rate on the living body. In this way, the accuracy of the wearable device in detecting the heart rate on the living body can be improved.
[0144] For example, assuming that the third preset frequency range is (20Hz, 30Hz), and the third frequency is 25Hz, which is within (20Hz, 10Hz), the wearable device starts the first light emitter in the wearable device and controls the light emitter to emit green light to detect the heart rate of the living body at a frequency of 25Hz.
[0145] Implementation method 2: After waiting for a preset period of time, the wearable device starts a first light emitter in the wearable device and controls the light emitter to emit green light to detect the heart rate of the living body.
[0146] It should be noted that when the wearable device determines that the object to be detected is a living body, the wearable device can detect the heart rate of the living body after a period of time.
[0147] Implementation method 3: The wearable device directly starts the first light emitter in the wearable device and controls the light emitter to emit green light, so as to periodically detect the heart rate of the living body according to the reflection signal of the green light.
[0148] It should be noted that when the wearable device determines that the object to be detected is a living body, the wearable device can periodically detect the heart rate of the living body.
[0149] Exemplarily, the wearable device starts a first light emitter in the wearable device and controls the light emitter to emit green light, and detects the heart rate of the living body at a frequency of 25 Hz at 17:00 every Wednesday afternoon.
[0150] Implementation method 4: After waiting for a preset period of time, the wearable device starts the first light emitter in the wearable device and controls the light emitter to emit green light, so as to periodically detect the heart rate of the living body according to the reflection signal of the green light.
[0151] Implementation method 5: The wearable device starts the first light emitter in the wearable device and controls the light emitter to emit green light to obtain the number of beats of the pulse wave of the living body at a second frequency; the wearable device calculates the heart rate of the living body according to the number of beats.
[0152] It should be noted that heart rate refers to the number of times the heart beats per minute. The normal heart rate range is 60 to 100 beats per minute. Pulse refers to the arterial pulsation that can be felt on the human body surface. Its essence is that the heart completes effective contraction, causing changes in the positive pressure of the peripheral blood vessel wall, which acts on the elastic arterial wall to deform, allowing people to more intuitively detect the number of arterial pulsations. The normal pulse of a person is 60 to 100 beats per minute. It can be seen that under normal circumstances, the heart rate and pulse are equal.
[0153] Therefore, the number of pulse wave beats obtained by the wearable device is the heart rate of the living body. At this time, the wearable device can determine that the living body is in a normal state.
[0154] Optionally, after step 509, the method may also include but is not limited to the following implementations:
[0155] Implementation method 1: When the heart rate is within the preset heart rate range, the wearable device will record and save the heart rate.
[0156] Among them, the preset heart rate range is an interval formed by a first preset heart rate threshold and a second preset heart rate threshold, the first preset heart rate threshold is smaller than the second preset heart rate threshold, and the preset heart rate range is generally set to (60 times / minute, 100 times / minute).
[0157] Implementation method 2: When the heart rate is outside the preset heart rate range, the wearable device outputs a first prompt message.
[0158] Among them, the first prompt information is relevant suggestions provided by the wearable device to the user based on the heart rate.
[0159] Optionally, when the heart rate is outside the preset heart rate range, the wearable device outputs a first prompt message, which may include: when the heart rate is less than or equal to a first preset heart rate threshold, outputting a first sub-prompt message; when the heart rate is greater than or equal to a second preset heart rate threshold, outputting a second sub-prompt message.
[0160] It can be understood that when the heart rate is less than or equal to the first preset heart rate threshold, the wearable device can determine that the living body is in a tachycardia state, and the output first sub-prompt information can be to remind the user to test his or her thyroid function; when the heart rate is greater than or equal to the second preset heart rate threshold, the wearable device can determine that the living body is in a bradycardia state, and the output second sub-prompt information can be to prompt the user to detect the reason why the living body's heart rate is too low and take corresponding measures.
[0161] Among them, there are three reasons for low heart rate: the first is vagus nerve hyperfunction. When the vagus nerve is excited, the endings of the vagus nerve will release a substance called "acetylcholine", which causes low heart rate; the second is sick sinus syndrome, which is a pathological heart manifestation. It may be a low heart rate caused by coronary heart disease, cardiomyopathy and other diseases; the third is severe atrioventricular conduction block caused by slow heartbeat, which causes low heart rate.
[0162] In an embodiment of the present invention, the wearable device first determines whether there is an object to be tested; when the wearable device determines that there is an object to be tested, the range is narrowed to determine the target object to be tested; the wearable device determines whether there is a fluctuation signal in the target object to be tested; if the wearable device detects that there is a fluctuation signal in the target object to be tested, the wearable device determines the state of the accelerometer; if the accelerometer of the wearable device is in a dynamic state, the wearable device obtains an acceleration signal; the wearable device determines whether there is a pulse wave signal in the fluctuation signal based on the acceleration signal and the fluctuation signal; if the wearable device determines that there is a pulse wave signal, the target object to be tested is determined to be a living body, and the heart rate of the living body is detected. This method not only enables the wearable device to narrow the range of the object to be tested under certain conditions to determine the target object to be tested, but also improves the accuracy of the wearable device in detecting the pulse wave signal based on the fluctuation signal and the acceleration signal when the object to be tested is in motion, so as to determine that the target object to be tested is a living body, and detect the heart rate of the living body, so that the user can grasp the heart rate of the living body in time.
[0163] It should be noted that step 509 is similar to step 510 in this embodiment. Figure 2 The steps 201 shown can be combined with each other to form a new embodiment. The new embodiment is also within the scope of protection of the present invention and will not be described in detail here.
[0164] like Figure 6a , which is a schematic diagram of an embodiment of a wearable device in an embodiment of the present invention, wherein the wearable device includes an accelerometer, and the wearable device may include: a judgment module 601, an acquisition module 602, and a determination module 603;
[0165] The judging module 601 is used to judge the current state of the accelerometer when a fluctuation signal is detected in the object to be measured;
[0166] The acquisition module 602 is used to acquire the acceleration signal in the accelerometer if the current state is dynamic; and obtain a first indication result according to the acceleration signal and the fluctuation signal;
[0167] The determination module 603 is used to determine that the object to be detected is a living body if the first indication result indicates that there is a pulse wave signal in the fluctuation signal.
[0168] Optionally, in some embodiments of the present invention,
[0169] The judging module 601 is further used to judge whether there is a pulse wave signal in the fluctuation signal if the current state is static;
[0170] The determination module 603 is further configured to determine the object to be detected as a living body if the object exists; and to determine the object to be detected as a non-living body if the object does not exist.
[0171] Optionally, in some embodiments of the present invention,
[0172] The determination module 603 is also used to determine the object to be detected as a non-living body when the fluctuation signal is not detected in the object to be detected; or, if the first indication result indicates that the pulse wave signal does not exist in the fluctuation signal, determine the object to be detected as the non-living body.
[0173] Optionally, in some embodiments of the present invention, Figure 6b , which is a schematic diagram of an embodiment of a wearable device in an embodiment of the present invention, the wearable device may further include: a detection module 604;
[0174] The detection module 604 is used to detect the signal value received by the light sensor through an infrared detection device;
[0175] The determination module 603 is further configured to determine that there is an object to be detected when the signal value is greater than a preset signal threshold.
[0176] Optionally, in some embodiments of the present invention,
[0177] The acquisition module 602 is also used to acquire the distance between the infrared detection device and the object to be detected;
[0178] The determination module 603 is further used to determine the target object to be detected when the distance is within a preset distance range;
[0179] The judgment module 601 is specifically used to judge the current state of the accelerometer when a fluctuation signal is detected in the target object to be measured;
[0180] The determination module 603 is specifically configured to determine the target object to be detected as a living body if the first indication result indicates that a pulse wave signal exists in the fluctuation signal.
[0181] Optionally, in some embodiments of the present invention,
[0182] The detection module 604 is also used to start the first light emitter in the wearable device and control the light emitter to emit green light to detect the heart rate of the living body.
[0183] Optionally, in some embodiments of the present invention,
[0184] The detection module 604 is specifically used to start the first light emitter in the wearable device after waiting for a preset period of time, and control the light emitter to emit green light to detect the heart rate of the living body; or, directly start the first light emitter in the wearable device, and control the light emitter to emit green light to periodically detect the heart rate of the living body according to the reflection signal of the green light.
[0185] like Figure 7 FIG. 1 is a schematic diagram of another embodiment of a wearable device in an embodiment of the present invention. Figure 7 FIG. 1 is a block diagram of a partial structure of a mobile phone related to a wearable device provided in an embodiment of the present invention. Figure 7 The mobile phone includes: a radio frequency (RF) circuit 710, a memory 720, an input unit 730, a display unit 740, a sensor 750, an audio circuit 760, a wireless fidelity (WiFi) module 770, a processor 780, and a power supply 790. Those skilled in the art will understand that Figure 7 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0186] Combine the following Figure 7 A detailed introduction to the various components of the mobile phone:
[0187] The RF circuit 710 can be used for receiving and sending signals during the process of sending and receiving information or making calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 780 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 710 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the RF circuit 710 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (SMS), etc.
[0188] The memory 720 can be used to store software programs and modules. The processor 780 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 720. The memory 720 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 720 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0189] The input unit 730 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 730 may include a touch panel 731 and other input devices 732. The touch panel 731, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 731 or near the touch panel 731 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 731 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 780, and can receive and execute commands sent by the processor 780. In addition, the touch panel 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 731, the input unit 730 may further include other input devices 732. Specifically, the other input devices 732 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
[0190] The display unit 740 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 740 may include a display panel 741. Optionally, the display panel 741 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 731 may cover the display panel 741. When the touch panel 731 detects a touch operation on or near it, it is transmitted to the processor 780 to determine the type of touch event. Subsequently, the processor 780 provides a corresponding visual output on the display panel 741 according to the type of touch event. Although in Figure 7 In the embodiment, the touch panel 731 and the display panel 741 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 731 and the display panel 741 can be integrated to realize the input and output functions of the mobile phone.
[0191] The mobile phone may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 741 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0192] The audio circuit 760, the speaker 761, and the microphone 762 can provide an audio interface between the user and the mobile phone. The audio circuit 760 can transmit the received audio data to the speaker 761 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 762 converts the collected sound signal into an electrical signal, which is received by the audio circuit 760 and converted into audio data, and then the audio data is output to the processor 780 for processing, and then sent to another mobile phone through the RF circuit 710, or the audio data is output to the memory 720 for further processing.
[0193] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the WiFi module 770. It provides users with wireless broadband Internet access. Figure 7 A WiFi module 770 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.
[0194] The processor 780 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 720, and calling data stored in the memory 720, it executes various functions of the mobile phone and processes data, thereby monitoring the mobile phone as a whole. Optionally, the processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 780.
[0195] The mobile phone also includes a power supply 790 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 780 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.
[0196] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0197] In the embodiment of the present invention, the processor 780 included in the terminal device also has the following functions:
[0198] When a fluctuation signal is detected in the object to be measured, determining the current state of the accelerometer;
[0199] If the current state is dynamic, obtaining the acceleration signal in the accelerometer;
[0200] Obtaining a first indication result according to the acceleration signal and the fluctuation signal;
[0201] If the first indication result indicates that a pulse wave signal exists in the fluctuation signal, the object to be detected is determined to be a living body.
[0202] Optionally, the processor 780 also has the following functions:
[0203] If the current state is static, it is determined whether there is a pulse wave signal in the fluctuation signal; if there is, the object to be detected is determined to be a living body; if not, the object to be detected is determined to be a non-living body.
[0204] Optionally, the processor 780 also has the following functions:
[0205] When the fluctuation signal is not detected in the object to be detected, the object to be detected is determined to be a non-living body; or, if the first indication result indicates that the pulse wave signal does not exist in the fluctuation signal, the object to be detected is determined to be a non-living body.
[0206] Optionally, the processor 780 also has the following functions:
[0207] The signal value received by the light sensor is detected by the infrared detection device; when the signal value is greater than a preset signal threshold, it is determined that there is an object to be detected.
[0208] Optionally, the processor 780 also has the following functions:
[0209] Acquiring the distance between the infrared detection device and the object to be detected; when the distance is within a preset distance range, determining the target object to be detected;
[0210] When a fluctuation signal is detected in the object to be measured, determining the current state of the accelerometer comprises: when a fluctuation signal is detected in the target object to be measured, determining the current state of the accelerometer;
[0211] If the first indication result indicates that there is a pulse wave signal in the fluctuation signal, then the target object to be detected is determined to be a living body, including: if the first indication result indicates that there is a pulse wave signal in the fluctuation signal, then the target object to be detected is determined to be a living body.
[0212] Optionally, the processor 780 also has the following functions:
[0213] A first light emitter in the wearable device is started and controlled to emit green light to detect the heart rate of the living body.
[0214] Optionally, the processor 780 also has the following functions:
[0215] After waiting for a preset period of time, the first light emitter in the wearable device is started, and the light emitter is controlled to emit green light to detect the heart rate of the living body; or, the first light emitter in the wearable device is directly started, and the light emitter is controlled to emit green light to periodically detect the heart rate of the living body according to the reflection signal of the green light.
[0216] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0217] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center to another website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0218] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0219] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0220] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0221] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0222] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0223] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for detecting a living body, characterized in that: The method is applied to a wearable device, the wearable device includes an accelerometer, and the method includes: When a fluctuation signal is detected in the object to be measured, determining the current state of the accelerometer, the fluctuation signal being obtained by detecting the object to be measured by using the PPG technology; If the current state is dynamic, acquiring an acceleration signal from the accelerometer; Obtaining a first indication result according to the acceleration signal and the fluctuation signal; If the first indication result indicates that a pulse wave signal exists in the fluctuation signal, the object to be detected is determined to be a living body; The obtaining a first indication result according to the acceleration signal and the fluctuation signal comprises: Subtracting the fluctuation signal from the acceleration signal to obtain a target signal; If the target signal is not zero, the first indication result indicates that the pulse wave signal exists in the fluctuation signal.
2. The method according to claim 1, characterized in that: After determining the current state of the accelerometer when a fluctuation signal is detected in the object to be measured, the method further includes: If the current state is static, determining whether there is a pulse wave signal in the fluctuation signal; If so, the object to be detected is determined to be a living body; If not present, the object to be detected is determined to be non-living.
3. The method according to claim 1, characterized in that: The method further comprises: When the fluctuation signal is not detected in the object to be detected, the object to be detected is determined to be a non-living body; or, If the first indication result indicates that the pulse wave signal does not exist in the fluctuation signal, the object to be detected is determined to be the non-living body.
4. The method according to claim 1, characterized in that: Before determining the current state of the accelerometer when a fluctuation signal is detected in the object to be measured, the method further includes: Detecting the signal value received by the light sensor through the infrared detection device; When the signal value is greater than a preset signal threshold, it is determined that there is an object to be detected.
5. The method according to claim 4, characterized in that The method further comprises: Acquiring the distance between the infrared detection device and the object to be detected; When the distance is within a preset distance range, determining the target object to be measured; When a fluctuation signal is detected in the object to be measured, determining the current state of the accelerometer includes: When a fluctuation signal is detected in the target object to be measured, determining a current state of the accelerometer; If the first indication result indicates that there is a pulse wave signal in the fluctuation signal, determining the object to be detected as a living body includes: If the first indication result indicates that a pulse wave signal exists in the fluctuation signal, the target object to be detected is determined to be a living body.
6. The method according to claim 1, characterized in that The method further comprises: A first light emitter in the wearable device is started and controlled to emit green light to detect the heart rate of the living body.
7. The method according to claim 6, characterized in that The step of starting a first light emitter in the wearable device and controlling the light emitter to emit green light to detect the heart rate of the living body includes: After waiting for a preset time, starting the first light emitter in the wearable device and controlling the light emitter to emit green light to detect the heart rate of the living body; or, The first light emitter in the wearable device is directly started, and the light emitter is controlled to emit green light, so as to periodically detect the heart rate of the living body according to the reflection signal of the green light.
8. A wearable device, characterized in that: The wearable device includes an accelerometer, and the wearable device also includes: A judgment module, used for judging the current state of the accelerometer when a fluctuation signal is detected in the object to be measured, wherein the fluctuation signal is obtained by detecting the object to be measured by using the PPG technology; An acquisition module, configured to acquire an acceleration signal in the accelerometer if the current state is dynamic; and obtain a first indication result according to the acceleration signal and the fluctuation signal; a determination module, configured to determine the object to be detected as a living body if the first indication result indicates that a pulse wave signal exists in the fluctuation signal; The acquisition module is further used to subtract the fluctuation signal from the acceleration signal to obtain a target signal; if the target signal is not zero, the first indication result indicates that the pulse wave signal exists in the fluctuation signal.
9. A wearable device, characterized in that: The wearable device includes an accelerometer, and the wearable device also includes: A memory storing executable program code; and a processor coupled to the memory; The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having executable program code stored thereon, characterized in that: When the executable program code is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
