Blink detection method, system and storage medium based on photoplethysmography

Through photoplethysmography technology, PPG signals are acquired and processed to achieve real-time and accurate blink detection, solving the problems of inapplicability and high cost of existing methods, and is suitable for lightweight wearable devices.

CN115067935BActive Publication Date: 2024-09-24SOUTH CHINA NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210742579.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-28
Publication Date
2024-09-24
Estimated Expiration
2042-06-28

AI Technical Summary

Technical Problem

Existing blink detection methods have problems such as uncomfortable electrode placement, sensitivity to ambient light, and high cost, which limit the applicability and accuracy of blink detection.

Method used

Using a method based on photoplethysmography, the PPG signal in the target area is obtained, Gaussian filtering and differential operations are performed to determine the window minimum value and waveform amplitude, and the blink determination is performed based on the amplitude judgment coefficient to achieve real-time blink detection.

Benefits of technology

Improves the applicability and accuracy of blink detection, reduces dependence on ambient lighting, and is suitable for lightweight wearable device integration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115067935B
    Figure CN115067935B
Patent Text Reader

Abstract

The present invention discloses a blink detection method, system and storage medium based on photoplethysmography, the method comprising: obtaining a PPG signal of a target area; performing Gaussian filtering on the PPG signal to obtain a filtered signal; performing differential operation processing on the filtered signal to obtain a first-order differential signal; determining a window minimum value according to the first-order differential signal, and performing adjacent extreme value judgment according to the window minimum value; determining a signal waveform amplitude according to the first-order differential signal, and performing a trough amplitude judgment in combination with an amplitude judgment coefficient; and performing a blink judgment according to the adjacent extreme value judgment and the trough amplitude judgment. The present invention uses photoplethysmography to detect the number of real-time human eye blinks, and can apply PPG technology to blink detection, thereby improving the applicability of blink detection, and can be widely used in the field of pulse photoelectric recording technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of pulse photoelectric recording, and in particular to a blink detection method, system and storage medium based on photoplethysmography. Background Art

[0002] There are three main methods for blink detection at present, namely electrooculogram, face image detection method and eye tracking method. Electrooculogram requires placing electrodes on the skin near the human eye to measure the potential difference between the cornea and the retina. The electrooculogram signal is analyzed according to the characteristics of the change in the vertical potential difference during blinking to achieve blink detection. The face image detection method requires the use of a camera to capture the face image under natural lighting conditions, the extraction of the eye image is completed through machine learning methods, and the eye aspect ratio indicator is used to evaluate the degree of eye closure to achieve blink detection. The eye tracking method requires infrared light as the light source, records the eye video through the camera, and captures the pupil-corneal reflection from the video. When performing eye tracking, blink detection can be used as part of the standard task.

[0003] Existing methods for blink detection all have certain shortcomings. Electrooculograms require electrodes to be placed on the skin near the eyes, which can cause discomfort to the subjects and reduce ease of use, while limiting the possibility of integrating blink detection systems into existing devices as wearable modules. Face image detection methods are very sensitive to ambient lighting, and dim, uneven ambient lighting can reduce the accuracy of blink detection. Eye tracking is not suitable for lightweight blink detection tasks due to its high cost. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a blink detection method, system and storage medium based on photoplethysmography with high applicability.

[0005] In a first aspect, an embodiment of the present invention provides a blink detection method based on photoplethysmography, comprising:

[0006] Obtain the PPG signal of the target area;

[0007] Performing Gaussian filtering on the PPG signal to obtain a filtered signal;

[0008] Performing differential operation processing on the filtered signal to obtain a first-order differential signal;

[0009] Determine a window minimum value according to the first-order difference signal, and perform adjacent extreme value determination according to the window minimum value;

[0010] Determine the signal waveform amplitude according to the first-order differential signal, and perform trough amplitude determination in combination with the amplitude determination coefficient;

[0011] Blink determination is performed based on the adjacent extreme value determination and the trough amplitude determination.

[0012] Optionally, the method further comprises:

[0013] Blink counting is performed based on the results of the blink determination.

[0014] Optionally, acquiring the PPG signal of the target area includes:

[0015] transmitting the target area through a light beam;

[0016] Acquire a reflected light signal of the target area after transmission;

[0017] Perform analog-to-digital conversion on the reflected light signal to obtain a PPG signal.

[0018] Optionally, determining a window minimum value according to the first-order difference signal, and performing adjacent extreme value determination according to the window minimum value, includes:

[0019] According to the first-order differential signal, the window minimum value is determined in combination with the signal number and time sequence; and the edge initial value, edge termination value, first maximum value and second maximum value are determined;

[0020] According to the window minimum value, combining the first maximum value and the second maximum value, adjacent extreme value determination is performed;

[0021] Among them, the first-order differential signal includes a falling segment waveform and a rising segment waveform, and the trend of a complete blink signal is a process of first falling and then rising. The starting and ending points of the falling segment waveform are respectively the edge initial value and the window minimum value, and the starting and ending points of the rising segment waveform are respectively the window minimum value and the edge termination value. The first maximum value is the maximum value of the falling segment waveform, and the second maximum value is the maximum value of the rising segment waveform.

[0022] Optionally, determining the signal waveform amplitude according to the first-order differential signal and performing trough amplitude determination in combination with an amplitude determination coefficient includes:

[0023] Determine a first waveform amplitude and a second waveform amplitude according to the first-order differential signal;

[0024] According to the first waveform amplitude and the second waveform amplitude, in combination with the amplitude judgment coefficient and the window minimum value and the second maximum value, a trough amplitude judgment is performed;

[0025] The first waveform amplitude is the maximum amplitude of the output waveform of a blink signal in the first-order differential signal, and the second waveform amplitude is the minimum amplitude of the output waveform of a blink signal in the first-order differential signal.

[0026] Optionally, the blink determination based on the adjacent extreme value determination and the trough amplitude determination includes:

[0027] When c[r]>c[l], c[r]>0, and c[N]<0, perform the trough amplitude determination; where c[r] represents the second maximum value, c[l] represents the first maximum value, and c[N] represents the window minimum value;

[0028] When (max - min)*R < c[r] - c[N], determine that a blink has occurred; where max represents the first waveform amplitude, min represents the second waveform amplitude, and R represents the amplitude determination coefficient.

[0029] In a second aspect, an embodiment of the present invention provides a blink detection system based on photoplethysmography, including:

[0030] A first module for acquiring a PPG signal of a target area;

[0031] A second module for performing Gaussian filtering on the PPG signal to obtain a filtered signal;

[0032] A third module for performing differential operation on the filtered signal to obtain a first-order differential signal;

[0033] A fourth module for determining a window minimum value according to the first-order differential signal and performing adjacent extreme value determination according to the window minimum value;

[0034] A fifth module for determining the signal waveform amplitude according to the first-order differential signal and performing trough amplitude determination in combination with an amplitude determination coefficient;

[0035] A sixth module for performing blink determination according to the adjacent extreme value determination and the trough amplitude determination.

[0036] Optionally, the first module includes the following sub-modules:

[0037] An LED emission module for transmitting through the target area with a light beam;

[0038] A PD optometry module for acquiring a reflected light signal of the target area that has passed through transmission;

[0039] An analog-to-digital conversion module for performing analog-to-digital conversion on the reflected light signal to obtain a PPG signal.

[0040] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory;

[0041] The memory is used for storing programs;

[0042] The processor executes the program to implement the method described above.

[0043] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the method described above.

[0044] The embodiment of the present invention also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the above method.

[0045] The embodiment of the present invention first obtains the PPG signal of the target area; performs Gaussian filtering on the PPG signal to obtain a filtered signal; performs differential operation on the filtered signal to obtain a first-order differential signal; determines the window minimum value according to the first-order differential signal, and performs adjacent extreme value judgment according to the window minimum value; determines the signal waveform amplitude according to the first-order differential signal, and performs trough amplitude judgment in combination with the amplitude judgment coefficient; performs blink judgment according to the adjacent extreme value judgment and the trough amplitude judgment. The present invention uses photoplethysmography to detect the number of real-time human eye blinks, and can apply PPG technology to blink detection, thereby improving the applicability of blink detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0047] Figure 1 A schematic diagram of a flow chart of a blink detection method based on photoplethysmography provided by an embodiment of the present invention;

[0048] Figure 2 A schematic diagram of a process for blink detection and judgment provided by an embodiment of the present invention;

[0049] Figure 3 A schematic diagram of the principle of collecting PPG signals provided by an embodiment of the present invention;

[0050] Figure 4 A schematic diagram of a measurement position provided by an embodiment of the present invention;

[0051] Figure 5 A schematic diagram of a framework of a blink detection system based on photoplethysmography provided in an embodiment of the present invention;

[0052] Figure 6 A schematic diagram of a process flow of signal acquisition processing provided by an embodiment of the present invention;

[0053] Figure 7 A schematic diagram of a detailed process of blink detection and judgment provided by an embodiment of the present invention;

[0054] Figure 8 This is a waveform diagram of a blink signal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0056] In view of the problems existing in the prior art, in the first aspect, the present invention provides a blink detection method based on photoplethysmography, such as Figure 1 As shown, the method comprises the following steps:

[0057] Obtain the PPG signal of the target area;

[0058] Performing Gaussian filtering on the PPG signal to obtain a filtered signal;

[0059] Performing differential operation processing on the filtered signal to obtain a first-order differential signal;

[0060] Determine a window minimum value according to the first-order difference signal, and perform adjacent extreme value determination according to the window minimum value;

[0061] Determine the signal waveform amplitude according to the first-order differential signal, and perform trough amplitude determination in combination with the amplitude determination coefficient;

[0062] Blink determination is performed based on the adjacent extreme value determination and the trough amplitude determination.

[0063] Optionally, the method further comprises:

[0064] Blink counting is performed based on the results of the blink determination.

[0065] Optionally, acquiring the PPG signal of the target area includes:

[0066] transmitting the target area through a light beam;

[0067] Acquire a reflected light signal of the target area after transmission;

[0068] Perform analog-to-digital conversion on the reflected light signal to obtain a PPG signal.

[0069] Optionally, determining a window minimum value according to the first-order difference signal and performing adjacent extreme value determination according to the window minimum value includes:

[0070] Determining a window minimum value according to the first-order difference signal in combination with the signal number and time sequence; and determining an edge initial value, an edge termination value, a first maximum value, and a second maximum value;

[0071] Performing adjacent extreme value determination according to the window minimum value in combination with the first maximum value and the second maximum value;

[0072] Wherein, the first-order difference signal includes a falling segment waveform and a rising segment waveform. A complete blink signal trend is a process of first falling and then rising. The start and end points of the falling segment waveform are the edge initial value and the window minimum value respectively, the start and end points of the rising segment waveform are the window minimum value and the edge termination value respectively, the first maximum value is the maximum value of the falling segment waveform, and the second maximum value is the maximum value of the rising segment waveform.

[0073] Optionally, determining the amplitude of the signal waveform according to the first-order difference signal and performing trough amplitude determination in combination with an amplitude judgment coefficient includes:

[0074] Determining a first waveform amplitude and a second waveform amplitude according to the first-order difference signal;

[0075] Performing trough amplitude determination according to the first waveform amplitude and the second waveform amplitude in combination with the amplitude judgment coefficient, the window minimum value, and the second maximum value;

[0076] Wherein, the first waveform amplitude is the maximum amplitude of the output waveform of a blink signal segment in the first-order difference signal, and the second waveform amplitude is the minimum amplitude of the output waveform of a blink signal segment in the first-order difference signal.

[0077] Optionally, performing blink determination according to the adjacent extreme value determination and the trough amplitude determination includes:

[0078] When c[r]>c[l], c[r]>0, and c[N]<0, perform trough amplitude determination; where c[r] represents the second maximum value, c[l] represents the first maximum value, and c[N] represents the window minimum value;

[0079] When (max - min)*R < c[r] - c[N], it is determined that a blink occurs; where max represents the first waveform amplitude, min represents the second waveform amplitude, and R represents the amplitude judgment coefficient.

[0080] In a second aspect, an embodiment of the present invention provides a blink detection system based on photoplethysmography, including:

[0081] The first module is used to obtain the PPG signal of the target area;

[0082] The second module is used to perform Gaussian filtering on the PPG signal to obtain a filtered signal;

[0083] The third module is used to perform differential operation processing on the filtered signal to obtain a first-order differential signal;

[0084] A fourth module is used to determine a window minimum value according to the first-order difference signal, and to determine an adjacent extreme value according to the window minimum value;

[0085] A fifth module is used to determine the signal waveform amplitude according to the first-order differential signal, and to perform trough amplitude determination in combination with the amplitude determination coefficient;

[0086] The sixth module is used to perform blinking determination based on the adjacent extreme value determination and the trough amplitude determination.

[0087] Optionally, the first module includes the following submodules:

[0088] An LED emission module, used for transmitting a light beam to the target area;

[0089] A PD optometry module, used for acquiring a reflected light signal of the target area after transmission;

[0090] The analog-to-digital conversion module is used to perform analog-to-digital conversion on the reflected light signal to obtain a PPG signal.

[0091] The contents of the method embodiments of the present invention are all applicable to the system embodiments. The functions specifically implemented by the system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method.

[0092] Another aspect of an embodiment of the present invention further provides an electronic device, including a processor and a memory;

[0093] The memory is used to store programs;

[0094] The processor executes the program to implement the method described above.

[0095] The contents of the method embodiments of the present invention are all applicable to the electronic device embodiments. The functions specifically implemented by the electronic device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0096] Another aspect of the embodiments of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the method described above.

[0097] The contents of the method embodiments of the present invention are all applicable to the computer-readable storage medium embodiments. The functions specifically implemented by the computer-readable storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0098] The embodiment of the present invention also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the above method.

[0099] The implementation principle of the blink detection based on photoplethysmography of the present invention is described in detail below:

[0100] In order to solve the related problems of the prior art, a technical solution adopted by the present invention includes: providing a wearable blink detection system based on photoplethysmography, integrating the Arduino Uno R3 development board, the host computer and the PPG module in hardware, designing a first-in-first-out queue buffer in software algorithm, and realizing blink detection through the algorithm.

[0101] Reference Figure 2 , the detection process of blink detection based on photoplethysmography is as follows:

[0102] Obtaining a PPG signal on the user's forehead;

[0103] Perform Gaussian filtering on the signal and calculate the first-order difference;

[0104] Determine the minimum value based on the first-order difference, and determine the adjacent extreme values ​​of multiple minimum points;

[0105] Then determine the trough amplitude and output the real-time waveform;

[0106] The real-time blinking times are determined based on the changes in the blinking signal generated by the output waveform.

[0107] In some embodiments, the process of obtaining the PPG signal of the user's forehead includes: the light beam emitted by the LED red light / infrared emission module is transmitted to the lower layer of the skin. Due to the different light transmittance of blood to light, the light absorption of the artery changes when the light beam passes through the blood vessel, while the light absorption of other tissues remains basically unchanged. The obtained signal can be divided into a direct current (DC) signal and an alternating current (AC) signal. Extracting the AC signal can reflect the characteristics of blood flow.

[0108] In some embodiments, PPG signal extraction is performed through a PPG module, and the PPG module includes: an LED transmitting module, a PD light detection module, and an analog-to-digital conversion module; the data transmission direction between the modules is specifically as follows: the LED transmitting module is responsible for emitting near-infrared light below the skin, the PD light detection module is responsible for receiving the light signal reflected by the skin, and then the analog-to-digital conversion module converts the analog quantity into the digital quantity.

[0109] Specifically, refer to Figure 3 , the basic principle of PPG relies on the difference in optical properties between blood and other tissue components. In a simple PPG model, light enters the tissue from the light source (LED) and partially enters the photodetector (PD) after undergoing interactions such as scattering, absorption, reflection, and transmission in the tissue. In the absence of activity in the part to be measured, the absorption of light by tissue components such as the epidermis, muscle, and fat is basically unchanged, while the blood volume of the microvascular bed changes with the cardiac cycle. In this case, changes in blood volume lead to changes in the optical properties of the tissue. Compared with other tissue components, the light of the ideal wavelength of PPG should be strongly absorbed by blood components, so that changes in blood volume in the microvascular bed can significantly affect the intensity of the incident light on the photodetector. On the other hand, the light of the ideal wavelength of PPG should have sufficient penetration depth to interact with the microvascular bed to accurately measure changes in blood volume.

[0110] In some embodiments, the test measurement position is 40 mm above the forehead and 33 mm to the right, the LED driving current is 12 mA, and the sampling rate is 50 Hz. During the test, the sensor module is fixed at the forehead measurement point using medical tape, and the PPG sensor module is covered with a headband, wherein the relative height between the lower edge of the headband and the measurement point is 10 mm.

[0111] Specifically, refer to Figure 4 , the PPG sensor module is fixed on the inside of the headband, and the distance between the sensor center of the module and the bottom edge of the headband is 10 mm. The PPG module is programmed to collect data from the λ=880 nm channel, the LED drive current is set to 12 mA, and the sampling frequency is set to 50 Hz. A soft ruler is used to make measurement points and auxiliary alignment marks 40 mm above and 30 mm to the right of the subject's forehead. The headband is worn and the sensor center of the PPG sensor module is aligned with the forehead measurement point. The PPG module is connected to the development board via a wired method to transmit the collected PPG raw signal.

[0112] It should be noted that the directly collected PPG raw signal cannot be directly used for blink detection. Only the pre-processed first-order difference signal can be used for blink detection. In order to ensure the real-time performance of the blink detection algorithm, the present invention performs a signal preprocessing process on the development board.

[0113] In some embodiments, the data algorithm processing in the software includes: signal filtering, first-order difference, determination of extreme values ​​and amplitudes, and blink determination count +1.

[0114] Reference Figure 5 , which is a framework diagram of a blink detection system according to an embodiment of the present invention. The blink detection system includes a data algorithm processing part 110, a forehead signal acquisition part 120, a PPG module 130, a PPG module component 131, a signal Gaussian filter 111, a first-order difference operation 112, a trough amplitude determination 113, an extreme value determination 114, and a blink self-counting +1 115.

[0115] It should be noted that, in some embodiments, the signal Gaussian filter 111 uses a Gaussian filter kernel with a window size of 9 and a standard deviation σ of 1 to perform filtering operations to obtain new filtered signal data, and puts it at the end of a filtered signal queue with a length of 3.

[0116] Reference Figure 6 , is a preprocessing flow chart of discrete signals collected continuously in a development board according to an embodiment of the present invention, which shows the processing flow of discrete signals collected continuously in a development board. Among them, the PPG module transmits the collected new data of the original signal and puts it at the end of the original signal queue. The queue has a first-in-first-out feature. When data is added from the end of the queue, the data in the queue moves forward one by one in order and squeezes out the head data.

[0117] After the queue operation is completed, according to the values ​​of each item in the original signal queue, a Gaussian filter kernel with a window size of 9 and a standard deviation σ of 1 is used for filtering operation to obtain new filtered signal data, which is placed at the end of the filtered signal queue with a length of 3. According to the head and tail data of the filtered signal queue, the first-order difference is calculated according to the central difference rule. Figure 6 It can be seen that the filtered signal has a delay of 4 data points compared to the original signal, which is equivalent to a delay of 80 ms at a sampling frequency of 50 Hz, while the first-order difference and the filtered signal have a delay of 1 data point, which is equivalent to a delay of 20 ms at a sampling frequency of 50 Hz.

[0118] Among them, the calculation of the first-order difference of the signal specifically includes: the blinking artifact in the filtered signal can be understood as the change in the signal waveform caused by the blinking action. When blinking, the eyelid covers the eyeball and then leaves the eyeball, which causes the output waveform to change sharply to form a blinking artifact. This change is captured by the PPG acquisition system, forming a descending part of the blinking artifact corresponding to the part of the blinking artifact less than 0 in the first-order difference. When the first-order difference obtains a minimum value, the filtered signal obtains the local maximum descending speed. The rising part of the blinking artifact in the filtered signal corresponds to the part of the blinking artifact greater than 0 in the first-order difference. When the first-order difference obtains a maximum value, the filtered signal obtains the local maximum rising speed.

[0119] Refer to Figure 7 and Figure 8 , Figure 7 is a flowchart for judging whether a user blinks in an embodiment of the present invention. The present invention proposes to use the ratio of the amplitude difference between the maximum and minimum values of the first-order difference of the blink artifact and the amplitude difference between the local maximum and minimum values of the first-order difference of the PPG signal as an index to measure the level of the blink artifact component relative to the overall PPG signal. This is because there is a large amplitude change from the minimum value to the maximum value in a short time in the first-order difference of the PPG signal for the blink artifact. Relatively speaking, the periodic change of the PPG signal due to the change of blood volume in the cardiac cycle does not have such a drastic change. Denote the amplitude of the acquired data in buffer d as the amplitude of the output waveform of the blinking process, and separately select the maximum amplitude and the minimum amplitude in one of the processes as max and min. The values of c[r], c[N], max, and min are as shown in Figure 8 shown.

[0120] Figure 8 is a waveform diagram of the blinking PPG signal in an embodiment of the present invention. When the subject blinks, the PPG signal first drops to obtain a minimum value, and then rises back to the normal waveform, presenting a wave valley that first drops and then rises. The descending part of the blink artifact in the PPG signal corresponds to the part where the blink artifact is less than 0 in the first-order difference. When the first-order difference obtains the minimum value, the PPG signal obtains the local maximum descending speed. The ascending part of the blink artifact in the PPG signal corresponds to the part where the blink artifact is greater than 0 in the first-order difference. When the first-order difference obtains the maximum value, the PPG signal obtains the local maximum ascending speed. In Figure 8 , three wave valleys 1, 2, and 3 can be observed. Wave valley 1 and wave valley 3 correspond to the descending segments of the PPG, and wave valley 2 corresponds to the descending segment of the blink artifact. Use a dashed box to mark the bottom of wave valley 2, the first maximum value on the left side of the bottom, and the first maximum value on the right side of the bottom, and label them as c[l], c[N], and c[r] respectively according to the appearance positions. A complete blinking signal has a trend of first descending and then rising rapidly. When the conditions in buffer c are met, record the initial value point c[0], the minimum value point c[N], and the termination point c[2N] of the window edge in chronological order. Denote the first maximum value in the window as c[l] (if this segment of the waveform satisfies the condition of monotonically decreasing, it is denoted as c[0]); Denote the first maximum value from c[N] to c[2N] as c[r] (if this segment of the waveform satisfies the condition of monotonically increasing, it is denoted as c[2N]). It can be observed that for the descending segment of the blink artifact, c[l]<c[r], c[N]<0, and c[r]>0.

[0121] According to the characteristics of blink artifacts in the above-mentioned first-order difference, the amplitude relationship and time relationship between adjacent extreme points in the first-order difference of the filtered signal can be used to distinguish between the periodic changes in the signal caused by changes in blood volume during the cardiac cycle and the blink artifacts caused by blinking, thereby realizing blink detection.

[0122] Compared with the prior art, the present invention can apply photoplethysmography to blink detection while meeting the requirements of being lightweight and wearable.

[0123] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.

[0124] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features described may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.

[0125] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0126] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0127] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0128] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0129] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0130] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

[0131] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the described embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A blink detection method based on photoplethysmography, characterized in that: Including: Obtain the PPG signal of the target area; The target area is the user's forehead; Perform Gaussian filtering on the PPG signal to obtain a filtered signal; Perform differential operation on the filtered signal to obtain a first-order differential signal; Determine the window minimum value according to the first-order differential signal, and perform adjacent extreme value determination according to the window minimum value; Among them, the determining the window minimum value according to the first-order differential signal and performing adjacent extreme value determination according to the window minimum value includes: According to the first-order differential signal, combine the signal number and time sequence to determine the window minimum value of the blink artifact; and Determine the edge initial value, edge termination value, first maximum value, and second maximum value; Perform adjacent extreme value determination according to the window minimum value, in combination with the first maximum value and the second maximum value; Among them, the first-order differential signal includes a descending waveform and a rising waveform. A complete blink signal trend is a process of first descending and then rising. The start and end points of the descending waveform are the edge initial value and the window minimum value respectively, and the start and end points of the rising waveform are the window minimum value and the edge termination value respectively. The first maximum value is the maximum value of the descending waveform, and the second maximum value is the maximum value of the rising waveform; Determine the signal waveform amplitude according to the first-order differential signal, and perform valley amplitude determination in combination with the amplitude judgment coefficient; Among them, the determining the signal waveform amplitude according to the first-order differential signal and performing valley amplitude determination in combination with the amplitude judgment coefficient includes: Determine the first waveform amplitude and the second waveform amplitude according to the first-order differential signal; Perform valley amplitude determination according to the first waveform amplitude and the second waveform amplitude, in combination with the amplitude judgment coefficient, the window minimum value, and the second maximum value; Among them, the first waveform amplitude is the maximum amplitude of the output waveform of a segment of blink signal in the first-order differential signal, and the second waveform amplitude is the minimum amplitude of the output waveform of a segment of blink signal in the first-order differential signal; Perform blink determination according to the adjacent extreme value determination and the valley amplitude determination; Among them, the performing blink determination according to the adjacent extreme value determination and the valley amplitude determination includes: When c[r]>c[l], c[r]>0, and c[N]<0, perform valley amplitude determination; where c[r] represents the second maximum value, c[l] represents the first maximum value, and c[N] represents the window minimum value; When (max - min)*R < c[r] - c[N], it is determined that a blink occurs; where max represents the first waveform amplitude, min represents the second waveform amplitude, and R represents the amplitude judgment coefficient.

2. The blink detection method based on photoplethysmography according to claim 1, characterized in that: It also includes: Perform blink counting according to the result of blink determination.

3. The method for blink detection based on photoplethysmography according to claim 1, characterized in that: The obtaining the PPG signal of the target area includes: Transmit the target area through a light beam; Obtain the reflected light signal of the target area after transmission; Perform analog-to-digital conversion on the reflected light signal to obtain a PPG signal.

4. A blink detection system based on photoplethysmography, characterized in that: Including: The first module is used to obtain the PPG signal of the target area; The target area is the user's forehead; The second module is used to perform Gaussian filtering on the PPG signal to obtain a filtered signal; The third module is used to perform differential operation on the filtered signal to obtain a first-order differential signal; The fourth module is used to determine the window minimum value according to the first-order differential signal and perform adjacent extreme value determination according to the window minimum value; Among them, the determining the window minimum value according to the first-order differential signal and performing adjacent extreme value determination according to the window minimum value includes: Determining the window minimum value of the blink artifact according to the first-order differential signal in combination with the signal number and time sequence; and Determining the edge initial value, edge termination value, first maximum value, and second maximum value; Performing adjacent extreme value determination according to the window minimum value in combination with the first maximum value and the second maximum value; Among them, the first-order differential signal includes a descending waveform and a rising waveform. The trend of a complete blink signal is a process of first descending and then rising. The start and end points of the descending waveform are the edge initial value and the window minimum value respectively, the start and end points of the rising waveform are the window minimum value and the edge termination value respectively, the first maximum value is the maximum value of the descending waveform, and the second maximum value is the maximum value of the rising waveform; The fifth module is used to determine the signal waveform amplitude according to the first-order differential signal and perform valley amplitude determination in combination with the amplitude judgment coefficient; Among them, the determining the signal waveform amplitude according to the first-order differential signal and performing valley amplitude determination in combination with the amplitude judgment coefficient includes: Determining a first waveform amplitude and a second waveform amplitude according to the first-order differential signal; Performing valley amplitude determination according to the first waveform amplitude and the second waveform amplitude in combination with the amplitude judgment coefficient, the window minimum value, and the second maximum value; Among them, the first waveform amplitude is the maximum amplitude of the output waveform of a blink signal in the first-order differential signal, and the second waveform amplitude is the minimum amplitude of the output waveform of a blink signal in the first-order differential signal; The sixth module is used to perform blink determination according to the adjacent extreme value determination and the valley amplitude determination; Among them, the performing blink determination according to the adjacent extreme value determination and the valley amplitude determination includes: When c[r]>c[l], c[r]>0, and c[N]<0, perform valley amplitude determination; where c[r] represents the second maximum value, c[l] represents the first maximum value, and c[N] represents the window minimum value; When (max - min)*R < c[r] - c[N], it is determined that a blink occurs; where max represents the first waveform amplitude, min represents the second waveform amplitude, and R represents the amplitude judgment coefficient.

5. The blink detection system based on photoplethysmography according to claim 4, characterized in that: The first module includes the following sub-modules: The LED emission module is used to transmit the target area through a light beam; The PD optometry module is used to obtain the reflected light signal of the target area after transmission; The analog-to-digital conversion module is used to perform analog-to-digital conversion on the reflected light signal to obtain a PPG signal.

6. An electronic device, characterized in that: It includes a processor and a memory; The memory is used to store programs; The processor executes the program to implement the method according to any one of claims 1 to 3.

7. A computer-readable storage medium, characterized in that: The storage medium stores a program, and the program is executed by a processor to implement the method according to any one of claims 1 to 3.