CN107610099A - A kind of emotion state of mind detecting system and method based on pupil information - Google Patents
A kind of emotion state of mind detecting system and method based on pupil information Download PDFInfo
- Publication number
- CN107610099A CN107610099A CN201710714286.3A CN201710714286A CN107610099A CN 107610099 A CN107610099 A CN 107610099A CN 201710714286 A CN201710714286 A CN 201710714286A CN 107610099 A CN107610099 A CN 107610099A
- Authority
- CN
- China
- Prior art keywords
- information
- pupil
- emotion
- emotional
- image
- 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.)
- Pending
Links
Landscapes
- Eye Examination Apparatus (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
本发明实施公开了一种基于瞳孔信息的情感精神状态检测系统及方法,该系统包括:情感诱发模块,用于对测试者进行情感诱发;信息采集模块,用于采集每一帧摄像头拍摄的图像;信息处理模块,用于图像处理、计算瞳孔信息以及判断该信息是否属于中性信息;中性信息处理模块,用于整合并计算中性信息中瞳孔直径的平均值;信息反馈模块,用于转化非中性信息为测试情感信息并反馈至远程服务端,判定和诊断测试者的情感精神状态并发送给测试者。实施本发明实施例,不仅克服了光瞳孔检测中强烈的光对不同老化程度瞳孔的影响,能够有效地检测出基于瞳孔信息的情感精神状态,同时可以将这种检测方式应用到移动设备当中,在移动医疗方面具有重要意义。
The implementation of the present invention discloses an emotional and mental state detection system and method based on pupil information. The system includes: an emotional induction module for emotional induction of testers; an information collection module for collecting images captured by cameras in each frame The information processing module is used for image processing, calculating the pupil information and judging whether the information belongs to neutral information; the neutral information processing module is used for integrating and calculating the average value of the pupil diameter in the neutral information; the information feedback module is used for Transform the non-neutral information into test emotional information and feed it back to the remote server, determine and diagnose the emotional state of the tester and send it to the tester. The implementation of the embodiment of the present invention not only overcomes the influence of strong light on pupils with different aging degrees in pupil detection, but also can effectively detect emotional and mental states based on pupil information, and at the same time, this detection method can be applied to mobile devices. It is of great significance in mobile medicine.
Description
技术领域technical field
本发明涉及认知心理学、生物特征提取、图像处理、移动医疗技术领域,尤其涉及一种基于瞳孔信息的情感精神状态检测系统及方法。The invention relates to the technical fields of cognitive psychology, biological feature extraction, image processing, and mobile medical care, and in particular to an emotional and mental state detection system and method based on pupil information.
背景技术Background technique
随着市场经济的快速发展,快节奏生活给人们的精神心理带来了不小的压力,各种情感障碍症的发病率与日俱增。With the rapid development of the market economy, fast-paced life has brought a lot of pressure on people's mental psychology, and the incidence of various emotional disorders is increasing day by day.
情感障碍症主要表现在情绪方面,而情绪的变化又直接影响到了瞳孔的大小。瞳孔直径的动态变化具有无适应性、不受意识控制的特点,正性情绪信息会使得瞳孔直径放大,负性情绪信息会使得瞳孔直径缩小,故能准确的反应大脑的精神活动。另外,瞳孔的情感反应速率与注意力力集中程度也能反应测试者的精神状态。自闭症患者瞳孔的情感反应速率比常人较慢;精神分裂症患者的瞳孔情感带宽较窄并且眼跟踪功能存在异常;抑郁症患者存在选择性注意力受损,对负性信息注意力增加,正性信息注意力减少,并且对负性信息的敏感程度更高。Affective disorders are mainly manifested in emotions, and changes in emotions directly affect the size of the pupils. The dynamic change of pupil diameter has the characteristics of non-adaptability and not being controlled by consciousness. Positive emotional information will make the pupil diameter enlarged, and negative emotional information will make the pupil diameter narrow, so it can accurately reflect the mental activity of the brain. In addition, the emotional reaction rate and concentration of the pupils can also reflect the mental state of the tester. The emotional response rate of the pupils of autistic patients is slower than that of ordinary people; the emotional bandwidth of the pupils of patients with schizophrenia is narrow and the eye tracking function is abnormal; patients with depression have impaired selective attention and increased attention to negative information. Reduced attention to positive information and greater sensitivity to negative information.
这些现象最明显的集中在了老年人群与青少年人群当中,也成为了人们关注的要点。怎样准确、快速、便捷的反映患者的心理状况,对患者心理问题进行防治成了一个难题。目前大多数的情感诊断都是以量表的形式来诊断的,这些诊断结果往往受到患者主观隐瞒的影响,使得判断结果不够准确。These phenomena are most obviously concentrated among the elderly and young people, and have become the focus of people's attention. How to accurately, quickly and conveniently reflect the patient's psychological state, and how to prevent and treat the patient's psychological problems has become a difficult problem. At present, most of the emotional diagnoses are made in the form of scales, and these diagnostic results are often affected by patients' subjective concealment, which makes the judgment results inaccurate.
近年来,也涌现了一些通过采集情感带宽、注视点集中信息来鉴别情感障碍的方法。但是这些方法都要利用到多个或者是特别的移动设备不具备的红外线摄像头,不利于人们快速、便捷的掌握自身的精神状态;并且为了简化计算复杂程度,这些方法也都利用的是亮瞳孔的检测方式,却忽略了由于照亮瞳孔,光线对瞳孔带来的二次变量。实验证明,对于不同年龄阶段的人,他们的瞳孔对于光线的敏感程度也是不同的,这就使得这些方法的测试结果准确性不够高。In recent years, some methods have emerged to identify emotional disorders by collecting information on emotional bandwidth and focus points. However, these methods all use multiple infrared cameras or infrared cameras that special mobile devices do not have, which is not conducive to people's quick and convenient grasp of their own mental state; and in order to simplify the calculation complexity, these methods also use the bright pupil The detection method, but ignores the secondary variable brought by the light to the pupil due to illuminating the pupil. Experiments have shown that for people of different ages, their pupils are also different in sensitivity to light, which makes the test results of these methods not accurate enough.
发明内容Contents of the invention
本发明的目的在于克服现有技术的不足,将现有技术改进成为能够应用于移动设备中的技术。本发明实施公开一种基于移动设备监测瞳孔的动态变化对情感障碍进行判断的方法,让人们在家即可自行诊断,及早对情感精神疾病进行预警与防治,提高人们的精神状态质量。The purpose of the present invention is to overcome the deficiencies of the prior art and improve the prior art into a technology that can be applied to mobile devices. The implementation of the present invention discloses a method for judging emotional disorders based on the dynamic changes of pupils monitored by mobile devices, allowing people to self-diagnose at home, early warning and prevention of emotional mental diseases, and improving the quality of people's mental state.
为了解决上述问题,本发明提出了一种基于瞳孔信息的情感障碍检测系统,该系统包括如下模块:In order to solve the above problems, the present invention proposes a system for detecting emotional disorders based on pupil information, the system includes the following modules:
情感诱发模块,用于对测试者进行情感诱发;The emotion induction module is used to induce emotion to the tester;
信息采集模块,用于采集每一帧摄像头拍摄的图像;An information collection module, configured to collect images captured by each frame of the camera;
信息处理模块,用于进行每一帧图像的图像处理、瞳孔信息的计算以及该信息是否属于中性信息的判断;The information processing module is used for image processing of each frame of image, calculation of pupil information and judgment of whether the information belongs to neutral information;
中性信息处理模块,用于整合并计算中性信息的瞳孔直径信息,获得其平均值以作为中性瞳孔直径参考值,其范围作为中性瞳孔直径阈值范围;The neutral information processing module is used to integrate and calculate the pupil diameter information of the neutral information, obtain the average value as the reference value of the neutral pupil diameter, and its range as the threshold range of the neutral pupil diameter;
信息反馈模块,用于将所有瞳孔信息转化为测试情感信息并反馈至远端服务器,判定和诊断测试者的情感精神状态并将其结果发送至测试者。The information feedback module is used to convert all pupil information into test emotional information and feed it back to the remote server, determine and diagnose the tester's emotional state and send the result to the tester.
优选地,所述情感诱发模块包括:Preferably, the emotion induction module includes:
材料捕捉单元。用于对情绪刺激材料进行提取。Material capture unit. Used to extract emotionally stimulating materials.
材料处理单元。用于将各个材料处理为时间长度为10s的播放材料。Material handling unit. It is used to process each material into a playback material with a duration of 10s.
材料播放单元。用于播放处理过的材料。material playback unit. For playback of processed material.
信息传递单元。用于将各个材料对应的正常情感信息及其阈值传递给信息反馈模块,作为标准情感信息,将该标准情感信息传递至信息反馈模块。Information transfer unit. It is used to transmit the normal emotional information corresponding to each material and its threshold value to the information feedback module as standard emotional information, and transmit the standard emotional information to the information feedback module.
优选地,所述信息采集模块包括:Preferably, the information collection module includes:
时间控制单元。以2s为1帧划分时间。Time control unit. Divide time with 2s as 1 frame.
图像采集单元。拍摄每一帧摄像头采集到的图像,并将采集到的图像发送至信息处理模块。Image acquisition unit. The image collected by the camera is captured for each frame, and the collected image is sent to the information processing module.
优选地,所述信息处理模块包括:Preferably, the information processing module includes:
图像处理单元。对信息采集模块采集到的图像进行图像处理,获得瞳孔图像。image processing unit. Image processing is performed on the image collected by the information collection module to obtain a pupil image.
信息处理单元。获取处理过的瞳孔图像,计算获得瞳孔信息。information processing unit. Obtain the processed pupil image, and calculate pupil information.
信息判断单元。判断该瞳孔信息是否为放松状态下的瞳孔信息。若是,则将其作为中性信息传递至中性信息处理模块,若不是,则将其传递至信息反馈模块。information judgment unit. It is judged whether the pupil information is pupil information in a relaxed state. If yes, pass it as neutral information to the neutral information processing module, if not, pass it to the information feedback module.
优选地,所述中性信息处理模块包括:Preferably, the neutral information processing module includes:
中性信息整合单元。提取并缓存中性信息中的瞳孔直径数据。Neutral information integration unit. Extract and cache the pupil diameter data in the neutral information.
中性信息计算单元。计算缓存数据的平均值,获得中性瞳孔直径参考值。获取缓存数据范围以作为中性瞳孔直径阈值范围。Neutral information computing unit. Calculate the average value of the cached data to obtain the reference value of neutral pupil diameter. Get the cached data range as the neutral pupil diameter threshold range.
优选地,所述信息反馈模块包括:Preferably, the information feedback module includes:
信息计算单元。利用测试者的瞳孔信息计算测试者的情感带宽、不同种情感带宽出现的次数以及注意力集中程度以作为参照信息。information computing unit. Using the tester's pupil information to calculate the tester's emotional bandwidth, the number of occurrences of different emotional bandwidths and the degree of concentration as reference information.
信息记录单元。记录整个测试过程中的参照信息,并根据其中的情感带宽数据绘制曲线图,计算情感反应时间,获得包含参照信息与情感反应时间的测试情感信息并发送至远端服务器。Information recording unit. Record the reference information throughout the test process, draw a graph according to the emotional bandwidth data, calculate the emotional reaction time, obtain the test emotional information including the reference information and emotional reaction time, and send it to the remote server.
信息判定单元。比较测试情感信息与标准情感信息,对测试者的情感精神状态进行判定和诊断,获得判定诊断信息并发送至测试者。information determination unit. Compare the test emotional information with the standard emotional information, judge and diagnose the emotional and mental state of the tester, obtain the judgment and diagnosis information and send it to the tester.
相应地,本发明另一方面提出了一种基于瞳孔信息的情感精神状态检测方法,该方法包括如下步骤:Correspondingly, another aspect of the present invention proposes a method for detecting emotional and mental states based on pupil information, the method comprising the following steps:
给予测试者10s放松时间,对测试者进行中性瞳孔直径信息提取,计算得到中性瞳孔直径参考值及其阈值范围。The testers were given a 10s relaxation time, and the neutral pupil diameter information was extracted from the testers, and the reference value of the neutral pupil diameter and its threshold range were calculated.
提取情感诱发材料,进行情感诱发。Extract emotion-inducing materials for emotional induction.
采集情感诱发过程中每一帧测试者的瞳孔图像。The pupil images of each frame of the tester during the emotion induction process were collected.
获取瞳孔图像,进行图像处理,计算瞳孔直径与瞳孔的注视点坐标以作为瞳孔信息。The pupil image is acquired, image processing is performed, and pupil diameter and gaze point coordinates of the pupil are calculated as pupil information.
获取瞳孔信息,进行测试情感信息转化,对用户当前的情感精神状态进行判定与诊断,并将判定与诊断的结果发送给测试者,将测试情感信息反馈给远端服务器。Obtain pupil information, convert test emotional information, judge and diagnose the user's current emotional and mental state, send the judgment and diagnosis results to the tester, and feed back the test emotional information to the remote server.
优选地,所述图像处理步骤如下:Preferably, the image processing steps are as follows:
将采集到的图像转化为灰度图像;Convert the collected image into a grayscale image;
获取灰度图像中参考比对区坐标范围信息,筛选出图像中的参考比对区并剪切,获得参考比对区图像及剪切了参考比对区的待测图像;Obtain the coordinate range information of the reference comparison area in the grayscale image, filter out the reference comparison area in the image and cut it, and obtain the image of the reference comparison area and the image to be tested with the reference comparison area cut;
获取参考比对区图像的灰度值信息,筛选出参考比对区的灰度值区间,获得判断的灰度阈值标准;Obtain the gray value information of the image in the reference comparison area, filter out the gray value range of the reference comparison area, and obtain the gray threshold standard for judgment;
获取灰度阈值标准及待测图像,设置符合灰度阈值标准的待测图像区域灰度为0,不符合灰度阈值标准的待测图像区域灰度为255,获得二值图像;Obtain the grayscale threshold standard and the image to be tested, set the grayscale of the image area to be tested that meets the grayscale threshold standard to 0, and the grayscale of the image area to be tested that does not meet the grayscale threshold standard to 255, and obtain a binary image;
获取二值图像,对该二值图像进行开运算与闭运算,获得图像处理完毕的瞳孔图像。A binary image is obtained, and an opening operation and a closing operation are performed on the binary image to obtain a pupil image after image processing.
优选地,所述情感精神状态判定和诊断方法如下:Preferably, the method for judging and diagnosing the emotional state is as follows:
获取测试情感信息,对情感带宽的宽、窄,不同类型情感带宽出现的次数,情感反应时间的提前与滞后,注意力集中程度进行计算与判定,获得测试者的情感精神特性;Obtain test emotional information, calculate and judge the width and narrowness of emotional bandwidth, the number of occurrences of different types of emotional bandwidth, the advance and lag of emotional response time, and the degree of concentration of attention, and obtain the emotional and spiritual characteristics of the tester;
获取测试者的情感精神特性,对测试者的情感精神状态进行划分处理,获得正性情感精神状态、中性情感精神状态和负性情感精神状态三种情感精神特性类别;Obtain the emotional and mental characteristics of the tester, divide and process the emotional and mental state of the tester, and obtain three emotional and mental characteristics categories: positive emotional mental state, neutral emotional mental state and negative emotional mental state;
获取测试者的情感精神状态分类,对测试者的情感精神状态进行诊断,获得情感精神状态的诊断结果。Obtaining the classification of the tester's emotional mental state, diagnosing the tester's emotional mental state, and obtaining the diagnosis result of the emotional mental state.
本发明的系统实施例中各模块单元的功能可参见本发明方法实施例中的流程处理,这里不再赘述。For the functions of each module unit in the system embodiment of the present invention, refer to the process processing in the method embodiment of the present invention, which will not be repeated here.
实施本发明实施例,由于使用了一种阈值筛选提取瞳孔图像的方法,不仅克服了光瞳孔检测中强烈的光对不同老化程度瞳孔的影响,能够有效地检测出基于瞳孔信息的情感精神状态,同时可以将这种检测方式应用到移动设备当中,在移动医疗方面具有重要意义。Implementing the embodiment of the present invention, due to the use of a method of threshold screening and extraction of pupil images, not only overcomes the influence of strong light on pupils with different aging degrees in pupil detection, but also can effectively detect emotional and mental states based on pupil information, At the same time, this detection method can be applied to mobile devices, which is of great significance in mobile medical care.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图做简单地介绍。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings that are required in the description of the embodiments or the prior art. Apparently, the drawings in the following description are only some embodiments of the present invention, and those skilled in the art can obtain other drawings according to these drawings without creative efforts.
图1是本发明实施例的基于瞳孔信息的情感障碍检测系统的模块示意图;Fig. 1 is the module schematic diagram of the emotional disturbance detection system based on pupil information of the embodiment of the present invention;
图2是本发明实施例的基于瞳孔信息的情感精神状态检测方法的流程示意图;Fig. 2 is the schematic flow chart of the emotional state detection method based on pupil information of the embodiment of the present invention;
图3是本发明实施例的中性信息提取过程方法的流程示意图;3 is a schematic flow diagram of a neutral information extraction process method according to an embodiment of the present invention;
图4是本发明实施例的信息处理过程方法的流程示意图;FIG. 4 is a schematic flowchart of an information processing method according to an embodiment of the present invention;
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
如图1所示,本发明实施例提出了一种基于瞳孔信息的情感精神状态检测系统,该系统包括如下模块:As shown in Figure 1, the embodiment of the present invention proposes a kind of emotional mental state detection system based on pupil information, and this system includes following modules:
情感诱发模块,用于采集正性、中性、负性各三份声音情感诱发材料,利用这些情感材料对测试者进行情感诱发。The emotion-inducing module is used to collect three voice emotion-inducing materials, positive, neutral, and negative, and use these emotional materials to induce emotions in the testers.
信息采集模块,以2s为1帧的速度对当前摄像头拍摄的图像进行采集。The information collection module collects the images captured by the current camera at a rate of 2s as one frame.
信息处理模块,对采集到的每一帧图像进行图像处理;计算图像处理后得到的每一帧瞳孔直径以及瞳孔的注视点坐标,获得瞳孔信息;判断该信息是否属于放松状态下的信息,若属于,则将其视为中性信息,若不属于,则视为非中性信息;将中性信息发送到中性信息处理模块,非中性信息直接发送到信息反馈模块。The information processing module performs image processing on each frame of images collected; calculates the pupil diameter and the fixation point coordinates of the pupils in each frame obtained after image processing, and obtains pupil information; judges whether the information belongs to information in a relaxed state, if If it belongs, it will be regarded as neutral information, if it does not belong, it will be regarded as non-neutral information; the neutral information will be sent to the neutral information processing module, and the non-neutral information will be directly sent to the information feedback module.
中性信息处理模块,对信息处理模块中处理的中性瞳孔直径信息进行整合,计算其平均值作为中性瞳孔直径的参考值,其极大值;The neutral information processing module integrates the neutral pupil diameter information processed in the information processing module, and calculates its average value as the reference value of the neutral pupil diameter, and its maximum value;
信息反馈模块,根据信息处理模块中记录的每一帧瞳孔信息、中性瞳孔直径参考值,对测试者的情感带宽、情感反应时间和注意力集中程度进行计算、记录,获得测试情感信息并反馈至远端服务器。根据测试情感信息与标准情感信息,判定与诊断情感精神状态,获得判定诊断信息并发送给测试者。The information feedback module calculates and records the emotional bandwidth, emotional reaction time and concentration of the tester according to each frame of pupil information recorded in the information processing module and the reference value of the neutral pupil diameter, and obtains test emotional information and gives feedback to the remote server. According to the test emotional information and standard emotional information, determine and diagnose the emotional and mental state, obtain the determination and diagnosis information and send it to the tester.
具体地,所述情感诱发模块包括:Specifically, the emotion induction module includes:
材料捕捉单元。从国际情感数码声音系统库、中国情感数码声音系统库中任意提取:正性情绪刺激材料、中性情绪刺激材料、负性情绪刺激材料各三份。Material capture unit. Randomly extract from the International Emotional Digital Sound System Database and the Chinese Emotional Digital Sound System Database: three copies of positive emotional stimulation materials, neutral emotional stimulation materials, and negative emotional stimulation materials.
材料处理单元。对材料捕捉单元中提取出来的材料进行处理,将各个材料处理为时间长度为10s的播放材料。处理过的材料可缓存于移动设备当中,以便下次捕捉到相同材料时可以直接使用。Material handling unit. The materials extracted from the material capture unit are processed, and each material is processed into a playback material with a time length of 10s. Processed material can be cached in the mobile device so that it can be used directly the next time the same material is captured.
材料播放单元。播放材料处理单元中处理过的正性情绪刺激材料、中性情绪刺激材料、负性情绪刺激材料各三份。material playback unit. Three copies of positive emotion stimulation materials, neutral emotion stimulation materials, and negative emotion stimulation materials processed in the playback material processing unit.
信息传递单元。将各个材料对应的正常的情感带宽、情感反应时间和注意力集中信息及其阈值传递给信息反馈模块,作为标准情感信息。并将标准情感信息传递至信息反馈模块,方便结论比对。Information transfer unit. The normal emotional bandwidth, emotional reaction time and attention concentration information and their thresholds corresponding to each material are passed to the information feedback module as standard emotional information. And pass the standard emotional information to the information feedback module to facilitate comparison of conclusions.
进一步地,所述信息采集模块包括:Further, the information collection module includes:
时间控制单元。以2s为1帧划分时间。Time control unit. Divide time with 2s as 1 frame.
图像采集单元。拍摄每一帧摄像头采集到的图像,并将采集到的图像发送至信息处理模块。Image acquisition unit. The image collected by the camera is captured for each frame, and the collected image is sent to the information processing module.
进一步地,所述信息处理模块包括:Further, the information processing module includes:
图像处理单元。对采集到的图像进行图像处理。image processing unit. Image processing is performed on the collected images.
信息处理单元。对提取的瞳孔二值图像进行边缘检测,提取其边缘点,利用最小二乘法拟合圆求出圆形方程,获得瞳孔中心坐标以及瞳孔直径。information processing unit. Edge detection is performed on the extracted pupil binary image, and its edge points are extracted. The least square method is used to fit the circle to obtain the circular equation, and the pupil center coordinates and pupil diameter are obtained.
信息判断单元。判断该瞳孔信息是否为放松状态下的瞳孔信息。若是,则将其作为中性信息传递至中性信息处理模块,若不是,则将其作为非中性信息传递至信息反馈模块。information judgment unit. It is judged whether the pupil information is pupil information in a relaxed state. If yes, pass it as neutral information to the neutral information processing module, if not, pass it as non-neutral information to the information feedback module.
具体地,所述图像处理处理步骤包括:Specifically, the image processing steps include:
将采集到的图像转化为灰度图像;Convert the collected image into a grayscale image;
获取灰度图像中参考比对区坐标范围信息,筛选出图像中的参考比对区并剪切,获得参考比对区图像及剪切了参考比对区的待测图像;Obtain the coordinate range information of the reference comparison area in the grayscale image, filter out the reference comparison area in the image and cut it, and obtain the image of the reference comparison area and the image to be tested with the reference comparison area cut;
获取参考比对区图像的灰度值信息,筛选出参考比对区的灰度值区间,获得判断的灰度阈值标准;Obtain the gray value information of the image in the reference comparison area, filter out the gray value range of the reference comparison area, and obtain the gray threshold standard for judgment;
获取灰度阈值标准及待测图像,设置符合灰度阈值标准的待测图像区域灰度为0,不符合灰度阈值标准的待测图像区域灰度为255,获得二值图像;Obtain the grayscale threshold standard and the image to be tested, set the grayscale of the image area to be tested that meets the grayscale threshold standard to 0, and the grayscale of the image area to be tested that does not meet the grayscale threshold standard to 255, and obtain a binary image;
进一步地,所述中性信息处理模块包括:Further, the neutral information processing module includes:
中性信息整合单元。提取并缓存五组中性信息中的瞳孔直径数据。Neutral information integration unit. Extract and cache pupil diameter data in five sets of neutral information.
中性信息计算单元。获取所有缓存数据,计算其平均值,获得中性瞳孔直径参考值。获取缓存数据范围以作为中性瞳孔直径阈值范围。Neutral information computing unit. Obtain all cached data, calculate their average value, and obtain the reference value of neutral pupil diameter. Get the cached data range as the neutral pupil diameter threshold range.
进一步地,所述信息反馈模块包括:Further, the information feedback module includes:
反馈信息计算单元。根据收集到的瞳孔信息以及中性瞳孔直径参考值,计算测试者的情感带宽、不同种情感带宽出现的次数以及注意力集中程度,作为参照信息。Feedback information calculation unit. According to the collected pupil information and the reference value of the neutral pupil diameter, the tester's emotional bandwidth, the number of occurrences of different emotional bandwidths, and the degree of concentration of attention are calculated as reference information.
反馈信息记录单元。记录整个测试过程中的参照信息;根据参照信息中的情感带宽数据绘制散点图,并根据该散点图绘制对应的曲线图;计算测试者的情感反应时间;将参照信息与情感反应时间共同作为测试情感信息并通过Internet反馈给远端服务器。远端服务器可以根据收集到的测试情感信息调整数据库中的情感诱发材料,精化注视点阈值范围,完善判定与诊断的方案使测试结果更准确。Feedback information recording unit. Record the reference information throughout the test process; draw a scatter diagram based on the emotional bandwidth data in the reference information, and draw a corresponding curve according to the scatter diagram; calculate the tester's emotional reaction time; combine the reference information with the emotional reaction time As test emotion information and fed back to the remote server through the Internet. The remote server can adjust the emotion-inducing materials in the database according to the collected test emotion information, refine the gaze point threshold range, and improve the judgment and diagnosis scheme to make the test results more accurate.
反馈信息判定单元。比较测试情感信息与标准情感信息,根据比较结果对测试者的情感精神状态进行判定和诊断,获得判定诊断信息并发送到测试者的移动设备中,方便测试者掌握自身的情感精神状态。Feedback information determination unit. Compare the test emotional information with the standard emotional information, judge and diagnose the tester's emotional and mental state according to the comparison results, obtain the judgment and diagnosis information and send it to the tester's mobile device, so that the tester can grasp his own emotional and mental state.
在具体实施例中,情感带宽为信息中的瞳孔直径减去中性瞳孔直径的参考值。In a specific embodiment, the emotional bandwidth is the pupil diameter in the information minus the reference value of the neutral pupil diameter.
进一步地,情感带宽的判定方法为:Further, the judgment method of emotional bandwidth is:
当情感带宽属于中性瞳孔直径的阈值范围时,称之为中性情感带宽;When the emotional bandwidth belongs to the threshold range of neutral pupil diameter, it is called neutral emotional bandwidth;
当情感带宽大于中性瞳孔直径的正向阈值范围时,称之为正性情感带宽;When the affective bandwidth is greater than the positive threshold range of the neutral pupil diameter, it is called positive affective bandwidth;
当情感带宽小于中性瞳孔直径的负向阈值范围时,称之为负性情感带宽,其中,中性瞳孔直径的负向阈值范围为中性瞳孔直径阈值最小值与中性瞳孔直径平均值的差。When the emotional bandwidth is smaller than the negative threshold range of the neutral pupil diameter, it is called the negative emotional bandwidth. The negative threshold range of the neutral pupil diameter is the minimum value of the neutral pupil diameter threshold and the average value of the neutral pupil diameter. Difference.
在具体实例中,注意力集中程度为根据瞳孔的中心坐标偏离于规定注视点及其规定阈值范围的次数划分的程度等级。偏离的次数越多,注意力集中程度等级就越低;相反,偏离次数越少,注意力集中程度等级越高。In a specific example, the degree of concentration of attention is graded according to the number of times that the central coordinates of the pupil deviate from the prescribed fixation point and its prescribed threshold range. The greater the number of deviations, the lower the level of concentration; conversely, the less the number of deviations, the higher the level of concentration.
进一步地,注意力集中程度等级包括:Further, the degree of concentration level includes:
A等级,表示瞳孔偏离次数在五次以内;Grade A means that the number of pupil deviations is within five times;
B等级,表示瞳孔偏离次数在五次以上,十次以下;Grade B means that the number of pupil deviations is more than five times and less than ten times;
C等级,表示瞳孔偏离次数在十次以上,十五次以下;Grade C means that the number of pupil deviations is more than 10 times and less than 15 times;
D等级,表示瞳孔偏离次数超过十五次。Grade D, indicating that the number of pupil deviations exceeds fifteen times.
在具体实施例中,情感反应时间为从一份材料播放开始到该材料开始播放后,情感带宽第一次大于中性情感带宽上界或小于中性情感带宽下界的时间。这个时间我们可以通过反馈信息记录单元绘制的曲线图得到。若该材料播放期间未出现情感带宽大于或小于中性情感带宽上、下界的情况,则记录该情感反应时间为∞,意为未明确出现情感反应现象。In a specific embodiment, the emotional reaction time is the time from the start of playing a piece of material to the time when the emotional bandwidth is greater than the upper bound of the neutral emotional bandwidth or lower than the lower bound of the neutral emotional bandwidth for the first time after the material starts to play. We can obtain this time through the graph drawn by the feedback information recording unit. If the emotional bandwidth is not greater or smaller than the upper and lower bounds of the neutral emotional bandwidth during the playback of the material, record the emotional response time as ∞, which means that there is no clear emotional response phenomenon.
相应地,如图2所示,本发明实施例还提出了一种基于瞳孔信息的情感精神状态检测方法,该方法包括:Correspondingly, as shown in FIG. 2, an embodiment of the present invention also proposes a method for detecting emotional and mental states based on pupil information, the method comprising:
步骤S1:给予测试者10s放松时间,以2s为1帧对测试者进行中性瞳孔直径信息提取,计算得到中性瞳孔直径的参考值。Step S1: Give the tester a relaxation time of 10s, extract the neutral pupil diameter information from the tester with 2s as a frame, and calculate the reference value of the neutral pupil diameter.
步骤S2:提取情感诱发材料,对测试者进行情感诱发。Step S2: extract emotion-inducing materials, and induce emotion on testers.
步骤S3:以2s作为1帧采集测试者的瞳孔图像。Step S3: Take 2s as one frame to collect the tester's pupil image.
步骤S4:对采集到的图像进行信息处理,得到瞳孔直径与瞳孔的中心坐标。Step S4: Perform information processing on the collected images to obtain the pupil diameter and pupil center coordinates.
步骤S5:。根据处理后得到的瞳孔信息计算情感带宽、情感反应时间以及注意力集中程度,并对用户当前的情感精神状态进行判定。Step S5: . According to the processed pupil information, the emotional bandwidth, emotional reaction time and concentration degree are calculated, and the user's current emotional state is judged.
在具体实例中,测试者必须在自然光线充足的位置进行测量,除移动设备外还需准备一张参考比对卡;In a specific example, the tester must take the measurement in a location with sufficient natural light, and prepare a reference comparison card in addition to the mobile device;
具体地,所述参考比对卡为一种与瞳孔成像反应相同的黑色磁条卡。Specifically, the reference comparison card is a black magnetic stripe card with the same pupil imaging response.
参考比对卡应放置在与双眼同一水平面,经移动设备摄像头拍摄,成像于屏幕给出的参考比对区内;The reference comparison card should be placed on the same level as the eyes, and it will be captured by the camera of the mobile device and imaged in the reference comparison area given on the screen;
移动设备的摄像头需要放在距离测试者30cm的位置,与眼睛在同一水平线上,并且垂直于两眼之间的鼻梁处;The camera of the mobile device needs to be placed 30cm away from the tester, on the same level as the eyes, and perpendicular to the bridge of the nose between the eyes;
测试过程中,测试者需要将注意力集中于视点坐标上;During the test, the tester needs to focus on the coordinates of the viewpoint;
测试过程中,测试者需要保证经过移动设备摄像头拍摄后,参考比对卡在屏幕上的成像能填满屏幕所示的参考比对区。During the test, the tester needs to ensure that the image of the reference comparison card on the screen can fill the reference comparison area shown on the screen after being photographed by the camera of the mobile device.
在具体实例中,如图3所示,步骤S1包括:In a specific example, as shown in Figure 3, step S1 includes:
S11,给予测试者10s的放松时间,以2s为1帧采集此时的图像信息。S11, give the tester a relaxation time of 10s, and collect the image information at this time with 2s as one frame.
S12,将采集到的图像传输至信息处理模块,对采集到的图像做图像处理,并提取其中的瞳孔直径d0j与瞳孔的注视点坐标(x0jk,y0jk),作为瞳孔信息。其中0代表这是测试第一步提取的中性信息,j代表对应的帧数,k代表左右眼,当k=0时认为k代表左眼,当k=1时认为k代表右眼,d代表直径,x代表图像形态学中的横坐标,y代表图像形态学中的纵坐标。S12, transmit the collected image to the information processing module, perform image processing on the collected image, and extract the pupil diameter d 0j and the gaze point coordinates (x 0jk , y 0jk ) of the pupil as pupil information. Among them, 0 represents the neutral information extracted in the first step of the test, j represents the corresponding frame number, k represents the left and right eyes, when k=0, k represents the left eye, when k=1, k represents the right eye, d Represents the diameter, x represents the abscissa in image morphology, and y represents the ordinate in image morphology.
S13,判断瞳孔信息是否属于10s放松时间采集到的信息,若属于则将信息传输至中性信息处理模块。S13, judging whether the pupil information belongs to the information collected during the 10s relaxation time, and if so, transmitting the information to the neutral information processing module.
S14,计算其平均值d0作为中性瞳孔直径参考值,将测试得到的极大值与极小值作为测试者的中性瞳孔直径阈值边界。S14, calculate the average value d 0 as the reference value of the neutral pupil diameter, and use the maximum value and minimum value obtained from the test as the tester's neutral pupil diameter threshold boundary.
具体地,步骤S2包括:Specifically, step S2 includes:
S21,从国际情感数码声音系统库、中国情感数码声音系统库中,抽取正性、中性、负性情绪刺激材料各三份。S21. From the International Emotional Digital Sound System Database and the Chinese Emotional Digital Sound System Database, three copies of positive, neutral and negative emotional stimulation materials are extracted respectively.
S22,判断移动设备中是否缓存了抽取材料所对应的播放材料处件。若未缓存,则将抽取材料处理成为长度为10s的播放材料,并将播放材料缓存入移动设备中,以便下次抽取到相同材料时可以直接从移动设备中提取调用相应的播放材料;若已缓存,则直接从移动设备中调用与抽取材料相对应的播放材料。S22. Determine whether the playback material file corresponding to the extracted material is cached in the mobile device. If it is not cached, the extracted material will be processed into a playback material with a length of 10s, and the playback material will be cached in the mobile device, so that the next time the same material is extracted, the corresponding playback material can be directly extracted from the mobile device; cache, then directly call the playback material corresponding to the extracted material from the mobile device.
S23,播放材料处理后的所有播放材料。S23, playing all the playing materials after the material processing.
S24,将与所有播放材料对应的标准情感信息传递到信息反馈模块。S24. Transmit the standard emotion information corresponding to all playing materials to the information feedback module.
具体地,如图4所示,步骤S4包括:Specifically, as shown in Figure 4, step S4 includes:
S41,将采集到的图像转化为灰度图像。S41, converting the collected image into a grayscale image.
S42,获取图像中参考比对区坐标范围信息,筛选出图像中的参考比对区并剪切,获得参考比对区图像及剪切了参考比对区的待测图像。S42. Obtain the coordinate range information of the reference comparison area in the image, filter out the reference comparison area in the image and cut it, and obtain the image of the reference comparison area and the image to be tested with the reference comparison area cut out.
S43,从参考比对区图像中提取参考比对区出现过的灰度gxy,根据提取的所有灰度gxy对参考比对区的灰度区间进行划分,作为灰度阈值标准。S43, extracting the gray levels g xy that have appeared in the reference comparison area from the image of the reference comparison area, and dividing the gray level intervals of the reference comparison area according to all the extracted gray levels g xy , as gray threshold standards.
S44,将所述灰度阈值标准带入待测图像中,筛选出待测图像中符合灰度阈值标准的部分,设置灰度为0,筛选出不符合灰度阈值标准的部分,设置灰度为255,获得二值图像。S44, bringing the grayscale threshold standard into the image to be tested, screening out the parts of the image to be tested that meet the grayscale threshold standard, setting the grayscale to 0, screening out the parts that do not meet the grayscale threshold standard, and setting the grayscale For 255, a binary image is obtained.
S45,将圆形模板套用于二值图像中,对二值图像进行形态学的开运算与闭运算,获得瞳孔图像。利用闭运算可以填补瞳孔中可能被滤除的亮斑,利用开运算可以将除瞳孔以外的细小的暗斑滤除。S45, apply the circular template to the binary image, and perform morphological opening and closing operations on the binary image to obtain a pupil image. The closed operation can be used to fill in the bright spots that may be filtered out in the pupil, and the open operation can be used to filter out small dark spots other than the pupil.
S46,提取瞳孔图像的边缘信息,采集瞳孔图像的边界点。S46, extract edge information of the pupil image, and collect boundary points of the pupil image.
S47,根据这些边界点对图像进行最小二乘法拟合圆,即可得到边界拟合圆在图像中的坐标方程,进而得到瞳孔的中心坐标值(xijk,yijk)和瞳孔半径rij。将瞳孔半径rij乘以2,即可得到瞳孔直径dij。其中,i代表了这是第i份情感刺激材料,r代表半径。S47, according to these boundary points, the least square method is used to fit the circle to the image, and then the coordinate equation of the boundary fitting circle in the image can be obtained, and then the center coordinate value (x ijk , y ijk ) of the pupil and the pupil radius r ij can be obtained. The pupil diameter d ij can be obtained by multiplying the pupil radius r ij by 2. Among them, i represents that this is the i-th emotional stimulation material, and r represents the radius.
具体地,步骤S5包括:Specifically, step S5 includes:
S51,根据信息处理得到的瞳孔直径与瞳孔的中心坐标信息计算相应的情感带宽、不同情感带宽的出现次数及注意力集中程度。S51. Calculate the corresponding emotional bandwidth, the number of occurrences of different emotional bandwidths, and the degree of concentration according to the pupil diameter and pupil center coordinate information obtained through information processing.
S52,根据瞳孔带宽矩阵信息,以瞳孔带宽为纵坐标,测试过程中的帧为横坐标,绘制测试过程中瞳孔带宽变化的散点图,并在散点图的基础上绘制瞳孔带宽变化估计曲线图。S52, according to the pupil bandwidth matrix information, with the pupil bandwidth as the ordinate and the frame during the test as the abscissa, draw a scatter diagram of the pupil bandwidth change during the test, and draw a pupil bandwidth change estimation curve on the basis of the scatter diagram picture.
S53,根据绘制得到的瞳孔带宽变化估计曲线图,找出曲线图中从一份材料播放开始到该材料开始播放后,情感带宽第一次大于中性情感带宽上界或小于中性情感带宽下界的时间,作为情感反应时间。如果该材料播放期间未出现情感带宽大于或小于中性情感带宽上、下界的情况,则记录该情感反应时间为∞,意为未明确出现情感反应现象。S53, according to the drawn pupil bandwidth change estimation curve, find out in the graph from the start of playing a piece of material to after the material starts to play, the emotional bandwidth is greater than the upper bound of the neutral emotional bandwidth or smaller than the lower bound of the neutral emotional bandwidth for the first time time, as emotional reaction time. If there is no emotional bandwidth greater or smaller than the upper and lower bounds of the neutral emotional bandwidth during the playback of the material, record the emotional response time as ∞, which means that there is no clear emotional response phenomenon.
S54,将测试者的情感带宽、情感反应时间、注意力集中程度作为情感信息,与正常值相比较,对测试者的情感精神状态进行判定与诊断。S54, taking the tester's emotional bandwidth, emotional reaction time, and concentration as emotional information, and comparing them with normal values to judge and diagnose the tester's emotional and mental state.
在具体实例中,S51所述情感带宽的计算方法如下:In a specific example, the calculation method of the emotional bandwidth described in S51 is as follows:
根据瞳孔直径信息计算相应的情感带宽bij,其中bij=dij-d0。当情感带宽属于中性瞳孔直径的阈值范围时,称之为中性情感带宽;当情感带宽大于中性瞳孔直径的正向阈值范围时,称之为正性情感带宽;当情感带宽小于中性瞳孔直径的负向阈值范围时,称之为负性情感带宽。The corresponding affective bandwidth b ij is calculated according to the pupil diameter information, where b ij =d ij -d 0 . When the emotional bandwidth belongs to the threshold range of neutral pupil diameter, it is called neutral emotional bandwidth; when the emotional bandwidth is greater than the positive threshold range of neutral pupil diameter, it is called positive emotional bandwidth; when the emotional bandwidth is less than neutral pupil diameter, it is called positive emotional bandwidth. The negative threshold range of pupil diameter is called negative affective bandwidth.
设置瞳孔带宽矩阵,用于记录瞳孔带宽的带宽信息。Set the pupil bandwidth matrix, which is used to record the bandwidth information of the pupil bandwidth.
其中,矩阵行表示情感刺激任务的个数,矩阵列表示对应矩阵行情感刺激任务下的帧数,B表示的是瞳孔带宽矩阵,b表示的是该矩阵行列下对应的瞳孔带宽长度。Among them, the matrix row represents the number of emotional stimulation tasks, the matrix column represents the number of frames under the emotional stimulation task corresponding to the matrix row, B represents the pupil bandwidth matrix, and b represents the corresponding pupil bandwidth length under the matrix row and column.
具体地,S51所述不同种情感带宽出现次数的计算方法如下:Specifically, the calculation method of the number of occurrences of different emotional bandwidths described in S51 is as follows:
根据瞳孔带宽矩阵信息计算正性情感带宽、中性情感带宽、负性情感带宽各出现的次数,作为不同种情感带宽出现的次数。According to the information of the pupil bandwidth matrix, the number of occurrences of positive emotional bandwidth, neutral emotional bandwidth and negative emotional bandwidth is calculated as the number of occurrences of different emotional bandwidths.
具体地,S51所述注意力集中程度的计算方法如下:Specifically, the calculation method of the degree of concentration of attention described in S51 is as follows:
根据瞳孔的中心坐标信息计算得到瞳孔的中心偏离注视点的次数。设置瞳孔偏离矩阵A,用于记录瞳孔的偏离信息。The number of times the center of the pupil deviates from the gaze point is calculated according to the center coordinate information of the pupil. The pupil deviation matrix A is set to record the pupil deviation information.
其中,矩阵行表示第i份情感刺激任务,矩阵列表示对应矩阵行情感刺激任务下的帧数,S记录瞳孔是否偏离,当其值为1时表示偏离,当其值为0时表示未偏离。Among them, the matrix row represents the i-th emotional stimulation task, the matrix column represents the number of frames under the emotional stimulation task corresponding to the matrix row, S records whether the pupil deviates, when its value is 1, it means deviation, when its value is 0, it means no deviation .
利用勾股定理求得瞳孔中心与注视点中心之间的距离:Use the Pythagorean theorem to find the distance between the center of the pupil and the center of the fixation point:
其中D表示瞳孔中心与注视点中心之间的距离。where D represents the distance between the center of the pupil and the center of the fixation point.
当Dijk大于注视点的中心阈值的时候,则Sij置为1,表明该图像中的瞳孔中心偏离了注视点。若Dijk在注视点的中心阈值内,则Sij置为0,表明该图像中的瞳孔中心未偏离注视点。只要任一瞳孔偏离,都算作产生了该情感刺激任务对应帧的瞳孔偏离。When D ijk is greater than the center threshold of the fixation point, S ij is set to 1, indicating that the pupil center in the image deviates from the fixation point. If D ijk is within the center threshold of the gaze point, then S ij is set to 0, indicating that the pupil center in the image does not deviate from the gaze point. As long as any pupil deviates, it is counted as producing the pupil deviation of the frame corresponding to the emotional stimulation task.
根据测试过程中瞳孔偏离的次数,将注意力集中程度划分为四个等级:According to the number of pupil deviations during the test, the degree of concentration is divided into four grades:
A等级为瞳孔偏离次数在五次以内;Grade A means that the number of pupil deviations is within five times;
B等级为瞳孔偏离次数在五次以上,十次以下;Grade B means that the number of pupil deviations is more than five times and less than ten times;
C等级为瞳孔偏离次数在十次以上,十五次以下;Grade C means that the number of pupil deviations is more than ten times and less than fifteen times;
D等级为瞳孔偏离次数超过十五次。Grade D refers to pupil deviation more than fifteen times.
进一步地,S54所述情感精神状态的判定与诊断包括:Further, the determination and diagnosis of the emotional and mental state described in S54 includes:
S541,获取测试情感信息,与标准情感信息相比较,对情感带宽的宽、窄,不同类型情感带宽出现的次数,情感反应时间的提前与滞后,注意力集中程度进行判定,获得测试者的情感精神特性。S541, obtain test emotion information, compare it with standard emotion information, determine the width and narrowness of emotion bandwidth, the number of occurrences of different types of emotion bandwidth, the advance and lag of emotional response time, and the degree of concentration, and obtain the emotion of the tester Spirituality.
S542,根据判定的测试者的情感精神特性,为测试者的情感精神状态进行分类。S542. Classify the emotional and mental state of the tester according to the determined emotional and mental characteristics of the tester.
S543,根据测试者的情感精神状态分类,给予测试者相关建议,当不存在负性情感精神状态时,应提醒测试者保持状态;当存在一种或两种负性情感精神状态时,应提醒测试者需要调整心情;当存在两种以上负性情感精神状态时,应提醒测试者需要咨询相关心理医生,调整精神状态。S543. According to the classification of the tester’s emotional state, give relevant suggestions to the tester. When there is no negative emotional state, the tester should be reminded to maintain the state; when there are one or two negative emotional states, the tester should be reminded The tester needs to adjust his mood; when there are more than two negative emotional mental states, the tester should be reminded to consult a relevant psychologist to adjust his mental state.
具体地,S541所述情感带宽的宽、窄判定方法如下:Specifically, the wide and narrow judgment method of the emotional bandwidth described in S541 is as follows:
当测试的正性、负性情感带宽的绝对值大于正常情况下的正性、负性情感带宽的绝对值及其阈值时,则判定为正性、负性情感反应过激;When the absolute value of the positive and negative affective bandwidth of the test is greater than the absolute value of the positive and negative affective bandwidth and its threshold under normal conditions, it is judged as positive and negative affective overreaction;
当测试的正性、负性情感带宽的绝对值小于正常情况下正性、负性情感带宽的绝对值及其阈值时,则判定为正性、负性情感反应不敏感;When the absolute value of the positive and negative affective bandwidth of the test is less than the absolute value of the positive and negative affective bandwidth and its threshold under normal conditions, it is determined that the positive and negative affective responses are insensitive;
当测试的正性、负性情感带宽的绝对值在正常情况下正性、负性情感带宽的绝对值阈值内,则判定为正性、负性情感反应正常;When the absolute value of the positive and negative affective bandwidth of the test is within the absolute value threshold of the positive and negative affective bandwidth under normal circumstances, it is determined that the positive and negative affective responses are normal;
具体地,S541所述不同类型情感带宽出现次数判定方法如下:Specifically, the method for judging the number of occurrences of different types of emotional bandwidth described in S541 is as follows:
当测试的中性情感带宽出现次数多于正性、负性情感带宽出现次数时,则判定为情感精神反应障碍;When the frequency of neutral emotional bandwidth in the test is more than that of positive and negative emotional bandwidth, it is judged as affective mental response disorder;
当测试的负性情感带宽出现次数多于正性、中性情感带宽出现次数时,则判定为情感精神反应消极;When the negative emotional bandwidth of the test appears more than the positive and neutral emotional bandwidth, it is judged as a negative emotional mental response;
当测试的正性情感带宽出现次数多于负性、中性情感带宽出现次数时,则判定为情感精神反应积极;When the number of occurrences of positive emotional bandwidth in the test is more than that of negative and neutral emotional bandwidth, it is judged as a positive emotional and mental response;
当测试的正性、中性、负性情感带宽出现次数相等时,则判定为情感精神状态正常;When the positive, neutral, and negative emotional bandwidths of the test appear in equal numbers, the emotional and mental state is judged to be normal;
具体地,S541所述情感反应时间提前与滞后判定方法如下:Specifically, the method for judging the advance and lag of the emotional response time described in S541 is as follows:
当测试的情感反应时间提前时,则判定为情感反应积极;When the emotional response time of the test is advanced, it is judged as a positive emotional response;
当测试的情感反应时间滞后时,则判定为情感反应迟钝;When the emotional response time of the test is delayed, it is judged as emotionally unresponsive;
当测试的情感反应时间在阈值内,则判定为情感反应时间正常;When the emotional reaction time of the test is within the threshold, it is judged that the emotional reaction time is normal;
具体地,S541所述注意力集中程度判定方法如下:Specifically, the method for determining the degree of concentration of attention described in S541 is as follows:
S5411,根据瞳孔偏离矩阵计算出现在正性、中性、负性情感带宽下瞳孔偏离的次数。S5411. Calculate the number of pupil deviations occurring in positive, neutral and negative emotional bandwidths according to the pupil deviation matrix.
S5412,根据正性、中性、负性情感带宽下瞳孔偏离的次数,对测试者的情感精神集中特性进行判定。S5412. According to the number of pupil deviations under positive, neutral, and negative emotional bandwidths, determine the emotional concentration characteristics of the tester.
进一步地,情感精神集中特性判定方法如下:Further, the method for judging the characteristics of emotional concentration is as follows:
当注视点偏离的次数主要出现在正性、中性情感带宽下时,则判定负性情感精神集中。When the number of fixation deviations mainly appears in the bandwidth of positive and neutral emotions, it is judged that the concentration of negative emotions is concentrated.
当注视点偏离次数主要出现在中性、负性情感带宽下时,则判定为正性情感精神集中。When the number of fixation deviations mainly appears in the neutral and negative emotional bandwidth, it is judged as positive emotional concentration.
具体地,S542所述测试者的情感精神状态分类方法如下:Specifically, the emotional and mental state classification method of the tester described in S542 is as follows:
根据测试者的情感精神状态判定,将测试者的情感精神状态分为正性情感精神状态、中性情感精神状态和负性情感精神状态。According to the emotional mental state of the testers, the emotional mental state of the testers is divided into positive emotional mental state, neutral emotional mental state and negative emotional mental state.
正性情感精神状态为:情感精神状态积极,情感反应积极,正性情感精神集中,A等级注意力集中程度;Positive emotional mental state is: positive emotional mental state, positive emotional response, positive emotional concentration, A level of concentration;
中性情感精神状态为:正性、负性情感反应正常,情感精神状态正常,情感反应时间正常,B、C等级注意力集中程度;Neutral emotional mental state is: positive and negative emotional reactions are normal, emotional mental state is normal, emotional reaction time is normal, B and C levels of concentration;
负性情感精神状态为:正性、负性情感反应过激,正性、负性情感反应不敏感,情感精神反应障碍,情感精神反应消极,情感反应迟钝,负性情感精神集中,D等级注意力集中程度。Negative affective mental states include: positive and negative affective overreaction, positive and negative affective insensitivity, affective mental response disturbance, negative affective mental response, emotional unresponsiveness, negative affective concentration, D-level attention concentration.
实施本发明实施例,由于使用了一种阈值筛选提取瞳孔图像的方法,不仅克服了光瞳孔检测中强烈的光对不同老化程度瞳孔的影响,能够有效地检测出基于瞳孔信息的情感精神状态,同时可以将这种检测方式应用到移动设备当中,在移动医疗方面具有重要意义。Implementing the embodiment of the present invention, due to the use of a method of threshold screening and extraction of pupil images, not only overcomes the influence of strong light on pupils with different aging degrees in pupil detection, but also can effectively detect emotional and mental states based on pupil information, At the same time, this detection method can be applied to mobile devices, which is of great significance in mobile medical care.
另外,以上对本发明实施例所提供的基于瞳孔信息的情感精神状态检测系统及方法进行了详细的介绍,以上实施例的说明只是用于帮助理解本发明的方法及核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用方式上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。In addition, the pupil information-based emotional and mental state detection system and method provided by the embodiments of the present invention have been described in detail above. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present invention; Those of ordinary skill in the art, according to the idea of the present invention, will have changes in the specific implementation and application methods. In summary, the content of this specification should not be construed as limiting the present invention.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710714286.3A CN107610099A (en) | 2017-08-18 | 2017-08-18 | A kind of emotion state of mind detecting system and method based on pupil information |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710714286.3A CN107610099A (en) | 2017-08-18 | 2017-08-18 | A kind of emotion state of mind detecting system and method based on pupil information |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107610099A true CN107610099A (en) | 2018-01-19 |
Family
ID=61065054
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710714286.3A Pending CN107610099A (en) | 2017-08-18 | 2017-08-18 | A kind of emotion state of mind detecting system and method based on pupil information |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107610099A (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109223006A (en) * | 2018-10-26 | 2019-01-18 | 首都医科大学附属北京安定医院 | A kind of schizophrenia diagnosis system |
| CN110427848A (en) * | 2019-07-23 | 2019-11-08 | 京东方科技集团股份有限公司 | A kind of psychoanalysis system |
| CN111160104A (en) * | 2019-12-02 | 2020-05-15 | 中国联合网络通信集团有限公司 | An attention analysis method and device |
| CN113017632A (en) * | 2021-03-17 | 2021-06-25 | 陈思 | Smart campus psychological consultation auxiliary method and system |
| CN113271852A (en) * | 2019-01-21 | 2021-08-17 | 三菱电机株式会社 | Attention determination device, attention determination system, attention determination method, and program |
| CN113855022A (en) * | 2021-10-11 | 2021-12-31 | 北京工业大学 | Emotion evaluation method and device based on eye movement physiological signals |
| WO2023060719A1 (en) * | 2021-10-11 | 2023-04-20 | 北京工业大学 | Method, apparatus, and system for calculating emotional indicators based on pupil waves |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100191156A1 (en) * | 2007-06-27 | 2010-07-29 | Kiyomi Sakamoto | Human state estimating device and method |
| CN104000602A (en) * | 2014-04-14 | 2014-08-27 | 北京工业大学 | Emotional bandwidth determination method and emotional damage judgment method |
| CN105559802A (en) * | 2015-07-29 | 2016-05-11 | 北京工业大学 | Tristimania diagnosis system and method based on attention and emotion information fusion |
-
2017
- 2017-08-18 CN CN201710714286.3A patent/CN107610099A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100191156A1 (en) * | 2007-06-27 | 2010-07-29 | Kiyomi Sakamoto | Human state estimating device and method |
| CN104000602A (en) * | 2014-04-14 | 2014-08-27 | 北京工业大学 | Emotional bandwidth determination method and emotional damage judgment method |
| CN105559802A (en) * | 2015-07-29 | 2016-05-11 | 北京工业大学 | Tristimania diagnosis system and method based on attention and emotion information fusion |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109223006A (en) * | 2018-10-26 | 2019-01-18 | 首都医科大学附属北京安定医院 | A kind of schizophrenia diagnosis system |
| CN113271852A (en) * | 2019-01-21 | 2021-08-17 | 三菱电机株式会社 | Attention determination device, attention determination system, attention determination method, and program |
| CN113271852B (en) * | 2019-01-21 | 2024-07-02 | 三菱电机株式会社 | Attention judging device, attention judging system, attention judging method, and computer-readable storage medium |
| CN110427848A (en) * | 2019-07-23 | 2019-11-08 | 京东方科技集团股份有限公司 | A kind of psychoanalysis system |
| CN110427848B (en) * | 2019-07-23 | 2022-04-12 | 京东方科技集团股份有限公司 | Mental analysis system |
| CN111160104A (en) * | 2019-12-02 | 2020-05-15 | 中国联合网络通信集团有限公司 | An attention analysis method and device |
| CN113017632A (en) * | 2021-03-17 | 2021-06-25 | 陈思 | Smart campus psychological consultation auxiliary method and system |
| CN113017632B (en) * | 2021-03-17 | 2022-11-11 | 陈思 | A kind of intelligent campus psychological counseling auxiliary method and system |
| CN113855022A (en) * | 2021-10-11 | 2021-12-31 | 北京工业大学 | Emotion evaluation method and device based on eye movement physiological signals |
| WO2023060719A1 (en) * | 2021-10-11 | 2023-04-20 | 北京工业大学 | Method, apparatus, and system for calculating emotional indicators based on pupil waves |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107610099A (en) | A kind of emotion state of mind detecting system and method based on pupil information | |
| US12093871B2 (en) | Ocular system to optimize learning | |
| US20210022670A1 (en) | Systems and methods for diagnosing sleep | |
| CN113693552A (en) | Visual fatigue monitoring method and device, electronic equipment and readable storage medium | |
| CN109222888B (en) | A method for judging the reliability of psychological tests based on eye tracking technology | |
| CN114792553B (en) | A method and system for screening student mental health groups | |
| CN111012367A (en) | An intelligent identification system for mental illness | |
| US20090062680A1 (en) | Artifact detection and correction system for electroencephalograph neurofeedback training methodology | |
| WO2018222897A1 (en) | Smartphone-based digital pupillometer | |
| Martinez et al. | A real-time stress classification system based on arousal analysis of the nervous system by an F-state machine | |
| CN108652587B (en) | Cognitive dysfunction prevention monitoring devices | |
| CN112890815A (en) | Autism auxiliary evaluation system and method based on deep learning | |
| CN109770921A (en) | Method and device for early language and cognitive ability screening in children with autism | |
| Zhou et al. | Gaze patterns in children with autism spectrum disorder to emotional faces: Scanpath and similarity | |
| CN109805944B (en) | A system for analyzing children's empathy ability | |
| CN105512500A (en) | Method for rapidly screening characteristic of schizophrenia and evaluating therapeutic effect | |
| Wang et al. | Detecting disorders of consciousness in brain injuries from EEG connectivity through machine learning | |
| CN211862821U (en) | A deep learning-based auxiliary assessment system for autism | |
| CN113990498A (en) | A user memory state early warning system and method | |
| CN116058801A (en) | Evaluation device, evaluation system, and medium for brain function status of autistic children | |
| CN115661101A (en) | Detection system for retinopathy of prematurity based on random sampling and deep learning | |
| CN115793847A (en) | A teaching system for monitoring students' online class status | |
| CN119440250A (en) | A consciousness disorder assisted communication system integrating eye tracking and electroencephalography | |
| Jagadeesan et al. | Behavioral features based autism spectrum disorder detection using decision trees | |
| TWI819919B (en) | Early assistive diagnosis system of adhd |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180119 |
|
| RJ01 | Rejection of invention patent application after publication |