TW201900110A - Sleep analysis method capable of effectively and automatically analyzing sleep condition/habit of user - Google Patents

Sleep analysis method capable of effectively and automatically analyzing sleep condition/habit of user Download PDF

Info

Publication number
TW201900110A
TW201900110A TW106116820A TW106116820A TW201900110A TW 201900110 A TW201900110 A TW 201900110A TW 106116820 A TW106116820 A TW 106116820A TW 106116820 A TW106116820 A TW 106116820A TW 201900110 A TW201900110 A TW 201900110A
Authority
TW
Taiwan
Prior art keywords
sleep
time
point
time point
score
Prior art date
Application number
TW106116820A
Other languages
Chinese (zh)
Other versions
TWI642409B (en
Inventor
劉哲瑋
陳俊傑
李正軒
Original Assignee
研鼎智能股份有限公司
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 研鼎智能股份有限公司 filed Critical 研鼎智能股份有限公司
Priority to TW106116820A priority Critical patent/TWI642409B/en
Application granted granted Critical
Publication of TWI642409B publication Critical patent/TWI642409B/en
Publication of TW201900110A publication Critical patent/TW201900110A/en

Links

Landscapes

  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

The present invention provides a sleep analysis method, which includes the following steps: sensing a three-axis acceleration signal related to a user; calculating activity intensity values corresponding to multiple timings according to the three-axis acceleration signal; calculating a plurality of first sleep scores and second sleep scores according to the activity intensity values; determining a sleep interval according to the sleep scores; further determining a sleep timing and an awake timing corresponding to the sleep interval; and, analyzing the sleep quality corresponding to the sleep interval according to the activity intensity values corresponding to the sleep interval. In particular, with the aforementioned method, the present invention can effectively and automatically analyze the sleep condition/habit of the user.

Description

睡眠分析方法Sleep analysis method

本發明是有關於一種睡眠分析方法,特別是指一種能自動分析出使用者的睡眠情況/習慣的睡眠分析方法。The invention relates to a sleep analysis method, in particular to a sleep analysis method capable of automatically analyzing a user's sleep condition/habit.

隨著可穿戴電子裝置的快速發展,目前來說已經可以透過穿戴裝置來記錄睡眠資訊,包括睡眠的起始時間、結束時間等,以分析使用者平日的睡眠習慣,以讓使用者能根據分析的結果來了解及/或調整自己的睡眠習慣;如此,能有助於良好生活習慣的養成並避免慢性疾病的發生。With the rapid development of wearable electronic devices, it is now possible to record sleep information, including the start time and end time of sleep, through the wearable device to analyze the sleep habits of the user on a regular basis so that the user can analyze according to the analysis. The result is to understand and/or adjust your sleep habits; this can help to develop good habits and avoid chronic diseases.

然而,利用現有的穿戴裝置來進行睡眠分析時,需要在睡覺前操作穿戴裝置來人工設定睡眠的起始時間,並需要在睡醒後操作穿戴裝置來人工設定睡眠的結束時間,除了不方便之外,還可能因為忘記設定前述的起始時間與結束時間而沒有儲存到對應的時間記錄。However, when using the existing wearing device for sleep analysis, it is necessary to manually operate the wearing device before going to bed to manually set the start time of sleep, and it is necessary to operate the wearing device after waking up to manually set the end time of sleep, except for inconvenience. In addition, it is also possible to forget to set the aforementioned start time and end time without storing the corresponding time record.

因此,本發明之目的,即在提供一種能有效地自動分析出使用者的睡眠情況/習慣的睡眠分析方法。Accordingly, it is an object of the present invention to provide a sleep analysis method that can automatically and automatically analyze a user's sleep condition/habit.

於是,本發明睡眠分析方法由一包含一穿戴裝置的偵測系統實施,該穿戴裝置適於穿戴在一使用者身上。該睡眠分析方法包含一步驟(a)、一步驟(b)、一步驟(c)、一步驟(d)與一步驟(e)。Thus, the sleep analysis method of the present invention is implemented by a detection system including a wearable device adapted to be worn on a user. The sleep analysis method comprises a step (a), a step (b), a step (c), a step (d) and a step (e).

該步驟(a)是該穿戴裝置感測一加速度信號。The step (a) is that the wearing device senses an acceleration signal.

該步驟(b)是該偵測系統針對多個時點的每一時點計算出一對應該時點的活動強度值,其中每一時點對應該加速度信號的多個信號樣本且該活動強度值是根據該時點對應的該等信號樣本計算出來的。The step (b) is that the detecting system calculates a pair of active intensity values of the time points at each time point of the plurality of time points, wherein each time point corresponds to the plurality of signal samples of the acceleration signal and the activity intensity value is according to the The signal samples corresponding to the time points are calculated.

該步驟(c)是該偵測系統利用一沿著時間軸移動的時間窗,針對每一時點,計算出一對應該時點的一第一睡眠分數與一第二睡眠分數,其中該第一睡眠分數為在該時間窗所涵蓋的所有時點中所對應的活動強度值小於一第一活動閥值的時點的數量,該第二睡眠分數為在該時間窗所涵蓋的所有時點中所對應的活動強度值小於一第二活動閥值的時點的數量,且該第一活動閥值大於該第二活動閥值。The step (c) is that the detecting system uses a time window that moves along the time axis, and for each time point, calculates a first sleep score and a second sleep score for a pair of time points, wherein the first sleep The score is the number of time points at which the activity intensity value corresponding to the time threshold is less than a first activity threshold at all time points covered by the time window, the second sleep score being the activity corresponding to all the time points covered by the time window The amount of time when the intensity value is less than a second active threshold, and the first active threshold is greater than the second active threshold.

該步驟(d)是當該偵測系統判斷出有多個連續時點所對應的第一睡眠分數均大於一第一睡眠區間閥值,且該等連續時點中有至少一時點所對應的第二睡眠分數大於一第二睡眠區間閥值時,該偵測系統判定該等連續時點中的時間最早者為一睡眠區間的起始點,其中該第二睡眠區間閥值大於該第一睡眠區間閥值。The step (d) is when the detecting system determines that the first sleep score corresponding to the plurality of consecutive time points is greater than a first sleep interval threshold, and the second time point corresponding to the at least one time point of the consecutive time points When the sleep score is greater than a second sleep interval threshold, the detection system determines that the earliest time of the consecutive time points is a starting point of a sleep interval, wherein the second sleep interval threshold is greater than the first sleep interval valve value.

該步驟(e)是當該偵測系統判斷出晚於該睡眠區間的起始點的一時點所對應的第一睡眠分數小於一清醒閥值時,該偵測系統判定該時點為該睡眠區間的終點。The step (e) is: when the detecting system determines that the first sleep score corresponding to a starting point of the sleep interval is less than a awake threshold, the detecting system determines that the time is the sleeping interval. The end point.

本發明之功效在於:能有效地自動分析出使用者的睡眠情況/習慣。The effect of the invention is that the sleep condition/habit of the user can be automatically and automatically analyzed.

在本發明被詳細描述之前,應當注意在以下的說明內容中,類似的元件是以相同的編號來表示。Before the present invention is described in detail, it should be noted that in the following description, similar elements are denoted by the same reference numerals.

參閱圖1與圖2,本發明睡眠分析方法由一包含一穿戴裝置與一計算裝置的偵測系統實施。該穿戴裝置例如為一適於穿戴在一使用者手腕上的智慧手錶,並具有一個三軸加速度規;該計算裝置例如為一智慧手機,並可經由有線的通用非同步收發傳輸器(Universal Asynchronous Receiver/Transmitter, UART)或通用序列匯流排(Universal Serial Bus, USB),或者無線的WiFi或藍牙通訊協定與該穿戴裝置通訊。Referring to Figures 1 and 2, the sleep analysis method of the present invention is implemented by a detection system including a wearable device and a computing device. The wearing device is, for example, a smart watch suitable for being worn on a wrist of a user, and has a three-axis acceleration gauge; the computing device is, for example, a smart phone, and can be connected via a wired universal asynchronous transmission transmitter (Universal Asynchronous) Receiver/Transmitter, UART) or Universal Serial Bus (USB), or wireless WiFi or Bluetooth protocol to communicate with the wearable device.

參閱圖1,以下說明本發明睡眠分析方法的一實施方式的步驟流程。Referring to Fig. 1, a flow chart of an embodiment of the sleep analysis method of the present invention will be described below.

首先,在步驟S1,該穿戴裝置藉由該三軸加速度規感測三軸加速度信號,其中該三軸加速度信號的取樣頻率為20 Hz,並包含一X軸信號、一Y軸信號與一Z軸信號。First, in step S1, the wearable device senses a three-axis acceleration signal by the three-axis acceleration gauge, wherein the sampling frequency of the three-axis acceleration signal is 20 Hz, and includes an X-axis signal, a Y-axis signal, and a Z Axis signal.

接著,在步驟S2,該穿戴裝置針對該三軸加速度信號的每一信號樣本S(t ),根據該信號樣本的X軸樣本Ax(t )、Y軸樣本Ay(t )與Z軸樣本Az(t )計算出一信號強度值M(t ),其中。該計算裝置根據該等信號強度值,針對多個時點的每一時點計算出一對應該時點的活動強度值。較佳地,兩相鄰時點的間隔為一分鐘,也就是說,每一時點對應多個信號樣本與多個信號強度值,該計算裝置每隔一分鐘根據該分鐘所對應的該等信號強度值計算出一活動強度值。參閱圖2,對於每一時點,該時點對應的活動強度值為該時點對應的所有信號強度值所形成的曲線1的峰點P的數量;其中如圖2所示,每一峰點P為該曲線1的一局部最大值且與每一鄰近的局部最小值M的差距超過一門檻值。Next, in step S2, the wearer for each signal sample S( t ) of the triaxial acceleration signal, according to the X-axis sample Ax( t ) of the signal sample, the Y-axis sample Ay( t ) and the Z-axis sample Az ( t ) calculating a signal strength value M( t ), wherein . The computing device calculates a pair of active intensity values for each of the plurality of time points based on the signal strength values. Preferably, the interval between two adjacent time points is one minute, that is, each time point corresponds to a plurality of signal samples and a plurality of signal strength values, and the computing device calculates the signal strengths corresponding to the minutes every one minute. The value calculates an activity intensity value. Referring to FIG. 2, for each time point, the activity intensity corresponding to the time point is the number of peak points P of the curve 1 formed by all the signal strength values corresponding to the time point; wherein, as shown in FIG. 2, each peak point P is A local maximum of curve 1 and a difference from each adjacent local minimum M exceeds a threshold.

接著,在步驟S3,參閱圖3與圖4,該計算裝置利用一沿著時間軸移動的時間窗2,針對每一時點,計算出一對應該時點的一第一睡眠分數4與一第二睡眠分數5,其中該第一睡眠分數4為在該時間窗2所涵蓋的所有時點中所對應的活動強度值小於一第一活動閥值的時點的數量,該第二睡眠分數5為在該時間窗2所涵蓋的所有時點中所對應的活動強度值小於一第二活動閥值的時點的數量,且該第一活動閥值大於該第二活動閥值。舉例來說,該時間窗2的長度為20分鐘,每一時點對應一分鐘,故第二十分鐘T20 對應的時間窗2涵蓋的時間為第一分鐘T1 至第二十分鐘T20 共20個時點。類似地,第二十一分鐘對應的時間窗2涵蓋的時間為第二分鐘至第二十一分鐘,第三十分鐘T30 對應的時間窗2涵蓋的時間為第十一分鐘至第三十分鐘T30 ,第四十分鐘T40 對應的時間窗2a(2)涵蓋的時間為第二十一分鐘至第四十分鐘T40 等等。如圖3所示,第四十分鐘T40 對應的時間窗2a(2)所涵蓋的20個時點中所對應的活動強度值小於該第一活動閥值的數量為10,故第四十分鐘T40 對應的第一睡眠分數為10。Next, in step S3, referring to FIG. 3 and FIG. 4, the computing device uses a time window 2 moving along the time axis, and for each time point, calculates a first sleep score 4 and a second for a pair of time points. a sleep score of 5, wherein the first sleep score 4 is a number of time points at which the corresponding activity intensity value is less than a first activity threshold at all time points covered by the time window 2, and the second sleep score 5 is The activity intensity value corresponding to all time points covered by the time window 2 is less than the number of time points of a second activity threshold, and the first activity threshold is greater than the second activity threshold. For example, the time window 2 has a length of 20 minutes, and each time point corresponds to one minute. Therefore, the time window 2 corresponding to the 20th minute T 20 covers the time from the first minute T 1 to the twentieth minute T 20 . 20 hours. Similarly, the time corresponding to a twenty-first minute time window 2 is covered by a second one minute to twenty minutes, ten minutes time T 30 corresponding to the third time window 2 is covered by the eleventh to thirty minutes The time T2 corresponding to the time T2 (2) corresponding to the minute T 30 and the fortieth minute T 40 is the twenty-first minute to the fortieth minute T 40 and the like. As shown in FIG. 3, the activity intensity value corresponding to the 20 time points covered by the time window 2a (2) corresponding to the 40th minute T 40 is less than the number of the first activity threshold is 10, so the fortieth minute The first sleep score corresponding to T 40 is 10.

接著,在步驟S4,參閱圖4,該計算裝置判斷是否該三軸加速度信號存在一睡眠區間。當該計算裝置判斷出有多個連續時點,例如三十個時點且每一時點對應一分鐘,所對應的該第一睡眠分數4均大於一第一睡眠區間閥值,且該等連續時點中有至少一時點所對應的第二睡眠分數5大於一第二睡眠區間閥值時,該計算裝置判定該三軸加速度信號存在該睡眠區間3,且該等連續時點中的時間最早者為該睡眠區間的起始點Ti ,其中該第二睡眠區間閥值大於該第一睡眠區間閥值。且當該計算裝置判斷出晚於該睡眠區間的起始點Ti 的一時點所對應的該第一睡眠分數4小於一清醒閥值時,該計算裝置判定該時點為該睡眠區間3的終點TjNext, in step S4, referring to FIG. 4, the computing device determines whether the triaxial acceleration signal has a sleep interval. When the computing device determines that there are multiple consecutive time points, for example, thirty time points, and each time point corresponds to one minute, the corresponding first sleep score 4 is greater than a first sleep interval threshold, and the consecutive time points are When the second sleep score 5 corresponding to the at least one time point is greater than a second sleep interval threshold, the computing device determines that the three-axis acceleration signal exists in the sleep interval 3, and the earliest of the consecutive time points is the sleep a starting point T i of the interval, wherein the second sleep interval threshold is greater than the first sleep interval threshold. And when the computing device determines that the first sleep score 4 corresponding to a time point shorter than the starting point T i of the sleep interval is less than a awake threshold, the computing device determines that the time point is the end of the sleep interval 3 T j .

在另一實施方式中,還可藉由該三軸加速度信號來判斷該穿戴裝置的穿戴狀態,並進一步利用穿戴狀態來輔助判斷該睡眠區間的起始點與終點。詳言之,對於每一時點,若該計算裝置判斷出該時點所對應活動強度值大於一活動強度門檻值且該時點對應的所有信號樣本中符合「三軸方向的一第一軸向與重力方向實質上平行」與「不同於該第一軸向的其他軸向的信號值均趨近零」兩條件的信號樣本數量小於一門檻值,則該計算裝置判定在該時點該穿戴裝置處於一被穿戴狀態;否則,在該時點該穿戴裝置處於一不被穿戴狀態。舉例來說明,如圖5所示,當該穿戴裝置6平置時,該穿戴裝置6的Z軸與重力方向平行,故在這種情況下所感測到三軸加速度信號的X軸樣本與Y軸樣本的數值均趨近零。如圖6所示,當該穿戴裝置6側置時,該穿戴裝置6的X軸與重力方向平行,故在這種情況下所感測到三軸加速度信號的Z軸樣本與Y軸樣本的數值均趨近零。因此,對於一時點而言,若該時點對應的信號樣本中符合「三軸方向的一第一軸向與重力方向實質上平行」與「不同於該第一軸向的其他軸向的信號值均趨近零」兩條件的信號樣本數量小於一門檻值,在該時點該穿戴裝置的穿戴狀態才有可能是該被穿戴狀態。進一步地利用穿戴狀態來輔助判斷該睡眠區間的起始點與終點:當該計算裝置判斷出有多個連續時點所對應的第一睡眠分數均大於該第一睡眠區間閥值且該等連續時點中有至少一時點所對應的第二睡眠分數大於該第二睡眠區間閥值且該等連續時點中有至少一時點對應該被穿戴狀態時,該計算裝置判定該等連續時點中的對應該被穿戴狀態的時間最早者為該睡眠區間的起始點;當該計算裝置判斷出有多個連續時點,例如十個時點,均對應該不被穿戴狀態時,該計算裝置判定該等連續時點中的時間最早者為該睡眠區間的終點。In another embodiment, the wearing state of the wearing device can also be determined by the triaxial acceleration signal, and the wearing state is further utilized to assist in determining the starting point and the ending point of the sleeping interval. In detail, for each time point, if the computing device determines that the activity intensity value corresponding to the time point is greater than an activity intensity threshold value and all the signal samples corresponding to the time point meet the "first axis and gravity in the three-axis direction" The number of signal samples in which the direction is substantially parallel" and the "other signal values of the other axes different from the first axis approach zero" is less than a threshold value, and the computing device determines that the wearable device is at the time point The worn state; otherwise, the wearable device is in an unworn state at that point in time. For example, as shown in FIG. 5, when the wearing device 6 is flat, the Z axis of the wearing device 6 is parallel to the direction of gravity, so in this case, the X-axis sample and Y of the three-axis acceleration signal are sensed. The values of the axis samples approach zero. As shown in FIG. 6, when the wearing device 6 is placed sideways, the X axis of the wearing device 6 is parallel to the direction of gravity, so in this case, the values of the Z-axis sample and the Y-axis sample of the triaxial acceleration signal are sensed. Both are approaching zero. Therefore, for a point in time, if the signal sample corresponding to the time point corresponds to "the first axis in the triaxial direction is substantially parallel to the direction of gravity" and the signal value in the other axis different from the first axis The number of signal samples that are both near zero and the two conditions is less than a threshold value at which the wearing state of the wearable device is likely to be the worn state. Further using the wear state to assist in determining the start point and the end point of the sleep interval: when the computing device determines that there are multiple consecutive time points, the first sleep score is greater than the first sleep interval threshold and the consecutive time points When the second sleep score corresponding to at least one time point is greater than the second sleep interval threshold and at least one of the consecutive time points is corresponding to the wearable state, the computing device determines that the corresponding one of the consecutive time points is The earliest time of the wearing state is the starting point of the sleeping interval; when the computing device determines that there are a plurality of consecutive time points, for example, ten time points, all of which are corresponding to the wearing state, the computing device determines that the consecutive time points are The earliest time is the end of the sleep interval.

接著,在步驟S5,該計算裝置進一步判斷對應該睡眠區間3的一入睡時點與一清醒時點。Next, in step S5, the computing device further determines a sleep time point and an awake time point corresponding to the sleep interval 3.

詳言之,該計算裝置判斷該等時點所對應的該等第一睡眠分數4所形成的曲線是否具有一在時間上早於該睡眠區間的起始點Ti 的谷點,如圖4所示,當判斷出該曲線具有該谷點V時,該計算裝置判定該谷點V所對應的時點為一入睡時點Ts ;當判斷出該曲線不具有該谷點時,該計算裝置判定在時間上早於該睡眠區間的起始點Ti 且所對應第一睡眠分數4大於一入睡門檻值的所有時點中的最接近該起始點Ti 者為該入睡時點。In detail, the computing device determines whether the curve formed by the first sleep scores 4 corresponding to the isochronous points has a valley point earlier in time than the starting point T i of the sleep interval, as shown in FIG. When the curve is determined to have the valley point V, the computing device determines that the time point corresponding to the valley point V is a sleep time point T s ; when it is determined that the curve does not have the valley point, the computing device determines that The point in time that is earlier than the starting point T i of the sleep interval and the corresponding first sleep score 4 is greater than a point of entry into the sleep threshold is the closest to the starting point T i .

該計算裝置判定在時間上早於該睡眠區間的終點Tj 且所對應第一睡眠分數4小於一清醒門檻值的該等時點中的最接近該睡眠區間的終點Tj 者為一清醒時點TeThe computing device determines that the end point T j that is earlier than the end point T j of the sleep interval and the corresponding first sleep score 4 is less than a awake threshold value is the closest to the end point T j of the sleep interval. e .

此外,在另一實施方式中,還可進一步分析該使用者在該睡眠區間3的睡眠品質。詳言之,對於該睡眠區間3內的每一時點,當該時點對應的該活動強度值大於一第一門檻值時,該計算裝置判定該時點對應一第一清醒分數;當該時點對應的該活動強度值大於一第二門檻值且小於該第一門檻值時,該計算裝置判定該時點對應一第二清醒分數;當該時點對應的該活動強度值大於一第三門檻值且小於該第二門檻值時,該計算裝置判定該時點對應一第三清醒分數;當該時點對應的該活動強度值小於該第三門檻值時,該計算裝置判定該時點對應一第四清醒分數;其中該等門檻值由大至小依序為第一門檻值、第二門檻值、第三門檻值、第四門檻值,且該等清醒分數由大至小依序為第一清醒分數、第二清醒分數、第三清醒分數、第四清醒分數,其中清醒分數愈低則表示睡眠品質愈佳。Moreover, in another embodiment, the sleep quality of the user in the sleep zone 3 can be further analyzed. In detail, for each time point in the sleep interval 3, when the activity intensity value corresponding to the time point is greater than a first threshold value, the computing device determines that the time point corresponds to a first awake score; when the time point corresponds to When the activity intensity value is greater than a second threshold value and less than the first threshold value, the computing device determines that the time point corresponds to a second awake score; when the activity intensity value corresponding to the time point is greater than a third threshold value and less than the When the second threshold is used, the computing device determines that the time point corresponds to a third awake score; when the activity intensity value corresponding to the time point is less than the third threshold value, the computing device determines that the time point corresponds to a fourth awake score; The threshold values are from the largest to the smallest, the first threshold, the second threshold, the third threshold, and the fourth threshold, and the awake scores are the first awake score and the second from the largest to the smallest. The awake score, the third awake score, and the fourth awake score, wherein the lower the awake score, the better the sleep quality.

此外,除了前述的針對每一時點計算其所對應的清醒分數,還可針對包含多個時點的一時間期間計算對應的清醒分數。舉例來說,每一時點對應一分鐘,該計算裝置每隔十分鐘計算該十分鐘所涵蓋的十個時點對應的清醒分數的總和作為該十分鐘對應的清醒分數;如此,能產生圖7所示的對應該睡眠區間3的睡眠品質圖,其中清醒分數愈低則表示睡眠品質愈佳。In addition, in addition to the foregoing calculating the awake score corresponding to each time point, the corresponding awake score may also be calculated for a time period including a plurality of time points. For example, each time point corresponds to one minute, and the computing device calculates the sum of the awake scores corresponding to the ten time points covered by the ten minutes as the awake score corresponding to the ten minutes every ten minutes; thus, the figure 7 can be generated. The sleep quality map corresponding to sleep interval 3 is shown, wherein the lower the awake score, the better the sleep quality.

此外,雖然在前述的實施方式中該穿戴裝置與該計算裝置各自負責了部分的運算,但也可不限於此。例如,該偵測系統也可僅包含該穿戴裝置,且該穿戴裝置負責所有的運算。Further, although the wearable device and the computing device are each responsible for partial calculations in the foregoing embodiments, they are not limited thereto. For example, the detection system may also include only the wearable device, and the wear device is responsible for all operations.

綜上所述,本發明睡眠分析方法,藉由感測相關於該使用者的三軸加速度信號,並根據該三軸加速度信號計算出多個時點對應的活動強度值,且根據該等活動強度值計算出多個第一睡眠分數與第二睡眠分數,且根據該等睡眠分數判斷出睡眠區間,且進一步判斷出對應該睡眠區間的入睡時點與清醒時點,並根據該睡眠區間對應的該等活動強度值分析出該睡眠區間對應的睡眠品質,能有效地自動分析出使用者的睡眠情況/習慣,故確實能達成本發明的目的。In summary, the sleep analysis method of the present invention calculates a three-axis acceleration signal related to the user, and calculates an activity intensity value corresponding to the plurality of time points according to the three-axis acceleration signal, and according to the activity intensity Calculating a plurality of first sleep scores and a second sleep score, and determining a sleep interval according to the sleep scores, and further determining a sleep time point and an awake time point corresponding to the sleep interval, and according to the sleep interval corresponding to the sleep interval The activity intensity value analyzes the sleep quality corresponding to the sleep interval, and can effectively analyze the sleep condition/habit of the user automatically, so that the object of the present invention can be achieved.

惟以上所述者,僅為本發明之實施例而已,當不能以此限定本發明實施之範圍,凡是依本發明申請專利範圍及專利說明書內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。However, the above is only the embodiment of the present invention, and the scope of the invention is not limited thereto, and all the equivalent equivalent changes and modifications according to the scope of the patent application and the patent specification of the present invention are still The scope of the invention is covered.

1‧‧‧信號強度值所形成的曲線1‧‧‧ Curves formed by signal strength values

2‧‧‧時間窗2‧‧‧Time window

2a‧‧‧時間窗2a‧‧‧Time window

3‧‧‧睡眠區間3‧‧‧sleeping interval

4‧‧‧第一睡眠分數4‧‧‧First sleep score

5‧‧‧第二睡眠分數5‧‧‧Second sleep score

6‧‧‧穿戴裝置6‧‧‧Wearing device

Ti‧‧‧睡眠區間的起始點The starting point of the sleep interval in T i ‧‧

Tj‧‧‧睡眠區間的終點End point of the sleep interval of T j ‧‧

Ts‧‧‧入睡時點T s ‧‧‧ When you fall asleep

Te‧‧‧清醒時點T e ‧‧‧When awake

P‧‧‧峰點P‧‧‧ peak

V‧‧‧谷點V‧‧‧ Valley Point

M‧‧‧局部最小值M‧‧‧ local minimum

T1‧‧‧第一分鐘T 1 ‧‧‧First minute

T20‧‧‧第二十分鐘T 20 ‧‧‧Twenty minutes

T30‧‧‧第三十分鐘T 30 ‧‧‧30th minute

T40‧‧‧第四十分鐘T 40 ‧‧‧ forty minutes

S1~S5‧‧‧步驟S1~S5‧‧‧Steps

本發明的其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中: 圖1是一流程圖,說明本發明睡眠分析方法的一實施方式; 圖2是一示意圖,說明一曲線的多個峰點; 圖3是一示意圖,說明利用一沿著時間軸移動的時間窗來計算睡眠分數; 圖4是一示意圖,說明一睡眠區間與對應的一入睡時點與一清醒時點; 圖5是一示意圖,說明一穿戴裝置平置的情況; 圖6是一示意圖,說明該穿戴裝置側置的情況;及 圖7是一示意圖,說明該睡眠區間對應的一睡眠品質圖。Other features and effects of the present invention will be apparent from the embodiments of the present invention, wherein: FIG. 1 is a flow chart illustrating an embodiment of the sleep analysis method of the present invention; FIG. 2 is a schematic diagram illustrating Figure 3 is a schematic diagram illustrating the use of a time window moving along the time axis to calculate the sleep score; Figure 4 is a schematic diagram illustrating a sleep interval and a corresponding sleep time point and an awake time point; Figure 5 is a schematic view showing a situation in which a wearable device is placed flat; Figure 6 is a schematic view showing the side of the wearable device; and Figure 7 is a schematic view showing a sleep quality map corresponding to the sleep interval.

Claims (7)

一種睡眠分析方法,由一包含一穿戴裝置的偵測系統實施,該穿戴裝置適於穿戴在一使用者身上,該睡眠分析方法包含以下步驟: (a)該穿戴裝置感測一加速度信號; (b)該偵測系統針對多個時點的每一時點計算出一對應該時點的活動強度值,其中每一時點對應該加速度信號的多個信號樣本且該活動強度值是根據該時點對應的該等信號樣本計算出來的; (c)該偵測系統利用一沿著時間軸移動的時間窗,針對每一時點,計算出一對應該時點的一第一睡眠分數與一第二睡眠分數,其中該第一睡眠分數為在該時間窗所涵蓋的所有時點中所對應的活動強度值小於一第一活動閥值的時點的數量,該第二睡眠分數為在該時間窗所涵蓋的所有時點中所對應的活動強度值小於一第二活動閥值的時點的數量,且該第一活動閥值大於該第二活動閥值; (d)當該偵測系統判斷出有多個連續時點所對應的第一睡眠分數均大於一第一睡眠區間閥值且該等連續時點中有至少一時點所對應的第二睡眠分數大於一第二睡眠區間閥值時,該偵測系統判定該等連續時點中的時間最早者為一睡眠區間的起始點,其中該第二睡眠區間閥值大於該第一睡眠區間閥值;及 (e)當該偵測系統判斷出晚於該睡眠區間的起始點的一時點所對應的第一睡眠分數小於一清醒閥值時,該偵測系統判定該時點為該睡眠區間的終點。A sleep analysis method is implemented by a detection system including a wearable device, the wearable device being adapted to be worn on a user, the sleep analysis method comprising the following steps: (a) the wear device senses an acceleration signal; b) the detection system calculates a pair of active intensity values for each time point for each time point of the plurality of time points, wherein each time point corresponds to a plurality of signal samples of the acceleration signal and the activity intensity value is corresponding to the time point The signal sample is calculated; (c) the detection system uses a time window that moves along the time axis, and for each time point, calculates a first sleep score and a second sleep score for a pair of time points, wherein The first sleep score is a number of time points when the corresponding activity intensity value is less than a first activity threshold value at all time points covered by the time window, and the second sleep score is at all time points covered by the time window The corresponding activity intensity value is less than a second activity threshold value, and the first activity threshold is greater than the second activity threshold; (d) when the detection system determines When the first sleep score corresponding to the plurality of consecutive time points is greater than a first sleep interval threshold and the second sleep score corresponding to at least one of the consecutive time points is greater than a second sleep interval threshold, the detect The measurement system determines that the earliest time in the consecutive time points is the starting point of a sleep interval, wherein the second sleep interval threshold is greater than the first sleep interval threshold; and (e) when the detection system determines that the night is late When the first sleep score corresponding to a certain point of the starting point of the sleep interval is less than a awake threshold, the detecting system determines that the time point is the end point of the sleep interval. 如請求項1所述的睡眠分析方法,還包含一步驟(f):對於每一時點,若該偵測系統判斷出該時點所對應活動強度值大於一活動強度門檻值,則該偵測系統判定在該時點該穿戴裝置處於一被穿戴狀態; 其中,在該步驟(d),當該偵測系統判斷出有多個連續時點所對應的第一睡眠分數均大於該第一睡眠區間閥值且該等連續時點中有至少一時點所對應的第二睡眠分數大於該第二睡眠區間閥值且該等連續時點中有至少一時點對應該被穿戴狀態時,該偵測系統判定該等連續時點中的對應該被穿戴狀態的時間最早者為該睡眠區間的起始點。The sleep analysis method of claim 1, further comprising a step (f): for each time point, if the detection system determines that the activity intensity value corresponding to the time point is greater than an activity intensity threshold, the detection system Determining that the wearing device is in a worn state at the time; wherein, in the step (d), the detecting system determines that the first sleep score corresponding to the plurality of consecutive time points is greater than the first sleep interval threshold And when the second sleep score corresponding to at least one of the consecutive time points is greater than the second sleep interval threshold and at least one of the consecutive time points is corresponding to the worn state, the detecting system determines the continuous The earliest time in the time point corresponding to the state of being worn is the starting point of the sleep interval. 如請求項2所述的睡眠分析方法,該穿戴裝置具有一個三軸加速度規,其中在該步驟(a),由該三軸加速度規感測該加速度信號且該加速度信號為一種三軸加速度信號,且在該步驟(f),對於每一時點,若該偵測系統判斷出該時點所對應的活動強度值大於該活動強度門檻值且該時點對應的所有信號樣本中符合三軸方向的一第一軸向與重力方向實質上平行且其他軸向的信號值均趨近零的信號樣本數量小於一門檻值,則該偵測系統判定在該時點該穿戴裝置處於該被穿戴狀態。The sleep analysis method according to claim 2, wherein the wear device has a three-axis acceleration gauge, wherein in the step (a), the acceleration signal is sensed by the three-axis acceleration gauge and the acceleration signal is a three-axis acceleration signal And in the step (f), for each time point, if the detecting system determines that the activity intensity value corresponding to the time point is greater than the activity intensity threshold value and all the signal samples corresponding to the time point meet the three-axis direction The detection system determines that the wearable device is in the worn state at the point in time when the first axial direction is substantially parallel to the direction of gravity and the number of signal samples whose other axial signal values approach zero is less than a threshold value. 如請求項1所述的睡眠分析方法,該穿戴裝置具有一個三軸加速度規,其中在該步驟(a),由該三軸加速度規感測該加速度信號且該加速度信號為一種三軸加速度信號,該加速度信號的每一信號樣本包含一X軸樣本、一Y軸樣本及一Z軸樣本;在該步驟(b),對於每一時點對應的每一信號樣本,該偵測系統根據該信號樣本的X軸樣本、Y軸樣本與Z軸樣本計算出一信號強度值,且對於每一時點,該時點對應的活動強度值為該時點對應的該等信號強度值所形成的曲線的峰點的數量。The sleep analysis method according to claim 1, wherein the wear device has a three-axis acceleration gauge, wherein in the step (a), the acceleration signal is sensed by the three-axis acceleration gauge and the acceleration signal is a three-axis acceleration signal Each signal sample of the acceleration signal includes an X-axis sample, a Y-axis sample, and a Z-axis sample; in the step (b), for each signal sample corresponding to each time point, the detection system is based on the signal A signal intensity value is calculated for the X-axis sample, the Y-axis sample, and the Z-axis sample of the sample, and for each time point, the activity intensity corresponding to the time point is the peak point of the curve formed by the signal intensity values corresponding to the time point. quantity. 如請求項1所述的睡眠分析方法,還包含一步驟(g):該偵測系統判斷該等時點所對應的該等第一睡眠分數所形成的曲線是否具有一在時間上早於該睡眠區間的起始點的谷點,當判斷出該曲線具有該谷點時,該偵測系統判定該谷點所對應的時點為一入睡時點;當判斷出該曲線不具有該谷點時,該偵測系統判定在時間上早於該睡眠區間的起始點且所對應第一睡眠分數大於一入睡門檻值的該等時點中最接近該起始點者為該入睡時點。The sleep analysis method of claim 1, further comprising a step (g): the detecting system determines whether the curve formed by the first sleep scores corresponding to the isochronous points has a time earlier than the sleep The valley point of the starting point of the interval, when it is determined that the curve has the valley point, the detecting system determines that the time point corresponding to the valley point is a sleep time point; when it is determined that the curve does not have the valley point, The detecting system determines that the closest to the starting point in the time point that is earlier than the starting point of the sleeping interval and the corresponding first sleep score is greater than a threshold value of entering the sleep threshold is the point of falling into sleep. 如請求項1所述的睡眠分析方法,還包含一步驟(h):該偵測系統判定在時間上早於該睡眠區間的終點且所對應第一睡眠分數小於一清醒門檻值的該等時點中的最接近該終點者為一清醒時點。The sleep analysis method according to claim 1, further comprising a step (h): the detecting system determines the time point that is earlier in time than the end of the sleep interval and the corresponding first sleep score is less than a awake threshold The closest to the end point is a waking point. 如請求項1所述的睡眠分析方法,還包含一步驟(i):對於該睡眠區間內的每一時點,當該時點對應的該活動強度值大於一第一門檻值時,該偵測系統判定該時點對應一第一清醒分數;當該時點對應的該活動強度值大於一第二門檻值且小於該第一門檻值時,該偵測系統判定該時點對應一第二清醒分數;當該時點對應的該活動強度值大於一第三門檻值且小於該第二門檻值時,該偵測系統判定該時點對應一第三清醒分數;當該時點對應的該活動強度值小於該第三門檻值時,該偵測系統判定該時點對應一第四清醒分數;其中該等門檻值由大至小依序為第一門檻值、第二門檻值、第三門檻值、第四門檻值,且該等清醒分數由大至小依序為第一清醒分數、第二清醒分數、第三清醒分數、第四清醒分數。The sleep analysis method of claim 1, further comprising a step (i): for each time point in the sleep interval, when the activity intensity value corresponding to the time point is greater than a first threshold value, the detection system Determining that the time point corresponds to a first awake score; when the activity intensity value corresponding to the time point is greater than a second threshold value and less than the first threshold value, the detecting system determines that the time point corresponds to a second awake score; When the activity intensity value corresponding to the time point is greater than a third threshold value and less than the second threshold value, the detection system determines that the time point corresponds to a third awake score; when the activity intensity value corresponding to the time point is less than the third threshold The value of the threshold value corresponds to a fourth awake score; The awake scores are the first awake score, the second awake score, the third awake score, and the fourth awake score from large to small.
TW106116820A 2017-05-22 2017-05-22 Sleep analysis method TWI642409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106116820A TWI642409B (en) 2017-05-22 2017-05-22 Sleep analysis method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106116820A TWI642409B (en) 2017-05-22 2017-05-22 Sleep analysis method

Publications (2)

Publication Number Publication Date
TWI642409B TWI642409B (en) 2018-12-01
TW201900110A true TW201900110A (en) 2019-01-01

Family

ID=65431784

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106116820A TWI642409B (en) 2017-05-22 2017-05-22 Sleep analysis method

Country Status (1)

Country Link
TW (1) TWI642409B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI731673B (en) 2020-05-08 2021-06-21 雲云科技股份有限公司 Image sleep analysis method and system thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI411426B (en) * 2010-12-17 2013-10-11 Univ Nat Cheng Kung Sleep analyzing method, sleep analyzing watch and sleep analyzing system
CN104706318B (en) * 2013-12-16 2018-02-23 中国移动通信集团公司 A kind of sleep analysis method and device
CN104434068A (en) * 2014-12-26 2015-03-25 上海翰临电子科技有限公司 Sleep analysis method and device based on environment monitoring

Also Published As

Publication number Publication date
TWI642409B (en) 2018-12-01

Similar Documents

Publication Publication Date Title
JP5263774B2 (en) Computer system
US10706717B2 (en) Electronic device and control method thereof
JP3733133B2 (en) Sleep state estimation device
JP5740006B2 (en) Respiration measurement system and REM sleep determination system
JP6013668B1 (en) Basal body temperature measuring system and basal body temperature measuring device
US11219408B2 (en) Method and system for determining time window for sleep of a person
JP5767833B2 (en) Saddle position estimation apparatus, heel position estimation system, and heel position estimation method
CN113951818A (en) Apparatus and method for sleep monitoring
US10694980B2 (en) Exercise support device, exercise support method and exercise support program
CN104567912B (en) Method for realizing pedometer on Android mobile phone
JP6083799B2 (en) Mobile device location determination method, mobile device, mobile device location determination system, program, and information storage medium
CN104203094B (en) Sleep state managing device and sleep state management method
JP6156286B2 (en) Activity meter
JP6421475B2 (en) Data analysis apparatus, data analysis method, and data analysis program
WO2013171799A1 (en) Biorhythm-estimating device
US9867597B1 (en) Method and system to notify female fertility period
WO2022021707A1 (en) Sleep monitoring method and apparatus, and smart wearable device and readable storage medium
US20170265801A1 (en) Bruxism Detection System With Chin-Mounted Accelerometer Sensor
TW201803514A (en) Physiological monitoring device, physiological monitoring method and computer readable recording medium for implementing the physiological monitoring method
JP2015150034A (en) Sleep state determination device, sleep state determination method, and sleep state determination system
TWI642409B (en) Sleep analysis method
WO2016076253A1 (en) Sleep state determination device, sleep state determination method, and program
JP2017158761A (en) Apparatus and method for blood pressure measurement, and apparatus and method for sleeping state measurement
TWI478695B (en) Sleeping efficiency analyzer and analyzing method thereof
CN118201542A (en) Device, system and method for judging whether person is asleep

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees