JP2014182721A - Portable terminal device and step counting program - Google Patents

Portable terminal device and step counting program Download PDF

Info

Publication number
JP2014182721A
JP2014182721A JP2013058020A JP2013058020A JP2014182721A JP 2014182721 A JP2014182721 A JP 2014182721A JP 2013058020 A JP2013058020 A JP 2013058020A JP 2013058020 A JP2013058020 A JP 2013058020A JP 2014182721 A JP2014182721 A JP 2014182721A
Authority
JP
Japan
Prior art keywords
waveform
set waveform
time width
equivalent
steps
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
JP2013058020A
Other languages
Japanese (ja)
Other versions
JP6236820B2 (en
Inventor
Masao Sanhongi
正雄 三本木
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2013058020A priority Critical patent/JP6236820B2/en
Publication of JP2014182721A publication Critical patent/JP2014182721A/en
Application granted granted Critical
Publication of JP6236820B2 publication Critical patent/JP6236820B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measurement Of Distances Traversed On The Ground (AREA)
  • Telephone Function (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent a portable terminal device from erroneously counting the number of steps with a simple configuration even when a walking speed of a user varies.SOLUTION: A portable terminal device 1 worn on the body of the user counts the number of steps on the basis of a waveform of acceleration in a gravity direction, compares a first set waveform Wd1 which is the waveform in one set of a predetermined number of steps with a second set waveform Wd2 which is the waveform in one set shifted by one step behind of the first set waveform Wd1 and determines whether or not the first set waveform Wd1 is equivalent to the second set waveform Wd2, compares the first set waveform Wd1 with a third set waveform Wd3 which is the waveform in one set starting from the step later than the second set waveform Wd2 as a first step when determining that the first set waveform Wd1 is not equivalent to the second set waveform Wd2 and determines whether or not the first set waveform Wd1 is equivalent to the third set waveform Wd3, and corrects the number of steps on the basis of the second set waveform Wd2 by increasing or decreasing the same when determining that the first set waveform Wd1 is equivalent to the third set waveform Wd3.

Description

本発明は、携帯端末装置及び歩数計数プログラムに関する。   The present invention relates to a portable terminal device and a step count counting program.

従来、ユーザに携帯されてその歩行時や走行時の歩数をカウントする、いわゆる歩数計や活動量計などの携帯端末装置が知られている。この携帯端末装置は、一般に加速度センサーを備えており、当該加速度センサーによって人間の歩行時や走行時における立脚挙動時の振動を検出して歩数値を計数する。   2. Description of the Related Art Conventionally, portable terminal devices such as so-called pedometers and activity meters that are carried by a user and count the number of steps during walking or running are known. This mobile terminal device generally includes an acceleration sensor, and detects the vibration during standing motion during walking or running of a human by the acceleration sensor and counts the number of steps.

ところが、この種の携帯端末装置では、立脚挙動時の振動の個人差や当該装置の身体への装着状態などに起因して、振動検出が正しく行われずに歩数が誤カウントされてしまうという問題がある。例えば、ポケットに入れておくものや腕に装着するものなど、体幹の近くに密着されずに立脚挙動以外の動作を受けやすい携帯端末装置では、立脚挙動時の振動振幅が歩数カウントの閾値を越えないカウント抜けや、立脚挙動以外の動作時の振動振幅がこの閾値を超えてしまうカウント過多が生じやすい。   However, in this type of mobile terminal device, there is a problem in that the number of steps is erroneously counted because the vibration is not correctly detected due to individual differences in vibration during standing behavior and the wearing state of the device on the body. is there. For example, in portable terminal devices that are not in close contact with the trunk, such as those that are to be put in a pocket or worn on the arm, and that are susceptible to movements other than stance behavior, the vibration amplitude at the time of stance behavior is the threshold for the step count. Count loss that does not exceed, or excessive count that the vibration amplitude during operation other than the stance behavior exceeds this threshold is likely to occur.

そこで、例えば特許文献1に記載の携帯端末装置では、ユーザが一定速度で歩行した場合の一定周期の加速度波形のデータが補正用データとして予め記憶されており、GPS等によりユーザが移動しているかどうかを検知して、ユーザが移動しているときには加速度センサーによる歩数カウントを補正用データに基づいて補正し、ユーザが移動していないときには歩数カウントを行わないようになっている。   Therefore, for example, in the mobile terminal device described in Patent Document 1, acceleration waveform data having a constant period when the user walks at a constant speed is stored in advance as correction data, and is the user moving by GPS or the like? When the user is moving, the step count by the acceleration sensor is corrected based on the correction data, and when the user is not moving, the step count is not performed.

特開2010−28674号公報JP 2010-28675 A

しかしながら、上記特許文献1に記載の携帯端末装置では、ユーザが一定速度で歩行した場合を想定した補正用データを用いているため、ユーザの歩行速度が変化する場合には歩数値を適切に補正することができず、誤カウントを防止することができない。   However, since the portable terminal device described in Patent Document 1 uses correction data assuming that the user walks at a constant speed, the step value is appropriately corrected when the user's walking speed changes. It is not possible to prevent erroneous counting.

さらに、当該特許文献1に記載の携帯端末装置では、ユーザの移動を検知するためのGPSセンサーなどの補正専用の部品を必要としており、その分だけ装置構成が大型化・高コスト化してしまう。したがって、このような補正専用の部品を必要としない簡便な構成によって歩数値の誤カウントを防止できることが望ましい。   Furthermore, the portable terminal device described in Patent Document 1 requires correction-specific parts such as a GPS sensor for detecting the movement of the user, and the size and cost of the device are increased accordingly. Therefore, it is desirable to prevent erroneous counting of step values with a simple configuration that does not require such a correction-specific component.

本発明の課題は、簡便な構成で、ユーザの歩行速度が変化する場合にも歩数値の誤カウントを防止することができる携帯端末装置及び歩数計数プログラムを提供することである。   An object of the present invention is to provide a portable terminal device and a step count program that can prevent erroneous counting of step values even when the user's walking speed changes with a simple configuration.

以上の課題を解決するため、本発明は、
ユーザの身体に装着可能な携帯端末装置において、
重力方向への加速度の波形を検出する波形検出手段と、
前記波形検出手段により検出された前記波形に基づいて歩数値を計数する歩数計数手段と、
連続する所定歩数を1セットとし、この1セット分の前記波形である第一セット波形と、当該第一セット波形から1歩分だけ後にずらした1セット分の前記波形である第二セット波形とを比較して、同等であるか否かを判定する第一波形比較手段と、
前記第一波形比較手段により前記第一セット波形と前記第二セット波形とが同等ではないと判定された場合に、前記第一セット波形と、前記第二セット波形よりも後の歩を最初の1歩とする1セット分の前記波形である第三セット波形とを比較して、同等であるか否かを判定する第二波形比較手段と、
前記第二波形比較手段により前記第一セット波形と前記第三セット波形とが同等であると判定された場合に、前記第二セット波形に基づく歩数値を増減させて補正する歩数補正手段と、
を備えることを特徴とする。
In order to solve the above problems, the present invention provides:
In a mobile terminal device that can be worn on a user's body,
Waveform detecting means for detecting a waveform of acceleration in the direction of gravity;
Step counting means for counting step values based on the waveform detected by the waveform detecting means;
A predetermined number of consecutive steps is set as one set, and the first set waveform that is the waveform for the one set, and the second set waveform that is the waveform for one set shifted by one step from the first set waveform, A first waveform comparison means for determining whether or not they are equivalent,
When the first waveform comparison means determines that the first set waveform and the second set waveform are not equivalent, the first set waveform and the steps after the second set waveform are the first steps A second waveform comparison means for comparing the third set waveform, which is the waveform for one set as one step, and determining whether or not they are equivalent;
When the second waveform comparison means determines that the first set waveform and the third set waveform are equivalent, the step number correcting means for correcting by increasing or decreasing the step value based on the second set waveform;
It is characterized by providing.

本発明によれば、簡便な構成で、ユーザの歩行速度が変化する場合にも歩数値の誤カウントを防止することができる。   According to the present invention, it is possible to prevent erroneous counting of step values even when the user's walking speed changes with a simple configuration.

携帯端末装置の外観図である。It is an external view of a portable terminal device. 携帯端末装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of a portable terminal device. 歩数計数処理の流れを示すフローチャートである。It is a flowchart which shows the flow of step count processing. 歩数計数処理の流れを示すフローチャートである。It is a flowchart which shows the flow of step count processing. 重力方向成分の加速度の原波形とデジタル波形を説明するための図である。It is a figure for demonstrating the original waveform and digital waveform of the acceleration of a gravity direction component. 歩数値のカウント抜けが発生した場合の加速度の原波形とデジタル波形を示す図である。It is a figure which shows the original waveform and digital waveform of an acceleration when count missing of a step value has occurred. 歩数値のカウント過多が発生した場合の加速度の原波形とデジタル波形を示す図である。It is a figure which shows the original waveform and digital waveform of acceleration at the time of the overcounting of the step value.

以下、図面を参照して、本発明の実施形態について詳細に説明する。但し、発明の範囲は、図示例に限定されない。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. However, the scope of the invention is not limited to the illustrated examples.

[構成]
まず、本実施形態における携帯端末装置1の構成について、図1及び図2を参照して説明する。
図1は、携帯端末装置1の外観図であり、図2は、携帯端末装置1の機能構成を示すブロック図である。
[Constitution]
First, the structure of the portable terminal device 1 in this embodiment is demonstrated with reference to FIG.1 and FIG.2.
FIG. 1 is an external view of the mobile terminal device 1, and FIG. 2 is a block diagram showing a functional configuration of the mobile terminal device 1.

図1に示すように、携帯端末装置1は、例えば腕時計状に形成されており、ユーザの手首に装着されるようになっている。この携帯端末装置1は、図2に示すように、表示部11と、入力部12と、センサー群13と、記憶部14と、通信部15と、CPU16等とを備えて構成されている。   As shown in FIG. 1, the portable terminal device 1 is formed in a wristwatch shape, for example, and is attached to a user's wrist. As shown in FIG. 2, the mobile terminal device 1 includes a display unit 11, an input unit 12, a sensor group 13, a storage unit 14, a communication unit 15, a CPU 16, and the like.

表示部11は、ディスプレイ110を備えており、CPU16から入力される表示信号に基づいて各種情報をディスプレイ110に表示する。なお、本実施形態におけるディスプレイ110は、いわゆるタッチパネル121と一体的に形成されており、ユーザによるタッチ操作を受け付け可能となっている。   The display unit 11 includes a display 110 and displays various information on the display 110 based on a display signal input from the CPU 16. Note that the display 110 according to the present embodiment is formed integrally with a so-called touch panel 121 and can accept a touch operation by a user.

入力部12は、入力キー群120やタッチパネル121を備えており、押下されたキーの種類やタッチパネル121の位置に対応する信号をCPU16に出力する。   The input unit 12 includes an input key group 120 and a touch panel 121, and outputs a signal corresponding to the type of pressed key and the position of the touch panel 121 to the CPU 16.

センサー群13は、複数種類のセンサーを有しており、本実施形態においては、加速度センサー13aと、方位センサー13bとを有している。   The sensor group 13 has a plurality of types of sensors. In the present embodiment, the sensor group 13 includes an acceleration sensor 13a and a direction sensor 13b.

加速度センサー13aは、携帯端末装置1に加わる加速度を3軸方向の成分に分解して計測するセンサーである。なお、この加速度センサー13aは、ユーザ操作などに応じてON状態(通電状態)に設定され、センシング動作を行うようになっている。   The acceleration sensor 13a is a sensor that measures the acceleration applied to the mobile terminal device 1 by breaking it down into components in three axial directions. The acceleration sensor 13a is set to an ON state (energized state) according to a user operation or the like, and performs a sensing operation.

方位センサー13bは、携帯端末装置1が向いている方位を3軸方向の成分に分解して計測するセンサーである。なお、この方位センサー13bは、ユーザ操作などに応じてON状態(通電状態)に設定され、センシング動作を行うようになっている。   The azimuth sensor 13b is a sensor that measures the azimuth directed by the mobile terminal device 1 by breaking it down into three-axis components. The direction sensor 13b is set to an ON state (energized state) in response to a user operation or the like, and performs a sensing operation.

記憶部14は、携帯端末装置1の各種機能を実現するためのプログラムやデータを記憶するとともに、CPU16の作業領域としても機能するメモリである。本実施形態においては、記憶部14は、本発明に係る歩数計数プログラム140を記憶するとともに、歩数データ記憶領域141、波形データ記憶領域142、フラグ記憶領域143等を有している。   The storage unit 14 is a memory that stores programs and data for realizing various functions of the mobile terminal device 1 and also functions as a work area of the CPU 16. In the present embodiment, the storage unit 14 stores a step count counting program 140 according to the present invention, and includes a step count data storage area 141, a waveform data storage area 142, a flag storage area 143, and the like.

歩数計数プログラム140は、後述の歩数計数処理(図3及び図4参照)をCPU16に実行させるためのプログラムである。   The step counting program 140 is a program for causing the CPU 16 to execute a step counting process (see FIGS. 3 and 4) described later.

歩数データ記憶領域141は、後述の歩数計数処理(図3及び図4参照)において、計数(カウント)されたユーザの歩数値が記憶されるようになっている。また、この歩数データ記憶領域141には、歩数計数処理の開始時においては、歩数値の初期値として0が記憶されている。   The step count data storage area 141 stores the step count value of the user counted (counted) in the step count processing described later (see FIGS. 3 and 4). In the step count data storage area 141, 0 is stored as the initial value of the step count at the start of the step count processing.

波形データ記憶領域142は、後述の歩数計数処理(図3及び図4参照)において、加速度センサー13aによって計測された加速度のデータのうち、重力方向成分の原波形Waやデジタル波形Wd(図5参照)が記憶されるようになっている。   The waveform data storage area 142 stores the original waveform Wa and the digital waveform Wd (see FIG. 5) of the gravity direction component in the acceleration data measured by the acceleration sensor 13a in the step counting process (see FIGS. 3 and 4) described later. ) Is memorized.

フラグ記憶領域143は、後述の歩数計数処理(図3及び図4参照)において、個別にON/OFFが設定されるFフラグ及びSフラグが記憶されるようになっている。これらFフラグ及びSフラグは、歩数計数処理の開始時には何れもOFFに設定されており、後述するように、歩数計数処理中にONに設定される場合には、そのときの歩数値を対応付けてフラグ記憶領域143に記憶される。   The flag storage area 143 stores an F flag and an S flag that are individually set to ON / OFF in a step count process (see FIGS. 3 and 4) described later. These F flag and S flag are both set to OFF at the start of the step counting process. As described later, when set to ON during the step counting process, the step value at that time is associated. Is stored in the flag storage area 143.

通信部15は、例えばWi-Fi等の無線LANによる無線通信や、Bluetooth(登録商標)を用いる近距離通信などにより、他の電子機器(例えばパソコンなど)との間での通信を行う。   The communication unit 15 performs communication with another electronic device (for example, a personal computer) by wireless communication using a wireless LAN such as Wi-Fi or near field communication using Bluetooth (registered trademark).

CPU16は、携帯端末装置1の各部を中央制御する。具体的には、CPU16は、記憶部14に記憶されているシステムプログラム及び各種アプリケーションプログラムの中から指定されたプログラムを展開し、展開されたプログラムと協働して各種処理を実行する。   The CPU 16 centrally controls each unit of the mobile terminal device 1. Specifically, the CPU 16 expands a program designated from the system program and various application programs stored in the storage unit 14, and executes various processes in cooperation with the expanded program.

[動作]
続いて、携帯端末装置1が歩数計数処理を実行する際の動作について、図3及び図4等を参照して説明する。
図3及び図4は、歩数計数処理の流れを示すフローチャートである。
[Operation]
Next, an operation when the mobile terminal device 1 executes the step counting process will be described with reference to FIG. 3 and FIG.
3 and 4 are flowcharts showing the flow of the step count processing.

歩数計数処理は、ユーザが携帯端末装置1を装着した状態で歩行又は走行したときに、その歩数値を計数(カウント)する処理である。この歩数計数処理は、ユーザ操作により当該歩数計数処理の実行指示が入力されたときに、CPU16が記憶部14から歩数計数プログラム140を読み出して展開することで、実行される。   The step count process is a process of counting (counting) the step value when the user walks or runs while wearing the mobile terminal device 1. This step counting process is executed when the CPU 16 reads out and expands the step counting program 140 from the storage unit 14 when an instruction to execute the step counting process is input by a user operation.

図3に示すように、歩数係数処理が実行されると、まずCPU16は、加速度センサー13aをON状態に設定して、携帯端末装置1に加わる加速度の計測を開始する(ステップS1)。   As shown in FIG. 3, when the step coefficient processing is executed, the CPU 16 first sets the acceleration sensor 13a to the ON state and starts measuring the acceleration applied to the mobile terminal device 1 (step S1).

次に、CPU16は、加速度センサー13aによって計測された3軸方向の加速度のデータに基づいて重力方向を推定し、この重力方向成分の加速度を抽出(検出)する(ステップS2)。   Next, the CPU 16 estimates the gravity direction based on the acceleration data in the three-axis directions measured by the acceleration sensor 13a, and extracts (detects) the acceleration of the gravity direction component (step S2).

次に、CPU16は、ステップS2で抽出された重力方向成分の加速度のデータに基づいて、ユーザの脚が着地したか否かを判定する(ステップS3)。なお、このステップS3以降の処理では、加速度として重力方向成分のものだけを取り扱うため、以下の説明では、この「重力方向成分の加速度」を単に「加速度」ということとする。   Next, the CPU 16 determines whether or not the user's leg has landed based on the acceleration data of the gravity direction component extracted in step S2 (step S3). In the processing after step S3, only the acceleration in the gravity direction component is handled as the acceleration. Therefore, in the following description, the “acceleration in the gravity direction component” is simply referred to as “acceleration”.

具体的には、このステップS3では、図5に示すように、CPU16は、ステップS2で抽出された加速度の原波形Waに基づいて、当該原波形Waをデジタル化した加速度のデジタル波形Wdを生成しつつ、ユーザの脚が着地したか否かを判定する。   Specifically, in step S3, as shown in FIG. 5, the CPU 16 generates an acceleration digital waveform Wd obtained by digitizing the original waveform Wa based on the acceleration original waveform Wa extracted in step S2. However, it is determined whether or not the user's leg has landed.

より詳しくは、CPU16は、加速度の原波形Waが所定の正の閾値T1及び負の閾値T2を越えることを検知することにより、原波形Waにおける加速度の山がパルス状にデジタル化されたデジタル波形Wdを生成する。すなわち、CPU16は、原波形Waでの加速度の山が、負の閾値T2を負側へ越えた後に正の閾値T1を正側へ超えて再び負の閾値T2を負側へ超えた場合に、加速度のデジタル波形Wdにパルスを生成し、ユーザの脚が着地したと判定する。   More specifically, the CPU 16 detects that the original waveform Wa of acceleration exceeds a predetermined positive threshold value T1 and a negative threshold value T2, so that the acceleration waveform in the original waveform Wa is digitized in a pulse shape. Wd is generated. That is, when the peak of acceleration in the original waveform Wa exceeds the negative threshold T2 to the negative side, then the CPU 16 exceeds the positive threshold T1 to the positive side and again exceeds the negative threshold T2 to the negative side. A pulse is generated in the acceleration digital waveform Wd to determine that the user's leg has landed.

加速度の原波形Waでは、ユーザが1歩歩くときの1回の立脚挙動(一方の脚を地面から離してから再び着けるまでの動作)時に、1つの山が形成される。したがって、原波形Waでの1つの山に相当するデジタル波形Wdでの1つのパルスが、ユーザの1歩に相当する。なお、加速度の原波形Waでは、脚着地時の床面反力の影響を受けるために、立脚挙動時の山は例えば正弦波状などのきれいな波形にはならず、脚着地時の下側ピーク部分がやや歪な形の波形となる。   In the acceleration original waveform Wa, one mountain is formed at the time of one standing-leg behavior when the user walks one step (the movement from one leg away from the ground until it can be put on again). Therefore, one pulse in the digital waveform Wd corresponding to one peak in the original waveform Wa corresponds to one step of the user. In addition, in the original waveform Wa of acceleration, since it is affected by the floor surface reaction force at the time of landing on the leg, the mountain at the time of standing-up behavior is not a clean waveform such as a sine wave, but the lower peak portion at the time of landing on the leg A slightly distorted waveform.

図3に示すように、ステップS3において、ユーザの脚が着地していないと判定した場合、つまり加速度のデジタル波形Wdに歩行を示すパルスが生成されていない場合には(ステップS3;No)、CPU16は、後述のステップS5に移行する。   As shown in FIG. 3, when it is determined in step S3 that the user's leg has not landed, that is, when a pulse indicating walking is not generated in the acceleration digital waveform Wd (step S3; No), The CPU 16 proceeds to step S5 described later.

また、ステップS3において、ユーザの脚が着地したと判定した場合、つまり加速度のデジタル波形Wdに歩行を示すパルスが1つ生成されている場合には(ステップS3;Yes)、CPU16は、記憶部14の歩数データ記憶領域141に記憶されている歩数値を1歩増やして記憶させ直す(ステップS4)。   If it is determined in step S3 that the user's leg has landed, that is, if one pulse indicating walking is generated in the acceleration digital waveform Wd (step S3; Yes), the CPU 16 stores the memory unit. The step count value stored in the 14 step count data storage area 141 is increased by one step and stored again (step S4).

次に、CPU16は、加速度の原波形Wa及びデジタル波形Wdを、当該歩数時のものとして記憶部14の波形データ記憶領域142に記憶させる(ステップS5)。   Next, the CPU 16 stores the original waveform Wa and the digital waveform Wd of acceleration in the waveform data storage area 142 of the storage unit 14 as the number of steps (step S5).

次に、図4に示すように、CPU16は、記憶部14のフラグ記憶領域143に記憶されたFフラグ及びSフラグが何れもOFFであるか否かを判定する(ステップS6)。ここで、Fフラグ及びSフラグとは、後述するように、所定歩数N歩分のデジタル波形Wdの時間幅が、1歩ずらした直前の所定歩数N歩分のデジタル波形Wdの時間幅よりも、短い(すなわち歩行のピッチが速い(Fast))のか、或いは長い(すなわち歩行のピッチが遅い(Slow))のかの判定結果を保持するフラグである。   Next, as shown in FIG. 4, the CPU 16 determines whether or not both the F flag and the S flag stored in the flag storage area 143 of the storage unit 14 are OFF (step S6). Here, as will be described later, the F flag and the S flag indicate that the time width of the digital waveform Wd for a predetermined number of steps N steps is greater than the time width of the digital waveform Wd for a predetermined number of steps N steps immediately before being shifted by one step. This flag holds a determination result of whether the pitch is short (ie, the walking pitch is fast (Fast)) or long (that is, the walking pitch is slow (Slow)).

このステップS6において、Fフラグ及びSフラグが何れもOFFであると判定した場合(ステップS6;Yes)、CPU16は、Nを所定歩数として、連続する直前のN+1歩分の原波形Wa及びデジタル波形Wdが記憶部14の波形データ記憶領域142に記憶されているか否かを判定し(ステップS7)、記憶されていないと判定した場合には(ステップS7;No)、上述のステップS1へ移行する。   If it is determined in step S6 that both the F flag and the S flag are OFF (step S6; Yes), the CPU 16 sets N as a predetermined number of steps and the original waveform Wa and the digital waveform for the immediately preceding N + 1 steps. It is determined whether or not Wd is stored in the waveform data storage area 142 of the storage unit 14 (step S7). When it is determined that Wd is not stored (step S7; No), the process proceeds to the above-described step S1. .

また、このステップS6において、N+1歩分の原波形Wa及びデジタル波形Wdが記憶部14の波形データ記憶領域142に記憶されていると判定した場合には(ステップS7;Yes)、CPU16は、所定歩数N歩分の連続するデジタル波形Wdを1セットとして、N+1歩分のデジタル波形Wdのうち、その1歩目からN歩目までの1セット分の第一セット波形Wd1(図6及び図7参照)と、当該第一セット波形Wd1から1歩分だけ後にずらした2歩目からN+1歩目までの1セット分の第二セット波形Wd2(図6及び図7参照)とを比較して、これらが同等であるか否かを判定する(ステップS8)。   If it is determined in step S6 that the original waveform Wa and the digital waveform Wd for N + 1 steps are stored in the waveform data storage area 142 of the storage unit 14 (step S7; Yes), the CPU 16 determines whether or not The first set waveform Wd1 for one set from the first step to the Nth step among the digital waveforms Wd for N + 1 steps, with a continuous digital waveform Wd for N steps as one set (FIGS. 6 and 7). And the second set waveform Wd2 (see FIGS. 6 and 7) for one set from the second step to the (N + 1) th step shifted by one step from the first set waveform Wd1 It is determined whether or not they are equivalent (step S8).

具体的には、このステップS8では、CPU16は、第一セット波形Wd1と第二セット波形Wd2との各時間幅を比較して、当該時間幅が同等である場合に、第一セット波形Wd1と第二セット波形Wd2とが同等であると判定する。より詳しくは、CPU16は、第二セット波形Wd2の時間幅が、第一セット波形Wd1の時間幅に対して±10%以上異なる場合に、これらの時間幅が同等ではないと判定し、ひいては、第一セット波形Wd1と第二セット波形Wd2とが同等ではないと判定する。例えば、ユーザが一定周期t[秒]の歩行を行っていたとして、第一セット波形Wd1の時間幅が4tであったのに対し、第二セット波形Wd2の時間幅が4.4t以上であったり、3.6t以下であったりした場合には、第一セット波形Wd1と第二セット波形Wd2とが同等ではないと判定される。   Specifically, in this step S8, the CPU 16 compares the time widths of the first set waveform Wd1 and the second set waveform Wd2, and when the time widths are equal, It is determined that the second set waveform Wd2 is equivalent. More specifically, when the time width of the second set waveform Wd2 differs by ± 10% or more with respect to the time width of the first set waveform Wd1, the CPU 16 determines that these time widths are not equal, and thus It is determined that the first set waveform Wd1 and the second set waveform Wd2 are not equivalent. For example, assuming that the user is walking with a constant period t [seconds], the time width of the first set waveform Wd1 is 4 t, whereas the time width of the second set waveform Wd2 is 4.4 t or more. Or 3.6 t or less, it is determined that the first set waveform Wd1 and the second set waveform Wd2 are not equivalent.

なお、このステップS8では、デジタル波形Wdの比較に代えて、原波形Waを比較することとしてもよい。具体的には、CPU16は、N+1歩分の原波形Waのうち、その1歩目からN歩目までの1セット分の第一セット波形Wa1(図6及び図7参照)と、当該第一セット波形Wa1から1歩分だけ後にずらした2歩目からN+1歩目までの1セット分の第二セット波形Wa2(図6及び図7参照)とを比較して、同等であるか否かを判定してもよい。
この場合、CPU16は、デジタル波形Wdである第一セット波形Wd1と第二セット波形Wd2との比較と同様にして、原波形Waである第一セット波形Wa1と第二セット波形Wa2との時間幅を比較してもよいし、振幅や波形自体の形状などを比較してもよい。振幅を比較する場合、例えば、第二セット波形Wa2だけに、歩数値が計数される正の閾値T1には満たないものの明らかな振幅のピークを有する山がある場合(図6参照)などには、第一セット波形Wa1と第二セット波形Wa2とが同等でないと判定することができる。
In step S8, the original waveform Wa may be compared instead of comparing the digital waveform Wd. Specifically, the CPU 16 compares the first set waveform Wa1 (see FIGS. 6 and 7) for one set from the first step to the Nth step among the original waveforms Wa for N + 1 steps, Compare the second set waveform Wa2 (see FIGS. 6 and 7) for one set from the second step to the (N + 1) th step shifted by one step from the set waveform Wa1, and determine whether or not they are equivalent. You may judge.
In this case, the CPU 16 performs the time width between the first set waveform Wa1 and the second set waveform Wa2 as the original waveform Wa in the same manner as the comparison between the first set waveform Wd1 and the second set waveform Wd2 as the digital waveform Wd. May be compared, or the amplitude and the shape of the waveform itself may be compared. When comparing the amplitudes, for example, when only the second set waveform Wa2 has a peak having a clear amplitude peak although the positive threshold T1 for counting the step value is counted (see FIG. 6), etc. It can be determined that the first set waveform Wa1 and the second set waveform Wa2 are not equivalent.

このステップS8において、第一セット波形Wd1と第二セット波形Wd2とが同等であると判定した場合には(ステップS8;Yes)、CPU16は、上述のステップS1へ移行する。   If it is determined in step S8 that the first set waveform Wd1 and the second set waveform Wd2 are equivalent (step S8; Yes), the CPU 16 proceeds to step S1 described above.

また、ステップS8において、第一セット波形Wd1と第二セット波形Wd2とが同等ではないと判定した場合には(ステップS8;No)、CPU16は、第二セット波形Wd2の時間幅が第一セット波形Wd1の時間幅よりも短いか否かを判定する(ステップS9)。   If it is determined in step S8 that the first set waveform Wd1 and the second set waveform Wd2 are not equivalent (step S8; No), the CPU 16 sets the time width of the second set waveform Wd2 to the first set. It is determined whether or not the time width of the waveform Wd1 is shorter (step S9).

このステップS9の時点では、第二セット波形Wd2の時間幅が第一セット波形Wd1の時間幅に対して±10%以上異なることが、上述のステップS8において既に判定されている。したがって、例えば、ユーザが一定周期t[秒]の歩行を行っていたとして、第一セット波形Wd1の時間幅が4tであったときに、第二セット波形Wd2の時間幅が3.6t以下であった場合には、第二セット波形Wd2の時間幅が第一セット波形Wd1の時間幅よりも短いと判定され、第二セット波形Wd2の時間幅が4.4t以上であった場合には、第二セット波形Wd2の時間幅が第一セット波形Wd1の時間幅よりも短くない(長い)と判定される。   At the time of step S9, it has already been determined in step S8 described above that the time width of the second set waveform Wd2 differs from the time width of the first set waveform Wd1 by ± 10% or more. Therefore, for example, when the user is walking at a fixed period t [second], when the time width of the first set waveform Wd1 is 4 t, the time width of the second set waveform Wd2 is 3.6 t or less. If there is, it is determined that the time width of the second set waveform Wd2 is shorter than the time width of the first set waveform Wd1, and if the time width of the second set waveform Wd2 is 4.4 t or more, It is determined that the time width of the second set waveform Wd2 is not shorter (longer) than the time width of the first set waveform Wd1.

このステップS9において、第二セット波形Wd2の時間幅が第一セット波形Wd1の時間幅よりも短いと判定した場合には(ステップS9;Yes)、CPU16は、記憶部14のフラグ記憶領域143に記憶されたFフラグをONに設定して、このときの歩数値と対応付けて当該フラグ記憶領域143に記憶させ直し(ステップS10)、上述のステップS1へ移行する。   If it is determined in step S9 that the time width of the second set waveform Wd2 is shorter than the time width of the first set waveform Wd1 (step S9; Yes), the CPU 16 stores the flag storage area 143 of the storage unit 14 in the flag storage area 143. The stored F flag is set to ON, and is stored again in the flag storage area 143 in association with the step value at this time (step S10), and the process proceeds to the above-described step S1.

また、ステップS9において、第二セット波形Wd2の時間幅が第一セット波形Wd1の時間幅よりも短くない(長い)と判定した場合には(ステップS9;No)、CPU16は、記憶部14のフラグ記憶領域143に記憶されたSフラグをONに設定して、このときの歩数値と対応付けて当該フラグ記憶領域143に記憶させ直し(ステップS11)、上述のステップS1へ移行する。   If it is determined in step S9 that the time width of the second set waveform Wd2 is not shorter (longer) than the time width of the first set waveform Wd1 (step S9; No), the CPU 16 The S flag stored in the flag storage area 143 is set to ON, and is stored again in the flag storage area 143 in association with the step value at this time (step S11), and the process proceeds to the above-described step S1.

また、上述のステップS6において、Fフラグ及びSフラグのうちの何れか一方がONであると判定した場合には(ステップS6;No)、CPU16は、記憶部14の歩数データ記憶領域141に記憶された歩数値に基づいて、この何れか一方のフラグがONに設定された歩数時から他の所定歩数Mの歩行が経過したか否かを判定し(ステップS12)、当該他の所定歩数Mの歩行が経過していないと判定した場合には(ステップS12;No)、上述のステップS1へ移行する。ここで、他の所定歩数Mとは、所定歩数N以上の値を取る歩数である。   Further, when it is determined in step S6 described above that either one of the F flag and the S flag is ON (step S6; No), the CPU 16 stores it in the step count data storage area 141 of the storage unit 14. Based on the step count value thus determined, it is determined whether or not the other predetermined number of steps M has passed since the time when either one of the flags is set to ON (step S12), and the other predetermined number of steps M is determined. If it is determined that no walking has elapsed (step S12; No), the process proceeds to step S1 described above. Here, the other predetermined number of steps M is a number of steps that takes a value greater than or equal to the predetermined number of steps N.

また、このステップS12において、ONに設定された何れか一方のフラグがONに設定された歩数時から、他の所定歩数Mの歩行が経過したと判定した場合には(ステップS12;Yes)、CPU16は、波形データ記憶領域142に記憶されているデジタル波形Wdのうち、第一セット波形Wd1と、第二セット波形Wd2よりも後の歩を最初の1歩とする1セット(N歩)分の第三セット波形Wd3(図6及び図7参照)とを比較して、これらが同等であるか否かを判定する(ステップS13)。   In addition, when it is determined in step S12 that the walking of another predetermined number of steps M has elapsed from the number of steps in which one of the flags set to ON is set to ON (step S12; Yes), The CPU 16 includes one set (N steps) of the digital waveform Wd stored in the waveform data storage area 142, with the first step waveform Wd1 and the second set waveform Wd2 as the first step. The third set waveform Wd3 (see FIGS. 6 and 7) is compared to determine whether or not they are equivalent (step S13).

具体的には、このステップS13では、CPU16は、一方のフラグがONに設定された歩数時よりも後のM歩分のデジタル波形Wdのうち、最も新しいN歩分のものを第三セット波形Wd3として、当該第三セット波形Wd3と第一セット波形Wd1とを比較する。つまり、第三セット波形Wd3は、一方のフラグがONに設定された歩数時よりも(M−N+1)歩後の歩を最初の1歩とするN歩分のデジタル波形Wdである。例えば、N=M=4の場合には、一方のフラグがONに設定された歩数時よりも1(=4−4+1)歩だけ後の歩(すなわち、第二セット波形Wd2終了直後の第1歩目)から4歩分のデジタル波形Wdが第三セット波形Wd3となる。また、N=4,M=5の場合には、一方のフラグがONに設定された歩数時よりも2(=5−4+1)歩後の歩(すなわち、第二セット波形Wd2終了後の第2歩目)から4歩分のデジタル波形Wdが第三セット波形Wd3となる。或いは、N=4,M=6の場合には、一方のフラグがONに設定された歩数時よりも3(=6−4+1)歩後の歩(すなわち、第二セット波形Wd2終了後の第3歩目)から4歩分のデジタル波形Wdが第三セット波形Wd3となる。なお、この他の所定歩数Mの値は、本体機器や装着者(ユーザ)の歩き方の傾向等に応じて、最適な値が適宜設定されることとする。   Specifically, in this step S13, the CPU 16 sets the third set waveform of the digital waveform Wd for the M steps after the number of steps for which one of the flags is set to ON to the latest N steps. As Wd3, the third set waveform Wd3 and the first set waveform Wd1 are compared. That is, the third set waveform Wd3 is a digital waveform Wd for N steps, where the first step is a step after (M−N + 1) steps from the time when one flag is set to ON. For example, in the case of N = M = 4, the first step immediately after the end of the second set waveform Wd2 (that is, the first step immediately after the end of the second set waveform Wd2) after the number of steps when one flag is set to ON (= 4-4 + 1) steps. The digital waveform Wd for four steps from the first step) becomes the third set waveform Wd3. In the case of N = 4 and M = 5, the step after 2 (= 5-4 + 1) steps from the time when one of the flags is set to ON (that is, the first step after the end of the second set waveform Wd2). The digital waveform Wd for four steps from the second step) becomes the third set waveform Wd3. Alternatively, in the case of N = 4 and M = 6, the step after 3 (= 6-4 + 1) steps from the time when one of the flags is set to ON (that is, the first step after the end of the second set waveform Wd2). The digital waveform Wd for four steps from the third step) becomes the third set waveform Wd3. It should be noted that the value of the predetermined number of steps M is appropriately set as appropriate in accordance with the tendency of the main device or the wearer (user) to walk.

また、このステップS13では、上述のステップS8における第一セット波形Wd1と第二セット波形Wd2との比較と同様にして、第一セット波形Wd1と第三セット波形Wd3とを比較する。つまり、CPU16は、第一セット波形Wd1と第三セット波形Wd3との各時間幅を比較して、当該時間幅が同等である場合に、第一セット波形Wd1と第三セット波形Wd3とが同等であると判定する。より詳しくは、CPU16は、第三セット波形Wd3の時間幅が、第一セット波形Wd1の時間幅に対して±10%以上異なる場合に、これらの時間幅が同等ではないと判定し、ひいては、第一セット波形Wd1と第三セット波形Wd3とが同等ではないと判定する。
なお、このステップS13は、デジタル波形Wdである第一セット波形Wd1及び第三セット波形Wd3に代えて、原波形Waである第一セット波形Wa1及び第三セット波形Wa3(図6及び図7参照)を比較することとしてもよい点についても、上述のステップS8と同様である。
In step S13, the first set waveform Wd1 and the third set waveform Wd3 are compared in the same manner as the comparison between the first set waveform Wd1 and the second set waveform Wd2 in step S8 described above. That is, the CPU 16 compares the time widths of the first set waveform Wd1 and the third set waveform Wd3, and when the time widths are equal, the first set waveform Wd1 and the third set waveform Wd3 are equivalent. It is determined that More specifically, when the time width of the third set waveform Wd3 differs by ± 10% or more with respect to the time width of the first set waveform Wd1, the CPU 16 determines that these time widths are not equal, and thus It is determined that the first set waveform Wd1 and the third set waveform Wd3 are not equivalent.
In this step S13, instead of the first set waveform Wd1 and the third set waveform Wd3 which are the digital waveforms Wd, the first set waveform Wa1 and the third set waveform Wa3 which are the original waveforms Wa (see FIGS. 6 and 7). ) May be compared with the above-described step S8.

このステップS13において、第一セット波形Wd1と第三セット波形Wd3とが同等ではないと判定した場合(ステップS13;No)、CPU16は、後述のステップS17へ移行する。   In step S13, when it is determined that the first set waveform Wd1 and the third set waveform Wd3 are not equivalent (step S13; No), the CPU 16 proceeds to step S17 described later.

また、ステップS13において、第一セット波形Wd1と第三セット波形Wd3とが同等であると判定した場合には(ステップS13;Yes)、CPU16は、記憶部14のフラグ記憶領域143に記憶されたFフラグがONに設定されているか否かを判定する(ステップS14)。   When it is determined in step S13 that the first set waveform Wd1 and the third set waveform Wd3 are equivalent (step S13; Yes), the CPU 16 stores the flag in the flag storage area 143 of the storage unit 14. It is determined whether or not the F flag is set to ON (step S14).

このステップS14において、FフラグがONに設定されていると判定した場合(ステップS14;Yes)、CPU16は、記憶部14の歩数データ記憶領域141に記憶されている歩数値を1歩減らして記憶させ直す(ステップS15)。   If it is determined in step S14 that the F flag is set to ON (step S14; Yes), the CPU 16 stores the step value stored in the step count data storage area 141 of the storage unit 14 by one step. (Step S15).

つまり、このステップS15では、第一セット波形Wd1と第三セット波形Wd3とが同等であり、且つ、第二セット波形Wd2の時間幅が第一セット波形Wd1の時間幅よりも短いことに基づいて、CPU16は、第二セット波形Wd2に基づく歩数値の計数に、チャタリングなどに起因するカウント過多があったと判断する。そこで、CPU16は、第二セット波形Wd2での各歩数時の時間幅を第一セット波形Wd1での各歩数時の時間幅に合わせるようにして、当該第二セット波形Wd2に基づく歩数値を減らす補正を行って、このカウント過多を解消する。   That is, in this step S15, the first set waveform Wd1 and the third set waveform Wd3 are equivalent, and the time width of the second set waveform Wd2 is shorter than the time width of the first set waveform Wd1. The CPU 16 determines that there is an excessive count due to chattering or the like in the counting of the step value based on the second set waveform Wd2. Therefore, the CPU 16 reduces the step value based on the second set waveform Wd2 by matching the time width at each step in the second set waveform Wd2 with the time width at each step in the first set waveform Wd1. Correction is performed to eliminate this excessive count.

また、上述のステップS14において、FフラグがONに設定されていないと判定した場合、すなわちSフラグがONに設定されていると判定した場合には(ステップS14;No)、CPU16は、記憶部14の歩数データ記憶領域141に記憶されている歩数値を1歩増やして記憶させ直す(ステップS16)。   When it is determined in step S14 that the F flag is not set to ON, that is, when it is determined that the S flag is set to ON (step S14; No), the CPU 16 stores the storage unit. The step count value stored in the 14 step count data storage area 141 is increased by one step and stored again (step S16).

つまり、このステップS16では、第一セット波形Wd1と第三セット波形Wd3とが同等であり、且つ、第二セット波形Wd2の時間幅が第一セット波形Wd1の時間幅よりも長いことに基づいて、CPU16は、第二セット波形Wd2に基づく歩数値の計数にカウント抜けがあったと判断する。そこで、CPU16は、第二セット波形Wd2での各歩数時の時間幅を第一セット波形Wd1での各歩数時の時間幅に合わせるようにして、当該第二セット波形Wd2に基づく歩数値を増やす補正を行って、このカウント抜けを解消する。   That is, in step S16, the first set waveform Wd1 and the third set waveform Wd3 are equivalent, and the time width of the second set waveform Wd2 is longer than the time width of the first set waveform Wd1. The CPU 16 determines that there is a missing count in the step count counting based on the second set waveform Wd2. Therefore, the CPU 16 increases the step value based on the second set waveform Wd2 by matching the time width at each step in the second set waveform Wd2 with the time width at each step in the first set waveform Wd1. Correction is performed to eliminate this missing count.

次に、CPU16は、記憶部14のフラグ記憶領域143に記憶されたFフラグ及びSフラグのON設定をクリアすることで、これらFフラグ及びSフラグをOFFに設定し、このときの歩数値と対応付けて当該フラグ記憶領域143に記憶させ直して(ステップS17)、上述のステップS1へ移行する。   Next, the CPU 16 clears the ON setting of the F flag and the S flag stored in the flag storage area 143 of the storage unit 14 to set the F flag and the S flag to OFF. The information is stored again in the flag storage area 143 in association with each other (step S17), and the process proceeds to step S1 described above.

[動作例]
続いて、上述の携帯端末装置1の動作について、具体例を示して説明する。
[Operation example]
Subsequently, the operation of the mobile terminal device 1 described above will be described with a specific example.

<動作例1>
まず、動作例1として、例えばユーザの立脚挙動以外の動作に起因する歩数値のカウント抜けが発生した場合の携帯端末装置1の動作について説明する。より詳しくは、この動作例1では、所定歩数N=4,他の所定歩数M=4として、4歩分の原波形Wa又はデジタル波形Wdが1セットとされたときの歩数計数処理において、ユーザの実際の5歩目に歩数値のカウント抜けが発生した場合の携帯端末装置1の動作について説明する。なお、以下では、「実際の」等の記載を付して特に断らない限り、歩数値は計数されたものを指すこととする。
<Operation example 1>
First, as an operation example 1, for example, an operation of the mobile terminal device 1 in a case where a missing count of step values due to an operation other than the user's standing behavior occurs will be described. More specifically, in this operation example 1, in the step counting process when the predetermined number of steps N = 4 and the other predetermined number of steps M = 4, the original waveform Wa or the digital waveform Wd for four steps is set as one set. Next, the operation of the mobile terminal device 1 when a missing step count occurs in the actual fifth step will be described. In the following description, unless otherwise specified with a description such as “actual”, the step value refers to the counted value.

図6は、歩数値のカウント抜けが発生した場合の加速度の原波形Wa及びデジタル波形Wdを示す図である。   FIG. 6 is a diagram showing an original waveform Wa and a digital waveform Wd of acceleration when a missing count of step values occurs.

まず、ユーザが、携帯端末装置1を手首に装着し、所定の操作を行って歩数係数処理を実行したうえで略一定周期の歩行を開始すると、加速度センサー13aがON状態に設定されて携帯端末装置1に加わる加速度が計測され(ステップS1)、この計測値から重力方向成分の加速度が抽出(検出)される(ステップS2)。   First, when the user wears the mobile terminal device 1 on the wrist, performs a predetermined operation to execute the step coefficient processing, and starts walking with a substantially constant cycle, the acceleration sensor 13a is set to the ON state and the mobile terminal The acceleration applied to the apparatus 1 is measured (step S1), and the acceleration of the gravity direction component is extracted (detected) from the measured value (step S2).

次に、図6に示すように、抽出された加速度の原波形Waに基づいて、ユーザの1歩に相当する1つのパルスを有するデジタル波形Wdが生成され、当該デジタル波形Wdに基づいてユーザの脚が着地したと判定されて(ステップS3;Yes)、記憶部14の歩数データ記憶領域141に記憶されている歩数値が1歩増加される(ステップS4)。そして、このときの加速度の原波形Wa及びデジタル波形Wdが、1歩目のものとして記憶部14の波形データ記憶領域142に記憶される(ステップS5)。   Next, as shown in FIG. 6, a digital waveform Wd having one pulse corresponding to one step of the user is generated based on the extracted original waveform Wa of acceleration, and based on the digital waveform Wd, the user's digital waveform Wd is generated. It is determined that the leg has landed (step S3; Yes), and the step count value stored in the step count data storage area 141 of the storage unit 14 is increased by one step (step S4). Then, the original waveform Wa and the digital waveform Wd of acceleration at this time are stored in the waveform data storage area 142 of the storage unit 14 as the first step (step S5).

次に、Fフラグ及びSフラグが何れもOFFのままであり(ステップS6;Yes)、且つ、未だ5歩(N+1歩)分の加速度の原波形Wa及びデジタル波形Wdが記憶されていないため(ステップS7;No)、ユーザの歩行の継続に伴って、2歩目から4歩目までが1歩目と同様に計数され、そのときの加速度の原波形Wa及びデジタル波形Wdが記憶される(ステップS1〜S3;Yes,S4〜S6;Yes,S7;No)。   Next, both the F flag and the S flag remain OFF (step S6; Yes), and the original waveform Wa and the digital waveform Wd of acceleration for 5 steps (N + 1 steps) are not yet stored ( In step S7; No), as the user continues walking, the second to fourth steps are counted in the same manner as the first step, and the original waveform Wa and the digital waveform Wd of the acceleration at that time are stored ( Steps S1 to S3; Yes, S4 to S6; Yes, S7; No).

次に、ユーザの実際の5歩目において、それまでと同様に加速度が計測されるものの(ステップS1,S2)、加速度の原波形Waのピークが正の閾値T1を超えないまま負の閾値T2を超えたために、ユーザの脚が着地したと判定されない(ステップS3;No)。そのため、この実際の5歩目が計数されないまま(ステップS5,S6;Yes,S7;No)、続く実際の6歩目での着地判定(ステップS1〜S3;Yes)によって、5歩目が計数され(ステップS4)、そのときの加速度の原波形Wa及びデジタル波形Wdが記憶される(ステップS5)。つまり、実際の5歩目において歩数値のカウント抜けが発生し、実際の5歩目と6歩目の加速度の原波形Wa及びデジタル波形Wdが、5歩目のものとして記憶されてしまう。   Next, in the actual fifth step of the user, the acceleration is measured as before (steps S1 and S2), but the peak of the original waveform Wa of the acceleration does not exceed the positive threshold T1, and the negative threshold T2 Therefore, it is not determined that the user's leg has landed (step S3; No). Therefore, the actual fifth step is not counted (steps S5, S6; Yes, S7; No), and the fifth step is counted by the subsequent actual landing determination (steps S1 to S3; Yes). The original acceleration waveform Wa and the digital waveform Wd at that time are stored (step S5). That is, the missing step count is generated at the actual fifth step, and the original acceleration waveform Wa and the digital waveform Wd of the actual acceleration at the fifth and sixth steps are stored as the fifth step.

次に、Fフラグ及びSフラグが何れもOFFのままであり(ステップS6;Yes)、5歩(N+1歩)分の加速度の原波形Wa及びデジタル波形Wdが記憶部14の波形データ記憶領域142に記憶されているため(ステップS7;Yes)、1〜4歩目の4歩分の第一セット波形Wd1と、2〜5歩目の4歩分の第二セット波形Wd2とが、同等であるか否かが判定される(ステップS8)。   Next, both the F flag and the S flag remain OFF (step S6; Yes), the original waveform Wa and the digital waveform Wd of acceleration for five steps (N + 1 steps) are stored in the waveform data storage area 142 of the storage unit 14. (Step S7; Yes), the first set waveform Wd1 for the four steps of the first to fourth steps is equivalent to the second set waveform Wd2 of the four steps of the second to fifth steps. It is determined whether or not there is (step S8).

このとき、ユーザは一定周期t[秒]の歩行を行っているので、第一セット波形Wd1の時間幅が4tであるのに対し、第二セット波形Wd2の時間幅は5tとなる。したがって、第二セット波形Wd2の時間幅が第一セット波形Wd1の時間幅に対して25%も大きく、±10%以上異なっているため、これら第一セット波形Wd1と第二セット波形Wd2とは同等でないと判定される(ステップS8;No)。   At this time, since the user is walking with a fixed period t [second], the time width of the first set waveform Wd1 is 4t, whereas the time width of the second set waveform Wd2 is 5t. Therefore, since the time width of the second set waveform Wd2 is 25% larger than the time width of the first set waveform Wd1, and is different by ± 10% or more, the first set waveform Wd1 and the second set waveform Wd2 are different from each other. It is determined that they are not equivalent (step S8; No).

次に、第二セット波形Wd2の時間幅(5t)が第一セット波形Wd1の時間幅(4t)よりも長いため(ステップS9;No)、記憶部14のフラグ記憶領域143に記憶されたSフラグがONに設定され、このときの歩数値(5歩)と対応付けて当該フラグ記憶領域143に記憶される(ステップS11)。   Next, since the time width (5t) of the second set waveform Wd2 is longer than the time width (4t) of the first set waveform Wd1 (step S9; No), S stored in the flag storage area 143 of the storage unit 14 is stored. The flag is set to ON, and stored in the flag storage area 143 in association with the step value (5 steps) at this time (step S11).

その後、5歩目から3歩が経過する8歩目までは、上記同様に歩数値の計数やデジタル波形Wdの記憶等が順次繰り返される(ステップS1〜S3;Yes,S4〜S6;No,S12;No)。   Thereafter, from the 5th step to the 8th step in which 3 steps have elapsed, the counting of the step value, the storage of the digital waveform Wd, etc. are sequentially repeated in the same manner as described above (steps S1 to S3; Yes, S4 to S6; No, S12). No).

次に、9歩目の計数やデジタル波形Wdの記憶等が上記同様に行われると(ステップS1〜S3;Yes,S4,S5)、このときに、SフラグがONであり(ステップS6;No)、SフラグがONに設定された5歩目から4歩(M歩)が経過するため(ステップS12;Yes)、1〜4歩目の4歩分の第一セット波形Wd1と、6〜9歩目の新たな4歩分の第三セット波形Wd3とが、同等であるか否かが判定される(ステップS13)。   Next, when counting of the ninth step, storage of the digital waveform Wd, and the like are performed in the same manner as described above (Steps S1 to S3; Yes, S4, S5), the S flag is ON (Step S6; No). ) Since four steps (M steps) have elapsed from the fifth step with the S flag set to ON (step S12; Yes), the first set waveform Wd1 for the four steps of the first to fourth steps and 6 to It is determined whether or not the third set waveform Wd3 for the new four steps of the ninth step is equivalent (step S13).

なお、Mの値が、N以上の数値範囲において実施製品に応じて適宜設定されるものであることは、上述した通りである。例えば、第二セット波形Wd2直後のものを含む5歩目と6歩目(実際の6歩目と7歩目)が、通常の良好な他の歩と異なるような場合には、M=5と設定されることが好ましい。この場合、第二セット波形Wd2(2〜5歩目)よりも2歩後からの7〜10歩目のデジタル波形Wdを第三セット波形Wd3として、当該第三セット波形Wd3と、1〜4歩目の4歩分の第一セット波形Wd1とが、同等であるか否かが判定されることとなる。   In addition, as described above, the value of M is appropriately set according to the implementation product within a numerical range of N or more. For example, if the 5th and 6th steps (actual 6th and 7th steps) including those immediately after the second set waveform Wd2 are different from other normal good steps, M = 5 Is preferably set. In this case, the digital waveform Wd at the 7th to 10th steps after 2 steps from the second set waveform Wd2 (2nd to 5th steps) is set as the third set waveform Wd3, and the third set waveform Wd3 and 1-4. It is determined whether or not the first set waveform Wd1 for the four steps of the steps is equivalent.

このとき、ユーザは6歩目以降も一定周期t[秒]の歩行を行っているので、第一セット波形Wd1の時間幅が4tであるのに対し、第三セット波形Wd3の時間幅も4tとなる。したがって、第三セット波形Wd3の時間幅が第一セット波形Wd1の時間幅に対して±10%以上異なっていないため、これら第一セット波形Wd1と第三セット波形Wd3とは同等であると判定される(ステップS13;Yes)。   At this time, since the user is walking at a constant period t [seconds] after the sixth step, the time width of the first set waveform Wd1 is 4t, while the time width of the third set waveform Wd3 is also 4t. It becomes. Therefore, since the time width of the third set waveform Wd3 does not differ by ± 10% or more with respect to the time width of the first set waveform Wd1, it is determined that the first set waveform Wd1 and the third set waveform Wd3 are equivalent. (Step S13; Yes).

なお、仮にここで、第三セット波形Wd3の時間幅が第一セット波形Wd1の時間幅に対して±10%以上異なっており、第一セット波形Wd1と第三セット波形Wd3とが同等でないと判定された場合には(ステップS13;No)、第一セット波形Wd1から第三セット波形Wd3に掛けて連続的に時間幅(すなわち歩行周期)が変化していると判断され、カウント抜けが発生しているとは判断されない。これにより、ユーザが歩行周期を変化させたときに、歩数値にカウント抜けが発生したと誤認してしまうことを防止することができる。   Note that, here, the time width of the third set waveform Wd3 is different by ± 10% or more with respect to the time width of the first set waveform Wd1, and the first set waveform Wd1 and the third set waveform Wd3 are not equal. When it is determined (step S13; No), it is determined that the time width (that is, the walking cycle) is continuously changed from the first set waveform Wd1 to the third set waveform Wd3, and count missing occurs. It is not judged to be doing. Thereby, when a user changes a walk cycle, it can prevent misidentifying that the count omission occurred in the step value.

次に、記憶部14のフラグ記憶領域143に記憶されたFフラグがOFFに設定されており、SフラグがONに設定されているため(ステップS14;No)、第二セット波形Wd2に基づく歩数値の計数にカウント抜けがあったと判断されて、記憶部14の歩数データ記憶領域141に記憶されている歩数値を1歩増やす補正が行われる(ステップS16)。   Next, since the F flag stored in the flag storage area 143 of the storage unit 14 is set to OFF and the S flag is set to ON (step S14; No), the step based on the second set waveform Wd2 is performed. It is determined that there is a missing count in the numerical value count, and correction is performed to increase the step count value stored in the step count data storage area 141 of the storage unit 14 by one step (step S16).

こうして、歩数値のカウント抜けが解消されて、正しい歩数値に補正された後、Fフラグ及びSフラグがOFFの設定にクリアされたうえで(ステップS17)、ユーザの歩行に併せて上記同様の処理が継続される。   Thus, after the omission of the step count count is corrected and corrected to the correct step count value, the F flag and the S flag are cleared to the OFF setting (step S17), and the same as described above in accordance with the user's walk. Processing continues.

<動作例2>
続いて、動作例2として、例えばチャタリングに起因する歩数値のカウント過多が発生した場合の携帯端末装置1の動作について説明する。より詳しくは、この動作例2では、所定歩数N=4,他の所定歩数M=5として、4歩分の原波形Wa又はデジタル波形Wdが1セットとされたときの歩数計数処理において、ユーザの実際の4歩目において歩数値のカウント過多が発生した場合の携帯端末装置1の動作について説明する。
<Operation example 2>
Subsequently, as an operation example 2, an operation of the mobile terminal device 1 when an excessive count of step values due to chattering occurs will be described. More specifically, in this operation example 2, in the step counting process when the predetermined number of steps N = 4 and the other predetermined number of steps M = 5, the original waveform Wa or the digital waveform Wd for four steps is set as one set. The operation of the mobile terminal device 1 when an excessive count of step values occurs in the actual fourth step will be described.

図7は、歩数値のカウント過多が発生した場合の加速度の原波形Wa及びデジタル波形Wdを示す図である。   FIG. 7 is a diagram illustrating an original waveform Wa and a digital waveform Wd of acceleration when an excessive count of step values occurs.

まず、ユーザが、携帯端末装置1を手首に装着し、所定の操作を行って歩数係数処理を実行したうえで略一定周期の歩行を開始すると、図7に示すように、1歩目から3歩目までは、上記動作例1と同様にして、計測した加速度に基づいて歩数値が計数され、加速度の原波形Wa及びデジタル波形Wdが記憶される(ステップS1〜S3;Yes,S4〜S6;Yes,S7;No)。   First, when the user wears the portable terminal device 1 on the wrist, performs a predetermined number of operations by performing a predetermined operation, and starts walking with a substantially constant cycle, as shown in FIG. The steps are counted based on the measured acceleration, and the original acceleration waveform Wa and the digital waveform Wd are stored (steps S1 to S3; Yes, S4 to S6). ; Yes, S7; No).

次に、ユーザの4歩目において、それまでと同様に歩数値が計数されて加速度の原波形Wa及びデジタル波形Wdも記憶されるものの(ステップS1〜S3;Yes,S4〜S6;Yes,S7;No)、このときにチャタリングが発生してしまう。その結果、この4歩目での原波形Wa及びデジタル波形Wdの時間幅がやや短くなるとともに、実際の歩行によるものではない原波形Waのピークが閾値T1,T2を越えることによって、当該ピークが5歩目として計数され、その原波形Wa及びデジタル波形Wdが記憶される(ステップS1〜S3;Yes,S4,S5)。つまり、実際の4歩目においてチャタリングによる歩数値のカウント過多が発生し、実際の4歩目だけの加速度の原波形Wa及びデジタル波形Wdが、4歩目及び5歩目のものとして記憶されてしまう。   Next, in the fourth step of the user, the step value is counted and the acceleration original waveform Wa and the digital waveform Wd are stored as before (steps S1 to S3; Yes, S4 to S6; Yes, S7). No), chattering occurs at this time. As a result, the time widths of the original waveform Wa and the digital waveform Wd at the fourth step are slightly shortened, and the peak of the original waveform Wa that is not caused by actual walking exceeds the thresholds T1 and T2, so that the peak is reduced. Counting as the fifth step, the original waveform Wa and the digital waveform Wd are stored (steps S1 to S3; Yes, S4, S5). That is, an excessive count of step values due to chattering occurs in the actual fourth step, and the original waveform Wa and the digital waveform Wd of the acceleration of only the actual fourth step are stored as those of the fourth and fifth steps. End up.

次に、Fフラグ及びSフラグが何れもOFFのままであり(ステップS6;Yes)、5歩(N+1歩)分の加速度の原波形Wa及びデジタル波形Wdが記憶部14の波形データ記憶領域142に記憶されているため(ステップS7;Yes)、1〜4歩目の4歩分の第一セット波形Wd1と、2〜5歩目の4歩分の第二セット波形Wd2とが、同等であるか否かが判定される(ステップS8)。   Next, both the F flag and the S flag remain OFF (step S6; Yes), the original waveform Wa and the digital waveform Wd of acceleration for five steps (N + 1 steps) are stored in the waveform data storage area 142 of the storage unit 14. (Step S7; Yes), the first set waveform Wd1 for the four steps of the first to fourth steps is equivalent to the second set waveform Wd2 of the four steps of the second to fifth steps. It is determined whether or not there is (step S8).

このとき、ユーザは一定周期t[秒]の歩行を行っているが、チャタリングの発生によって4歩目が0.75tと計測され、5歩目が0.25tと計測されるため、第一セット波形Wd1の時間幅が3.75tであるのに対し、第二セット波形Wd2の時間幅は3tとなる。したがって、第二セット波形Wd2の時間幅が第一セット波形Wd1の時間幅に対して20%も小さく、±10%以上異なっているため、これら第一セット波形Wd1と第二セット波形Wd2とは同等でないと判定される(ステップS8;No)。   At this time, the user is walking with a fixed period t [second], but the fourth set is measured as 0.75 t and the fifth set is measured as 0.25 t due to the occurrence of chattering. The time width of the waveform Wd1 is 3.75t, while the time width of the second set waveform Wd2 is 3t. Therefore, since the time width of the second set waveform Wd2 is 20% smaller than the time width of the first set waveform Wd1, and is different by ± 10% or more, the first set waveform Wd1 and the second set waveform Wd2 are different from each other. It is determined that they are not equivalent (step S8; No).

次に、第二セット波形Wd2の時間幅(3t)が第一セット波形Wd1の時間幅(3.75t)よりも短いため(ステップS9;Yes)、記憶部14のフラグ記憶領域143に記憶されたFフラグがONに設定され、このときの歩数値(5歩)と対応付けて当該フラグ記憶領域143に記憶される(ステップS10)。   Next, since the time width (3t) of the second set waveform Wd2 is shorter than the time width (3.75t) of the first set waveform Wd1 (step S9; Yes), it is stored in the flag storage area 143 of the storage unit 14. The F flag is set to ON, and stored in the flag storage area 143 in association with the step value (5 steps) at this time (step S10).

その後、5歩目から4歩が経過する9歩目までは、上記同様に歩数値の計数やデジタル波形Wdの記憶等が順次繰り返される(ステップS1〜S3;Yes,S4〜S6;No,S12;No)。   Thereafter, from the fifth step to the ninth step where four steps have elapsed, the counting of step values, the storage of the digital waveform Wd, etc. are sequentially repeated in the same manner as described above (steps S1 to S3; Yes, S4 to S6; No, S12). No).

次に、10歩目の計数やデジタル波形Wdの記憶等が上記同様に行われると(ステップS1〜S3;Yes,S4,S5)、このときに、FフラグがONであり(ステップS6;No)、FフラグがONに設定された5歩目から5歩(M歩)が経過するため(ステップS12;Yes)、1〜4歩目の4歩分の第一セット波形Wd1と、7〜10歩目の新たな4歩分の第三セット波形Wd3とが、同等であるか否かが判定される(ステップS13)。   Next, when counting of the 10th step, storage of the digital waveform Wd, etc. are performed in the same manner as described above (steps S1 to S3; Yes, S4, S5), the F flag is ON at this time (step S6; No) ) Since 5 steps (M steps) have elapsed from the 5th step in which the F flag is set to ON (step S12; Yes), the first set waveform Wd1 for the 4th step of the 1st to 4th steps and 7 to It is determined whether or not the third set waveform Wd3 for the new four steps of the tenth step is equivalent (step S13).

なお、Mの値が、N以上の数値範囲において実施製品に応じて適宜設定されるものであることは、上述した通りである。例えば、第二セット波形Wd2直後のものを含む5〜7歩目が、通常の良好な他の歩と異なるような場合には、M=6と設定されることが好ましい。この場合、第二セット波形Wd2(2〜5歩目)よりも3歩後からの8〜11歩目のデジタル波形Wdを第三セット波形Wd3として、当該第三セット波形Wd3と、1〜4歩目の4歩分の第一セット波形Wd1とが、同等であるか否かが判定されることとなる。   In addition, as described above, the value of M is appropriately set according to the implementation product within a numerical range of N or more. For example, when the 5th to 7th steps including those immediately after the second set waveform Wd2 are different from other normal good steps, it is preferable to set M = 6. In this case, the digital waveform Wd at the 8th to 11th steps after 3 steps from the second set waveform Wd2 (2nd to 5th steps) is set as the third set waveform Wd3, and the third set waveform Wd3 and 1 to 4 are used. It is determined whether or not the first set waveform Wd1 for the four steps of the steps is equivalent.

このとき、ユーザは7歩目以降も一定周期t[秒]の歩行を行っているので、第一セット波形Wd1の時間幅が3.75tであるのに対し、第三セット波形Wd3の時間幅は4tとなる。したがって、第三セット波形Wd3の時間幅が第一セット波形Wd1の時間幅に対して6.7%だけ大きく、±10%以上異なっていないため、これら第一セット波形Wd1と第三セット波形Wd3とは同等であると判定される(ステップS13;Yes)。   At this time, since the user is walking with a constant period t [seconds] after the seventh step, the time width of the first set waveform Wd1 is 3.75 t, whereas the time width of the third set waveform Wd3 is Is 4t. Therefore, since the time width of the third set waveform Wd3 is larger by 6.7% than the time width of the first set waveform Wd1, and does not differ by ± 10% or more, these first set waveform Wd1 and third set waveform Wd3 Are determined to be equivalent to each other (step S13; Yes).

なお、仮にここで、第三セット波形Wd3の時間幅が第一セット波形Wd1の時間幅に対して±10%以上異なっており、第一セット波形Wd1と第三セット波形Wd3とが同等でないと判定された場合には(ステップS13;No)、第一セット波形Wd1から第三セット波形Wd3に掛けて連続的に時間幅(すなわち歩行周期)が変化していると判断され、カウント過多が発生しているとは判断されない。これにより、ユーザが歩行周期を変化させたときに、歩数値にカウント過多が発生したと誤認してしまうことを防止することができる。   Note that, here, the time width of the third set waveform Wd3 is different by ± 10% or more with respect to the time width of the first set waveform Wd1, and the first set waveform Wd1 and the third set waveform Wd3 are not equal. When it is determined (step S13; No), it is determined that the time width (that is, the walking cycle) continuously changes from the first set waveform Wd1 to the third set waveform Wd3, and an excessive count occurs. It is not judged to be doing. Thereby, when the user changes the walking cycle, it can be prevented that the user misidentifies that the count value is excessive.

次に、記憶部14のフラグ記憶領域143に記憶されたFフラグがONに設定されているため(ステップS14;Yes)、第二セット波形Wd2に基づく歩数値の計数にカウント過多があったと判断されて、記憶部14の歩数データ記憶領域141に記憶されている歩数値を1歩減らす補正が行われる(ステップS15)。   Next, since the F flag stored in the flag storage area 143 of the storage unit 14 is set to ON (step S14; Yes), it is determined that there is an excessive count in counting the number of steps based on the second set waveform Wd2. Then, correction is performed to reduce the step value stored in the step count data storage area 141 of the storage unit 14 by one step (step S15).

こうして、歩数値のカウント過多が解消されて、正しい歩数値に補正された後、Fフラグ及びSフラグがOFFの設定にクリアされたうえで(ステップS17)、ユーザの歩行に併せて上記同様の処理が継続される。   In this way, after the excessive counting of the step value is resolved and corrected to the correct step value, the F flag and the S flag are cleared to the OFF setting (step S17), and the same as the above in conjunction with the user's walking. Processing continues.

以上、本実施形態によれば、図3のステップS4や、図4のステップS8,S13〜S16、図6、図7等に示したように、加速度の波形(原波形Wa又はそのデジタル波形Wd)に基づいて歩数値を計数し、所定歩数の1セット分の第一セット波形と、当該第一セット波形から1歩分だけ後にずらした1セット分の第二セット波形とが同等であるか否かを判定し、第一セット波形と第二セット波形とが同等でないと判定された場合に、第一セット波形と、第二セット波形よりも後の歩を最初の1歩とする1セット分の第三セット波形とが同等であるか否かを判定し、第一セット波形と第三セット波形とが同等であると判定された場合に、第二セット波形に基づく歩数値が補正される。
つまり、最初の第一セット波形と次の第二セット波形とが同等でなく、且つ、第一セット波形と新たな第三セット波形とが同等であった場合には、第二セット波形において何かしら不規則な歩行が検出されて、これによって歩数値が誤カウントされたと判断される。そして、第二セット波形での各歩数時の時間幅(各歩行の周期)を第一セット波形でのものに合わせるようにして、当該第二セット波形に基づく歩数値が補正される。これにより、ユーザが一定速度で歩行した場合を想定した補正用データを用いていた従来と異なり、ユーザの歩行速度が変化する場合であっても、適切に歩数値を補正して誤カウントを防止することができる。また、GPSセンサーなどの補正専用の部品を必要としていた従来と異なり、このような補正専用の部品を必要としない簡便な構成によって、歩数値の誤カウントを防止することができる。したがって、簡便な構成で、ユーザの歩行速度が変化する場合にも歩数値の誤カウントを防止することができる。
As described above, according to the present embodiment, as shown in step S4 of FIG. 3, steps S8, S13 to S16 of FIG. 4, FIG. 6, FIG. ), The first set waveform for one set of the predetermined number of steps is equal to the second set waveform for one set shifted by one step from the first set waveform. If it is determined that the first set waveform and the second set waveform are not equivalent, the first set waveform and one set in which the step after the second set waveform is the first step If the first set waveform and the third set waveform are determined to be equivalent, the step value based on the second set waveform is corrected. The
That is, if the first set waveform and the next second set waveform are not equivalent, and the first set waveform and the new third set waveform are equivalent, something in the second set waveform may occur. Irregular walking is detected, and it is determined that the number of steps is erroneously counted. And the step value based on the said 2nd set waveform is correct | amended so that the time width | variety (cycle of each walk) at the time of each step in a 2nd set waveform may match with the thing of a 1st set waveform. As a result, unlike the conventional case where correction data assuming that the user walks at a constant speed is used, even if the user's walking speed changes, the number of steps is appropriately corrected to prevent erroneous counting. can do. In addition, unlike the conventional case where a correction-specific component such as a GPS sensor is required, a simple configuration that does not require such a correction-specific component can prevent erroneous counting of step values. Therefore, it is possible to prevent erroneous counting of step values even when the user's walking speed changes with a simple configuration.

なお、本発明を適用可能な実施形態は、上述した実施形態に限定されることなく、本発明の趣旨を逸脱しない範囲で適宜変更可能である。   The embodiments to which the present invention can be applied are not limited to the above-described embodiments, and can be appropriately changed without departing from the spirit of the present invention.

例えば、本発明に係る携帯端末装置は、ユーザの手首に装着されずに、足首や胸部などに装着されることとしてもよい。   For example, the mobile terminal device according to the present invention may be attached to the ankle, chest, etc. without being attached to the user's wrist.

また、歩数計数処理におけるステップS5では、加速度の原波形Wa及びデジタル波形Wdを記憶部14の波形データ記憶領域142に記憶させることとしたが、ステップS8,S9及びS13において原波形Wa及びデジタル波形Wdのうちの何れか一方だけを用いてセット波形の比較を行うのであれば、ステップS5において記憶させる波形は、当該何れか一方のものだけでよい。またこの場合には、ステップS7において、N+1歩分のものが記憶されているか否かが判定される判定対象の波形も、当該何れか一方のものだけでよい。   In step S5 in the step counting process, the acceleration original waveform Wa and the digital waveform Wd are stored in the waveform data storage area 142 of the storage unit 14. However, in steps S8, S9, and S13, the original waveform Wa and the digital waveform are stored. If the set waveforms are compared using only one of Wd, only one of the waveforms may be stored in step S5. In this case, in step S7, only one of the waveforms to be determined may be determined as to whether or not N + 1 steps are stored.

以上、本発明のいくつかの実施形態を説明したが、本発明の範囲は、上述の実施形態に限定されるものではなく、特許請求の範囲に記載された発明の範囲とその均等の範囲を含む。
以下に、この出願の願書に最初に添付した特許請求の範囲に記載した発明を付記する。付記に記載した請求項の項番は、この出願の願書に最初に添付した特許請求の範囲の通りである。
〔付記〕
<請求項1>
ユーザの身体に装着可能な携帯端末装置において、
重力方向への加速度の波形を検出する波形検出手段と、
前記波形検出手段により検出された前記波形に基づいて歩数値を計数する歩数計数手段と、
連続する所定歩数を1セットとし、この1セット分の前記波形である第一セット波形と、当該第一セット波形から1歩分だけ後にずらした1セット分の前記波形である第二セット波形とを比較して、同等であるか否かを判定する第一波形比較手段と、
前記第一波形比較手段により前記第一セット波形と前記第二セット波形とが同等ではないと判定された場合に、前記第一セット波形と、前記第二セット波形よりも後の歩を最初の1歩とする1セット分の前記波形である第三セット波形とを比較して、同等であるか否かを判定する第二波形比較手段と、
前記第二波形比較手段により前記第一セット波形と前記第三セット波形とが同等であると判定された場合に、前記第二セット波形に基づく歩数値を増減させて補正する歩数補正手段と、
を備えることを特徴とする携帯端末装置。
<請求項2>
請求項1に記載の携帯端末装置において、
前記歩数補正手段は、前記第二波形比較手段により前記第一セット波形と前記第三セット波形とが同等であると判定された場合に、前記第二セット波形での各歩数時の時間幅を前記第一セット波形での各歩数時の時間幅に合わせるようにして、当該第二セット波形に基づく歩数値を増減させて補正することを特徴とする携帯端末装置。
<請求項3>
請求項1又は2に記載の携帯端末装置において、
前記第一波形比較手段は、前記第一セット波形と前記第二セット波形との振幅又は時間幅を比較して、同等であるか否かを判定し、
前記第二波形比較手段は、前記第一セット波形と前記第三セット波形との振幅又は時間幅を比較して、同等であるか否かを判定することを特徴とする携帯端末装置。
<請求項4>
請求項1〜3の何れか一項に記載の携帯端末装置において、
前記第一波形比較手段は、前記第二セット波形の時間幅が前記第一セット波形の時間幅に対して10%以上異なる場合に、当該第一セット波形と当該第二セット波形とが同等ではないと判定し、
前記第二波形比較手段は、前記第三セット波形の時間幅が前記第一セット波形の時間幅に対して10%以上異なる場合に、当該第一セット波形と当該第三セット波形とが同等ではないと判定することを特徴とする携帯端末装置。
<請求項5>
請求項1〜4の何れか一項に記載の携帯端末装置において、
前記第一波形比較手段により前記第一セット波形と前記第二セット波形とが同等ではないと判定された場合に、前記第二セット波形の時間幅が前記第一セット波形の時間幅よりも短いか否かを判定する波形時間幅比較手段を備え、
前記歩数補正手段は、
前記第二波形比較手段により前記第一セット波形と前記第三セット波形とが同等であると判定されたときであって、
前記波形時間幅比較手段により前記第二セット波形の時間幅が前記第一セット波形の時間幅よりも短いと判定された場合には、当該第二セット波形に基づく歩数値を減らす補正を行い、
前記波形時間幅比較手段により前記第二セット波形の時間幅が前記第一セット波形の時間幅よりも長いと判定された場合には、当該第二セット波形に基づく歩数値を増やす補正を行うことを特徴とする携帯端末装置。
<請求項6>
ユーザの身体に装着可能な携帯端末装置に備えられ、ユーザの歩数値を計数する歩数計数プログラムにおいて、
前記携帯端末装置に、
重力方向への加速度の波形を検出する波形検出機能と、
前記波形検出機能により検出された前記波形に基づいて歩数値を計数する歩数計数機能と、
連続する所定歩数を1セットとし、この1セット分の前記波形である第一セット波形と、当該第一セット波形から1歩分だけ後にずらした1セット分の前記波形である第二セット波形とを比較して、同等であるか否かを判定する第一波形比較機能と、
前記第一波形比較機能により前記第一セット波形と前記第二セット波形とが同等ではないと判定された場合に、前記第一セット波形と、前記第二セット波形よりも後の歩を最初の1歩とする1セット分の前記波形である第三セット波形とを比較して、同等であるか否かを判定する第二波形比較機能と、
前記第二波形比較機能により前記第一セット波形と前記第三セット波形とが同等であると判定された場合に、前記第二セット波形に基づく歩数値を増減させて補正する歩数補正機能と、
を実現させることを特徴とする歩数計数プログラム。
As mentioned above, although several embodiment of this invention was described, the scope of the present invention is not limited to the above-mentioned embodiment, The range of the invention described in the claim, and its equivalent range Including.
The invention described in the scope of claims attached to the application of this application will be added below. The item numbers of the claims described in the appendix are as set forth in the claims attached to the application of this application.
[Appendix]
<Claim 1>
In a mobile terminal device that can be worn on a user's body,
Waveform detecting means for detecting a waveform of acceleration in the direction of gravity;
Step counting means for counting step values based on the waveform detected by the waveform detecting means;
A predetermined number of consecutive steps is set as one set, and the first set waveform that is the waveform for the one set, and the second set waveform that is the waveform for one set shifted by one step from the first set waveform, A first waveform comparison means for determining whether or not they are equivalent,
When the first waveform comparison means determines that the first set waveform and the second set waveform are not equivalent, the first set waveform and the steps after the second set waveform are the first steps A second waveform comparison means for comparing the third set waveform, which is the waveform for one set as one step, and determining whether or not they are equivalent;
When the second waveform comparison means determines that the first set waveform and the third set waveform are equivalent, the step number correcting means for correcting by increasing or decreasing the step value based on the second set waveform;
A portable terminal device comprising:
<Claim 2>
The mobile terminal device according to claim 1,
The step count correcting means, when the second waveform comparing means determines that the first set waveform and the third set waveform are equivalent, calculates a time width at each step count in the second set waveform. A portable terminal device that corrects by increasing or decreasing a step value based on the second set waveform so as to match a time width at each step count in the first set waveform.
<Claim 3>
The portable terminal device according to claim 1 or 2,
The first waveform comparison means compares the amplitude or time width of the first set waveform and the second set waveform to determine whether or not they are equivalent.
The portable terminal device, wherein the second waveform comparison means compares the amplitude or time width of the first set waveform and the third set waveform to determine whether or not they are equivalent.
<Claim 4>
In the portable terminal device according to any one of claims 1 to 3,
When the time width of the second set waveform is different by 10% or more with respect to the time width of the first set waveform, the first waveform comparison means is not equivalent to the first set waveform and the second set waveform. It is determined that
When the time width of the third set waveform is different by 10% or more with respect to the time width of the first set waveform, the second waveform comparison means is not equivalent to the first set waveform and the third set waveform. It is determined that there is no portable terminal device.
<Claim 5>
In the portable terminal device as described in any one of Claims 1-4,
When the first waveform comparison means determines that the first set waveform and the second set waveform are not equivalent, the time width of the second set waveform is shorter than the time width of the first set waveform. Waveform time width comparing means for determining whether or not,
The step count correcting means includes:
When it is determined by the second waveform comparison means that the first set waveform and the third set waveform are equivalent,
If it is determined by the waveform time width comparison means that the time width of the second set waveform is shorter than the time width of the first set waveform, correction is performed to reduce the step value based on the second set waveform,
When it is determined by the waveform time width comparison means that the time width of the second set waveform is longer than the time width of the first set waveform, correction is performed to increase the step value based on the second set waveform. The portable terminal device characterized by this.
<Claim 6>
In a step counting program that is provided in a portable terminal device that can be worn on the user's body and counts the number of steps of the user,
In the portable terminal device,
A waveform detection function that detects the acceleration waveform in the direction of gravity,
A step counting function for counting step values based on the waveform detected by the waveform detection function;
A predetermined number of consecutive steps is set as one set, and the first set waveform that is the waveform for the one set, and the second set waveform that is the waveform for one set shifted by one step from the first set waveform, And a first waveform comparison function for determining whether or not they are equivalent,
If it is determined by the first waveform comparison function that the first set waveform and the second set waveform are not equivalent, the first set waveform and the steps after the second set waveform are A second waveform comparison function that compares the third set waveform, which is the waveform for one set as one step, and determines whether or not they are equivalent;
When the second waveform comparison function determines that the first set waveform and the third set waveform are equivalent, a step number correction function for correcting by increasing or decreasing the step value based on the second set waveform;
A step counting program characterized by realizing the above.

1 携帯端末装置
13a 加速度センサー
16 CPU
140 歩数計数プログラム
1 mobile terminal device 13a acceleration sensor 16 CPU
140 step counting program

Claims (6)

ユーザの身体に装着可能な携帯端末装置において、
重力方向への加速度の波形を検出する波形検出手段と、
前記波形検出手段により検出された前記波形に基づいて歩数値を計数する歩数計数手段と、
連続する所定歩数を1セットとし、この1セット分の前記波形である第一セット波形と、当該第一セット波形から1歩分だけ後にずらした1セット分の前記波形である第二セット波形とを比較して、同等であるか否かを判定する第一波形比較手段と、
前記第一波形比較手段により前記第一セット波形と前記第二セット波形とが同等ではないと判定された場合に、前記第一セット波形と、前記第二セット波形よりも後の歩を最初の1歩とする1セット分の前記波形である第三セット波形とを比較して、同等であるか否かを判定する第二波形比較手段と、
前記第二波形比較手段により前記第一セット波形と前記第三セット波形とが同等であると判定された場合に、前記第二セット波形に基づく歩数値を増減させて補正する歩数補正手段と、
を備えることを特徴とする携帯端末装置。
In a mobile terminal device that can be worn on a user's body,
Waveform detecting means for detecting a waveform of acceleration in the direction of gravity;
Step counting means for counting step values based on the waveform detected by the waveform detecting means;
A predetermined number of consecutive steps is set as one set, and the first set waveform that is the waveform for the one set, and the second set waveform that is the waveform for one set shifted by one step from the first set waveform, A first waveform comparison means for determining whether or not they are equivalent,
When the first waveform comparison means determines that the first set waveform and the second set waveform are not equivalent, the first set waveform and the steps after the second set waveform are the first steps A second waveform comparison means for comparing the third set waveform, which is the waveform for one set as one step, and determining whether or not they are equivalent;
When the second waveform comparison means determines that the first set waveform and the third set waveform are equivalent, the step number correcting means for correcting by increasing or decreasing the step value based on the second set waveform;
A portable terminal device comprising:
請求項1に記載の携帯端末装置において、
前記歩数補正手段は、前記第二波形比較手段により前記第一セット波形と前記第三セット波形とが同等であると判定された場合に、前記第二セット波形での各歩数時の時間幅を前記第一セット波形での各歩数時の時間幅に合わせるようにして、当該第二セット波形に基づく歩数値を増減させて補正することを特徴とする携帯端末装置。
The mobile terminal device according to claim 1,
The step count correcting means, when the second waveform comparing means determines that the first set waveform and the third set waveform are equivalent, calculates a time width at each step count in the second set waveform. A portable terminal device that corrects by increasing or decreasing a step value based on the second set waveform so as to match a time width at each step count in the first set waveform.
請求項1又は2に記載の携帯端末装置において、
前記第一波形比較手段は、前記第一セット波形と前記第二セット波形との振幅又は時間幅を比較して、同等であるか否かを判定し、
前記第二波形比較手段は、前記第一セット波形と前記第三セット波形との振幅又は時間幅を比較して、同等であるか否かを判定することを特徴とする携帯端末装置。
The portable terminal device according to claim 1 or 2,
The first waveform comparison means compares the amplitude or time width of the first set waveform and the second set waveform to determine whether or not they are equivalent.
The portable terminal device, wherein the second waveform comparison means compares the amplitude or time width of the first set waveform and the third set waveform to determine whether or not they are equivalent.
請求項1〜3の何れか一項に記載の携帯端末装置において、
前記第一波形比較手段は、前記第二セット波形の時間幅が前記第一セット波形の時間幅に対して10%以上異なる場合に、当該第一セット波形と当該第二セット波形とが同等ではないと判定し、
前記第二波形比較手段は、前記第三セット波形の時間幅が前記第一セット波形の時間幅に対して10%以上異なる場合に、当該第一セット波形と当該第三セット波形とが同等ではないと判定することを特徴とする携帯端末装置。
In the portable terminal device according to any one of claims 1 to 3,
When the time width of the second set waveform is different by 10% or more with respect to the time width of the first set waveform, the first waveform comparison means is not equivalent to the first set waveform and the second set waveform. It is determined that
When the time width of the third set waveform is different by 10% or more with respect to the time width of the first set waveform, the second waveform comparison means is not equivalent to the first set waveform and the third set waveform. It is determined that there is no portable terminal device.
請求項1〜4の何れか一項に記載の携帯端末装置において、
前記第一波形比較手段により前記第一セット波形と前記第二セット波形とが同等ではないと判定された場合に、前記第二セット波形の時間幅が前記第一セット波形の時間幅よりも短いか否かを判定する波形時間幅比較手段を備え、
前記歩数補正手段は、
前記第二波形比較手段により前記第一セット波形と前記第三セット波形とが同等であると判定されたときであって、
前記波形時間幅比較手段により前記第二セット波形の時間幅が前記第一セット波形の時間幅よりも短いと判定された場合には、当該第二セット波形に基づく歩数値を減らす補正を行い、
前記波形時間幅比較手段により前記第二セット波形の時間幅が前記第一セット波形の時間幅よりも長いと判定された場合には、当該第二セット波形に基づく歩数値を増やす補正を行うことを特徴とする携帯端末装置。
In the portable terminal device as described in any one of Claims 1-4,
When the first waveform comparison means determines that the first set waveform and the second set waveform are not equivalent, the time width of the second set waveform is shorter than the time width of the first set waveform. Waveform time width comparing means for determining whether or not,
The step count correcting means includes:
When it is determined by the second waveform comparison means that the first set waveform and the third set waveform are equivalent,
If it is determined by the waveform time width comparison means that the time width of the second set waveform is shorter than the time width of the first set waveform, correction is performed to reduce the step value based on the second set waveform,
When it is determined by the waveform time width comparison means that the time width of the second set waveform is longer than the time width of the first set waveform, correction is performed to increase the step value based on the second set waveform. The portable terminal device characterized by this.
ユーザの身体に装着可能な携帯端末装置に備えられ、ユーザの歩数値を計数する歩数計数プログラムにおいて、
前記携帯端末装置に、
重力方向への加速度の波形を検出する波形検出機能と、
前記波形検出機能により検出された前記波形に基づいて歩数値を計数する歩数計数機能と、
連続する所定歩数を1セットとし、この1セット分の前記波形である第一セット波形と、当該第一セット波形から1歩分だけ後にずらした1セット分の前記波形である第二セット波形とを比較して、同等であるか否かを判定する第一波形比較機能と、
前記第一波形比較機能により前記第一セット波形と前記第二セット波形とが同等ではないと判定された場合に、前記第一セット波形と、前記第二セット波形よりも後の歩を最初の1歩とする1セット分の前記波形である第三セット波形とを比較して、同等であるか否かを判定する第二波形比較機能と、
前記第二波形比較機能により前記第一セット波形と前記第三セット波形とが同等であると判定された場合に、前記第二セット波形に基づく歩数値を増減させて補正する歩数補正機能と、
を実現させることを特徴とする歩数計数プログラム。
In a step counting program that is provided in a portable terminal device that can be worn on the user's body and counts the number of steps of the user,
In the portable terminal device,
A waveform detection function that detects the acceleration waveform in the direction of gravity,
A step counting function for counting step values based on the waveform detected by the waveform detection function;
A predetermined number of consecutive steps is set as one set, and the first set waveform that is the waveform for the one set, and the second set waveform that is the waveform for one set shifted by one step from the first set waveform, And a first waveform comparison function for determining whether or not they are equivalent,
If it is determined by the first waveform comparison function that the first set waveform and the second set waveform are not equivalent, the first set waveform and the steps after the second set waveform are A second waveform comparison function that compares the third set waveform, which is the waveform for one set as one step, and determines whether or not they are equivalent;
When the second waveform comparison function determines that the first set waveform and the third set waveform are equivalent, a step number correction function for correcting by increasing or decreasing the step value based on the second set waveform;
A step counting program characterized by realizing the above.
JP2013058020A 2013-03-21 2013-03-21 Portable terminal device, step counting method, and step counting program Active JP6236820B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013058020A JP6236820B2 (en) 2013-03-21 2013-03-21 Portable terminal device, step counting method, and step counting program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013058020A JP6236820B2 (en) 2013-03-21 2013-03-21 Portable terminal device, step counting method, and step counting program

Publications (2)

Publication Number Publication Date
JP2014182721A true JP2014182721A (en) 2014-09-29
JP6236820B2 JP6236820B2 (en) 2017-11-29

Family

ID=51701340

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013058020A Active JP6236820B2 (en) 2013-03-21 2013-03-21 Portable terminal device, step counting method, and step counting program

Country Status (1)

Country Link
JP (1) JP6236820B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009266060A (en) * 2008-04-28 2009-11-12 Aichi Micro Intelligent Corp Pedometer
WO2012164262A2 (en) * 2011-05-27 2012-12-06 Oxford Brookes University Gait asymmetry measurement

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009266060A (en) * 2008-04-28 2009-11-12 Aichi Micro Intelligent Corp Pedometer
WO2012164262A2 (en) * 2011-05-27 2012-12-06 Oxford Brookes University Gait asymmetry measurement

Also Published As

Publication number Publication date
JP6236820B2 (en) 2017-11-29

Similar Documents

Publication Publication Date Title
USRE49812E1 (en) Electronic apparatus, angular velocity acquisition method and storage medium for the same
CN106572814B (en) Device and method for classifying user activity and/or counting user steps
US9576500B2 (en) Training supporting apparatus and system for supporting training of walking and/or running
JP6083799B2 (en) Mobile device location determination method, mobile device, mobile device location determination system, program, and information storage medium
US9962120B2 (en) Sleep state management device, sleep state management method, and sleep state management program
CN107049255A (en) A kind of wearable intelligent equipment and its sleep algorithm
JP6563220B2 (en) Fall detection terminal and program
JP2013198654A5 (en)
US9192843B2 (en) Analysis system, analysis apparatus, electronic device, analysis method, and program
JP6156286B2 (en) Activity meter
JP5984589B2 (en) Electronic equipment and programs
JP6563662B2 (en) Fall detection terminal and program
JP2017192563A (en) Activity meter and exercise amount calculation device
JP6236820B2 (en) Portable terminal device, step counting method, and step counting program
KR102072837B1 (en) Method for determining exercise section
US20180209814A1 (en) Walking measurement device, walking measurement method, and program
KR101713496B1 (en) System and method for zero-delay real time step detection utilizing an accelerometer sensor
JP2012160151A (en) Acceleration detector, electronic apparatus, pedometer, and program
US10863929B2 (en) Step count measuring apparatus and medium
JP6123603B2 (en) Heart rate monitor, heart rate measuring method and heart rate measuring program
JP2012118724A (en) Electronic apparatus, pedometer, and program
JP6341314B2 (en) Heart rate monitor, heart rate measuring method and heart rate measuring program
WO2020149171A1 (en) Number of steps measuring device, method, and program
WO2017109908A1 (en) Electronic device and pulse rate calculation program
JP2020101849A (en) Measurement apparatus, measurement method and measurement program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160311

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170113

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170221

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170421

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171016

R150 Certificate of patent or registration of utility model

Ref document number: 6236820

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150