Movatterモバイル変換


[0]ホーム

URL:


CN106388779B - Method and system for marking sleep state sample data types - Google Patents

Method and system for marking sleep state sample data types
Download PDF

Info

Publication number
CN106388779B
CN106388779BCN201610843519.5ACN201610843519ACN106388779BCN 106388779 BCN106388779 BCN 106388779BCN 201610843519 ACN201610843519 ACN 201610843519ACN 106388779 BCN106388779 BCN 106388779B
Authority
CN
China
Prior art keywords
sample data
type
atom
sleep state
sleep
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610843519.5A
Other languages
Chinese (zh)
Other versions
CN106388779A (en
Inventor
赵巍
胡静
韩志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology 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 Guangzhou Shiyuan Electronics Thecnology Co LtdfiledCriticalGuangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201610843519.5ApriorityCriticalpatent/CN106388779B/en
Publication of CN106388779ApublicationCriticalpatent/CN106388779A/en
Application grantedgrantedCritical
Publication of CN106388779BpublicationCriticalpatent/CN106388779B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明涉及一种睡眠状态样本数据类型的标注方法和系统,所述方法包括:采集用户在睡眠状态分析中的样本数据,构建多种睡眠状态类型的样本数据的特征向量以及特征向量聚集而成的簇中心,根据特征向量及其簇中心建立目标函数;其中,目标函数表征最小化相同类型的样本数据与字典原子的距离,且最大化不同类型的原子之间的距离;分别从多种睡眠状态类型的样本数据中选择若干个特征向量作为原子的初始值,将各个样本数据分配至所述原子并求解所述目标函数,得到分类字典;将样本数据输入分类字典,比较与样本数据最近的原子的类型与距离,若距离小于预设的阈值,则将该样本数据的类型标注为与该原子的类型一致。本发明可以准确地标注样本数据的类型。

The present invention relates to a method and system for labeling sleep state sample data types. The method includes: collecting sample data of a user in sleep state analysis, constructing feature vectors of the sample data of various sleep state types, and aggregating the feature vectors. The cluster centers of the In the sample data of the state type, several feature vectors are selected as the initial values of atoms, each sample data is allocated to the atoms and the objective function is solved to obtain a classification dictionary; the sample data is input into the classification dictionary, and the closest sample data is compared. The type and distance of the atom. If the distance is less than the preset threshold, the type of the sample data is marked as consistent with the type of the atom. The present invention can accurately mark the type of sample data.

Description

The mask method and system of sleep state sample data type
Technical field
The present invention relates to assisting sleep technical fields, more particularly to a kind of mark side of sleep state sample data typeMethod and system.
Background technique
In sleep, human body has carried out the process self loosened and restored, therefore good sleep is to maintain healthA primary condition;But due to operating pressure is big, daily life system is irregular etc., result in the sleep matter of part populationIt measures not good enough, shows as that insomnia, midnight wakes up with a start.
There are some equipment that people is helped to fall asleep on the market at present, has improved sleep quality.Such as it specific is slept a certainBy manual interventions such as sound, optical signals under dormancy state, avoid waking user etc. under the state of sleeping soundly.For setting for assisting sleepFor standby, in order to be really achieved the purpose for improving user's sleep quality, it is extremely important for correctly detecting the sleep state of user's.
At present clinically mainly using polysomnogram identify sleep state, mainly using EEG signals come to sleep intoRow analysis, identifies the sleep state of measured by training sleep state model, such as judges which of sleep user be inStage, but since the specificity of EEG signals is stronger, and intensity is very weak easy by external interference.Point of prior art trainingThere are errors for detection of the class device to many users, it is difficult to be labeled to the type of sleep state sample data.
Summary of the invention
Based on this, it is necessary in view of the above-mentioned problems, providing a kind of mask method of sleep state sample data type and beingSystem effectively improves the accuracy of sleep state classification device identification.
A kind of mask method of sleep state sample data type, comprising:
The EEG signals that acquisition user generates in sleep state analysis, obtain sample data;
Cluster center made of the feature vector and feature vector aggregation of the sample data of a variety of sleep state types is constructed,Objective function is established according to described eigenvector and its cluster center;Wherein, the objective function characterization minimizes same typeSample data is at a distance from dictionary atom, and the distance between different types of atom of maximization;
Select several feature vectors as the initial value of atom from the sample data of a variety of sleep state types respectively,Each sample data is distributed to the atom and solves the objective function, obtains classifying dictionary;
Sample data is inputted into classifying dictionary, compares the type and distance of the atom nearest with sample data, if apart from smallIn preset threshold value, then the type of the sample data is labeled as consistent with the type of the atom.
A kind of labeling system of sleep state sample data type, comprising:
Sample collection module, the EEG signals generated in sleep state analysis for acquiring user, obtains sample data;
Dictionary constructs module, the feature vector and feature vector of the sample data for constructing a variety of sleep state typesObjective function is established according to described eigenvector and its cluster center in cluster center made of aggregation;Wherein, the objective function characterizationThe distance between the sample data of same type is minimized at a distance from dictionary atom, and maximizes different types of atom;
Dictionary training module, for selecting several feature vectors from the sample data of a variety of sleep state types respectivelyAs the initial value of atom, each sample data is distributed to the atom and solves the objective function, obtains classifying dictionary;
Sample labeling module compares the class of the atom nearest with sample data for sample data to be inputted classifying dictionaryThe type of the sample data is labeled as consistent with the type of the atom by type and distance if distance is less than preset threshold value.
The mask method and system of above-mentioned sleep state sample data type, based on the clustering algorithm with classification capacity comeTraining dictionary, atom respectively corresponds a kind of sleep state in dictionary, using the number of atom as the parameter of algorithm, by most when trainingThe sample of smallization same type is at a distance from dictionary atom, while the mode for the distance between maximizing different types of atom,To train corresponding atom for every kind of sleep state, then utilizes and correspond to different types of atom and distance to sampleType is judged, so as to accurately mark the type of sample data, so that being subsequently used for oneself of sleep state classification deviceMore accurate sleep state classification device can be trained in learning process, promote the accuracy of sleep state detection.
Detailed description of the invention
Fig. 1 is the flow chart of the mask method of the sleep state sample data type of one embodiment;
Fig. 2 is the labeling system structural schematic diagram of the sleep state sample data type of one embodiment.
Specific embodiment
The mask method of sleep state sample data type of the invention and the embodiment of system are illustrated with reference to the accompanying drawing.
Refering to what is shown in Fig. 1, Fig. 1 is the flow chart of the mask method of the sleep state sample data type of one embodiment,Include:
Step S101, the EEG signals that acquisition user generates in sleep state analysis, obtains sample data;
In this step, when carrying out assisting sleep analysis to user, related transducer equipment is worn by user, detects userEEG signals, when acquiring EEG signals, can with 30s be a frame be acquired.
The carrying out sleep state identification as needed of the task, determines feature data types, extracts therewith from EEG signalsCorresponding sample data;For example, to identify 1~N kind sleep state, the sample data for carrying out this N kind state recognition is extracted.
Step S102, the feature vector and feature vector for constructing the sample data of a variety of sleep state types are assembledCluster center, objective function is established according to described eigenvector and its cluster center;Wherein, the objective function characterization minimizes phaseThe sample data of same type is at a distance from dictionary atom, and the distance between different types of atom of maximization;
In this step, on the basis of KMeans (K mean value) and KNN (K is closest) algorithm, designing has classification capacityClustering algorithm carrys out training dictionary, and atom respectively corresponds a kind of sleep state (such as waking state, sleep state etc.), atom in dictionaryNumber be algorithm parameter.
When input sample is sufficiently small at a distance from atom (when similarity is sufficiently large), it may be considered that the type of sample and originalThe type of son is consistent;Establish objective function, training when by minimize same type sample and dictionary atom away fromFrom, while the mode for the distance between maximizing different types of atom, all to be trained accordingly for every kind of particular stateAtom.
If it is more classification problems, the sample equipped with a shared t seed type,Be characterized toAmount,For cluster center made of feature vector aggregation, the common version of objective function can be expressed asFollowing form:
In formula, the sample data equipped with t kind sleep state type,For feature vector,For cluster center made of feature vector aggregation.
By taking waking state and dormant two classes problem as an example, ifFor waking state type (wake)Feature vector,Cluster center made of feature vector aggregation for waking state type,ForThe feature vector of sleep state type (sleep),Cluster made of feature vector aggregation for sleep state typeCenter, objective function can be expressed as form:
The objective function are as follows:
In formula,For regain consciousness type feature vector,For the spy for type of regaining consciousnessCluster center made of vector aggregation is levied,For the feature vector of sleep pattern,To sleepCluster center made of the feature vector aggregation of dormancy type, wake indicate awake type, and sleep indicates sleep pattern.
Step S103 selects several feature vectors as atom from the sample data of a variety of sleep state types respectivelyInitial value, each sample data is distributed to the atom and solves the objective function, obtains classifying dictionary;
In this step, it is based on the objective function, training classifying dictionary, in training, this programme is in classical KMeansIt is improved on the basis of algorithm, by taking waking state and dormant two classification problem as an example, training process be can be such that
(1) when initializing, if being set at random from the sample data of awake type and the sample data of sleep pattern respectivelyDry feature vector is as atom;Each sample data is distributed to away from nearest atom;
(2) atom is updated, if it (is waking state that all sample datas for belonging to this atom are consistent with the type of atomType is sleep state type), then the mean value for belonging to all sample datas of the atom is calculated, and in this, as newAtom;
The sample data inconsistent with atomic type if it exists then calculates separately the sample data and sleep class of awake typeThe mean value of the sample data of type, calculating process may include following formula:
In formula, c'wakeFor the mean value of the sample data for type of regaining consciousness, c'sleepFor the mean value of the sample data of sleep pattern;
According to the quantity of the sample data (negative sample) inconsistent with atomic type and its position of position correction atom,By the location updating of atom in the farther position apart from negative sample data, calculating process may include following formula:
In formula, c is the position of atom after amendment, and g is discriminant function, and w is weighted value;
Further, the calculation formula of the weighted value w can be such that
In formula, wwakeFor the weighted value for type of regaining consciousness, wsleepFor the weighted value of sleep pattern.
As another embodiment, the calculation formula of the weighted value w also be can be such that
(3) if belong to this atom all sample datas and atom type it is inconsistent, change the class of the atomType, and the mean value for belonging to all sample datas of the atom is calculated, and using the mean value as new atom;
(4) it repeats step (2) and (3) is iterated, the difference of the atom before and after iteration is less than setting range (footIt is enough small), or be assigned without sample data and store current classifying dictionary to the new atomic time and exit training.
Sample data is inputted classifying dictionary by step S104, compares the type and distance of the atom nearest with sample data,If distance is less than preset threshold value, the type of the sample data is labeled as consistent with the type of the atom.
In this step, classifying dictionary is tested using sample data, by comparing the atom nearest with sample dataType and distance carry out the types of judgement sample data, if distance is less than threshold value, then it is assumed that the type of sample data and the atomType it is consistent, export the judgement of "true", the type of the sample data is labeled as it is consistent with the type of the atom, it is on the contrary then refuseJudgement absolutely.
The type that sample data is marked using above scheme.It can be used for training classifier, for example, svm is selected (to supportVector machine) classifier, neural metwork training disaggregated model.
Refering to what is shown in Fig. 2, Fig. 2 is the labeling system structural representation of the sleep state sample data type of one embodimentFigure, comprising:
Sample collection module 101, the EEG signals generated in sleep state analysis for acquiring user, obtains sample numberAccording to;
Dictionary constructs module 102, the feature vector and feature of the sample data for constructing a variety of sleep state typesCluster center made of vector aggregation, establishes objective function according to described eigenvector and its cluster center;Wherein, the objective functionCharacterization minimizes the sample data of same type with dictionary atom at a distance from, and between the different types of atom of maximization away fromFrom;
Dictionary training module 103, for selecting several features from the sample data of a variety of sleep state types respectivelyEach sample data is distributed to the atom and solves the objective function, classified by initial value of the vector as atomDictionary;
Sample labeling module 104 compares the atom nearest with sample data for sample data to be inputted classifying dictionaryThe type of the sample data is labeled as consistent with the type of the atom by type and distance if distance is less than preset threshold value.
The labeling system of sleep state sample data type of the invention and sleep state sample data type of the inventionMask method correspond, above-mentioned sleep state sample data type mask method embodiment illustrate technical characteristicAnd its advantages are suitable for the embodiment of the labeling system of sleep state sample data type, hereby give notice that.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned realityIt applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not depositedIn contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneouslyIt cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the artIt says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the inventionRange.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

CN201610843519.5A2016-09-212016-09-21Method and system for marking sleep state sample data typesActiveCN106388779B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610843519.5ACN106388779B (en)2016-09-212016-09-21Method and system for marking sleep state sample data types

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610843519.5ACN106388779B (en)2016-09-212016-09-21Method and system for marking sleep state sample data types

Publications (2)

Publication NumberPublication Date
CN106388779A CN106388779A (en)2017-02-15
CN106388779Btrue CN106388779B (en)2019-06-11

Family

ID=57997362

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610843519.5AActiveCN106388779B (en)2016-09-212016-09-21Method and system for marking sleep state sample data types

Country Status (1)

CountryLink
CN (1)CN106388779B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107582028B (en)*2017-09-252021-04-13北京小米移动软件有限公司 Sleep monitoring method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102133100A (en)*2011-03-042011-07-27上海交通大学Sparse representation-based electroencephalogram signal detection method
CN104780831A (en)*2012-11-022015-07-15皇家飞利浦有限公司Electronic switch for controlling a device in dependency on a sleep stage
CN104970773A (en)*2015-07-212015-10-14西安交通大学Automatic sleep stage classification method based on dual character filtering
CN105496363A (en)*2015-12-152016-04-20浙江神灯生物科技有限公司Method for classifying sleep stages on basis of sleep EGG (electroencephalogram) signal detection
WO2016092433A1 (en)*2014-12-112016-06-16Koninklijke Philips N.V.System and method for determining spectral boundaries for sleep stage classification

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102133100A (en)*2011-03-042011-07-27上海交通大学Sparse representation-based electroencephalogram signal detection method
CN104780831A (en)*2012-11-022015-07-15皇家飞利浦有限公司Electronic switch for controlling a device in dependency on a sleep stage
WO2016092433A1 (en)*2014-12-112016-06-16Koninklijke Philips N.V.System and method for determining spectral boundaries for sleep stage classification
CN104970773A (en)*2015-07-212015-10-14西安交通大学Automatic sleep stage classification method based on dual character filtering
CN105496363A (en)*2015-12-152016-04-20浙江神灯生物科技有限公司Method for classifying sleep stages on basis of sleep EGG (electroencephalogram) signal detection

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LEARNING SPARSE DICTIONARY FOR LONG-TERM BIOMEDICAL SIGNAL CLASSIFICATION AND CLUSTERING;Shengkun Xie;《The 11th International Conference on Information Sciences, Signal Processing and their Applications: Special Sessions》;20121231;1118-1123
基于协作表示与核熵成分分析的脑电睡眠状态分期研究;赵攀博;《生物医学工程学杂志》;20150831;第32卷(第4期);730-734

Also Published As

Publication numberPublication date
CN106388779A (en)2017-02-15

Similar Documents

PublicationPublication DateTitle
CN111553127B (en) A multi-label text data feature selection method and device
CN111161879B (en) A disease prediction system based on big data
MeinshausenHierarchical testing of variable importance
Ren et al.Naive bayes classification of uncertain data
CN116705337A (en)Health data acquisition and intelligent analysis method
CN112603335B (en)Electroencephalogram emotion recognition method, system, equipment and storage medium
CN112597921B (en)Human behavior recognition method based on attention mechanism GRU deep learning
CN103500342B (en)A kind of Human bodys' response method based on accelerometer
CN107016233A (en)The association analysis method and system of motor behavior and cognitive ability
CN109815987B (en)Crowd classification method and system
CN105653670B (en) A Data Mining Method for Intelligent Electricity Consumption Based on Manifold Learning Clustering Algorithm
CN106473703B (en)Training method and system of sleep state classifier
CN113724885B (en)Abnormal sign identification method, device, equipment and storage medium
CN104463916B (en)Eye movement fixation point measurement method based on random walk
CN107092861A (en)Lower limb movement recognition methods based on pressure and acceleration transducer
CN106250701B (en)The system and method for Lung neoplasm degree of danger classification are realized in computer software
CN119339970A (en) Diagnosis method and system for children's respiratory tract infection based on multimodal data fusion
CN113627236A (en)Sitting posture identification method, device, equipment and storage medium
CN106388779B (en)Method and system for marking sleep state sample data types
Tian et al.A novel selective ensemble learning method for smartphone sensor-based human activity recognition based on hybrid diversity enhancement and improved binary glowworm swarm optimization
CN112861679B (en)Transfer learning method and system for behavior recognition
CN111743513B (en) S1 and REM sleep state detection method and system based on mixed channel EEG signal
CN117312971B (en) An individual identification device for autism spectrum disorder
CN107909090A (en)Learn semi-supervised music-book on pianoforte difficulty recognition methods based on estimating
CN109426827B (en) A multimodal sensor cooperative sensing method and system

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp