JP2013196442A - Step count measuring device - Google Patents

Step count measuring device Download PDF

Info

Publication number
JP2013196442A
JP2013196442A JP2012063449A JP2012063449A JP2013196442A JP 2013196442 A JP2013196442 A JP 2013196442A JP 2012063449 A JP2012063449 A JP 2012063449A JP 2012063449 A JP2012063449 A JP 2012063449A JP 2013196442 A JP2013196442 A JP 2013196442A
Authority
JP
Japan
Prior art keywords
count
count value
preliminary
counter
walking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2012063449A
Other languages
Japanese (ja)
Inventor
Takahiro Kawashima
隆宏 川嶋
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.)
Yamaha Corp
Original Assignee
Yamaha Corp
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 Yamaha Corp filed Critical Yamaha Corp
Priority to JP2012063449A priority Critical patent/JP2013196442A/en
Publication of JP2013196442A publication Critical patent/JP2013196442A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a step count measuring device capable of reducing errors of step counts and displaying an accurate step count in real time even when slow walking or walking with feet hardly leaving the ground is performed.SOLUTION: The number of times of generation of walking detection signals is counted by a preliminary counter in a period during which a step count measuring device is not in a stationary state and which is before the lapse of a preliminary count period of a prescribed time length after getting out of the stationary state (Q120), and the number of times of generation of walking detection signals is counted by a normal counter in a period during which the step count measuring device is not in the stationary state and which is after the lapse of the preliminary count period after getting out of the stationary state (Q130). When the time during which walking is continuously not detected exceeds the continuity determination period of a prescribed time length, a count value of the preliminary counter is cleared (ST160). When the count value of the preliminary counter reaches a prescribed value, the count value of the preliminary counter is added to the count value of the normal counter and the count value of the preliminary counter is cleared (ST140).

Description

この発明は、歩数計測装置に関する。   The present invention relates to a step count measuring apparatus.

一般的に歩数計測装置では、歩数計測装置を携帯しているユーザの体動により発生する加速度を加速度センサにより検出し、この検出した加速度に基づいて、歩数のカウントを行う。しかしながら、ユーザが歩行していない場合でも、歩行以外の体動により加速度が発生する。このため、何ら策を講じないと、この歩行によらず発生する加速度に基づいて誤って歩数のカウントが行われ、この誤ったカウントによる歩数が全体の歩数に加わることとなる。そこで、従来の歩数計測装置では、次のように歩数のカウントを行っていた。まず、加速度に基づいて歩数をカウントするためのカウンタとして、カウント値が歩数として表示される正規カウンタと、予備カウンタの2つを設ける。そして、ユーザが静止状態から脱した直後の所定時間長の予備カウント期間は、予備カウンタにより歩行のカウントを行う。そして、静止状態に戻ることなく予備カウント期間が終了したときに、予備カウンタのカウント値を正規カウンタのカウント値に加えて正規カウント期間に移行する。そして、正規カウント期間では正規カウンタのカウントを行うのである。   In general, in a step count measuring apparatus, acceleration generated by the body movement of a user carrying the step count measuring apparatus is detected by an acceleration sensor, and the number of steps is counted based on the detected acceleration. However, even when the user is not walking, acceleration occurs due to body movements other than walking. For this reason, if no measures are taken, the number of steps is erroneously counted based on the acceleration generated regardless of the walking, and the number of steps based on the erroneous counting is added to the total number of steps. Therefore, the conventional step counting device counts the number of steps as follows. First, as a counter for counting the number of steps based on the acceleration, a normal counter in which the count value is displayed as the number of steps and a spare counter are provided. Then, during the preliminary counting period of a predetermined time length immediately after the user leaves the stationary state, the walking is counted by the preliminary counter. When the preliminary count period ends without returning to the stationary state, the count value of the preliminary counter is added to the count value of the normal counter and the normal count period is started. In the normal count period, the normal counter is counted.

図10は、従来の歩数計測装置のCPUが実行するプログラムの処理内容を示すフローチャートである。まず、歩数計測装置のCPUは、同歩数計測装置に設けられた加速度センサから加速度を取得し、この加速度の大きさを示す合成加速度データを算出する(ステップSD110)。   FIG. 10 is a flowchart showing the processing contents of the program executed by the CPU of the conventional step counting device. First, the CPU of the step count measuring apparatus acquires acceleration from an acceleration sensor provided in the step count measuring apparatus, and calculates combined acceleration data indicating the magnitude of the acceleration (step SD110).

このステップSD110が終了すると、CPUは、ステップSD110において算出された合成加速度データに基づき静止判定(ステップSD120)を実行する。この静止判定(ステップSD120)では、合成加速度データが連続して閾値未満である状態が所定時間(例えば1秒)を越えたか否かを判定する。この判定結果が「YES」である場合、ユーザおよび歩数計測装置は静止状態になったとみなし、予備カウント値をクリアして(ステップSD130)、ステップSD110に戻る。   When step SD110 ends, the CPU executes stillness determination (step SD120) based on the combined acceleration data calculated in step SD110. In this stillness determination (step SD120), it is determined whether or not the state in which the combined acceleration data is continuously less than the threshold exceeds a predetermined time (for example, 1 second). When the determination result is “YES”, the user and the step counting device are regarded as being in a stationary state, the preliminary count value is cleared (step SD130), and the process returns to step SD110.

ステップSD120の判定結果が「NO」である場合は、歩数計カウント処理(ステップSD140)に進む。この歩数計カウント処理(ステップSD140)では、現在までに取得された一連の合成加速度データに1歩の歩行の現われとみなしてよい十分な大きさのピークが発生したか否かを解析する。次にステップSD150では、歩数計カウント処理(ステップSD140)での解析結果に基づき、1歩の歩行があったか否か、すなわち、歩数のカウントの必要性があるか否かを判定する。この判定結果が「NO」である場合はステップSD110に戻る。   If the determination result in step SD120 is “NO”, the flow proceeds to a pedometer count process (step SD140). In this pedometer counting process (step SD140), it is analyzed whether or not a peak having a sufficiently large size that can be regarded as an appearance of one-step walking has occurred in a series of synthetic acceleration data acquired up to now. Next, in step SD150, based on the analysis result in the pedometer counting process (step SD140), it is determined whether or not one step has been taken, that is, whether or not there is a need to count the number of steps. If this determination is “NO”, the flow returns to step SD110.

ステップSD150の判定結果が「YES」である場合は、現在時刻が予備カウント期間内に属するか否かを判定する(SD160)。ここで、予備カウント期間は、静止判定(ステップSD120)の判定結果が「YES」から「NO」に転じた後の所定時間長の期間である。   If the determination result in step SD150 is “YES”, it is determined whether or not the current time belongs within the preliminary count period (SD160). Here, the preliminary count period is a period of a predetermined time length after the determination result of the still determination (step SD120) changes from “YES” to “NO”.

そして、現在時刻が予備カウント期間内にあり、ステップSD160の判断結果が「YES」である場合には、予備カウント値を1だけアップカウントし(ステップSD170)、ステップSD110に戻る。   If the current time is within the preliminary count period and the determination result in step SD160 is “YES”, the preliminary count value is incremented by 1 (step SD170), and the process returns to step SD110.

これに対し、ステップSD160の判断結果が「NO」である場合は、現時点における予備カウント値を正規カウント値に加算し、予備カウント値をクリアする(ステップSD180)。次に正規カウント値を1だけアップカウントする(ステップSD190)。   On the other hand, if the determination result in step SD160 is “NO”, the current preliminary count value is added to the normal count value, and the preliminary count value is cleared (step SD180). Next, the normal count value is incremented by 1 (step SD190).

次に歩数計測の終了が指示されたか否かを判断し、この判断結果が「YES」である場合は処理を終了し、「NO」である場合はステップSD110に戻り、以上説明した処理を繰り返す。   Next, it is determined whether or not the end of step count measurement has been instructed. If the determination result is “YES”, the process ends. If it is “NO”, the process returns to step SD110 to repeat the above-described process. .

この歩数計測装置によれば、予備カウント期間内に静止判定(ステップSD120)の判定結果が「YES」になると、予備カウント値がクリアされるため(ステップSD130)、それ以前の歩行以外の体動により発生した予備カウント値が正規カウント値に加わることはない。従って、歩行以外の体動によって歩数の誤カウントが行われた場合に、その誤カウントによるカウント値が最終的な歩数のカウント値に加わるのを防止することができる。   According to this step count measuring device, if the determination result of the stillness determination (step SD120) becomes “YES” within the preliminary count period, the preliminary count value is cleared (step SD130). The preliminary count value generated by the above will not be added to the normal count value. Therefore, when an erroneous count of the number of steps is performed due to body movement other than walking, it is possible to prevent the count value due to the erroneous count from being added to the final count value of the number of steps.

特開2009−123034号公報JP 2009-123034 A

しかし、上述した従来の歩数計測装置では、ユーザが極端にゆっくりな歩行や摺り足気味の歩行を行った場合に、予備カウント期間中に加速度の変位が少ないために、予備カウント状態から静止状態に遷移し易くなる。そして、予備カウント状態から静止状態に遷移すると、予備カウント値がクリアされる。このため、ユーザが極端にゆっくりな歩行や摺り足気味の歩行を繰り返すと、その都度、歩行により発生する予備カウント値が正規カウント値に加えられることなく捨て去られ、歩数の誤差が大きくなるという問題が生じていた。この問題を解決するために、静止判定の条件を厳しくすることも考えられる。しかし、静止判定の条件を厳しくすると、ユーザが歩行以外の動作をしたとき、この歩行以外の動作により予備カウント値の計数が行われ易くなり、この予備カウント値が正規カウント値に誤って加算された時の歩数の誤差が大きくなるという問題が生じる。   However, in the above-described conventional step counting device, when the user performs an extremely slow walking or a sneaky walking, since the acceleration displacement is small during the preliminary counting period, the preliminary counting state is changed to the stationary state. Easier to transition. When the preliminary count state is changed to the stationary state, the preliminary count value is cleared. For this reason, every time the user repeats an extremely slow walk or a sneaky walk, the preliminary count value generated by walking is discarded without being added to the regular count value, and the error in the number of steps increases. There was a problem. In order to solve this problem, it may be possible to tighten the conditions for stillness determination. However, if the conditions for determining the stillness are strict, when the user performs an operation other than walking, the preliminary count value is easily counted by the operation other than walking, and the preliminary count value is erroneously added to the normal count value. There is a problem that the error of the number of steps at the time becomes large.

ここで、実際の歩数と歩数計測装置がカウントした歩数の誤差を少なくする技術として特許文献1に開示されたものがある。特許文献1に開示された体動検出装置は、上記正規カウンタに相当する表示計数部と上記予備カウンタに相当する内部計数部を有する。また、この体動検出装置では、加速度センサの出力信号に1歩の歩行の現われとみなしてよい変化が生じる都度、体動検出フラグがONになる。そして、体動検出装置では、体動検出フラグがONになる都度、次の処理が行われる。   Here, as a technique for reducing an error between the actual step count and the step count counted by the step count measuring apparatus, there is one disclosed in Patent Document 1. The body movement detection device disclosed in Patent Document 1 includes a display counting unit corresponding to the regular counter and an internal counting unit corresponding to the spare counter. Further, in this body motion detection device, the body motion detection flag is turned ON every time a change that can be regarded as an appearance of one step occurs in the output signal of the acceleration sensor. In the body motion detection device, the following processing is performed every time the body motion detection flag is turned on.

(1)体動検出フラグが前回ONになってから今回ONになるまでの時間間隔が第1期間(例えば1秒)以内である場合は表示計数部により歩数のカウントを行う。
(2)体動検出フラグが前回ONになってから今回ONになるまでの時間間隔が第1期間(例えば1秒)よりも長い場合は内部計数部により歩数のカウントを行う。
(3)体動検出フラグが前回ONになってから今回ONになるまでの時間間隔が第1期間よりも長い第2期間(例えば1.5秒)よりも長い場合は内部計数部のカウント値をクリアする。
(4)体動検出フラグが前回ONになってから今回ONになるまでの時間間隔が第1期間よりも長い場合に判定期間(例えば6秒)の計時を開始させる。
(5)上記判定期間の計時が終了した場合に、内部計数部のカウント値を用いて表示計数部のカウント値を更新する。
(1) When the time interval from when the body motion detection flag is turned on last time to when it is turned on this time is within a first period (for example, 1 second), the display counting unit counts the number of steps.
(2) When the time interval from when the body motion detection flag is turned on last time to when it is turned on this time is longer than the first period (for example, 1 second), the number of steps is counted by the internal counting unit.
(3) When the time interval from when the body motion detection flag is turned on last time to when it is turned on this time is longer than a second period (for example, 1.5 seconds) longer than the first period, the count value of the internal counting unit To clear.
(4) When the time interval from when the body motion detection flag is turned on last time to when it is turned on this time is longer than the first period, the measurement of the determination period (for example, 6 seconds) is started.
(5) When the counting of the determination period ends, the count value of the display counting unit is updated using the count value of the internal counting unit.

この特許文献1に開示された技術によれば、第1期間よりも長く第2期間よりも短い時間間隔で体動検出フラグがONになった場合、この体動検出フラグのONになる回数が内部計数部によりカウントされ、判定期間が終了したときにこの内部計数部のカウント値が表示計数部のカウント値に反映される。従って、実際の歩数と体動検出装置がカウントした歩数の誤差を少なくすることができる。   According to the technique disclosed in Patent Document 1, when the body motion detection flag is turned on at a time interval longer than the first period and shorter than the second period, the number of times the body motion detection flag is turned on is determined. It is counted by the internal counter, and when the determination period ends, the count value of the internal counter is reflected in the count value of the display counter. Therefore, the error between the actual number of steps and the number of steps counted by the body motion detection device can be reduced.

しかしながら、特許文献1に開示された技術では、体動検出フラグがONとなり、前回の体動検出フラグのONタイミングから今回のONタイミングまでの時間間隔が第1期間を越える都度、その時点を始期として判定期間が開始される。従って、例えばユーザがゆっくりな歩行や摺り足気味の歩行を長時間続け、体動検出フラグがONとなる時間間隔が第1期間と第2期間の間の長さを長時間に亙って維持する場合に、内部計数部のカウント値が長期に亙って表示計数部のカウント値に反映されないという問題が発生する。   However, in the technique disclosed in Patent Document 1, the body motion detection flag is turned ON, and whenever the time interval from the previous body motion detection flag ON timing to the current ON timing exceeds the first period, that time is started. The determination period is started. Therefore, for example, the user continues to walk slowly or sneakyly for a long time, and the time interval when the body motion detection flag is turned on maintains the length between the first period and the second period for a long time. In this case, there arises a problem that the count value of the internal counting unit is not reflected in the count value of the display counting unit for a long time.

この発明は以上のような事情に鑑みてなされたものであり、ゆっくりな歩行や摺り足気味の歩行であっても、実際の歩数と歩数計測装置がカウントした歩数の誤差を少なくすることができ、かつ、正確な歩数をリアルタイムに表示することができる歩数計測装置を提供することを目的としている。   The present invention has been made in view of the circumstances as described above, and can reduce the error between the actual number of steps and the number of steps counted by the number of steps counting device even in a slow walking or a sneaky walking. And it aims at providing the step count measuring apparatus which can display the exact step count in real time.

この発明は、加速度を検出する加速度検出手段と、前記加速度検出手段により検出される加速度に基づいて歩数のカウントを行う制御手段であって、前記加速度検出手段により検出される加速度に基づいて歩数計測装置が静止状態にあるか否かを判定する静止判定手段と、前記加速度検出手段により検出される加速度に所定の基準を満たす変化が生じるのに応じて歩行検出信号を発生する歩行検出手段とを有するとともに、予備カウンタと、カウント値が歩数表示に利用される正規カウンタとを有し、前記歩数計測装置が静止状態でなく、かつ、静止状態を脱してから所定時間長の予備カウント期間が経過する前の期間における前記歩行検出信号の発生回数のカウントを前記予備カウンタにより行い、前記歩数計測装置が静止状態でなく、かつ、静止状態を脱してから前記予備カウント期間が経過した後の期間における前記歩行検出信号の発生回数のカウントを前記正規カウンタにより行い、前記予備カウント期間に前記歩行検出信号が連続して発生しない時間が所定時間長の連続性判定期間を越えた場合に前記予備カウンタのカウント値をクリアし、前記歩行検出信号の発生態様に基づいて歩行の行われている可能性を検知した場合に、前記予備カウンタのカウント値を前記正規カウンタのカウント値に加える制御手段とを具備することを特徴とする歩数計測装置を提供する。   The present invention relates to an acceleration detection means for detecting acceleration and a control means for counting the number of steps based on the acceleration detected by the acceleration detection means, and measuring the number of steps based on the acceleration detected by the acceleration detection means. Stillness determination means for determining whether or not the apparatus is in a stationary state, and walking detection means for generating a walking detection signal in response to a change that satisfies a predetermined criterion in the acceleration detected by the acceleration detection means. And having a preliminary counter and a regular counter whose count value is used for displaying the number of steps, and the step counting device is not in a stationary state, and a preliminary counting period of a predetermined length of time elapses after the stationary state is released. The preliminary counter is used to count the number of occurrences of the walking detection signal in the period before the step count is not stationary. , A time during which the walking detection signal is continuously generated during the preliminary counting period by counting the number of occurrences of the walking detection signal in the period after the preliminary counting period elapses after leaving the stationary state. Is cleared when the continuity determination period of a predetermined time length is exceeded, and when the possibility of walking is detected based on the generation state of the walking detection signal, There is provided a step counting device comprising control means for adding the count value of the counter to the count value of the regular counter.

この発明によれば、静止状態と静止状態でない状態を交互に繰り返しつつ連続性判定期間よりも短い時間間隔で歩行が行われた場合、歩行検出信号の発生回数が予備カウンタによりカウントされる。また、歩行検出信号の発生態様に基づいて歩行の可能性が検知された場合に、予備カウンタのカウント値が正規カウンタのカウント値に加えられ、予備カウンタのカウント値がクリアされる。このため、ゆっくりな歩行や摺り足気味の歩行が行われた場合に連続性判定期間よりも短い間隔の歩行であればその歩数を予備カウンタによりカウントすることができ、かつ、この予備カウンタのカウント値を遅滞なく正規カウンタのカウント値に反映させることができる。   According to the present invention, when walking is performed at a time interval shorter than the continuity determination period while alternately repeating a stationary state and a non-stationary state, the number of occurrences of the walking detection signal is counted by the preliminary counter. In addition, when the possibility of walking is detected based on the generation mode of the walking detection signal, the count value of the spare counter is added to the count value of the normal counter, and the count value of the spare counter is cleared. For this reason, if the walking is slow or sneaky, if the walking is shorter than the continuity determination period, the number of steps can be counted by the spare counter, and the count of the spare counter The value can be reflected in the count value of the regular counter without delay.

この発明の第1実施形態である歩数計測装置1のシステム構成を示すブロック図である。It is a block diagram which shows the system configuration | structure of the step count measuring apparatus 1 which is 1st Embodiment of this invention. 同歩数計測装置1の制御部12が実行するプログラムの構成を示すブロック図である。It is a block diagram which shows the structure of the program which the control part 12 of the step count measuring device 1 performs. 同プログラムの処理内容を示すフローチャートである。It is a flowchart which shows the processing content of the program. 同歩数計測装置1の内部状態の遷移を示す状態遷移図である。It is a state transition diagram which shows the transition of the internal state of the step count measuring device 1. 同歩数計測装置1の第1の動作例を示すタイムチャートである。3 is a time chart showing a first operation example of the step count measuring apparatus 1. 同歩数計測装置1の第2の動作例を示すタイムチャートである。6 is a time chart showing a second operation example of the step count measuring apparatus 1. 同歩数計測装置1の第3の動作例を示すタイムチャートである。10 is a time chart showing a third operation example of the step count measuring apparatus 1. この発明の第2実施形態である歩数計測装置の制御部が実行するプログラムの処理内容を示すフローチャートである。It is a flowchart which shows the processing content of the program which the control part of the step counting device which is 2nd Embodiment of this invention performs. この発明の第3実施形態である歩数計測装置の制御部が実行するプログラムの処理内容を示すフローチャートである。It is a flowchart which shows the processing content of the program which the control part of the step counting device which is 3rd Embodiment of this invention performs. 従来の歩数計測装置における歩数のカウントを行う処理を説明するフローチャートである。It is a flowchart explaining the process which counts the step count in the conventional step count measuring apparatus.

以下、図面を参照し、この発明の実施形態について説明する。   Embodiments of the present invention will be described below with reference to the drawings.

<第1実施形態>
図1は、この発明の第1実施形態である歩数計測装置1のシステム構成を示すブロック図である。この歩数計測装置1は、例えば加速度センサを備えた携帯電話機により実現されるものである。図1に示すように、歩数計測装置1は、加速度センサ11と、制御部12と、記憶部13と、表示部14とを有する。
<First Embodiment>
FIG. 1 is a block diagram showing a system configuration of a step count measuring apparatus 1 according to the first embodiment of the present invention. The step count measuring device 1 is realized by, for example, a mobile phone provided with an acceleration sensor. As shown in FIG. 1, the step count measuring apparatus 1 includes an acceleration sensor 11, a control unit 12, a storage unit 13, and a display unit 14.

加速度センサ11は、例えば3軸方向の加速度を検出することができる3軸加速度センサである。この加速度センサ11は、歩数計測装置1を身に付けたユーザが歩行を行う際の体動により発生する3軸方向の加速度成分を各々検出し、検出した各加速度成分を示す加速度データを出力する。この加速度センサ11が出力する加速度データは、I2C(INTER−INTEGRATED CIRCUIT)などのインターフェースを介して制御部12へ送られる。制御部12は、例えばCPUであり、記憶部13のROMに格納されているプログラムを実行することにより、加速度センサ11から出力される加速度データに基づいて歩数の計数を行う処理を実行する。表示部14は、歩数計測装置1により計数された歩数を表示するための手段であり、例えばLCD(LIQUID CRYSTAL DISPLAY;液晶表示器)などにより構成されている。   The acceleration sensor 11 is, for example, a triaxial acceleration sensor that can detect triaxial acceleration. The acceleration sensor 11 detects acceleration components in three axial directions generated by body movements when a user wearing the step counting device 1 walks, and outputs acceleration data indicating each detected acceleration component. . The acceleration data output from the acceleration sensor 11 is sent to the control unit 12 via an interface such as I2C (INTER-INTEGRATED CIRCUIT). The control unit 12 is a CPU, for example, and executes a process of counting the number of steps based on the acceleration data output from the acceleration sensor 11 by executing a program stored in the ROM of the storage unit 13. The display unit 14 is a means for displaying the number of steps counted by the step counting device 1, and is configured by, for example, an LCD (LIQUID CRYSTAL DISPLAY; liquid crystal display).

図2は、制御部12が実行する歩数の計数処理のためのプログラムの構成を示すブロック図である。図2に示すように、歩数の計数処理のためのプログラムは、センサコントローラ部21、合成加速度データ生成部22、状態遷移制御部23、歩数計アルゴリズム処理部24およびカウント処理部25の各モジュールにより構成されている。   FIG. 2 is a block diagram illustrating a configuration of a program for counting the number of steps executed by the control unit 12. As shown in FIG. 2, a program for counting the number of steps is executed by each module of the sensor controller unit 21, the synthesized acceleration data generation unit 22, the state transition control unit 23, the pedometer algorithm processing unit 24, and the count processing unit 25. It is configured.

センサコントローラ部21は、加速度センサ11を動作させるドライバであり、加速度センサ11に所定のサンプリング周期で周期的に加速度を測定させ、加速度センサ11から加速度データを逐次取得する。   The sensor controller unit 21 is a driver that operates the acceleration sensor 11, causes the acceleration sensor 11 to periodically measure acceleration at a predetermined sampling period, and sequentially acquires acceleration data from the acceleration sensor 11.

合成加速度データ生成部22は、加速度センサ11から取得した加速度データが示す3軸方向の加速度を合成し、合成加速度の大きさを示す合成加速度データを生成するモジュールである。   The combined acceleration data generation unit 22 is a module that combines the accelerations in the three-axis directions indicated by the acceleration data acquired from the acceleration sensor 11 and generates combined acceleration data indicating the magnitude of the combined acceleration.

歩数計アルゴリズム処理部24は、合成加速度データ生成部22により生成された過去所定個数の合成加速度データを解析し、合成加速度データに所定の基準を満たす変化が生じた場合、具体的には一連の合成加速度データに1歩の歩行の現われとみなしてよい十分な大きさのピークが発生した場合に歩行検出信号を発生するモジュールである。   The pedometer algorithm processing unit 24 analyzes the past predetermined number of combined acceleration data generated by the combined acceleration data generating unit 22, and when a change that satisfies a predetermined standard occurs in the combined acceleration data, specifically, a series of This is a module that generates a walking detection signal when a sufficiently large peak that can be regarded as the appearance of one step of walking occurs in the combined acceleration data.

カウント処理部25は、予備カウンタ31および正規カウンタ32を有する。正規カウンタ32は、歩数を計数するためのカウンタである。この正規カウンタのカウント値が歩数として表示部14に表示される。予備カウンタ31は、歩行の可能性が検知されていない段階での歩数をカウントするためのカウンタである。   The count processing unit 25 has a spare counter 31 and a regular counter 32. The regular counter 32 is a counter for counting the number of steps. The count value of the regular counter is displayed on the display unit 14 as the number of steps. The preliminary counter 31 is a counter for counting the number of steps at a stage where the possibility of walking is not detected.

状態遷移制御部23は、歩数計測装置1の内部状態の遷移を制御するモジュールである。本実施形態における状態遷移制御部23は、歩数計測装置1が静止状態にあるか否かを判断する機能を備えている。そして、状態遷移制御部23は、歩数計測装置1が静止状態でなく、かつ、静止状態を脱してから所定時間長の予備カウント期間が経過する前の期間における歩行検出信号のカウントを予備カウンタ31により行わせ、歩数計測装置1が静止状態でなく、かつ、静止状態を脱してから予備カウント期間が経過した後の期間における歩行検出信号のカウントを正規カウンタ32により行わせる。また、状態遷移制御部23は、歩行検出信号の連続して発生しない時間が所定時間長の連続性判定期間を越えた場合に予備カウンタ31のカウント値をクリアさせる。また、状態遷移制御部23は、歩行検出信号の発生状況が歩行の可能性を肯定していることを検知した場合に、予備カウンタ31のカウント値を正規カウンタ32のカウント値に加えさせ、予備カウンタ31のカウント値をクリアさせる。具体的には、状態遷移制御部23は、歩行検出信号が途絶えることなく連続して発生し、予備カウンタ31のカウント値がクリアされることなく所定値に到達したときに、歩行の可能性が肯定されたとみなす。   The state transition control unit 23 is a module that controls the transition of the internal state of the step count measuring apparatus 1. The state transition control unit 23 in the present embodiment has a function of determining whether or not the step counting device 1 is in a stationary state. Then, the state transition control unit 23 counts the walking detection signal in the period before the preliminary count period of a predetermined time length elapses after the step counting device 1 is not in the stationary state and has left the stationary state. The normal counter 32 counts the walking detection signal in a period after the preliminary count period elapses after the step counting device 1 is not in a stationary state and has left the stationary state. Further, the state transition control unit 23 clears the count value of the standby counter 31 when the time during which the walking detection signal does not continuously occur exceeds the continuity determination period having a predetermined time length. Further, when the state transition control unit 23 detects that the occurrence of the walking detection signal affirms the possibility of walking, the state transition control unit 23 adds the count value of the standby counter 31 to the count value of the normal counter 32, The count value of the counter 31 is cleared. Specifically, the state transition control unit 23 generates the possibility of walking when the walking detection signal is continuously generated without interruption and the count value of the standby counter 31 reaches a predetermined value without being cleared. Considered affirmed.

図3は本実施形態における歩数計測装置1の制御部12が実行するプログラムの処理内容を示すフローチャートである。図4は本実施形態における歩数計測装置1の内部状態の遷移を示す状態遷移図である。以下、これらの図を参照し、本実施形態の動作を説明する。   FIG. 3 is a flowchart showing the processing contents of the program executed by the control unit 12 of the step count measuring apparatus 1 in the present embodiment. FIG. 4 is a state transition diagram showing the transition of the internal state of the step count measuring apparatus 1 in the present embodiment. The operation of this embodiment will be described below with reference to these drawings.

まず、制御部12では、センサコントローラ部21が加速度センサ11から加速度データを取得し、合成加速度データ生成部22がこの加速度データが示す加速度の大きさを示す合成加速度データを算出する(ステップSA110)。図3に示すように、このプログラムでは、ステップSA140、SA160、SA190、SA200およびSA230からステップ110へ処理が戻り、ステップSA110が繰り返されるようになっている。そして、このプログラムでは、常に一定の周期(例えば5MS)でステップSA110が繰り返されるようにプログラム中の各所に待機命令が配置されているが、図面が煩雑になるのを防ぐため、その図示は省略されている。   First, in the control unit 12, the sensor controller unit 21 acquires acceleration data from the acceleration sensor 11, and the combined acceleration data generation unit 22 calculates combined acceleration data indicating the magnitude of acceleration indicated by the acceleration data (step SA110). . As shown in FIG. 3, in this program, the process returns from step SA140, SA160, SA190, SA200 and SA230 to step 110, and step SA110 is repeated. In this program, standby instructions are arranged at various points in the program so that step SA110 is always repeated at a constant cycle (for example, 5 MS), but the illustration is omitted in order to prevent the drawing from becoming complicated. Has been.

ステップSA110が終了すると、状態遷移制御部23は、連続カウント無効判定(ステップSA120)を実行する。この連続カウント無効判定(ステップSA120)では、歩行検出信号が発生しない期間である連続カウント無効期間が所定時間長の連続性判定期間(例えば5秒)以上継続したか否かを判定する。この歩行検出信号は、後述する歩数計カウント処理SA150において出力されるようになっている。   When step SA110 ends, the state transition control unit 23 executes continuous count invalidation determination (step SA120). In this continuous count invalidation determination (step SA120), it is determined whether or not the continuous count invalidation period, which is a period during which no walking detection signal is generated, has continued for a continuity determination period (for example, 5 seconds) having a predetermined time length. This walking detection signal is outputted in a pedometer counting process SA150 described later.

連続カウント無効期間が連続性判定期間に到達しておらず、ステップSA120の判定結果が「NO」である場合、状態遷移制御部23は、処理を静止判定(ステップSA140)へ進める。   If the continuous count invalid period has not reached the continuity determination period and the determination result in step SA120 is “NO”, the state transition control unit 23 advances the process to a still determination (step SA140).

一方、連続カウント無効判定(ステップSA120)の判定結果が「YES」である場合、状態遷移制御部23は、現状の内部状態を維持して、カウント処理部25に予備カウンタ31に保持された予備カウント値をクリアさせ(ステップSA130)、処理を静止判定(ステップSA140)へ進める(図4の連続性無効判定ST160、ST161)。図4に示すように、この連続性無効判定は、予備カウント状態Q120および静止状態Q110のいずれにおいても行われる可能性がある。   On the other hand, when the determination result of the continuous count invalidation determination (step SA120) is “YES”, the state transition control unit 23 maintains the current internal state, and the spare stored in the spare counter 31 in the count processing unit 25. The count value is cleared (step SA130), and the process proceeds to stillness determination (step SA140) (continuity invalidity determination ST160 and ST161 in FIG. 4). As shown in FIG. 4, this continuity invalidity determination may be performed in both the preliminary count state Q120 and the stationary state Q110.

次に静止判定(ステップSA140)において、状態遷移制御部23は、合成加速度データが所定時間(例えば1秒)以上に亙って閾値未満であったか否かを判定する。この判定結果が「YES」である場合、状態遷移制御部23は、歩数計測装置1が静止状態になったとみなし、内部状態を静止状態Q110に遷移させ(図4における静止判定ST120またはST150)、ステップSA110へ戻る。   Next, in stillness determination (step SA140), the state transition control unit 23 determines whether or not the combined acceleration data is less than the threshold value over a predetermined time (for example, 1 second). When this determination result is “YES”, the state transition control unit 23 considers that the step count measuring apparatus 1 is in a stationary state, transitions the internal state to the stationary state Q110 (stationary determination ST120 or ST150 in FIG. 4), and The process returns to step SA110.

一方、静止判定(ステップSA140)の判定結果が「NO」である場合、すなわち、取得した合成加速度データが閾値以上であるかもしくは合成加速度データが閾値未満になってから所定時間が経過していない場合、状態遷移制御部23は、処理を歩数計カウント処理(ステップSA150)へ進める。ここで、歩数計測装置1が静止状態から脱し、静止判定(ステップSA140)の判定結果が「YES」から「NO」へ転じた場合には、状態遷移制御部23は、内部状態を静止状態Q110から予備カウント状態Q120に遷移させる(図4における歩き出し判定ST110)。   On the other hand, when the determination result of the still determination (step SA140) is “NO”, that is, the predetermined time has not elapsed since the acquired synthetic acceleration data is equal to or greater than the threshold value or the synthetic acceleration data is less than the threshold value. In this case, the state transition control unit 23 advances the process to a pedometer count process (step SA150). Here, when the step count measuring apparatus 1 has left the stationary state and the determination result of the stationary determination (step SA140) has changed from “YES” to “NO”, the state transition control unit 23 changes the internal state to the stationary state Q110. To the preliminary count state Q120 (step start determination ST110 in FIG. 4).

次に歩数計カウント処理(ステップSA150)において状態遷移制御部23は、歩数計アルゴリズム処理部24に現在までに取得された一連の合成加速度データを解析させる。この解析において、直近の合成加速度データに1歩の歩行の現われとみなしてよい十分な大きさのピークが発生していることが判明した場合、歩数計アルゴリズム処理部24は歩行検出信号を出力する。   Next, in the pedometer counting process (step SA150), the state transition control unit 23 causes the pedometer algorithm processing unit 24 to analyze a series of synthetic acceleration data acquired so far. In this analysis, when it is determined that a peak having a sufficiently large size that can be regarded as an appearance of one step of walking has occurred in the latest synthesized acceleration data, the pedometer algorithm processing unit 24 outputs a walking detection signal. .

次にカウント要否判定(ステップSA160)において状態遷移制御部23は、歩数計アルゴリズム処理部24が歩行検出信号を出力したか否か、すなわち、歩数のカウントの必要性があるか否かを判定する。ここで、歩数計測装置1を携帯したユーザが歩行しておらず、歩数計カウント処理SA150において歩行検出信号が出力されない期間はカウント要否判定(ステップSA160)は「NO」となる。従って、このユーザが歩行していない間は、ステップSA110→ステップSA120→ステップSA140→ステップSA110という第1のループ、ステップSA110→ステップSA120→ステップSA130→ステップSA140→ステップSA110という第2のループ、ステップSA110→ステップSA120→ステップSA140→ステップSA150→ステップSA160→ステップSA110という第3のループまたはステップSA110→ステップSA120→ステップSA130→ステップSA140→ステップSA150→ステップSA160→ステップSA110という第4のループの処理が繰り返される。   Next, in the determination of necessity of counting (step SA160), the state transition control unit 23 determines whether or not the pedometer algorithm processing unit 24 has output a walking detection signal, that is, whether or not there is a need to count the number of steps. To do. Here, during the period when the user carrying the pedometer 1 is not walking and the walking detection signal is not output in the pedometer counting process SA150, the determination of necessity of counting (step SA160) is “NO”. Therefore, while this user is not walking, the first loop of step SA110 → step SA120 → step SA140 → step SA110, the second loop of step SA110 → step SA120 → step SA130 → step SA140 → step SA110, step The third loop process of SA110 → step SA120 → step SA140 → step SA150 → step SA160 → step SA110 or the fourth loop of step SA110 → step SA120 → step SA130 → step SA140 → step SA150 → step SA160 → step SA110 is performed. Repeated.

一方、歩数計測装置1を携帯したユーザが歩いており、歩数計アルゴリズム処理部24において歩行検出信号が出力されると、カウント有効判定(ステップSA160)の判定結果が「YES」となる。この場合、状態遷移制御部23は、処理を予備カウント期間判定(ステップSA170)へ進める。   On the other hand, when the user carrying the pedometer 1 is walking and the pedometer algorithm processing unit 24 outputs a walking detection signal, the determination result of the count validity determination (step SA160) is “YES”. In this case, the state transition control unit 23 advances the process to preliminary count period determination (step SA170).

この予備カウント期間判定(ステップSA170)において状態遷移制御部23は、現在の内部状態が予備カウント状態Q120であり、かつ、静止状態を脱してからの経過時間(最後にステップSA140の判定結果が「NO」になってからの経過時間)が所定時間長の予備カウント期間(例えば5秒)以内であるか否かを判定する。   In this preliminary count period determination (step SA170), the state transition control unit 23 determines that the current internal state is the preliminary count state Q120 and the elapsed time from the exit from the stationary state (finally the determination result in step SA140 is “ It is determined whether or not (elapsed time since becoming “NO”) is within a preliminary count period (for example, 5 seconds) of a predetermined time length.

この予備カウント期間判定(ステップSA170)の判定結果が「YES」である場合、状態遷移制御部23は、内部状態を予備カウント状態Q120に維持し、カウント処理部25に予備カウンタ31の予備カウント値を1だけアップカウントさせる(ステップSA180)。そして、処理を歩数判定(ステップSA190)へ進める。   When the determination result of the preliminary count period determination (step SA170) is “YES”, the state transition control unit 23 maintains the internal state in the preliminary count state Q120, and the count processing unit 25 stores the preliminary count value of the preliminary counter 31. Is incremented by 1 (step SA180). Then, the process proceeds to step count determination (step SA190).

次に歩数判定(ステップSA190)では、状態遷移制御部23は、カウント処理部25における予備カウンタ31の予備カウント値が所定歩数(例えば30歩)に達したか否かを判定する。ここで、予備カウント値が所定歩数に達しておらず、歩数判定(ステップSA190)の判定結果が「NO」である場合は、ステップSA110へ戻る。   Next, in step determination (step SA190), the state transition control unit 23 determines whether or not the preliminary count value of the preliminary counter 31 in the count processing unit 25 has reached a predetermined number of steps (for example, 30 steps). If the preliminary count value has not reached the predetermined number of steps and the determination result of the step count determination (step SA190) is “NO”, the process returns to step SA110.

これに対し、歩数判定(ステップSA190)の判定結果が「YES」である場合、ユーザが歩行している可能性があると考えられるので、状態遷移制御部23は、カウント処理部25に予備カウント値を正規カウント値に加算させ、その後、予備カウント値をクリアさせ(ステップSA200)、ステップSA110へ戻る(図4の歩数有効判定ST140)。   On the other hand, when the determination result of the step count determination (step SA190) is “YES”, it is considered that the user may be walking. Therefore, the state transition control unit 23 sends a preliminary count to the count processing unit 25. The value is added to the normal count value, and then the preliminary count value is cleared (step SA200), and the process returns to step SA110 (step number validity determination ST140 in FIG. 4).

予備カウント状態Q120において、静止状態から脱した後の経過時間が予備カウント期間を越え、その後、歩数計カウント処理SA150において歩行検出処理が出力され、カウント要否判定(ステップSA160)の判定結果が「YES」となると、その後の予備カウント期間判定(ステップSA170)の判定結果は「NO」となる。この場合、状態遷移制御部23は、内部状態を予備カウント状態Q120から正規カウント状態Q130に遷移させ(図4の予備カウント期間満了判定ST130)、カウント処理部25に正規カウント値を1だけアップカウントさせ(ステップSA220)、終了判定(ステップSA230)へ進む。また、正規カウント状態Q130では、予備カウント期間判定(ステップSA170)に進んだとき、その判定結果が「NO」になり、カウント処理部25に正規カウント値を1だけアップカウントさせ(ステップSA220)、終了判定(ステップSA230)へ進む。   In the preliminary count state Q120, the elapsed time after exiting the stationary state exceeds the preliminary count period, and then the pedometer count process SA150 outputs a walking detection process, and the determination result of the necessity determination of the count (step SA160) is “ If “YES”, the determination result of the subsequent preliminary count period determination (step SA170) is “NO”. In this case, the state transition control unit 23 changes the internal state from the preliminary count state Q120 to the normal count state Q130 (preliminary count period expiration determination ST130 in FIG. 4), and the count processing unit 25 counts up the normal count value by one. (Step SA220), and the process proceeds to end determination (step SA230). In the normal count state Q130, when the process proceeds to the preliminary count period determination (step SA170), the determination result is “NO”, and the count processing unit 25 is incremented by 1 (step SA220). The process proceeds to end determination (step SA230).

終了判定(ステップSA230)では、歩数計測の終了が指示されたか否かを判定し、この判定結果が「YES」である場合は処理を終了し、「NO」である場合はステップSA110へ戻る。そして、以上説明した処理を繰り返す。   In the end determination (step SA230), it is determined whether or not the end of the step count measurement is instructed. If the determination result is “YES”, the process ends. If the determination result is “NO”, the process returns to step SA110. Then, the processing described above is repeated.

図5〜図7は、本実施形態による歩数計測装置1の第1〜第3の動作例を示すタイムチャートである。図5〜図7のタイムチャートにおいて、横軸の時間上に示した丸印は歩行検出信号を示し、矢印は状態遷移を示している。そして、図5〜図7では、図4の状態遷移図との対応関係を明らかにするため、各図における状態遷移を図4に示されたものと同じ符号で表現している。   5 to 7 are time charts showing first to third operation examples of the step count measuring apparatus 1 according to the present embodiment. In the time charts of FIGS. 5 to 7, the circles shown on the time on the horizontal axis indicate walking detection signals, and the arrows indicate state transitions. 5 to 7, in order to clarify the correspondence with the state transition diagram of FIG. 4, the state transition in each diagram is expressed by the same reference numerals as those shown in FIG. 4.

図5に示す第1の動作例では、歩き出し判定ST110により静止状態Q110から予備カウント状態Q120に遷移した後、歩行検出信号が発生し、予備カウント値のインクリメントが行われている。しかし、この動作例では、予備カウント期間TAが満了する前に静止判定ST120が発生しているため、正規カウント状態Q130への遷移は行われていない。そして、この動作例では、歩行検出信号が出力された後、静止判定ST120、歩き出し判定ST110が交互に繰り返されているうちに歩行検出信号が出力されることなく連続性判定期間TBが満了し、連続性無効判定ST160が行われ、予備カウント値がクリアされている。すなわち、歩行検出信号に連続性がないため、この信号は歩行以外の動作に起因するものとして正規カウントはしない。   In the first operation example shown in FIG. 5, a walk detection signal is generated after the transition from the stationary state Q110 to the preliminary count state Q120 by the walking determination ST110, and the preliminary count value is incremented. However, in this operation example, since the stationary determination ST120 occurs before the preliminary count period TA expires, the transition to the normal count state Q130 is not performed. In this operation example, after the gait detection signal is output, the continuity determination period TB expires without the gait detection signal being output while the stillness determination ST120 and the walking start determination ST110 are alternately repeated. The continuity invalidity determination ST160 is performed, and the preliminary count value is cleared. That is, since there is no continuity in the walking detection signal, this signal is not normally counted as being caused by an action other than walking.

図6に示す第2の動作例では、歩き出し判定ST110により静止状態Q110から予備カウント状態Q120に遷移した後、歩行検出信号が発生し、予備カウント値のインクリメントが行われている。そして、この動作例では、予備カウント状態Q120への遷移後、静止判定ST120が発生することなく予備カウント期間TAが満了し、正規カウント状態Q130への遷移ST130が行われている。   In the second operation example shown in FIG. 6, the walking detection signal is generated after the transition from the stationary state Q110 to the preliminary count state Q120 by the start determination ST110, and the preliminary count value is incremented. In this operation example, after the transition to the preliminary count state Q120, the preliminary count period TA expires without the stationary determination ST120, and the transition ST130 to the normal count state Q130 is performed.

図7に示す第3の動作例では、歩き出し判定ST110と静止判定ST120が交互に発生し、予備カウント状態Q120が断続的に発生し、各予備カウント状態Q120において歩行検出信号が発生し、図3のステップSA160の判定結果が「YES」、ステップSA170の判定結果が「YES」となって予備カウント値のインクリメントが行われている(ステップSA180)。また、歩行検出信号が発生した後、連続性判定期間TBが経過するより前に(すなわち、図3においてステップSA120の判定結果が「YES」になることなく)次の歩行検出信号が発生しているため、各予備カウント値のクリア(ステップSA130)は行われない。そして、この動作例では、予備カウント値が所定歩数(30歩)に到達し、ステップSA190の判定結果が「YES」となり、予備カウント値が正規カウント値に加算され、その後、予備カウント値がクリアされている(ステップSA200)。   In the third operation example shown in FIG. 7, the walking start determination ST110 and the stillness determination ST120 are alternately generated, the preliminary count state Q120 is intermittently generated, and the walking detection signal is generated in each preliminary count state Q120. 3 is “YES”, and the determination result of step SA170 is “YES”, and the preliminary count value is incremented (step SA180). In addition, after the gait detection signal is generated, the next gait detection signal is generated before the continuity determination period TB elapses (that is, the determination result of step SA120 in FIG. 3 is “YES”). Therefore, the preliminary count value is not cleared (step SA130). In this operation example, the preliminary count value reaches the predetermined number of steps (30 steps), the determination result in step SA190 is “YES”, the preliminary count value is added to the normal count value, and then the preliminary count value is cleared. (Step SA200).

この第3の動作例において、仮に図中左から2番目の歩き出し判定ST110の直後の符号Qを付した歩行検出信号が発生しなかった場合には、その後、連続性判定期間TBが満了した時点で予備カウント値がクリアされることになる。   In this third operation example, if the walking detection signal with the sign Q immediately after the second step determination ST110 from the left in the figure does not occur, the continuity determination period TB has expired thereafter. At this point, the preliminary count value is cleared.

このように本実施形態では、連続性判定期間TB以上の時間を空けないで連続的に歩行検出信号が発生している場合に限り、予備カウント値のクリアは行われず、予備カウント値が所定歩数に達した時点で予備カウント値が正規カウント値に反映される。従って、本実施形態によれば、ゆっくりな歩行や摺り足気味の歩行のように1歩の間隔が長い歩行や加速度の変位が十分に大きくはない歩行であっても、実際の歩数と歩数計測装置がカウントした歩数の誤差を少なくすることができる。また、本実施形態によれば、予備カウント値が所定歩数に達した時点で予備カウント値が正規カウント値に反映されるので、正確な歩数をリアルタイムに表示することができる。   As described above, in the present embodiment, the preliminary count value is not cleared only when the walking detection signal is continuously generated without leaving the time longer than the continuity determination period TB, and the preliminary count value is equal to the predetermined number of steps. The preliminary count value is reflected in the normal count value when the value reaches the value. Therefore, according to the present embodiment, even when walking with a long interval between steps, such as a slow walking or a walking with a sliding foot, or a walking in which the displacement of acceleration is not sufficiently large, the actual number of steps and the number of steps are measured. The error in the number of steps counted by the device can be reduced. Further, according to the present embodiment, since the preliminary count value is reflected in the normal count value when the preliminary count value reaches the predetermined number of steps, the accurate number of steps can be displayed in real time.

<第2実施形態>
上記第1実施形態では、歩行検出信号が途絶えることなく連続して発生し、予備カウント値がクリアされることなく所定値に到達したときに、歩行の可能性が肯定されたとみなし、予備カウント値を正規カウント値に加え、予備カウント値をクリアした。これに対し、本実施形態では、歩行検出信号が周期的に発生していることを検知したときに、歩行の可能性が肯定されたとみなし、予備カウント値を正規カウント値に加え、予備カウント値をクリアする。
Second Embodiment
In the first embodiment, when the walking detection signal is continuously generated without interruption and the preliminary count value reaches a predetermined value without being cleared, it is considered that the possibility of walking is affirmed, and the preliminary count value Was added to the normal count value to clear the preliminary count value. On the other hand, in this embodiment, when it is detected that the walking detection signal is periodically generated, it is considered that the possibility of walking is affirmed, and the preliminary count value is added to the normal count value. To clear.

本実施形態におけるシステム構成およびモジュール構成は第1実施形態と同様であるため説明を省略する。図8は、本実施形態による歩数計測装置の制御部が実行するプログラムの処理内容を示すフローチャートである。このプログラムでは、前掲図3のプログラムのカウント要否判定(ステップSA160)と予備カウント期間判定(ステップSA170)の間に周期性判定(ステップSA165)および予備カウント値を正規カウント値に反映させる処理(ステップSA166)が設けられている。また、このプログラムでは、前掲図3のプログラムの歩数判定(ステップSA190)および予備カウント値を正規カウント値に反映させる処理(ステップSA200)が削除されており、予備カウント値のアップカウント(ステップSA180)の後、ステップSA110に戻るようになっている。   Since the system configuration and the module configuration in this embodiment are the same as those in the first embodiment, description thereof will be omitted. FIG. 8 is a flowchart showing the processing contents of a program executed by the control unit of the step count measuring apparatus according to the present embodiment. In this program, the periodicity determination (step SA165) and the process of reflecting the preliminary count value on the normal count value between the determination necessity determination (step SA160) and the preliminary count period determination (step SA170) of FIG. Step SA166) is provided. Also, in this program, the step count determination (step SA190) and the process of reflecting the preliminary count value in the regular count value (step SA200) of the program shown in FIG. 3 are deleted, and the preliminary count value is counted up (step SA180). After that, the process returns to step SA110.

本実施形態において、周期性判定(ステップSA165)では、前回、周期性判定(ステップSA165)に進んでから、今回、周期性判定(ステップSA165)に進むまでの時間間隔を測定し、測定結果である時間間隔を示す時間間隔データを蓄積している。そして、周期性判定(ステップSA165)では、現在までに記憶した過去所定個数の時間間隔データに基づいて、歩行検出信号の発生タイミングに周期性が認められるか否かを判定する。具体的には、過去所定個数の時間間隔データのばらつきが所定の閾値以内に収まっている場合に歩行検出信号の発生タイミングに周期性があると判定し、閾値以内に収まっていない場合に周期性がないと判定する。   In the present embodiment, in the periodicity determination (step SA165), the time interval from the previous progress to periodicity determination (step SA165) to the current periodicity determination (step SA165) is measured, and the measurement result is used. Time interval data indicating a certain time interval is accumulated. In the periodicity determination (step SA165), it is determined whether periodicity is recognized in the generation timing of the walking detection signal based on the past predetermined number of time interval data stored so far. Specifically, it is determined that the generation timing of the gait detection signal is periodic when the variation in the past predetermined number of time interval data is within a predetermined threshold, and the periodicity is determined when it is not within the threshold. Judge that there is no.

そして、歩行検出信号の発生タイミングに周期性がない場合(ステップSA165=「NO」)には予備カウント期間判定(ステップSA170)へと処理を進める。一方、歩行検出信号の発生タイミングに周期性がある場合(ステップSA165=「YES」)には、予備カウント値を正規カウント値に加えて、予備カウント値をクリアし(ステップSA166)、予備カウント期間判定(ステップSA170)へと処理を進める。   If the generation timing of the walking detection signal is not periodic (step SA165 = “NO”), the process proceeds to the preliminary count period determination (step SA170). On the other hand, when the generation timing of the walking detection signal is periodic (step SA165 = “YES”), the preliminary count value is cleared by adding the preliminary count value to the normal count value (step SA166), and the preliminary count period The process proceeds to determination (step SA170).

本実施形態において、ゆっくりな歩行や摺り足気味の歩行のように1歩の間隔が長い歩行が行われ、静止状態と予備カウント状態が交互に繰り返されている状況では、上記第1実施形態と同様、歩行検出信号が発生する都度、ステップSA180が実行され、予備カウント値のアップカウントが行われる。そして、歩行検出信号の発生タイミングに周期性のあることが検知され、ステップSA165の判定結果が「YES」になると、予備カウント値が正規カウント値に反映される。従って、本実施形態においても上記第1実施形態と同様な効果が得られる。   In the present embodiment, in a situation where a walk with a long interval of one step is performed, such as a slow walk or a sneaky walk, and the stationary state and the preliminary count state are alternately repeated, Similarly, every time a walking detection signal is generated, step SA180 is executed, and the preliminary count value is counted up. When it is detected that the gait detection signal is generated periodically, and the determination result in step SA165 is “YES”, the preliminary count value is reflected in the normal count value. Therefore, also in this embodiment, the same effect as the first embodiment is obtained.

<第3実施形態>
本実施形態では、上記第1実施形態のように、歩行検出信号が途絶えることなく連続して発生し、予備カウント値がクリアされることなく所定値に到達した場合、または上記第2実施形態のように、歩行検出信号が周期的に発生していることを検知した場合に、歩行の可能性が肯定されたとみなし、予備カウント値を正規カウント値に加え、予備カウント値をクリアする。
<Third Embodiment>
In the present embodiment, as in the first embodiment, when the walking detection signal is continuously generated without being interrupted and reaches the predetermined value without clearing the preliminary count value, or in the second embodiment. As described above, when it is detected that the walking detection signal is periodically generated, it is considered that the possibility of walking is affirmed, the preliminary count value is added to the normal count value, and the preliminary count value is cleared.

本実施形態におけるシステム構成およびモジュール構成は第1実施形態と同様であるため説明を省略する。図9は、本実施形態による歩数計測装置の制御部が実行するプログラムの処理内容を示すフローチャートである。このプログラムでは、前掲図3のプログラムの歩数判定(ステップSA190)が歩数・周期性判定(ステップSA195)に置き換えられている。   Since the system configuration and the module configuration in this embodiment are the same as those in the first embodiment, description thereof will be omitted. FIG. 9 is a flowchart showing the processing contents of a program executed by the control unit of the step count measuring apparatus according to the present embodiment. In this program, the step count determination (step SA190) of the program shown in FIG. 3 is replaced with the step count / periodicity determination (step SA195).

本実施形態における歩数・周期性判定(ステップSA195)では、上記第2実施形態の周期性判定(ステップSA165)と同様な時間間隔データを発生して記憶している。そして、歩数・周期性判定(ステップSA195)では、現在までに記憶した過去所定個数の時間間隔データに基づいて、歩行検出信号の発生タイミングに周期性が認められるか否かの第1の判定を行う。また、歩数・周期性判定(ステップSA195)では、予備カウント値が所定歩数(例えば30歩)に達したか否かの第2の判定を行う。そして、歩数・周期性判定(ステップSA195)の判定結果は、第1の判定または第2の判定の少なくとも一方の判定結果が「YES」であるときに「YES」となり、第1の判定および第2の判定の両方の判定結果が「NO」であるときに「NO」となる。そして、本実施形態では、歩数・周期性判定(ステップSA195)の判定結果が「YES」である場合に、予備カウント値を正規カウント値に加え、予備カウント値をクリアする(ステップSA200)。   In the step count / periodicity determination (step SA195) in the present embodiment, time interval data similar to the periodicity determination (step SA165) in the second embodiment is generated and stored. In the step count / periodicity determination (step SA195), a first determination is made as to whether or not periodicity is recognized in the generation timing of the walking detection signal based on the past predetermined number of time interval data stored up to now. Do. In the step count / periodicity determination (step SA195), a second determination is made as to whether or not the preliminary count value has reached a predetermined number of steps (for example, 30 steps). The determination result of the step count / periodicity determination (step SA195) is “YES” when the determination result of at least one of the first determination and the second determination is “YES”. When both the determination results of the determination of 2 are “NO”, it becomes “NO”. In this embodiment, when the determination result of the step count / periodicity determination (step SA195) is “YES”, the preliminary count value is added to the normal count value, and the preliminary count value is cleared (step SA200).

本実施形態によれば、上記第1実施形態および第2実施形態の両方を組み合わせ、歩行が行われている可能性の検知を行っているので、ゆっくりな歩行や摺り足気味の歩行のように1歩の間隔が長い歩行が行われているのをより迅速に検知し、歩数表示に反映させることができる。   According to the present embodiment, since both the first embodiment and the second embodiment are combined and the possibility of walking is detected, as in the case of slow walking or walking with a slippery foot. It is possible to more quickly detect that walking with a long interval of one step is being performed, and reflect this in the step count display.

<他の実施形態>
以上、この発明の第1〜第3実施形態について説明したが、この発明には他にも実施形態が考えられる。例えば次の通りである。
<Other embodiments>
Although the first to third embodiments of the present invention have been described above, other embodiments are conceivable for the present invention. For example:

(1)上記第1実施形態(図3)において、歩数判定(ステップSA190)の判定結果が「YES」となった場合、以後、連続カウント無効判定(ステップSA120)の判定結果が「YES」にならないことを条件に、歩数判定(ステップSA190)において予備カウント値との比較に用いる閾値を小さくしてもよい。例えば歩数判定(ステップSA190)において予備カウント値が30歩に到達したか否かを判定し、判定結果が「YES」となった場合、以後、連続カウント無効判定(ステップSA120)の判定結果が「YES」にならない限り、歩数判定(ステップSA190)では予備カウント値が例えば15歩に到達したか否かを判定する。そして、連続カウント無効判定(ステップSA120)の判定結果が「YES」になった後の歩数判定(ステップSA190)では予備カウント値が30歩に到達したか否かを判定するように戻すのである。歩数判定(ステップSA190)が「YES」になった場合、ユーザがゆっくり歩いていることが確認されたと言えるので、以後は、予備カウント値を迅速に正規カウント値に反映させても問題ないと考えられるからである。 (1) In the first embodiment (FIG. 3), when the determination result of the step count determination (step SA190) is “YES”, the determination result of the continuous count invalidity determination (step SA120) is “YES” thereafter. On the condition that this is not the case, the threshold used for comparison with the preliminary count value in the step count determination (step SA190) may be reduced. For example, in the step count determination (step SA190), it is determined whether or not the preliminary count value has reached 30 steps. When the determination result is “YES”, the determination result of the continuous count invalidation determination (step SA120) is “ Unless “YES”, the step count determination (step SA190) determines whether or not the preliminary count value has reached, for example, 15 steps. Then, in the step count determination (step SA190) after the determination result of the continuous count invalid determination (step SA120) becomes “YES”, it is returned to determine whether or not the preliminary count value has reached 30 steps. If the step count determination (step SA190) is “YES”, it can be said that it is confirmed that the user is walking slowly. Henceforth, there is no problem even if the preliminary count value is quickly reflected in the normal count value. Because it is.

(2)ユーザがゆっくり歩行している状況では、ユーザが1歩進む度に上記第2実施形態(図8)の周期性判定(ステップSA165)の判定結果が「YES」となり、予備カウント値が正規カウント値に反映される(ステップSA166)。この場合、正確な歩数がリアルタイムに表示される利点があるが、予備カウント値を正規カウント値に反映させる動作が頻繁に行われるため、消費電力が増加する。そこで、次のように図8に示すフローを変更してもよい。まず、周期性判定(ステップSA165)の判定結果が「YES」になって、予備カウント値を正規カウント値に反映させた(ステップSA166)後は、所定回数だけ周期性判定(ステップSA165)の判定結果が「YES」になったときに予備カウント値を正規カウント値に反映させる。その後、連続カウント無効判定(ステップSA120)の判定結果が「YES」になり、さらにその後は、周期性判定(ステップSA165)の判定結果が「YES」になった場合には、直ちに予備カウント値を正規カウント値に反映させる。その後は、所定回数だけ周期性判定(ステップSA165)の判定結果が「YES」になったときに予備カウント値を正規カウント値に反映させるのである。 (2) In a situation where the user is walking slowly, the determination result of the periodicity determination (step SA165) of the second embodiment (FIG. 8) is “YES” each time the user advances one step, and the preliminary count value is This is reflected in the normal count value (step SA166). In this case, there is an advantage that the accurate number of steps is displayed in real time, but since the operation of reflecting the preliminary count value in the regular count value is frequently performed, the power consumption increases. Therefore, the flow shown in FIG. 8 may be changed as follows. First, after the determination result of the periodicity determination (step SA165) becomes “YES” and the preliminary count value is reflected in the normal count value (step SA166), the periodicity determination (step SA165) is determined a predetermined number of times. When the result is “YES”, the preliminary count value is reflected in the normal count value. Thereafter, when the determination result of the continuous count invalidation determination (step SA120) becomes “YES”, and thereafter the determination result of the periodicity determination (step SA165) becomes “YES”, the preliminary count value is immediately set. It is reflected in the regular count value. Thereafter, when the determination result of the periodicity determination (step SA165) becomes “YES” a predetermined number of times, the preliminary count value is reflected in the normal count value.

(3)上記第2実施形態(図8)のステップSA165において、過去所定個数の時間間隔データに基づいて今回の時間間隔データの予測を行い、この時間間隔データの予測値と今回測定した時間間隔データとの予測誤差を求め、予測誤差が閾値以内に収まるか否かにより歩行が行われている可能性があるか否かを判定するようにしてもよい。歩き方に癖のある人の場合、時間間隔データが周期的な変化をする可能性が高い。この場合、時間間隔データの予測を行うと、予測誤差は低くなる可能性が高い。従って、この態様によれば、歩き方に癖のある人が歩行した場合の歩数を正確かつリアルタイムに表示することができる。 (3) In step SA165 of the second embodiment (FIG. 8), the current time interval data is predicted based on the past predetermined number of time interval data, and the predicted value of the time interval data and the time interval measured this time A prediction error with the data may be obtained, and it may be determined whether or not there is a possibility of walking depending on whether the prediction error falls within a threshold. For people who have a habit of walking, the time interval data is likely to change periodically. In this case, if the time interval data is predicted, the prediction error is likely to be low. Therefore, according to this aspect, the number of steps when a person with a habit of walking walks can be displayed accurately and in real time.

(4)上記第3実施形態(図9)のステップSA195では、歩行検出信号の発生タイミングの周期性に関する第1の判定と、予備カウント値に関する第2の判定を行ったが、第1の判定のみを行い、第1の判定結果が肯定的である場合にステップSA200を実行するようにしてもよい。この場合、第2実施形態と同様な効果が得られる。 (4) In step SA195 of the third embodiment (FIG. 9), the first determination regarding the periodicity of the generation timing of the walking detection signal and the second determination regarding the preliminary count value are performed. Step SA200 may be executed when the first determination result is affirmative. In this case, the same effect as the second embodiment can be obtained.

1…歩数計測装置、11…加速度センサ、12…制御部、13…記憶部、14…表示部、21…センサコントローラ部、22…合成加速度データ生成部、23…状態遷移制御部、24…歩数計アルゴリズム処理部、25…カウント処理部、31…予備カウンタ、32…正規カウンタ。 DESCRIPTION OF SYMBOLS 1 ... Step count measuring device, 11 ... Acceleration sensor, 12 ... Control part, 13 ... Memory | storage part, 14 ... Display part, 21 ... Sensor controller part, 22 ... Synthetic acceleration data generation part, 23 ... State transition control part, 24 ... Step count Total algorithm processing unit, 25 ... count processing unit, 31 ... preliminary counter, 32 ... regular counter.

Claims (5)

加速度を検出する加速度検出手段と、
前記加速度検出手段により検出される加速度に基づいて歩数のカウントを行う制御手段であって、前記加速度検出手段により検出される加速度に基づいて歩数計測装置が静止状態にあるか否かを判定する静止判定手段と、前記加速度検出手段により検出される加速度に所定の基準を満たす変化が生じるのに応じて歩行検出信号を発生する歩行検出手段とを有するとともに、予備カウンタと、カウント値が歩数表示に利用される正規カウンタとを有し、前記歩数計測装置が静止状態でなく、かつ、静止状態を脱してから所定時間長の予備カウント期間が経過する前の期間における前記歩行検出信号の発生回数のカウントを前記予備カウンタにより行い、前記歩数計測装置が静止状態でなく、かつ、静止状態を脱してから前記予備カウント期間が経過した後の期間における前記歩行検出信号の発生回数のカウントを前記正規カウンタにより行い、前記予備カウント期間に前記歩行検出信号が連続して発生しない時間が所定時間長の連続性判定期間を越えた場合に前記予備カウンタのカウント値をクリアし、前記歩行検出信号の発生態様に基づいて歩行の行われている可能性を検知した場合に、前記予備カウンタのカウント値を前記正規カウンタのカウント値に加える制御手段と
を具備することを特徴とする歩数計測装置。
Acceleration detecting means for detecting acceleration;
Control means for counting the number of steps based on the acceleration detected by the acceleration detection means, and determining whether the step counting device is in a stationary state based on the acceleration detected by the acceleration detection means A determination unit; and a walk detection unit that generates a walk detection signal in response to a change that satisfies a predetermined criterion in the acceleration detected by the acceleration detection unit. A normal counter used, and the number of occurrences of the gait detection signal in a period before the pre-count period of a predetermined time length elapses after the step counting device is not in a stationary state and has exited the stationary state. Counting is performed by the spare counter, and the step counting device is not in a stationary state and the preliminary counting period is The normal count is used to count the number of occurrences of the walking detection signal in a period after the time has passed, and the time during which the walking detection signal does not continuously occur exceeds the continuity determination period of a predetermined time length in the preliminary counting period. When the count value of the preliminary counter is cleared and the possibility of walking is detected based on the generation mode of the walking detection signal, the count value of the preliminary counter is changed to the count value of the regular counter. And a control means for adding the step count measuring device.
前記制御手段は、前記予備カウンタのカウント値が所定値に達した場合に前記歩行の行われている可能性が肯定されたとみなし、前記予備カウンタのカウント値を前記正規カウンタのカウント値に加えて前記予備カウンタのカウント値をクリアすることを特徴とする請求項1に記載の歩数計測装置。   When the count value of the preliminary counter reaches a predetermined value, the control means regards that the possibility of the walking being affirmed, and adds the count value of the preliminary counter to the count value of the regular counter. The step count measuring apparatus according to claim 1, wherein the count value of the preliminary counter is cleared. 前記制御手段は、前記歩行検出信号の発生タイミングに周期性があることを検出した場合に前記歩行の行われている可能性が肯定されたとみなし、前記予備カウンタのカウント値を前記正規カウンタのカウント値に加えて前記予備カウンタのカウント値をクリアすることを特徴とする請求項1に記載の歩数計測装置。   The control means considers that the possibility of the walking being affirmed when it detects that the generation timing of the walking detection signal is periodic, and counts the count value of the preliminary counter as the count of the regular counter 2. The step count measuring apparatus according to claim 1, wherein a count value of the preliminary counter is cleared in addition to a value. 前記制御手段は、前記予備カウンタのカウント値が所定値に達した場合または前記歩行検出信号の発生タイミングに周期性があることを検出した場合に前記歩行の有効性が肯定されたとみなし、前記予備カウンタのカウント値を前記正規カウンタのカウント値に加えて前記予備カウンタのカウント値をクリアすることを特徴とする請求項1に記載の歩数計測装置。   The control means considers that the effectiveness of walking is affirmed when the count value of the standby counter reaches a predetermined value or when it is detected that the generation timing of the walking detection signal has periodicity, 2. The step counting device according to claim 1, wherein the count value of the preliminary counter is cleared by adding the count value of the counter to the count value of the regular counter. 請求項1〜4のいずれか1の請求項に記載の歩数計測装置を含む携帯電話機。
A mobile phone including the step counting device according to any one of claims 1 to 4.
JP2012063449A 2012-03-21 2012-03-21 Step count measuring device Pending JP2013196442A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012063449A JP2013196442A (en) 2012-03-21 2012-03-21 Step count measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012063449A JP2013196442A (en) 2012-03-21 2012-03-21 Step count measuring device

Publications (1)

Publication Number Publication Date
JP2013196442A true JP2013196442A (en) 2013-09-30

Family

ID=49395284

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012063449A Pending JP2013196442A (en) 2012-03-21 2012-03-21 Step count measuring device

Country Status (1)

Country Link
JP (1) JP2013196442A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016181210A (en) * 2015-03-25 2016-10-13 株式会社 ウェブテクノロジ Number-of-steps detection device, number-of-steps detection method, and computer program
WO2017109920A1 (en) * 2015-12-24 2017-06-29 富士通株式会社 Information processing system, information processing program, and information processing method
WO2018186239A1 (en) * 2017-04-05 2018-10-11 株式会社タニタ Number-of-steps measuring program, portable terminal, and recording medium
JP2021057055A (en) * 2020-11-24 2021-04-08 株式会社タニタ Number-of-steps measurement program and portable terminal

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016181210A (en) * 2015-03-25 2016-10-13 株式会社 ウェブテクノロジ Number-of-steps detection device, number-of-steps detection method, and computer program
WO2017109920A1 (en) * 2015-12-24 2017-06-29 富士通株式会社 Information processing system, information processing program, and information processing method
JPWO2017109920A1 (en) * 2015-12-24 2018-09-27 富士通株式会社 Information processing system, information processing program, and information processing method
WO2018186239A1 (en) * 2017-04-05 2018-10-11 株式会社タニタ Number-of-steps measuring program, portable terminal, and recording medium
JP2018180683A (en) * 2017-04-05 2018-11-15 株式会社タニタ Number-of-steps measurement program and portable terminal
JP2021057055A (en) * 2020-11-24 2021-04-08 株式会社タニタ Number-of-steps measurement program and portable terminal
JP7162911B2 (en) 2020-11-24 2022-10-31 株式会社タニタ Pedometer program and mobile terminal

Similar Documents

Publication Publication Date Title
JP4785348B2 (en) Electronic pedometer
JP4785640B2 (en) Pedometer
JP4785349B2 (en) Electronic pedometer
JP4885665B2 (en) Pedometer
US7305323B2 (en) Method and apparatus for counting a number of steps taken by walker
JP4898514B2 (en) Pedometer
JP4885676B2 (en) Pedometer
JP2013196442A (en) Step count measuring device
US20160209232A1 (en) Multiple axis wrist worn pedometer
JP2010240158A (en) Energy consumption calculator
JP5014023B2 (en) Pedometer
JP4800782B2 (en) Biological information measuring device
JP2008292294A (en) Speedometer
JP2012185809A (en) Electronic apparatus, sampling cycle determination method, and sampling cycle determination program
JP6839065B2 (en) Walking state analysis method and equipment
JP5111261B2 (en) Electronics
JP2012123638A (en) Step counting device, electronic device, pedometer, and program
JP4939962B2 (en) Pedometer
JP2012118724A (en) Electronic apparatus, pedometer, and program
JP4990735B2 (en) Pedometer
JP2009123034A (en) Body motion detection device
JP2016181210A (en) Number-of-steps detection device, number-of-steps detection method, and computer program
JP2009119082A (en) Body movement detecting device
JP4829567B2 (en) Pendulum type walking detector
JP2012137904A (en) Step counting device, step counting method and program