JP2018180683A - Number-of-steps measurement program and portable terminal - Google Patents

Number-of-steps measurement program and portable terminal Download PDF

Info

Publication number
JP2018180683A
JP2018180683A JP2017075339A JP2017075339A JP2018180683A JP 2018180683 A JP2018180683 A JP 2018180683A JP 2017075339 A JP2017075339 A JP 2017075339A JP 2017075339 A JP2017075339 A JP 2017075339A JP 2018180683 A JP2018180683 A JP 2018180683A
Authority
JP
Japan
Prior art keywords
steps
unit
counting unit
relational expression
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.)
Granted
Application number
JP2017075339A
Other languages
Japanese (ja)
Other versions
JP6804087B2 (en
Inventor
千里 谷田
Chisato Tanida
千里 谷田
功壮 久米川
Atsuo Kumekawa
功壮 久米川
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.)
Tanita Corp
Original Assignee
Tanita 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 Tanita Corp filed Critical Tanita Corp
Priority to JP2017075339A priority Critical patent/JP6804087B2/en
Priority to PCT/JP2018/012529 priority patent/WO2018186239A1/en
Publication of JP2018180683A publication Critical patent/JP2018180683A/en
Application granted granted Critical
Publication of JP6804087B2 publication Critical patent/JP6804087B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06MCOUNTING MECHANISMS; COUNTING OF OBJECTS NOT OTHERWISE PROVIDED FOR
    • G06M3/00Counters with additional facilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers

Abstract

PROBLEM TO BE SOLVED: To accurately count the number of steps while reducing power consumption.SOLUTION: A portable terminal 1 comprises: an acceleration sensor 30 which outputs an acceleration value; a sub-processor 60 which generates walking information about user's walking on the basis of the acceleration value; a fist counting unit 110 which counts a first number of steps ST1 which indicates the number of steps on the basis of the walking information; a second counting unit 120 which counts a second number of steps ST2 which indicates the number of steps on the basis of the acceleration value; a generation unit 130 which generates a first relational expression F1 showing a relation between the first number of steps ST1 and the second number of steps ST2 on the basis of both of them; and a correction unit 140 which corrects the first number of steps ST1 on the basis of the first number of steps ST1 and the first relational expression F1 to output the cumulative number of steps ST10.SELECTED DRAWING: Figure 1

Description

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

歩数を計数する機能を持つスマートフォンが提供されている。そのようなスマートフォンは、スマートフォン自身に発生する加速度の変化に基づいて歩数を計数する。   A smartphone having a function of counting the number of steps is provided. Such a smartphone counts the number of steps based on the change in acceleration generated in the smartphone itself.

上述のスマートフォンでは、例えば、ユーザがすり足で移動した場合、加速度の小さな変化を捉えることができず、すり足が歩数に計数されないことがあった。その結果、歩数が実際より少なく計数されてしまう。そこで、ユーザの歩行の特性を考慮して歩数を計数することにより、歩数の計測精度を高める技術が知られている(特許文献1)。   In the above-described smartphone, for example, when the user moves with a foot, a small change in acceleration can not be captured, and the foot may not be counted in the number of steps. As a result, the number of steps is counted less than the actual number. Then, the technique which raises the measurement accuracy of step number is known by counting the step number in consideration of the characteristic of a user's walk (patent documents 1).

特許第5310742号公報Patent No. 5310742 gazette

しかしながら、特許文献1に開示されるユーザの歩行の特性を考慮するための処理技術を、スマートフォンで実現しようとすると、スマートフォンに搭載されたCPU(Central Processing Unit)で、ユーザの歩行の特性を考慮するための処理を行わなければならず、CPUの負荷が増大するといった問題があった。その結果、スマートフォンのバッテリが早く消耗するといった問題があった。   However, when trying to realize the processing technology for considering the walking characteristic of the user disclosed in Patent Document 1 with a smartphone, the CPU (Central Processing Unit) mounted on the smart phone considers the walking characteristic of the user There is a problem that the CPU load has to be increased. As a result, there is a problem that the battery of the smartphone is exhausted quickly.

本発明は、上述の事情に鑑みてなされたものであり、消費電力を低減しつつ歩数を高い精度で計数する歩数計測プログラム及び携帯端末を提供することを解決課題の一つとする。   The present invention has been made in view of the above-described circumstances, and an object of the present invention is to provide a step counting program and a portable terminal that count the number of steps with high accuracy while reducing power consumption.

以上の課題を解決するために、本発明に係る歩数計測プログラムの一態様は、プロセッサに実行させる歩数計測プログラムであって、前記プロセッサを、加速度センサから出力される加速度値に基づいて生成されたユーザの歩行に関する歩行情報を取得し、取得した前記歩行情報に基づいて所定タイミングから累積した歩数を示す第1歩数を出力する第1計数部と、前記加速度値を取得し、取得した前記加速度値に基づいて前記所定タイミングから累積した歩数を示す第2歩数を出力する第2計数部と、前記第1歩数及び前記第2歩数に基づいて、少なくとも前記第1歩数と前記第2歩数の関係を示す関係式を生成する生成部と、前記第1歩数と前記関係式とに基づいて、累積歩数を出力する補正部として機能させる。   In order to solve the above problems, one aspect of a step counting program according to the present invention is a step counting program to be executed by a processor, wherein the processor is generated based on an acceleration value output from an acceleration sensor The first counting unit that acquires walking information related to the user's walking and outputs a first step number indicating the number of steps accumulated from a predetermined timing based on the acquired walking information; acquiring the acceleration value; and acquiring the acquired acceleration value A second counting unit that outputs a second step number indicating the number of steps accumulated from the predetermined timing based on the first timing, and a relationship between at least the first number of steps and the second number of steps based on the first number of steps and the second number of steps. It is made to function as a generation unit that generates the relational expression shown, and a correction unit that outputs the cumulative number of steps based on the first number of steps and the relational expression.

上述した歩数計測プログラムの一態様によれば、少なくとも第1歩数と第2歩数との関係を示す関係式を生成部が生成する。補正部は、関係式を用いて累積歩数を生成するので、累積歩数を第2歩数に近づけることができる。この結果、関係式を生成した後は、第2計数部を動作させなくても、第1計数部のみを動作させて精度の高い累積歩数を生成することができる。よって、消費電力を低減しつつ歩数を高い精度で計数することが可能となる。   According to one aspect of the step count measurement program described above, the generation unit generates a relational expression indicating a relationship between at least the first step count and the second step count. Since the correction unit generates the cumulative number of steps using the relational expression, the cumulative number of steps can be made close to the second number of steps. As a result, after the relational expression is generated, it is possible to operate only the first counting unit and generate the highly accurate cumulative number of steps without operating the second counting unit. Therefore, it is possible to count the number of steps with high accuracy while reducing power consumption.

上述した歩数計測プログラムの一態様は、歩数を計測する準備段階において前記プロセッサを、前記第1計数部と、前記第2計数部と、前記生成部として機能させ、歩数を計測する実測段階において前記プロセッサを、前記第1計数部と、前記補正部として機能させることが好ましい。   One aspect of the step counting program described above causes the processor to function as the first counting unit, the second counting unit, and the generating unit in a preparation step of measuring the number of steps, and in the measurement step of measuring the number of steps. It is preferable to cause a processor to function as the first counting unit and the correction unit.

この態様によれば、準備段階で機能させる要素と、実測段階で機能させる要素を異ならせることができ、実測段階では第2計数部及び生成部の機能を停止させる。よって、実測段階における処理負荷を軽減し、消費電力を低減しつつ歩数を高い精度で計数することが可能となる。   According to this aspect, it is possible to make the element to function in the preparation stage different from the element to function in the measurement stage, and to stop the functions of the second counting unit and the generation unit in the measurement stage. Therefore, it becomes possible to reduce the processing load at the measurement stage and to count the number of steps with high accuracy while reducing the power consumption.

上述した歩数計測プログラムの一態様は、前記準備段階において前記プロセッサを、更に、連続歩行の回数を計数する連続歩行計数部として機能させ、前記関係式は、前記第1歩数、前記第2歩数、及び前記連続歩行の回数の関係を示し、前記生成部は、前記第1歩数、前記第2歩数及び前記連続歩行の回数に基づいて、当該関係式を生成し、前記実測段階において前記プロセッサを、更に、前記連続歩行計数部として機能させ、前記補正部は、前記第1歩数及び前記連続歩行の回数と当該関係式とに基づいて、累積歩数を出力する、ことが好ましい。   One aspect of the step count measurement program causes the processor to further function as a continuous walk counting unit that counts the number of continuous walks in the preparation step, and the relational expressions include the first step count, the second step count, And indicates the relationship between the number of continuous walks, the generation unit generates the relational expression based on the first number of steps, the second number of steps and the number of continuous walks, and in the measurement step, the processor Furthermore, it is preferable to function as the continuous gait counting unit, and the correction unit to output the cumulative number of steps based on the first number of steps and the number of continuous walking and the relational expression.

この態様によれば、連続歩行の回数を考慮して、累積歩数を生成することができる。一定の距離を歩行する場合、連続歩行の回数が多ければ、歩行と静止を繰り返すことになる一方、連続歩行の回数が少なくなれば、歩き続ける時間が長くなる。従って、連続歩行の回数は歩行の態様を示している。この態様によれば、歩行の態様を考慮して累積歩数を生成するので、消費電力を低減しつつ、連続歩行の回数を考慮しない場合と比較して累積歩数の精度を更に向上させることができる。   According to this aspect, the cumulative number of steps can be generated in consideration of the number of continuous walking. When walking at a certain distance, if the number of continuous walkings is large, walking and standing still are repeated, but if the number of continuous walkings decreases, the time to continue walking will be longer. Therefore, the number of continuous walks indicates the manner of walking. According to this aspect, since the accumulated number of steps is generated in consideration of the aspect of walking, it is possible to further improve the accuracy of the accumulated number of steps while reducing the power consumption as compared with the case where the number of continuous walkings is not considered. .

上述した歩数計測プログラムの一態様は、前記連続歩行計数部は、前記第1歩数が更新された直前のタイミングから現在までの時間と既定時間とを比較してユーザが歩行中であるかユーザが静止しているかを判定し、判定結果に基づいて連続歩行の回数を計数することが好ましい。   In one aspect of the step counting program described above, the continuous gait counting unit compares the time from the timing immediately before the first step count is updated to the current time with a predetermined time to determine whether the user is walking or not It is preferable to determine whether the user is at rest and to count the number of continuous walks based on the determination result.

この態様によれば、歩数の更新から既定時間が経過すると、ユーザが静止していると判定するので、判定結果に基づいて連続歩行の回数を計数することができる。また、既定時間を調整することによって、連続歩行の回数の精度を向上させることが可能となる。よって、消費電力を低減しつつ、連続歩行の回数を考慮しない場合と比較して累積歩数の精度を更に向上させることができる。   According to this aspect, it is determined that the user is stationary when the predetermined time has elapsed since the update of the number of steps, so the number of continuous walks can be counted based on the determination result. Also, by adjusting the predetermined time, it is possible to improve the accuracy of the number of continuous walking. Therefore, while reducing the power consumption, it is possible to further improve the accuracy of the cumulative number of steps as compared with the case where the number of continuous walks is not considered.

上述した歩数計測プログラムの一態様は、前記準備段階において前記プロセッサを、更に、ユーザの移動速度を特定する特定部として機能させ、前記生成部は、前記特定部で特定した移動速度を取得し、前記関係式を、前記移動速度が大きい場合に適用する第1速度関係式と、前記移動速度が小さい場合に適用する第2速度関係式とに分けて生成し、前記実測段階において前記プロセッサを、更に、前記特定部として機能させ、前記補正部は、前記特定部から移動速度を取得し、前記第1速度関係式及び前記第2速度関係式のいずれかを前記移動速度に基づいて選択し、選択した関係式と前記第1歩数とに基づいて累積歩数を出力することが好ましい。   One aspect of the step count measurement program causes the processor to further function as a specification unit that specifies the movement speed of the user in the preparation step, and the generation unit acquires the movement speed specified by the specification unit, The relational expression is generated by being divided into a first velocity relational expression to be applied when the moving velocity is high and a second velocity relational expression to be applied when the moving velocity is low, and Furthermore, the control unit functions as the identification unit, the correction unit acquires the movement velocity from the identification unit, and selects one of the first velocity relation equation and the second velocity relation equation based on the movement velocity. Preferably, the cumulative number of steps is output based on the selected relational expression and the first number of steps.

この態様によれば、移動速度に応じた2種類の関係式が用意されているので、ユーザが乗り物に乗っている場合と乗り物に乗っていない場合とで関係式を使い分けることができる。この結果、消費電力を低減しつつ、乗り物の振動による影響を低減し、累積歩数の精度を更に向上させることができる。   According to this aspect, since two types of relational expressions corresponding to the moving speed are prepared, the relational expressions can be used properly depending on whether the user is in the vehicle or not. As a result, while reducing the power consumption, the influence of the vibration of the vehicle can be reduced and the accuracy of the cumulative number of steps can be further improved.

上述した歩数計測プログラムの一態様は、前記第1計数部の処理負荷は、前記第2計数部の処理負荷と比較して軽く、前記第2歩数の精度は、前記第1歩数の精度と比較して高い、ことが好ましい。   In one aspect of the step counting program described above, the processing load of the first counting unit is lighter than the processing load of the second counting unit, and the accuracy of the second step is compared with the accuracy of the first step Preferably high.

この態様によれば、関係式を生成する準備段階では、精度が高いが処理負荷が重い第2計数部を用いるが、関係式を生成した後の実測段階では、処理負荷が軽く消費電力の低い第1計数部を用いて、累積歩数を生成する。従って、実測段階では、消費電力を削減しつつ、累積歩数の精度を向上させることができる。   According to this aspect, although the second counting unit having high accuracy but heavy processing load is used in the preparation stage of generating the relational expression, the processing load is light and power consumption is low in the measurement stage after generating the relational expression. The first counting unit is used to generate the cumulative number of steps. Therefore, at the measurement stage, it is possible to improve the accuracy of the cumulative number of steps while reducing the power consumption.

本発明に係る携帯端末の一態様は、加速度値を出力する加速度センサと、加速度センサから出力される加速度値に基づいてユーザの歩行に関する歩行情報を生成するサブプロセッサと、前記歩行情報に基づいて所定タイミングから累積した歩数を示す第1歩数を計数する第1計数部と、前記加速度値に基づいて前記所定タイミングから累積した歩数を示す第2歩数を計数する第2計数部と、前記第1歩数及び前記第2歩数に基づいて、前記第1歩数と前記第2歩数の関係を示す関係式を生成する生成部と、前記第1歩数と前記関係式とに基づいて、累積歩数を出力する補正部と、を備える。   One aspect of a portable terminal according to the present invention includes an acceleration sensor that outputs an acceleration value, a sub processor that generates walking information related to the user's walking based on the acceleration value output from the acceleration sensor, and the walking information. A first counting unit that counts a first step count indicating a step count accumulated from a predetermined timing; a second counting unit that counts a second step count indicating a step count accumulated from the predetermined timing based on the acceleration value; Based on the number of steps and the second number of steps, a generation unit that generates a relational expression indicating the relationship between the first number of steps and the second number of steps, and outputting the cumulative number of steps based on the first number of steps and the relational expression And a correction unit.

上述した携帯端末の一態様によれば、サブプロセッサで生成される歩行情報を用いて第1歩数を計数するので、第1歩数を簡易に計数することができる。また、第1歩数と第2歩数との間の関係式を生成部が生成する。補正部は、関係式を用いて累積歩数を補正するので、累積歩数を第2歩数に近づけることができる。この結果、関係式を生成した後は、第2計数部を動作させなくても、第1計数部のみを動作させて精度の高い累積歩数を生成することができる。よって、消費電力を低減しつつ歩数を高い精度で計数することが可能となる。   According to one aspect of the portable terminal described above, since the first step number is counted using the walking information generated by the sub processor, the first step number can be easily counted. Further, the generation unit generates a relational expression between the first number of steps and the second number of steps. The correction unit corrects the cumulative number of steps using the relational expression, so that the cumulative number of steps can be made close to the second number of steps. As a result, after the relational expression is generated, it is possible to operate only the first counting unit and generate the highly accurate cumulative number of steps without operating the second counting unit. Therefore, it is possible to count the number of steps with high accuracy while reducing power consumption.

上述した携帯端末の一態様は、歩数を計測する準備段階において、前記第1計数部、前記第2計数部、及び前記生成部を動作させ、歩数を計測する実測段階において、前記第1計数部及び前記補正部を動作させることが好ましい。   In one aspect of the portable terminal described above, in the preparation step of measuring the number of steps, the first counting portion, the second counting portion, and the generating portion are operated to measure the number of steps. And it is preferable to operate the said correction | amendment part.

この態様によれば、準備段階で機能させる要素と、実測段階で機能させる要素を異ならせることができ、実測段階では第2計数部及び生成部の機能を停止させる。よって、実測段階における処理負荷を軽減し、消費電力を低減することができる。   According to this aspect, it is possible to make the element to function in the preparation stage different from the element to function in the measurement stage, and to stop the functions of the second counting unit and the generation unit in the measurement stage. Therefore, the processing load at the measurement stage can be reduced and the power consumption can be reduced.

第1実施形態における携帯端末1の構成を示す機能ブロック図である。It is a functional block diagram showing composition of personal digital assistant 1 in a 1st embodiment. 第1実施形態におけるテーブル230の記憶内容の一例を示す図である。It is a figure which shows an example of the memory content of the table 230 in 1st Embodiment. 第1実施形態における準備段階の携帯端末1の動作を例示するフローチャートである。It is a flow chart which illustrates operation of personal digital assistant 1 of a preparatory stage in a 1st embodiment. 第1実施形態における準備段階の携帯端末1の動作を例示するフローチャートである。It is a flow chart which illustrates operation of personal digital assistant 1 of a preparatory stage in a 1st embodiment. 第1実施形態における実測段階の携帯端末1の動作を例示するフローチャートである。It is a flow chart which illustrates operation of personal digital assistant 1 of a measurement phase in a 1st embodiment. 第2実施形態における携帯端末1の構成を示す機能ブロック図である。It is a functional block diagram showing composition of personal digital assistant 1 in a 2nd embodiment. 第2実施形態における準備段階の携帯端末1の動作を例示するフローチャートである。It is a flow chart which illustrates operation of personal digital assistant 1 of a preparatory stage in a 2nd embodiment. 第2実施形態における準備段階の携帯端末1の動作を例示するフローチャートである。It is a flow chart which illustrates operation of personal digital assistant 1 of a preparatory stage in a 2nd embodiment. 第2実施形態における実測段階の携帯端末1の動作を例示するフローチャートである。It is a flow chart which illustrates operation of personal digital assistant 1 of a measurement stage in a 2nd embodiment. 第3実施形態における携帯端末1の機能ブロック図である。It is a functional block diagram of portable terminal 1 in a 3rd embodiment. 第3実施形態におけるテーブル230の記憶内容の一例を示す図である。It is a figure which shows an example of the memory content of the table 230 in 3rd Embodiment. 第1歩数ST1と第2歩数ST2との関係を例示するグラフである。It is a graph which illustrates the relationship between 1st step number ST1 and 2nd step number ST2. 累積歩数ST10と第2歩数ST2と関係を例示するグラフである。It is a graph which illustrates the relationship between the cumulative number of steps ST10 and the second number of steps ST2.

以下、図面を参照しながら本発明に係る実施形態を説明する。また、以下に記載する実施形態は、本発明の好適な具体例である。このため、本実施形態には、技術的に好ましい種々の限定が付されている。しかしながら、本発明の範囲は、以下の説明において特に本発明を限定する旨の記載がない限り、これらの形態に限られるものではない。   Hereinafter, embodiments according to the present invention will be described with reference to the drawings. Also, the embodiments described below are preferable specific examples of the present invention. For this reason, various limitations that are technically preferable are attached to the present embodiment. However, the scope of the present invention is not limited to these embodiments unless specifically described in the following description.

<第1実施形態>
図1は、第1実施形態における携帯端末1の構成を示す機能ブロック図である。携帯端末1は、メインプロセッサ10と、記憶部20と、加速度センサ30と、操作表示部40と、通信部50と、サブプロセッサ60とを備える。なお、携帯端末1の構成は、図21の例に限定されない。例えば、携帯端末1がカメラを更に有していてもよい。
First Embodiment
FIG. 1 is a functional block diagram showing the configuration of the portable terminal 1 in the first embodiment. The portable terminal 1 includes a main processor 10, a storage unit 20, an acceleration sensor 30, an operation display unit 40, a communication unit 50, and a sub processor 60. In addition, the structure of the portable terminal 1 is not limited to the example of FIG. For example, the portable terminal 1 may further have a camera.

メインプロセッサ10は、歩数計測プログラム221を記憶部20から読み出し、読み出した歩数計測プログラム221を実行することで、計時、演算及び制御を行い、メインプロセッサ10の各種の機能を実現する。特に、メインプロセッサ10は、第1計数部110の機能と、第2計数部120の機能と、生成部130の機能と、補正部140の機能とを実現する。   The main processor 10 reads the step count measurement program 221 from the storage unit 20 and executes the read step count measurement program 221 to perform timing, calculation and control, and realizes various functions of the main processor 10. In particular, the main processor 10 implements the function of the first counting unit 110, the function of the second counting unit 120, the function of the generation unit 130, and the function of the correction unit 140.

詳細は後述するが、歩数計測プログラム221は、歩数の計測において、処理負荷が重い準備段階と処理負荷が軽い実測段階とにおいて、実現する機能が異なる。メインプロセッサ10は、準備段階では、精度の低い第1歩数ST1を出力する第1計数部110と、精度の高い第2歩数ST2を出力する第2計数部120とをほぼ同時(同時を含む)に動作させ、第1歩数ST1と第2歩数ST2との関係を示す第1関係式F1を生成部130によって生成する。一方、実測段階では、第1計数部110と補正部140を動作させ、第1計数部110で計数した第1歩数ST1を、第1関係式F1を用いて補正して歩数を出力する。また、メインプロセッサ10は、例えば、CPU、MPU(Micro Processor Unit)、MCU(Memory Control Unit)等のハードウェアである。   Although details will be described later, the step count measurement program 221 has different functions to be implemented in the preparation stage where the processing load is heavy and the measurement stage where the processing load is light in counting the number of steps. At the preparation stage, the main processor 10 substantially simultaneously (including simultaneous) with the first counting unit 110 which outputs the first step number ST1 with low accuracy and the second counting unit 120 which outputs the second step number ST2 with high accuracy. The generation unit 130 generates a first relational expression F1 indicating the relationship between the first number of steps ST1 and the second number of steps ST2. On the other hand, in the actual measurement stage, the first counting unit 110 and the correction unit 140 are operated to correct the first step number ST1 counted by the first counting unit 110 using the first relational expression F1 and output the step number. The main processor 10 is, for example, hardware such as a CPU, a micro processor unit (MPU), and a memory control unit (MCU).

記憶部20は、各種のプログラム及びデータを記憶すると共に、メインプロセッサ10及びサブプロセッサ60の作業領域として機能する。また、記憶部20は、不揮発性メモリと、揮発性メモリとを包含する。記憶部20は、操作表示部40や通信部50から取り込まれた各種情報やサブプロセッサ60やメインプロセッサ10で演算された各種結果を記憶する。特に、記憶部20は、サブプロセッサ60を機能させるためのデフォルト歩数計数プログラム210と、メインプロセッサ10を機能させるための歩数計測プログラム221と、実測段階における累積歩数ST10を求めるための第1関係式F1、並びにメインプロセッサ10が求めた第1歩数ST1及び第2歩数ST2などの計測結果を記憶するためのテーブル230とを記憶する。   The storage unit 20 stores various programs and data, and functions as a work area of the main processor 10 and the sub processor 60. The storage unit 20 also includes non-volatile memory and volatile memory. The storage unit 20 stores various information fetched from the operation display unit 40 and the communication unit 50, and various results calculated by the sub processor 60 and the main processor 10. In particular, the storage unit 20 includes a default step counting program 210 for causing the sub processor 60 to function, a step counting program 221 for causing the main processor 10 to function, and a first relational expression for obtaining the cumulative step ST10 in the measurement stage. It stores F1 and a table 230 for storing measurement results such as the first step count ST1 and the second step count ST2 determined by the main processor 10.

なお、記憶部20は、例えば、非一過性(non-transitory)の記憶媒体である。更に言えば、記憶部20は、公知の任意の形式の記憶媒体、例えば、半導体記憶媒体、磁気式記憶媒体又は光学式記憶媒体である。代替的に、記憶部20は、これらの記憶媒体が組み合わされた記憶媒体であってもよい。本願明細書において、非一過性の記憶媒体とは、一過性の伝播信号(transitory, propagating signal)を除く全てのコンピュータ読み取り可能な記憶媒体を含み、揮発性の記憶媒体を除外するものではない。   The storage unit 20 is, for example, a non-transitory storage medium. Furthermore, the storage unit 20 is any type of storage medium known in the art, such as a semiconductor storage medium, a magnetic storage medium or an optical storage medium. Alternatively, the storage unit 20 may be a storage medium in which these storage media are combined. As used herein, non-transitory storage media includes all computer readable storage media except transient, propagating signals, and excludes volatile storage media. Absent.

加速度センサ30は、例えば、3軸加速度センサである。加速度センサ30は、歩行(走行も含む)によって生じた3軸方向の加速度値A、具体的には、X軸方向の加速度値AXと、Y軸方向の加速度値AYと、Z軸方向の加速度値AZとを検出する。加速度センサ30は、検出した3軸方向の加速度値Aをサブプロセッサ60に出力する。加速度センサ30の検出方式は、静電容量方式でもよいし、ピエゾ方式でもよく、特定の方式に限定されない。加速度センサ30の出力は、デジタル信号であってもよいし、アナログ信号であってもよい。   The acceleration sensor 30 is, for example, a three-axis acceleration sensor. The acceleration sensor 30 is an acceleration value A in three axial directions generated by walking (including traveling), specifically, an acceleration value AX in the X axis direction, an acceleration value AY in the Y axis direction, and an acceleration in the Z axis direction. Detect the value AZ. The acceleration sensor 30 outputs the detected acceleration values A in the three axial directions to the sub processor 60. The detection method of the acceleration sensor 30 may be a capacitance method or a piezo method, and is not limited to a specific method. The output of the acceleration sensor 30 may be a digital signal or an analog signal.

操作表示部40は、例えば、静電容量方式のタッチパネルである。操作表示部40は、入力デバイス及び表示デバイスの双方の機能を持つ。操作表示部40は、入力デバイスの機能として、歩数計測プログラム221の起動や各種設定などをユーザによるタッチ操作を受けて検出し、検出結果をユーザの指示情報としてメインプロセッサ10に出力する。操作表示部40は、表示デバイスの機能として、メインプロセッサ10の指示に従って、メインプロセッサ10による出力結果(例えば、設定結果情報及び計測結果)を表示する。なお、操作表示部40の代わりに、入力デバイス(テンキーを含む複数のボタン)及び表示デバイスを別個に携帯端末1が有していてもよい。また、操作表示部40をユーザが操作する操作部と、ユーザに情報を表示する表示部とに分離してもよい。   The operation display unit 40 is, for example, a capacitive touch panel. The operation display unit 40 has functions of both an input device and a display device. The operation display unit 40 detects the activation of the step count measurement program 221 and various settings as a function of the input device upon receiving a touch operation by the user, and outputs the detection result to the main processor 10 as instruction information of the user. The operation display unit 40 displays an output result (for example, setting result information and a measurement result) by the main processor 10 according to an instruction of the main processor 10 as a function of the display device. Note that, instead of the operation display unit 40, the portable device 1 may have an input device (a plurality of buttons including a ten key) and a display device separately. Also, the operation display unit 40 may be separated into an operation unit operated by the user and a display unit displayed information to the user.

通信部50は、携帯端末1の外部と通信可能に構成されている。具体的には、通信部50は、例えば、携帯端末1が位置するセルの基地局を経由して通話先の携帯端末と音声通信する。また、通信部50は、例えば、携帯端末1が位置するセルの基地局を経由してインターネット回線に接続し、サーバ装置と通信し、歩数計測プログラム221をダウンロードする。更に、通信部50は、パーソナルコンピュータと有線又は無線などにより接続し、各種設定などの指示情報を受信し、メインプロセッサ10による出力結果(例えば、設定結果情報及び計測結果)を送信する。   The communication unit 50 is configured to be able to communicate with the outside of the mobile terminal 1. Specifically, for example, the communication unit 50 performs voice communication with a called portable terminal via the base station of the cell in which the portable terminal 1 is located. Further, the communication unit 50 connects to the Internet, for example, via the base station of the cell in which the portable terminal 1 is located, communicates with the server apparatus, and downloads the step count measurement program 221. Furthermore, the communication unit 50 is connected to a personal computer by wire or wirelessly, receives instruction information such as various settings, and transmits an output result (for example, setting result information and measurement result) by the main processor 10.

サブプロセッサ60は、デフォルト歩数計数プログラム210を記憶部20から読み出し、読み出したデフォルト歩数計数プログラム210を実行することで、デフォルト計数部610の機能を実現する。サブプロセッサ60は、メインプロセッサ10からの要求に応じて、デフォルト計数部610で計数した歩数ST0をメインプロセッサ10に出力する。また、サブプロセッサ60は、加速度センサ30から出力された加速度値Aを取得し、メインプロセッサ10からの要求に応じて、メインプロセッサ10に出力する。なお、デフォルト計数部610を含むサブプロセッサ60は、メインプロセッサ10の補助する役割、及びメインプロセッサ10の処理の一部を実行する役割を担う。このため、サブプロセッサ60は、メインプロセッサ10と比較して処理能力が低くてもよい。その一方、サブプロセッサ60は、メインプロセッサ10の消費電力よりも低い消費電力で動作する。サブプロセッサ60は、例えば、CPU、MPU、MCUなどのハードウェアで構成されている。   The sub processor 60 reads out the default step counting program 210 from the storage unit 20 and executes the read default step counting program 210 to realize the function of the default counting unit 610. In response to a request from the main processor 10, the sub processor 60 outputs the number of steps ST0 counted by the default counting unit 610 to the main processor 10. Further, the sub processor 60 obtains the acceleration value A output from the acceleration sensor 30 and outputs the acceleration value A to the main processor 10 in response to a request from the main processor 10. The sub processor 60 including the default counting unit 610 plays a role of assisting the main processor 10 and performing a part of the processing of the main processor 10. For this reason, the sub processor 60 may have a processing capacity lower than that of the main processor 10. On the other hand, the sub processor 60 operates with lower power consumption than the power consumption of the main processor 10. The sub processor 60 is configured by, for example, hardware such as a CPU, an MPU, and an MCU.

次に、デフォルト歩数計数プログラム210によって実現される機能について説明する。デフォルト計数部610は、歩数の計測の準備段階(実測段階における歩数を求めるための第1関係式F1を生成するまでの過程)及び歩数の計測の実測段階(第1関係式F1を用いて実測段階における歩数を求める過程)で動作する。デフォルト計数部610は、加速度センサ30から出力された加速度値Aを取得し、取得した加速度値Aに基づいて、歩数ST0を計数する。この歩数ST0は、携帯端末1の電源がオンになってデフォルト歩数計数プログラム210が起動してから累積した歩数を示す。   Next, functions implemented by the default step counting program 210 will be described. The default counting unit 610 is a preparation stage of step count measurement (a process until generation of a first relational expression F1 for obtaining the step count in the actual measurement stage) and an actual measurement stage of step count measurement (the first relational expression F1) Operate in the process of determining the number of steps in the stage). The default counting unit 610 acquires the acceleration value A output from the acceleration sensor 30, and counts the number of steps ST0 based on the acquired acceleration value A. The number of steps ST0 indicates the number of steps accumulated since the portable terminal 1 was powered on and the default step counting program 210 was activated.

次に、歩数計測プログラム221によって実現される機能について説明する。第1計数部110は、準備段階及び実測段階で動作する。第1計数部110は、準備段階及び実測段階において、サブプロセッサ60からデフォルト計数部610が計数した歩数ST0を取得する。次いで、第1計数部110は、この取得した歩数ST0に基づいて、所定タイミングから累積処理をした第1歩数ST1を生成する。具体的には、第1計数部110は、この取得した歩数ST0に基づいて、一歩を検出し、一歩を検出するごとに検出回数を累積して第1歩数ST1とする。ここで、所定タイミングとは、歩数の計数が開始されるタイミングである。例えば、歩数計測プログラム221が起動され、ユーザが歩数の計測開始を入力したタイミングが所定タイミングである。あるいは、歩数計測プログラム211が起動と同時に計測を開始するのであれば、歩数計測プログラム211が起動されたタイミングが所定タイミングである。   Next, functions implemented by the step count measurement program 221 will be described. The first counting unit 110 operates in the preparation stage and the measurement stage. The first counting unit 110 acquires the number of steps ST0 counted by the default counting unit 610 from the sub processor 60 in the preparation step and the measurement step. Next, the first counting unit 110 generates a first step count ST1 which has been subjected to accumulation processing from a predetermined timing, based on the acquired step count ST0. Specifically, the first counting unit 110 detects a step on the basis of the acquired number of steps ST0, and accumulates the number of detections every time a step is detected to obtain a first number of steps ST1. Here, the predetermined timing is timing when counting of the number of steps is started. For example, the timing at which the step count measurement program 221 is activated and the user inputs the measurement start of step counts is the predetermined timing. Alternatively, if the step count measurement program 211 starts measurement simultaneously with activation, the timing at which the step count measurement program 211 is activated is the predetermined timing.

第1計数部110による歩数ST0の取得は、サブプロセッサ60に取得要求を送信することによって実行される。この例では、歩数計測プログラム221を実行すると、メインプロセッサ10は、取得要求を例えば16Hzでサブプロセッサ60に送信する。これによって、第1計数部110は、1秒間に16回、歩数ST0を取得することができる。   Acquisition of the number of steps ST0 by the first counting unit 110 is executed by transmitting an acquisition request to the sub processor 60. In this example, when the step count measurement program 221 is executed, the main processor 10 transmits an acquisition request to the sub processor 60 at, for example, 16 Hz. As a result, the first counting unit 110 can acquire the number of steps ST0 16 times per second.

n番目のタイミングで取得した歩数ST0をST0(n)で表すものとする。現在のタイミングがn番目である場合、第1計数部110は、ST0(n)とST0(n-1)とを比較し、ST0(n)−ST0(n-1)が「1」の場合、ユーザが一歩進んだことを検出する。一方、第1計数部110は、ST0(n)−ST0(n-1)が「0」の場合、ユーザが一歩進んだことを検出しない。この例では、1秒間に16回といった高い頻度で取得要求をサブプロセッサ60に送信しているので、ユーザが1歩進んだことを確実に検出することができる。   The number of steps ST0 acquired at the n-th timing is represented by ST0 (n). When the current timing is the n-th time, the first counting unit 110 compares ST0 (n) with ST0 (n-1), and when ST0 (n) -ST0 (n-1) is "1". , Detect that the user has advanced one step. On the other hand, when ST0 (n) −ST0 (n−1) is “0”, the first counting unit 110 does not detect that the user has advanced one step. In this example, since the acquisition request is transmitted to the sub processor 60 with a high frequency of 16 times per second, it is possible to reliably detect that the user has advanced one step.

第2計数部120は、準備段階でのみ動作する。まず、第2計数部120は、準備段階において、サブプロセッサ60から出力された加速度値Aを取得する。次いで、第2計数部120は、この取得した加速度値Aに基づいて、上述した所定タイミングから累積した歩数を示す第2歩数ST2を計数する。換言すると、第2計数部120は、この取得した加速度値Aに基づいて、一歩を検出し、一歩を検出するごとに検出回数を累積して第2歩数ST2とする。なお、第2計数部120は、加速度センサ30から直接出力された加速度値Aを用いて第2歩数ST2を生成することも可能である。   The second counting unit 120 operates only at the preparation stage. First, the second counting unit 120 acquires the acceleration value A output from the sub processor 60 at the preparation stage. Next, based on the acquired acceleration value A, the second counting unit 120 counts a second step number ST2 indicating the number of steps accumulated from the above-described predetermined timing. In other words, the second counting unit 120 detects a step on the basis of the acquired acceleration value A, and accumulates the number of times of detection every time a step is detected to obtain a second step number ST2. The second counting unit 120 can also generate the second step count ST2 using the acceleration value A directly output from the acceleration sensor 30.

また、準備段階において、第1計数部110及び第2計数部120は、第1計数部110が歩数ST0を取得するタイミングと、第2計数部120が加速度値Aを取得するタイミングとをほぼ同時(同時を含む)で、歩行の際にほぼ一歩となる間隔よりも短い間隔で行う。   Further, in the preparation stage, the first counting unit 110 and the second counting unit 120 substantially simultaneously perform the timing when the first counting unit 110 obtains the step count ST0 and the timing when the second counting unit 120 obtains the acceleration value A. (Includes simultaneous) At intervals shorter than the interval which becomes approximately one step when walking.

ここで、第2計数部120による加速度値Aに基づいて歩数を計数する処理は、デフォルト計数部610による加速度値Aに基づいて歩数を計数する処理よりも、高い精度で歩数を得ることができる。
例えば、デフォルト計数部610による加速度値Aに基づいて歩数を計数する処理は、X軸方向の加速度値AX、Y軸方向の加速度値AY及びZ軸方向の加速度値AZの各々について最大値と最小値との差を求め、いずれかの軸方向の加速度値の最大値と最小値との差が閾値以上であったときに一歩を検出し、検出回数を累積して歩数ST0を生成する。
Here, the process of counting the number of steps based on the acceleration value A by the second counting unit 120 can obtain the number of steps with higher accuracy than the process of counting the number of steps based on the acceleration value A by the default counting unit 610. .
For example, the process of counting the number of steps on the basis of the acceleration value A by the default counting unit 610 includes maximum and minimum values for each of the acceleration value AX in the X axis direction, the acceleration value AY in the Y axis direction, and the acceleration value AZ in the Z axis direction. A difference from the value is determined, and when the difference between the maximum value and the minimum value of acceleration values in any of the axial directions is equal to or greater than a threshold, one step is detected, and the number of detections is accumulated to generate step ST0.

これに対して、第2計数部120による加速度値Aに基づいて歩数を計数する処理は、X軸方向の加速度値AX、Y軸方向の加速度値AY及びZ軸方向の加速度値AZを合成して、3軸方向の加速度値の絶対値|A|を算出し(|A|=(AX+AY+AZ1/2)する。さらに当該処理では、3軸方向の加速度値の絶対値|A|の最大値と最小値との差が閾値以上であり、その差が一定時間内に収まっているときに一歩を検出し、検出回数を累積して第2歩数ST2を生成する。 On the other hand, the process of counting the number of steps based on the acceleration value A by the second counting unit 120 combines the acceleration value AX in the X-axis direction, the acceleration value AY in the Y-axis direction, and the acceleration value AZ in the Z-axis direction. Is calculated (| A | = (AX 2 + AY 2 + AZ 2 ) 1/2 ). Furthermore, in the processing, a step is detected and detected when the difference between the maximum value and the minimum value of the absolute values | A | of the acceleration values in the three axial directions is equal to or greater than the threshold and the difference is within a predetermined time. The number of steps is accumulated to generate a second step number ST2.

更に、デフォルト計数部610による加速度値Aに基づいて歩数を計数する処理では、加速度センサ30から取得した加速度値Aをそのまま用いて、歩数として計数する。これに対して、第2計数部120による加速度値Aに基づいて歩数を計数する処理では、加速度センサ30から得られたX軸方向の加速度値AX、Y軸方向の加速度値AY及びZ軸方向の加速度値AZにノイズ成分を除去するフィルタリング処理を施して、フィルタリング処理後の加速度値AX、加速度値AY及び加速度値AZに基づいて第2歩数ST2を生成する。   Furthermore, in the process of counting the number of steps based on the acceleration value A by the default counting unit 610, the acceleration value A acquired from the acceleration sensor 30 is used as it is and is counted as the number of steps. On the other hand, in the process of counting the number of steps based on the acceleration value A by the second counting unit 120, the acceleration value AX in the X-axis direction and the acceleration value AY in the Y-axis direction obtained from the acceleration sensor 30 and the Z axis direction The acceleration value AZ is subjected to filtering processing for removing noise components, and a second step count ST2 is generated based on the acceleration value AX, the acceleration value AY and the acceleration value AZ after the filtering processing.

次に、生成部130は、準備段階でのみ動作する。まず、生成部130は、準備段階において、第1計数部110から第1歩数ST1を取得し、第2計数部120から第2歩数ST2を取得する。そして、生成部130は、単位時間あたりの第1歩数ST1と単位時間あたりの第2歩数ST2とを組として日時に関連付けてテーブル230に記憶する。なお、このテーブル230への記憶は、単位時間ごとに繰り返し、一定期間が経過するまで行う。また、生成部130は、準備段階において、テーブル230に記憶した単位時間あたりの第1歩数ST1と単位時間あたりの第2歩数ST2との組を用いて、実測段階における歩数を求めるための第1関係式F1を生成し、記憶部20に記憶する。   Next, the generation unit 130 operates only at the preparation stage. First, at the preparation stage, the generation unit 130 acquires the first number of steps ST1 from the first counting unit 110 and acquires the second number of steps ST2 from the second counting unit 120. Then, the generation unit 130 stores the first number of steps ST1 per unit time and the second number of steps ST2 per unit time in the table 230 in association with date and time as a pair. Note that storage in the table 230 is repeated for each unit time, and is performed until a certain period of time elapses. In addition, the generation unit 130 uses the first step number ST1 per unit time and the second step number ST2 per unit time stored in the table 230 in the preparation step to obtain the first step number in the measurement step. The relational expression F1 is generated and stored in the storage unit 20.

単位時間とは、1日の時間を複数に分割し、分割された複数の時間の各々を指す。例えば、1日の時間を24等分した場合、単位時間は1時間となる。無論、単位時間は30分でもよい。また、第1関係式F1を生成するにあたって、1日あたりの歩数ではなく、単位時間あたりの歩数を用いることで、精度の高い第1関係式F1が得られる。それは、同じユーザでも、時間帯によって、歩き方が変わる傾向があるためである。例えば、家で家事をするときの一歩は、外を歩くときの一歩より小さいことが多い。そのような理由により、家で家事をする場合に得られた歩数は誤差を含みやすい。単位時間を1日より短くすることで、ユーザの歩き方の特徴を第1関係式F1に反映させることができる。   The unit time is divided into a plurality of time periods of one day, and refers to each of a plurality of divided times. For example, when the time of one day is divided into 24 equal parts, the unit time is one hour. Of course, the unit time may be 30 minutes. In addition, in generating the first relational expression F1, the first relational expression F1 with high accuracy can be obtained by using the number of steps per unit time instead of the number of steps per day. That is because, even for the same user, the walking style tends to change depending on the time zone. For example, one step when doing housework at home is often smaller than one when walking outside. For that reason, the number of steps obtained when doing housework at home is likely to include errors. By making the unit time shorter than one day, it is possible to reflect the feature of the user's walking manner in the first relational expression F1.

生成部130の機能について、ある時刻をtn−1とし、ある時刻tn−1から単位時間が経過した現在の時刻をtとし、nを任意の自然数として表し、より具体的に説明する。
先ず、生成部130は、準備段階において、ある時刻tn−1から単位時間が経過するまで、第1計数部110から第1歩数ST1を取得し、かつ第2計数部120から第2歩数ST2を取得し、この単位時間において取得した第1歩数ST1と第2歩数ST2とを組とし、年月日及び時間帯に関連付けてテーブル230に記憶する。以後、生成部130は、準備段階において、単位時間あたりの第1歩数ST1と単位時間あたりの第2歩数ST2との組を一定期間記憶する。
The function of the generation unit 130 will be described in more detail, where a certain time is t n -1 , a current time when a unit time has elapsed from a certain time t n -1 is t n, and n is an arbitrary natural number. .
First, in the preparation stage, the generation unit 130 acquires the first step number ST1 from the first counting unit 110 and the second step number ST2 from the second counting unit 120 until a unit time passes from a certain time t n -1. Are acquired, and the first step count ST1 and the second step count ST2 acquired in this unit time are stored in the table 230 in association with the date and time zone. Thereafter, at the preparation stage, the generation unit 130 stores a set of the first number of steps ST1 per unit time and the second number of steps ST2 per unit time for a certain period.

ここで、生成部130の機能について、第1実施形態におけるテーブル230の一例を示す図2を参照しながら、より詳細に説明する。   Here, the function of the generation unit 130 will be described in more detail with reference to FIG. 2 showing an example of the table 230 in the first embodiment.

図2の例では、単位時間が1時間に設定されている。例えば、テーブル230の1行目は、2016年6月1日の8時から9時までの時間帯において、第1歩数ST1が62歩であり、第2歩数ST2が10歩であったことを示している。2016年6月1日の8時の時点で、第1計数部110における第1歩数ST1が0にリセットされ、第2計数部120における第2歩数ST2も0にリセットされる。生成部130は、2016年6月1日の9時になると、第1歩数ST1=62、第2歩数ST2=10を取得する。生成部130は、第1歩数ST1=62と第2歩数ST2=10とを組にして、2016年6月1日及び8時から9時の時間帯に関連付けてテーブル230に記憶する。   In the example of FIG. 2, the unit time is set to 1 hour. For example, the first row of the table 230 indicates that the first step number ST1 is 62 steps and the second step number ST2 is 10 steps in the time zone from 8:00 to 9:00 on June 1, 2016. It shows. At 8 o'clock on June 1, 2016, the first step number ST1 in the first counting unit 110 is reset to 0, and the second step number ST2 in the second counting unit 120 is also reset to 0. At 9:00 on June 1, 2016, the generation unit 130 acquires the first number of steps ST1 = 62 and the second number of steps ST2 = 10. The generation unit 130 stores the first number of steps ST1 = 62 and the second number of steps ST2 = 10 in the table 230 in association with the time zones of June 1, 2016 and 8:00 to 9:00.

上述のように、生成部130は、準備段階において、一定期間が経過するまで、単位時間あたりの第1歩数ST1と単位時間あたりの第2歩数ST2との組を日時に関連付けてテーブル230に記憶する。一定期間は、実用的な観点からユーザの歩き方の特徴を十分に把握することができるように定められる。例えば、一定期間は一週間である。ただし、第1関係式F1の精度を向上させる観点から、第1歩数ST1と第2歩数ST2との組の数は多いほど好ましいため、一定期間は一週間を超えてもよい。   As described above, the generation unit 130 stores, in the table 230, a combination of the first number of steps ST1 per unit time and the second number of steps ST2 per unit time in the preparation stage until the predetermined period elapses, Do. The fixed period is determined so that the characteristics of the walking manner of the user can be sufficiently grasped from a practical point of view. For example, the fixed period is one week. However, from the viewpoint of improving the accuracy of the first relational expression F1, the number of sets of the first step number ST1 and the second step number ST2 is preferably as large as possible, and therefore the predetermined period may exceed one week.

次に、生成部130は、準備段階において、テーブル230に一定期間記憶した、単位時間あたりの第1歩数ST1と単位時間あたりの第2歩数ST2との組を読み出し、統計的手法(回帰分析)によって、第1歩数ST1から第2歩数ST2を推定する第1関係式F1を生成し記憶部20に記憶する。   Next, in the preparation stage, the generation unit 130 reads out a set of the first step number ST1 per unit time and the second step number ST2 per unit time stored in the table 230 for a fixed period, and performs statistical method (regression analysis) Thus, the first relational expression F1 for estimating the second step count ST2 from the first step count ST1 is generated and stored in the storage unit 20.

第1関係式F1は、次の式(1)で表される。但し、累積歩数ST10は、第1歩数ST1に基づいて推定される第2歩数ST2である。
F1(ST1)=ST10=ST1×α+γ …(1)
The first relational expression F1 is expressed by the following expression (1). However, the cumulative number of steps ST10 is a second number of steps ST2 estimated based on the first number of steps ST1.
F1 (ST1) = ST10 = ST1 × α + γ (1)

式(1)は、回帰直線である。αは係数を、γは切片を表し、例えば、最小二乗法が適用されて導き出される。このような第1関係式F1とすることで、実測段階における累積歩数ST10は、第1歩数ST1に基づいて、第1歩数ST1よりも高い精度の第2歩数ST2に相当するものとなる。   Formula (1) is a regression line. α represents a coefficient and γ represents an intercept, which is derived, for example, by applying the least squares method. By setting it as such a first relational expression F1, the cumulative number of steps ST10 in the actual measurement stage becomes equivalent to the second number of steps ST2 higher in accuracy than the first number of steps ST1 based on the first number of steps ST1.

補正部140は、実測段階でのみ動作する。補正部140は、実測段階において、記憶部20に記憶した第1関係式F1を取得し、また、第1計数部110から第1歩数ST1を取得し、第1関係式F1に第1歩数ST1を代入して、実測段階における累積歩数ST10を求める。   The correction unit 140 operates only at the measurement stage. The correction unit 140 acquires the first relational expression F1 stored in the storage unit 20 at the measurement stage, and acquires the first step count ST1 from the first counting unit 110, and sets the first step count ST1 to the first relational expression F1. To calculate the cumulative number of steps ST10 in the measurement stage.

次に、携帯端末1の動作について説明する。携帯端末1は、主なる機能として、準備段階における機能と実測段階における機能とに大別される。まず、図3A及び図3Bに示すフローチャートを用いて、準備段階における携帯端末1の機能について説明する。   Next, the operation of the mobile terminal 1 will be described. The portable terminal 1 is roughly divided into a function at the preparation stage and a function at the measurement stage as main functions. First, the functions of the portable terminal 1 in the preparation stage will be described using the flowcharts shown in FIGS. 3A and 3B.

操作表示部40からの操作により携帯端末1の電源(図示省略)が投入されると、各部の動作の実行が可能となる。この際、サブプロセッサ60は、デフォルト歩数計数プログラム210を記憶部20から読み出し、読み出したデフォルト歩数計数プログラム210を実行する。具体的には、デフォルト計数部610が、加速度センサ30から出力された加速度値Aを取得し、取得した加速度値Aに基づいて歩数ST0を計数する(ステップS1)。   When the power (not shown) of the portable terminal 1 is turned on by the operation from the operation display unit 40, the operation of each unit can be performed. At this time, the sub processor 60 reads the default step counting program 210 from the storage unit 20, and executes the read default step counting program 210. Specifically, the default counting unit 610 acquires the acceleration value A output from the acceleration sensor 30, and counts the number of steps ST0 based on the acquired acceleration value A (step S1).

次に、メインプロセッサ10は、操作表示部40からの操作により歩数計測プログラム221を記憶部20から読み出し、読み出した歩数計測プログラム221を起動する。この起動状態の際に、操作表示部40からの操作により準備段階のモードが選択されると、歩数計測プログラム221における準備段階における機能を実行する。準備段階の開始として、まず、第1計数部110は第1歩数ST1を0(ST1=0)にリセットし、第2計数部120は第2歩数ST2を0(ST2=0)にリセットする(ステップS2)。   Next, the main processor 10 reads the step count measurement program 221 from the storage unit 20 by the operation from the operation display unit 40, and starts the read step count measurement program 221. In this activation state, when the mode of the preparation stage is selected by the operation from the operation display unit 40, the function in the preparation stage of the step count measurement program 221 is executed. At the start of the preparation stage, first, the first counting unit 110 resets the first step number ST1 to 0 (ST1 = 0), and the second counting unit 120 resets the second step number ST2 to 0 (ST2 = 0) ( Step S2).

続いて、第1計数部110は、デフォルト計数部610で計数された歩数ST0を取得し(ステップS11)、取得した歩数ST0に基づいて一歩を検出したか否かを判定する(ステップS12)。一歩を検出した場合には(ステップS12でYES)、第1歩数ST1をインクリメントする(ステップS13)。一方、一歩を検出してない場合には(ステップS12でNO)、第1歩数ST1をインクリメントしない。   Subsequently, the first counting unit 110 acquires the number of steps ST0 counted by the default counting unit 610 (step S11), and determines whether a step is detected based on the acquired number of steps ST0 (step S12). If one step is detected (YES in step S12), the first step number ST1 is incremented (step S13). On the other hand, when one step is not detected (NO in step S12), the first step number ST1 is not incremented.

また、第2計数部120は、加速度センサ30から出力される加速度値Aを取得し(ステップS21)、取得した加速度値Aにノイズ除去などのフィルタリング処理を施す(ステップS22)。更に、第2計数部120は、フィルタリング処理が施された加速度値Aに基づいて、一歩を検出したか否かを判定する(ステップS23)。一歩を計数した場合には(ステップS23でYES)、第2計数部120は第2歩数ST2をインクリメントする(ステップS24)。一方、一歩を検出していない場合には(ステップS23でNO)、第2計数部120は第2歩数ST2をインクリメントしない。   Further, the second counting unit 120 acquires the acceleration value A output from the acceleration sensor 30 (step S21), and performs filtering processing such as noise removal on the acquired acceleration value A (step S22). Furthermore, the second counting unit 120 determines whether or not one step has been detected based on the acceleration value A subjected to the filtering process (step S23). If one step has been counted (YES in step S23), the second counting unit 120 increments the second step count ST2 (step S24). On the other hand, when one step is not detected (NO in step S23), the second counting unit 120 does not increment the second step count ST2.

第1計数部110によるステップS12でNO又はステップS13の処理、及び第2計数部120によるステップS23でNO又はステップS24の処理の後、生成部130は図3Bに示す処理を実行する。   After the process of step S12 by the first counting unit 110 or the process of step S13 and the process of step S24 by the second counting unit 120, the generation unit 130 performs the process illustrated in FIG. 3B.

生成部130は、第1歩数ST1と第2歩数ST2とがリセットされてから、単位時間(例えば、1時間)を経過したか否かを判定する(ステップS31)。単位時間を経過した場合には(ステップS31でYES)、生成部130は、第1計数部110でインクリメントしたこの単位時間における第1歩数ST1と、第2計数部120でインクリメントしたこの単位時間における第2歩数ST2とを組とする。そして、生成部130は、第1歩数ST1と第2歩数ST2との組を、当該単位時間における日時に関連付けて、記憶部20のテーブル230に記憶した後、第1歩数ST1及び第2歩数ST2をリセットする(ステップS32)。一方、単位時間を経過してない場合には(ステップS31でNO)、ステップS11及びステップS21に戻り、処理を繰り返す。   The generation unit 130 determines whether a unit time (for example, one hour) has passed since the first step count ST1 and the second step count ST2 are reset (step S31). If the unit time has elapsed (YES in step S31), generation unit 130 determines the first step number ST1 in this unit time incremented by first counting unit 110 and the unit time incremented by second counting unit 120. The second step count ST2 is used as a pair. Then, the generation unit 130 associates the set of the first number of steps ST1 and the second number of steps ST2 with the date and time of the unit time and stores the result in the table 230 of the storage unit 20. Then, the first number of steps ST1 and the second number of steps ST2 Are reset (step S32). On the other hand, if the unit time has not elapsed (NO in step S31), the process returns to step S11 and step S21 to repeat the process.

次いで、生成部130は、準備段階の開始から一定期間が経過したか否かを判定する(ステップS33)。一定期間を経過していない場合には(ステップS33でNO)、ステップS2に戻り、処理を繰り返す。一方、一定期間が経過した場合には(ステップS33でYES)、生成部130は、記憶部20に記憶したテーブル230から、一定期間に記憶された第1歩数ST1と第2歩数ST2との組を読み出す。そして、生成部130は、統計的手法によって、第1歩数ST1から第2歩数ST2を推定する第1関係式F1を生成し(ステップS34)、この生成した第1関係式F1を記憶部20に記憶して、準備段階における一連の処理を終了する。   Next, the generation unit 130 determines whether a certain period has elapsed since the start of the preparation stage (step S33). If the predetermined period has not elapsed (NO in step S33), the process returns to step S2 and the process is repeated. On the other hand, when the fixed period has elapsed (YES in step S33), generation unit 130 sets a combination of first step count ST1 and second step count ST2 stored in the fixed period from table 230 stored in storage unit 20. Read out. Then, the generation unit 130 generates a first relational expression F1 for estimating the second step ST2 from the first step count ST1 by a statistical method (step S34), and stores the generated first relational expression F1 in the storage unit 20. It memorizes and finishes a series of processing in a preparation stage.

次に、図3Cに示すフローチャートを用いて、実測段階における携帯端末1の動作について説明する。なお、ここでは、歩数計測プログラム221の起動状態が維持されているものとして説明する。
サブプロセッサ60は、準備段階における処理が終了した後も、引き続き、準備段階で説明したステップS1と同様に、デフォルト計数部610により歩数ST0を計数する処理を行う(ステップ41)。
Next, the operation of the portable terminal 1 in the measurement stage will be described using the flowchart shown in FIG. 3C. Here, it is assumed that the activation state of the step count measurement program 221 is maintained.
Even after the processing in the preparation stage is completed, the sub processor 60 continues the process of counting the number of steps ST0 by the default counting unit 610 as in step S1 described in the preparation stage (step 41).

次に、メインプロセッサ10では、歩数計測プログラム221が起動状態の際に、操作表示部40からの操作により実測段階のモードが選択されると、歩数計測プログラム2210おける実測段階の機能を実行する。実測段階の開始として、まず、第1計数部110は、第1歩数ST1を0(ST1=0)にリセットする(ステップS42)。   Next, in the main processor 10, when the step measurement program 221 is activated, and the mode of the measurement step is selected by the operation from the operation display unit 40, the function of the measurement step in the step measurement program 2210 is executed. As the start of the measurement step, first, the first counting unit 110 resets the first step number ST1 to 0 (ST1 = 0) (step S42).

次に、この後のステップS43〜ステップS45では、準備段階で説明した第1計数部110によるステップS11〜ステップS13の処理と同様に、第1計数部110により処理を行い、ステップS44でNO又はステップS45の処理の後、ステップ46に進む。   Next, in the subsequent steps S43 to S45, the process is performed by the first counting unit 110 in the same manner as the process of the steps S11 to S13 by the first counting unit 110 described in the preparation stage, and NO in step S44 or After the process of step S45, the process proceeds to step 46.

次に、補正部140は、操作表示部40における画面が表示中か否かを判定する(ステップS46)。画面が表示中である場合には(ステップS46でYES)、第1歩数ST1を取得し、記憶部20に記憶した第1関係式F1を読み出し、読みだした第1関係式F1に第1歩数ST1を代入して、実測段階における累積歩数ST10を求める(ステップS47)。   Next, the correction unit 140 determines whether the screen on the operation display unit 40 is being displayed (step S46). If the screen is being displayed (YES in step S46), the first step number ST1 is acquired, the first relational expression F1 stored in the storage unit 20 is read, and the first relational expression F1 is read. ST1 is substituted to calculate the cumulative number of steps ST10 in the measurement stage (step S47).

次に、操作表示部40は、補正部140で算出した実測段階における累積歩数ST10を表示する(ステップS48)。ステップS46でNO又はステップS48の処理の後、第1計数部110は、操作表示部40から測定終了の指示を受けたか否かを判定する(ステップS49)。測定終了の指示を受けていない場合には(ステップS49でNO)、ステップS43に戻り、処理が繰り返される。一方、測定終了の指示を受けた場合にはステップS49でYES)、実測段階における一連の処理を終了する。   Next, the operation display unit 40 displays the cumulative number of steps ST10 in the actual measurement stage calculated by the correction unit 140 (step S48). After NO in step S46 or the process of step S48, the first counting unit 110 determines whether an instruction to end the measurement has been received from the operation display unit 40 (step S49). If the instruction to end the measurement has not been received (NO in step S49), the process returns to step S43 and the process is repeated. On the other hand, when an instruction to end the measurement is received (YES in step S49), the series of processes in the measurement stage is ended.

第1実施形態によれば、準備段階において、第1計数部110と第2計数部120とを動作させて、第1歩数ST1と第2歩数ST2との関係を示す第1関係式F1を生成部130で生成し、実測段階では、第2計数部120の動作を停止させ、第1計数部110で計測された第1歩数ST1と第1関係式F1を用いて累積歩数ST10を生成した。第2計数部120は、第1計数部110と比較して、処理負荷が大きく消費電力が大きいが計数の精度は高い。準備段階では第1計数部110と第2計数部120とを動作させるので、消費電力は増加するが、実測段階では第1計数部110と補正部140のみを動作させれば、第1歩数ST1よりも精度の高い累積歩数ST10を、低消費電力で生成することができる。この結果、携帯端末1は、歩数計測プログラム221を実行することによって、消費電力を低減しつつ歩数を高い精度で計数することができる。   According to the first embodiment, in the preparation stage, the first counting unit 110 and the second counting unit 120 are operated to generate the first relational expression F1 indicating the relationship between the first number of steps ST1 and the second number of steps ST2. In the measurement step, the operation of the second counting unit 120 is stopped, and the cumulative step count ST10 is generated using the first step count ST1 measured by the first counting unit 110 and the first relational expression F1. Compared with the first counting unit 110, the second counting unit 120 has a large processing load and a large power consumption, but has a high counting accuracy. Since the first counting unit 110 and the second counting unit 120 are operated at the preparation stage, the power consumption increases, but if only the first counting unit 110 and the correction unit 140 are operated at the measurement stage, the first step number ST1 It is possible to generate the accumulated step count ST10 with higher accuracy than with low power consumption. As a result, the portable terminal 1 can count the number of steps with high accuracy while reducing the power consumption by executing the step number measurement program 221.

<第2実施形態>
第1実施形態で説明した歩数計測プログラム221は、連続歩行を検出することを機能させるものでなかった。これに対して、第2実施形態の歩数計測プログラム222は、連続歩行の回数NCを計数することを機能させるもので、生成部130が第1歩数ST1及び第2歩数ST2の他に連続歩行の回数NCに基づいて関係式Fを生成する点で、第1実施形態と相違する。
なお、以下、第2実施形態において、第1実施形態で説明した同様な部分の説明を省略し、相違する部分について説明する。
Second Embodiment
The step counting program 221 described in the first embodiment does not function to detect continuous walking. On the other hand, the step count measurement program 222 according to the second embodiment functions to count the number of continuous walks NC, and the generation unit 130 performs continuous walk in addition to the first step count ST1 and the second step count ST2. This embodiment differs from the first embodiment in that the relational expression F is generated based on the number of times NC.
In the following, in the second embodiment, the description of similar parts described in the first embodiment is omitted, and different parts will be described.

連続歩行とは、ユーザが立ち止まらずに連続して歩行することを意味する。また、連続歩行の回数NCとは、一連の連続歩行が行われた回数の意味である。例えば、ユーザが、郵便物を投函する場合に、自宅から郵便ポストまで歩き、投函のために立ち止り、郵便ポストから自宅に戻るといった歩行を、単位時間に行ったとする。この場合、行きの歩行と帰りの歩行の各々が、連続歩行に該当し、単位時間あたりの連続歩行の回数Nは「2」となる。   The continuous walking means that the user walks continuously without stopping. Moreover, the number of times of continuous walking NC means the number of times a series of continuous walking has been performed. For example, it is assumed that the user walks from home to the postbox, stops for posting, and walks back from the postpost to the unit time when posting a mail. In this case, each of the going walk and the return walk corresponds to continuous walking, and the number N of continuous walkings per unit time is “2”.

図4は、第2実施形態における携帯端末1の構成を示す機能ブロック図である。メインプロセッサ10は、歩数計測プログラム222を記憶部20から読み出し、読み出した歩数計測プログラム222を実行することで、第1計数部110の機能、第2計数部120の機能、生成部130の機能及び補正部140の機能に加えて、連続歩行計数部111の機能を更に実現する。   FIG. 4 is a functional block diagram showing the configuration of the portable terminal 1 in the second embodiment. The main processor 10 reads the step count measurement program 222 from the storage unit 20 and executes the read step count measurement program 222 to obtain the function of the first counting unit 110, the function of the second counting unit 120, the function of the generation unit 130, In addition to the function of the correction unit 140, the function of the continuous gait counting unit 111 is further realized.

連続歩行計数部111は、準備段階及び実測段階で動作する。連続歩行計数部111は、第1歩数ST1に基づいて連続歩行の回数NCを計数する。具体的には、連続歩行計数部111は、第1歩数ST1が既定時間(例えば、1秒)に達する前に増加した場合にユーザの状態が歩行中であると判定する。一方、連続歩行計数部111は、第1歩数ST1が既定時間に達する前に増加しなかった場合、ユーザの連続歩行が中断され、ユーザの状態が静止であると判定する。この場合、連続歩行計数部111は、連続歩行の回数NCを「1」増加させる。連続歩行計数部111は、ユーザの状態を示す状態情報を管理する。状態情報は、ユーザの状態が歩行中であるか、ユーザの状態が静止であるかを示す。このように連続歩行計数部111は、第1歩数ST1が更新された直前のタイミングから現在までの歩行時間と既定時間とを比較してユーザが歩行中であるかユーザが静止しているかを判定する。   The continuous gait counting unit 111 operates in the preparation stage and the measurement stage. The continuous walking counting unit 111 counts the number NC of continuous walking based on the first number of steps ST1. Specifically, the continuous gait counting unit 111 determines that the state of the user is walking when the first number of steps ST1 increases before reaching a predetermined time (for example, 1 second). On the other hand, when the first step number ST1 does not increase before reaching the predetermined time, the continuous walking counting unit 111 determines that the continuous walking of the user is interrupted and the state of the user is stationary. In this case, the continuous walk counting unit 111 increases the number of continuous walks NC by “1”. The continuous walking counting unit 111 manages state information indicating the state of the user. The state information indicates whether the state of the user is walking or the state of the user is stationary. As described above, the continuous walking counting unit 111 compares the walking time from the timing immediately before the first step count ST1 is updated to the current time with the predetermined time to determine whether the user is walking or the user is stationary. Do.

生成部130は、連続歩行計数部111で計数された連続歩行の回数NCを取得する。そして、生成部130は、第1歩数ST1及び第2歩数ST2に加え、連続歩行の回数NCを用いて関係式Fを生成する。   The generation unit 130 acquires the number of continuous walks NC counted by the continuous walk counting unit 111. Then, the generation unit 130 generates the relational expression F using the number of continuous walks NC in addition to the first number of steps ST1 and the second number of steps ST2.

詳細には、生成部130は、単位時間あたりの第1歩数ST1と、単位時間あたりの第2歩数ST2と、単位時間あたりの連続歩行の回数NCとの組(ST1,ST2,NC)を日時に関連付けてテーブル230に記憶することを単位時間ごとに繰り返す。
生成部130は、一定期間が経過した後、記憶部20からテーブル230を読み出し、統計的手法(回帰分析)によって、第2関係式F2を生成する。第2関係式F2は、次の式(2)で表される。
F2(ST1,NC)=ST10=ST1×α+NC×β+γ …(2)
In detail, the generation unit 130 determines the time (ST1, ST2, NC) of the first step number ST1 per unit time, the second step number ST2 per unit time, and the number NC of continuous walks per unit time. Storing in the table 230 in association with each other is repeated every unit time.
The generation unit 130 reads the table 230 from the storage unit 20 after a predetermined period has elapsed, and generates the second relational expression F2 by a statistical method (regression analysis). The second relational expression F2 is expressed by the following expression (2).
F2 (ST1, NC) = ST10 = ST1 × α + NC × β + γ (2)

式(2)は、上述の式(1)に示す回帰直線を連続歩行の回数NCで補正することを表している。βは、連続歩行の回数NCの係数である。式(2)に示すように、関係式Fは、第1歩数ST1及び連続歩行の回数NCを変数に持つ。値α、β及びγを算出するため、生成部130は、第1歩数ST1と、第2歩数ST2と、単位時間あたりの連続歩行の回数NCとの組(ST1,ST2,NC)をテーブル230から複数読み出す。そして、生成部130は、例えば、読み出した複数の組(ST1,ST2,NC)に最小二乗法を適用して式(2)の値α、β及びγを算出する。   Formula (2) represents correcting the regression line shown in the above-mentioned Formula (1) by the number of times of continuous walking NC. β is a coefficient of the number of continuous walks NC. As shown in the equation (2), the relational expression F has the first number of steps ST1 and the number of continuous walks NC as variables. In order to calculate the values α, β and γ, the generation unit 130 generates a table (ST1, ST2, NC) of a first number of steps ST1, a second number of steps ST2, and the number NC of continuous walks per unit time. Read multiple from. Then, the generation unit 130 applies, for example, the least squares method to the plurality of sets (ST1, ST2, NC) read out to calculate the values α, β, and γ in Expression (2).

補正部140は、実測段階において、記憶部20に記憶した式(2)に示す第2関係式F2を取得し、また、第1計数部110から第1歩数ST1を取得し、連続歩行計数部111から連続歩行の回数NCを取得し、式(2)に示す第2関係式F2に第1歩数ST1と連続歩行の回数NCとを代入して、実測段階における累積歩数ST10を算出する。すなわち、第2計数部120が計数したと推定される累積歩数ST10が求められる。   The correction unit 140 acquires the second relational expression F2 shown in the equation (2) stored in the storage unit 20 in the measurement stage, and acquires the first step number ST1 from the first counting unit 110, and the continuous walking counting unit The number of continuous walks NC is acquired from 111, and the first number of steps ST1 and the number of continuous walks NC are substituted into the second relational expression F2 shown in equation (2) to calculate the cumulative number of steps ST10 in the measurement stage. That is, the cumulative number of steps ST10 estimated to be counted by the second counting unit 120 is obtained.

次に、第2実施形態に係る携帯端末1の動作を説明する。図5A及び図5Bは、第2実施形態の準備段階における携帯端末1の動作を例示するフローチャートである。第1実施形態で説明した歩数計測プログラム221に関する処理に対して、第2実施形態は、図5Aに示すように、歩数計測プログラム222に関する処理において、ステップS13の後にステップS14乃至ステップS19が設けられている。   Next, the operation of the mobile terminal 1 according to the second embodiment will be described. FIG. 5A and FIG. 5B are flowcharts illustrating the operation of the mobile terminal 1 in the preparation phase of the second embodiment. In contrast to the process relating to the step count measurement program 221 described in the first embodiment, in the process relating to the step count measurement program 222 according to the second embodiment, as shown in FIG. 5A, steps S14 to S19 are provided after step S13. ing.

ステップS12の判定結果が肯定であり、一歩が検出され、第1歩数ST1がインクリメントされた場合、連続歩行計数部111は、歩行時間をリセットする(ステップS14)。歩行時間は直前の一歩が検出されてから現在までの時間を示している。歩行時間が長くなるのは、次の一歩までの時間が掛かっていることになる。この後、連続歩行計数部111は、状態情報を歩行中に設定する(ステップS15)。   If the determination result in step S12 is affirmative, one step is detected, and the first step count ST1 is incremented, the continuous walking counting unit 111 resets the walking time (step S14). The walking time indicates the time from when the previous step is detected to the present time. The long walking time means that it takes time until the next step. Thereafter, the continuous walking counting unit 111 sets state information while walking (step S15).

次に、連続歩行計数部111は、状態情報が歩行中を示すか否かを判定する(ステップS16)。状態情報が歩行中を示す場合(ステップS16でYES)、連続歩行計数部111は、歩行時間が既定時間(例えば、1秒)を超えたか否かを判定する(ステップS17)。歩行時間が既定時間を超えた場合(ステップS17でYES)には、連続歩行計数部111は、連続歩行の回数NCをインクリメントし(ステップS18)、状態情報を静止に設定する(ステップS19)。   Next, the continuous walking counting unit 111 determines whether the state information indicates walking (step S16). When the state information indicates that the user is walking (YES in step S16), the continuous walking counting unit 111 determines whether the walking time has exceeded a predetermined time (for example, 1 second) (step S17). If the walking time exceeds the predetermined time (YES in step S17), the continuous walking counting unit 111 increments the number of continuous walkings NC (step S18), and sets the state information to be stationary (step S19).

ステップS16の判定結果が否定で状態情報が静止を示す場合(ステップS16でNO)、ステップS17の判定結果が否定で歩行時間が既定時間を超えていない場合(ステップS17でNO)、ステップS19が終了した場合、ステップS23の判定結果が否定で一歩が検出されなかった場合(ステップS23でNO)、又はステップS24の処理が終了した場合、生成部130は、第1歩数ST1と第2歩数ST2とがリセットされてから、単位時間(例えば、1時間)を経過したか否かを判定する(ステップS26)。単位時間を経過した場合には(ステップS26でYES)、生成部130は、この単位時間における、第1歩数ST1、第2歩数ST2及び連続歩行の回数NCの組を、当該単位時間における日時に関連付けて、記憶部20のテーブル230に記憶した後、第1歩数ST1、第2歩数ST2、及び連続歩行の回数NCをリセットする(ステップS27)。   If the determination result in step S16 is negative and the state information indicates stationary (NO in step S16), if the determination result in step S17 is negative and the walking time does not exceed the predetermined time (NO in step S17), step S19 is If completed, if the determination result in step S23 is negative and one step is not detected (NO in step S23), or if the process in step S24 ends, the generation unit 130 generates the first number of steps ST1 and the second number of steps ST2. It is determined whether a unit time (for example, one hour) has passed since the reset of. If the unit time has elapsed (YES in step S26), the generation unit 130 sets a combination of the first number of steps ST1 and the second number of steps ST2 and the number of continuous walks NC in this unit time to the date and time in the unit time. After associating and storing in the table 230 of the storage unit 20, the first step count ST1, the second step count ST2, and the number of continuous walks NC are reset (step S27).

ステップS27の処理が終了するか、又はステップS26の判定結果が否定である場合(ステップS26でNO)、生成部130は、準備段階の開始から一定期間が経過したか否かを判定する(ステップS28)。一定期間を経過していない場合には(ステップS28でNO)、処理がステップS21及びステップS11に戻される。   When the process of step S27 ends or the determination result of step S26 is negative (NO in step S26), generation unit 130 determines whether or not a certain period has elapsed from the start of the preparation stage (step S28). If the fixed period has not elapsed (NO in step S28), the process is returned to step S21 and step S11.

準備段階の開始から一定期間が経過した場合(ステップS28でYES)、生成部130は、記憶部20に記憶したテーブル230から、一定期間に記憶された第1歩数ST1、第2歩数ST2、及び連続歩行の回数NCの組を読み出す。そして、生成部130は、統計的手法によって、第1歩数ST1及び連続歩行の回数NCから第2歩数ST2を推定する第2関係式F2を生成し(ステップS29)、第2関係式F2を記憶部20に記憶して、準備段階における一連の処理を終了する。   When the fixed period has elapsed from the start of the preparation stage (YES in step S28), the generation unit 130 generates the first step count ST1 and the second step count ST2 stored in the fixed period from the table 230 stored in the storage unit 20. The number of continuous walks NC is read out. Then, the generation unit 130 generates a second relational expression F2 for estimating the second ST2 from the first STOT number and the number of continuous walks NC by the statistical method (step S29), and stores the second relational expression F2. It memorize | stores in the part 20 and complete | finishes a series of processes in a preparation stage.

次に、第2実施形態における実測段階の携帯端末1の動作を説明する。図5Cは、第2実施形態における実測段階の携帯端末1の動作の一例を示すフローチャートである。図5Cに示すフローチャートが、図3Cに示す第1実施形態のフローチャートと相違するのは、ステップS43〜S45に替わりにステップS43bを実行する点と、ステップS47の替わりにステップS47bを実行する点である。以下、相違点について説明する。   Next, the operation of the mobile terminal 1 at the measurement stage in the second embodiment will be described. FIG. 5C is a flowchart showing an example of the operation of the mobile terminal 1 in the measurement stage in the second embodiment. The flowchart shown in FIG. 5C is different from the flowchart of the first embodiment shown in FIG. 3C in that step S43b is executed instead of steps S43 to S45 and step S47b is executed instead of step S47. is there. The differences will be described below.

ステップS43bでは、第1歩数ST1及び連続歩行の回数NCが計数される。この処理は、図5Aを参照して説明したステップS11〜S19と同様である。また、ステップS47bにおいて、補正部140は、記憶部20から読み出した第2関係式F2に第1歩数ST1と連続歩行の回数NCを代入することによって、実測段階における累積歩数ST10を算出する。   In step S43b, the first step number ST1 and the number of continuous walks NC are counted. This process is similar to steps S11 to S19 described with reference to FIG. 5A. Further, in step S47b, the correction unit 140 substitutes the first number of steps ST1 and the number of continuous walks NC into the second relational expression F2 read from the storage unit 20 to calculate the cumulative number of steps ST10 in the measurement stage.

第2実施形態では、更に、連続歩行の回数を考慮した第2関係式F2を用いて累積歩数ST10を求めるので、メインプロセッサ10、延いては携帯端末1の消費電力を低減しつつ、第1実施形態よりも、歩数をより高い精度で計数することができる。   In the second embodiment, since the cumulative number of steps ST10 is further calculated using the second relational expression F2 in consideration of the number of continuous walks, the power consumption of the main processor 10 and thus the portable terminal 1 can be reduced. The number of steps can be counted with higher accuracy than in the embodiment.

<第3実施形態>
第2実施形態で説明した歩数計測プログラム222で実現される機能は、ユーザが乗り物に乗っている場合、乗り物に発生する振動が誤って歩数として計測されることがある。これに対して、第3実施形態の歩数計測プログラム223で実現される機能は、ユーザが乗り物に乗っているかどうかを判定して、移動速度が小さい場合に適用される第1速度関係式F31と移動速度が大きい場合に適用される第2速度関係式F32を生成する点で、第2実施形態と相違する。
なお、以下、第3実施形態において、第2実施形態で説明した同様な部分の説明を省略し、相違する部分について説明する。
Third Embodiment
In the function implemented by the step count measurement program 222 described in the second embodiment, when the user is on a vehicle, vibrations generated in the vehicle may be erroneously measured as the number of steps. On the other hand, the function realized by the step count measurement program 223 of the third embodiment determines whether or not the user is on a vehicle, and applies the first speed relationship formula F31 applied when the moving speed is low. The second embodiment is different from the second embodiment in that a second velocity relationship F32 applied when the moving velocity is high is generated.
Hereinafter, in the third embodiment, the description of similar parts described in the second embodiment will be omitted, and different parts will be described.

図6は、第3実施形態における携帯端末1の機能ブロック図である。第3実施形態は、次の点で第2実施形態と異なる。第1に、メインプロセッサ10は、歩数計測プログラム223を記憶部20から読み出し、読み出した歩数計測プログラム223を実行することで、第1計数部110の機能、第2計数部120の機能、生成部130の機能、連続歩行計数部111及び補正部140の機能に加えて、移動速度の大きさを特定する特定部112の機能を更に実現する。第2に、この特定部112から現在の移動速度Vを取得し、移動速度Vに基づいて生成部130が第1速度関係式F31及び第2速度関係式F32を生成する。第3に、補正部140は、移動速度Vを考慮した第1速度関係式F31及び第2速度関係式F32を用いて第1歩数ST1を補正して累積歩数ST10を生成する。   FIG. 6 is a functional block diagram of the portable terminal 1 in the third embodiment. The third embodiment differs from the second embodiment in the following points. First, the main processor 10 reads the step count measurement program 223 from the storage unit 20 and executes the read step count measurement program 223 to obtain the functions of the first counting unit 110, the functions of the second counting unit 120, and the generation unit. In addition to the function of 130 and the functions of the continuous walking counting unit 111 and the correcting unit 140, the function of the specifying unit 112 for specifying the magnitude of the moving speed is further realized. Second, the current moving speed V is acquired from the specifying unit 112, and the generating unit 130 generates a first speed relation F31 and a second speed relation F32 based on the movement speed V. Thirdly, the correction unit 140 corrects the first number of steps ST1 using the first speed relationship formula F31 and the second speed relationship formula F32 in consideration of the moving speed V, and generates the cumulative number of steps ST10.

特定部112は、準備段階及び実測段階で動作する。特定部112は、ユーザの移動速度Vを特定する。特定部112は、例えば、加速度センサ30から3軸方向の加速度値Aを取得し、取得した加速度値Aを用いて、ユーザの移動速度Vを算出する。   The identifying unit 112 operates in the preparation stage and the measurement stage. The identifying unit 112 identifies the moving velocity V of the user. The identifying unit 112, for example, acquires acceleration values A in the directions of three axes from the acceleration sensor 30, and calculates the moving velocity V of the user using the acquired acceleration values A.

移動速度Vを算出する方法は、任意の方法でよい。例えば、特定部112は、X軸方向の加速度値AX、Y軸方向の加速度値AY及びZ軸方向の加速度値AZを合成して、加速度値の大きさ|A|を算出する(|A|=(AX+AY+AZ1/2)。そして、特定部112は、算出した加速度値の大きさ|A|を時間について積分して、移動速度Vを算出して累積歩数ST10を生成する。 The moving speed V may be calculated by any method. For example, the identifying unit 112 combines the acceleration value AX in the X-axis direction, the acceleration value AY in the Y-axis direction, and the acceleration value AZ in the Z-axis direction to calculate the magnitude | A | of the acceleration value (| A | = (AX 2 + AY 2 + AZ 2 ) 1/2 ). Then, the identifying unit 112 integrates the calculated magnitude | A | of the acceleration value with respect to time, calculates the moving speed V, and generates the cumulative number of steps ST10.

生成部130は、ユーザが乗り物に乗っていない状態なのか、乗り物に乗っている状態なのかを判定して第1速度関係式F31及び第2速度関係式F32を生成する。具体的には、生成部130は、特定部112から現在の移動速度Vを取得する。そして、生成部130は、現在の移動速度Vに基づいて、式(2)に示す第2関係式F2を第1速度関係式F31と第2速度関係式F32とに分けて生成する。第1速度関係式F31は、現在の移動速度Vが基準値Vref未満の場合に適用する式である。第2速度関係式F32は、現在の移動速度Vが基準値Vref以上の場合に適用する式である。   The generation unit 130 determines whether the user is not in the vehicle or in the vehicle, and generates the first velocity relationship F31 and the second velocity relationship F32. Specifically, the generation unit 130 acquires the current moving speed V from the identification unit 112. Then, based on the current moving speed V, the generation unit 130 divides the second relational expression F2 shown in Expression (2) into a first speed relational expression F31 and a second speed relational expression F32 and generates the same. The first velocity relational expression F31 is an expression that is applied when the current moving velocity V is less than the reference value Vref. The second velocity relational expression F32 is an expression that is applied when the current moving velocity V is equal to or higher than the reference value Vref.

基準値Vrefは、移動速度Vが乗り物の速さであるかを判別するための基準である。また、基準値Vrefは、予め定められている値であって、例えば、時速8kmである。時速8kmは、歩く速度よりは早く、自転車の速度よりは一般に遅いことを根拠に決定された値である。   The reference value Vref is a reference for determining whether the moving speed V is the speed of the vehicle. The reference value Vref is a predetermined value, for example, 8 km / h. The speed of 8 km / h is a value determined based on being faster than the walking speed and generally slower than the speed of the bicycle.

生成部130は、現在の移動速度Vが基準値Vref未満の場合、ユーザは乗り物に乗っていない第1状態Wにあると判定する。言い換えれば、第1状態Wは、徒歩又は走っている状態である。一方、生成部130は、現在の移動速度Vが基準値Vref以上の場合、ユーザは乗り物に乗っている第2状態TRにあると判定する。そして、生成部130は、一定期間(例えば、一週間)が経過するまで、現在の移動速度Vに基づいて、第1歩数ST1、第2歩数ST2、及び連続歩行の回数NCの組(ST1,ST2,NC)並びに第1状態W又は第2状態TRを、年月日及び時間帯に関連付けてテーブル230に記憶することを単位時間ごとに繰り返す。   If the current moving speed V is less than the reference value Vref, the generation unit 130 determines that the user is in the first state W in which the user is not on a vehicle. In other words, the first state W is a state of walking or running. On the other hand, when the current moving speed V is equal to or higher than the reference value Vref, the generation unit 130 determines that the user is in the second state TR in which the user is on the vehicle. Then, the generation unit 130 sets a first number of steps ST1, a second number of steps ST2 and a number NC of continuous walks (ST1, ST1) based on the current moving speed V until a predetermined period (for example, one week) elapses. Storing ST2, NC) and the first state W or the second state TR in the table 230 in association with the date and time zone is repeated every unit time.

図7は、第3実施形態におけるテーブル230の一例を示す図である。例えば、テーブル230の1行目は、2016年6月1日の8時から9時までの時間帯において、第1歩数ST1と第2歩数ST2と連続歩行の回数NCとの組(ST1,ST2,NC)が第1状態Wに関連付けられていることを示している。また、テーブル230の6行目は、13時から14時までの時間帯において、第1歩数ST1が1241歩であり、そのうちの120歩が第1状態Wに関連付けられ、残りの1121歩が第2状態TRに関連付けられていることを示している。同様に、第2歩数ST2が805歩であり、そのうちの95歩が第1状態Wに関連付けられ、残りの710歩が第2状態TRに関連付けられていることを示している。なお、テーブル230の3行目に示すように、第1歩数ST1及び第2歩数ST2の双方が0であった場合、生成部130は、例えば、NA(Not Applicable)を対応する組(ST1,ST2,NC)に関連付ける。   FIG. 7 is a diagram showing an example of the table 230 in the third embodiment. For example, the first row of the table 230 is a set of the first number of steps ST1, the second number of steps ST2, and the number of continuous walks NC (ST1, ST2) in the time zone from 8:00 to 9:00 on June 1, 2016 , NC) is associated with the first state W. In the sixth row of the table 230, the first step number ST1 is 1241 steps in the time zone from 13:00 to 14:00, 120 steps of which are associated with the first state W, and the remaining 1121 steps are It shows that it is associated with the 2 state TR. Similarly, it is shown that the second step number ST2 is 805 steps, of which 95 steps are associated with the first state W, and the remaining 710 steps are associated with the second state TR. Note that, as shown in the third row of the table 230, when both the first step count ST1 and the second step count ST2 are 0, the generation unit 130, for example, sets a pair (ST1, ST1) corresponding to NA (Not Applicable). Associate with ST2, NC).

生成部130は、一定期間が経過した後、第1状態Wに関連付けられている組を用いて第1速度関係式F31を生成し、第2状態TRに関連付けられている組を用いて第2速度関係式F32を生成する。具体的には、生成部130は、一定期間が経過した後、第1状態Wに関連付けられている組(ST1,ST2,NC)をテーブル230から複数抽出し、統計的手法(回帰分析)によって、抽出した複数の組を用いて第1速度関係式F31を生成する。同様に、生成部130は、第2状態TRに関連付けられている組(ST1,ST2,NC)をテーブル230から複数抽出し、統計的手法(回帰分析)によって、抽出した複数の組を用いて第2速度関係式F32を生成する。   After a certain period of time has elapsed, the generation unit 130 generates a first velocity relationship F31 using the set associated with the first state W, and uses the set associated with the second state TR for the second. Generate a velocity relational expression F32. Specifically, after a certain period of time has elapsed, the generation unit 130 extracts a plurality of sets (ST1, ST2, NC) associated with the first state W from the table 230, and uses a statistical method (regression analysis). The plurality of extracted sets are used to generate a first velocity relationship F31. Similarly, the generation unit 130 extracts a plurality of sets (ST1, ST2, NC) associated with the second state TR from the table 230, and uses the plurality of sets extracted by the statistical method (regression analysis). A second velocity relation F32 is generated.

ユーザが乗り物に乗っていない第1状態Wに適用される第1速度関係式F31は、次の式(3)で表される。一方、ユーザが乗り物に乗っている第2状態TRに適用される第2速度関係式F32は、次の式(4)で表される。
F31(ST1,NC)=ST10=ST1×α+NC×β+γ …(3)
F32(ST1,NC)=ST10=ST1×α+NC×β+γ …(4)
The first velocity relationship F31 applied to the first state W in which the user is not in a vehicle is expressed by the following equation (3). On the other hand, the second velocity relation F32 applied to the second state TR in which the user is in a vehicle is expressed by the following equation (4).
F31 (ST1, NC) = ST10 = ST1 × α 1 + NC × β 1 + γ 1 (3)
F32 (ST1, NC) = ST10 = ST1 × α 2 + NC × β 2 + γ 2 (4)

式(3)及び式(4)において、α及びαは、第1歩数ST1の係数である。β及びβは、連続歩行の回数NCの係数である。γ及びγは、切片である。α、β及びγを求めるため、生成部130は、第1状態Wに関連付けられている組に最小二乗法を適用する。同様に、α、β及びγを求めるため、生成部130は、第2状態TRに関連付けられている組に最小二乗法を適用する。 In Formula (3) and Formula (4), (alpha) 1 and (alpha) 2 are coefficients of 1st step number ST1. β 1 and β 2 are coefficients of the number of continuous walks NC. γ 1 and γ 2 are sections. In order to determine α 1 , β 1 and γ 1 , the generation unit 130 applies the least squares method to the set associated with the first state W. Similarly, in order to obtain α 2 , β 2 and γ 2 , the generation unit 130 applies the least squares method to the set associated with the second state TR.

補正部140は、実測段階において、記憶部20に記憶した第1速度関係式F31及び第2速度関係式F32のいずれかを現在の移動速度Vに基づいて選択し、また、第1計数部110から第1歩数ST1を取得し、連続歩行計数部111から連続歩行の回数NCを取得し、選択した方の関係式に第1歩数ST1と連続歩行の回数NCとを代入して、実測段階における累積歩数ST10を算出する。すなわち、第2計数部120が計数したと推定される累積歩数ST10が求められる。詳細には、補正部140は、実測段階において、特定部112から現在の移動速度Vを取得し、また、第1計数部110から第1歩数ST1を取得し、連続歩行計数部111から連続歩行の回数NCを取得する。そして、補正部140は、取得した現在の移動速度Vが基準値Vref未満の場合、ユーザは乗り物に乗っていない第1状態Wにあると判定し、第1速度関係式F31を選択し、この選択した第1速度関係式F31に、取得した第1歩数ST1と連続歩行の回数NCとを代入して、実測段階における累積歩数ST10を算出する。一方、補正部140は、現在の移動速度Vが基準値Vref以上の場合、ユーザは乗り物に乗っている第2状態TRにあると判定し、第2速度関係式F32選択し、この選択した第2速度関係式F32に、取得した第1歩数ST1と連続歩行の回数NCとを代入して、実測段階における累積歩数ST10を算出する。   The correction unit 140 selects one of the first velocity relational expression F31 and the second velocity relational expression F32 stored in the storage unit 20 at the actual measurement stage based on the current moving velocity V, and also selects the first counting unit 110. The first step number ST1 is acquired from the second step, the number of continuous walks NC is obtained from the continuous walk counting unit 111, and the first step number ST1 and the number of continuous walks NC are substituted into the selected relational expression The cumulative number of steps ST10 is calculated. That is, the cumulative number of steps ST10 estimated to be counted by the second counting unit 120 is obtained. Specifically, the correction unit 140 acquires the current moving speed V from the identification unit 112 at the measurement stage, acquires the first step number ST1 from the first counting unit 110, and continuously walks from the continuous walking counting unit 111. Get the number of times NC. Then, if the obtained current moving speed V is less than the reference value Vref, the correction unit 140 determines that the user is in the first state W not riding on a vehicle, selects the first speed relationship formula F31, The acquired first step number ST1 and the number of continuous walks NC are substituted into the selected first velocity relational expression F31 to calculate the cumulative number of steps ST10 in the actual measurement stage. On the other hand, when the current moving speed V is equal to or higher than the reference value Vref, the correction unit 140 determines that the user is in the second state TR in the vehicle, selects the second speed relationship formula F32, and selects this The accumulated first step number ST1 and the number of continuous walks NC are substituted into the two-speed relational expression F32 to calculate the cumulative step number ST10 in the actual measurement stage.

図8Aは、第1計数部110によって計数された第1歩数ST1と、第2計数部120によって計数された第2歩数ST2との間の関係を例示するグラフである。四角の記号は、ユーザが乗り物に乗っていない第1状態Wに関連付けられた組(ST1,ST2,NC)を示す。黒丸の記号は、ユーザが乗り物に乗っている第2状態TRに関連付けられた組(ST1,ST2,NC)を示す。また、点線は、第1歩数ST1が第2歩数ST2と一致する場合を仮想的に示す。   FIG. 8A is a graph illustrating the relationship between the first step count ST1 counted by the first counting unit 110 and the second step count ST2 counted by the second counting unit 120. The square symbol indicates a set (ST1, ST2, NC) associated with the first state W in which the user is not in a vehicle. A black circle symbol indicates a set (ST1, ST2, NC) associated with the second state TR in which the user is in the vehicle. The dotted line indicates virtually the case where the first number of steps ST1 matches the second number of steps ST2.

四角の記号で示す複数の組は、点線から若干ずれて分布している。このずれの原因は、ユーザ個人の歩き方に起因すると考えられる。黒丸の記号で示す複数の組は、点線から大きくずれて分布している。このずれの原因は、乗り物の振動が歩数として計数されたことに起因すると考えられる。   A plurality of sets indicated by square symbols are distributed slightly offset from the dotted line. The cause of this deviation is considered to be due to the way the user walks. A plurality of sets indicated by black circle symbols are distributed largely deviated from the dotted line. The cause of this deviation is considered to be that the vibration of the vehicle is counted as the number of steps.

図8Bは、補正部140によって補正された累積歩数ST10と、第2計数部120によって計数された第2歩数ST2との間の関係を例示するグラフである。四角の記号は、ユーザが乗り物に乗っていない第1状態Wに関連付けられた組(ST1,ST2,NC)を示す。黒丸の記号は、ユーザが乗り物に乗っている第2状態TRに関連付けられた組(ST1,ST2,NC)を示す。また、点線は、第1歩数ST1が第2歩数ST2と一致する場合を仮想的に示す。   FIG. 8B is a graph illustrating the relationship between the cumulative number of steps ST10 corrected by the correction unit 140 and the second step number ST2 counted by the second counting unit 120. The square symbol indicates a set (ST1, ST2, NC) associated with the first state W in which the user is not in a vehicle. A black circle symbol indicates a set (ST1, ST2, NC) associated with the second state TR in which the user is in the vehicle. The dotted line indicates virtually the case where the first number of steps ST1 matches the second number of steps ST2.

図8Bに示すように、ユーザが乗り物に乗っていない第1状態Wに関連付けられた組(ST1,ST2,NC)は、概ね点線に沿って分布している。その上で、ユーザが乗り物に乗っている第2状態TRに関連付けられた組(ST1,ST2,NC)の誤計数が改善されている。よって、歩数がより高い精度で計数されていることが分かる。   As shown in FIG. 8B, the sets (ST1, ST2, NC) associated with the first state W in which the user is not on a vehicle are distributed substantially along the dotted line. Moreover, the miscounting of the set (ST1, ST2, NC) associated with the second state TR in which the user is on the vehicle is improved. Thus, it can be seen that the number of steps is counted with higher accuracy.

第3実施形態では、移動速度Vに基づいた第1速度関係式F31及び第2速度関係式F32を用いて累積歩数ST10を求めるので、メインプロセッサ10、延いては携帯端末1の消費電力を低減しつつ、第1及び第2実施形態よりも、歩数をより高い精度で計数することができる。   In the third embodiment, since the cumulative number of steps ST10 is determined using the first speed relation F31 and the second speed relation F32 based on the moving speed V, the power consumption of the main processor 10 and thus the portable terminal 1 is reduced. However, the number of steps can be counted with higher accuracy than in the first and second embodiments.

<変形例>
本発明の一例として実施形態を説明したが、本発明はこれに限定されるものではなく、以下に述べる各種の変形が可能である。更に、以下の例示から任意に選択された2以上の態様は、技術的に矛盾しない限り適宜併合され得る。
<Modification>
Although the embodiment has been described as an example of the present invention, the present invention is not limited to this, and various modifications described below are possible. Furthermore, two or more aspects arbitrarily selected from the following exemplifications may be appropriately combined as long as there is no technical contradiction.

(1)上述した各実施形態では、一定期間が経過することを条件に関係式を生成したが本発明はこれに限定されるものではない。例えば、関係式Fを生成するのに必要なサンプル数がテーブル230に記憶された場合に、準備段階から実測段階へ移行させても良い。また、準備段階の期間をユーザが入力できるようにしても良い。 (1) In each embodiment mentioned above, although a relational expression was generated on condition that fixed period passes, the present invention is not limited to this. For example, when the number of samples necessary to generate the relational expression F is stored in the table 230, the preparation stage may be shifted to the measurement stage. Also, the user may input the period of preparation phase.

(2)上述した各実施形態では、サブプロセッサ60においてデフォルト計数部610の機能を実現したが、加速度センサ30においてデフォルト計数部610の機能を実現することも可能である。具体的には、図1においてデフォルト計数部610は、加速度センサ30の一部として備わり、デフォルト歩数計数プログラム210を記憶部20から読み出し、読み出したデフォルト歩数計数プログラム210を実行する。そして、デフォルト計数部610は、準備段階及び実測段階において、加速度センサ30で検出した加速度値Aに基づいて歩数ST0を計数し、サブプロセッサ60又はメインプロセッサ10の第1計数部110に出力しても良い。 (2) In the above-described embodiments, the function of the default counting unit 610 is realized in the sub processor 60. However, the function of the default counting unit 610 may be realized in the acceleration sensor 30. Specifically, in FIG. 1, the default counting unit 610 is provided as a part of the acceleration sensor 30, reads the default step counting program 210 from the storage unit 20, and executes the read default step counting program 210. Then, the default counting unit 610 counts the number of steps ST0 based on the acceleration value A detected by the acceleration sensor 30 in the preparation stage and the measurement stage, and outputs it to the first processor 110 or the first counting unit 110 of the main processor 10. Also good.

(3)上述した各実施形態では、メインプロセッサ10からの要求に応じてサブプロセッサ60は歩数ST0を出力したが、本発明はこれに限定されるものではなく、第1計数部110が、ユーザの歩行に関する歩行情報を取得できればよい。この歩行情報には、歩数ST0の他に、歩数が「1」増加したことを示す信号が含まれる。例えば、サブプロセッサ60が一歩を検出するごとに発生する割込信号が該当する。
第1計数部110は、歩行情報として割込信号を取得した場合、割込信号を検知すると一歩を検出する(図3Aに示すステップS12)。
(3) In the above-described embodiments, the sub processor 60 outputs the number of steps ST0 in response to a request from the main processor 10, but the present invention is not limited to this. What is necessary is just to be able to acquire the walking information regarding the walking of The walk information includes a signal indicating that the number of steps has increased by "1", in addition to the number of steps ST0. For example, an interrupt signal generated each time the sub processor 60 detects a step corresponds.
When the first counting unit 110 detects an interrupt signal as walking information, the first counting unit 110 detects a step (step S12 shown in FIG. 3A).

(4)上述した各実施形態では、加速度センサ30を用いて、第1歩数ST1及び第2歩数ST2が計数された。ジャイロセンサを加速度センサ30と併用して、第1歩数ST1及び第2歩数ST2を計数してもよい。この場合、ジャイロセンサは、サブプロセッサ60に接続され、3軸における角速度ω、即ち、X軸回りの角速度ωX、Y軸回りの角速度ωY、Z軸回りの角速度ωZを検出する。デフォルト計数部610は、3軸方向の加速度値Aに加え、3軸における角速度ωを用いて歩数ST0を計数する。同様に、第2計数部120も、3軸方向の加速度値Aに加え、3軸における角速度ωを用いて第1歩数ST1を計数する。 (4) In each embodiment mentioned above, using the acceleration sensor 30, 1st step ST1 and 2nd step ST2 were counted. The first step number ST1 and the second step number ST2 may be counted using a gyro sensor in combination with the acceleration sensor 30. In this case, the gyro sensor is connected to the sub processor 60, and detects angular velocity ω in three axes, that is, angular velocity ωX around the X axis, angular velocity ωY around the Y axis, and angular velocity ωZ around the Z axis. The default counting unit 610 counts the number of steps ST0 using the angular velocity ω in three axes in addition to the acceleration value A in the three axial directions. Similarly, the second counting unit 120 also counts the first number of steps ST1 using the angular velocity ω in three axes in addition to the acceleration value A in the three axial directions.

(5)上述した第3実施形態では、現在の移動速度Vは、3軸方向の加速度値Aに基づいて算出される。代替的に、現在の移動速度Vは、GPS(Global Positioning System)によって取得された現在位置に基づいて、算出されてもよい。この場合、特定部112は、位置の時間変化を算出すればよい。 (5) In the third embodiment described above, the current moving speed V is calculated based on the acceleration value A in the three axis directions. Alternatively, the current moving speed V may be calculated based on the current position acquired by GPS (Global Positioning System). In this case, the specifying unit 112 may calculate the time change of the position.

(6)上述した第3実施形態では、第1速度関係式F31及び第2速度関係式F32を連続歩行の回数NCを考慮して生成したが、本発明はこれに限定されるものではなく、第1歩数ST1と第2歩数ST2とに基づいて、第1速度関係式F31及び第2速度関係式F32を生成してもよい。
この場合ユーザが乗り物に乗っていない第1状態Wに適用される第1速度関係式F31は、次の式(5)で表される。一方、ユーザが乗り物に乗っている第2状態TRに適用される第2速度関係式F32は、次の式(6)で表される。
F31(ST1)=ST1×α+γ …(5)
F32(ST1)=ST1×α+γ …(6)
(6) In the third embodiment described above, the first velocity relation F31 and the second velocity relation F32 are generated in consideration of the number of continuous walks NC, but the present invention is not limited to this. The first speed relationship formula F31 and the second speed relationship formula F32 may be generated based on the first number of steps ST1 and the second number of steps ST2.
In this case, the first velocity relation F31 applied to the first state W in which the user is not in a vehicle is expressed by the following equation (5). On the other hand, the second velocity relation F32 applied to the second state TR in which the user is in a vehicle is expressed by the following equation (6).
F31 (ST1) = ST1 × α 1 + γ 1 (5)
F32 (ST1) = ST1 × α 2 + γ 2 (6)

1…携帯端末、10…メインプロセッサ、20…記憶部、30…加速度センサ、40…操作表示部、50…通信部、60…サブプロセッサ、110…第1計数部、120…第2計数部、130…生成部、140…補正部、111…連続歩行計数部、112…特定部、210…デフォルト歩数計数プログラム、221,222,223…歩数計測プログラム、230…テーブル、610…デフォルト計数部。
DESCRIPTION OF SYMBOLS 1 ... Portable terminal, 10 ... Main processor, 20 ... Storage part, 30 ... Acceleration sensor, 40 ... Operation display part, 50 ... Communication part, 60 ... Subprocessor, 110 ... 1st counting part, 120 ... 2nd counting part, 130: generation unit, 140: correction unit, 111: continuous walking counting unit, 112: identification unit, 210: default step counting program, 221, 222, 223: step counting program, 230: table, 610: default counting unit.

Claims (8)

プロセッサに実行させる歩数計測プログラムであって、
前記プロセッサを、
加速度センサから出力される加速度値に基づいて生成されたユーザの歩行に関する歩行情報を取得し、取得した前記歩行情報に基づいて所定タイミングから累積した歩数を示す第1歩数を出力する第1計数部と、
前記加速度値を取得し、取得した前記加速度値に基づいて前記所定タイミングから累積した歩数を示す第2歩数を出力する第2計数部と、
前記第1歩数及び前記第2歩数に基づいて、少なくとも前記第1歩数と前記第2歩数の関係を示す関係式を生成する生成部と、
前記第1歩数と前記関係式とに基づいて、累積歩数を出力する補正部として機能させる、
歩数計測プログラム。
A step count measurement program to be executed by a processor,
The processor,
A first counting unit that acquires walking information about the user's walking generated based on an acceleration value output from an acceleration sensor, and outputs a first number of steps indicating the number of steps accumulated from a predetermined timing based on the acquired walking information When,
A second counting unit that acquires the acceleration value and outputs a second step number indicating the number of steps accumulated from the predetermined timing based on the acquired acceleration value;
A generation unit configured to generate a relational expression indicating a relationship between at least the first number of steps and the second number of steps based on the first number of steps and the second number of steps;
It functions as a correction unit that outputs an accumulated number of steps based on the first number of steps and the relational expression.
Step count measurement program.
歩数を計測する準備段階において前記プロセッサを、
前記第1計数部と、前記第2計数部と、前記生成部として機能させ、
歩数を計測する実測段階において前記プロセッサを、
前記第1計数部と、前記補正部として機能させる、
請求項1に記載の歩数計測プログラム。
In preparation for measuring the number of steps,
Function as the first counting unit, the second counting unit, and the generation unit;
In the measurement step to measure the number of steps, the processor,
Function as the first counting unit and the correction unit;
The step count measurement program according to claim 1.
前記準備段階において前記プロセッサを、
更に、連続歩行の回数を計数する連続歩行計数部として機能させ、
前記関係式は、前記第1歩数、前記第2歩数、及び前記連続歩行の回数の関係を示し、
前記生成部は、前記第1歩数、前記第2歩数及び前記連続歩行の回数に基づいて、当該関係式を生成し、
前記実測段階において前記プロセッサを、
更に、前記連続歩行計数部として機能させ、
前記補正部は、前記第1歩数及び前記連続歩行の回数と当該関係式とに基づいて、累積歩数を出力する、
請求項2に記載の歩数計測プログラム。
In the preparation phase,
Furthermore, it functions as a continuous gait counting unit that counts the number of consecutive gaitings,
The relational expression indicates a relationship between the first number of steps, the second number of steps, and the number of continuous walks;
The generation unit generates the relational expression based on the first number of steps, the second number of steps, and the number of continuous walks,
The processor is
Further, it functions as the continuous gait counting unit,
The correction unit outputs a cumulative number of steps based on the first number of steps, the number of times of continuous walking, and the relational expression.
The step count measurement program according to claim 2.
前記連続歩行計数部は、前記第1歩数が更新された直前のタイミングから現在までの歩行時間と既定時間とを比較してユーザが歩行中であるかユーザが静止しているかを判定し、判定結果に基づいて連続歩行の回数を計数する請求項3に記載の歩数計測プログラム。   The continuous gait counting unit compares the walking time from the timing immediately before the first number of steps is updated to the current time with a predetermined time to determine whether the user is walking or whether the user is stationary. The step count measurement program according to claim 3, wherein the number of continuous walking is counted based on the result. 前記準備段階において前記プロセッサを、
更に、ユーザの移動速度を特定する特定部として機能させ、
前記生成部は、
前記特定部で特定した移動速度を取得し、
前記関係式を、前記移動速度が大きい場合に適用する第1速度関係式と、前記移動速度が小さい場合に適用する第2速度関係式とに分けて生成し、
前記実測段階において前記プロセッサを、
更に、前記特定部として機能させ、
前記補正部は、前記特定部から移動速度を取得し、前記第1速度関係式及び前記第2速度関係式のいずれかを前記移動速度に基づいて選択し、選択した関係式と前記第1歩数とに基づいて累積歩数を出力する、
請求項2〜4のうちいずれか1項に記載の歩数計測プログラム。
In the preparation phase,
Furthermore, it functions as an identifying unit that identifies the moving speed of the user,
The generation unit is
Acquire the moving speed identified by the identifying unit;
The relational expression is generated by being divided into a first velocity relational expression to be applied when the moving velocity is high and a second velocity relational expression to be applied when the moving velocity is low,
The processor is
Further, it functions as the identification unit,
The correction unit acquires the moving speed from the specifying unit, selects one of the first speed relation formula and the second speed relation formula based on the movement speed, and selects the selected relation formula and the first number of steps. Output the cumulative number of steps based on
The step count measurement program according to any one of claims 2 to 4.
前記第1計数部の処理負荷は、前記第2計数部の処理負荷と比較して軽く、
前記第2歩数の精度は、前記第1歩数の精度と比較して高い、
請求項2〜5のうちいずれか1項に記載した歩数計測プログラム。
The processing load of the first counting unit is lighter than the processing load of the second counting unit,
The accuracy of the second number of steps is higher than the accuracy of the first number of steps,
The number-of-steps measurement program according to any one of claims 2 to 5.
加速度値を出力する加速度センサと、
加速度センサから出力される加速度値に基づいてユーザの歩行に関する歩行情報を生成するサブプロセッサと、
前記歩行情報に基づいて所定タイミングから累積した歩数を示す第1歩数を計数する第1計数部と、
前記加速度値に基づいて前記所定タイミングから累積した歩数を示す第2歩数を計数する第2計数部と、
前記第1歩数及び前記第2歩数に基づいて、前記第1歩数と前記第2歩数の関係を示す関係式を生成する生成部と、
前記第1歩数と前記関係式とに基づいて、累積歩数を出力する補正部と、
を備える携帯端末。
An acceleration sensor that outputs an acceleration value,
A sub processor that generates walking information related to the walking of the user based on the acceleration value output from the acceleration sensor;
A first counting unit that counts a first number of steps indicating the number of steps accumulated from a predetermined timing based on the walking information;
A second counting unit that counts a second number of steps indicating the number of steps accumulated from the predetermined timing based on the acceleration value;
A generation unit that generates a relational expression indicating a relationship between the first number of steps and the second number of steps based on the first number of steps and the second number of steps;
A correction unit that outputs an accumulated number of steps based on the first number of steps and the relational expression;
Mobile terminal equipped with
歩数を計測する準備段階において、前記第1計数部、前記第2計数部、及び前記生成部を動作させ、歩数を計測する実測段階において、前記第1計数部及び前記補正部を動作させる、請求項7に記載の携帯端末。
The first counting unit and the correcting unit are operated in the measurement step of measuring the number of steps by operating the first counting unit, the second counting unit, and the generating unit in the preparation step of measuring the number of steps. Item 8. A portable terminal according to item 7.
JP2017075339A 2017-04-05 2017-04-05 Pedometer program and mobile terminal Active JP6804087B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2017075339A JP6804087B2 (en) 2017-04-05 2017-04-05 Pedometer program and mobile terminal
PCT/JP2018/012529 WO2018186239A1 (en) 2017-04-05 2018-03-27 Number-of-steps measuring program, portable terminal, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017075339A JP6804087B2 (en) 2017-04-05 2017-04-05 Pedometer program and mobile terminal

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2020194312A Division JP7162911B2 (en) 2020-11-24 2020-11-24 Pedometer program and mobile terminal

Publications (2)

Publication Number Publication Date
JP2018180683A true JP2018180683A (en) 2018-11-15
JP6804087B2 JP6804087B2 (en) 2020-12-23

Family

ID=63712953

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017075339A Active JP6804087B2 (en) 2017-04-05 2017-04-05 Pedometer program and mobile terminal

Country Status (2)

Country Link
JP (1) JP6804087B2 (en)
WO (1) WO2018186239A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11360439B2 (en) * 2018-10-09 2022-06-14 Casio Computer Co., Ltd. Electronic device, information processing method, and non-transitory computer-readable recording medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001170029A (en) * 1999-12-16 2001-06-26 Hamamatsu Photonics Kk Device and method of measuring motorial state
JP2009028312A (en) * 2007-07-27 2009-02-12 Omron Healthcare Co Ltd Activity meter
JP2009134572A (en) * 2007-11-30 2009-06-18 Nintendo Co Ltd Step count calculation program, step count calculation apparatus, and step count calculation system
JP2013196442A (en) * 2012-03-21 2013-09-30 Yamaha Corp Step count measuring device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009093440A (en) * 2007-10-10 2009-04-30 Kddi Corp Portable terminal and program for complementing number of steps of pedestrian detected by acceleration sensor
CN102264288B (en) * 2008-12-26 2015-07-01 欧姆龙健康医疗事业株式会社 Electronic sphygmomanometer
JP2011145862A (en) * 2010-01-14 2011-07-28 Nec Corp Pedometer, mobile terminal incorporating the same and control method of the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001170029A (en) * 1999-12-16 2001-06-26 Hamamatsu Photonics Kk Device and method of measuring motorial state
JP2009028312A (en) * 2007-07-27 2009-02-12 Omron Healthcare Co Ltd Activity meter
JP2009134572A (en) * 2007-11-30 2009-06-18 Nintendo Co Ltd Step count calculation program, step count calculation apparatus, and step count calculation system
JP2013196442A (en) * 2012-03-21 2013-09-30 Yamaha Corp Step count measuring device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11360439B2 (en) * 2018-10-09 2022-06-14 Casio Computer Co., Ltd. Electronic device, information processing method, and non-transitory computer-readable recording medium

Also Published As

Publication number Publication date
WO2018186239A1 (en) 2018-10-11
JP6804087B2 (en) 2020-12-23

Similar Documents

Publication Publication Date Title
JP4622827B2 (en) Pedometer
JP2014115093A (en) Gps receiver and program
JP2012008637A (en) Pedometer and program
US11341423B2 (en) Information processing apparatus, artificial intelligence selection method, and artificial intelligence selection program
WO2015146046A1 (en) Correlation coefficient correction method, motion analysis method, correlation coefficient correction device, and program
US20120312095A1 (en) Gyroscope dynamic motor amplitude compensation for enhanced rate estimation during startup
JP2016116743A (en) Exercise support device, exercise support method, and program
JP2017049044A (en) Navigation server, navigation client and navigation method
JP2016142593A (en) Information processing device, position measurement method, and program
CN109141348B (en) Electronic device, height measuring method, and recording medium
EP3415869B1 (en) Electronic device for improving dead reckoning-based positioning accuracy
WO2016006479A1 (en) Activity amount measuring device, activity amount measuring method, activity amount measuring program
JP6552548B2 (en) Point proposing device and point proposing method
JP2018180683A (en) Number-of-steps measurement program and portable terminal
JP6198188B2 (en) Mobility management system, mobility management apparatus, and user terminal
JP7162911B2 (en) Pedometer program and mobile terminal
JPH09152355A (en) Method and device for step measurement
JP2013181900A (en) Orientation calculation method, position calculation method, and orientation calculation device
JPWO2014034403A1 (en) Electronic equipment and programs
JP6233123B2 (en) Sensor device, sampling method and program
US20120167680A1 (en) Apparatus for driving multi-axial angular velocity sensor
CN110460925B (en) Earphone and system for converting sensing data
US20180023937A1 (en) System for and a method of measuring a path length using a handheld electronic device
JP2014115196A (en) Gps receiver and program
JP6940813B2 (en) Step count device, step count method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200403

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200603

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200818

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201015

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201125

R150 Certificate of patent or registration of utility model

Ref document number: 6804087

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250