[go: up one dir, main page]

CN108338778A - A method for detecting user sleep state - Google Patents

A method for detecting user sleep state Download PDF

Info

Publication number
CN108338778A
CN108338778A CN201810143469.9A CN201810143469A CN108338778A CN 108338778 A CN108338778 A CN 108338778A CN 201810143469 A CN201810143469 A CN 201810143469A CN 108338778 A CN108338778 A CN 108338778A
Authority
CN
China
Prior art keywords
user
wearable device
sleep state
smart wearable
time
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
Application number
CN201810143469.9A
Other languages
Chinese (zh)
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.)
Dongguan Huarui Electronic Technology Co ltd
Original Assignee
Dongguan Huarui Electronic Technology Co ltd
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 Dongguan Huarui Electronic Technology Co ltd filed Critical Dongguan Huarui Electronic Technology Co ltd
Priority to CN201810143469.9A priority Critical patent/CN108338778A/en
Publication of CN108338778A publication Critical patent/CN108338778A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/48Other medical applications
    • A61B5/4806Sleep evaluation
    • A61B5/4809Sleep detection, i.e. determining whether a subject is asleep or not
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/0059Measuring for diagnostic purposes; Identification of persons using light, e.g. diagnosis by transillumination, diascopy, fluorescence
    • A61B5/0077Devices for viewing the surface of the body, e.g. camera, magnifying lens
    • 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/1118Determining activity level
    • 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/1121Determining geometric values, e.g. centre of rotation or angular range of movement
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/68Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
    • A61B5/6801Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient specially adapted to be attached to or worn on the body surface
    • 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/18Eye characteristics, e.g. of the iris
    • G06V40/197Matching; Classification

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Veterinary Medicine (AREA)
  • Public Health (AREA)
  • Animal Behavior & Ethology (AREA)
  • Biophysics (AREA)
  • Pathology (AREA)
  • Surgery (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Physiology (AREA)
  • Dentistry (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Ophthalmology & Optometry (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Anesthesiology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Psychiatry (AREA)
  • Signal Processing (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

本发明一种用户睡眠状态检测方法,用户睡眠状态通过智能穿戴式设备检测,其特征在于,所述检测方法包括以下步骤:所述智能穿戴式设备检测自身是否被穿戴于用户;若被穿戴于用户,则所述智能穿戴式设备启动内置的多轴加速度仪;所述智能穿戴式设备通过所述多轴加速度仪检测用户的运动幅度;判断预定的时间内所述用户的运动幅度与预置数值的关系;确定所述用户是否处于睡眠状态。本发明中,使用多轴加速度仪来检测用户的运动,用户无论在深度睡眠中,还是在浅度睡眠中,运动幅度的变化较为统一,所以智能穿戴式设备可以更准确的确定用户的睡眠状态。

The present invention provides a method for detecting the sleep state of a user, wherein the sleep state of the user is detected by a smart wearable device, and the method is characterized in that the detection method comprises the following steps: the smart wearable device detects whether it is worn by the user; if it is worn by the user, the smart wearable device starts a built-in multi-axis accelerometer; the smart wearable device detects the user's movement amplitude through the multi-axis accelerometer; determines the relationship between the user's movement amplitude and a preset value within a predetermined time; and determines whether the user is in a sleep state. In the present invention, a multi-axis accelerometer is used to detect the user's movement, and the change in the movement amplitude is relatively uniform whether the user is in deep sleep or in shallow sleep, so the smart wearable device can more accurately determine the user's sleep state.

Description

一种用户睡眠状态检测方法A method for detecting user sleep state

技术领域technical field

本发明数据处理领域,尤其涉及一种用户睡眠状态检测方法。The invention relates to the field of data processing, in particular to a method for detecting a sleep state of a user.

技术领域technical field

智能穿戴式设备近年来不断的发展,用户对于智能穿戴式设备的功能要求也不断提高。With the continuous development of smart wearable devices in recent years, users' requirements for the functions of smart wearable devices have also been continuously improved.

现有技术中的智能穿戴式设备(例如智能手环)能够检测用户是否处于睡眠状态,从而进行其他信息的监测。Smart wearable devices (such as smart bracelets) in the prior art can detect whether the user is in a sleep state, so as to monitor other information.

现有的智能手环是通过心跳传感器进行检测,当获知在某一段时长内用户的心跳变化率较低时,则据此确定用户已经入睡。Existing smart bracelets are detected by a heartbeat sensor, and when it is known that the rate of change of the user's heartbeat is low within a certain period of time, it is determined that the user has fallen asleep accordingly.

但是,入睡过程分为深度睡眠和浅度睡眠,不同睡眠情况下的心跳会发生变化,因此影响了智能手环确定用户睡眠状态的准确性。However, the process of falling asleep is divided into deep sleep and light sleep, and the heartbeat will change under different sleep conditions, thus affecting the accuracy of the smart bracelet to determine the user's sleep state.

发明内容Contents of the invention

本发明提供了一种用户睡眠状态检测方法,能够准确的检测用户睡眠状态。The invention provides a user sleep state detection method, which can accurately detect the user sleep state.

为了达到上述目的,本发明采用如下技术方案:一种用户睡眠状态检测方法,用户睡眠状态通过智能穿戴式设备检测,其特征在于,所述检测方法包括以下步骤:In order to achieve the above object, the present invention adopts the following technical solution: a user sleep state detection method, the user sleep state is detected by a smart wearable device, characterized in that the detection method includes the following steps:

所述智能穿戴式设备检测自身是否被穿戴于用户;The smart wearable device detects whether it is worn by the user;

若被穿戴于用户,则所述智能穿戴式设备启动内置的多轴加速度仪;If worn by the user, the smart wearable device activates the built-in multi-axis accelerometer;

所述智能穿戴式设备通过所述多轴加速度仪检测用户的运动幅度;The smart wearable device detects the user's motion range through the multi-axis accelerometer;

判断预定的时间内所述用户的运动幅度与预置数值的关系;Judging the relationship between the user's motion range and a preset value within a predetermined period of time;

确定所述用户是否处于睡眠状态。It is determined whether the user is asleep.

优选的,当在预定的时间内所述用户的运动幅度小于预置数值时,所述智能穿戴式设备确定所述用户处于睡眠状态。Preferably, when the motion range of the user is less than a preset value within a predetermined time, the smart wearable device determines that the user is in a sleep state.

优选的,所述智能穿戴式设备内置摄像头,当在预定的时间内所述用户的运动幅度小于预置数值时,启动所述摄像头对用户脸部区域进行识别,检测判断用户在一段时间内是否处于闭眼状态,若用户处于闭眼状态,则确定用户处于睡眠状态。Preferably, the smart wearable device has a built-in camera, and when the user's movement range is less than a preset value within a predetermined period of time, the camera is activated to identify the user's face area, and detects whether the user has In the closed-eye state, if the user is in the closed-eye state, it is determined that the user is in a sleep state.

优选的,启动所述摄像头对用户脸部区域进行识别时,先启动摄像头进行周围扫描确定所述智能式穿戴设备的位置参数,并根据位置参数调整拍摄区域,以使得所述拍摄区域一直能够覆盖用户脸部区域。Preferably, when starting the camera to identify the user's face area, first start the camera to scan around to determine the position parameters of the smart wearable device, and adjust the shooting area according to the position parameters, so that the shooting area can always cover The user's face area.

优选的,根据所述位置参数来调整拍摄区域的过程包括:Preferably, the process of adjusting the shooting area according to the position parameters includes:

当智能穿戴式设备进行俯视或仰视时,所述智能穿戴式设备通过所述位置参数获得俯仰角,所述俯仰角用于指示所述智能穿戴式设备向下或向上偏移的角度;When the smart wearable device looks down or looks up, the smart wearable device obtains a pitch angle through the position parameter, and the pitch angle is used to indicate the downward or upward offset angle of the smart wearable device;

所述智能穿戴式设备根据所述俯仰角利用如下公式计算所述摄像头的调整角度;The smart wearable device uses the following formula to calculate the adjustment angle of the camera according to the pitch angle;

所述智能穿戴设备根据所述调整角度调整所述摄像头的拍摄角度,以使得拍摄区域一直能够覆盖用户脸部区域;The smart wearable device adjusts the shooting angle of the camera according to the adjustment angle, so that the shooting area can always cover the user's face area;

或,or,

所述(Xworld,Zworld)为所述用户脸部区域的坐标,所述(Xcamera,Zcamera)为所述拍摄区域的坐标,所述为所述俯仰角,所述φ为所述调整角度,所述θ为所述拍摄区域的视角度,所述m为所述摄像头的长度,所述dx为所述摄像头与所述用户脸部区域的垂直距离,所述dz为所述摄像头与所述用户脸部区域的水平距离。The (X world , Z world ) is the coordinates of the user's face area, the (X camera , Z camera ) is the coordinates of the shooting area, and the is the pitch angle, the φ is the adjustment angle, the θ is the viewing angle of the shooting area, the m is the length of the camera, and the d x is the distance between the camera and the user’s face The vertical distance of the face area, and the d z is the horizontal distance between the camera and the user's face area.

优选的,所述摄像头为两轴可旋转的摄像头。Preferably, the camera is a two-axis rotatable camera.

优选的,所述智能穿戴式设备通过所述多轴加速度仪检测用户的运动幅度之前,预先进行数据采集,构建特征数据库。Preferably, before the smart wearable device detects the user's motion range through the multi-axis accelerometer, data collection is performed in advance to construct a feature database.

优选的,所述智能穿戴式设备通过所述多轴加速度仪检测用户的运动幅度之后,判断当前检测到的数据是否与特征数据库中的至少一组数据匹配,若匹配,则确定用户处于睡眠状态。Preferably, after the smart wearable device detects the user's motion amplitude through the multi-axis accelerometer, it judges whether the currently detected data matches at least one set of data in the feature database, and if it matches, it determines that the user is in a sleep state .

优选的,所述多轴加速度仪为三轴加速度仪。Preferably, the multi-axis accelerometer is a three-axis accelerometer.

优选的,构建特征数据库的过程包括以下步骤:Preferably, the process of constructing a feature database comprises the following steps:

步骤1,用户自行设定睡眠开始时间,并从这个时间后按采集三轴加速度仪检测到的三轴加速度信号。Step 1. The user sets the sleep start time by himself, and after this time, press to collect the three-axis acceleration signal detected by the three-axis accelerometer.

步骤2,按照如下方式构建:Step 2, build as follows:

确定一个目标时刻t,该目标时刻可以为任意时刻;Determine a target time t, which can be any time;

从t时刻往前推一段时间得到a时段,从t时刻往后推一段时间得到b时段;Push forward from time t for a period of time to obtain period a, and push back from time t for a period of time to obtain period b;

存储a时段、b时段以及t时刻内每一个单位时刻三轴加速度仪反馈回来的信号(vx,vy,vz);Store the signals (v x , v y , v z ) fed back by the three-axis accelerometer at each unit time in period a, period b and time t;

计算a时段、b时段中每一个单位时刻的信号的模值v为vx的平方加vy的平方加vz的平方,再对和值开根号;Calculate the modulus v of the signal at each unit time in period a and period b as the square of v x plus the square of v y plus the square of v z , and then open the square root of the sum;

计算a时段、b时段中每一个单位时刻的信号的模值的波动性统计结果(可以看作是变化率)sa和sb;Calculate the volatility statistical results (which can be regarded as the rate of change) sa and sb of the modulus value of the signal at each unit time in period a and period b;

构建t时刻睡眠状态特征,表示为C(t)=(vx(t),vy(t),v z(t),sa(t),sb(t));Construct the sleep state feature at time t, expressed as C(t)=(v x (t), v y (t), v z (t), sa(t), sb(t));

重复前述步骤,直至完成全部时刻的特征提取过程,表示为D(C)=(C(1),…,C(2),…,C(Y)),其中Y单位时刻的总数。Repeat the above steps until the feature extraction process of all moments is completed, expressed as D(C)=(C(1),...,C(2),...,C(Y)), where the total number of Y unit moments.

本发明中,当智能穿戴式设备被穿戴于用户时,智能穿戴式设备通过内置的多轴加速度仪检测用户的运动,当智能穿戴式设备获知在持续的一段时间内用户的运动幅度小于预置数值时,则确定用户处于睡眠状态。本发明中,使用多轴加速度仪来检测用户的运动,用户无论在深度睡眠中,还是在浅度睡眠中,运动幅度的变化较为统一,所以智能穿戴式设备可以更准确的确定用户的睡眠状态。In the present invention, when the smart wearable device is worn by the user, the smart wearable device detects the user's movement through the built-in multi-axis accelerometer. When the smart wearable device learns that the user's movement range is less than the preset value, the user is determined to be asleep. In the present invention, a multi-axis accelerometer is used to detect the user's motion. No matter whether the user is in deep sleep or light sleep, the change of the motion range is relatively uniform, so the smart wearable device can more accurately determine the user's sleep state. .

附图说明Description of drawings

下面结合附图对本发明做进一步说明:The present invention will be further described below in conjunction with accompanying drawing:

图1为本发明一种用户睡眠状态检测方法的实施例的流程示意图;FIG. 1 is a schematic flow diagram of an embodiment of a method for detecting a user's sleep state according to the present invention;

图2为本发明一种用户睡眠状态检测方法的实施例的另一种流程示意图;FIG. 2 is another schematic flowchart of an embodiment of a method for detecting a user's sleep state in the present invention;

图3为本发明一种用户睡眠状态检测方法的实施例的第三种流程示意图。FIG. 3 is a schematic flowchart of a third embodiment of a method for detecting a user's sleep state according to the present invention.

具体实施方式Detailed ways

实施例:Example:

本发明提供一种用户睡眠状态检测方法,用户睡眠状态通过智能穿戴式设备检测,其中,所述检测方法包括以下步骤:所述智能穿戴式设备检测自身是否被穿戴于用户;若被穿戴于用户,则所述智能穿戴式设备启动内置的多轴加速度仪;所述智能穿戴式设备通过所述多轴加速度仪检测用户的运动幅度;判断预定的时间内所述用户的运动幅度与预置数值的关系;确定所述用户是否处于睡眠状态。The present invention provides a method for detecting a user's sleep state. The user's sleep state is detected by a smart wearable device, wherein the detection method includes the following steps: the smart wearable device detects whether it is worn by the user; if it is worn by the user , the smart wearable device starts the built-in multi-axis accelerometer; the smart wearable device detects the user's motion amplitude through the multi-axis accelerometer; judges the user's motion range and preset value within a predetermined time relationship; determine if the user is asleep.

如图1所示,在本实施例中,当在预定的时间内所述用户的运动幅度小于预置数值时,所述智能穿戴式设备确定所述用户处于睡眠状态。所述智能穿戴式设备内置摄像头,可以通过摄像头或者其他方式判定智能穿戴设备被用户穿戴。As shown in FIG. 1 , in this embodiment, when the motion range of the user is smaller than a preset value within a predetermined time, the smart wearable device determines that the user is in a sleep state. The smart wearable device has a built-in camera, which can determine whether the smart wearable device is worn by the user through the camera or other methods.

如图2所示,当然,在穿戴设备中设置了摄像头,可以更进一步的完善对用户睡眠状态检测。当在预定的时间内所述用户的运动幅度小于预置数值时,启动所述摄像头对用户脸部区域进行识别,检测判断用户在一段时间内是否处于闭眼状态,若用户处于闭眼状态,则确定用户处于睡眠状态。也就是说,结合用户的运动幅值以及眼睛的状态,多个维度进行识别判断用户是否处于睡眠状态,提升数据检测的准确性可靠性,以及与实际状态的匹配性。As shown in FIG. 2 , of course, a camera is installed in the wearable device, which can further improve the detection of the user's sleep state. When the user's movement range is less than the preset value within a predetermined time, start the camera to identify the user's face area, detect and judge whether the user is in the closed-eye state for a period of time, if the user is in the closed-eye state, It is then determined that the user is in a sleep state. That is to say, combined with the user's motion amplitude and the state of the eyes, multiple dimensions are used to identify and judge whether the user is in a sleep state, so as to improve the accuracy and reliability of data detection and the matching with the actual state.

在此过程中,启动所述摄像头对用户脸部区域进行识别时,先启动摄像头进行周围扫描确定所述智能式穿戴设备的位置参数,并根据位置参数调整拍摄区域,以使得所述拍摄区域一直能够覆盖用户脸部区域。During this process, when starting the camera to identify the user's face area, first start the camera to scan around to determine the position parameters of the smart wearable device, and adjust the shooting area according to the position parameters, so that the shooting area is always Capable of covering the area of the user's face.

根据所述位置参数来调整拍摄区域的过程包括:The process of adjusting the shooting area according to the position parameters includes:

当智能穿戴式设备进行俯视或仰视时,所述智能穿戴式设备通过所述位置参数获得俯仰角,所述俯仰角用于指示所述智能穿戴式设备向下或向上偏移的角度;When the smart wearable device looks down or looks up, the smart wearable device obtains a pitch angle through the position parameter, and the pitch angle is used to indicate the downward or upward offset angle of the smart wearable device;

所述智能穿戴式设备根据所述俯仰角利用如下公式计算所述摄像头的调整角度;The smart wearable device uses the following formula to calculate the adjustment angle of the camera according to the pitch angle;

所述智能穿戴设备根据所述调整角度调整所述摄像头的拍摄角度,以使得拍摄区域一直能够覆盖用户脸部区域;The smart wearable device adjusts the shooting angle of the camera according to the adjustment angle, so that the shooting area can always cover the user's face area;

或,or,

所述(Xworld,Zworld)为所述用户脸部区域的坐标,所述(Xcamera,Zcamera)为所述拍摄区域的坐标,所述为所述俯仰角,所述φ为所述调整角度,所述θ为所述拍摄区域的视角度,所述m为所述摄像头的长度,所述dx为所述摄像头与所述用户脸部区域的垂直距离,所述dz为所述摄像头与所述用户脸部区域的水平距离。The (X world , Z world ) is the coordinates of the user's face area, the (X camera , Z camera ) is the coordinates of the shooting area, and the is the pitch angle, the φ is the adjustment angle, the θ is the viewing angle of the shooting area, the m is the length of the camera, and the d x is the distance between the camera and the user’s face The vertical distance of the face area, and the d z is the horizontal distance between the camera and the user's face area.

当然,上述过程中的摄像头为两轴可旋转的摄像头。Of course, the camera in the above process is a two-axis rotatable camera.

如图3所示,为了更进一步的提升检测数据的可靠性,所述智能穿戴式设备通过所述多轴加速度仪检测用户的运动幅度之前,预先进行数据采集,构建特征数据库。所述智能穿戴式设备通过所述多轴加速度仪检测用户的运动幅度之后,判断当前检测到的数据是否与特征数据库中的至少一组数据匹配,若匹配,则确定用户处于睡眠状态。所述多轴加速度仪为三轴加速度仪。As shown in FIG. 3 , in order to further improve the reliability of the detection data, before the smart wearable device detects the user's motion range through the multi-axis accelerometer, data collection is performed in advance to construct a feature database. After the smart wearable device detects the user's motion amplitude through the multi-axis accelerometer, it judges whether the currently detected data matches at least one set of data in the feature database, and if it matches, it determines that the user is in a sleep state. The multi-axis accelerometer is a three-axis accelerometer.

构建特征数据库的过程包括以下步骤:The process of building a signature database includes the following steps:

步骤1,用户自行设定睡眠开始时间,并从这个时间后按采集三轴加速度仪检测到的三轴加速度信号。Step 1. The user sets the sleep start time by himself, and after this time, press to collect the three-axis acceleration signal detected by the three-axis accelerometer.

步骤2,按照如下方式构建:Step 2, build as follows:

确定一个目标时刻t,该目标时刻可以为任意时刻;Determine a target time t, which can be any time;

从t时刻往前推一段时间得到a时段,从t时刻往后推一段时间得到b时段;Push forward from time t for a period of time to obtain period a, and push back from time t for a period of time to obtain period b;

存储a时段、b时段以及t时刻内每一个单位时刻三轴加速度仪反馈回来的信号(vx,vy,vz);Store the signals (v x , v y , v z ) fed back by the three-axis accelerometer at each unit time in period a, period b and time t;

计算a时段、b时段中每一个单位时刻的信号的模值v为vx的平方加vy的平方加vz的平方,再对和值开根号;Calculate the modulus v of the signal at each unit time in period a and period b as the square of v x plus the square of v y plus the square of v z , and then open the square root of the sum;

计算a时段、b时段中每一个单位时刻的信号的模值的波动性统计结果(可以看作是变化率)sa和sb;Calculate the volatility statistical results (which can be regarded as the rate of change) sa and sb of the modulus value of the signal at each unit time in period a and period b;

构建t时刻睡眠状态特征,表示为C(t)=(vx(t),vy(t),v z(t),sa(t),sb(t));Construct the sleep state feature at time t, expressed as C(t)=(v x (t), v y (t), v z (t), sa(t), sb(t));

重复前述步骤,直至完成全部时刻的特征提取过程,表示为D(C)=(C(1),…,C(2),…,C(Y)),其中Y单位时刻的总数。Repeat the above steps until the feature extraction process of all moments is completed, expressed as D(C)=(C(1),...,C(2),...,C(Y)), where the total number of Y unit moments.

本发明中,当智能穿戴式设备被穿戴于用户时,智能穿戴式设备通过内置的多轴加速度仪检测用户的运动,当智能穿戴式设备获知在持续的一段时间内用户的运动幅度小于预置数值时,则确定用户处于睡眠状态。本发明中,使用多轴加速度仪来检测用户的运动,用户无论在深度睡眠中,还是在浅度睡眠中,运动幅度的变化较为统一,所以智能穿戴式设备可以更准确的确定用户的睡眠状态。In the present invention, when the smart wearable device is worn by the user, the smart wearable device detects the user's movement through the built-in multi-axis accelerometer, and when the smart wearable device learns that the user's movement range is less than the preset value, the user is determined to be asleep. In the present invention, a multi-axis accelerometer is used to detect the user's motion. No matter whether the user is in deep sleep or light sleep, the change of the motion range is relatively uniform, so the smart wearable device can more accurately determine the user's sleep state. .

除上述优选实施例外,本发明还有其他的实施方式,本领域技术人员可以根据本发明作出各种改变和变形,只要不脱离本发明的精神,均应属于本发明所附权利要求所定义的范围。Except above-mentioned preferred embodiment, the present invention also has other embodiments, and those skilled in the art can make various changes and deformations according to the present invention, as long as they do not depart from the spirit of the present invention, all should belong to the scope defined in the appended claims of the present invention scope.

Claims (10)

1.一种用户睡眠状态检测方法,用户睡眠状态通过智能穿戴式设备检测,其特征在于,所述检测方法包括以下步骤:1. A user's sleep state detection method, the user's sleep state is detected by an intelligent wearable device, it is characterized in that, the detection method comprises the following steps: 所述智能穿戴式设备检测自身是否被穿戴于用户;The smart wearable device detects whether it is worn by the user; 若被穿戴于用户,则所述智能穿戴式设备启动内置的多轴加速度仪;If worn by the user, the smart wearable device activates the built-in multi-axis accelerometer; 所述智能穿戴式设备通过所述多轴加速度仪检测用户的运动幅度;The smart wearable device detects the user's motion range through the multi-axis accelerometer; 判断预定的时间内所述用户的运动幅度与预置数值的关系;Judging the relationship between the user's motion range and a preset value within a predetermined period of time; 确定所述用户是否处于睡眠状态。It is determined whether the user is asleep. 2.根据权利要求1所述的用户睡眠状态检测方法,其特征在于,当在预定的时间内所述用户的运动幅度小于预置数值时,所述智能穿戴式设备确定所述用户处于睡眠状态。2. The method for detecting a user's sleep state according to claim 1, wherein the smart wearable device determines that the user is in a sleep state when the motion range of the user is less than a preset value within a predetermined period of time . 3.根据权利要求1所述的用户睡眠状态检测方法,其特征在于,所述智能穿戴式设备内置摄像头,当在预定的时间内所述用户的运动幅度小于预置数值时,启动所述摄像头对用户脸部区域进行识别,检测判断用户在一段时间内是否处于闭眼状态,若用户处于闭眼状态,则确定用户处于睡眠状态。3. The method for detecting a user's sleep state according to claim 1, wherein the smart wearable device has a built-in camera, and when the range of motion of the user is less than a preset value within a predetermined period of time, the camera is activated Identify the user's face area, detect and judge whether the user is in a closed-eye state for a period of time, and if the user is in a closed-eye state, determine that the user is in a sleep state. 4.根据权利要求3所述的用户睡眠状态检测方法,其特征在于,启动所述摄像头对用户脸部区域进行识别时,先启动摄像头进行周围扫描确定所述智能式穿戴设备的位置参数,并根据位置参数调整拍摄区域,以使得所述拍摄区域一直能够覆盖用户脸部区域。4. The user sleep state detection method according to claim 3, wherein when the camera is started to identify the user's face area, the camera is first started to scan around to determine the position parameters of the smart wearable device, and The shooting area is adjusted according to the position parameter, so that the shooting area can always cover the face area of the user. 5.根据权利要求4所述的用户睡眠状态检测方法,其特征在于,根据所述位置参数来调整拍摄区域的过程包括:5. The user sleep state detection method according to claim 4, wherein the process of adjusting the shooting area according to the position parameters comprises: 当智能穿戴式设备进行俯视或仰视时,所述智能穿戴式设备通过所述位置参数获得俯仰角,所述俯仰角用于指示所述智能穿戴式设备向下或向上偏移的角度;When the smart wearable device looks down or looks up, the smart wearable device obtains a pitch angle through the position parameter, and the pitch angle is used to indicate the downward or upward offset angle of the smart wearable device; 所述智能穿戴式设备根据所述俯仰角利用如下公式计算所述摄像头的调整角度;The smart wearable device uses the following formula to calculate the adjustment angle of the camera according to the pitch angle; 所述智能穿戴设备根据所述调整角度调整所述摄像头的拍摄角度,以使得拍摄区域一直能够覆盖用户脸部区域;The smart wearable device adjusts the shooting angle of the camera according to the adjustment angle, so that the shooting area can always cover the user's face area; 或,or, 所述(Xworld,Zworld)为所述用户脸部区域的坐标,所述(Xcamera,Zcamera)为所述拍摄区域的坐标,所述为所述俯仰角,所述φ为所述调整角度,所述θ为所述拍摄区域的视角度,所述m为所述摄像头的长度,所述dx为所述摄像头与所述用户脸部区域的垂直距离,所述dz为所述摄像头与所述用户脸部区域的水平距离。The (X world , Z world ) is the coordinates of the user's face area, the (X camera , Z camera ) is the coordinates of the shooting area, and the is the pitch angle, the φ is the adjustment angle, the θ is the viewing angle of the shooting area, the m is the length of the camera, and the d x is the distance between the camera and the user’s face The vertical distance of the face area, and the d z is the horizontal distance between the camera and the user's face area. 6.根据权利要求4所述的用户睡眠状态检测方法,其特征在于,所述摄像头为两轴可旋转的摄像头。6. The method for detecting a sleep state of a user according to claim 4, wherein the camera is a two-axis rotatable camera. 7.根据权利要求1所述的用户睡眠状态检测方法,其特征在于,所述智能穿戴式设备通过所述多轴加速度仪检测用户的运动幅度之前,预先进行数据采集,构建特征数据库。7. The method for detecting a user's sleep state according to claim 1, wherein, before the smart wearable device detects the user's motion amplitude through the multi-axis accelerometer, data collection is performed in advance to construct a feature database. 8.根据权利要求7所述的用户睡眠状态检测方法,其特征在于,所述智能穿戴式设备通过所述多轴加速度仪检测用户的运动幅度之后,判断当前检测到的数据是否与特征数据库中的至少一组数据匹配,若匹配,则确定用户处于睡眠状态。8. The user sleep state detection method according to claim 7, characterized in that, after the smart wearable device detects the user's motion amplitude through the multi-axis accelerometer, it judges whether the currently detected data is consistent with that in the feature database. At least one set of data matches, and if matched, it is determined that the user is in a sleep state. 9.根据权利要求7所述的用户睡眠状态检测方法,其特征在于,所述多轴加速度仪为三轴加速度仪。9. The method for detecting a sleep state of a user according to claim 7, wherein the multi-axis accelerometer is a three-axis accelerometer. 10.根据权利要求9所述的用户睡眠状态检测方法,其特征在于,构建特征数据库的过程包括以下步骤:10. The user sleep state detection method according to claim 9, wherein the process of building a feature database comprises the following steps: 步骤1,用户自行设定睡眠开始时间,并从这个时间后按采集三轴加速度仪检测到的三轴加速度信号。Step 1. The user sets the sleep start time by himself, and after this time, press to collect the three-axis acceleration signal detected by the three-axis accelerometer. 步骤2,按照如下方式构建:Step 2, build as follows: 确定一个目标时刻t,该目标时刻可以为任意时刻;Determine a target time t, which can be any time; 从t时刻往前推一段时间得到a时段,从t时刻往后推一段时间得到b时段;Push forward from time t for a period of time to obtain period a, and push back from time t for a period of time to obtain period b; 存储a时段、b时段以及t时刻内每一个单位时刻三轴加速度仪反馈回来的信号(vx,vy,vz);Store the signals (v x , v y , v z ) fed back by the three-axis accelerometer at each unit time in period a, period b and time t; 计算a时段、b时段中每一个单位时刻的信号的模值v为vx的平方加vy的平方加vz的平方,再对和值开根号;Calculate the modulus v of the signal at each unit time in period a and period b as the square of v x plus the square of v y plus the square of v z , and then open the square root of the sum; 计算a时段、b时段中每一个单位时刻的信号的模值的波动性统计结果(可以看作是变化率)sa和sb;Calculate the volatility statistical results (which can be regarded as the rate of change) sa and sb of the modulus value of the signal at each unit time in period a and period b; 构建t时刻睡眠状态特征,表示为C(t)=(vx(t),vy(t),vz(t),sa(t),sb(t));Construct the sleep state feature at time t, expressed as C(t)=(v x (t), v y (t), v z (t), sa(t), sb(t)); 重复前述步骤,直至完成全部时刻的特征提取过程,表示为D(C)=(C(1),…,C(2),…,C(Y)),其中Y单位时刻的总数。Repeat the above steps until the feature extraction process of all moments is completed, expressed as D(C)=(C(1),...,C(2),...,C(Y)), where the total number of Y unit moments.
CN201810143469.9A 2018-02-12 2018-02-12 A method for detecting user sleep state Pending CN108338778A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810143469.9A CN108338778A (en) 2018-02-12 2018-02-12 A method for detecting user sleep state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810143469.9A CN108338778A (en) 2018-02-12 2018-02-12 A method for detecting user sleep state

Publications (1)

Publication Number Publication Date
CN108338778A true CN108338778A (en) 2018-07-31

Family

ID=62960207

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810143469.9A Pending CN108338778A (en) 2018-02-12 2018-02-12 A method for detecting user sleep state

Country Status (1)

Country Link
CN (1) CN108338778A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160022175A1 (en) * 2014-09-23 2016-01-28 Fitbit, Inc. Automatic detection of a wearable electronic device not being worn using a motion sensor
CN105816153A (en) * 2016-03-13 2016-08-03 北京工业大学 Sleep monitoring system and method
CN106685797A (en) * 2016-07-09 2017-05-17 东莞市华睿电子科技有限公司 A method of identity authentication based on instant messaging
WO2017099340A1 (en) * 2015-12-08 2017-06-15 삼성전자 주식회사 Electronic device, signal processing method thereof, biological signal measurement system, and non-transitory computer readable recording medium
CN106983515A (en) * 2017-04-17 2017-07-28 安徽咏鹅家纺股份有限公司 A kind of intelligent sleep monitoring system
CN107085715A (en) * 2017-05-19 2017-08-22 武汉理工大学 A kind of television set intelligently detects the dormant system and method for user
CN107184217A (en) * 2017-07-06 2017-09-22 深圳市新元素医疗技术开发有限公司 A kind of circadian rhythm analysis method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160022175A1 (en) * 2014-09-23 2016-01-28 Fitbit, Inc. Automatic detection of a wearable electronic device not being worn using a motion sensor
WO2017099340A1 (en) * 2015-12-08 2017-06-15 삼성전자 주식회사 Electronic device, signal processing method thereof, biological signal measurement system, and non-transitory computer readable recording medium
CN105816153A (en) * 2016-03-13 2016-08-03 北京工业大学 Sleep monitoring system and method
CN106685797A (en) * 2016-07-09 2017-05-17 东莞市华睿电子科技有限公司 A method of identity authentication based on instant messaging
CN106983515A (en) * 2017-04-17 2017-07-28 安徽咏鹅家纺股份有限公司 A kind of intelligent sleep monitoring system
CN107085715A (en) * 2017-05-19 2017-08-22 武汉理工大学 A kind of television set intelligently detects the dormant system and method for user
CN107184217A (en) * 2017-07-06 2017-09-22 深圳市新元素医疗技术开发有限公司 A kind of circadian rhythm analysis method

Similar Documents

Publication Publication Date Title
CN106022378B (en) Sitting posture judgment method and cervical spondylosis recognition system based on camera and pressure sensor
JP6610906B2 (en) Activity detection method and device, and identity authentication method and device
US9740281B2 (en) Human-machine interaction method and apparatus
CN103886715B (en) A kind of tumble detection method for human body
CN103118168B (en) The display control method and terminal of a kind of unprocessed information
US9990540B2 (en) Operation estimation apparatus, robot, and operation estimation method
WO2023071884A1 (en) Gaze detection method, control method for electronic device, and related devices
CN108234874B (en) Method and device for adjusting imaging precision of somatosensory camera
CN109363620A (en) A vision detection method, device, electronic device and computer storage medium
CN110251070B (en) Eye health condition monitoring method and system
CN107735813A (en) Image processing system, image processing apparatus, image processing method and image processing program
CN111734974B (en) Intelligent desk lamp with sitting posture reminding function
CN106963388B (en) Feedback system of intelligent insole
JP7327837B2 (en) Wearable devices that detect events using camera modules and wireless communication devices
CN112818940A (en) Sitting posture detection method and device, learning machine and storage medium
US20190343440A1 (en) System and method for measuring reaction time of a subject
CN108209926A (en) Human Height measuring system based on depth image
CN103426025A (en) Non-contact push-up count method based on smart phone platform
CN106415192B (en) Lead image recognition method and recognition device, and image processing component data generation method and generation device
TW202008962A (en) State of exercise evaluation method
CN113903078A (en) Human eye gaze detection method, control method and related equipment
CN112987910A (en) Testing method, device, equipment and storage medium of eyeball tracking equipment
CN106681326B (en) Seat, method of controlling seat movement and movement control system for seat
CN108378822A (en) A wearable device that detects the user's sleep state
CN105554400B (en) A method of automatically jumping and taking pictures through a smart bracelet

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1263403

Country of ref document: HK

WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180731