JP5492723B2 - Body motion detection device - Google Patents

Body motion detection device Download PDF

Info

Publication number
JP5492723B2
JP5492723B2 JP2010211706A JP2010211706A JP5492723B2 JP 5492723 B2 JP5492723 B2 JP 5492723B2 JP 2010211706 A JP2010211706 A JP 2010211706A JP 2010211706 A JP2010211706 A JP 2010211706A JP 5492723 B2 JP5492723 B2 JP 5492723B2
Authority
JP
Japan
Prior art keywords
peak
acceleration
value
difference
peak value
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
JP2010211706A
Other languages
Japanese (ja)
Other versions
JP2012065749A (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.)
Citizen Holdings Co Ltd
Citizen Systems Japan Co Ltd
Citizen Watch Co Ltd
Original Assignee
Citizen Holdings Co Ltd
Citizen Systems Japan Co Ltd
Citizen Watch 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 Citizen Holdings Co Ltd, Citizen Systems Japan Co Ltd, Citizen Watch Co Ltd filed Critical Citizen Holdings Co Ltd
Priority to JP2010211706A priority Critical patent/JP5492723B2/en
Publication of JP2012065749A publication Critical patent/JP2012065749A/en
Application granted granted Critical
Publication of JP5492723B2 publication Critical patent/JP5492723B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

この発明は、被験者の体動を検出する体動検出装置に関する。   The present invention relates to a body motion detection device that detects body motion of a subject.

従来、加速度センサにより被験者の上下方向の加速度を検出し、その検出値である加速度の大きさの変動傾向に基づいて体動を計数する体動検出装置があった。このような体動検出装置は、たとえば、加速度の大きさが減少傾向から増加傾向に切り替わる谷型のピークや、加速度の大きさが増加傾向から減少傾向に切り替わる山型のピークを検出し、隣接する谷型のピークのピーク値と山型のピークのピーク値との差分が閾値を超えた場合に体動(歩行)を検出し、当該差分が閾値を超えた回数をカウントすることによって体動(歩数)をカウントするように構成されている。   2. Description of the Related Art Conventionally, there has been a body motion detection device that detects acceleration in the vertical direction of a subject using an acceleration sensor and counts body motion based on a variation tendency of the magnitude of acceleration that is a detected value. Such a body motion detection device detects, for example, a valley-shaped peak in which the magnitude of acceleration switches from a decreasing trend to an increasing trend and a mountain-shaped peak in which the magnitude of acceleration switches from an increasing trend to a decreasing trend. Body movement (walking) is detected when the difference between the peak value of the trough-shaped peak and the peak value of the mountain-shaped peak exceeds the threshold, and the body movement is counted by counting the number of times the difference exceeds the threshold It is configured to count (number of steps).

また、従来、具体的には、たとえば、隣接する谷型のピークのピーク値と山型のピークのピーク値との差分がその時に設定されている閾値より上のレベルの閾値を上回る場合には、体動(歩数)のカウントに用いる閾値を上のレベルの閾値に設定変更し、当該差分がその時に設定されている閾値を下回る場合には、体動(歩数)のカウントに用いる閾値を下のレベルの閾値に設定変更するようにした技術があった(たとえば、下記特許文献1を参照。)。   Further, conventionally, specifically, for example, when the difference between the peak value of the adjacent valley-shaped peak and the peak value of the mountain-shaped peak exceeds the threshold value above the threshold value set at that time If the threshold used for counting body movement (steps) is changed to a higher level threshold and the difference falls below the threshold set at that time, the threshold used for counting body movement (steps) is decreased. There has been a technique in which the setting is changed to a threshold of a level (for example, see Patent Document 1 below).

特開2002−360549号公報JP 2002-360549 A

しかしながら、上述した特許文献1に記載された従来の技術は、隣接する谷型のピークのピーク値と山型のピークのピーク値との差分を閾値と比較して差分が閾値を超えた場合に体動(歩行)を検出しているため、1回の体動において検出される本来の谷型のピークと山型のピークとの間にノイズに起因する谷型のピークや山型のピークが重畳された場合に体動(歩行)を誤検出してしまい、体動の誤カウントが生じるという問題があった。   However, the conventional technique described in the above-mentioned Patent Document 1 compares the difference between the peak value of the adjacent valley-shaped peak and the peak value of the mountain-shaped peak with the threshold value, and the difference exceeds the threshold value. Since body movement (walking) is detected, there is a valley-shaped peak or peak-shaped peak due to noise between the original valley-shaped peak detected in one body movement and the peak-shaped peak. When superimposed, body motion (walking) is erroneously detected, and there is a problem that erroneous counting of body motion occurs.

また、上述した特許文献1に記載された従来の技術は、隣接する谷型のピークのピーク値と山型のピークのピーク値との差分がその時に設定されている閾値を上回るか下回るかにより閾値のレベルを設定変更するため、ノイズに起因する谷型のピークや山型のピークのピーク値に基づく差分に基づいて閾値が設定変更されてしまう。このため、体動(歩行)の誤検出が増加し、体動(歩数)の誤カウントがさらに増加してしまうという問題があった。   In addition, the conventional technique described in Patent Document 1 described above depends on whether the difference between the peak value of the adjacent valley-shaped peak and the peak value of the mountain-shaped peak exceeds or falls below the threshold value set at that time. Since the threshold level is changed, the threshold value is changed based on the difference based on the peak value of the valley-shaped peak or the peak of the mountain-shaped peak caused by noise. For this reason, there has been a problem that erroneous detection of body movement (walking) increases, and erroneous counting of body movement (number of steps) further increases.

この発明は、上述した従来技術による問題点を解消するため、ノイズに起因する体動の誤カウントを防止することができる体動検出装置を提供することを目的とする。   An object of the present invention is to provide a body motion detection device capable of preventing erroneous counting of body motion due to noise in order to solve the above-described problems caused by the prior art.

上述した課題を解決し、目的を達成するため、この発明にかかる体動検出装置は、加速度センサが出力する加速度を取得する加速度取得手段と、前記加速度取得手段によって取得される加速度の大きさの変動傾向が切り替わる第1のピークを検出する第1のピーク検出手段と、前記加速度取得手段によって取得される加速度の大きさの変動傾向が前記第1のピークとは反対方向に切り替わる第2のピークを検出する第2のピーク検出手段と、前記第1のピーク検出手段によって検出された第1のピークの値と当該第1のピークのつぎに前記第2のピーク検出手段によって検出された第2のピークの値との差分である第1の差分が第1の閾値以上であるか否かを判断する第1の判断手段と、前記第2のピーク検出手段によって検出された第2のピークの値と当該第2のピークのつぎに前記第1のピーク検出手段によって検出された第1のピークの値との差分である第2の差分が第2の閾値以上であるか否かを判断する第2の判断手段と、を備え、前記第1の判断手段によって第1の差分が第1の閾値以上であると判断され、かつ、前記第2の判断手段によって第2の差分が第2の閾値以上であると判断された場合に体動を検出することを特徴とする。   In order to solve the above-described problems and achieve the object, a body motion detection device according to the present invention includes an acceleration acquisition unit that acquires an acceleration output from an acceleration sensor, and an acceleration that is acquired by the acceleration acquisition unit. A first peak detecting means for detecting a first peak at which the fluctuation tendency is switched; and a second peak at which the fluctuation tendency of the magnitude of acceleration acquired by the acceleration acquisition means is switched in the opposite direction to the first peak. Second peak detecting means for detecting the first peak value detected by the first peak detecting means and the second peak detected by the second peak detecting means next to the first peak. A first determination means for determining whether or not a first difference that is a difference from a peak value of the first threshold is equal to or greater than a first threshold; and a second difference detected by the second peak detection means Whether the second difference, which is the difference between the first peak value detected by the first peak detection means next to the second peak value, is greater than or equal to the second threshold value. Second determining means for determining the first difference, the first determining means determines that the first difference is greater than or equal to a first threshold, and the second determining means determines the second difference is Body motion is detected when it is determined that the second threshold value or more is reached.

また、この発明にかかる体動検出装置は、上記の発明において、前記第1の判断手段によって第1の差分が第1の閾値以上であると判断された第1の差分の後に出現した前記第2の差分が第2の閾値以上であると判断された場合に体動を検出することを特徴とする。   Further, in the above invention, the body motion detection device according to the present invention is characterized in that the first difference that appears after the first difference determined by the first determination means that the first difference is not less than a first threshold value. The body motion is detected when it is determined that the difference between the two is equal to or greater than the second threshold value.

また、この発明にかかる体動検出装置は、上記の発明において、前記第2の判断手段によって前記第2の閾値以上であると判断された第2の差分の後に出現した第1の差分が、前記第1の判断手段によって前記第1の閾値以上ではないと判断された場合、つぎに出現する第2の差分にかかる体動の検出をおこなわないことを特徴とする。   Further, in the body movement detection device according to the present invention, in the above invention, the first difference that appears after the second difference determined to be equal to or greater than the second threshold by the second determination unit is: When it is determined by the first determination means that it is not equal to or greater than the first threshold value, the body motion relating to the second difference that appears next is not detected.

また、この発明にかかる体動検出装置は、上記の発明において、前記第1のピーク検出手段によって検出された第1のピークの値を記憶する第1の記憶手段と、前記第2のピーク検出手段によって検出された第2のピークの値を記憶する第2の記憶手段と、を備え、前記第1の判断手段が、前記第2のピーク検出手段によって第2のピークが検出されるごとに、当該検出された第2のピークの値と前記第1の記憶手段によって記憶された第1のピークの値とに基づいて算出される第1の差分が前記第1の閾値以上であるか否かを判断し、前記第2の判断手段が、前記第1のピーク検出手段によって第1のピークが検出されるごとに、当該検出された第1のピークの値と前記第2の記憶手段によって記憶された第2のピークの値とに基づいて算出される第2の差分が前記第2の閾値以上であるか否かを判断し、前記第1の記憶手段が、前記第2のピーク検出手段によって第2のピークが検出された場合に、先に記憶されている第1のピークの値を消去し、前記第2の記憶手段が、前記第1のピーク検出手段によって第1のピークが検出され、当該第1のピークの値と先に記憶されている第2のピークの値との差分が前記第2の閾値以上であると判断された場合に、先に記憶されている第2のピークの値を消去することを特徴とする。   Moreover, the body motion detection device according to the present invention is the above invention, wherein the first storage means for storing the value of the first peak detected by the first peak detection means, and the second peak detection Second storage means for storing the value of the second peak detected by the means, and each time the first determination means detects the second peak by the second peak detection means. Whether the first difference calculated based on the detected second peak value and the first peak value stored by the first storage means is greater than or equal to the first threshold value. Each time the first peak is detected by the first peak detection means, the second determination means uses the value of the detected first peak and the second storage means. Calculated based on stored second peak value Whether the second difference is greater than or equal to the second threshold and the first storage means detects the second peak when the second peak detection means detects the second peak. The first peak value stored in the first peak is erased, and the second storage means detects the first peak by the first peak detection means, and stores the first peak value first. When it is determined that the difference between the second peak value and the second peak value is greater than or equal to the second threshold value, the previously stored second peak value is erased.

また、この発明にかかる体動検出装置は、上記の発明において、前記第1のピーク検出手段が、加速度の大きさが減少傾向から増加傾向に切り替わる下弦ピークを検出し、前記第2のピーク検出手段が、加速度の大きさが増加傾向から減少傾向に切り替わる上弦ピークを検出することを特徴とする。   In the body motion detection device according to the present invention as set forth in the invention described above, the first peak detection means detects a lower chord peak where the magnitude of acceleration switches from a decreasing tendency to an increasing tendency, and the second peak detection The means is characterized by detecting an upper string peak in which the magnitude of acceleration switches from an increasing tendency to a decreasing tendency.

また、この発明にかかる体動検出装置は、上記の発明において、前記第1のピーク検出手段が、加速度の大きさが増加傾向から減少傾向に切り替わる上弦ピークを検出し、前記第2のピーク検出手段が、加速度の大きさが減少傾向から増加傾向に切り替わる下弦ピークを検出することを特徴とする。   In the body motion detection device according to the present invention as set forth in the invention described above, the first peak detection means detects an upper string peak in which the magnitude of acceleration switches from an increasing tendency to a decreasing tendency, and the second peak detection The means is characterized by detecting a lower chord peak in which the magnitude of acceleration switches from a decreasing tendency to an increasing tendency.

また、この発明にかかる体動検出装置は、上記の発明において、前記第1のピーク検出手段および前記第2のピーク検出手段が、前回取得した加速度の大きさと今回取得した加速度の大きさとの差分を算出し、前回算出された差分に対する今回算出された差分の大小に基づいて加速度の大きさの変動傾向を判断することを特徴とする。   The body motion detection device according to the present invention is the above-described invention, wherein the first peak detection means and the second peak detection means are the difference between the acceleration magnitude acquired last time and the acceleration magnitude acquired this time. , And a variation tendency of the magnitude of the acceleration is determined based on the difference calculated this time with respect to the previously calculated difference.

また、この発明にかかる体動検出装置は、上記の発明において、前記第1のピーク検出手段が、加速度の大きさの変動傾向が連続して増加あるいは減少した後に当該変動傾向が減少あるいは増加に切り替わった場合に前記第1のピークを検出し、前記第2のピーク検出手段が、加速度の大きさの変動傾向が連続して減少あるいは増加した後に当該変動傾向が増加あるいは減少に切り替わった場合に前記第2のピークを検出することを特徴とする。   In the body movement detecting device according to the present invention, in the above invention, the first peak detecting means may decrease or increase the fluctuation tendency after the fluctuation tendency of the magnitude of acceleration continuously increases or decreases. When the first peak is detected when the switching is made, and the second peak detecting means switches to the increase or decrease after the fluctuation tendency of the acceleration magnitude continuously decreases or increases The second peak is detected.

また、この発明にかかる体動検出装置は、上記の発明において、前記加速度取得手段が、任意のサンプリング周期ごとに加速度の大きさを取得し、前記第1のピーク検出手段による第1のピークの検出条件、および、前記第2のピーク検出手段による第2のピークの検出条件を、前記サンプリング周期の長さに応じて変動させることを特徴とする。   In the body motion detection device according to the present invention, in the above invention, the acceleration acquisition means acquires the magnitude of acceleration every arbitrary sampling period, and the first peak detection means detects the first peak. The detection condition and the second peak detection condition by the second peak detection means are varied according to the length of the sampling period.

この発明によれば、加速度センサが出力する加速度の大きさを示す信号に重畳されたノイズに起因する体動の誤検出を防止することができる。   According to the present invention, it is possible to prevent erroneous detection of body movement caused by noise superimposed on a signal indicating the magnitude of acceleration output from the acceleration sensor.

この発明にかかる体動検出装置によれば、加速度センサが出力する加速度の大きさを示す信号に重畳されたノイズに起因する体動の誤検出を防止することができるので、ノイズに起因する体動の誤カウントを防止することができるという効果を奏する。   According to the body motion detection device according to the present invention, it is possible to prevent erroneous detection of body motion due to noise superimposed on a signal indicating the magnitude of acceleration output from the acceleration sensor. There is an effect that an erroneous counting of movement can be prevented.

この発明にかかる体動検出装置のハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of the body movement detection apparatus concerning this invention. この発明にかかる体動検出装置の処理装置の機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of the processing apparatus of the body movement detection apparatus concerning this invention. この発明にかかる体動検出装置の加速度データ取得部の機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of the acceleration data acquisition part of the body movement detection apparatus concerning this invention. この発明にかかる体動検出装置11の体動検出方法による体動検出処理手順を示すフローチャート(その1)である。It is a flowchart (the 1) which shows the body motion detection process sequence by the body motion detection method of the body motion detection apparatus 11 concerning this invention. この発明にかかる体動検出装置11の体動検出方法による体動検出処理手順を示すフローチャート(その2)である。It is a flowchart (the 2) which shows the body motion detection process sequence by the body motion detection method of the body motion detection apparatus 11 concerning this invention. この発明にかかる実施の形態の体動検出装置の体動検出方法による体動検出アルゴリズムにおける、ノイズ誤カウント防止機能を説明する波形図である。It is a wave form diagram explaining the noise false count prevention function in the body motion detection algorithm by the body motion detection method of the body motion detection apparatus of embodiment concerning this invention. この発明にかかる実施の形態の体動検出装置の体動検出方法による体動検出アルゴリズムにおける、下弦ピーク値、上弦ピーク値のリセットタイミングを示す説明図である。It is explanatory drawing which shows the reset timing of the lower chord peak value and the upper chord peak value in the body motion detection algorithm by the body motion detection method of the body motion detection apparatus according to the embodiment of the present invention. 上弦ピークの検出方法を示す説明図である。It is explanatory drawing which shows the detection method of an upper chord peak. 下弦ピークの検出方法を示す説明図である。It is explanatory drawing which shows the detection method of a lower chord peak.

以下に添付図面を参照して、この発明にかかる体動検出装置の好適な実施の形態を詳細に説明する。なお、以下の実施の形態の説明および添付図面において、同様の構成には同一の符号を付し、重複する説明を省略する。   Exemplary embodiments of a body motion detection device according to the present invention will be explained below in detail with reference to the accompanying drawings. Note that, in the following description of the embodiments and the accompanying drawings, the same reference numerals are given to the same components, and duplicate descriptions are omitted.

(体動検出装置のハードウェア構成)
図1は、この発明にかかる体動検出装置のハードウェア構成を示すブロック図である。図1に示すように、体動検出装置11は、互いに異なる三方向(X軸方向、Y軸方向およびZ軸方向とする)の加速度を検出可能な3軸加速度センサを備えている。ここでは、3軸加速度センサを、X軸方向の加速度を検出するX軸加速度センサ12、Y軸方向の加速度を検出するY軸加速度センサ13、およびZ軸方向の加速度を検出するZ軸加速度センサ14として示す。加速度センサとしては、周知のものを用いることができる。X軸方向、Y軸方向およびZ軸方向は、体動検出装置11に固有の方向であり、体動検出装置11の姿勢(向きや傾き)の変化に伴って変化する。
(Hardware configuration of body motion detection device)
FIG. 1 is a block diagram showing a hardware configuration of a body motion detection device according to the present invention. As shown in FIG. 1, the body motion detection device 11 includes a three-axis acceleration sensor that can detect accelerations in three different directions (X-axis direction, Y-axis direction, and Z-axis direction). Here, the three-axis acceleration sensor includes an X-axis acceleration sensor 12 that detects acceleration in the X-axis direction, a Y-axis acceleration sensor 13 that detects acceleration in the Y-axis direction, and a Z-axis acceleration sensor that detects acceleration in the Z-axis direction. It is shown as 14. A well-known sensor can be used as the acceleration sensor. The X-axis direction, the Y-axis direction, and the Z-axis direction are directions specific to the body motion detection device 11 and change with changes in the posture (direction and inclination) of the body motion detection device 11.

また、体動検出装置11は、3軸加速度センサの出力信号に基づいて、体動検出装置11を携帯する被験者の体動であるか否かを判断し、体動をカウントする処理装置15を備えている。処理装置15の詳細な構成については、後述する。また、体動検出装置11は、処理装置15でカウントされた体動を表示する表示装置16を備えている。表示装置16は、たとえば、液晶パネルと液晶駆動回路とを備えている。   Further, the body motion detection device 11 determines whether or not the subject motion is the body motion of the subject carrying the body motion detection device 11 based on the output signal of the three-axis acceleration sensor, and the processing device 15 that counts the body motion is provided. I have. The detailed configuration of the processing device 15 will be described later. The body motion detection device 11 includes a display device 16 that displays the body motion counted by the processing device 15. The display device 16 includes, for example, a liquid crystal panel and a liquid crystal drive circuit.

(処理装置の機能的構成)
図2は、この発明にかかる体動検出装置11の処理装置の機能的構成を示すブロック図である。図2に示すように、処理装置15は、X軸アナログ/デジタル変換部21、Y軸アナログ/デジタル変換部22、Z軸アナログ/デジタル変換部23、加速度データ取得部24、ピーク検出部25、上弦ピーク値記憶部26、下弦ピーク値記憶部27、ピーク差検出部28、閾値判定部29、下弦・上弦検出切替部30、フラグ制御部31および計数部32を備えている。これらの機能部21〜32については、ハードウェアにより実現されてもよいし、CPUなどでプログラムを実行することにより実現されてもよい。
(Functional configuration of processing equipment)
FIG. 2 is a block diagram showing a functional configuration of the processing device of the body movement detection device 11 according to the present invention. As shown in FIG. 2, the processing device 15 includes an X-axis analog / digital conversion unit 21, a Y-axis analog / digital conversion unit 22, a Z-axis analog / digital conversion unit 23, an acceleration data acquisition unit 24, a peak detection unit 25, An upper string peak value storage unit 26, a lower string peak value storage unit 27, a peak difference detection unit 28, a threshold value determination unit 29, a lower string / upper string detection switching unit 30, a flag control unit 31, and a counting unit 32 are provided. These functional units 21 to 32 may be realized by hardware, or may be realized by executing a program by a CPU or the like.

X軸アナログ/デジタル変換部21、Y軸アナログ/デジタル変換部22およびZ軸アナログ/デジタル変換部23は、それぞれ、入力端子(図2における符号21a,22a,23aを参照)を介してX軸加速度センサ12、Y軸加速度センサ13およびZ軸加速度センサ14に接続されている。X軸アナログ/デジタル変換部21、Y軸アナログ/デジタル変換部22およびZ軸アナログ/デジタル変換部23は、それぞれ、X軸加速度センサ12、Y軸加速度センサ13およびZ軸加速度センサ14から出力されるアナログ電圧信号を所定の周期でサンプリングしてデジタルデータに変換する。X軸アナログ/デジタル変換部21、Y軸アナログ/デジタル変換部22およびZ軸アナログ/デジタル変換部23は、同一のタイミングでそれぞれのセンサ出力信号をサンプリングするのが望ましい。   The X-axis analog / digital conversion unit 21, the Y-axis analog / digital conversion unit 22, and the Z-axis analog / digital conversion unit 23 are respectively connected to the X-axis via input terminals (see reference numerals 21a, 22a, and 23a in FIG. 2). The acceleration sensor 12, the Y-axis acceleration sensor 13, and the Z-axis acceleration sensor 14 are connected. The X-axis analog / digital conversion unit 21, the Y-axis analog / digital conversion unit 22, and the Z-axis analog / digital conversion unit 23 are output from the X-axis acceleration sensor 12, the Y-axis acceleration sensor 13, and the Z-axis acceleration sensor 14, respectively. The analog voltage signal is sampled at a predetermined period and converted into digital data. It is desirable that the X-axis analog / digital conversion unit 21, the Y-axis analog / digital conversion unit 22, and the Z-axis analog / digital conversion unit 23 sample each sensor output signal at the same timing.

この発明にかかる体動検出装置11において、X軸アナログ/デジタル変換部21、Y軸アナログ/デジタル変換部22およびZ軸アナログ/デジタル変換部23によって、X軸加速度センサ12、Y軸加速度センサ13およびZ軸加速度センサ14から出力されるアナログ電圧信号を取得する周期(以下「サンプリング周期」という)は、可変とされている。   In the body motion detection device 11 according to the present invention, an X-axis acceleration sensor 12 and a Y-axis acceleration sensor 13 are constituted by an X-axis analog / digital conversion unit 21, a Y-axis analog / digital conversion unit 22, and a Z-axis analog / digital conversion unit 23. The period for acquiring the analog voltage signal output from the Z-axis acceleration sensor 14 (hereinafter referred to as “sampling period”) is variable.

加速度データ取得部24は、各軸のアナログ/デジタル変換部21,22,23の出力値に基づいて加速度の大きさを取得する。加速度の大きさは、増減を繰り返す。加速度データ取得部24の詳細な構成については、後述する。この実施の形態においては、加速度データ取得部24によって取得手段としての機能を実現することができる。   The acceleration data acquisition unit 24 acquires the magnitude of acceleration based on the output values of the analog / digital conversion units 21, 22, and 23 for each axis. The magnitude of acceleration is repeatedly increased and decreased. The detailed configuration of the acceleration data acquisition unit 24 will be described later. In this embodiment, the acceleration data acquisition unit 24 can realize a function as an acquisition unit.

ピーク検出部25は、加速度バッファおよびUpDownバッファを備えている。加速度バッファは、加速度データ取得部24から出力された加速度の値(加速度の大きさを示す値)を格納する。ピーク検出部25は、加速度データ取得部24から出力された加速度を、たとえば、所定のサンプリング周期で取得し、取得するごとに加速度バッファを更新する。   The peak detection unit 25 includes an acceleration buffer and an UpDown buffer. The acceleration buffer stores an acceleration value (a value indicating the magnitude of acceleration) output from the acceleration data acquisition unit 24. The peak detection unit 25 acquires the acceleration output from the acceleration data acquisition unit 24, for example, at a predetermined sampling period, and updates the acceleration buffer each time it is acquired.

UpDownバッファは、加速度の増減ステータスを記憶する。UpDownバッファは、前回の加速度に対する今回の加速度の増減ステータス(UpDown今回)と、前々回の加速度に対する前回の加速度の増減ステータス(UpDown前回)と、前々々回の加速度に対する前々回の加速度の増減ステータス(UpDown前々回)と、を記憶する。   The UpDown buffer stores acceleration increase / decrease status. The UpDown buffer includes a current acceleration increase / decrease status with respect to the previous acceleration (UpDown current), a previous acceleration increase / decrease status with respect to the previous acceleration (UpDown previous), and a previous acceleration increase / decrease status with respect to the previous acceleration. UpDown before) is stored.

ピーク検出部25は、UpDownバッファに記憶された加速度の増減ステータスに基づいて、下弦ピーク(谷型のピーク、この実施の形態においては第1のピーク)や上弦ピーク(山型のピーク、この実施の形態においては第2のピーク)を検出するとともに各ピークのピーク値(下弦ピーク値および上弦ピーク値)を検出する。この実施の形態においては、ピーク検出部25によって第1のピーク検出手段および第2のピーク検出手段としての機能を実現することができる。下弦ピーク値は、加速度データ取得部24により取得された加速度の大きさが減少傾向から増加傾向に切り替わるときのピーク値とする。上弦ピーク値は、加速度データ取得部24により取得された加速度の大きさが増加傾向から減少傾向に切り替わるときのピーク値とする。   Based on the acceleration increase / decrease status stored in the UpDown buffer, the peak detection unit 25 selects the lower chord peak (valley peak, the first peak in this embodiment) or the upper chord peak (mountain peak, this implementation). In the embodiment, the second peak) is detected, and the peak value of each peak (lower chord peak value and upper chord peak value) is detected. In this embodiment, the peak detector 25 can realize the functions as the first peak detector and the second peak detector. The lower chord peak value is a peak value when the magnitude of the acceleration acquired by the acceleration data acquisition unit 24 switches from a decreasing tendency to an increasing tendency. The upper string peak value is a peak value when the magnitude of the acceleration acquired by the acceleration data acquisition unit 24 is switched from an increasing tendency to a decreasing tendency.

ピーク検出部25は、下弦ピーク値を検出するために、たとえば、次のような処理をおこなう。ピーク検出部25は、加速度データ取得部24から出力された加速度の値を今回の加速度としてバッファに格納し、そのバッファの格納値(n番目の加速度)をつぎに加速度データ取得部24から出力される前に前回の加速度としてバッファに格納する。そして、つぎに加速度データ取得部24から出力された加速度(n+1番目の加速度)の値を今回の加速度としてバッファに格納し、前回の加速度(n番目の加速度)と今回の加速度(n+1番目の加速度)とを比較し、n+1番目の加速度の値がn番目の加速度の値よりも小さい場合に、n+1番目の加速度を下弦ピーク値に格納する。また、ピーク検出部25は、n+1番目の加速度を前回の加速度としてバッファに格納するとともに、先に格納されていたn番目の加速度を前々回の加速度としてバッファに格納する。   The peak detector 25 performs, for example, the following process in order to detect the lower chord peak value. The peak detection unit 25 stores the acceleration value output from the acceleration data acquisition unit 24 in the buffer as the current acceleration, and the stored value (nth acceleration) in the buffer is then output from the acceleration data acquisition unit 24. Before being stored in the buffer as the previous acceleration. Then, the value of the acceleration (n + 1th acceleration) output from the acceleration data acquisition unit 24 is stored in the buffer as the current acceleration, and the previous acceleration (nth acceleration) and the current acceleration (n + 1th acceleration) are stored. ), And when the value of the (n + 1) th acceleration is smaller than the value of the nth acceleration, the (n + 1) th acceleration is stored in the lower chord peak value. The peak detector 25 stores the (n + 1) th acceleration as the previous acceleration in the buffer, and stores the previously stored nth acceleration in the buffer as the previous acceleration.

つぎに、ピーク検出部25は、そのつぎに加速度データ取得部24から出力された加速度(n+2番目の加速度)の値を今回の加速度としてバッファに格納して、前回の加速度(n+1番目の加速度)と今回の加速度(n+2番目の加速度)とを比較し、n+2番目の加速度の値がn+1番目の加速度の値よりも小さい場合に、n+2番目の加速度の値を下弦ピーク値に格納する。また、ピーク検出部25は、n+2番目の加速度を前回の加速度としてバッファに格納するとともに、先に格納されていたn+1番目の加速度を前々回の加速度としてバッファに格納する。   Next, the peak detection unit 25 stores the acceleration (n + 2nd acceleration) value output from the acceleration data acquisition unit 24 in the buffer as the current acceleration, and the previous acceleration (n + 1th acceleration). And the present acceleration (n + 2nd acceleration) are compared, and if the value of the (n + 2) th acceleration is smaller than the value of the (n + 1) th acceleration, the value of the (n + 2) th acceleration is stored in the lower chord peak value. The peak detector 25 stores the (n + 2) th acceleration in the buffer as the previous acceleration, and stores the previously stored (n + 1) th acceleration in the buffer as the previous acceleration.

そして、ピーク検出部25は、加速度データ取得部24から出力された加速度の値が少なくとも2回連続して小さくなった後、そのつぎに加速度データ取得部24から出力された加速度(n+3番目の加速度)の値を今回の加速度としてバッファに格納して、前回の加速度(n+2番目の加速度)と今回の加速度(n+3番目の加速度)とを比較し、n+3番目の加速度の値がn+2番目の加速度の値よりも大きくなった場合に、加速度の大きさが減少傾向から増加傾向に切り替わったと判断する。そのときの下弦ピーク値(n+2番目の加速度の値)が、下弦ピーク値記憶部27によって記憶される。   Then, after the acceleration value output from the acceleration data acquisition unit 24 decreases continuously at least twice, the peak detection unit 25 then receives the acceleration (n + 3th acceleration) output from the acceleration data acquisition unit 24. ) Is stored in the buffer as the current acceleration, the previous acceleration (n + 2nd acceleration) is compared with the current acceleration (n + 3rd acceleration), and the n + 3th acceleration value is the n + 2th acceleration value. When it becomes larger than the value, it is determined that the magnitude of acceleration has switched from a decreasing tendency to an increasing tendency. The lower chord peak value (n + second acceleration value) at that time is stored in the lower chord peak value storage unit 27.

また、ピーク検出部25は、上弦ピーク値を検出するために、たとえば、次のような処理をおこなう。ピーク検出部25は、加速度データ取得部24から出力された加速度の値を今回の加速度としてバッファに格納し、そのバッファの格納値(m番目の加速度)をつぎに加速度データ取得部24から出力される前に前回の加速度としてバッファに格納する。そして、つぎに加速度データ取得部24から出力された加速度(m+1番目の加速度)の値を今回の加速度としてバッファに格納し、前回の加速度(m番目の加速度)と今回の加速度(m+1番目の加速度)とを比較し、m+1番目の加速度の値がm番目の加速度の値よりも大きい場合に、m+1番目の加速度を上弦ピーク値に格納する。また、ピーク検出部25は、m+1番目の加速度を前回の加速度としてバッファに格納するとともに、先に格納されていたm番目の加速度を前々回の加速度としてバッファに格納する。   In addition, the peak detector 25 performs, for example, the following process in order to detect the first chord peak value. The peak detection unit 25 stores the acceleration value output from the acceleration data acquisition unit 24 in the buffer as the current acceleration, and the stored value (m-th acceleration) in the buffer is then output from the acceleration data acquisition unit 24. Before being stored in the buffer as the previous acceleration. Then, the value of the acceleration (m + 1th acceleration) output from the acceleration data acquisition unit 24 is stored in the buffer as the current acceleration, and the previous acceleration (mth acceleration) and the current acceleration (m + 1th acceleration) are stored. ), And when the value of the m + 1th acceleration is larger than the value of the mth acceleration, the m + 1th acceleration is stored in the first chord peak value. The peak detection unit 25 stores the m + 1th acceleration in the buffer as the previous acceleration, and stores the mth acceleration stored in the buffer as the previous acceleration.

つぎに、ピーク検出部25は、m+1番目の加速度の値と、そのつぎに加速度データ取得部24から出力された加速度(m+2番目の加速度)の値を今回の加速度としてバッファに格納して、前回の加速度(m+1番目の加速度)と今回の加速度(m+2番目の加速度)とを比較し、m+2番目の加速度の値がm+1番目の加速度の値よりも大きい場合に、m+2番目の加速度の値を上弦ピーク値に格納する。また、ピーク検出部25は、m+2番目の加速度を前回の加速度として格納するとともに、先に格納されていたm+1番目の加速度を前々回の加速度としてバッファに格納する。   Next, the peak detection unit 25 stores the value of the m + 1th acceleration and the value of the acceleration (m + 2nd acceleration) output from the acceleration data acquisition unit 24 in the buffer as the current acceleration, and stores the previous time. The acceleration of (m + 1) is compared with the current acceleration (m + 2), and if the value of m + 2 is greater than the value of m + 1, the value of m + 2 is the first chord Store in peak value. The peak detection unit 25 stores the m + 2th acceleration as the previous acceleration, and stores the previously stored m + 1th acceleration in the buffer as the previous acceleration.

そして、ピーク検出部25は、加速度データ取得部24から出力された加速度の値が少なくとも2回連続して大きくなった後、そのつぎに加速度データ取得部24から出力された加速度(m+3番目の加速度)の値を今回の加速度としてバッファに格納して、前回の加速度(m+2番目の加速度)と今回の加速度(m+3番目の加速度)とを比較し、m+3番目の加速度の値がm+2番目の加速度の値よりも小さくなった場合に、加速度の大きさが増加傾向から減少傾向に切り替わったと判断する。そのときの上弦ピーク値(m+2番目の加速度の値)が、上弦ピーク値記憶部27によって記憶される。   Then, after the acceleration value output from the acceleration data acquisition unit 24 continuously increases at least twice, the peak detection unit 25 then receives the acceleration (m + 3rd acceleration) output from the acceleration data acquisition unit 24. ) Is stored in the buffer as the current acceleration, the previous acceleration (m + 2nd acceleration) is compared with the current acceleration (m + 3rd acceleration), and the value of m + 3 acceleration is the m + 2th acceleration. When it becomes smaller than the value, it is determined that the magnitude of acceleration has switched from an increasing tendency to a decreasing tendency. The cosine peak value (m + 2nd acceleration value) at that time is stored in the cosine peak value storage unit 27.

ピーク差検出部28は、上弦ピーク値記憶部26によって記憶された上弦ピーク値および下弦ピーク値記憶部27によって記憶された下弦ピーク値の差分を検出(算出)する。ピーク差検出部28は、上弦ピーク値および下弦ピーク値の差分の検出(算出)に際して、たとえば、上弦ピーク値とその直後の下弦ピーク値との差分を検出(算出)する。また、ピーク差検出部28は、上弦ピーク値および下弦ピーク値の差分の検出(算出)に際して、下弦ピーク値とその直後の上弦ピーク値との差分を検出(算出)する。   The peak difference detection unit 28 detects (calculates) the difference between the upper chord peak value stored by the upper chord peak value storage unit 26 and the lower chord peak value stored by the lower chord peak value storage unit 27. When detecting (calculating) the difference between the upper chord peak value and the lower chord peak value, the peak difference detecting unit 28 detects (calculates) the difference between the upper chord peak value and the immediately following lower chord peak value, for example. Further, the peak difference detection unit 28 detects (calculates) the difference between the lower chord peak value and the immediately following upper chord peak value when detecting (calculating) the difference between the upper chord peak value and the lower chord peak value.

閾値判定部29は、ピーク差検出部28により検出(算出)された、上弦ピーク値および下弦ピーク値の差分を、あらかじめ設定されている所定の閾値と比較し、その結果に基づいて体動を検出したか否かを判定する。閾値判定部29は、下弦ピーク値(第1のピーク値)とその直後の上弦ピーク値(第2のピーク値)との差分(第1の差分)が、ピーク差検出部28により検出(算出)された場合、当該差分が第1の閾値以上であるか否かを判断する。また、閾値判定部29は、上弦ピーク値(第2のピーク値)とその直後の下弦ピーク値(第1のピーク値)との差分(第2の差分)が、ピーク差検出部28により検出(算出)された場合、当該差分が第2の閾値以上であるか否かを判断する。   The threshold value determination unit 29 compares the difference between the upper chord peak value and the lower chord peak value detected (calculated) by the peak difference detection unit 28 with a predetermined threshold value set in advance, and performs body movement based on the result. It is determined whether or not it has been detected. The threshold determination unit 29 detects (calculates) the difference (first difference) between the lower chord peak value (first peak value) and the immediately following upper chord peak value (second peak value) by the peak difference detection unit 28. ), It is determined whether or not the difference is equal to or greater than a first threshold value. The threshold determination unit 29 detects the difference (second difference) between the upper chord peak value (second peak value) and the immediately following lower chord peak value (first peak value) by the peak difference detection unit 28. If (calculated), it is determined whether or not the difference is greater than or equal to a second threshold value.

第1の閾値および第2の閾値は、あらかじめ設定された値とされる。第1の閾値と第2の閾値とは同じ値とすることができる。また、第1の閾値と第2の閾値とは、たとえば、第1の閾値<第2の閾値や第1の閾値>第2の閾値のように、それぞれが異なる値であってもよい。閾値判定部29は、第1の差分が第1の閾値以上であり、かつ、第2の差分が第2の閾値以上であると判断した場合に体動を検出したと判定する。この実施の形態においては、閾値判定部29によって第1の判断手段および第2の判断手段としての機能を実現することができる。   The first threshold value and the second threshold value are set in advance. The first threshold value and the second threshold value can be the same value. Further, the first threshold value and the second threshold value may be different from each other, for example, first threshold value <second threshold value or first threshold value> second threshold value. The threshold determination unit 29 determines that a body movement has been detected when it is determined that the first difference is equal to or greater than the first threshold and the second difference is equal to or greater than the second threshold. In this embodiment, the threshold value determination unit 29 can realize the functions as the first determination unit and the second determination unit.

下弦・上弦検出切替部30は、ピーク検出部25が下弦ピーク値を検出するか上弦ピーク値を検出するかを切り替える。下弦・上弦検出切替部30は、山谷判断ステータスを記憶するバッファを備える。山谷判断ステータスは、体動検出装置11のステータス(動作状態)を示し、「山検知済・谷検知中」ステータスまたは「山検知中」ステータスに設定される。山谷判断ステータスの設定の切り替えについては、説明を後述する(図4および図5を参照)。   The lower string / upper string detection switching unit 30 switches whether the peak detection unit 25 detects the lower string peak value or the upper string peak value. The lower chord / upper chord detection switching unit 30 includes a buffer for storing the Yamatani judgment status. The mountain / valley determination status indicates the status (operation state) of the body motion detection device 11 and is set to a “mountain detected / valley detected” status or a “mountain detected” status. The switching of the setting of the mountain / valley determination status will be described later (see FIGS. 4 and 5).

この発明にかかる実施の形態の体動検出装置11は、下弦・上弦検出切替部30を備えるものに限らない。この発明にかかる実施の形態の体動検出装置11は、下弦・上弦検出切替部30を備えず、加速度データ取得部24から出力された加速度の値のみに基づいて、上弦ピーク値および下弦ピーク値を検出する構成であってもよい。   The body motion detection device 11 according to the embodiment of the present invention is not limited to the one provided with the lower chord / upper chord detection switching unit 30. The body motion detection device 11 according to the embodiment of the present invention does not include the lower chord / upper chord detection switching unit 30, and based on only the acceleration value output from the acceleration data acquisition unit 24, the upper chord peak value and the lower chord peak value. The structure which detects this may be sufficient.

上弦ピーク値記憶部26は、上弦ピーク値を記憶する。上弦ピーク値記憶部26は、ピーク検出部25によって下弦ピーク値が検出され、かつ、当該下弦ピーク値および上弦ピーク値記憶部26に記憶されているピーク値の差分が所定の閾値を超えている場合に、記憶されている上弦ピーク値をリセットする。すなわち、上弦ピーク値記憶部26は、ピーク検出部25によって下弦ピーク値が検出され、かつ、当該下弦ピーク値および上弦ピーク値記憶部26に記憶されているピーク値の差分が所定の閾値を超えている場合、記憶されている上弦ピーク値をリセットし、つぎに検出された上弦ピーク値を新たに記憶する。この実施の形態においては、上弦ピーク値記憶部26によって第2の記憶手段を実現することができる。   The upper string peak value storage unit 26 stores an upper string peak value. The upper chord peak value storage unit 26 detects the lower chord peak value by the peak detection unit 25, and the difference between the lower chord peak value and the peak value stored in the upper chord peak value storage unit 26 exceeds a predetermined threshold value. If this is the case, the stored first chord peak value is reset. That is, the upper chord peak value storage unit 26 detects the lower chord peak value by the peak detection unit 25, and the difference between the lower chord peak value and the peak value stored in the upper chord peak value storage unit 26 exceeds a predetermined threshold value. If so, the stored upper chord peak value is reset, and the detected first chord peak value is newly stored. In this embodiment, the first storage means can be realized by the first chord peak value storage unit 26.

下弦ピーク値記憶部27は、下弦ピーク値を記憶する。下弦ピーク値記憶部27は、ピーク検出部25によって上弦ピーク値が検出された場合に、記憶されている下弦ピーク値をリセットする。すなわち、下弦ピーク値記憶部27は、ピーク検出部25によって上弦ピーク値が検出された場合、記憶されている下弦ピーク値をリセットし、つぎに検出された下弦ピーク値を新たに記憶する。この実施の形態においては、下弦ピーク値記憶部27によって第1の記憶手段を実現することができる。   The lower chord peak value storage unit 27 stores the lower chord peak value. The lower chord peak value storage unit 27 resets the stored lower chord peak value when the peak detecting unit 25 detects the upper chord peak value. That is, when the upper chord peak value is detected by the peak detector 25, the lower chord peak value storage unit 27 resets the stored lower chord peak value and then newly stores the lower chord peak value detected. In this embodiment, the first storage means can be realized by the lower chord peak value storage unit 27.

フラグ制御部31は、閾値判定部29により体動を検出したと判定された場合に、所定のタイミングで体動検出フラグをオンにする。所定のタイミングは、たとえば、下弦・上弦検出切替部30による、山谷判断ステータスの設定の切り替えタイミングとすることができる。また、フラグ制御部31は、体動検出フラグをオンにした後、所定期間経過した時点で体動検出フラグをオフに切り替える。計数部32は、カウンタにより構成されており、体動検出フラグがオンになった回数をカウントする。計数部32のカウント値のデータは、出力端子(図2における符号32aを参照)を介して前記表示装置16へ送られる。   The flag control unit 31 turns on the body motion detection flag at a predetermined timing when the threshold determination unit 29 determines that the body motion is detected. The predetermined timing can be, for example, a switching timing for setting the mountain / valley determination status by the lower / upper string detection switching unit 30. In addition, the flag control unit 31 switches the body motion detection flag off when a predetermined period has elapsed after turning on the body motion detection flag. The counting unit 32 includes a counter and counts the number of times the body motion detection flag is turned on. The count value data of the counting unit 32 is sent to the display device 16 via an output terminal (see reference numeral 32a in FIG. 2).

(加速度データ取得部の機能的構成)
図3は、この発明にかかる体動検出装置11の加速度データ取得部の機能的構成を示すブロック図である。図3に示すように、加速度データ取得部24は、X軸加速度データ格納部310、Y軸加速度データ格納部320、Z軸加速度データ格納部330、合成加速度データ算出部340、合成加速度データ格納部350および平滑化部360を備えている。
(Functional configuration of acceleration data acquisition unit)
FIG. 3 is a block diagram showing a functional configuration of the acceleration data acquisition unit of the body motion detection device 11 according to the present invention. As shown in FIG. 3, the acceleration data acquisition unit 24 includes an X-axis acceleration data storage unit 310, a Y-axis acceleration data storage unit 320, a Z-axis acceleration data storage unit 330, a combined acceleration data calculation unit 340, and a combined acceleration data storage unit. 350 and a smoothing unit 360.

X軸加速度データ格納部310、Y軸加速度データ格納部320およびZ軸加速度データ格納部330は、たとえば、リングバッファにより構成されている。X軸加速度データ格納部310、Y軸加速度データ格納部320およびZ軸加速度データ格納部330は、それぞれ、入力端子(図3における符号310a,320a,330aを参照)を介してX軸アナログ/デジタル変換部21、Y軸アナログ/デジタル変換部22およびZ軸アナログ/デジタル変換部23に接続されており、それらアナログ/デジタル変換部の出力値を加速度データとして格納する。   The X-axis acceleration data storage unit 310, the Y-axis acceleration data storage unit 320, and the Z-axis acceleration data storage unit 330 are constituted by, for example, ring buffers. The X-axis acceleration data storage unit 310, the Y-axis acceleration data storage unit 320, and the Z-axis acceleration data storage unit 330 are respectively X-axis analog / digital via input terminals (see reference numerals 310a, 320a, and 330a in FIG. 3). The converter 21 is connected to the Y-axis analog / digital converter 22 and the Z-axis analog / digital converter 23, and the output values of these analog / digital converters are stored as acceleration data.

合成加速度データ算出部340は、3軸の加速度データから合成加速度データを算出する。合成加速度データ格納部350は、たとえば、リングバッファにより構成されている。合成加速度データ格納部350は、合成加速度データ算出部340によって算出された合成加速度データを格納する。平滑化部360は、合成加速度データ格納部350から連続する所定個数(たとえば、4個)の合成加速度データを読み出し、それらの移動平均値を算出する。合成加速度データの移動平均値を求めることによって、ノイズや微弱な変動などを除去して合成加速度データを平滑化することができる。平滑化部360の出力データは、出力端子(図3における符号360aを参照)を介して前記ピーク検出部25へ送られる。   The combined acceleration data calculation unit 340 calculates combined acceleration data from triaxial acceleration data. The combined acceleration data storage unit 350 is configured by a ring buffer, for example. The combined acceleration data storage unit 350 stores the combined acceleration data calculated by the combined acceleration data calculation unit 340. The smoothing unit 360 reads a predetermined number (for example, 4) of continuous acceleration data from the combined acceleration data storage unit 350, and calculates a moving average value thereof. By obtaining the moving average value of the composite acceleration data, it is possible to smooth the composite acceleration data by removing noise and slight fluctuations. The output data of the smoothing unit 360 is sent to the peak detection unit 25 via an output terminal (see reference numeral 360a in FIG. 3).

(体動検出処理手順)
つぎに、この発明にかかる実施の形態の体動検出装置11の体動検出方法による体動検出処理手順について説明する。図4および図5は、この発明にかかる体動検出装置11の体動検出方法による体動検出処理手順を示すフローチャートである。図4および図5のフローチャートにおいて、まず、今回の加速度を取得する(ステップS401)。ステップS401においては、たとえば、体動検知処理にかかる加速度を、所定のサンプリング周波数で取得する。
(Body motion detection procedure)
Next, the body motion detection processing procedure by the body motion detection method of the body motion detection device 11 according to the embodiment of the present invention will be described. 4 and 5 are flowcharts showing a body motion detection processing procedure by the body motion detection method of the body motion detection device 11 according to the present invention. In the flowcharts of FIGS. 4 and 5, first, the current acceleration is acquired (step S401). In step S401, for example, the acceleration required for the body motion detection process is acquired at a predetermined sampling frequency.

つぎに、ステップS401において取得された今回の加速度と、ピーク検出部25のバッファにおいて今回の加速度として記憶されている前回の加速度とを比較し、今回の加速度が前回の加速度よりも大きいか否かを判断する(ステップS402)。そして、今回の加速度が前回の加速度よりも大きい場合(ステップS402:Yes)は、UpDownバッファにおける加速度の増減ステータスのうちのUpDown今回をUPに設定する(ステップS403)。その後、ステップS407へ移行する。   Next, the current acceleration acquired in step S401 is compared with the previous acceleration stored as the current acceleration in the buffer of the peak detection unit 25, and whether or not the current acceleration is greater than the previous acceleration. Is determined (step S402). If the current acceleration is larger than the previous acceleration (step S402: Yes), UpDown this time in the increase / decrease status of the acceleration in the UpDown buffer is set to UP (step S403). Thereafter, the process proceeds to step S407.

ステップS402において、今回の加速度が前回の加速度よりも大きくない場合(ステップS402:No)は、今回の加速度が前回の加速度よりも小さいか否かを判断する(ステップS404)。そして、今回の加速度が前回の加速度よりも小さい場合(ステップS404:Yes)は、UpDownバッファにおける加速度の増減ステータスのうちのUpDown今回をDOWNに設定する(ステップS405)。その後、ステップS407へ移行する。   In step S402, when the current acceleration is not larger than the previous acceleration (step S402: No), it is determined whether or not the current acceleration is smaller than the previous acceleration (step S404). If the current acceleration is smaller than the previous acceleration (step S404: Yes), UpDown this time in the increase / decrease status of the acceleration in the UpDown buffer is set to DOWN (step S405). Thereafter, the process proceeds to step S407.

ステップS404において、今回の加速度が前回の加速度よりも小さくない場合(ステップS404:No)、すなわち、今回の加速度が前回の加速度よりも大きい場合および今回の加速度が前回の加速度よりも小さい場合以外(今回の加速度が前回の加速度と等しい)の場合は、UpDownバッファにおける加速度の増減ステータスのうちのUpDown今回をUpDown前回に設定された値と同じ値に設定する(ステップS406)。その後、ステップS407へ移行する。   In step S404, when the current acceleration is not smaller than the previous acceleration (step S404: No), that is, when the current acceleration is larger than the previous acceleration and when the current acceleration is smaller than the previous acceleration ( If the current acceleration is equal to the previous acceleration), the UpDown current value of the acceleration increase / decrease status in the UpDown buffer is set to the same value as the previous value set for UpDown (step S406). Thereafter, the process proceeds to step S407.

ステップS407においては、前回の加速度の値が今回の加速度の値となる(前回の加速度=今回の加速度)ように、前回の加速度の値を更新する(ステップS407)。つぎに、UpDownバッファにおける加速度の増減ステータスのうちのUpDown前々回、UpDown前回およびUpDown今回を参照して、各ステータスが、それぞれ、UpDown前々回=UPかつUpDown前回=UPかつUpDown今回=DOWNであるか否かを判断する(ステップS408)。ステップS408において、UpDownバッファにおける加速度の各ステータスが、それぞれ、UpDown前々回=UPかつUpDown前回=UPかつUpDown今回=DOWNではない場合(ステップS408:No)は、ステップS412へ移行する。   In step S407, the previous acceleration value is updated so that the previous acceleration value becomes the current acceleration value (previous acceleration = current acceleration) (step S407). Next, referring to UpDown previous time, UpDown previous time and UpDown current in the acceleration increase / decrease status in the UpDown buffer, whether each status is UpDown previous time = UP and UpDown previous time = UP and UpDown current time = DOWN, respectively. Is determined (step S408). In step S408, if the statuses of the accelerations in the UpDown buffer are not UpDown last time = UP and UpDown last time = UP and UpDown this time = DOWN (step S408: No), the process proceeds to step S412.

ステップS408において、UpDownバッファにおける加速度の各ステータスが、それぞれ、UpDown前々回=UPかつUpDown前回=UPかつUpDown今回=DOWNである場合(ステップS408:Yes)は、上弦ピーク値と下弦ピーク値との差分(上弦ピーク値−下弦ピーク値)が、所定の閾値以上であるか否かを判断する(ステップS409)。この実施の形態においては、ステップS409においては、第1の閾値と第2の閾値とが同じ閾値に設定されている場合を例に説明し、以下、第1の閾値および第2の閾値を、ともに「閾値」として説明する。   In step S408, if the statuses of acceleration in the UpDown buffer are UpDown previous time = UP and UpDown last time = UP and UpDown this time = DOWN (step S408: Yes), the difference between the upper chord peak value and the lower chord peak value It is determined whether (upper string peak value−lower string peak value) is equal to or greater than a predetermined threshold (step S409). In this embodiment, in step S409, the case where the first threshold value and the second threshold value are set to the same threshold value will be described as an example. Hereinafter, the first threshold value and the second threshold value will be described. Both are described as “threshold”.

ステップS409において、上弦ピーク値と下弦ピーク値との差分(上弦ピーク値−下弦ピーク値)が、所定の閾値以上ではない場合(ステップS409:No)は、ステップS411へ移行する。一方、ステップS409において、上弦ピーク値と下弦ピーク値との差分(上弦ピーク値−下弦ピーク値)が、所定の閾値以上である場合(ステップS409:Yes)は、山谷判断ステータスを「山検知済・谷検知中」に設定する(ステップS410)。   In step S409, when the difference between the upper chord peak value and the lower chord peak value (upper chord peak value−lower chord peak value) is not equal to or greater than the predetermined threshold (step S409: No), the process proceeds to step S411. On the other hand, in step S409, if the difference between the upper chord peak value and the lower chord peak value (upper chord peak value−lower chord peak value) is equal to or greater than a predetermined threshold (step S409: Yes), the mountain / valley determination status is set to “mount detected”. Set “to valley detection” (step S410).

そして、ステップS401において取得された今回の加速度を下弦ピーク値に設定する(ステップS411)。ステップS411によって、先に記憶されていた下弦ピーク値(第1のピーク値)がリセットされ、ステップS401において取得された今回の加速度の値が新たな下弦ピーク値となるように下弦ピーク値が更新される。   Then, the current acceleration acquired in step S401 is set to the lower chord peak value (step S411). In step S411, the previously stored lower chord peak value (first peak value) is reset, and the lower chord peak value is updated so that the current acceleration value acquired in step S401 becomes a new lower chord peak value. Is done.

つぎに、UpDownバッファにおける加速度の増減ステータスのうちのUpDown前々回、UpDown前回およびUpDown今回を参照して、各ステータスが、それぞれ、UpDown前々回=DOWNかつUpDown前回=DOWNかつUpDown今回=UPであるか否かを判断する(ステップS412)。ステップS412において、UpDownバッファにおける加速度の各ステータスが、それぞれ、UpDown前々回=DOWNかつUpDown前回=DOWNかつUpDown今回=UPである場合(ステップS412:Yes)は、上弦ピーク値と下弦ピーク値との差分(上弦ピーク値−下弦ピーク値)が、所定の閾値以上であるか否かを判断する(ステップS413)。   Next, referring to UpDown previous time, UpDown previous time, and UpDown current time in the increase / decrease status of the acceleration in the UpDown buffer, whether each status is UpDown previous time = DOWN and UpDown previous time = DOWN and UpDown current time = UP, respectively. Is determined (step S412). In step S412, if the statuses of the acceleration in the UpDown buffer are UpDown previous time = DOWN and UpDown last time = DOWN and UpDown this time = UP (step S412: Yes), the difference between the upper chord peak value and the lower chord peak value It is determined whether (upper string peak value−lower string peak value) is equal to or greater than a predetermined threshold value (step S413).

ステップS413において、上弦ピーク値と下弦ピーク値との差分(上弦ピーク値−下弦ピーク値)が、所定の閾値以上である場合(ステップS413:Yes)は、ステップS401において取得された今回の加速度を上弦ピーク値に設定する(ステップS414)。ステップS414によって、先に記憶されていた上弦ピーク値(第2のピーク値)がリセットされ、ステップS401において取得された今回の加速度の値が新たな上弦ピーク値となるように上弦ピーク値が更新される。   In step S413, when the difference between the upper string peak value and the lower string peak value (upper string peak value−lower string peak value) is equal to or greater than a predetermined threshold (step S413: Yes), the current acceleration acquired in step S401 is determined. The first peak value is set (step S414). In step S414, the previously stored first chord peak value (second peak value) is reset, and the first chord peak value is updated so that the current acceleration value acquired in step S401 becomes a new first chord peak value. Is done.

その後、山谷判断ステータスが「山検知済・谷検知中」に設定されているか否かを判断する(ステップS415)。ステップS415において、山谷判断ステータスが「山検知済・谷検知中」に設定されている場合(ステップS415:Yes)は、図5におけるステップS501へ移行する。   Thereafter, it is determined whether or not the mountain valley determination status is set to “mountain detected already / valley detected” (step S415). In step S415, when the mountain / valley determination status is set to “mountain detected / valley detected” (step S415: Yes), the process proceeds to step S501 in FIG.

一方、ステップS415において、山谷判断ステータスが「山検知済・谷検知中」に設定されていない場合(ステップS415:No)は、図5におけるステップS503へ移行する。また、ステップS413において上弦ピーク値と下弦ピーク値との差分(上弦ピーク値−下弦ピーク値)が、所定の閾値以上ではない場合(ステップS413:No)、および、ステップS412においてUpDownバッファにおける加速度の各ステータスが、それぞれ、UpDown前々回=DOWNかつUpDown前回=DOWNかつUpDown今回=UPではない場合(ステップS412:No)は、図5におけるステップS503へ移行する。   On the other hand, in step S415, when the mountain valley determination status is not set to “mountain detected / valley detected” (step S415: No), the process proceeds to step S503 in FIG. If the difference between the upper chord peak value and the lower chord peak value (upper chord peak value−lower chord peak value) is not greater than or equal to a predetermined threshold value in step S413 (step S413: No), and the acceleration in the UpDown buffer is determined in step S412. If each status is not UpDown before last time = DOWN and UpDown last time = DOWN and UpDown this time = UP (step S412: No), the process proceeds to step S503 in FIG.

山谷判断ステータスが「山検知済・谷検知中」に設定されている場合(ステップS415:Yes)は、図5のフローチャートにおけるステップS501において、山谷判断ステータスを「山検知中」に設定する(ステップS501)とともに、体動検出フラグをONに設定する(ステップS502)。ステップS501における処理とステップS502における処理とは、実行順序が逆であってもよい。すなわち、山谷判断ステータスが「山検知済・谷検知中」に設定されている場合は、体動検出フラグをONに設定した後に、山谷判断ステータスを「山検知中」に設定するようにしてもよい。   When the mountain / valley determination status is set to “mountain detected / valley detected” (step S415: Yes), the mountain / valley determination status is set to “mountain detected” in step S501 in the flowchart of FIG. In step S501), the body motion detection flag is set to ON (step S502). The execution order of the process in step S501 and the process in step S502 may be reversed. That is, if the mountain / valley determination status is set to “mountain detected / valley detected”, the body / valid detection status may be set to “mountain detected” after the body motion detection flag is set to ON. Good.

つぎに、ステップS401において取得された今回の加速度が、上弦ピーク値以上であるか否かを判断する(ステップS503)。ステップS503において、ステップS401において取得された今回の加速度が上弦ピーク値以上である場合(ステップS503:Yes)は、ステップS401において取得された今回の加速度を上弦ピーク値に設定する(ステップS504)ことにより、上弦ピーク値を更新する。ステップS503において、ステップS401において取得された今回の加速度が上弦ピーク値以上ではない場合(ステップS503:No)は、ステップS505へ移行する。   Next, it is determined whether or not the current acceleration acquired in step S401 is equal to or higher than the first chord peak value (step S503). In step S503, when the current acceleration acquired in step S401 is equal to or higher than the upper chord peak value (step S503: Yes), the current acceleration acquired in step S401 is set to the upper chord peak value (step S504). To update the upper string peak value. In step S503, when the current acceleration acquired in step S401 is not equal to or higher than the first chord peak value (step S503: No), the process proceeds to step S505.

ステップS505においては、ステップS401において取得された今回の加速度が、下弦ピーク値以下であるか否かを判断する(ステップS505)。ステップS505において、ステップS401において取得された今回の加速度が下弦ピーク値以下である場合(ステップS505:Yes)は、ステップS401において取得された今回の加速度を下弦ピーク値に設定する(ステップS506)ことにより、下弦ピーク値を更新する。ステップS505において、ステップS401において取得された今回の加速度が下弦ピーク値以下ではない場合(ステップS505:No)は、ステップS507へ移行する。   In step S505, it is determined whether or not the current acceleration acquired in step S401 is equal to or lower than the lower chord peak value (step S505). In step S505, when the current acceleration acquired in step S401 is equal to or lower than the lower chord peak value (step S505: Yes), the current acceleration acquired in step S401 is set to the lower chord peak value (step S506). To update the lower chord peak value. In step S505, when the current acceleration acquired in step S401 is not less than the lower chord peak value (step S505: No), the process proceeds to step S507.

そして、UpDownバッファにおける加速度の増減ステータスのうちのUpDown前々回のステータスがUpDown前回のステータスとなる(UpDown前々回=UpDown前回)ように、UpDown前々回のステータスを更新する(ステップS507)とともに、UpDown前回のステータスがUpDown今回のステータスとなる(UpDown前回=UpDown今回)ように、UpDown前回のステータスを更新して(ステップS508)、一連の処理を終了する。ステップS507の処理とステップS508の処理とは、実行順序が逆であってもよい。すなわち、UpDown前回のステータスを更新した後に、UpDown前々回のステータスを更新するようにしてもよい。   Then, the previous status of UpDown is updated so that the previous status of UpDown in the increase / decrease status of the acceleration in the UpDown buffer becomes the previous status of UpDown (UpDown previous time = UpDown previous status) (Step S507) and the previous status of UpDown The UpDown previous status is updated (Step S508) so that the status of UpDown is the current status (UpDown previous time = UpDown current time), and the series of processing ends. The processing order of step S507 and the processing of step S508 may be reversed. That is, after updating the previous status of UpDown, the status of the previous time of UpDown may be updated.

(体動検出アルゴリズム)
つぎに、この発明にかかる実施の形態の体動検出装置11の体動検出方法による体動検出アルゴリズム例について説明する。
この発明にかかる実施の形態の体動検出装置11の体動検出方法による体動検出アルゴリズムは、第1の差分が閾値(第1の閾値)以上であり、かつ、第2の差分が閾値(第2の閾値)以上である場合に体動を検出したと判定し、体動を検出したと判定するごとに体動を1回ずつカウントする。
(Body motion detection algorithm)
Next, an example of a body motion detection algorithm by the body motion detection method of the body motion detection device 11 according to the embodiment of the present invention will be described.
In the body motion detection algorithm according to the body motion detection method of the body motion detection device 11 according to the embodiment of the present invention, the first difference is greater than or equal to the threshold (first threshold), and the second difference is the threshold ( When it is equal to or greater than (the second threshold value), it is determined that body movement has been detected, and every time it is determined that body movement has been detected, the body movement is counted once.

体動をカウントするカウント判定タイミングは、下弦ピーク値(第1のピーク値)とその直後の上弦ピーク値(第2のピーク値)との差分(第1の差分)が閾値(第1の閾値)以上であり、その後に、当該上弦ピーク値に対する差分(第2の差分)が閾値(第2の閾値)以上となる下弦ピークが出現した時点とすることができる。   The count determination timing for counting the body movement is based on the difference (first difference) between the lower chord peak value (first peak value) and the immediately following upper chord peak value (second peak value) as a threshold (first threshold). ), And thereafter, the time point when the lower chord peak at which the difference (second difference) with respect to the upper chord peak value is equal to or greater than the threshold (second threshold) appears.

また、体動をカウントするカウント判定タイミングは、たとえば、上弦ピーク値とその直後の下弦ピーク値との差分(第1の差分)が閾値(第1の閾値)以上であり、その後に、当該下弦ピーク値に対する差分(第2の差分)が閾値(第2の閾値)以上となる上弦ピークが出現した時点としてもよい。   The count determination timing for counting the body movement is, for example, that the difference (first difference) between the upper chord peak value and the lower chord peak value immediately after that is equal to or greater than a threshold (first threshold), and then the lower chord It may be a point in time when an upper crest peak where the difference (second difference) with respect to the peak value is equal to or greater than a threshold (second threshold) appears.

(ノイズ誤カウント防止)
つぎに、上述の体動検出アルゴリズムによって、どのようにしてノイズによる誤カウントが防止されるかについて説明する。図6は、この発明にかかる実施の形態の体動検出装置11の体動検出方法による体動検出アルゴリズムを説明する波形図である。
(Prevents incorrect noise counting)
Next, how the erroneous counting due to noise is prevented by the above-described body motion detection algorithm will be described. FIG. 6 is a waveform diagram illustrating a body motion detection algorithm according to the body motion detection method of the body motion detection device 11 according to the embodiment of the present invention.

この発明にかかる実施の形態の体動検出装置11の体動検出方法による体動検出アルゴリズムにおいては、下弦ピークから当該下弦ピークの直後に出現する上弦ピークまでの振幅に対して設けられた所定の閾値に基づいて、前記振幅(下弦ピーク値と当該下弦ピークの直後の上弦ピーク値との差分)が前記所定の閾値以下の場合、つぎに出現する上弦ピーク値(前記上弦ピーク値)から当該上弦ピークの直後に出現する下弦ピークまでの振幅(前記上弦ピーク値と当該上弦ピークの直後の下弦ピーク値との差分)はノイズとみなし、体動検出をおこなわない。   In the body motion detection algorithm according to the body motion detection method of the body motion detection device 11 according to the embodiment of the present invention, a predetermined amplitude provided for the amplitude from the lower chord peak to the upper chord peak appearing immediately after the lower chord peak. Based on a threshold value, when the amplitude (difference between the lower chord peak value and the upper chord peak value immediately after the lower chord peak) is equal to or lower than the predetermined threshold value, the next upper chord peak value (the upper chord peak value) to the upper chord The amplitude up to the lower chord peak that appears immediately after the peak (the difference between the upper chord peak value and the lower chord peak value immediately after the upper chord peak) is regarded as noise, and body motion detection is not performed.

具体的に、たとえば、図6に示したような振幅の信号においては、上弦ピーク値に対する差分が所定の閾値以上となる振幅(符号610を参照)の下弦ピークを検出し、体動のカウントをおこなった後に、当該下弦ピークから当該下弦ピークの直後に出現する上弦ピークまでの振幅(符号620を参照)が、所定の閾値以下である場合、当該上弦ピーク値から当該上弦ピークの直後に出現する下弦ピークまでの振幅(符号630を参照)が体動の検出にかかる所定の閾値よりも大きい場合であっても体動のカウントをおこなわない。   Specifically, for example, in a signal having an amplitude as shown in FIG. 6, a lower chord peak with an amplitude (see reference numeral 610) at which the difference from the upper chord peak value is equal to or greater than a predetermined threshold is detected, and the body motion is counted. If the amplitude from the lower chord peak to the upper chord peak that appears immediately after the lower chord peak after the operation (see reference numeral 620) is equal to or less than a predetermined threshold value, the amplitude appears from the upper chord peak value immediately after the upper chord peak. Even when the amplitude up to the lower chord peak (see reference numeral 630) is larger than a predetermined threshold for detecting body movement, the body movement is not counted.

また、具体的に、たとえば、図6に示したような振幅の信号において、矢印640に示したピークは、矢印640の1つ前の下弦ピークから当該下弦ピークの直後に出現する上弦ピークまでの振幅が所定の閾値以下であり振幅が小さいので体動のカウントをおこなわない。このような体動検出アルゴリズムとすることにより、たとえば鉄道などの乗り物に乗車していることに起因する揺れや振動によって出現する振幅(ノイズ)による体動の誤カウントを防止し、体動を精度良くカウントすることができる。   Specifically, for example, in the signal having the amplitude as shown in FIG. 6, the peak indicated by the arrow 640 is from the lower chord peak immediately before the arrow 640 to the upper chord peak appearing immediately after the lower chord peak. Since the amplitude is below a predetermined threshold and the amplitude is small, body movement is not counted. By using this body motion detection algorithm, it is possible to prevent erroneous counting of body motion due to amplitude (noise) caused by vibration or vibration caused by riding on a vehicle such as a railroad, for example. I can count well.

(下弦ピーク値、上弦ピーク値のリセットタイミング)
つぎに、この発明にかかる実施の形態の体動検出装置11の体動検出方法による体動検出アルゴリズムにおける、下弦ピーク値、上弦ピーク値のリセットタイミングについて説明する。図7は、この発明にかかる実施の形態の体動検出装置11の体動検出方法による体動検出アルゴリズムにおける、下弦ピーク値、上弦ピーク値のリセットタイミングを示す説明図である。
(Reset timing of lower and upper chord peak values)
Next, the reset timing of the lower chord peak value and the upper chord peak value in the body motion detection algorithm by the body motion detection method of the body motion detection device 11 according to the embodiment of the present invention will be described. FIG. 7 is an explanatory diagram showing reset timings of the lower chord peak value and the upper chord peak value in the body motion detection algorithm by the body motion detection method of the body motion detection device 11 according to the embodiment of the present invention.

図7において、この発明にかかる実施の形態の体動検出装置11の体動検出方法による体動検出アルゴリズムでは、体動によって振幅(山谷)を生じる信号において、上弦ピークを検出した場合に、下弦ピーク値をリセットする。また、この発明にかかる実施の形態の体動検出装置11の体動検出方法による体動検出アルゴリズムでは、体動によって振幅(山谷)を生じる信号において、下弦ピークを検出し、かつ、当該下弦ピークを検出した時点における上弦ピーク値および下弦ピーク値の差分が所定の閾値を超えた場合に、下弦ピーク値をリセットする。   In FIG. 7, in the body motion detection algorithm according to the body motion detection method of the body motion detection device 11 according to the embodiment of the present invention, when the upper chord peak is detected in the signal that generates the amplitude (mountain and valley) due to the body motion, Reset the peak value. In the body motion detection algorithm according to the body motion detection method of the body motion detection device 11 according to the embodiment of the present invention, a lower chord peak is detected in a signal that generates an amplitude (mountain and valley) by the body motion, and the lower chord peak is detected. The lower chord peak value is reset when the difference between the upper chord peak value and the lower chord peak value at the point in time when is detected exceeds a predetermined threshold.

この発明にかかる実施の形態の体動検出装置11の体動検出方法による体動検出アルゴリズムにおいては、図7において矢印710で示したような下弦ピークを検出しても、上弦ピーク値と当該下弦ピーク値との差分が所定の閾値を超えない場合は、上弦ピーク値はリセットされない。すなわち、この発明にかかる実施の形態の体動検出装置11の体動検出方法による体動検出アルゴリズムにおいては、体動によって振幅(山谷)を生じる信号における下弦ピークを検出しても、当該検出された下弦ピーク値の上弦ピーク値に対する差分が所定の閾値を超えるまでの間は、上弦ピーク値はリセットされない。図7においては、上弦ピーク値との差分が所定の閾値を超える矢印720で示した下弦ピーク(下弦ピーク)を検出した時点において、上弦ピーク値がリセットされる。   In the body motion detection algorithm by the body motion detection method of the body motion detection device 11 according to the embodiment of the present invention, even if the lower chord peak as shown by the arrow 710 in FIG. 7 is detected, the upper chord peak value and the lower chord If the difference from the peak value does not exceed the predetermined threshold value, the first chord peak value is not reset. That is, in the body motion detection algorithm according to the body motion detection method of the body motion detection device 11 according to the embodiment of the present invention, even if a lower chord peak in a signal that generates an amplitude (mountain and valley) due to body motion is detected, the detection is performed. The upper chord peak value is not reset until the difference between the lower chord peak value and the upper chord peak value exceeds a predetermined threshold. In FIG. 7, the upper chord peak value is reset when the lower chord peak (lower chord peak) indicated by the arrow 720 whose difference from the upper chord peak value exceeds a predetermined threshold is detected.

このとき、上弦ピーク値をリセットするタイミングは、下弦ピークの検出、当該下弦ピーク値と直前の上弦ピーク値との差分の閾値との比較、体動のカウントの条件から必要な条件を組み合わせた条件とすることができる。たとえば、上弦ピーク値をリセットするタイミングを、「下弦ピークを検出し、かつ、体動検出のカウントをおこなった時点」と限定してもよい。   At this time, the timing for resetting the upper chord peak value is a combination of the necessary conditions from the detection of the lower chord peak, the comparison of the threshold value of the difference between the lower chord peak value and the immediately preceding upper chord peak value, and the body movement counting condition. It can be. For example, the timing for resetting the upper chord peak value may be limited to “the point in time when the lower chord peak is detected and the body motion detection is counted”.

また、同様に、下弦ピーク値をリセットするタイミングは、上弦ピークの検出、当該上弦ピーク値と直前の下弦ピーク値との差分の閾値との比較、体動のカウントの条件から必要な条件を組み合わせた条件とすることができる。たとえば、下弦ピーク値をリセットするタイミングを、「上弦ピークを検出し、かつ、当該上弦ピーク値と直前の下弦ピーク値との差分が所定の閾値以上となった時点」とさらに限定することもできる。   Similarly, the timing for resetting the lower chord peak value is a combination of the conditions for detecting the upper chord peak, comparing the difference between the upper chord peak value and the previous lower chord peak value, and counting the body movement. Conditions. For example, the timing at which the lower chord peak value is reset can be further limited to “when the upper chord peak is detected and the difference between the upper chord peak value and the immediately preceding lower chord peak value is equal to or greater than a predetermined threshold value”. .

そして、下弦ピーク値をリセットするタイミングを、「上弦ピークを検出し、かつ、当該上弦ピーク値と直前の下弦ピーク値との差分が所定の閾値以上となった時点」とした場合は、さらに、「上弦ピーク値と当該上弦ピークの直前の下弦ピーク値との差分を判断する閾値」が、「下弦ピーク値と当該下弦ピークの直前の上弦ピーク値との差分を判断する閾値」よりも小さくなるような条件(「上弦ピーク値と当該上弦ピークの直前の下弦ピーク値との差分を判断する閾値」<「下弦ピーク値と当該下弦ピークの直前の上弦ピーク値との差分を判断する閾値」)と設定することも誤カウント防止には有効である。   Then, when the timing of resetting the lower chord peak value is “when the upper chord peak is detected and the difference between the upper chord peak value and the immediately preceding lower chord peak value is equal to or greater than a predetermined threshold value”, The “threshold value for determining the difference between the upper chord peak value and the lower chord peak value immediately before the upper chord peak” is smaller than the “threshold for determining the difference between the lower chord peak value and the upper chord peak value immediately before the lower chord peak”. Conditions (“Threshold for determining the difference between the upper chord peak value and the lower chord peak value immediately before the upper chord peak” <“Threshold for determining the difference between the lower chord peak value and the upper chord peak value immediately before the lower chord peak”) It is also effective to prevent erroneous counting.

上述の例に限らず、ピークの検出、当該ピーク値と直前のピーク値との差分の閾値との比較、体動のカウントの条件からを組み合わせることによって上弦ピーク値、下弦ピーク値のリセットタイミングとすればよい。   Not limited to the above example, the combination of detection of a peak, comparison of the threshold value of the difference between the peak value and the immediately preceding peak value, and the condition of counting the body movement, the reset timing of the first and second peak values do it.

これまでの実施の形態では、体動をカウントするカウント判定タイミングが、下弦ピーク値(第1のピーク値)とその直後の上弦ピーク値(第2のピーク値)との差分(第1の差分)が閾値(第1の閾値)以上であり、その後に、当該上弦ピーク値に対する差分(第2の差分)が閾値(第2の閾値)以上となる下弦ピークが出現した時点で体動をカウントする場合の上弦ピークと下弦ピークのリセットタイミングについて説明した。   In the embodiments described so far, the count determination timing for counting the body movement is the difference (first difference) between the lower chord peak value (first peak value) and the immediately following upper chord peak value (second peak value). ) Is equal to or greater than a threshold (first threshold), and thereafter, body motion is counted when a lower chord peak appears where the difference (second difference) relative to the upper chord peak value is equal to or greater than the threshold (second threshold). The timing of resetting the upper and lower chord peaks was explained.

一方、体動をカウントするカウント判定タイミングは、上弦ピーク値とその直後の下弦ピーク値との差分(第1の差分)が閾値(第1の閾値)以上であり、その後に、当該下弦ピーク値に対する差分(第2の差分)が閾値(第2の閾値)以上となる上弦ピークが出現した時点というように、上述の説明とは上弦ピークと下弦ピークの順が逆となるようにしてもよい。その場合は、上弦ピーク値と下弦ピーク値をリセットするタイミングの条件も上弦ピーク値と下弦ピーク値とで上述の説明の逆になる。   On the other hand, the count determination timing for counting the body movement is such that the difference (first difference) between the upper chord peak value and the immediately following lower chord peak value is equal to or greater than a threshold value (first threshold value), and then the lower chord peak value. The order of the upper chord peak and the lower chord peak may be reversed from the above description, for example, when the upper chord peak at which the difference with respect to (second difference) is equal to or greater than the threshold (second threshold) appears. . In this case, the timing conditions for resetting the upper chord peak value and the lower chord peak value are also opposite to those described above for the upper chord peak value and the lower chord peak value.

(上弦ピーク/下弦ピークの検出方法)
図8は、上弦ピークの検出方法を示す説明図である。図8において、上弦ピークは、所定のサンプリング周期で取得された加速度の値に基づいて、当該加速度の大きさの増減傾向が2回連続して増加傾向を示した後(図8における符号801,802を参照)、減少傾向を示した(図8における符号803を参照)場合に検出される。
(Detection method of upper and lower chord peaks)
FIG. 8 is an explanatory diagram showing a method for detecting the upper chord peak. In FIG. 8, the upper chord peak is obtained after the increase / decrease tendency of the magnitude of the acceleration shows an increase tendency twice consecutively based on the acceleration value acquired at a predetermined sampling period (reference numerals 801, 801 in FIG. 8). 802), and a decrease tendency is detected (see reference numeral 803 in FIG. 8).

図9は、下弦ピークの検出方法を示す説明図である。図9において、下弦ピークは、所定のサンプリング周期で取得された加速度の値に基づいて、当該加速度の大きさの増減傾向が2回連続して減少傾向を示した後(図9における符号901,902を参照)、増加傾向を示した(図9における符号903を参照)場合に検出される。   FIG. 9 is an explanatory diagram showing a method for detecting the lower chord peak. In FIG. 9, the lower chord peak is indicated after the increase / decrease tendency of the magnitude of the acceleration shows a decrease tendency twice in succession based on the acceleration value acquired at a predetermined sampling period (reference numerals 901, 901 in FIG. 9). 902), and an increase tendency (see reference numeral 903 in FIG. 9) is detected.

以上説明したように、この実施の形態の体動検出装置11は、加速度センサが出力する加速度を取得し、取得される加速度の大きさの変動傾向が切り替わる第1のピークと、取得される加速度の大きさの変動傾向が第1のピークとは反対方向に切り替わる第2のピークと、を検出する。そして、第1のピークの値と当該第1のピークのつぎに検出された第2のピークの値との差分である第1の差分が第1の閾値以上であって、かつ、第2のピークの値と当該第2のピークのつぎに検出された第1のピークの値との差分である第2の差分が第2の閾値以上である場合に体動を検出することを特徴としている。すなわち、下弦ピーク値とその直後の上弦ピーク値との差分が閾値以上であり、かつ、上弦ピーク値とその直後の下弦ピーク値との差分が閾値以上である場合に体動を検出することを特徴としている。   As described above, the body motion detection device 11 according to the present embodiment acquires the acceleration output from the acceleration sensor, the first peak at which the fluctuation tendency of the magnitude of the acquired acceleration is switched, and the acquired acceleration. The second peak in which the variation tendency of the magnitude of the first peak switches in the opposite direction to the first peak is detected. And the 1st difference which is the difference of the value of the 1st peak and the 2nd peak value detected next to the 1st peak is more than the 1st threshold, and the 2nd Body movement is detected when a second difference, which is a difference between a peak value and a first peak value detected next to the second peak, is equal to or greater than a second threshold value. . That is, body motion is detected when the difference between the lower chord peak value and the immediately following upper chord peak value is equal to or greater than the threshold, and when the difference between the upper chord peak value and the immediately following lower chord peak value is equal to or greater than the threshold. It is a feature.

この実施の形態の体動検出装置11によれば、加速度センサが出力する加速度の大きさを示す信号に重畳されたノイズに起因する体動の誤検出を防止することができ、体動を精度良くカウントすることができる。   According to the body motion detection device 11 of this embodiment, erroneous detection of body motion due to noise superimposed on a signal indicating the magnitude of acceleration output from the acceleration sensor can be prevented, and the body motion can be accurately detected. I can count well.

具体的には、被験者は、たとえば、通勤などのような歩行状態、散歩などのような比較的ゆっくりした歩行状態、ジョギングなどのように走行している状態、などのように様々な状態となることが想定される。この実施の形態の体動検出装置11によれば、被験者の状態が様々に変わっても当該被験者が体動検出装置11に対して何らの操作をすることなく、各状態における体動を精度良くカウントすることができる。   Specifically, for example, the subject can have various states such as a walking state such as commuting, a relatively slow walking state such as a walk, and a running state such as jogging. It is assumed that According to the body motion detection device 11 of this embodiment, even if the subject's state changes variously, the subject does not perform any operation on the body motion detection device 11, and the body motion in each state can be accurately performed. Can be counted.

また、この実施の形態の体動検出装置11は、第1の差分が第1の閾値以上であると判断された第1の差分の後に出現した第2の差分が第2の閾値以上であると判断された場合に体動を検出することを特徴としている。すなわち、下弦ピーク値とその直後の上弦ピーク値との差分が閾値以上であり、その後出現した上弦ピーク値とその直後の下弦ピーク値との差分が閾値以上である場合に体動を検出することを特徴としている。   Further, in the body motion detection device 11 of this embodiment, the second difference that appears after the first difference that is determined to be greater than or equal to the first threshold is greater than or equal to the second threshold. It is characterized by detecting body movements when it is determined. That is, body movement is detected when the difference between the lower chord peak value and the immediately following upper chord peak value is equal to or greater than the threshold, and the difference between the first appearing upper chord peak value and the immediately following lower chord peak value is equal to or greater than the threshold. It is characterized by.

この実施の形態の体動検出装置11によれば、加速度センサが出力する加速度の大きさを示す信号に重畳されたノイズに起因する体動の誤検出を防止しつつ、体動に起因する振幅を精度良く検出することができる。これによって、どのような状態における体動であってもノイズに起因する体動の誤カウントを防止することができ、体動を精度良くカウントすることができる。   According to the body motion detection device 11 of this embodiment, the amplitude due to body motion is prevented while preventing erroneous detection of body motion due to noise superimposed on the signal indicating the magnitude of acceleration output from the acceleration sensor. Can be detected with high accuracy. Accordingly, it is possible to prevent erroneous counting of body movements caused by noise in any state of body movements, and to accurately count body movements.

また、この実施の形態の体動検出装置11は、第2の閾値以上であると判断された第2の差分の後に出現した第1の差分が第1の閾値以上ではない場合は、つぎに出現する第2の差分にかかる体動の検出をおこなわないことを特徴としている。この実施の形態の体動検出装置11によれば、たとえば、上記のように体動を検出した後、被験者がつぎの体動となる動作をおこなう前にノイズが重畳された場合、当該ノイズに起因して検出された上弦ピーク値や下弦ピーク値に基づいて体動の検出がおこなわれることを防止することができる。これによって、ノイズに起因する体動の誤カウントを防止することができ、体動を精度良くカウントすることができる。   In addition, the body motion detection device 11 according to this embodiment performs the following operation when the first difference that appears after the second difference determined to be equal to or greater than the second threshold is not equal to or greater than the first threshold. It is characterized by not detecting the body motion related to the second difference that appears. According to the body motion detection device 11 of this embodiment, for example, when noise is superimposed after the body motion is detected as described above and before the subject performs the next body motion, the noise is superimposed on the noise. It is possible to prevent body movement from being detected based on the upper chord peak value and the lower chord peak value detected as a result. Thereby, it is possible to prevent erroneous counting of body movements due to noise and to accurately count body movements.

また、この実施の形態の体動検出装置11は、第1の差分および第2の差分が閾値を超えているかどうかの判断を、上弦ピーク値記憶部26に記憶された上弦ピーク値(第2のピーク値)や下弦ピーク値記憶部27に記憶された下弦ピーク値(第1のピーク値)に基づいておこなう。下弦ピーク値記憶部27に記憶された下弦ピーク値は、上弦ピークが検出されるごとにリセット(消去)する。上弦ピーク値記憶部26に記憶された上弦ピーク値は、下弦ピークが検出され、当該下弦ピーク値と上弦ピーク値記憶部26において先に記憶されている上弦ピーク値との差分が閾値以上であると判断された場合に、上弦ピーク値記憶部26において先に記憶されている上弦ピーク値をリセット(消去)する。   In addition, the body motion detection device 11 according to this embodiment determines whether the first difference and the second difference exceed the threshold value by determining whether the first chord peak value (the second chord peak value storage unit 26 stores the second chord peak value). And the lower chord peak value (first peak value) stored in the lower chord peak value storage unit 27. The lower chord peak value stored in the lower chord peak value storage unit 27 is reset (erased) every time an upper chord peak is detected. As for the upper chord peak value stored in the upper chord peak value storage unit 26, the lower chord peak is detected, and the difference between the lower chord peak value and the upper chord peak value previously stored in the upper chord peak value storage unit 26 is greater than or equal to the threshold value. If it is determined, the first chord peak value stored in the first chord peak value storage unit 26 is reset (erased).

この実施の形態の体動検出装置11によれば、下弦ピーク値記憶部27に記憶された下弦ピーク値や上弦ピーク値記憶部26に記憶された上弦ピーク値を上記のようにリセット(消去)することにより、被験者の体動に起因する第1の差分および第2の差分を精度良く検出することができる。これによって、ノイズに起因する体動の誤カウントを防止することができ、体動を精度良くカウントすることができる。   According to the body motion detection device 11 of this embodiment, the lower chord peak value stored in the lower chord peak value storage unit 27 and the upper chord peak value stored in the upper chord peak value storage unit 26 are reset (erased) as described above. By doing, the 1st difference and 2nd difference resulting from a test subject's body motion can be detected accurately. Thereby, it is possible to prevent erroneous counting of body movements due to noise and to accurately count body movements.

また、この実施の形態の体動検出装置11は、前記第1のピーク検出手段および前記第2のピーク検出手段が、前回取得した加速度の大きさと今回取得した加速度の大きさとの差分を算出し、前回算出された差分に対する今回算出された差分の大小に基づいて加速度の大きさの変動傾向を判断することを特徴とする。この実施の形態の体動検出装置11によれば、加速度の大きさ(加速度の値)の変動傾向を容易かつ正確に算出することができるので、ノイズに起因する体動の誤カウントを防止することができ、体動を精度良くカウントすることができる。   Further, in the body motion detection device 11 of this embodiment, the first peak detection unit and the second peak detection unit calculate a difference between the magnitude of acceleration acquired last time and the magnitude of acceleration acquired this time. The variation tendency of the magnitude of the acceleration is determined based on the difference calculated this time with respect to the previously calculated difference. According to the body motion detection device 11 of this embodiment, since the fluctuation tendency of the magnitude of acceleration (acceleration value) can be calculated easily and accurately, erroneous counting of body motion due to noise is prevented. The body movement can be counted with high accuracy.

また、この実施の形態の体動検出装置11は、加速度の大きさの変動傾向が連続して減少した後に当該変動傾向が増加に切り替わった場合に下弦ピークを検出し、加速度の大きさの変動傾向が連続して増加した後に当該変動傾向が減少に切り替わった場合に上弦ピークを検出することを特徴としている。この実施の形態の体動検出装置11によれば、加速度の大きさの変動傾向が確実に減少した後に増加した場合に下弦ピークを検出し、加速度の大きさの変動傾向が確実に増加した後に減少した場合に上弦ピークを検出することができるので、ノイズに起因する体動の誤カウントを防止することができ、体動を精度良くカウントすることができる。   In addition, the body motion detection device 11 of this embodiment detects the lower chord peak when the fluctuation trend of the acceleration magnitude continuously decreases and then the fluctuation tendency switches to increase, and the fluctuation of the acceleration magnitude is detected. It is characterized in that the first-order peak is detected when the trend is changed to decrease after the trend has been continuously increased. According to the body motion detection device 11 of this embodiment, when the fluctuation tendency of the magnitude of the acceleration is increased after being reliably reduced, the lower chord peak is detected, and after the fluctuation tendency of the magnitude of the acceleration is reliably increased. Since the upper string peak can be detected when it decreases, it is possible to prevent erroneous counting of body movements due to noise and to accurately count body movements.

また、この実施の形態の体動検出装置11は、任意のサンプリング周期ごとに加速度の大きさを取得し、下弦ピークの検出条件および上弦ピークの検出条件をサンプリング周期の長さに応じて変動させることを特徴としてもよい。サンプリング周期の長さは、たとえば、上述した実施の形態の方法でのサンプリング周期の長さよりも長いサンプリング周期を設定することができる。この場合、サンプリング周波数は、上述した実施の形態の方法でのサンプリング周波数よりも低くなる。   In addition, the body motion detection device 11 of this embodiment acquires the magnitude of acceleration every arbitrary sampling period, and varies the detection condition of the lower chord peak and the detection condition of the upper chord peak according to the length of the sampling period. This may be a feature. As the length of the sampling period, for example, a sampling period longer than the length of the sampling period in the method of the embodiment described above can be set. In this case, the sampling frequency is lower than the sampling frequency in the method of the above-described embodiment.

具体的には、上述した実施の形態においては、加速度の大きさが「UP(増加傾向)→UP(増加傾向)→DOWN(減少傾向)」という増減傾向を示した時点で上弦ピークを検出したが、サンプリング周期の長さを長くした場合は、たとえば、「UP(増加傾向)→DOWN(減少傾向)」という増減傾向を示した時点で上弦ピークを検出するように検出条件を変動させる。同様に、上述した実施の形態においては、加速度の大きさが「DOWN(減少傾向)→DOWN(減少傾向)→UP(増加傾向)」という増減傾向を示した時点で下弦ピークを検出したが、サンプリング周期の長さを長くした場合は、たとえば、「DOWN(減少傾向)→UP(増加傾向)」という増減傾向を示した時点で下弦ピークを検出するように検出条件を変動させる。   Specifically, in the above-described embodiment, the first peak was detected when the magnitude of the acceleration showed an increase / decrease trend of “UP (increase tendency) → UP (increase tendency) → DOWN (decrease tendency)”. However, when the length of the sampling cycle is increased, for example, the detection condition is changed so as to detect the first-crest peak at the time when the increase / decrease tendency of “UP (increase tendency) → DOWN (decrease tendency)” is shown. Similarly, in the above-described embodiment, the lower chord peak is detected when the magnitude of the acceleration shows an increase / decrease trend of “DOWN (decrease trend) → DOWN (decrease trend) → UP (increasment trend)”. When the length of the sampling cycle is increased, for example, the detection condition is changed so that the lower chord peak is detected when the increase / decrease tendency of “DOWN (decrease tendency) → UP (increase tendency)” is shown.

また、サンプリング周期の長さは、たとえば、上述した実施の形態の方法でのサンプリング周期の長さよりも短いサンプリング周期を設定することができる。この場合、サンプリング周波数は、上述した実施の形態の方法でのサンプリング周波数よりも高くなる。   The length of the sampling period can be set to a sampling period shorter than the length of the sampling period in the method of the above-described embodiment, for example. In this case, the sampling frequency is higher than the sampling frequency in the method of the above-described embodiment.

具体的には、上述した実施の形態においては、加速度の大きさが「UP(増加傾向)→UP(増加傾向)→DOWN(減少傾向)」という増減傾向を示した時点で上弦ピークを検出したが、サンプリング周期の長さを短くした場合、たとえば、「UP(増加傾向)→UP(増加傾向)→UP(増加傾向)→DOWN(減少傾向)→DOWN(減少傾向)」という増減傾向を示した時点で上弦ピークを検出するように検出条件を変動させる。同様に、上述した実施の形態においては、加速度の大きさが「DOWN(減少傾向)→DOWN(減少傾向)→UP(増加傾向)」という増減傾向を示した時点で下弦ピークを検出したが、サンプリング周期の長さを短くした場合は、たとえば、「DOWN(減少傾向)→DOWN(減少傾向)→DOWN(減少傾向)→UP(増加傾向)→UP(増加傾向)」という増減傾向を示した時点で下弦ピークを検出するように検出条件を変動させる。   Specifically, in the above-described embodiment, the first peak was detected when the magnitude of the acceleration showed an increase / decrease trend of “UP (increase tendency) → UP (increase tendency) → DOWN (decrease tendency)”. However, when the length of the sampling cycle is shortened, for example, “UP (increase tendency) → UP (increase tendency) → UP (increase tendency) → DOWN (decrease tendency) → DOWN (decrease tendency)” is shown. The detection condition is changed so that the upper chord peak is detected at that time. Similarly, in the above-described embodiment, the lower chord peak is detected when the magnitude of the acceleration shows an increase / decrease trend of “DOWN (decrease trend) → DOWN (decrease trend) → UP (increasment trend)”. When the length of the sampling cycle is shortened, for example, the tendency of increase / decrease of “DOWN (decreasing tendency) → DOWN (decreasing tendency) → DOWN (decreasing tendency) → UP (increasing tendency) → UP (increasing tendency)” is shown. The detection condition is changed so that the lower chord peak is detected at the time.

なお、上述した実施の形態においては、加速度の大きさが「UP(増加傾向)→UP(増加傾向)→DOWN(減少傾向)」という増減傾向を示した時点で上弦ピークを検出したが、加速度の大きさが「UP(増加傾向)→DOWN(減少傾向)→DOWN(減少傾向)」という増減傾向を示した時点で上弦ピークを検出するようにしてもよい。同様に、上述した実施の形態においては、加速度の大きさが「DOWN(減少傾向)→DOWN(減少傾向)→UP(増加傾向)」という増減傾向を示した時点で下弦ピークを検出したが、加速度の大きさが「DOWN(減少傾向)→UP(増加傾向)→UP(増加傾向)」という増減傾向を示した時点で下弦ピークを検出するようにしてもよい。   In the embodiment described above, the crest peak is detected when the magnitude of acceleration shows an increase / decrease trend of “UP (increase tendency) → UP (increase tendency) → DOWN (decrease tendency)”. The upper peak may be detected at the time when the magnitude of the curve indicates an increase / decrease trend of “UP (increase tendency) → DOWN (decrease tendency) → DOWN (decrease tendency)”. Similarly, in the above-described embodiment, the lower chord peak is detected when the magnitude of the acceleration shows an increase / decrease trend of “DOWN (decrease trend) → DOWN (decrease trend) → UP (increasment trend)”. The lower chord peak may be detected when the magnitude of the acceleration shows an increase / decrease trend of “DOWN (decrease tendency) → UP (increase tendency) → UP (increase tendency)”.

また、この実施の形態の体動検出装置11は、加速度の大きさが所定のサンプリング周期ごとに取得された場合に、前記変動傾向が連続して変動した後に当該変動傾向が切り替わった時点で、下弦ピーク(第1のピーク)および上弦ピーク(第2のピーク)を検出することを特徴としている。すなわち、上述した実施の形態においては、加速度の大きさが「UP(増加傾向)→UP(増加傾向)→DOWN(減少傾向)」という増減傾向を示した時点で上弦ピークを検出し、加速度の大きさが「DOWN(減少傾向)→DOWN(減少傾向)→UP(増加傾向)」という増減傾向を示した時点で下弦ピークを検出する。   In addition, when the magnitude of acceleration is acquired for each predetermined sampling period, the body motion detection device 11 according to this embodiment is configured so that the fluctuation tendency is changed after the fluctuation tendency is continuously changed. It is characterized by detecting a lower chord peak (first peak) and an upper chord peak (second peak). That is, in the above-described embodiment, when the magnitude of the acceleration shows an increase / decrease trend of “UP (increase tendency) → UP (increase tendency) → DOWN (decrease tendency)”, the first chord peak is detected and the acceleration is increased. When the magnitude shows an increasing / decreasing tendency of “DOWN (decreasing tendency) → DOWN (decreasing tendency) → UP (increasing tendency)”, the lower chord peak is detected.

この実施の形態の体動検出装置11によれば、加速度センサが出力する加速度の大きさを示す信号に重畳されたノイズに起因する体動の誤検出を防止しつつ、体動に起因する振幅を精度良く検出することができる。これによって、どのような状態における体動であってもノイズに起因する体動の誤カウントを防止することができ、体動を精度良くカウントすることができる。   According to the body motion detection device 11 of this embodiment, the amplitude due to body motion is prevented while preventing erroneous detection of body motion due to noise superimposed on the signal indicating the magnitude of acceleration output from the acceleration sensor. Can be detected with high accuracy. Accordingly, it is possible to prevent erroneous counting of body movements caused by noise in any state of body movements, and to accurately count body movements.

上述した実施の形態においては、下弦ピークおよび下弦ピーク値を第1のピークおよび第1のピーク値とし、上弦ピークおよび上弦ピーク値を第2のピークおよび第2のピーク値とした場合について説明したが、第1のピークおよび第2のピークはこれに限るものではない。すなわち、上述した実施の形態の体動検出装置11は、加速度の大きさが減少傾向から増加傾向に切り替わる下弦ピークを第1のピークとして検出し、加速度の大きさが増加傾向から減少傾向に切り替わる上弦ピークを第2のピークとして検出することを特徴としているが、この発明にかかる体動検出装置11においては、加速度の大きさが増加傾向から減少傾向に切り替わる上弦ピークを第1のピークとして検出し、加速度の大きさが減少傾向から増加傾向に切り替わる下弦ピークを第2のピークとして検出するものであってもよい。   In the above-described embodiment, the case where the lower chord peak and the lower chord peak value are the first peak and the first peak value, and the upper chord peak and the upper chord peak value are the second peak and the second peak value has been described. However, the first peak and the second peak are not limited to this. That is, the body motion detection device 11 according to the above-described embodiment detects the lower chord peak at which the magnitude of acceleration switches from a decreasing tendency to an increasing tendency as the first peak, and the magnitude of acceleration switches from an increasing tendency to a decreasing tendency. The first chord peak is detected as the second peak. In the body motion detection device 11 according to the present invention, the first chord peak in which the magnitude of acceleration switches from an increasing tendency to a decreasing tendency is detected as the first peak. Then, the lower chord peak where the magnitude of the acceleration is switched from the decreasing tendency to the increasing tendency may be detected as the second peak.

この場合、上弦ピーク値とその直後の下弦ピーク値との差分である第1の差分が第1の閾値以上であり、かつ、下弦ピーク値とその直後の上弦ピーク値との差分である第2の差分が第2の閾値以上であると判断した場合に体動を検出したと判定する。また、この場合、第1の閾値および第2の閾値を同じ値に設定してもよいし、第1の閾値と第2の閾値を異なる値に設定してもよい。   In this case, the first difference that is the difference between the upper chord peak value and the immediately lower chord peak value is equal to or greater than the first threshold, and the second difference that is the difference between the lower chord peak value and the immediately following upper chord peak value. It is determined that body motion is detected when it is determined that the difference is greater than or equal to the second threshold. In this case, the first threshold value and the second threshold value may be set to the same value, or the first threshold value and the second threshold value may be set to different values.

以上のように、この発明にかかる体動検出装置は、被験者の体動をカウントする体動検出装置に有用であり、特に、歩行や走行などの各状態において被験者の体動をカウントする体動検出装置に適している。   As described above, the body motion detection device according to the present invention is useful for a body motion detection device that counts the body motion of the subject, and in particular, the body motion that counts the body motion of the subject in each state such as walking and running. Suitable for detection device.

11 体動検出装置
24 加速度データ取得部
25 ピーク検出部
26 上弦ピーク値記憶部
27 下弦ピーク値記憶部
28 ピーク差検出部
29 閾値判定部
DESCRIPTION OF SYMBOLS 11 Body motion detection apparatus 24 Acceleration data acquisition part 25 Peak detection part 26 Upper chord peak value storage part 27 Lower chord peak value storage part 28 Peak difference detection part 29 Threshold determination part

Claims (9)

加速度センサが出力する加速度を取得する加速度取得手段と、
前記加速度取得手段によって取得される加速度の大きさの変動傾向が切り替わる第1のピークを検出する第1のピーク検出手段と、
前記加速度取得手段によって取得される加速度の大きさの変動傾向が前記第1のピークとは反対方向に切り替わる第2のピークを検出する第2のピーク検出手段と、
前記第1のピーク検出手段によって検出された第1のピークのつぎに前記第2のピーク検出手段によって第2のピークが検出されると、当該第1のピークの値と、当該第2のピークの値との差分である第1の差分が第1の閾値以上であるか否かを判断する第1の判断手段と、
前記第2のピーク検出手段によって検出された第2のピークのつぎに前記第1のピーク検出手段によって第1のピークが検出されると、当該第2のピークの値と、当該第1のピークの値との差分である第2の差分が第2の閾値以上であるか否かを判断する第2の判断手段と、
を備え、
前記第1の判断手段によって第1の差分が第1の閾値以上であると判断され、かつ、前記第2の判断手段によって第2の差分が第2の閾値以上であると判断された場合に体動を検出し、当該体動を計数することを特徴とする体動検出装置。
Acceleration acquisition means for acquiring the acceleration output from the acceleration sensor;
First peak detecting means for detecting a first peak at which the fluctuation tendency of the magnitude of acceleration acquired by the acceleration acquiring means is switched;
Second peak detecting means for detecting a second peak in which the tendency of fluctuation in the magnitude of acceleration acquired by the acceleration acquiring means switches in a direction opposite to the first peak;
When the second peak is detected by then the second peak detecting means in the first peak which is detected by said first peak detecting means, and the value of the first peak, the second First determination means for determining whether or not a first difference that is a difference from a peak value is equal to or greater than a first threshold;
When the first peak is detected then by the first peak detecting means of a second peak which is detected by said second peak detecting means, and the value of the second peak, the first Second determination means for determining whether or not a second difference that is a difference from a peak value is equal to or greater than a second threshold;
With
When the first determination means determines that the first difference is greater than or equal to a first threshold and the second determination means determines that the second difference is greater than or equal to a second threshold A body motion detection device that detects body motion and counts the body motion .
前記第1の判断手段によって第1の閾値以上であると判断された第1の差分の後に出現した前記第2の差分が第2の閾値以上であると判断された場合に体動を検出し、当該体動を計数することを特徴とする請求項1に記載の体動検出装置。 Detecting the body movement when the first and the second difference that appeared after the first difference is determined to be the first threshold value or more by the determining means is determined to be more than a second threshold value The body movement detecting device according to claim 1 , wherein the body movement is counted . 前記第2の判断手段によって前記第2の閾値以上であると判断された第2の差分の後に出現した第1の差分が、前記第1の判断手段によって前記第1の閾値以上ではないと判断された場合、つぎに出現する第2の差分にかかる体動の検出をおこなわないことを特徴とする請求項2に記載の体動検出装置。   The first difference that appears after the second difference determined to be greater than or equal to the second threshold by the second determination means is determined not to be greater than or equal to the first threshold by the first determination means. 3. If detected, the body motion detection apparatus according to claim 2, wherein the body motion is not detected for the second difference that appears next. 前記第1のピーク検出手段によって検出された第1のピークの値を記憶する第1の記憶手段と、
前記第2のピーク検出手段によって検出された第2のピークの値を記憶する第2の記憶手段と、
を備え、
前記第1の判断手段は、前記第2のピーク検出手段によって第2のピークが検出されるごとに、当該検出された第2のピークの値と前記第1の記憶手段によって記憶された第1のピークの値とに基づいて算出される第1の差分が前記第1の閾値以上であるか否かを判断し、
前記第2の判断手段は、前記第1のピーク検出手段によって第1のピークが検出されるごとに、当該検出された第1のピークの値と前記第2の記憶手段によって記憶された第2のピークの値とに基づいて算出される第2の差分が前記第2の閾値以上であるか否かを判断し、
前記第1の記憶手段は、前記第2のピーク検出手段によって第2のピークが検出された場合に、先に記憶されている第1のピークの値を消去し、
前記第2の記憶手段は、前記第1のピーク検出手段によって第1のピークが検出され、当該第1のピークの値と先に記憶されている第2のピークの値との差分が前記第2の閾値以上であると判断された場合に、先に記憶されている第2のピークの値を消去することを特徴とする請求項1〜3のいずれか一つに記載の体動検出装置。
First storage means for storing a value of the first peak detected by the first peak detection means;
Second storage means for storing the value of the second peak detected by the second peak detection means;
With
Each time the second peak detection unit detects the second peak, the first determination unit stores the value of the detected second peak and the first storage unit stored in the first storage unit. Determining whether or not a first difference calculated based on a peak value of the first threshold is equal to or greater than the first threshold;
Each time the first peak is detected by the first peak detection means, the second determination means stores the value of the detected first peak and the second value stored by the second storage means. Determining whether or not the second difference calculated based on the peak value of the second threshold is greater than or equal to the second threshold;
The first storage means erases the value of the first peak previously stored when the second peak is detected by the second peak detection means,
In the second storage means, the first peak is detected by the first peak detection means, and the difference between the first peak value and the previously stored second peak value is the first peak value. The body motion detection device according to any one of claims 1 to 3, wherein the second peak value stored in advance is deleted when it is determined that the threshold value is 2 or more. .
前記第1のピーク検出手段は、加速度の大きさが減少傾向から増加傾向に切り替わる下弦ピークを検出し、
前記第2のピーク検出手段は、加速度の大きさが増加傾向から減少傾向に切り替わる上弦ピークを検出することを特徴とする請求項1〜4のいずれか一つに記載の体動検出装置。
The first peak detecting means detects a lower chord peak where the magnitude of acceleration switches from a decreasing tendency to an increasing tendency,
The body motion detection device according to any one of claims 1 to 4, wherein the second peak detection unit detects an upper string peak in which the magnitude of acceleration switches from an increasing tendency to a decreasing tendency.
前記第1のピーク検出手段は、加速度の大きさが増加傾向から減少傾向に切り替わる上弦ピークを検出し、
前記第2のピーク検出手段は、加速度の大きさが減少傾向から増加傾向に切り替わる下弦ピークを検出することを特徴とする請求項1〜4のいずれか一つに記載の体動検出装置。
The first peak detecting means detects an upper peak where the magnitude of acceleration switches from an increasing tendency to a decreasing tendency;
5. The body motion detection device according to claim 1, wherein the second peak detection unit detects a lower chord peak in which the magnitude of acceleration switches from a decreasing tendency to an increasing tendency. 6.
前記第1のピーク検出手段および前記第2のピーク検出手段は、前回取得した加速度の大きさと今回取得した加速度の大きさとの差分を算出し、前回算出された差分に対する今回算出された差分の大小に基づいて加速度の大きさの変動傾向を判断することを特徴とする請求項1〜6のいずれか一つに記載の体動検出装置。   The first peak detection unit and the second peak detection unit calculate a difference between the magnitude of the acceleration acquired last time and the magnitude of the acceleration acquired this time, and the magnitude of the difference calculated this time with respect to the difference calculated last time The body movement detection device according to claim 1, wherein a tendency of variation in the magnitude of acceleration is determined based on the above. 前記第1のピーク検出手段は、加速度の大きさの変動傾向が連続して増加あるいは減少した後に当該変動傾向が減少あるいは増加に切り替わった場合に前記第1のピークを検出し、
前記第2のピーク検出手段は、加速度の大きさの変動傾向が連続して減少あるいは増加した後に当該変動傾向が増加あるいは減少に切り替わった場合に前記第2のピークを検出することを特徴とする請求項7に記載の体動検出装置。
The first peak detecting means detects the first peak when the fluctuation tendency is changed to decrease or increase after the fluctuation tendency of the magnitude of acceleration continuously increases or decreases,
The second peak detecting means detects the second peak when the fluctuation tendency of the acceleration magnitude is continuously reduced or increased and then the fluctuation tendency is switched to increase or decrease. The body movement detection device according to claim 7.
前記加速度取得手段は、任意のサンプリング周期ごとに加速度の大きさを取得し、
前記第1のピーク検出手段による第1のピークの検出条件、および、前記第2のピーク検出手段による第2のピークの検出条件を、前記サンプリング周期の長さに応じて変動させることを特徴とする請求項1〜6のいずれか一つに記載の体動検出装置。
The acceleration acquisition means acquires the magnitude of acceleration every arbitrary sampling period,
The detection condition of the first peak by the first peak detection means and the detection condition of the second peak by the second peak detection means are varied according to the length of the sampling period. The body movement detection device according to any one of claims 1 to 6.
JP2010211706A 2010-09-22 2010-09-22 Body motion detection device Active JP5492723B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010211706A JP5492723B2 (en) 2010-09-22 2010-09-22 Body motion detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010211706A JP5492723B2 (en) 2010-09-22 2010-09-22 Body motion detection device

Publications (2)

Publication Number Publication Date
JP2012065749A JP2012065749A (en) 2012-04-05
JP5492723B2 true JP5492723B2 (en) 2014-05-14

Family

ID=46163759

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010211706A Active JP5492723B2 (en) 2010-09-22 2010-09-22 Body motion detection device

Country Status (1)

Country Link
JP (1) JP5492723B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2593983C1 (en) * 2015-03-13 2016-08-10 Общество С Ограниченной Ответственностью "Хилби" Method of determining type of motion activity conditions and device therefor
CN105509763B (en) * 2015-12-01 2019-08-30 深圳市元征科技股份有限公司 Minimizing technology and device are interfered in step counting
WO2018127947A1 (en) 2017-01-04 2018-07-12 富士通株式会社 Information processing device, information processing system, and information processing method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3685741B2 (en) * 2001-06-13 2005-08-24 ヒロセ電機株式会社 Momentum measuring device
JP2006026092A (en) * 2004-07-15 2006-02-02 Matsushita Electric Ind Co Ltd Acceleration information transmitting device, body exercise analyzing device, and body exercise analyzing method
JP4190482B2 (en) * 2004-10-29 2008-12-03 三洋電機株式会社 Counting device and program
US7766841B2 (en) * 2005-05-18 2010-08-03 Panasonic Electric Works Co., Ltd. Sleep diagnosis device
JP5017062B2 (en) * 2007-11-01 2012-09-05 シチズン・システムズ株式会社 Body motion detection device
JP5416896B2 (en) * 2007-11-15 2014-02-12 シチズン・システムズ株式会社 Body motion detection device
JP5202933B2 (en) * 2007-11-30 2013-06-05 株式会社タニタ Body motion detection device

Also Published As

Publication number Publication date
JP2012065749A (en) 2012-04-05

Similar Documents

Publication Publication Date Title
JP5049810B2 (en) Body motion detection device
US7962308B2 (en) Body motion detection device, body motion detection method, and body motion detection program
JP6219182B2 (en) Input device
US8654077B2 (en) Apparatus and method for detecting tap
US20170168087A1 (en) Identification and compensation of mems accelerometer errors
KR102490847B1 (en) Multiple axis wrist worn pedometer
JP5017062B2 (en) Body motion detection device
JP5492723B2 (en) Body motion detection device
US11598649B2 (en) System and method for detecting steps with double validation
US20070202997A1 (en) Step number measuring apparatus
TWI502167B (en) Method for counting step and electronic apparatus using the same
CN107941236B (en) Step counting method, step counting device and storage medium
KR101640072B1 (en) Apparatus and method for revising value of accelerometer sensor in portalble terminal
JP5049749B2 (en) Body motion detection device
JP2015064859A (en) Input device
JP5416896B2 (en) Body motion detection device
JP5434333B2 (en) Inclination detection method and inclination detection apparatus
JP6100299B2 (en) Step detection device, step detection method, and computer program
JP6511157B2 (en) Step number measuring device and step number measuring program
JP4647284B2 (en) Analog / digital conversion method and analog / digital conversion circuit
JP2015143661A (en) Structure monitoring device, structure monitoring system and structure monitoring method
CN113244595B (en) Action explosive force analysis method and system
US11550427B2 (en) System for detecting a touch gesture of a user, device comprising the system, and method
WO2020149171A1 (en) Number of steps measuring device, method, and program
TWI564564B (en) Accelerator-based counting apparatus and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130515

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131108

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131119

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140120

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140218

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140303

R150 Certificate of patent or registration of utility model

Ref document number: 5492723

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250