[go: up one dir, main page]

CN106963386B - eye blinking recognition method and device - Google Patents

eye blinking recognition method and device Download PDF

Info

Publication number
CN106963386B
CN106963386B CN201710189357.2A CN201710189357A CN106963386B CN 106963386 B CN106963386 B CN 106963386B CN 201710189357 A CN201710189357 A CN 201710189357A CN 106963386 B CN106963386 B CN 106963386B
Authority
CN
China
Prior art keywords
sampling point
sampling
cluster
target
sampling points
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710189357.2A
Other languages
Chinese (zh)
Other versions
CN106963386A (en
Inventor
李岩
庞宏亮
赵立军
张骞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xuri Dongchen Technology Co ltd
Original Assignee
Neusoft Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Neusoft Corp filed Critical Neusoft Corp
Priority to CN201710189357.2A priority Critical patent/CN106963386B/en
Publication of CN106963386A publication Critical patent/CN106963386A/en
Application granted granted Critical
Publication of CN106963386B publication Critical patent/CN106963386B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Measuring devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor or mobility of a limb
    • A61B5/1103Detecting muscular movement of the eye, e.g. eyelid movement
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7203Signal processing specially adapted for physiological signals or for diagnostic purposes for noise prevention, reduction or removal
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Medical Informatics (AREA)
  • Surgery (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Biophysics (AREA)
  • Pathology (AREA)
  • Physiology (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Veterinary Medicine (AREA)
  • Molecular Biology (AREA)
  • Public Health (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Psychiatry (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Ophthalmology & Optometry (AREA)
  • Dentistry (AREA)
  • Traffic Control Systems (AREA)
  • Image Analysis (AREA)

Abstract

本公开涉及一种眼睛眨动识别方法及装置。该方法包括:对体动检测芯片输出的电压信号中满足预设的采样条件的信号进行采样,获取采样数据序列;从未遍历的采样点中选取任一采样点作为目标采样点;在目标采样点满足预设的眨眼采样点有效条件时,创建针对目标采样点的簇;将目标采样点、和与目标采样点之间满足聚类条件的采样点添加到所述簇中;重复执行从未遍历的采样点中选取任一采样点作为目标采样点的步骤,直到采样数据序列中的全部采样点已遍历为止;根据所建立的簇,识别眨眼参数。通过上述技术方案,可以减少数据的计算量,降低算法的复杂度,有效避免计算过程中可能出现的误差,准确率大幅提升。

The present disclosure relates to a method and device for eye blink recognition. The method includes: sampling a signal that satisfies a preset sampling condition among voltage signals output by a body motion detection chip to obtain a sampling data sequence; selecting any sampling point from untraversed sampling points as a target sampling point; When the point satisfies the preset effective condition of the blink sampling point, create a cluster for the target sampling point; add the target sampling point and the sampling points that meet the clustering conditions between the target sampling point and the target sampling point to the cluster; repeat execution never A step of selecting any sampling point among the traversed sampling points as a target sampling point until all the sampling points in the sampling data sequence have been traversed; identifying blink parameters according to the established clusters. Through the above technical solution, the calculation amount of data can be reduced, the complexity of the algorithm can be reduced, possible errors in the calculation process can be effectively avoided, and the accuracy rate is greatly improved.

Description

眼睛眨动识别方法及装置Eye blink recognition method and device

技术领域technical field

本公开涉及眼睛眨动检测领域,具体地,涉及一种眼睛眨动识别方法及装置。The present disclosure relates to the field of eye blink detection, and in particular, to a method and device for eye blink recognition.

背景技术Background technique

体动检测芯片是将一整套具有电磁波发射和接收功能的电路集成到一个芯片中,用于检测人体的动作,其优点是体积小、耗电低、使用方便。其基本原理是向外界发射电磁波并检测反射回来的电磁波,将检测结果以电压的方式输出。体动检测芯片工作时发射和接收电磁波是一个连续不断的过程,其输出的电压也是一个连续变化的过程。当未检测到人体动作时,输出电压稳定在一个变化极其微小的数值范围内;当检测到人体动作时,输出电压就会发生波动,波动的幅度对应于检测到的人体动作的幅度,波动的频率对应的是人体动作的频率。体动检测芯片输出的检测结果是一路电压连续变化的模拟信号,通过芯片管脚的形式向外界输出。The body motion detection chip integrates a whole set of circuits with electromagnetic wave transmitting and receiving functions into one chip, which is used to detect human body movements. Its advantages are small size, low power consumption, and easy to use. Its basic principle is to emit electromagnetic waves to the outside world and detect the reflected electromagnetic waves, and output the detection results in the form of voltage. When the body motion detection chip is working, transmitting and receiving electromagnetic waves is a continuous process, and its output voltage is also a process of continuous change. When no human motion is detected, the output voltage is stable within an extremely small range of values; when human motion is detected, the output voltage fluctuates, and the amplitude of the fluctuation corresponds to the amplitude of the detected human motion. Frequency corresponds to the frequency of human movement. The detection result output by the body motion detection chip is an analog signal with continuous voltage changes, which is output to the outside world through the chip pins.

现有技术中,根据体动检测芯片输出的电压信号识别和检测眼睛眨动的方法需要不停的计算点与点之间的距离,而且还要存储大量的数据。因此,在上述方法实施的过程中对硬件的内存和性能的要求都比较高,使得产品整体的成本上升。另外,长期大负荷的计算和存储的处理操作,对硬件的损耗也比较大,使得产品的故障率上升,使用寿命大大降低。In the prior art, the method of identifying and detecting eye blinking based on the voltage signal output by the body motion detection chip needs to continuously calculate the distance between points and store a large amount of data. Therefore, during the implementation of the above method, the requirements for the memory and performance of the hardware are relatively high, which increases the overall cost of the product. In addition, the long-term heavy-duty calculation and storage processing operations also cause a relatively large loss of hardware, which increases the failure rate of the product and greatly reduces the service life.

发明内容Contents of the invention

本公开的目的是提供一种高效准确的眼睛眨动识别方法及装置。The purpose of the present disclosure is to provide an efficient and accurate eye blink recognition method and device.

为了实现上述目的,根据本公开的第一方面,提供一种眼睛眨动识别方法,所述方法包括:对体动检测芯片输出的电压信号中满足预设的采样条件的信号进行采样,获取采样数据序列,其中,所述体动检测芯片用于检测眨眼动作;从未遍历的采样点中选取任一采样点作为目标采样点;在所述目标采样点满足预设的眨眼采样点有效条件时,创建针对所述目标采样点的簇;将所述目标采样点、和与所述目标采样点之间满足聚类条件的采样点添加到所述簇中,以完成所述簇的建立,其中,所建立的簇对应一次眨眼动作;重复执行所述从未遍历的采样点中选取任一采样点作为目标采样点的步骤,直到所述采样数据序列中的全部采样点已遍历为止;根据所建立的簇,识别眨眼参数。In order to achieve the above object, according to the first aspect of the present disclosure, a method for eye blink recognition is provided, the method includes: sampling the signal satisfying the preset sampling condition among the voltage signals output by the body motion detection chip, and obtaining the sampled A data sequence, wherein the body movement detection chip is used to detect eye blinking; any sampling point is selected as a target sampling point from untraversed sampling points; when the target sampling point satisfies the preset effective conditions for blinking sampling points , creating a cluster for the target sampling point; adding the target sampling point and the sampling points satisfying the clustering condition between the target sampling point and the target sampling point to the cluster to complete the establishment of the cluster, wherein , the established cluster corresponds to an eye blink; repeat the step of selecting any sampling point from the untraversed sampling points as the target sampling point until all the sampling points in the sampling data sequence have been traversed; according to the Created clusters, identifying blink parameters.

可选地,所述预设的采样条件为:电压的变化超过预设的电压变化阈值。Optionally, the preset sampling condition is: a voltage change exceeds a preset voltage change threshold.

可选地,所述预设的眨眼采样点有效条件包括:以所述目标采样点为圆心、以预设的半径参数为半径所形成的第一区域中,除所述目标采样点之外的采样点的个数不少于预设的领域密度阈值;或者在以所述目标采样点为圆心、以预设的半径参数为半径所形成的第一区域中,除所述目标采样点之外的采样点的个数少于预设的领域密度阈值的情况下,所述目标采样点的电压值小于距其最近的峰值并大于最大空闲时峰值,且所述第一区域中除所述目标采样点之外的采样点的电压值均小于所述峰值并大于所述最大空闲时峰值,其中,所述最大空闲时峰值为相邻两簇之间的非簇成员中的最大值。Optionally, the preset valid condition of the eye blink sampling point includes: in the first area formed with the target sampling point as the center and a preset radius parameter as the radius, all but the target sampling point The number of sampling points is not less than the preset domain density threshold; or in the first area formed with the target sampling point as the center and the preset radius parameter as the radius, except for the target sampling point When the number of sampling points is less than the preset domain density threshold, the voltage value of the target sampling point is less than the nearest peak value and greater than the maximum idle peak value, and the first area except the target The voltage values of sampling points other than the sampling point are all smaller than the peak value and larger than the maximum idle peak value, wherein the maximum idle peak value is the maximum value among non-cluster members between two adjacent clusters.

可选地,所述方法还包括:在所述目标采样点不满足所述预设的眨眼采样点有效条件时,将所述目标采样点识别为是噪声点,并将所述第一区域中、未包含在其他簇中的采样点识别为是噪声点;去除所述噪声点。Optionally, the method further includes: identifying the target sampling point as a noise point when the target sampling point does not satisfy the preset valid condition of eye blink sampling points, and Sampling points not included in other clusters are identified as noise points; and the noise points are removed.

可选地,通过以下方式来确定与所述目标采样点之间满足聚类条件的采样点:将以所述目标采样点为圆心、以预设的半径参数为半径所形成的第一区域中、除所述目标采样点之外的采样点添加到候选采样点集合中;重复执行遍历所述候选采样点集合中的采样点,并在以所遍历的采样点为圆心、以预设的半径参数为半径所形成的第二区域中,除所遍历的采样点之外的采样点的个数不少于预设的领域密度阈值时,将所述第二区域中除所遍历的采样点之外的采样点添加到所述候选采样点集合中的步骤,直到所述候选采样点集合内的采样点全部遍历完成为止;将所述候选采样点集合中、未包含在其他簇中的采样点确定为是与所述目标采样点之间满足聚类条件的采样点。Optionally, the sampling points satisfying the clustering condition between the target sampling point and the target sampling point are determined in the following manner: in the first area formed with the target sampling point as the center and a preset radius parameter as the radius 1. Add sampling points other than the target sampling point to the set of candidate sampling points; repeatedly execute the traversal of the sampling points in the set of candidate sampling points, and take the traversed sampling point as the center and the preset radius In the second area formed by the parameter radius, if the number of sampling points other than the traversed sampling points is not less than the preset domain density threshold, the second area except the traversed sampling points The step of adding sampling points outside the set to the set of candidate sampling points until all the sampling points in the set of candidate sampling points have been traversed; the sampling points not included in other clusters in the set of candidate sampling points It is determined to be a sampling point that satisfies the clustering condition with the target sampling point.

可选地,所述根据所建立的簇,识别眨眼参数,包括以下中的至少一者:将所建立的簇的总数识别为是眨眼次数;针对每个簇,将簇成员的最大时间差值识别为是单次眨眼时间;针对相邻两个簇,将该相邻的两个簇的相邻时间之差识别为是眨眼时间间隔;将所述眨眼时间间隔之和与所述电压信号的总时间之间的比值识别为是眨眼占空比。Optionally, the identifying blink parameters according to the established clusters includes at least one of the following: identifying the total number of established clusters as the number of eye blinks; for each cluster, determining the maximum time difference of cluster members It is identified as a single blink time; for two adjacent clusters, the difference between the adjacent time of the two adjacent clusters is identified as a blink time interval; the sum of the blink time intervals and the voltage signal The ratio between the total times is identified as the blink duty cycle.

可选地,在所述根据所建立的簇,识别眨眼参数的步骤之前,所述方法还包括:删除每个簇中、电压值小于最大空闲时峰值的成员,其中,所述最大空闲时峰值为相邻两簇之间的非簇成员中的最大值。Optionally, before the step of identifying blinking parameters according to the established clusters, the method further includes: deleting members in each cluster whose voltage value is less than a maximum idle peak value, wherein the maximum idle peak value is the maximum value among non-cluster members between two adjacent clusters.

根据本公开的第二方面,提供一种眼睛眨动识别装置,所述装置包括:采样模块,用于对体动检测芯片输出的电压信号中满足预设的采样条件的信号进行采样,获取采样数据序列,其中,所述体动检测芯片用于检测眨眼动作;目标采样点选取模块,用于从所述采样模块获取的、未遍历的采样点中选取任一采样点作为目标采样点;簇创建模块,用于在所述目标采样点选取模块选取的所述目标采样点满足预设的眨眼采样点有效条件时,创建针对所述目标采样点的簇;簇建立模块,用于将所述目标采样点选取模块选取的所述目标采样点、和与所述目标采样点之间满足聚类条件的采样点添加到所述簇创建模块创建的所述簇中,以完成所述簇的建立,其中,所建立的簇对应一次眨眼动作;所述簇建立模块还用于重新触发所述目标采样点选取模块执行从所述采样模块获取的、未遍历的采样点中选取任一采样点作为目标采样点,直到所述采样数据序列中的全部采样点已遍历为止;参数识别模块,用于根据所述簇建立模块所建立的簇,识别眨眼参数。According to the second aspect of the present disclosure, there is provided an eye blink recognition device, the device includes: a sampling module, configured to sample a signal that satisfies a preset sampling condition among the voltage signals output by a body motion detection chip, and obtain the sampled Data sequence, wherein, the body movement detection chip is used to detect eye blinking; the target sampling point selection module is used to select any sampling point from the sampling points obtained by the sampling module and not traversed as the target sampling point; cluster Create a module for creating a cluster for the target sampling point when the target sampling point selected by the target sampling point selection module satisfies the preset effective condition of the eye blink sampling point; a cluster establishment module for the said target sampling point The target sampling point selected by the target sampling point selection module and the sampling points satisfying the clustering condition between the target sampling point and the target sampling point are added to the cluster created by the cluster creation module to complete the establishment of the cluster , wherein the established cluster corresponds to an eye blinking action; the cluster establishment module is also used to re-trigger the target sampling point selection module to select any sampling point from the untraversed sampling points acquired by the sampling module as The target sampling point, until all the sampling points in the sampling data sequence have been traversed; the parameter identification module is configured to identify blink parameters according to the clusters established by the cluster establishment module.

可选地,所述预设的采样条件为:电压的变化超过预设的电压变化阈值。Optionally, the preset sampling condition is: a voltage change exceeds a preset voltage change threshold.

可选地,所述预设的眨眼采样点有效条件包括:以所述目标采样点为圆心、以预设的半径参数为半径所形成的第一区域中,除所述目标采样点之外的采样点的个数不少于预设的领域密度阈值;或者在以所述目标采样点为圆心、以预设的半径参数为半径所形成的第一区域中,除所述目标采样点之外的采样点的个数少于预设的领域密度阈值的情况下,所述目标采样点的电压值小于距其最近的峰值并大于最大空闲时峰值,且所述第一区域中除所述目标采样点之外的采样点的电压值均小于所述峰值并大于所述最大空闲时峰值,其中,所述最大空闲时峰值为相邻两簇之间的非簇成员中的最大值。Optionally, the preset valid condition of the eye blink sampling point includes: in the first area formed with the target sampling point as the center and a preset radius parameter as the radius, all but the target sampling point The number of sampling points is not less than the preset domain density threshold; or in the first area formed with the target sampling point as the center and the preset radius parameter as the radius, except for the target sampling point When the number of sampling points is less than the preset domain density threshold, the voltage value of the target sampling point is less than the nearest peak value and greater than the maximum idle peak value, and the first area except the target The voltage values of sampling points other than the sampling point are all smaller than the peak value and larger than the maximum idle peak value, wherein the maximum idle peak value is the maximum value among non-cluster members between two adjacent clusters.

可选地,所述装置还包括:噪声点识别模块,用于在所述目标采样点选取模块选取的所述目标采样点不满足所述预设的眨眼采样点有效条件时,将所述目标采样点识别为是噪声点,并将所述第一区域中、未包含在其他簇中的采样点识别为是噪声点;噪声点去除模块,用于去除所述噪声点识别模块识别出的所述噪声点。Optionally, the device further includes: a noise point identification module, configured to select the target sampling point when the target sampling point selected by the target sampling point selection module does not meet the preset valid condition of the eye blink sampling point. The sampling point is identified as a noise point, and the sampling points in the first region that are not included in other clusters are identified as noise points; the noise point removal module is used to remove all the noise points identified by the noise point identification module noise point.

可选地,所述簇建立模块包括:候选采样点集合建立子模块,用于将以所述目标采样点选取模块选取的所述目标采样点为圆心、以预设的半径参数为半径所形成的第一区域中、除所述目标采样点之外的采样点添加到候选采样点集合中;候选采样点遍历子模块,用于遍历所述候选采样点集合中的采样点,并在以所遍历的采样点为圆心、以预设的半径参数为半径所形成的第二区域中,除所遍历的采样点之外的采样点的个数不少于预设的领域密度阈值时,将所述第二区域中除所遍历的采样点之外的采样点添加到所述候选采样点集合中,直到所述候选采样点集合内的采样点全部遍历完成为止;簇建立子模块,用于将所述候选采样点集合中、未包含在其他簇中的采样点确定为是与所述目标采样点之间满足聚类条件的采样点。Optionally, the cluster establishment module includes: a candidate sampling point set establishment submodule, which is used to form the target sampling point selected by the target sampling point selection module as the center of the circle and the preset radius parameter as the radius. The sampling points in the first region except the target sampling point are added to the set of candidate sampling points; the candidate sampling point traversal submodule is used to traverse the sampling points in the set of candidate sampling points, and in the set In the second area formed by the traversed sampling point as the center and the preset radius parameter as the radius, when the number of sampling points other than the traversed sampling point is not less than the preset domain density threshold, all the In the second area, sampling points other than the traversed sampling points are added to the set of candidate sampling points until all the sampling points in the set of candidate sampling points have been traversed; the cluster building submodule is used to In the set of candidate sampling points, the sampling points not included in other clusters are determined to be the sampling points satisfying the clustering condition with the target sampling point.

可选地,所述参数识别模块,包括以下中的至少一者:眨眼次数识别子模块,用于将所述簇建立模块所建立的簇的总数识别为是眨眼次数;单次眨眼时间识别子模块,用于针对所述簇建立模块所建立的每个簇,将簇成员的最大时间差值识别为是单次眨眼时间;眨眼时间间隔识别子模块,用于针对所述簇建立模块所建立的相邻两个簇,将该相邻的两个簇的相邻时间之差识别为是眨眼时间间隔;眨眼占空比识别子模块,用于将所述眨眼时间间隔识别子模块识别出的所述眨眼时间间隔之和与所述获取模块中获取的所述电压信号的总时间之间的比值识别为是眨眼占空比。Optionally, the parameter identification module includes at least one of the following: an eye blink identification submodule, configured to identify the total number of clusters established by the cluster establishment module as the number of eye blinks; a single blink time identification submodule A module, for each cluster established by the cluster establishment module, identifying the maximum time difference of the cluster members as a single blink time; a blink interval identification submodule, used for the establishment of the cluster establishment module Two adjacent clusters, the difference between the adjacent time of the two adjacent clusters is identified as the blink time interval; the blink duty cycle identification submodule is used to identify the blink interval identification submodule The ratio between the sum of the blink time intervals and the total time of the voltage signal acquired in the acquisition module is identified as the blink duty cycle.

可选地,所述装置还包括:删除模块,用于在所述参数识别模块根据所述簇建立模块所建立的簇,识别眨眼参数之前,删除每个簇中、电压值小于最大空闲时峰值的成员,其中,所述最大空闲时峰值为相邻两簇之间的非簇成员中的最大值。Optionally, the device further includes: a deletion module, configured to delete parameters in each cluster whose voltage value is less than the maximum idle time peak members, wherein the maximum idle peak value is the maximum value among non-cluster members between two adjacent clusters.

通过上述技术方案,可以实现对属于一次眨眼动作的采样点的识别与聚类,根据聚类结果,能够准确地确定本次眨眼动作的开始与结束,从而准确完成眨眼参数的识别。在这一过程中,不需要像现有的眨眼识别算法中实时计算采样点之间的距离,更多的是进行判断、标记等操作,由此可以极大地减少数据的计算量,降低算法的复杂度,有效避免计算过程中可能出现的误差,准确率大幅提升。Through the above technical solution, the identification and clustering of the sampling points belonging to a blink can be realized, and the start and end of the blink can be accurately determined according to the clustering results, thereby accurately completing the identification of the blink parameters. In this process, it is not necessary to calculate the distance between sampling points in real time as in the existing blink recognition algorithm, but more to perform operations such as judgment and marking, which can greatly reduce the amount of data calculation and reduce the cost of the algorithm. The complexity can effectively avoid possible errors in the calculation process, and the accuracy rate is greatly improved.

本公开的其他特征和优点将在随后的具体实施方式部分予以详细说明。Other features and advantages of the present disclosure will be described in detail in the detailed description that follows.

附图说明Description of drawings

附图是用来提供对本公开的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本公开,但并不构成对本公开的限制。在附图中:The accompanying drawings are used to provide a further understanding of the present disclosure, and constitute a part of the description, together with the following specific embodiments, are used to explain the present disclosure, but do not constitute a limitation to the present disclosure. In the attached picture:

图1是根据本公开的一种实施方式提供的眼睛眨动识别方法的流程图;FIG. 1 is a flow chart of an eye blink recognition method provided according to an embodiment of the present disclosure;

图2是体动检测芯片检测的眨眼电压模拟信号的示意图;Fig. 2 is the schematic diagram of the blink voltage analog signal detected by the body motion detection chip;

图3是根据体动检测芯片检测的眨眼电压模拟信号采集的离散数据序列示意图;Fig. 3 is a schematic diagram of the discrete data sequence collected according to the blink voltage analog signal detected by the body movement detection chip;

图4是根据本公开的另一种实施方式提供的眼睛眨动识别方法中确定与目标采样点之间满足聚类条件的采样点的步骤的流程图;Fig. 4 is a flow chart of the steps of determining the sampling points satisfying the clustering condition between the target sampling points and the target sampling points in the eye blink recognition method provided according to another embodiment of the present disclosure;

图5是根据本公开的一种实施方式提供的眼睛眨动识别装置的框图;Fig. 5 is a block diagram of an eye blink recognition device provided according to an embodiment of the present disclosure;

图6是根据本公开的另一种实施方式提供的眼睛眨动识别装置中簇建立模块的框图。Fig. 6 is a block diagram of a cluster building module in an eye blink recognition device according to another embodiment of the present disclosure.

具体实施方式Detailed ways

以下结合附图对本公开的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本公开,并不用于限制本公开。Specific embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to illustrate and explain the present disclosure, and are not intended to limit the present disclosure.

根据本公开的第一方面,提供一种眼睛眨动识别方法。图1所示,为根据本公开的一种实施方式提供的眼睛眨动识别方法的流程图。如图1所示,该方法包括:According to a first aspect of the present disclosure, an eye blink recognition method is provided. FIG. 1 is a flow chart of an eye blink recognition method according to an embodiment of the present disclosure. As shown in Figure 1, the method includes:

在步骤S11中,对体动检测芯片输出的电压信号中满足预设的采样条件的信号进行采样,获取采样数据序列,其中,所述体动检测芯片用于检测眨眼动作,其向人眼位置发射电磁波,并检测经人眼反射回来的电磁波,最终将检测结果以电压的方式输出。In step S11, among the voltage signals output by the body motion detection chip, the signals that meet the preset sampling conditions are sampled to obtain a sampled data sequence, wherein the body motion detection chip is used to detect eye blinking, and the human eye position It emits electromagnetic waves and detects the electromagnetic waves reflected by the human eye, and finally outputs the detection results in the form of voltage.

图2所示,为体动检测芯片输出的电压信号的示意图。如图2所示,该电压信号是一个连续变化的模拟信号。当出现眨眼动作时,电压会变化到较高的电压水平,当未出现眨眼动作时,电压会维持在较低的电压水平。另外,当从未眨眼到眨眼开始期间,电压会突然上升,当眨眼结束时,电压会突然下降,并在进行下次眨眼动作之前,电压变化量不大。因此,在本公开中,为了避免非眨眼动作数据对算法的影响,并且降低后续的数据处理量,在进行采样时,对体动检测芯片输出的电压信号中满足预设的采样条件的信号进行采样。其中,该预设的采样条件为:电压的变化超过预设的电压变化阈值。根据这一条件进行采样,可以获取到可能对应眨眼动作的采样点,如图3所示。其中,横坐标为时间t,纵坐标为采样点对应的电压v。这些采样点形成采样数据序列。FIG. 2 is a schematic diagram of the voltage signal output by the body motion detection chip. As shown in Figure 2, the voltage signal is a continuously changing analog signal. When blinking occurs, the voltage changes to a higher voltage level, and when no blinking occurs, the voltage is maintained at a lower voltage level. In addition, the voltage suddenly rises from no blinking to the start of the blink, and suddenly drops when the blink ends, and the voltage does not change much until the next blink. Therefore, in this disclosure, in order to avoid the impact of non-blinking motion data on the algorithm and reduce the amount of subsequent data processing, when sampling, the voltage signals output by the body motion detection chip satisfy the preset sampling conditions. sampling. Wherein, the preset sampling condition is: a voltage change exceeds a preset voltage change threshold. Sampling is performed according to this condition, and sampling points that may correspond to eye blinking actions can be obtained, as shown in FIG. 3 . Wherein, the abscissa is the time t, and the ordinate is the voltage v corresponding to the sampling point. These sample points form a sequence of sampled data.

在步骤S12中,从未遍历的采样点中选取任一采样点作为目标采样点。示例地,在初始阶段,由于全部采样点均未遍历,因此,可以从这些采样点中随机选取一个采样点作为目标采样点。在之后的每一循环轮次中,即下文中所提到的在步骤S14之后,判定采样数据序列中仍存在未遍历的采样点而重新返回该步骤S12时,同样也是从未遍历的采样点中随机选取一个采样点作为新的目标采样点。In step S12, any sampling point is selected from the untraversed sampling points as the target sampling point. For example, in the initial stage, since none of the sampling points has been traversed, a sampling point may be randomly selected from these sampling points as the target sampling point. In each subsequent round of the cycle, that is, after step S14 mentioned below, it is determined that there are still untraversed sampling points in the sampled data sequence and when returning to the step S12, it is also a never-traversed sampling point Randomly select a sampling point as the new target sampling point.

在步骤S13中,在目标采样点满足预设的眨眼采样点有效条件时,创建针对该目标采样点的簇。In step S13, when the target sampling point satisfies the preset validity condition of the blinking sampling point, a cluster for the target sampling point is created.

示例地,所述预设的眨眼采样点有效条件可以包括以下两种。第一种:以目标采样点为圆心、以预设的半径参数为半径所形成的第一区域中,除该目标采样点之外的采样点的个数不少于预设的领域密度阈值。Exemplarily, the preset valid condition of the eye blink sampling point may include the following two types. The first type: In the first area formed with the target sampling point as the center and the preset radius parameter as the radius, the number of sampling points other than the target sampling point is not less than the preset domain density threshold.

其中,该预设的半径参数是根据大量的眨眼过程的实验数据的处理结果进行设置的。示例地,通过对实验数据进行分析,得出单次眨眼时间的时长,根据该时长设置半径参数。例如,可以按照以下方式来设置该半径参数:以目标采样点为圆心、该半径参数所形成的区域所对应的时长(即,该区域对应的最大时间与最小时间之间的时间差)小于该单次眨眼时间的时长。Wherein, the preset radius parameter is set according to the processing results of a large amount of experimental data of blinking process. For example, the duration of a single blink is obtained by analyzing the experimental data, and the radius parameter is set according to the duration. For example, the radius parameter can be set in the following manner: with the target sampling point as the center, the duration corresponding to the area formed by the radius parameter (that is, the time difference between the maximum time and the minimum time corresponding to the area) is smaller than the single The duration of each blink.

此外,由于在步骤S11中为了避免非眨眼动作数据对算法的影响,并且降低后续的数据处理量,在进行采样时,对体动检测芯片输出的电压信号中满足预设的采样条件的信号进行采样,使得对应于眨眼动作的采样点密度(即,采样点的密集程度)明显大于对应于非眨眼动作的采样点密度。因此,领域密度阈值可以根据大量实验数据分析得出的属于单次眨眼动作的采样点个数进行设置。当第一区域中除目标采样点之外的采样点的个数不少于该领域密度阈值时,表示该区域中采样点较为密集,因此,当前所选取的目标采样点很可能是对应于眨眼动作的采样点,此时,可以为该目标采样点创建簇,并通过后续聚类操作完成簇的建立。In addition, in order to avoid the impact of non-blinking motion data on the algorithm in step S11 and reduce the amount of subsequent data processing, when sampling, the voltage signals output by the body motion detection chip satisfy the preset sampling conditions. Sampling, so that the density of sampling points corresponding to the blinking action (that is, the density of the sampling points) is significantly greater than the density of sampling points corresponding to the non-blinking action. Therefore, the field density threshold can be set according to the number of sampling points belonging to a single blink action obtained from the analysis of a large amount of experimental data. When the number of sampling points other than the target sampling point in the first area is not less than the field density threshold, it means that the sampling points in this area are relatively dense, so the currently selected target sampling point is likely to correspond to the blinking The sampling point of the action. At this time, a cluster can be created for the target sampling point, and the establishment of the cluster can be completed through subsequent clustering operations.

如图3所示,假设目标采样点为P1,预设的半径参数为r,预设的领域密度阈值为4。以P1为圆心、r为半径画圆所形成的第一区域如圆圈O1所示。O1中所包含的除目标采样点P1之外的采样点的个数为4,满足不少于该预设的领域密度阈值的条件,因此,确定目标采样点P1满足上述有效条件,此时,可以建立针对P1的簇。As shown in FIG. 3 , it is assumed that the target sampling point is P1, the preset radius parameter is r, and the preset domain density threshold is 4. The first area formed by drawing a circle with P1 as the center and r as the radius is shown as circle O1. The number of sampling points included in O1 other than the target sampling point P1 is 4, which satisfies the condition not less than the preset domain density threshold. Therefore, it is determined that the target sampling point P1 satisfies the above effective conditions. At this time, Clusters can be built for P1.

第二种:在以目标采样点为圆心、以预设的半径参数为半径所形成的第一区域中,除该目标采样点之外的采样点的个数少于预设的领域密度阈值的情况下,该目标采样点的电压值小于距其最近的峰值并大于最大空闲时峰值,且该第一区域中除该目标采样点之外的采样点的电压值均小于所述峰值并大于所述最大空闲时峰值。其中,所述最大空闲时峰值为相邻两簇之间的非簇成员中的最大值。相邻两簇是指两个簇之间的相隔时间不超过预设的簇间相隔时间阈值。该预设的簇间相隔时间阈值可以基于实验数据来确定,例如,基于实验中相邻两次眨眼之间的时间间隔来确定。当创建的两个簇之间的时间间隔超过了该簇间相隔时间阈值,则表示这两个簇之间可能会存在其他的簇,此时,这两个簇不是相邻两簇。在簇建立之前,该最大空闲时峰值初始为0。此外,在创建簇的过程中,可以根据所建立的簇,来不断更新该最大空闲时峰值。The second type: in the first area formed with the target sampling point as the center and the preset radius parameter as the radius, the number of sampling points other than the target sampling point is less than the preset domain density threshold In this case, the voltage value of the target sampling point is less than the nearest peak value and greater than the maximum idle peak value, and the voltage values of the sampling points in the first area except the target sampling point are all less than the peak value and greater than the specified peak value. The maximum peak idle time is described. Wherein, the maximum idle peak value is the maximum value among non-cluster members between two adjacent clusters. Two adjacent clusters mean that the time interval between two clusters does not exceed the preset inter-cluster time threshold. The preset inter-cluster interval time threshold may be determined based on experimental data, for example, based on the time interval between two adjacent blinks in the experiment. When the time interval between the two created clusters exceeds the inter-cluster interval time threshold, it indicates that there may be other clusters between the two clusters, and at this time, the two clusters are not two adjacent clusters. This maximum peak idle time is initially 0 before the cluster is established. In addition, during the process of creating a cluster, the maximum idle time peak value may be continuously updated according to the established cluster.

其中,在一次完整的眨眼过程中,体动检测芯片输出的电压波形为从较低水平的电压上升到峰值,再下降到该较低水平的电压的波形。当第一区域中除目标采样点之外的采样点的个数少于预设的领域密度阈值、且目标采样点的电压值小于距其最近的峰值并大于最大空闲时峰值,且该第一区域中除该目标采样点之外的采样点的电压值均小于所述峰值并大于所述最大空闲时峰值时,表示该目标采样点的位置可能正处于电压上升或是下降的过程中。因此,当前所选取的目标采样点也可能是对应于眨眼动作的采样点,此时,可以为该目标采样点创建簇,并通过后续聚类操作完成簇的建立。Wherein, during a complete blinking process, the voltage waveform output by the body motion detection chip is a waveform that rises from a lower level voltage to a peak value, and then drops to the lower level voltage. When the number of sampling points other than the target sampling point in the first area is less than the preset domain density threshold, and the voltage value of the target sampling point is smaller than the nearest peak value and greater than the maximum idle peak value, and the first When the voltage values of the sampling points in the area except the target sampling point are less than the peak value and greater than the maximum idle peak value, it indicates that the position of the target sampling point may be in the process of voltage rising or falling. Therefore, the currently selected target sampling point may also be a sampling point corresponding to the blinking action. At this time, a cluster can be created for the target sampling point, and the establishment of the cluster can be completed through subsequent clustering operations.

如图3所示,假设目标采样点为P2,预设的半径参数为r,预设的领域密度阈值为4。以P2为圆心、r为半径画圆所形成的第一区域如圆圈O2所示。O2中所包含的除目标采样点P2之外的采样点的个数为2,少于该预设的领域密度阈值4。M点所对应的电压为与目标采样点P2距离最近的峰值,且O2中除目标采样点P2之外的每个采样点的电压值也都小于该峰值,此时,假设最大空闲时峰值为初始值0,O2中的目标采样点P2、以及除目标采样点P2之外的每个采样点的电压值都大于该最大空闲时峰值,因此,确定目标采样点P2满足上述有效条件,此时,可以建立针对P2的簇。As shown in Figure 3, suppose the target sampling point is P2, the preset radius parameter is r, and the preset domain density threshold is 4. The first area formed by drawing a circle with P2 as the center and r as the radius is shown as circle O2. The number of sampling points included in O2 except the target sampling point P2 is 2, which is less than the preset field density threshold of 4. The voltage corresponding to point M is the peak value closest to the target sampling point P2, and the voltage value of each sampling point in O2 except the target sampling point P2 is also smaller than the peak value. At this time, it is assumed that the maximum idle peak value is The initial value is 0, the target sampling point P2 in O2, and the voltage value of each sampling point except the target sampling point P2 are greater than the maximum idle peak value. Therefore, it is determined that the target sampling point P2 satisfies the above valid conditions. At this time , a cluster for P2 can be established.

在创建了针对目标采样点的簇之后,接下来,要判断在该目标采样点附近的其他采样点是否能够与目标采样点进行聚类,合并到一个簇中。即,如图1所示,在步骤S14中,将目标采样点、和与目标采样点之间满足聚类条件的采样点添加到所述簇中,以完成所述簇的建立,其中,所建立的簇对应一次眨眼动作。After the cluster for the target sampling point is created, next, it is judged whether other sampling points near the target sampling point can be clustered with the target sampling point and merged into one cluster. That is, as shown in FIG. 1, in step S14, the target sampling point and the sampling points satisfying the clustering condition between the target sampling point and the target sampling point are added to the cluster to complete the establishment of the cluster, wherein the The created cluster corresponds to a blink action.

在确定与目标采样点之间满足聚类条件的采样点时,可以按照如图4所示的方式来确定。首先,在步骤S41中,将以目标采样点为圆心、以预设的半径参数为半径所形成的第一区域中、除该目标采样点之外的采样点添加到候选采样点集合中。When determining the sampling point satisfying the clustering condition between the target sampling point and the target sampling point, it can be determined in the manner shown in FIG. 4 . First, in step S41, the sampling points other than the target sampling point in the first area formed with the target sampling point as the center and the preset radius parameter as the radius are added to the set of candidate sampling points.

如图3所示,假设目标采样点为P2,在区域O2中除目标采样点P2之外的采样点全部添加到候选采样点集合S中,此时集合S中包括两个采样点,分别为q1和q2。As shown in Figure 3, assuming that the target sampling point is P2, all the sampling points in area O2 except the target sampling point P2 are added to the candidate sampling point set S. At this time, the set S includes two sampling points, respectively q1 and q2.

在步骤S42中,遍历所述候选采样点集合中的采样点,并在以所遍历的采样点为圆心、以预设的半径参数为半径所形成的第二区域中,除所遍历的采样点之外的采样点的个数不少于预设的领域密度阈值时,将所述第二区域中除所遍历的采样点之外的采样点添加到所述候选采样点集合中。其中,此处提及的第二区域中预设的半径参数和领域密度阈值与上文描述的第一区域中预设的半径参数和领域密度阈值相同。In step S42, traverse the sampling points in the set of candidate sampling points, and divide the traversed sampling points in the second area formed with the traversed sampling points as the center and the preset radius parameter as the radius When the number of other sampling points is not less than the preset domain density threshold, the sampling points in the second area other than the traversed sampling points are added to the set of candidate sampling points. Wherein, the preset radius parameter and domain density threshold in the second area mentioned here are the same as the preset radius parameter and domain density threshold in the first area described above.

如图3所示,假设遍历到的候选采样点集合S中的采样点为q1,则判断以q1点为圆心、r为半径所形成的圆O4中,除q1点之外的采样点的个数是否不少于预设的领域密度阈值。如图3所示,O4中除q1点之外的采样点的个数为4,不少于预设的领域密度阈值4,因此,确定这些采样点满足聚类条件。此时,将O4中除q1点之外的采样点添加到候选采样点集合S中。值得说明的是,已包含在候选采样点集合S中的采样点就不再添加。As shown in Figure 3, assuming that the sampling point in the traversed set of candidate sampling points S is q1, then determine the number of sampling points other than q1 in the circle O4 formed with q1 as the center and r as the radius Whether the number is not less than the preset domain density threshold. As shown in Figure 3, the number of sampling points in O4 other than q1 is 4, which is not less than the preset domain density threshold of 4. Therefore, it is determined that these sampling points meet the clustering conditions. At this time, add the sampling points in O4 except the q1 point to the set S of candidate sampling points. It is worth noting that the sampling points already included in the candidate sampling point set S are not added any more.

在步骤S43中,判断候选采样点集合内的采样点是否全部遍历完成,在候选采样点集合内的采样点全部遍历完成的情况下,转入步骤S44,否则,在候选采样点集合内的采样点没有全部遍历完成的情况下,转入步骤S42,继续进行遍历,直到候选采样点集合中不再有新成员加入,且候选采样点集合内的全部采样点均已遍历为止。In step S43, it is judged whether all the sampling points in the candidate sampling point set have been traversed, and if all the sampling points in the candidate sampling point set have been traversed, go to step S44; If all the points have not been traversed, go to step S42 and continue to traverse until no new members are added to the candidate sampling point set, and all the sampling points in the candidate sampling point set have been traversed.

在步骤S44中,将所述候选采样点集合中、未包含在其他簇中的采样点确定为是与目标采样点之间满足聚类条件的采样点。In step S44, the sampling points in the set of candidate sampling points that are not included in other clusters are determined as the sampling points satisfying the clustering condition with the target sampling point.

在确定出与目标采样点之间满足聚类条件的采样点后,将这些采样点添加到针对该目标采样点所创建的簇中,完成该簇的建立。After the sampling points satisfying the clustering condition between the target sampling point and the target sampling point are determined, these sampling points are added to the cluster created for the target sampling point to complete the establishment of the cluster.

在上述技术方案中,根据预设的领域密度阈值,可以将属于一次眨眼动作中的采样点聚合到同一簇中。在聚类过程中,主要进行的都是判断、标记这些操作,不需要实时计算各采样点之间的距离,因此,这种基于密度的聚合方法可以在确保采样点数据聚合的准确性的同时,还可以降低数据处理的复杂度,提高数据处理效率,从而提高眨眼参数识别的效率和准确率。In the above technical solution, according to the preset field density threshold, the sampling points belonging to a blink action can be aggregated into the same cluster. In the clustering process, the main operations are to judge and mark these operations, and there is no need to calculate the distance between each sampling point in real time. Therefore, this density-based aggregation method can ensure the accuracy of data aggregation of sampling points at the same time , can also reduce the complexity of data processing and improve the efficiency of data processing, thereby improving the efficiency and accuracy of blink parameter identification.

在针对步骤S12中选取的目标采样点的簇建立完成之后,可以判断采样数据序列中是否仍存在未遍历的采样点。在采样数据序列中仍存在未遍历的采样点时,返回步骤S12,重新执行所述从未遍历的采样点中选取任一采样点作为目标采样点以及后续操作,直到所述采样数据序列中的全部采样点已遍历为止。After the clusters for the target sampling points selected in step S12 are established, it may be determined whether there are still untraversed sampling points in the sampling data sequence. When there are still untraversed sampling points in the sampling data sequence, return to step S12, and re-execute the selection of any sampling point from the untraversed sampling points as the target sampling point and subsequent operations until the sampling point in the sampling data sequence All sampling points have been traversed.

在步骤S15中,根据所建立的簇,识别眨眼参数。In step S15, blink parameters are identified based on the established clusters.

在本公开中,眨眼参数可以包括以下至少一项:眨眼次数;单次眨眼时间;眨眼时间间隔;眨眼占空比。相应地,所述根据所建立的簇,识别眨眼参数,可以包括以下中的至少一者:In the present disclosure, the blink parameters may include at least one of the following: number of blinks; single blink time; blink time interval; blink duty cycle. Correspondingly, said identifying blink parameters according to the established clusters may include at least one of the following:

1)将所建立的簇的总数识别为是眨眼次数。如上文所述,每建立一个簇,该簇即对应一次眨眼动作,因此,所建立的簇的总数即为眨眼次数。1) Identify the total number of clusters created as the number of eye blinks. As mentioned above, each time a cluster is established, the cluster corresponds to an eye blink action, therefore, the total number of established clusters is the number of eye blinks.

2)针对每个簇,将簇成员的最大时间差值识别为是单次眨眼时间。其中,最大时间差值为该簇中时间最早的采样点与时间最晚的采样点之间的时间间隔,如图3中所示,以目标采样点P1所创建的簇为例,该簇中最早的采样点对应时间t1,最晚的采样点对应时间t1’,则该簇所对应的眨眼动作中,单次眨眼时间T1=t1’-t1。又例如,以目标采样点P2所创建的簇为例,该簇中最早的采样点对应时间t2,最晚的采样点对应时间t2’,则该簇所对应的眨眼动作中,单次眨眼时间T2=t2’-t2。其中,T1和T2可能相同,也可能不同。2) For each cluster, identify the maximum time difference of the cluster members as a single blink time. Among them, the maximum time difference is the time interval between the earliest sampling point and the latest sampling point in the cluster, as shown in Figure 3, taking the cluster created by the target sampling point P1 as an example, in this cluster The earliest sampling point corresponds to time t1 , and the latest sampling point corresponds to time t1 ′, so in the blinking action corresponding to this cluster, the single blinking time is T1=t1 ′−t1 . For another example, taking the cluster created by the target sampling point P2 as an example, the earliest sampling point in the cluster corresponds to time t2, and the latest sampling point corresponds to time t2', then in the blink action corresponding to the cluster, the single blink time T2=t2'-t2. Wherein, T1 and T2 may be the same or different.

3)针对相邻两个簇,将该相邻的两个簇的相邻时间之差识别为是眨眼时间间隔,其中,相邻的两个簇的相邻时间是指前一个簇中时间最晚的采样点与后一个簇中时间最早的采样点之间的时间间隔。如图3中所示,假设P1点对应的簇与P2点对应的簇是相邻的两个簇,则t1’与t2之间的时间间隔即表示眨眼时间间隔。其中,每两次眨眼动作之间的眨眼时间间隔可能相同,也可能不同。3) For two adjacent clusters, the difference between the adjacent time of the two adjacent clusters is recognized as the blink time interval, wherein the adjacent time of the two adjacent clusters refers to the time difference between the two adjacent clusters in the previous cluster. The time interval between the later sample point and the earliest sample point in the next cluster. As shown in Figure 3, assuming that the cluster corresponding to point P1 and the cluster corresponding to point P2 are two adjacent clusters, the time interval between t1' and t2 represents the blink time interval. Wherein, the blink time interval between every two blink actions may be the same or different.

4)将得到的眨眼时间间隔之和与电压信号的总时间之间的比值识别为是眨眼占空比。4) Identify the ratio between the obtained sum of blink time intervals and the total time of the voltage signal as the blink duty cycle.

通过上述技术方案,可以实现对属于一次眨眼动作的采样点的识别与聚类,根据聚类结果,能够准确地确定本次眨眼动作的开始与结束,从而准确完成眨眼参数的识别。在这一过程中,不需要像现有的眨眼识别算法中实时计算采样点之间的距离,更多的是进行判断、标记等操作,由此可以极大地减少数据的计算量,降低算法的复杂度,有效避免计算过程中可能出现的误差,准确率大幅提升。Through the above technical solution, the identification and clustering of the sampling points belonging to a blink can be realized, and the start and end of the blink can be accurately determined according to the clustering results, thereby accurately completing the identification of the blink parameters. In this process, it is not necessary to calculate the distance between sampling points in real time as in the existing blink recognition algorithm, but more to perform operations such as judgment and marking, which can greatly reduce the amount of data calculation and reduce the cost of the algorithm. The complexity can effectively avoid possible errors in the calculation process, and the accuracy rate is greatly improved.

可选地,所述方法还可以包括:在步骤S12中选取的目标采样点不满足预设的眨眼采样点有效条件时,表明此时该目标采样点已经偏离了眨眼信号波形,因此,将该目标采样点识别为是噪声点,并将以该目标采样点为圆心、以预设的半径参数为半径所形成的第一区域中、未包含在其他簇中的采样点同样识别为是噪声点。之后,去除所述噪声点。Optionally, the method may further include: when the target sampling point selected in step S12 does not meet the preset effective condition of the blinking sampling point, it indicates that the target sampling point has deviated from the blinking signal waveform at this time, therefore, the The target sampling point is identified as a noise point, and the sampling points not included in other clusters in the first area formed with the target sampling point as the center and the preset radius parameter as the radius are also identified as noise points . Afterwards, the noise points are removed.

示例地,如图3所示,假设预设的半径参数为r,领域密度阈值为4。如果随机选取的目标采样点为P3,则判断P3是否满足预设的眨眼采样点有效条件。以P3为圆心、r为半径的所形成的圆O3中,所包含的除目标采样点P3之外的采样点的个数为1,少于预设的领域密度阈值4。并且此时,最大空闲时峰值已经更新为C点对应的电压值,而区域O3中包含的采样点的电压值不满足全部大于C点对应的电压值的条件,因此,判定P3点以及区域O3包含的采样点中不包含在其他簇中的成员为噪声点,并去除该噪声点。由此,一方面可以避免噪声点对眨眼识别的影响,另一方面,可以减少待处理的采样点的个数,降低采样点数据的处理量,从而提高眨眼动作的识别效率。For example, as shown in FIG. 3 , it is assumed that the preset radius parameter is r, and the domain density threshold is 4. If the randomly selected target sampling point is P3, it is judged whether P3 satisfies the preset effective condition of the blinking sampling point. In the circle O3 formed with P3 as the center and r as the radius, the number of sampling points other than the target sampling point P3 included is 1, which is less than the preset domain density threshold of 4. And at this time, the maximum idle peak value has been updated to the voltage value corresponding to point C, and the voltage values of the sampling points contained in area O3 do not meet the conditions that all of them are greater than the voltage value corresponding to point C, so it is determined that point P3 and area O3 Among the included sampling points, the members not included in other clusters are noise points, and the noise points are removed. Thus, on the one hand, the impact of noise points on eye blink recognition can be avoided, on the other hand, the number of sampling points to be processed can be reduced, and the processing amount of sampling point data can be reduced, thereby improving the recognition efficiency of eye blinking actions.

此外,在步骤S15之前,所述方法还可以包括:删除每个簇中、电压值小于最大空闲时峰值的成员。In addition, before step S15, the method may further include: deleting members in each cluster whose voltage value is smaller than the maximum idle peak value.

示例地,如图3所示,在以P1和P2为目标采样点所创建的簇建立完成后,最大空闲时峰值由初始值0更新为C点对应的电压值。q2点是针对目标采样点P2建立的簇中的成员,然而,该采样点q2的电压值小于C点对应的电压值,因此,将q2从针对目标采样点P2建立的簇中删除,以更新簇成员。之后,基于更新簇成员后的簇来识别眨眼参数。For example, as shown in FIG. 3 , after the clusters created with P1 and P2 as target sampling points are established, the maximum idle peak value is updated from an initial value of 0 to a voltage value corresponding to point C. Point q2 is a member of the cluster established for the target sampling point P2, however, the voltage value of the sampling point q2 is less than the corresponding voltage value of point C, therefore, delete q2 from the cluster established for the target sampling point P2 to update cluster members. Afterwards, blink parameters are identified based on the updated cluster membership.

通过这一技术方案,可以确保眨眼过程的完整性,没有多余的边界点,进而提高眨眼参数识别的准确率。Through this technical solution, the integrity of the blink process can be ensured without redundant boundary points, thereby improving the accuracy of blink parameter recognition.

根据本公开的第二方面,提供一种眼睛眨动识别装置。图5所示,为根据本公开的一种实施方式提供的眼睛眨动识别装置的框图。如图5所示,该装置10包括:According to a second aspect of the present disclosure, an eye blink recognition device is provided. FIG. 5 is a block diagram of an eye blink recognition device according to an embodiment of the present disclosure. As shown in Figure 5, the device 10 includes:

采样模块101,用于对体动检测芯片输出的电压信号中满足预设的采样条件的信号进行采样,获取采样数据序列,其中,所述体动检测芯片用于检测眨眼动作;The sampling module 101 is configured to sample a signal that satisfies a preset sampling condition among the voltage signals output by the body motion detection chip, and obtain a sampled data sequence, wherein the body motion detection chip is used to detect eye blinking;

目标采样点选取模块102,用于从所述采样模块101获取的、未遍历的采样点中选取任一采样点作为目标采样点;A target sampling point selection module 102, configured to select any sampling point as a target sampling point from the sampling points obtained by the sampling module 101 and not traversed;

簇创建模块103,用于在所述目标采样点选取模块102选取的所述目标采样点满足预设的眨眼采样点有效条件时,创建针对所述目标采样点的簇;A cluster creation module 103, configured to create a cluster for the target sampling point when the target sampling point selected by the target sampling point selection module 102 satisfies the preset effective condition of the eye blink sampling point;

簇建立模块104,用于将所述目标采样点选取模块102选取的所述目标采样点、和与所述目标采样点之间满足聚类条件的采样点添加到所述簇创建模块103创建的所述簇中,以完成所述簇的建立,其中,所建立的簇对应一次眨眼动作;所述簇建立模块104还用于重新触发所述目标采样点选取模块102执行从所述采样模块101获取的、未遍历的采样点中选取任一采样点作为目标采样点,直到所述采样数据序列中的全部采样点已遍历为止;The cluster establishment module 104 is used to add the target sampling point selected by the target sampling point selection module 102 and the sampling points satisfying the clustering condition between the target sampling point and the target sampling point to the cluster creation module 103. In the cluster, to complete the establishment of the cluster, wherein the established cluster corresponds to an eye blinking action; the cluster establishment module 104 is also used to re-trigger the target sampling point selection module 102 to execute from the sampling module 101 Selecting any sampling point from the obtained, untraversed sampling points as the target sampling point until all the sampling points in the sampling data sequence have been traversed;

参数识别模块105,用于根据所述簇建立模块104所建立的簇,识别眨眼参数。The parameter identification module 105 is configured to identify blink parameters according to the clusters established by the cluster establishment module 104 .

可选地,所述预设的采样条件为:Optionally, the preset sampling conditions are:

电压的变化超过预设的电压变化阈值。The change in voltage exceeds a preset voltage change threshold.

可选地,所述预设的眨眼采样点有效条件包括:Optionally, the preset effective conditions for blinking sampling points include:

以所述目标采样点为圆心、以预设的半径参数为半径所形成的第一区域中,除所述目标采样点之外的采样点的个数不少于预设的领域密度阈值;或者In the first area formed with the target sampling point as the center and a preset radius parameter as the radius, the number of sampling points other than the target sampling point is not less than the preset domain density threshold; or

在以所述目标采样点为圆心、以预设的半径参数为半径所形成的第一区域中,除所述目标采样点之外的采样点的个数少于预设的领域密度阈值的情况下,所述目标采样点的电压值小于距其最近的峰值并大于最大空闲时峰值,且所述第一区域中除所述目标采样点之外的采样点的电压值均小于所述峰值并大于所述最大空闲时峰值,其中,所述最大空闲时峰值为相邻两簇之间的非簇成员中的最大值。In the first area formed with the target sampling point as the center and a preset radius parameter as the radius, the number of sampling points other than the target sampling point is less than the preset domain density threshold Next, the voltage value of the target sampling point is less than the nearest peak value and greater than the maximum idle peak value, and the voltage values of the sampling points in the first area except the target sampling point are all less than the peak value and greater than the maximum idle peak value, wherein the maximum idle peak value is the maximum value among non-cluster members between two adjacent clusters.

可选地,该装置10还可以包括:Optionally, the device 10 may also include:

噪声点识别模块,用于在所述目标采样点选取模块102选取的所述目标采样点不满足所述预设的眨眼采样点有效条件时,将所述目标采样点识别为是噪声点,并将所述第一区域中、未包含在其他簇中的采样点识别为是噪声点;A noise point identification module, configured to identify the target sampling point as a noise point when the target sampling point selected by the target sampling point selection module 102 does not meet the preset effective condition of the eye blink sampling point, and Identifying sampling points in the first region that are not included in other clusters as noise points;

噪声点去除模块,用于去除所述噪声点识别模块识别出的所述噪声点。A noise point removal module, configured to remove the noise points identified by the noise point identification module.

可选地,图6所示,为根据本公开的另一种实施方式提供的眼睛眨动识别装置中簇建立模块104的框图。如图6所示,该簇建立模块104包括:Optionally, as shown in FIG. 6 , it is a block diagram of the cluster building module 104 in the eye blink recognition device according to another embodiment of the present disclosure. As shown in Figure 6, the cluster building module 104 includes:

候选采样点集合建立子模块1041,用于将以所述目标采样点选取模块102选取的所述目标采样点为圆心、以预设的半径参数为半径所形成的第一区域中、除所述目标采样点之外的采样点添加到候选采样点集合中;The candidate sampling point set establishment sub-module 1041 is used to divide the target sampling point selected by the target sampling point selection module 102 into the first area formed with the preset radius parameter as the radius, and divide the Sampling points other than the target sampling point are added to the set of candidate sampling points;

候选采样点遍历子模块1042,用于遍历所述候选采样点集合中的采样点,并在以所遍历的采样点为圆心、以预设的半径参数为半径所形成的第二区域中,除所遍历的采样点之外的采样点的个数不少于预设的领域密度阈值时,将所述第二区域中除所遍历的采样点之外的采样点添加到所述候选采样点集合中,直到所述候选采样点集合内的采样点全部遍历完成为止;The candidate sampling point traversal sub-module 1042 is configured to traverse the sampling points in the candidate sampling point set, and in the second area formed with the traversed sampling point as the center and the preset radius parameter as the radius, except When the number of sampling points other than the traversed sampling points is not less than the preset field density threshold, add the sampling points in the second area except the traversed sampling points to the set of candidate sampling points , until all sampling points in the set of candidate sampling points have been traversed;

簇建立子模块1043,用于将所述候选采样点集合中、未包含在其他簇中的采样点确定为是与所述目标采样点之间满足聚类条件的采样点。The cluster establishment sub-module 1043 is configured to determine the sampling points in the set of candidate sampling points that are not included in other clusters as the sampling points satisfying the clustering condition with the target sampling point.

可选地,所述参数识别模块105包括以下中的至少一者:Optionally, the parameter identification module 105 includes at least one of the following:

眨眼次数识别子模块,用于将所述簇建立模块104所建立的簇的总数识别为是眨眼次数;The number of blinks identification submodule is used to identify the total number of clusters established by the cluster building module 104 as the number of blinks;

单次眨眼时间识别子模块,用于针对所述簇建立模块104所建立的每个簇,将簇成员的最大时间差值识别为是单次眨眼时间;The single blink time identification submodule is used for each cluster established by the cluster establishment module 104, identifying the maximum time difference of cluster members as the single blink time;

眨眼时间间隔识别子模块,用于针对所述簇建立模块104所建立的相邻两个簇,将该相邻的两个簇的相邻时间之差识别为是眨眼时间间隔;The blink time interval identification submodule is used to identify the difference between the adjacent time of the two adjacent clusters as the blink time interval for the two adjacent clusters established by the cluster establishment module 104;

眨眼占空比识别子模块,用于将所述眨眼时间间隔识别子模块识别出的所述眨眼时间间隔之和与所述电压信号的总时间之间的比值识别为是眨眼占空比。The blink duty cycle identification submodule is configured to identify the ratio between the sum of the blink time intervals identified by the blink time interval identification submodule and the total time of the voltage signal as the blink duty cycle.

可选地,所述装置10还可以包括:Optionally, the device 10 may also include:

删除模块,用于在所述参数识别模块105根据所述簇建立模块104所建立的簇,识别眨眼参数之前,删除每个簇中、电压值小于最大空闲时峰值的成员,其中,所述最大空闲时峰值为相邻两簇之间的非簇成员中的最大值。The deletion module is used to delete the members whose voltage value is less than the maximum idle peak value in each cluster before the parameter identification module 105 identifies the blink parameter according to the cluster established by the cluster establishment module 104, wherein the maximum The peak value when idle is the maximum value among non-cluster members between two adjacent clusters.

通过上述技术方案,可以实现对属于一次眨眼动作的采样点的识别与聚类,根据聚类结果,能够准确地确定本次眨眼动作的开始与结束,从而准确完成眨眼参数的识别。在这一过程中,不需要像现有的眨眼识别算法中实时计算采样点之间的距离,更多的是进行判断、标记等操作,由此可以极大地减少数据的计算量,降低算法的复杂度,有效避免计算过程中可能出现的误差,准确率大幅提升。Through the above technical solution, the identification and clustering of the sampling points belonging to a blink can be realized, and the start and end of the blink can be accurately determined according to the clustering results, thereby accurately completing the identification of the blink parameters. In this process, it is not necessary to calculate the distance between sampling points in real time as in the existing blink recognition algorithm, but more to perform operations such as judgment and marking, which can greatly reduce the amount of data calculation and reduce the cost of the algorithm. The complexity can effectively avoid possible errors in the calculation process, and the accuracy rate is greatly improved.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

以上结合附图详细描述了本公开的优选实施方式,但是,本公开并不限于上述实施方式中的具体细节,在本公开的技术构思范围内,可以对本公开的技术方案进行多种简单变型,这些简单变型均属于本公开的保护范围。The preferred embodiments of the present disclosure have been described in detail above in conjunction with the accompanying drawings. However, the present disclosure is not limited to the specific details of the above embodiments. Within the scope of the technical concept of the present disclosure, various simple modifications can be made to the technical solutions of the present disclosure. These simple modifications all belong to the protection scope of the present disclosure.

另外需要说明的是,在上述具体实施方式中所描述的各个具体技术特征,在不矛盾的情况下,可以通过任何合适的方式进行组合。为了避免不必要的重复,本公开对各种可能的组合方式不再另行说明。In addition, it should be noted that the various specific technical features described in the above specific implementation manners may be combined in any suitable manner if there is no contradiction. In order to avoid unnecessary repetition, various possible combinations are not further described in this disclosure.

此外,本公开的各种不同的实施方式之间也可以进行任意组合,只要其不违背本公开的思想,其同样应当视为本公开所公开的内容。In addition, various implementations of the present disclosure can also be combined in any way, as long as they do not violate the idea of the present disclosure, they should also be regarded as the content disclosed in the present disclosure.

Claims (14)

1.一种眼睛眨动识别方法,所述方法包括:对体动检测芯片输出的电压信号中满足预设的采样条件的信号进行采样,获取采样数据序列,其中,所述体动检测芯片用于检测眨眼动作,其特征在于,所述方法还包括:1. A method for eye blink recognition, said method comprising: sampling a signal satisfying a preset sampling condition in a voltage signal output by a body motion detection chip, and obtaining a sampled data sequence, wherein said body motion detection chip uses For detecting blinking action, it is characterized in that, described method also comprises: 从未遍历的采样点中选取任一采样点作为目标采样点;Select any sampling point from the untraversed sampling points as the target sampling point; 在所述目标采样点满足预设的眨眼采样点有效条件时,创建针对所述目标采样点的簇;Create a cluster for the target sampling point when the target sampling point satisfies the preset effective condition of the eye blink sampling point; 将所述目标采样点、和与所述目标采样点之间满足聚类条件的采样点添加到所述簇中,以完成所述簇的建立,其中,所建立的簇对应一次眨眼动作;Adding the target sampling point and the sampling points satisfying the clustering condition between the target sampling point and the target sampling point to the cluster to complete the establishment of the cluster, wherein the established cluster corresponds to an eye blink; 重复执行所述从未遍历的采样点中选取任一采样点作为目标采样点的步骤,直到所述采样数据序列中的全部采样点已遍历为止;Repeating the step of selecting any sampling point from the untraversed sampling points as the target sampling point until all the sampling points in the sampled data sequence have been traversed; 根据所建立的簇,识别眨眼参数。Based on the established clusters, blink parameters are identified. 2.根据权利要求1所述的方法,其特征在于,所述预设的采样条件为:2. method according to claim 1, is characterized in that, described preset sampling condition is: 电压的变化超过预设的电压变化阈值。The change in voltage exceeds a preset voltage change threshold. 3.根据权利要求1所述的方法,其特征在于,所述预设的眨眼采样点有效条件包括:3. method according to claim 1, is characterized in that, described preset blink sampling point effective condition comprises: 以所述目标采样点为圆心、以预设的半径参数为半径所形成的第一区域中,除所述目标采样点之外的采样点的个数不少于预设的领域密度阈值;或者In the first area formed with the target sampling point as the center and a preset radius parameter as the radius, the number of sampling points other than the target sampling point is not less than the preset domain density threshold; or 在以所述目标采样点为圆心、以预设的半径参数为半径所形成的第一区域中,除所述目标采样点之外的采样点的个数少于预设的领域密度阈值的情况下,所述目标采样点的电压值小于距其最近的峰值并大于最大空闲时峰值,且所述第一区域中除所述目标采样点之外的采样点的电压值均小于所述峰值并大于所述最大空闲时峰值,其中,所述最大空闲时峰值为相邻两簇之间的非簇成员中的最大值。In the first area formed with the target sampling point as the center and a preset radius parameter as the radius, the number of sampling points other than the target sampling point is less than the preset domain density threshold Next, the voltage value of the target sampling point is less than the nearest peak value and greater than the maximum idle peak value, and the voltage values of the sampling points in the first area except the target sampling point are all less than the peak value and greater than the maximum idle peak value, wherein the maximum idle peak value is the maximum value among non-cluster members between two adjacent clusters. 4.根据权利要求3所述的方法,其特征在于,所述方法还包括:4. method according to claim 3, is characterized in that, described method also comprises: 在所述目标采样点不满足所述预设的眨眼采样点有效条件时,将所述目标采样点识别为是噪声点,并将所述第一区域中、未包含在其他簇中的采样点识别为是噪声点;When the target sampling point does not meet the preset effective condition of blinking sampling point, identify the target sampling point as a noise point, and select the sampling points in the first area that are not included in other clusters identified as noise points; 去除所述噪声点。remove the noise points. 5.根据权利要求1所述的方法,其特征在于,通过以下方式来确定与所述目标采样点之间满足聚类条件的采样点:5. method according to claim 1, is characterized in that, determine and satisfy the sampling point of clustering condition between described target sampling point by the following manner: 将以所述目标采样点为圆心、以预设的半径参数为半径所形成的第一区域中、除所述目标采样点之外的采样点添加到候选采样点集合中;Adding sampling points other than the target sampling point in the first area formed with the target sampling point as the center and a preset radius parameter as the radius to the set of candidate sampling points; 重复执行遍历所述候选采样点集合中的采样点,并在以所遍历的采样点为圆心、以预设的半径参数为半径所形成的第二区域中,除所遍历的采样点之外的采样点的个数不少于预设的领域密度阈值时,将所述第二区域中除所遍历的采样点之外的采样点添加到所述候选采样点集合中的步骤,直到所述候选采样点集合内的采样点全部遍历完成为止;Repeatedly traversing the sampling points in the set of candidate sampling points, and in the second area formed with the traversed sampling point as the center and the preset radius parameter as the radius, all but the traversed sampling points When the number of sampling points is not less than the preset domain density threshold, the step of adding sampling points in the second area other than the traversed sampling points to the set of candidate sampling points until the candidate Until all the sampling points in the sampling point set have been traversed; 将所述候选采样点集合中、未包含在其他簇中的采样点确定为是与所述目标采样点之间满足聚类条件的采样点。Determining the sampling points in the set of candidate sampling points that are not included in other clusters as the sampling points satisfying the clustering condition with the target sampling point. 6.根据权利要求1-5中任一项所述的方法,其特征在于,所述根据所建立的簇,识别眨眼参数,包括以下中的至少一者:6. The method according to any one of claims 1-5, wherein the identification of blink parameters according to the established cluster includes at least one of the following: 将所建立的簇的总数识别为是眨眼次数;identifying the total number of clusters created as the number of eye blinks; 针对每个簇,将簇成员的最大时间差值识别为是单次眨眼时间;For each cluster, identify the maximum time difference of the cluster members as being a single blink time; 针对相邻两个簇,将该相邻的两个簇的相邻时间之差识别为是眨眼时间间隔;For two adjacent clusters, the difference between the adjacent time of the two adjacent clusters is identified as the blink time interval; 将所述眨眼时间间隔之和与所述电压信号的总时间之间的比值识别为是眨眼占空比。The ratio between the sum of the blink time intervals and the total time of the voltage signal is identified as the blink duty cycle. 7.根据权利要求6所述的方法,其特征在于,在所述根据所建立的簇,识别眨眼参数的步骤之前,所述方法还包括:7. The method according to claim 6, wherein, before the step of identifying blink parameters according to the established cluster, the method further comprises: 删除每个簇中、电压值小于最大空闲时峰值的成员,其中,所述最大空闲时峰值为相邻两簇之间的非簇成员中的最大值。Deleting members whose voltage value is less than the maximum idle peak value in each cluster, wherein the maximum idle peak value is the maximum value among non-cluster members between two adjacent clusters. 8.一种眼睛眨动识别装置,其特征在于,所述装置包括:8. An eye blink recognition device, characterized in that the device comprises: 采样模块,用于对体动检测芯片输出的电压信号中满足预设的采样条件的信号进行采样,获取采样数据序列,其中,所述体动检测芯片用于检测眨眼动作;The sampling module is used to sample the signal satisfying the preset sampling condition in the voltage signal output by the body motion detection chip, and obtain the sampling data sequence, wherein the body motion detection chip is used to detect eye blinking; 目标采样点选取模块,用于从所述采样模块获取的、未遍历的采样点中选取任一采样点作为目标采样点;A target sampling point selection module, configured to select any sampling point from the untraversed sampling points obtained by the sampling module as the target sampling point; 簇创建模块,用于在所述目标采样点选取模块选取的所述目标采样点满足预设的眨眼采样点有效条件时,创建针对所述目标采样点的簇;A cluster creation module, configured to create a cluster for the target sampling point when the target sampling point selected by the target sampling point selection module satisfies the preset effective condition of the blinking sampling point; 簇建立模块,用于将所述目标采样点选取模块选取的所述目标采样点、和与所述目标采样点之间满足聚类条件的采样点添加到所述簇创建模块创建的所述簇中,以完成所述簇的建立,其中,所建立的簇对应一次眨眼动作;A cluster establishment module, configured to add the target sampling point selected by the target sampling point selection module and the sampling points satisfying the clustering condition between the target sampling point and the target sampling point to the cluster created by the cluster creation module , to complete the establishment of the cluster, wherein the established cluster corresponds to a blinking action; 所述簇建立模块还用于重新触发所述目标采样点选取模块执行从所述采样模块获取的、未遍历的采样点中选取任一采样点作为目标采样点,直到所述采样数据序列中的全部采样点已遍历为止;The cluster establishment module is also used to re-trigger the target sampling point selection module to select any sampling point from the untraversed sampling points acquired by the sampling module as the target sampling point until the sampling point in the sampling data sequence All sampling points have been traversed; 参数识别模块,用于根据所述簇建立模块所建立的簇,识别眨眼参数。The parameter identification module is used to identify blink parameters according to the clusters established by the cluster establishment module. 9.根据权利要求8所述的装置,其特征在于,所述预设的采样条件为:9. The device according to claim 8, wherein the preset sampling condition is: 电压的变化超过预设的电压变化阈值。The change in voltage exceeds a preset voltage change threshold. 10.根据权利要求8所述的装置,其特征在于,所述预设的眨眼采样点有效条件包括:10. The device according to claim 8, characterized in that, the preset valid conditions for blinking sampling points include: 以所述目标采样点为圆心、以预设的半径参数为半径所形成的第一区域中,除所述目标采样点之外的采样点的个数不少于预设的领域密度阈值;或者In the first area formed with the target sampling point as the center and a preset radius parameter as the radius, the number of sampling points other than the target sampling point is not less than the preset domain density threshold; or 在以所述目标采样点为圆心、以预设的半径参数为半径所形成的第一区域中,除所述目标采样点之外的采样点的个数少于预设的领域密度阈值的情况下,所述目标采样点的电压值小于距其最近的峰值并大于最大空闲时峰值,且所述第一区域中除所述目标采样点之外的采样点的电压值均小于所述峰值并大于所述最大空闲时峰值,其中,所述最大空闲时峰值为相邻两簇之间的非簇成员中的最大值。In the first area formed with the target sampling point as the center and a preset radius parameter as the radius, the number of sampling points other than the target sampling point is less than the preset domain density threshold Next, the voltage value of the target sampling point is less than the nearest peak value and greater than the maximum idle peak value, and the voltage values of the sampling points in the first area except the target sampling point are all less than the peak value and greater than the maximum idle peak value, wherein the maximum idle peak value is the maximum value among non-cluster members between two adjacent clusters. 11.根据权利要求10所述的装置,其特征在于,所述装置还包括:11. The device according to claim 10, further comprising: 噪声点识别模块,用于在所述目标采样点选取模块选取的所述目标采样点不满足所述预设的眨眼采样点有效条件时,将所述目标采样点识别为是噪声点,并将所述第一区域中、未包含在其他簇中的采样点识别为是噪声点;A noise point identification module, configured to identify the target sampling point as a noise point when the target sampling point selected by the target sampling point selection module does not meet the preset effective condition of the eye blink sampling point, and Sampling points not included in other clusters in the first region are identified as noise points; 噪声点去除模块,用于去除所述噪声点识别模块识别出的所述噪声点。A noise point removal module, configured to remove the noise points identified by the noise point identification module. 12.根据权利要求8所述的装置,其特征在于,所述簇建立模块包括:12. The device according to claim 8, wherein the cluster building module comprises: 候选采样点集合建立子模块,用于将以所述目标采样点选取模块选取的所述目标采样点为圆心、以预设的半径参数为半径所形成的第一区域中、除所述目标采样点之外的采样点添加到候选采样点集合中;The candidate sampling point set building sub-module is used to divide the target sampling point from the first area formed by taking the target sampling point selected by the target sampling point selection module as the center of the circle and taking the preset radius parameter as the radius. The sampling points other than the sampling points are added to the set of candidate sampling points; 候选采样点遍历子模块,用于遍历所述候选采样点集合中的采样点,并在以所遍历的采样点为圆心、以预设的半径参数为半径所形成的第二区域中,除所遍历的采样点之外的采样点的个数不少于预设的领域密度阈值时,将所述第二区域中除所遍历的采样点之外的采样点添加到所述候选采样点集合中,直到所述候选采样点集合内的采样点全部遍历完成为止;The candidate sampling point traversal submodule is used to traverse the sampling points in the candidate sampling point set, and divide all When the number of sampling points other than the traversed sampling points is not less than the preset field density threshold, add the sampling points in the second area except the traversed sampling points to the set of candidate sampling points , until all sampling points in the set of candidate sampling points have been traversed; 簇建立子模块,用于将所述候选采样点集合中、未包含在其他簇中的采样点确定为是与所述目标采样点之间满足聚类条件的采样点。The cluster establishment submodule is configured to determine the sampling points in the set of candidate sampling points that are not included in other clusters as the sampling points satisfying the clustering condition with the target sampling point. 13.根据权利要求8-12中任一项所述的装置,其特征在于,所述参数识别模块,包括以下中的至少一者:13. The device according to any one of claims 8-12, wherein the parameter identification module includes at least one of the following: 眨眼次数识别子模块,用于将所述簇建立模块所建立的簇的总数识别为是眨眼次数;The number of blinks identification submodule is used to identify the total number of clusters established by the cluster building module as the number of blinks; 单次眨眼时间识别子模块,用于针对所述簇建立模块所建立的每个簇,将簇成员的最大时间差值识别为是单次眨眼时间;The single blink time identification submodule is used to identify the maximum time difference of cluster members as the single blink time for each cluster established by the cluster establishment module; 眨眼时间间隔识别子模块,用于针对所述簇建立模块所建立的相邻两个簇,将该相邻的两个簇的相邻时间之差识别为是眨眼时间间隔;The blink time interval identification submodule is used to identify the difference between the adjacent time of the two adjacent clusters as the blink time interval for the two adjacent clusters established by the cluster establishment module; 眨眼占空比识别子模块,用于将所述眨眼时间间隔识别子模块识别出的所述眨眼时间间隔之和与所述电压信号的总时间之间的比值识别为是眨眼占空比。The blink duty cycle identification submodule is configured to identify the ratio between the sum of the blink time intervals identified by the blink time interval identification submodule and the total time of the voltage signal as the blink duty cycle. 14.根据权利要求13所述的装置,其特征在于,所述装置还包括:14. The device according to claim 13, further comprising: 删除模块,用于在所述参数识别模块根据所述簇建立模块所建立的簇,识别眨眼参数之前,删除每个簇中、电压值小于最大空闲时峰值的成员,其中,所述最大空闲时峰值为相邻两簇之间的非簇成员中的最大值。A deletion module, configured to delete, before the parameter identification module identifies blink parameters according to the clusters established by the cluster establishment module, delete members in each cluster whose voltage value is less than the peak value of the maximum idle time, wherein the maximum idle time The peak is the maximum value among non-cluster members between two adjacent clusters.
CN201710189357.2A 2017-03-27 2017-03-27 eye blinking recognition method and device Active CN106963386B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710189357.2A CN106963386B (en) 2017-03-27 2017-03-27 eye blinking recognition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710189357.2A CN106963386B (en) 2017-03-27 2017-03-27 eye blinking recognition method and device

Publications (2)

Publication Number Publication Date
CN106963386A CN106963386A (en) 2017-07-21
CN106963386B true CN106963386B (en) 2019-12-06

Family

ID=59335642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710189357.2A Active CN106963386B (en) 2017-03-27 2017-03-27 eye blinking recognition method and device

Country Status (1)

Country Link
CN (1) CN106963386B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108171118B (en) * 2017-12-05 2020-10-02 东软集团股份有限公司 Blink signal data processing method, device, readable storage medium and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006039346A1 (en) * 2004-09-29 2006-04-13 Baura Gail D Ph D Blink monitor for detecting blink occurrence in a living subject
CN104049761A (en) * 2014-06-27 2014-09-17 北京智谷睿拓技术服务有限公司 Electro-oculogram detection method and device
CN105030244A (en) * 2015-06-29 2015-11-11 杭州镜之镜科技有限公司 Blink detection method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006039346A1 (en) * 2004-09-29 2006-04-13 Baura Gail D Ph D Blink monitor for detecting blink occurrence in a living subject
CN104049761A (en) * 2014-06-27 2014-09-17 北京智谷睿拓技术服务有限公司 Electro-oculogram detection method and device
CN105030244A (en) * 2015-06-29 2015-11-11 杭州镜之镜科技有限公司 Blink detection method and system

Also Published As

Publication number Publication date
CN106963386A (en) 2017-07-21

Similar Documents

Publication Publication Date Title
JP5838901B2 (en) Object identification device and object identification method
CN108415975B (en) A taxi passenger hot spot identification method based on BDCH-DBSCAN
CN105069093A (en) Embedded index based hydrological time series similarity searching method
CN113742387A (en) Data processing method, device and computer readable storage medium
CN111693945B (en) Inter-pulse modulation method, inter-pulse modulation system, computer device, and storage medium
CN109067725A (en) Network flow abnormal detecting method and device
CN103942425B (en) Data processing method and device
CN113049963A (en) Lithium battery pack consistency detection method and device based on local outlier factors
CN104159297B (en) A kind of polygon localization method of wireless sensor network based on cluster analysis
CN103559724A (en) Method for synchronously tracking multiple cells in high-adhesion cell environment
CN107133343A (en) Big data abnormal state detection method and device based on time series approximate match
CN114580554A (en) Method, system and medium for ship accompanying pattern detection based on trajectory feature mining
CN106963386B (en) eye blinking recognition method and device
CN109214318A (en) A method of finding the faint spike of unstable state time series
CN112801113B (en) Data denoising method based on multi-scale reliable clustering
KR102361816B1 (en) Method for detecting target and readable medium
CN109446572B (en) A method and device for processing quantum measurement and control data
Mercioni et al. Evaluating hierarchical and non-hierarchical grouping for develop a smart system
JP2012112807A (en) Multi-target tracking device
CN112214655A (en) Clustering method for solving density-nonuniform data set based on density multi-adaptive threshold
Khader et al. Performance comparison of two algorithms for arbitrary shapes clustering
CN119004270B (en) Discharge type identification method and device, storage medium and electronic equipment
CN118518999B (en) Arc fault identification method, device, equipment and storage medium
JP2000155841A (en) Graphic recognition method, device therefor and recording medium recorded with graphic recognition program
CN113051976A (en) Fingerprint positioning method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20250407

Address after: Room E162, Room 301 to 353, No.1 Kehua Street, Tianhe District, Guangzhou City, Guangdong Province, 510640 (Office only)

Patentee after: Guangzhou binju Technology Co.,Ltd.

Country or region after: China

Address before: Hunnan rookie street Shenyang city Liaoning province 110179 No. 2

Patentee before: NEUSOFT Corp.

Country or region before: China

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20250408

Address after: Unit 7, 1st Floor, Building 15, Xinyue Jiayuan, Changping Town, Changping District, Beijing 102200

Patentee after: Beijing Xuri Dongchen Technology Co.,Ltd.

Country or region after: China

Address before: Room E162, Room 301 to 353, No.1 Kehua Street, Tianhe District, Guangzhou City, Guangdong Province, 510640 (Office only)

Patentee before: Guangzhou binju Technology Co.,Ltd.

Country or region before: China