JP2009123034A - Body motion detection device - Google Patents

Body motion detection device Download PDF

Info

Publication number
JP2009123034A
JP2009123034A JP2007297351A JP2007297351A JP2009123034A JP 2009123034 A JP2009123034 A JP 2009123034A JP 2007297351 A JP2007297351 A JP 2007297351A JP 2007297351 A JP2007297351 A JP 2007297351A JP 2009123034 A JP2009123034 A JP 2009123034A
Authority
JP
Japan
Prior art keywords
body motion
period
unit
value
motion detection
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.)
Granted
Application number
JP2007297351A
Other languages
Japanese (ja)
Other versions
JP2009123034A5 (en
JP5049749B2 (en
Inventor
Fumihisa Hori
文久 堀
Atsushi Miura
淳 三浦
Takahiro Chiba
隆広 千葉
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 Systems Japan Co Ltd
Original Assignee
Citizen Systems Japan 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 Systems Japan Co Ltd filed Critical Citizen Systems Japan Co Ltd
Priority to JP2007297351A priority Critical patent/JP5049749B2/en
Publication of JP2009123034A publication Critical patent/JP2009123034A/en
Publication of JP2009123034A5 publication Critical patent/JP2009123034A5/ja
Application granted granted Critical
Publication of JP5049749B2 publication Critical patent/JP5049749B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To reduce an error margin between the actual number of body motions and the counted number of body motions. <P>SOLUTION: Body motions are detected in body motion detection periods set at predetermined intervals, and the body motions are counted upon continuous detection of the body motions. On this occasion, even when no body motion is detected in one arbitrary body motion detection period, the body motions are counted if a body motion is detected in the next body motion detection period. When no body motions are detected in either of at least two consecutive body motion detection periods, continuous detection of body motions is negated. When continuous detection of body motions does not last for a predetermined determination period, walking is negated and the body motion count value is reset to the initial value or preceding count value. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

この発明は、体動検出装置に関する。   The present invention relates to a body motion detection device.

体動検出装置の一つに歩数計がある。歩数計は、加速度センサにより歩行者の上下方向の加速度を検出し、その検出値の変化に基づいて歩数(体動)を計数する。このような歩数計の場合、歩数計を操作する際の振動や、歩数計を着脱する際の振動などによって発生する加速度の変化を、歩行による加速度の変化であると誤って判断してしまい、カウントした歩数値に誤差が生じるおそれがある。これを回避するため、所定の判定期間、連続して歩行とみなされる加速度の変化を検出したときや、所定の判定回数、連続して歩行とみなされる加速度の変化を検出したときに、歩行であると判断するようにした歩数計が公知である。   One of the body motion detection devices is a pedometer. The pedometer detects the acceleration of the pedestrian in the vertical direction using an acceleration sensor, and counts the number of steps (body movement) based on the change in the detected value. In the case of such a pedometer, a change in acceleration caused by vibrations when operating the pedometer or vibrations when attaching or detaching the pedometer is erroneously determined as a change in acceleration due to walking, There may be an error in the counted step count. In order to avoid this, walking is detected when a change in acceleration that is regarded as walking continuously is detected for a predetermined determination period, or when a change in acceleration that is regarded as walking is detected for a predetermined number of times. Pedometers that are determined to be present are known.

例えば、歩行センサからの信号が所定数連続しない場合には歩行停止と判定し、歩行停止と判定した直後の所定時間内は第1の基準値を用いて歩行開始の有無を判定し、所定時間経過後は、第2の基準値を用いて歩行の有無を判定するようにした歩数計が公知である(例えば、特許文献1参照。)。また、歩行信号のうちの第1の基準周期範囲内と判断された各信号を1歩分として計数するとともに、第1の基準周期範囲外の信号のうち、第2の基準周期範囲内の信号が所定数継続したと判断された場合に、その所定数の信号を所定数の歩数として計数するようにした歩数計が公知である(例えば、特許文献2参照。)。   For example, when a predetermined number of signals from the walking sensor do not continue, it is determined that walking is stopped, and within a predetermined time immediately after it is determined that walking is stopped, the presence or absence of the start of walking is determined using the first reference value, and the predetermined time After the lapse, a pedometer is known that uses the second reference value to determine the presence or absence of walking (see, for example, Patent Document 1). In addition, each signal determined to be within the first reference cycle range among the walking signals is counted as one step, and among the signals outside the first reference cycle range, the signals within the second reference cycle range A pedometer is known in which a predetermined number of signals are counted as a predetermined number of steps when it is determined that a predetermined number of signals has continued (see, for example, Patent Document 2).

特開2005−283340号公報JP 2005-283340 A 特開2005−309692号公報JP 2005-309692 A

しかしながら、上述した従来の歩数計では、歩行状態であると判断するまでの判定期間の途中で、実際には歩行が継続されているにもかかわらず、加速度の変化が十分でないことなどが原因で、一歩の検出が漏れてしまうことがある。従来の歩数計は、通常、歩行による加速度の変化が1秒以内の間隔で連続して起こっている間は、歩行が継続していると判断する。この場合、一歩の検出が漏れてしまうと、前回、加速度の変化を検出してから、今回、加速度の変化を検出するまでの間隔が1秒を超えてしまうため、従来の歩数計は、歩行が中断されたと判断する。従来の歩数計は、判定期間中に歩行中断と判断すると、それまでにカウントした歩数値を破棄し、次の加速度の変化を検出すると、再び歩数値ゼロから判定期間をやり直すため、実際の歩数値と表示される歩数値の誤差が大きいという問題点がある。   However, in the conventional pedometer described above, the change in acceleration is not sufficient even though walking is actually continued in the middle of the determination period until it is determined that the user is in a walking state. , One step detection may be leaked. Conventional pedometers normally determine that walking is continuing while changes in acceleration due to walking occur continuously at intervals of less than one second. In this case, if the detection of one step is missed, the interval from the previous detection of acceleration change to the current detection of acceleration change will exceed 1 second. Is determined to have been interrupted. If a conventional pedometer determines that walking is interrupted during the determination period, it discards the number of steps counted so far and detects the next change in acceleration. There is a problem that the error between the numerical value and the displayed step value is large.

この発明は、上述した従来技術による問題点を解消するため、実際の体動の回数とカウントした体動の回数との誤差を小さくすることができる体動検出装置を提供することを目的とする。   An object of the present invention is to provide a body motion detection device capable of reducing an error between the actual number of body motions and the counted number of body motions in order to eliminate the above-described problems caused by the prior art. .

上述した課題を解決し、目的を達成するため、請求項1の発明にかかる体動検出装置は、所定間隔で設定された体動検出期間ごとに体動を検出し、前記体動の連続した検出に基づいて体動を計数する体動検出装置において、任意の1つの体動検出期間で体動が検出されない場合であっても、次の体動検出期間で体動を検出した場合には、体動を計数すること特徴とする。   In order to solve the above-described problems and achieve the object, the body motion detection device according to the invention of claim 1 detects body motion for each body motion detection period set at a predetermined interval, and the body motion continues. In a body motion detection device that counts body motion based on detection, even when body motion is not detected in any one body motion detection period, when body motion is detected in the next body motion detection period, The body movement is counted.

また、請求項2の発明にかかる体動検出装置は、請求項1に記載の発明において、連続する少なくとも2つの体動検出期間のいずれでも体動が検出されない場合に、体動が連続して検出されていないと判断すること特徴とする。   According to a second aspect of the present invention, there is provided a body movement detecting device according to the first aspect of the present invention, wherein the body movement is continued when no body movement is detected in any of at least two consecutive body movement detection periods. It is characterized in that it is not detected.

また、請求項3の発明にかかる体動検出装置は、請求項1または2に記載の発明において、連続した体動の検出が所定の判定期間継続しない場合に非歩行時と判断する。   According to a third aspect of the present invention, the body movement detecting device determines that the person is not walking when the continuous body movement detection is not continued for a predetermined determination period.

また、請求項4の発明にかかる体動検出装置は、請求項3に記載の発明において、任意の1の体動検出期間で体動を検出しない場合に、次の体動検出期間に体動を検出した時点で、前記判定期間を新たに開始することを特徴とする。   According to a fourth aspect of the present invention, there is provided a body movement detecting device according to the third aspect of the present invention, wherein the body movement is detected during the next body movement detection period when no body movement is detected in any one body movement detection period. The above-described determination period is newly started at the time when is detected.

また、請求項5の発明にかかる体動検出装置は、請求項3または4に記載の発明において、非歩行時と判定した場合に体動計数値を初期値または前回計数値にリセットすることを特徴とする。   In addition, the body movement detecting device according to the invention of claim 5 resets the body movement count value to the initial value or the previous count value when it is determined that the vehicle is not walking in the invention of claim 3 or 4. Features.

この発明によれば、任意の1つの体動検出期間で体動が検出されない場合であっても、次の体動検出期間で体動を検出した場合には、体動が計数される。従って、実際には体動が継続して起こっているのに、何らかの原因で体動の検出漏れが起こっても、カウントが継続されるので、カウント値のずれは、その検出漏れの分だけになる。   According to the present invention, even when body motion is not detected in any one body motion detection period, body motion is counted when body motion is detected in the next body motion detection period. Therefore, even if body movement actually occurs continuously, even if a body motion detection failure occurs for some reason, counting continues, so the deviation of the count value is only the amount of the detection failure. Become.

本発明にかかる体動検出装置によれば、実際の体動の回数とカウントした体動の回数との誤差を小さくすることができるという効果を奏する。   According to the body motion detection device of the present invention, there is an effect that an error between the actual number of body motions and the counted number of body motions can be reduced.

以下に添付図面を参照して、この発明にかかる体動検出装置の好適な実施の形態を詳細に説明する。   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.

(体動検出装置のハードウェア構成)
図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 driving circuit.

(処理装置の機能的構成)
図2は、この発明にかかる体動検出装置の処理装置の機能的構成を示すブロック図である。図2に示すように、処理装置15は、X軸アナログ/デジタル変換部21、Y軸アナログ/デジタル変換部22、Z軸アナログ/デジタル変換部23、加速度取得部24、上弦ピーク値検出部25、下弦ピーク値検出部26、ピーク差検出部27、閾値判定部28、フラグ制御部29、表示計数部30、切り替え部41、内部計数部42、計数更新部43および中断検出部44を備えている。これらの機能部については、ハードウェアにより実現されてもよいし、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 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 acquisition unit 24, and a cosine peak value detection unit 25. , A lower chord peak value detection unit 26, a peak difference detection unit 27, a threshold determination unit 28, a flag control unit 29, a display counting unit 30, a switching unit 41, an internal counting unit 42, a count updating unit 43, and an interruption detection unit 44. Yes. These functional units may be realized by hardware, or may be realized by executing a program with a CPU or the like.

X軸アナログ/デジタル変換部21、Y軸アナログ/デジタル変換部22およびZ軸アナログ/デジタル変換部23は、それぞれ、入力端子31,32,33を介して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 acceleration sensor 12 and the Y-axis acceleration sensor via input terminals 31, 32, and 33. 13 and the Z-axis acceleration sensor 14, and analog voltage signals output from these sensors are sampled at a predetermined cycle 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.

加速度取得部24は、各軸のアナログ/デジタル変換部21,22,23の出力値に基づいて、重力加速度の影響を除いた加速度の大きさを取得する。加速度の大きさは、図3に示すように、増減を繰り返す。図3は、加速度取得部により取得される加速度の変化を示す波形図である。なお、図3には、X軸方向の加速度、Y軸方向の加速度およびZ軸方向の加速度を合成した加速度データが波形として示されているが、実際には、この加速度データは、連続したデータではなく、所定周期でサンプリングされた離散的なデータである。   The acceleration acquisition unit 24 acquires the magnitude of acceleration excluding the influence of gravitational acceleration based on the output values of the analog / digital conversion units 21, 22, and 23 for each axis. The magnitude of the acceleration is repeatedly increased and decreased as shown in FIG. FIG. 3 is a waveform diagram showing changes in acceleration acquired by the acceleration acquisition unit. In FIG. 3, acceleration data obtained by synthesizing the acceleration in the X-axis direction, the acceleration in the Y-axis direction, and the acceleration in the Z-axis direction is shown as a waveform. Instead, it is discrete data sampled at a predetermined period.

上弦ピーク値検出部25は、加速度取得部24により取得された加速度の大きさが増加傾向から減少傾向に切り替わるときのピーク値(上弦ピーク値とする)を検出する。図3に示す加速度の波形では、符号62、64、66、68、70、72および74で示すピークが上弦ピーク値である。上弦ピーク値を検出するために、上弦ピーク値検出部25は、例えば、次のような処理を行う。上弦ピーク値検出部25は、加速度取得部24から出力された加速度の値をバッファに格納し、そのバッファの格納値と、その次に加速度取得部24から出力された加速度の値を比較し、大きい方の値でバッファの格納値を更新する。そして、上弦ピーク値検出部25は、加速度取得部24から出力された加速度の値がバッファの格納値よりも小さくなったら、そのときのバッファの格納値を上弦ピーク値とする。   The upper string peak value detection unit 25 detects a peak value (referred to as an upper string peak value) when the magnitude of the acceleration acquired by the acceleration acquisition unit 24 switches from an increasing tendency to a decreasing tendency. In the acceleration waveform shown in FIG. 3, peaks indicated by reference numerals 62, 64, 66, 68, 70, 72, and 74 are first-crest peak values. In order to detect the upper string peak value, the upper string peak value detection unit 25 performs, for example, the following processing. The crest peak value detection unit 25 stores the acceleration value output from the acceleration acquisition unit 24 in a buffer, compares the stored value of the buffer with the acceleration value output from the acceleration acquisition unit 24, and Update the stored value of the buffer with the larger value. When the acceleration value output from the acceleration acquisition unit 24 becomes smaller than the stored value of the buffer, the upper chord peak value detecting unit 25 sets the stored value of the buffer at that time as the upper chord peak value.

下弦ピーク値検出部26は、加速度取得部24により取得された加速度の大きさが減少傾向から増加傾向に切り替わるときのピーク値(下弦ピーク値とする)を検出する。図3に示す加速度の波形では、符号61、63、65、67、69、71および73で示すピークが下弦ピーク値である。下弦ピーク値を検出するために、下弦ピーク値検出部26は、例えば、次のような処理を行う。下弦ピーク値検出部26は、加速度取得部24から出力された加速度の値をバッファに格納し、そのバッファの格納値と、その次に加速度取得部24から出力された加速度の値を比較し、小さい方の値でバッファの格納値を更新する。そして、下弦ピーク値検出部26は、加速度取得部24から出力された加速度の値がバッファの格納値よりも大きくなったら、そのときのバッファの格納値を下弦ピーク値とする。   The lower chord peak value detection unit 26 detects a peak value (referred to as a lower chord peak value) when the magnitude of the acceleration acquired by the acceleration acquisition unit 24 switches from a decreasing tendency to an increasing tendency. In the acceleration waveform shown in FIG. 3, the peaks indicated by reference numerals 61, 63, 65, 67, 69, 71 and 73 are the lower chord peak values. In order to detect the lower chord peak value, the lower chord peak value detecting unit 26 performs, for example, the following processing. The lower chord peak value detection unit 26 stores the acceleration value output from the acceleration acquisition unit 24 in a buffer, compares the stored value of the buffer with the acceleration value output from the acceleration acquisition unit 24, and Update the stored value of the buffer with the smaller value. When the acceleration value output from the acceleration acquisition unit 24 becomes larger than the stored value of the buffer, the lower chord peak value detecting unit 26 sets the stored value of the buffer at that time as the lower chord peak value.

ピーク差検出部27は、下弦ピーク値検出部26により検出された下弦ピーク値および上弦ピーク値検出部25により検出された上弦ピーク値の差分を算出する。その際、ピーク差検出部27は、下弦ピーク値とその直後の上弦ピーク値との差分を算出してもよいし、上弦ピーク値とその直後の下弦ピーク値との差分を算出してもよい。図3には、下弦ピーク値とその直後の上弦ピーク値との差分を算出する例が示されている。閾値判定部28は、ピーク差検出部27により算出された、下弦ピーク値と上弦ピーク値の差分を、予め設定されている閾値と比較し、その結果に基づいて体動を検出したか否かを判定する。例えば、閾値判定部28は、下弦ピーク値と上弦ピーク値の差分が閾値よりも大きいときに、体動を検出したと判定する。   The peak difference detection unit 27 calculates the difference between the lower chord peak value detected by the lower chord peak value detection unit 26 and the upper chord peak value detected by the upper chord peak value detection unit 25. At that time, the peak difference detection unit 27 may calculate the difference between the lower chord peak value and the immediately following upper chord peak value, or may calculate the difference between the upper chord peak value and the immediately following lower chord peak value. . FIG. 3 shows an example in which the difference between the lower chord peak value and the immediately upper chord peak value is calculated. The threshold value determination unit 28 compares the difference between the lower chord peak value and the upper chord peak value calculated by the peak difference detection unit 27 with a preset threshold value, and determines whether body motion is detected based on the result. Determine. For example, the threshold determination unit 28 determines that body movement has been detected when the difference between the lower chord peak value and the upper chord peak value is greater than the threshold.

フラグ制御部29は、閾値判定部28により体動を検出したと判定された場合に、例えば、加速度取得部24から出力された加速度データの値が初めてゼロになった時点で、体動検出フラグをオンにする。これは、上弦ピーク値および下弦ピーク値の近傍はノイズ等の影響を受けやすいので、そこを避けて体動検出フラグをオンにするためである。図3において、三角印は、体動検出フラグがオンになるタイミングを示し、その下の数字(1、2、3、4、5)は体動としてカウントされる数を示す。   When it is determined that the body motion is detected by the threshold determination unit 28, the flag control unit 29, for example, when the value of the acceleration data output from the acceleration acquisition unit 24 becomes zero for the first time, the body motion detection flag Turn on. This is because the vicinity of the upper chord peak value and the lower chord peak value is easily affected by noise or the like, so that the body motion detection flag is turned on while avoiding this. In FIG. 3, the triangle mark indicates the timing when the body motion detection flag is turned on, and the numbers below (1, 2, 3, 4, 5) indicate the number counted as body motion.

具体的には、図3に示す例において、第1の下弦ピーク61と第1の上弦ピーク62の差分、第3の下弦ピーク65と第3の上弦ピーク66の差分、第4の下弦ピーク67と第4の上弦ピーク68の差分、第6の下弦ピーク71と第6の上弦ピーク72の差分および第7の下弦ピーク73と第7の上弦ピーク74の差分が閾値よりも大きい。従って、第1の上弦ピーク62、第3の上弦ピーク66、第4の上弦ピーク68、第6の上弦ピーク72および第7の上弦ピーク74の後で加速度データの値が初めてゼロになった時点で、体動検出フラグがオンになる。一方、第2の下弦ピーク63と第2の上弦ピーク64の差分および第5の下弦ピーク69と第5の上弦ピーク70の差分は閾値よりも小さいので、体動検出フラグはオフのままである。また、フラグ制御部29は、体動検出フラグをオンにした後、所定期間経過した時点で体動検出フラグをオフに切り替える。   Specifically, in the example shown in FIG. 3, the difference between the first lower chord peak 61 and the first upper chord peak 62, the difference between the third lower chord peak 65 and the third upper chord peak 66, and the fourth lower chord peak 67. And the fourth upper chord peak 68, the sixth lower chord peak 71 and the sixth upper chord peak 72, and the seventh lower chord peak 73 and the seventh upper chord peak 74 are larger than the threshold. Therefore, when the acceleration data value becomes zero for the first time after the first cosine peak 62, the third cosine peak 66, the fourth cosine peak 68, the sixth cosine peak 72, and the seventh cosine peak 74. Thus, the body motion detection flag is turned on. On the other hand, since the difference between the second lower chord peak 63 and the second upper chord peak 64 and the difference between the fifth lower chord peak 69 and the fifth upper chord peak 70 are smaller than the threshold value, the body motion detection flag remains off. . In addition, the flag control unit 29 switches the body motion detection flag off when a predetermined period has elapsed after turning on the body motion detection flag.

表示計数部30は、カウンタにより構成されており、切り替え部41から、体動検出フラグがオンになったことを示す信号(オン信号とする)が入力するたびに、カウント値をインクリメントする。表示計数部30のカウント値(表示カウント値とする)のデータは、出力端子34を介して前記表示装置16へ送られる。   The display counting unit 30 includes a counter, and increments the count value every time a signal (assumed to be an on signal) indicating that the body motion detection flag is turned on is input from the switching unit 41. Data of the count value of the display counting unit 30 (referred to as display count value) is sent to the display device 16 via the output terminal 34.

内部計数部42は、カウンタにより構成されており、切り替え部41からオン信号が入力するたびに、カウント値をインクリメントする。内部計数部42は、中断検出部44からの計数更新指示により、カウント値のデータを計数更新部43へ送る。内部計数部42は、体動計数処理が開始された直後、または中断検出部44からの内部計数リセット指示により、初期値にリセットされる。   The internal counting unit 42 includes a counter, and increments the count value every time an ON signal is input from the switching unit 41. The internal counting unit 42 sends count value data to the counting update unit 43 in response to a count update instruction from the interruption detection unit 44. The internal counting unit 42 is reset to the initial value immediately after the body motion counting process is started or by an internal counting reset instruction from the interruption detecting unit 44.

切り替え部41は、中断検出部44からの切り替え指示により、体動検出フラグがオンになった回数を表示計数部30でカウントするか否かを切り替える。切り替え部41は、体動検出装置11の体動計数処理が開始された直後、すなわち初期状態では、表示計数部30でカウントを行わない側になる。切り替え部41が、表示計数部30でカウントを行わない側にある間、表示計数部30は停止状態となる。従って、以下の説明では、切り替え部41が、表示計数部30でカウントを行わない側にある(切り替わる)ことを、表示計数停止側にある(切り替わる)と表現し、表示計数停止側にある状態を、表示計数停止状態と表現する。   The switching unit 41 switches whether or not the display counting unit 30 counts the number of times the body motion detection flag is turned on in response to a switching instruction from the interruption detection unit 44. The switching unit 41 is on the side where the display counting unit 30 does not count immediately after the body motion counting process of the body motion detecting device 11 is started, that is, in the initial state. While the switching unit 41 is on the side where the display counting unit 30 does not count, the display counting unit 30 is stopped. Therefore, in the following description, the state where the switching unit 41 is on the side not counting (switched) in the display counting unit 30 is expressed as being on the display count stop side (switched), and is on the display count stop side. Is expressed as a display counting stop state.

計数更新部43は、表示カウント値のデータに、内部計数部42から送られてきたカウント値のデータを加算する。これによって、切り替え部41が、表示計数停止側にある間に内部計数部42でカウントされていたが、表示計数部30ではカウントされていなかった分の体動の検出回数が、表示カウント値に反映される。   The count updating unit 43 adds the count value data sent from the internal counting unit 42 to the display count value data. As a result, the number of body movements detected by the internal counting unit 42 while the switching unit 41 is on the display counting stop side but not counted by the display counting unit 30 is displayed as the display count value. Reflected.

図4は、中断検出部の機能的構成を示すブロック図である。図4に示すように、中断検出部44は、第1計時部51、第1期間判定部52、第2計時部53、第2期間判定部54および中断判定部55を備えている。第1計時部51は、入力端子56を介してフラグ制御部29に接続されている。第1計時部51は、タイマにより構成されており、体動検出フラグがオンになると、そのときのタイマ値(第1計時タイマ値とする)を出力し、初期値にリセットされ、再び計時を開始する。従って、第1計時部51により、体動検出フラグが前回オンになってから今回オンになるまでの期間(オン期間とする)が計時される。   FIG. 4 is a block diagram illustrating a functional configuration of the interruption detection unit. As shown in FIG. 4, the interruption detector 44 includes a first timer 51, a first period determiner 52, a second timer 53, a second period determiner 54, and an interrupt determiner 55. The first timer 51 is connected to the flag controller 29 via the input terminal 56. The first time measuring unit 51 is constituted by a timer, and when the body motion detection flag is turned on, the timer value at that time (the first time measuring timer value) is output, reset to the initial value, and timed again. Start. Therefore, the first time counting unit 51 measures the period from when the body motion detection flag is previously turned on to when it is turned on this time (referred to as the on period).

第1期間判定部52は、第1計時部51から出力された第1計時タイマ値が、予め設定された第1期間に相当する値(第1期間値とする)以下であるか否かを判定し、その判定結果を中断判定部55に渡す。また、第1期間判定部52は、第1計時タイマ値が第1期間値よりも大きい場合、計時リセット指示によって第2計時部53にリセットを指示する。ここで、第1期間は、歩行を想定した場合、ゆっくりとした足の運びによって生じる体動の周期程度の期間、例えば1秒である。従って、第1計時タイマ値が第1期間値以下である場合とは、中断することなく歩行が連続している場合に相当する。一方、歩行を中断した後、歩行を再開するときの第一歩目などでは、歩行の中断によりオン期間が長くなるので、第1計時タイマ値は第1期間値よりも大きくなる。   The first period determination unit 52 determines whether or not the first timer value output from the first timer 51 is equal to or less than a value corresponding to a preset first period (referred to as a first period value). The determination result is passed to the interruption determination unit 55. Moreover, the 1st time period determination part 52 instruct | indicates reset to the 2nd time measuring part 53 by a time measurement reset instruction | indication, when a 1st time measuring timer value is larger than a 1st period value. Here, when the walking is assumed, the first period is a period of about a period of body movement caused by slow foot movement, for example, 1 second. Therefore, the case where the first clock timer value is equal to or less than the first period value corresponds to the case where walking is continued without interruption. On the other hand, in the first step when the walking is resumed after the walking is interrupted, the on-period becomes longer due to the interruption of the walking, and therefore the first timer value becomes larger than the first period value.

第2期間判定部54は、第1計時タイマ値が、予め設定された第2期間に相当する値(第2期間値とする)以下であるか否かを判定し、その判定結果を中断判定部55に渡す。ここで、第2期間は、第1期間よりも長く、歩行を想定した場合、無理をせずに一歩、歩を進めるのが困難なほど十分に長い時間、例えば1.5秒である。従って、歩行を想定した場合、第1計時タイマ値が第2期間値よりも大きい場合とは、歩行が中断されたと見なしてもよい場合である。第1計時タイマ値が第1期間値よりも大きく、かつ第2期間値以下である場合、歩行が連続していることが疑わしい状況にある。ここで、歩行が連続していることが疑わしい状況としたのは、実際には歩行が継続されているにもかかわらず、何らかの原因で体動フラグがオンにならず、一歩の検出が漏れてしまうことや一歩に要する時間が1秒程度の非常に遅い歩行時に、一歩に要する時間のばらつきで1秒より大きくなってしまうことが考えられるからである。   The second period determination unit 54 determines whether or not the first clock timer value is equal to or less than a value corresponding to a preset second period (referred to as a second period value), and determines the determination result as interruption. Pass to part 55. Here, the second period is longer than the first period. When walking is assumed, the second period is sufficiently long, for example, 1.5 seconds, so that it is difficult to advance one step without overdoing it. Therefore, when walking is assumed, the case where the first timekeeping timer value is larger than the second period value is a case where walking may be regarded as being interrupted. If the first timekeeping timer value is larger than the first period value and less than or equal to the second period value, it is suspected that walking is continuing. Here, the suspicious situation that walking is continued is because the body movement flag is not turned on for some reason, even though walking is actually continued, and the detection of one step is leaked. This is because it can be considered that the time required for one step becomes longer than 1 second due to variations in the time required for one step during a very slow walking of about 1 second.

第2計時部53は、タイマにより構成されており、第1期間判定部52からの計時リセット指示によって初期値にリセットされ、計時を開始する。つまり、第2計時部53は、歩行が連続していることが疑わしい状況(歩行が中断されたと見なされる状況を含む)になると、連続した歩行と判定するための判定期間の計時を開始する。第2計時部53は、計時を開始した後、所定の判定期間、例えば6秒が経過した時点で中断判定部55にタイムアップを通知する。   The second timer 53 includes a timer, is reset to an initial value by a timer reset instruction from the first period determination unit 52, and starts timing. That is, the second time counting unit 53 starts counting the determination period for determining that the walking is continuous when the situation in which the walking is doubtful (including the situation where the walking is considered to be interrupted) is entered. The second time measurement unit 53 notifies the interruption determination unit 55 of time-up when a predetermined determination period, for example, 6 seconds elapses, after starting the time measurement.

中断判定部55は、第1期間判定部52から、第1計時タイマ値が第1期間値よりも大きいという判定結果を得ると、出力端子57を介して切り替え部41へ、表示計数停止側に切り替えるための切り替え指示を出す。中断判定部55は、第2期間判定部54から、第1計時タイマ値が第2期間値よりも大きいという判定結果を得ると、出力端子58を介して内部計数部42へ、カウント値をリセットさせるための内部計数リセット指示を出す。   When the interruption determination unit 55 obtains a determination result from the first period determination unit 52 that the first timekeeping timer value is larger than the first period value, the interruption determination unit 55 passes the output terminal 57 to the switching unit 41 to the display count stop side. A switching instruction for switching is issued. When the interruption determination unit 55 obtains a determination result from the second period determination unit 54 that the first timekeeping timer value is larger than the second period value, the interruption determination unit 55 resets the count value to the internal counting unit 42 via the output terminal 58. An internal count reset instruction is issued to

中断判定部55は、表示計数停止側への切り替え指示が出ている状態で、第2計時部53からタイムアップが通知されると、出力端子59を介して内部計数部42へ、カウント値を出力させるための計数更新指示を出す。一方、中断判定部55は、表示計数部30でのカウントを行うという切り替え指示が出ている状態で、第2計時部53からタイムアップが通知されている状態のときには、計数更新指示を出さない。つまり、内部計数部42でのみカウントを行っている状態で判定期間が経過した場合にのみ、計数更新部43は、内部計数部42のカウント値(内部カウント値とする)で表示カウント値を更新する。   When the second timer unit 53 is notified of the time-up in the state where the instruction to switch to the display counting stop side is issued, the interruption determination unit 55 sends the count value to the internal counting unit 42 via the output terminal 59. A count update instruction for outputting is issued. On the other hand, the interruption determination unit 55 does not issue the count update instruction when the second timer unit 53 is notified of the time-up while the switching instruction to perform the counting in the display counting unit 30 is issued. . That is, the count update unit 43 updates the display count value with the count value of the internal count unit 42 (referred to as the internal count value) only when the determination period elapses while the internal count unit 42 is counting only. To do.

また、中断判定部55は、第2計時部53からタイムアップが通知されると、出力端子57を介して切り替え部41へ、表示計数部30でのカウントを行わせるための切り替え指示を出す。以下の説明では、切り替え部41が、表示計数部30でカウントを行わせる側にある(切り替わる)ことを、表示計数動作側にある(切り替わる)と表現し、表示計数動作側にある状態を、表示計数動作状態と表現する。   Further, when the time-out is notified from the second timing unit 53, the interruption determination unit 55 issues a switching instruction for causing the display counting unit 30 to perform counting to the switching unit 41 via the output terminal 57. In the following description, it is expressed that the switching unit 41 is on the side that causes the display counting unit 30 to perform counting (switching) is on the display counting operation side (switching), and the state on the display counting operation side is It is expressed as a display counting operation state.

(体動計数処理手順)
図5は、この発明にかかる体動検出装置の体動計数処理手順を示すフローチャートである。図5に示すように、体動検出装置11は加速度の変化を検出すると、体動計数処理が開始される。次いで、加速度取得部24により取得した加速度の変化に基づいて体動を検出すると、フラグ制御部29により体動検出フラグをオンにする(ステップS1:Yes)。ステップS1で体動を検出できない場合、体動検出フラグはオフのままであり、体動検出フラグがオンの検出を所定周期でサンプリングして監視している(ステップS1:No)。体動検出フラグがオンになると、第1計時部51は、そのときのタイマ値(第1計時タイマ値)を出力し、初期値にリセットされ、計時を開始する。一方、1つの体動を検出したときに加速度センサが2度振幅してしまい、体動検出フラグが2度オンになり、体動を2つカウントしてしまうのを防ぐために体動フラグがオンとなった後、一定時間は体動検出フラグのオンをカウントしないカウント禁止期間を設けている。
(Body motion counting procedure)
FIG. 5 is a flowchart showing a body motion counting process procedure of the body motion detection device according to the present invention. As shown in FIG. 5, when the body motion detection device 11 detects a change in acceleration, the body motion counting process is started. Next, when body motion is detected based on the change in acceleration acquired by the acceleration acquisition unit 24, the body motion detection flag is turned on by the flag control unit 29 (step S1: Yes). If the body motion cannot be detected in step S1, the body motion detection flag remains off, and the detection that the body motion detection flag is on is sampled and monitored at a predetermined period (step S1: No). When the body motion detection flag is turned on, the first timer 51 outputs the timer value at that time (first timer value), is reset to the initial value, and starts timing. On the other hand, when one body motion is detected, the acceleration sensor will swing twice, the body motion detection flag will turn on twice, and the body motion flag will turn on to prevent counting two body motions. After that, a count prohibition period during which the body motion detection flag is not counted for a certain period of time is provided.

次いで、第1期間判定部52により、体動検出フラグのオン期間が第1期間以下であるか否かを判定する(ステップS2)。ここでは、体動計数処理が開始された後、初めて体動検出フラグがオンになったので、第1計時タイマ値は初期値である。この場合、第1期間判定部52は、オン期間が不定であるので、第1期間よりも長いと見なして(ステップS2:No)、第2計時部53へ計時リセット指示を出す。それによって、第2計時部53が判定期間の計時を開始する(ステップS3)。また、中断判定部55は、切り替え部41へ、表示計数停止側の切り替え指示を出す。それによって、表示計数部30でのカウント動作が停止され、内部計数部42でのみカウントを行う状態となる。   Next, the first period determination unit 52 determines whether or not the on period of the body motion detection flag is equal to or shorter than the first period (step S2). Here, since the body motion detection flag is turned on for the first time after the body motion counting process is started, the first timer value is an initial value. In this case, since the ON period is indefinite, the first period determination unit 52 considers that the ON period is longer than the first period (step S2: No), and issues a timing reset instruction to the second timing unit 53. Thereby, the second time measuring unit 53 starts measuring the determination period (step S3). Further, the interruption determination unit 55 issues a switching instruction on the display count stop side to the switching unit 41. As a result, the counting operation in the display counting unit 30 is stopped, and only the internal counting unit 42 performs counting.

次いで、第2期間判定部54により、体動検出フラグのオン期間が第2期間以下であるか否かを判定する(ステップS4)。ここでは、体動計数処理が開始された後、初めて体動検出フラグがオンになったので、ステップS2の場合と同様に、第2期間判定部54は、オン期間が不定であるので、第2期間よりも長いと見なして(ステップS4:No)、内部計数部42へ内部計数リセット指示を出す。それによって、内部カウント値がリセットされる(ステップS5)。その後、内部カウント値をインクリメントする(ステップS6)。   Next, the second period determination unit 54 determines whether or not the on period of the body motion detection flag is equal to or shorter than the second period (step S4). Here, since the body motion detection flag is turned on for the first time after the body motion counting process is started, the second period determination unit 54 determines that the on period is indefinite as in the case of step S2. Considering that it is longer than two periods (step S4: No), an internal count reset instruction is issued to the internal counter 42. Thereby, the internal count value is reset (step S5). Thereafter, the internal count value is incremented (step S6).

次いで、判定期間が終了したか否かを判定する(ステップS7)。体動計数処理が開始されてからしばらくの間は、第2計時部53がタイムアップしないので、判定期間は終了しない(ステップS7:No)。従って、ステップS1に戻り、次に体動検出フラグがオンになるのを待つ。再び、体動検出フラグがオンになると(ステップS1:Yes)、体動検出フラグのオン期間が第1期間以下であるか否かを判定する(ステップS2)。ここでは、第1期間以下であるとする(ステップS2:Yes)。この状態は、所望の体動が継続している状態である。歩行を想定した場合、歩が継続している状態である。   Next, it is determined whether or not the determination period has ended (step S7). For a while after the start of the body motion counting process, the second timer 53 does not time up, so the determination period does not end (step S7: No). Therefore, the process returns to step S1 and waits for the body motion detection flag to be turned on next time. When the body motion detection flag is turned on again (step S1: Yes), it is determined whether or not the body motion detection flag is on or shorter than the first period (step S2). Here, it is assumed that the period is equal to or shorter than the first period (step S2: Yes). This state is a state in which the desired body movement continues. When walking is assumed, walking is in a continuous state.

再び、判定期間が終了したか否か、すなわち第2計時部53からタイムアップ通知が出ているか否かを判定する(ステップS12)。ここでは、終了していない、すなわちタイムアップ通知がまだ出ていないとする(ステップS12:No)。この場合、切り替え部41が表示計数停止側にあるので、内部カウント値のみをインクリメントする(ステップS6)。そして、判定期間が終了したか否かを判定する(ステップS7)。判定期間が終了していなければ(ステップS7:No)、ステップS1に戻る。   Again, it is determined whether or not the determination period has ended, that is, whether or not a time-up notification has been issued from the second timer 53 (step S12). Here, it is assumed that the processing has not ended, that is, the time-up notification has not yet been issued (step S12: No). In this case, since the switching unit 41 is on the display count stop side, only the internal count value is incremented (step S6). Then, it is determined whether or not the determination period has ended (step S7). If the determination period has not ended (step S7: No), the process returns to step S1.

ここまでの動作を繰り返している期間は判定期間である。この判定期間の間、途中のステップS7で第2計時部53がタイムアップすると、判定期間が終了する。ここまでは、体動計数処理が開始された後、1回の判定期間で、この判定期間中に検出された複数の体動が、体動検出装置11の操作や着脱などによる振動ではなく、本来の検出対象である所望の体動が継続していることを判定できた場合の流れである。歩行を想定した場合、1回の判定期間で歩が継続していることを判定できた場合の流れである。   The period in which the operations so far are repeated is a determination period. During this determination period, the determination period ends when the second timer 53 times up in step S7. Up to this point, after the body motion counting process is started, a plurality of body motions detected during this determination period in one determination period are not vibrations due to operation or attachment / detachment of the body motion detection device 11, This is a flow when it can be determined that the desired body movement that is the original detection target is continuing. When walking is assumed, it is a flow in a case where it can be determined that walking is continued in one determination period.

判定期間が終了すると(ステップS7:Yes)、中断判定部55は、内部計数部42へ計数更新指示を出す。それによって、内部計数部42からカウント値が出力される(ステップS8)。そして、計数更新部43により、表示カウント値に内部カウント値を加算して、表示カウント値を更新する(ステップS9)。次いで、ステップS9で更新された表示カウント値を出力する(ステップS10)。表示装置16には、更新された表示カウント値が表示される。   When the determination period ends (step S7: Yes), the interruption determination unit 55 issues a count update instruction to the internal counting unit 42. Thereby, the count value is output from the internal counter 42 (step S8). And the count update part 43 adds an internal count value to a display count value, and updates a display count value (step S9). Next, the display count value updated in step S9 is output (step S10). The display device 16 displays the updated display count value.

また、ステップS7で判定期間が終了したときに、中断判定部55は、切り替え部41へ、表示計数動作側へ切り替えるための切り替え指示を出す。それによって、これ以降、切り替え部41に対して表示計数停止側への切り替え指示が出るまでは、内部計数部42と表示計数部30の両方でカウントが行われる。体動計数処理を続ける場合(ステップS11:No)には、ステップS1に戻る。   When the determination period ends in step S7, the interruption determination unit 55 issues a switching instruction for switching to the display counting operation side to the switching unit 41. Thus, thereafter, both the internal counting unit 42 and the display counting unit 30 perform counting until the switching unit 41 is instructed to switch to the display counting stop side. When the body motion counting process is continued (step S11: No), the process returns to step S1.

一方、ステップS7からステップS1に戻った後、判定期間の途中で、体動検出フラグのオン期間が第1期間よりも長い場合(ステップS2:No)、第1期間判定部52は、第2計時部53へ計時リセット指示を出す。それによって、再び、第2計時部53が初期値にリセットされ、判定期間の計時が開始される(ステップS3)。つまり、判定期間が最初からやり直される。   On the other hand, after returning from step S7 to step S1, when the ON period of the body motion detection flag is longer than the first period in the middle of the determination period (step S2: No), the first period determination unit 52 A time reset instruction is issued to the time measuring unit 53. Thereby, the second timer 53 is reset to the initial value again, and the determination period is started (step S3). That is, the determination period is restarted from the beginning.

次いで、第2期間判定部54により、体動検出フラグのオン期間が第2期間以下であるか否かを判定する(ステップS4)。ここでは、第2期間以下であるとする(ステップS4:Yes)。この場合、内部計数部42をリセットしないで、内部カウント値のみをインクリメントし(ステップS6)、判定期間が終了したか否かを判定する(ステップS7)。判定期間が終了していなければ(ステップS7:No)、ステップS1に戻る。   Next, the second period determination unit 54 determines whether or not the on period of the body motion detection flag is equal to or shorter than the second period (step S4). Here, it is assumed that the period is equal to or shorter than the second period (step S4: Yes). In this case, without resetting the internal counting unit 42, only the internal count value is incremented (step S6), and it is determined whether or not the determination period has ended (step S7). If the determination period has not ended (step S7: No), the process returns to step S1.

そして、判定期間の途中のステップS7で第2計時部53がタイムアップすると、判定期間が終了する。ここまでは、判定期間中に、所望の体動が連続していることが疑わしい状況になり、再び判定期間を繰り返した場合の流れである。歩行を想定した場合には、判定期間の途中で歩行が連続していることが疑わしい状況になった場合の流れである。この場合の体動検出フラグと表示カウント値と内部カウント値の関係を図6に示す。図6に示すように、例えば2回の判定期間中、表示カウント値は変化しないが、内部カウント値は継続してインクリメントされる。そして、判定期間が終了すると、表示カウント値に内部カウント値が反映される。なお、図6において、波線で示す体動検出フラグは、一歩の検出が漏れてしまったことを表す。   And if the 2nd time measuring part 53 times up by step S7 in the middle of a determination period, a determination period will be complete | finished. Up to this point, the flow is when the suspicious situation that the desired body movement continues during the determination period and the determination period is repeated again. When walking is assumed, it is a flow in a case where it becomes a suspicious situation that walking is continued in the middle of the determination period. FIG. 6 shows the relationship among the body motion detection flag, the display count value, and the internal count value in this case. As shown in FIG. 6, for example, during the two determination periods, the display count value does not change, but the internal count value is continuously incremented. When the determination period ends, the internal count value is reflected in the display count value. In FIG. 6, the body movement detection flag indicated by the wavy line indicates that one step of detection has been leaked.

また、ステップS7からステップS1に戻った後、判定期間の途中で、体動検出フラグのオン期間が第2期間よりも長い(当然、第1期間よりも長い)場合(ステップS4:No)、中断判定部55が内部計数部42へ内部計数リセット指示を出すので、内部カウント値がリセットされる(ステップS5)。そして、内部カウント値をインクリメントし(ステップS6)、判定期間が終了したか否かを判定する(ステップS7)。判定期間が終了していなければ(ステップS7:No)、ステップS1に戻る。   Further, after returning from step S7 to step S1, in the middle of the determination period, when the ON period of the body motion detection flag is longer than the second period (of course, longer than the first period) (step S4: No), Since the interruption determination unit 55 issues an internal count reset instruction to the internal counting unit 42, the internal count value is reset (step S5). Then, the internal count value is incremented (step S6), and it is determined whether or not the determination period has ended (step S7). If the determination period has not ended (step S7: No), the process returns to step S1.

その後、判定期間の途中のステップS7で第2計時部53がタイムアップすると、判定期間が終了する。ここまでは、判定期間中に、所望の体動が中断されたため、再び判定期間を繰り返した場合の流れである。歩行を想定した場合には、判定期間の途中で歩行が中断された場合の流れである。この場合の体動検出フラグと表示カウント値と内部カウント値の関係を図7に示す。図7に示すように、例えば2回の判定期間中、表示カウント値は変化しない。内部カウント値は、1回目の判定期間中での体動の中断により、2回目の判定期間の開始時にゼロに戻り、中断後の体動の再開から再びインクリメントされる。そして、判定期間が終了すると、表示カウント値に内部カウント値が反映される。   Thereafter, when the second time measuring unit 53 times up in step S7 in the middle of the determination period, the determination period ends. Up to this point, since the desired body movement is interrupted during the determination period, the determination period is repeated again. When walking is assumed, this is a flow when walking is interrupted during the determination period. The relationship among the body motion detection flag, the display count value, and the internal count value in this case is shown in FIG. As shown in FIG. 7, for example, the display count value does not change during two determination periods. The internal count value returns to zero at the start of the second determination period due to the interruption of the body movement during the first determination period, and is incremented again from the restart of the body movement after the interruption. When the determination period ends, the internal count value is reflected in the display count value.

判定期間が終了し、ステップS8〜ステップS11を行った後、再びステップS1に戻り、体動検出フラグがオンになると(ステップS1:Yes)、体動検出フラグのオン期間が第1期間以下であるか否かを判定する(ステップS2)。第1期間よりも長い場合には、再び、判定期間となり、上述した処理を繰り返す。ここでは、第1期間以下であるとする(ステップS2:Yes)。既に判定期間が終了している(ステップS12:Yes)ので、内部カウント値と表示カウント値をともにインクリメントする(ステップS13、ステップS14)。そして、表示カウント値を出力し(ステップS10)、表示装置16に表示カウント値を表示する。体動計数処理を続ける場合(ステップS11:No)には、ステップS1に戻る。   After the determination period is completed and Steps S8 to S11 are performed, the process returns to Step S1 again. When the body motion detection flag is turned on (Step S1: Yes), the body motion detection flag on period is equal to or shorter than the first period. It is determined whether or not there is (step S2). If it is longer than the first period, it becomes the determination period again, and the above-described processing is repeated. Here, it is assumed that the period is equal to or shorter than the first period (step S2: Yes). Since the determination period has already ended (step S12: Yes), both the internal count value and the display count value are incremented (step S13, step S14). Then, the display count value is output (step S10), and the display count value is displayed on the display device 16. When the body motion counting process is continued (step S11: No), the process returns to step S1.

以上説明したように、実施の形態によれば、判定期間中、体動の検出間隔が第1期間より長くても、第2期間を超えなければ、内部計数部42がリセットされずに、内部計数部42でのカウントが継続されるので、判定期間中、体動の検出漏れが起こっても、カウント値のずれは、その検出漏れの分だけになる。従って、実際の体動の回数とカウントした体動の回数との誤差を小さくすることができる。また、例えば、歩行を想定して第1期間を1秒とし、第2期間を1.5秒とする場合、一歩に要する時間が1秒程度の非常に遅い歩行時に、一歩に要する時間が0.9〜1.1秒程度にばらついても、検出漏れがなければ内部カウント値がリセットされないので、実際の歩数に近いカウント値が得られる。   As described above, according to the embodiment, even if the detection interval of body movement is longer than the first period during the determination period, the internal counting unit 42 is not reset unless the second period is exceeded. Since the counting in the counting unit 42 is continued, even if a body motion detection failure occurs during the determination period, the deviation in the count value is only the amount of the detection failure. Therefore, the error between the actual number of body movements and the counted number of body movements can be reduced. Also, for example, assuming a walk where the first period is 1 second and the second period is 1.5 seconds, the time required for one step is 0 during a very slow walk of about 1 second. Even if it varies for about .9 to 1.1 seconds, the internal count value is not reset if there is no detection omission, so that a count value close to the actual number of steps can be obtained.

以上において本発明は、上述した実施の形態に限らず、種々変更可能である。例えば、内部計数部42と表示計数部30を別々に設けずに、一つのカウンタで兼用にしてもよい。この場合、表示計数停止状態になるときにそれまでのカウンタのカウント値をメモリに退避しておき、判定期間中にカウンタを内部計数部として用い、判定期間の終了時に、メモリに退避してあるカウント値をカウンタのカウント値で更新するようにすればよい。また、第1計時部51と第2計時部53は、別々のタイマで構成されていてもよいし、同じタイマで構成されていてもよい。   As described above, the present invention is not limited to the above-described embodiment, and various modifications can be made. For example, instead of providing the internal counting unit 42 and the display counting unit 30 separately, a single counter may be used. In this case, when the display counting stop state is entered, the count value of the counter until then is saved in the memory, the counter is used as the internal counting unit during the determination period, and is saved in the memory at the end of the determination period. The count value may be updated with the count value of the counter. Moreover, the 1st time measuring part 51 and the 2nd time measuring part 53 may be comprised by the separate timer, and may be comprised by the same timer.

以上のように、本発明にかかる体動検出装置は、被験者に携帯されて被験者の体動を検出するのに有用であり、特に、歩数計に適している。   As described above, the body motion detection device according to the present invention is useful for detecting the body motion of a subject carried by the subject and is particularly suitable for a pedometer.

この発明にかかる体動検出装置のハードウェア構成を示すブロック図である。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 wave form diagram which shows the change of acceleration. この発明にかかる体動検出装置の中断検出部の機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of the interruption detection part of the body movement detection apparatus concerning this invention. この発明にかかる体動検出装置の体動計数処理手順を示すフローチャートである。It is a flowchart which shows the body motion counting process procedure of the body motion detection apparatus concerning this invention. この発明にかかる体動検出装置の体動計数処理手順による体動検出フラグと表示カウント値と内部カウント値の関係を示す説明図である。It is explanatory drawing which shows the relationship between the body movement detection flag by the body movement counting process procedure of the body movement detection apparatus concerning this invention, a display count value, and an internal count value. この発明にかかる体動検出装置の体動計数処理手順による体動検出フラグと表示カウント値と内部カウント値の関係を示す説明図である。It is explanatory drawing which shows the relationship between the body movement detection flag by the body movement counting process procedure of the body movement detection apparatus concerning this invention, a display count value, and an internal count value.

符号の説明Explanation of symbols

11 体動検出装置
30 表示計数部
42 内部計数部
43 計数更新部
52 第1期間判定部
53 第2計時部
54 第2期間判定部
DESCRIPTION OF SYMBOLS 11 Body motion detection apparatus 30 Display counting part 42 Internal counting part 43 Count update part 52 1st period determination part 53 2nd time measuring part 54 2nd period determination part

Claims (5)

所定間隔で設定された体動検出期間ごとに体動を検出し、前記体動の連続した検出に基づいて体動を計数する体動検出装置において、
任意の1つの体動検出期間で体動が検出されない場合であっても、次の体動検出期間で体動を検出した場合には、体動を計数すること特徴とする体動検出装置。
In a body motion detection device that detects body motion for each body motion detection period set at a predetermined interval and counts body motion based on continuous detection of the body motion,
A body motion detection device that counts body motion when body motion is detected in the next body motion detection period even when body motion is not detected in any one body motion detection period.
連続する少なくとも2つの体動検出期間のいずれでも体動が検出されない場合に、体動が連続して検出されていないと判断すること特徴とする請求項1に記載の体動検出装置。   The body motion detection device according to claim 1, wherein when no body motion is detected in any of at least two consecutive body motion detection periods, it is determined that body motion is not continuously detected. 連続した体動の検出が所定の判定期間継続しない場合に非歩行時と判断することを特徴とする請求項1または2に記載の体動検出装置。   The body motion detection device according to claim 1, wherein when the detection of continuous body motion does not continue for a predetermined determination period, it is determined that the vehicle is not walking. 任意の1の体動検出期間で体動を検出しない場合に、次の体動検出期間に体動を検出した時点で、前記判定期間を新たに開始することを特徴とする請求項3に記載の歩数計。   4. The determination period is newly started when body motion is detected in the next body motion detection period when body motion is not detected in any one body motion detection period. 5. Pedometer. 非歩行時と判定した場合に体動計数値を初期値または前回計数値にリセットすることを特徴とする請求項3または4に記載の体動検出装置。   5. The body motion detection device according to claim 3, wherein the body motion count value is reset to an initial value or a previous count value when it is determined that the vehicle is not walking.
JP2007297351A 2007-11-15 2007-11-15 Body motion detection device Expired - Fee Related JP5049749B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007297351A JP5049749B2 (en) 2007-11-15 2007-11-15 Body motion detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007297351A JP5049749B2 (en) 2007-11-15 2007-11-15 Body motion detection device

Publications (3)

Publication Number Publication Date
JP2009123034A true JP2009123034A (en) 2009-06-04
JP2009123034A5 JP2009123034A5 (en) 2011-01-06
JP5049749B2 JP5049749B2 (en) 2012-10-17

Family

ID=40815102

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007297351A Expired - Fee Related JP5049749B2 (en) 2007-11-15 2007-11-15 Body motion detection device

Country Status (1)

Country Link
JP (1) JP5049749B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010081431A (en) * 2008-09-26 2010-04-08 Kyocera Corp Portable electronic device
JP2012157026A (en) * 2012-03-08 2012-08-16 Kyocera Corp Portable electronic apparatus
US9062976B2 (en) 2008-07-29 2015-06-23 Kyocera Corporation Portable electronic device including a pedometer function with suppression of counting errors

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63262784A (en) * 1987-04-20 1988-10-31 Matsushita Electric Works Ltd Electronic pedometer
JP2006227911A (en) * 2005-02-17 2006-08-31 Citizen Watch Co Ltd Pedometer, step counting method and step counting program
JP2007293632A (en) * 2006-04-25 2007-11-08 Matsushita Electric Works Ltd Pedometer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63262784A (en) * 1987-04-20 1988-10-31 Matsushita Electric Works Ltd Electronic pedometer
JP2006227911A (en) * 2005-02-17 2006-08-31 Citizen Watch Co Ltd Pedometer, step counting method and step counting program
JP2007293632A (en) * 2006-04-25 2007-11-08 Matsushita Electric Works Ltd Pedometer

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9062976B2 (en) 2008-07-29 2015-06-23 Kyocera Corporation Portable electronic device including a pedometer function with suppression of counting errors
JP2010081431A (en) * 2008-09-26 2010-04-08 Kyocera Corp Portable electronic device
JP2012157026A (en) * 2012-03-08 2012-08-16 Kyocera Corp Portable electronic apparatus

Also Published As

Publication number Publication date
JP5049749B2 (en) 2012-10-17

Similar Documents

Publication Publication Date Title
JP5049810B2 (en) Body motion detection device
JP5319915B2 (en) Sensor device including a circuit that detects a single or a plurality of events and generates a corresponding interrupt signal
JP6238542B2 (en) Lost child search system, program, and lost child search method
JP5741638B2 (en) Portable display device and operation detection method
JP2011149709A (en) Method of estimating stride length, method of calculating movement trajectory, and stride length estimating device
JP4785640B2 (en) Pedometer
EP1821071A1 (en) Step number measuring apparatus
JP2010051333A (en) Swimming amount measuring device
JP5049749B2 (en) Body motion detection device
JP2011149923A (en) Method of estimating stride length, method of calculating movement trajectory, and stride length estimating device
JP2011163893A (en) Motion state detection method and motion state detection apparatus
JP2009116389A (en) Body movement detection device
JP5984589B2 (en) Electronic equipment and programs
JP5416896B2 (en) Body motion detection device
US11083396B2 (en) Portable electronic apparatus
JP5492723B2 (en) Body motion detection device
JP2013196442A (en) Step count measuring device
JP4525294B2 (en) Operation count device and method
JP2010022740A (en) Device for measuring quantity of swimming
JP4296115B2 (en) Electronic pedometer
KR20170111408A (en) Apparatus and method for step calculation
JP2016181210A (en) Number-of-steps detection device, number-of-steps detection method, and computer program
US20120166133A1 (en) Electronic device, pedometer, and program
JP2013040865A (en) Electronic apparatus, stopwatch, and program
JP7119616B2 (en) Exercise support device, exercise support method and exercise support program

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101112

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101112

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120316

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120327

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120528

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: 20120710

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120723

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150727

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5049749

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees