JP7162911B2 - Pedometer program and mobile terminal - Google Patents

Pedometer program and mobile terminal Download PDF

Info

Publication number
JP7162911B2
JP7162911B2 JP2020194312A JP2020194312A JP7162911B2 JP 7162911 B2 JP7162911 B2 JP 7162911B2 JP 2020194312 A JP2020194312 A JP 2020194312A JP 2020194312 A JP2020194312 A JP 2020194312A JP 7162911 B2 JP7162911 B2 JP 7162911B2
Authority
JP
Japan
Prior art keywords
steps
unit
relational expression
counting
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.)
Active
Application number
JP2020194312A
Other languages
Japanese (ja)
Other versions
JP2021057055A5 (en
JP2021057055A (en
Inventor
千里 谷田
功壮 久米川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2020194312A priority Critical patent/JP7162911B2/en
Publication of JP2021057055A publication Critical patent/JP2021057055A/en
Publication of JP2021057055A5 publication Critical patent/JP2021057055A5/ja
Application granted granted Critical
Publication of JP7162911B2 publication Critical patent/JP7162911B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Description

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

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

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

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

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

本発明は、上述の事情に鑑みてなされたものであり、消費電力を低減しつつ歩数を高い精度で計数する歩数計測プログラム及び携帯端末を提供することを解決課題の一つとする。 SUMMARY OF THE INVENTION An object of the present invention is to provide a step counting program and a portable terminal that count 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 the step counting program according to the present invention is a step counting program executed by a processor, the step counting program comprising: a first counting unit that acquires walking information related to walking of a user and outputs a first number of steps indicating the number of steps accumulated from a predetermined timing based on the acquired walking information; and acquires the acceleration value, and acquires the acquired acceleration value. a second counting unit for outputting a second number of steps indicating the number of steps accumulated from the predetermined timing based on 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; 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 program described above, the generator generates the relational expression indicating the relationship between at least the first number of steps and the second number of steps. Since the correction unit generates the cumulative number of steps using the relational expression, the cumulative number of steps can be brought close to the second number of steps. As a result, after generating the relational expression, it is possible to operate only the first counting section without operating the second counting section to generate a highly accurate cumulative number of steps. 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 stage for measuring the number of steps, and in an actual measurement stage for measuring the number of steps, the It is preferable to cause the processor to function as the first counting section and the correcting section.

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

上述した歩数計測プログラムの一態様は、前記準備段階において前記プロセッサを、更に、連続歩行の回数を計数する連続歩行計数部として機能させ、前記関係式は、前記第1歩数、前記第2歩数、及び前記連続歩行の回数の関係を示し、前記生成部は、前記第1歩数、前記第2歩数及び前記連続歩行の回数に基づいて、当該関係式を生成し、前記実測段階において前記プロセッサを、更に、前記連続歩行計数部として機能させ、前記補正部は、前記第1歩数及び前記連続歩行の回数と当該関係式とに基づいて、累積歩数を出力する、ことが好ましい。 In one aspect of the step counting program described above, in the preparation stage, the processor further functions as a continuous walking counting unit that counts the number of continuous walking, and the relational expression is the first number of steps, the second number of steps, and the number of times of continuous walking, the generation unit generates the relational expression based on the first number of steps, the second number of steps, and the number of times of continuous walking, and in the actual measurement step, causes the processor to Further, it is preferable that the correcting unit is caused to function as the continuous walking counting unit, and that the correcting unit outputs the cumulative number of steps based on the first number of steps, the number of times 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 times of continuous walking. When walking a certain distance, if the number of times of continuous walking is large, walking and stopping will be repeated. Therefore, the number of times of continuous walking indicates the mode of walking. According to this aspect, since the accumulated number of steps is generated in consideration of the manner of walking, it is possible to further improve the accuracy of the accumulated number of steps compared to the case where the number of continuous walking is not taken into account while reducing power consumption. .

上述した歩数計測プログラムの一態様は、前記連続歩行計数部は、前記第1歩数が更新された直前のタイミングから現在までの時間と既定時間とを比較してユーザが歩行中であるかユーザが静止しているかを判定し、判定結果に基づいて連続歩行の回数を計数することが好ましい。 In one aspect of the step count program described above, the continuous walking counting unit compares the time from the timing immediately before the first step count is updated to the present time with a predetermined time to determine whether the user is walking or not. It is preferable to determine whether the robot is stationary and count the number of times of continuous walking 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 number of steps was updated, so the number of times of continuous walking 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 times of continuous walking. Therefore, power consumption can be reduced, and the accuracy of the accumulated number of steps can be further improved as compared with the case where the number of continuous walking is not considered.

上述した歩数計測プログラムの一態様は、前記準備段階において前記プロセッサを、更に、ユーザの移動速度を特定する特定部として機能させ、前記生成部は、前記特定部で特定した移動速度を取得し、前記関係式を、前記移動速度が大きい場合に適用する第1速度関係式と、前記移動速度が小さい場合に適用する第2速度関係式とに分けて生成し、前記実測段階において前記プロセッサを、更に、前記特定部として機能させ、前記補正部は、前記特定部から移動速度を取得し、前記第1速度関係式及び前記第2速度関係式のいずれかを前記移動速度に基づいて選択し、選択した関係式と前記第1歩数とに基づいて累積歩数を出力することが好ましい。 One aspect of the step counting program described above causes the processor to further function as a specifying unit that specifies the moving speed of the user in the preparation stage, and the generating unit acquires the moving speed specified by the specifying unit, The relational expression is divided into a first speed relational expression applied when the movement speed is high and a second speed relational expression applied when the movement speed is low, and in the actual measurement step, the processor, Further, functioning as the specifying unit, the correcting unit acquires the moving speed from the specifying unit, selects one of the first speed relational expression and the second speed relational expression based on the moving speed, 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 are prepared according to the moving speed, the relational expressions can be used properly depending on whether the user is in a vehicle or not. As a result, power consumption can be reduced, the influence of vehicle vibration can be reduced, and the accuracy of the accumulated number of steps can be further improved.

上述した歩数計測プログラムの一態様は、前記第1計数部の処理負荷は、前記第2計数部の処理負荷と比較して軽く、前記第2歩数の精度は、前記第1歩数の精度と比較して高い、ことが好ましい。 In one aspect of the step count 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 count is compared with the accuracy of the first step count. and high, preferably.

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

本発明に係る携帯端末の一態様は、加速度値を出力する加速度センサと、加速度センサから出力される加速度値に基づいてユーザの歩行に関する歩行情報を生成するサブプロセッサと、前記歩行情報に基づいて所定タイミングから累積した歩数を示す第1歩数を計数する第1計数部と、前記加速度値に基づいて前記所定タイミングから累積した歩数を示す第2歩数を計数する第2計数部と、前記第1歩数及び前記第2歩数に基づいて、前記第1歩数と前記第2歩数の関係を示す関係式を生成する生成部と、前記第1歩数と前記関係式とに基づいて、累積歩数を出力する補正部と、を備える。 One aspect of the mobile terminal according to the present invention includes an acceleration sensor that outputs an acceleration value, a sub processor that generates walking information related to walking of a user based on the acceleration value output from the acceleration sensor, and a a first counting unit that counts a first number of steps indicating the number of steps accumulated from a predetermined timing; a second counting unit that calculates 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 representing the relationship between the first number of steps and the second number of steps based on the number of steps and the second number of steps; and a cumulative number of steps that is output 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 number of steps is counted using the walking information generated by the sub-processor, the first number of steps can be easily counted. Also, the generator generates a relational expression between the first number of steps and the second number of steps. Since the correction unit corrects the cumulative number of steps using the relational expression, the cumulative number of steps can be brought closer to the second number of steps. As a result, after generating the relational expression, it is possible to operate only the first counting section without operating the second counting section to generate a highly accurate cumulative number of steps. Therefore, it is possible to count the number of steps with high accuracy while reducing power consumption.

上述した携帯端末の一態様は、歩数を計測する準備段階において、前記第1計数部、前記第2計数部、及び前記生成部を動作させ、歩数を計測する実測段階において、前記第1計数部及び前記補正部を動作させることが好ましい。 One aspect of the mobile terminal described above operates the first counting unit, the second counting unit, and the generating unit in a preparation stage for measuring the number of steps, and in an actual measurement stage for measuring the number of steps, the first counting unit and the correction unit is preferably operated.

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

第1実施形態における携帯端末1の構成を示す機能ブロック図である。1 is a functional block diagram showing the configuration of a mobile terminal 1 according to a first embodiment; FIG. 第1実施形態におけるテーブル230の記憶内容の一例を示す図である。It is a figure which shows an example of the memory content of the table 230 in 1st Embodiment. 第1実施形態における準備段階の携帯端末1の動作を例示するフローチャートである。4 is a flow chart illustrating the operation of the mobile terminal 1 in the preparatory stage in the first embodiment; 第1実施形態における準備段階の携帯端末1の動作を例示するフローチャートである。4 is a flow chart illustrating the operation of the mobile terminal 1 in the preparatory stage in the first embodiment; 第1実施形態における実測段階の携帯端末1の動作を例示するフローチャートである。4 is a flow chart illustrating the operation of the mobile terminal 1 in the actual measurement stage in the first embodiment; 第2実施形態における携帯端末1の構成を示す機能ブロック図である。It is a functional block diagram which shows the structure of the portable terminal 1 in 2nd Embodiment. 第2実施形態における準備段階の携帯端末1の動作を例示するフローチャートである。10 is a flow chart illustrating the operation of the mobile terminal 1 in the preparatory stage in the second embodiment. 第2実施形態における準備段階の携帯端末1の動作を例示するフローチャートである。10 is a flow chart illustrating the operation of the mobile terminal 1 in the preparatory stage in the second embodiment. 第2実施形態における実測段階の携帯端末1の動作を例示するフローチャートである。10 is a flowchart illustrating the operation of the mobile terminal 1 in the actual measurement stage in the second embodiment; 第3実施形態における携帯端末1の機能ブロック図である。FIG. 11 is a functional block diagram of a mobile terminal 1 according to a third embodiment; FIG. 第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 number of steps ST1 and 2nd number of steps ST2. 累積歩数ST10と第2歩数ST2と関係を例示するグラフである。4 is a graph illustrating 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. Moreover, the embodiments described below are preferred specific examples of the present invention. Therefore, various technically preferable limitations are applied to the present embodiment. However, the scope of the present invention is not limited to these forms unless there is a description to the effect that the present invention is particularly limited 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 a mobile terminal 1 according to the first embodiment. The mobile terminal 1 includes a main processor 10 , a storage section 20 , an acceleration sensor 30 , an operation display section 40 , a communication section 50 and a sub-processor 60 . Note that the configuration of the mobile terminal 1 is not limited to the example in FIG. 21 . For example, the mobile 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 number-of-steps measurement program 221 from the storage unit 20 and executes the read-out number-of-steps measurement program 221 to perform timing, calculation, and control, thereby realizing various functions of the main processor 10 . In particular, the main processor 10 implements the functions of the first counting section 110 , the second counting section 120 , the generating section 130 , and the correcting section 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 the details will be described later, the number of steps measurement program 221 implements different functions between the preparation stage with a heavy processing load and the actual measurement stage with a light processing load in measuring the number of steps. In the preparation stage, the main processor 10 operates the first counting section 110 that outputs the first number of steps ST1 with low accuracy and the second counting section 120 that outputs the second number of steps ST2 with high accuracy almost simultaneously (including at the same time). , and the generation unit 130 generates a first relational expression F1 representing 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 correcting unit 140 are operated to correct the first number of steps ST1 counted by the first counting unit 110 using the first relational expression F1 and output the number of steps. The main processor 10 is hardware such as a CPU, MPU (Micro Processor Unit), MCU (Memory Control Unit), and the like.

記憶部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 working area for the main processor 10 and the sub-processor 60 . Moreover, the storage unit 20 includes a nonvolatile memory and a volatile memory. The storage unit 20 stores various information obtained 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 stores 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 count ST10 in the actual measurement stage. F1 and a table 230 for storing measurement results such as the first number of steps ST1 and the second number of steps ST2 obtained by the main processor 10 are stored.

なお、記憶部20は、例えば、非一過性(non-transitory)の記憶媒体である。更に言えば、記憶部20は、公知の任意の形式の記憶媒体、例えば、半導体記憶媒体、磁気式記憶媒体又は光学式記憶媒体である。代替的に、記憶部20は、これらの記憶媒体が組み合わされた記憶媒体であってもよい。本願明細書において、非一過性の記憶媒体とは、一過性の伝播信号(transitory, propagating signal)を除く全てのコンピュータ読み取り可能な記憶媒体を含み、揮発性の記憶媒体を除外するものではない。 Note that the storage unit 20 is, for example, a non-transitory storage medium. Furthermore, the storage unit 20 is any known type of storage medium, such as a semiconductor storage medium, a magnetic storage medium, or an optical storage medium. Alternatively, 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 excluding transitory, propagating signals, and does not exclude volatile storage media. do not have.

加速度センサ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 triaxial acceleration sensor. The acceleration sensor 30 detects three-axis acceleration values A caused by walking (including running), specifically, X-axis acceleration values AX, Y-axis acceleration values AY, and Z-axis acceleration values. Detect the value AZ. The acceleration sensor 30 outputs the detected acceleration values A in the three axial directions to the sub-processor 60 . A 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 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 both functions of an input device and a display device. As a function of an input device, the operation display unit 40 detects activation of the step counting program 221, various settings, and the like upon receiving a user's touch operation, and outputs the detection result to the main processor 10 as user's instruction information. As a function of a display device, the operation display unit 40 displays output results (for example, setting result information and measurement results) from the main processor 10 according to instructions from the main processor 10 . Instead of the operation display unit 40, the mobile terminal 1 may have an input device (a plurality of buttons including a numeric keypad) and a display device separately. Further, the operation display unit 40 may be separated into an operation unit operated by the user and a display unit for displaying 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, the communication unit 50 performs voice communication with the called mobile terminal via the base station of the cell in which the mobile terminal 1 is located, for example. Also, the communication unit 50 connects to the Internet line via, for example, the base station of the cell in which the mobile terminal 1 is located, communicates with the server device, and downloads the step counting program 221 . Further, the communication unit 50 is connected to a personal computer by wire or wirelessly, receives instruction information such as various settings, and transmits output results (for example, setting result information and measurement results) from 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 the default step counting program 210 from the storage unit 20 and executes the read default step counting program 210 to implement the function of the default counting unit 610 . Sub-processor 60 outputs the number of steps ST0 counted by default counting section 610 to main processor 10 in response to a request from main processor 10 . Also, the sub-processor 60 acquires the acceleration value A output from the acceleration sensor 30 and outputs it to the main processor 10 in response to a request from the main processor 10 . The sub-processor 60 including the default counting section 610 plays a role of assisting the main processor 10 and a role of executing part of the processing of the main processor 10 . For this reason, the sub-processor 60 may have a lower processing capacity than the main processor 10 . On the other hand, the sub-processor 60 operates with power consumption lower than that of the main processor 10 . The sub-processor 60 is composed of hardware such as a CPU, MPU, and MCU, for example.

次に、デフォルト歩数計数プログラム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 includes a step count preparation stage (a process up to generating the first relational expression F1 for obtaining the number of steps in the actual measurement stage) and a step count measurement stage (actual measurement using the first relational expression F1). step). 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. FIG. The number of steps ST0 indicates the number of steps accumulated since the mobile 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 realized by the step counting program 221 will be described. The first counting unit 110 operates in a preparation stage and an actual 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 stage and the actual measurement stage. Next, the first counting section 110 generates a first number of steps ST1 accumulated from a predetermined timing based on the acquired number of steps ST0. Specifically, the first counting unit 110 detects one step based on the acquired number of steps ST0, and accumulates the number of times of detection each time one step is detected to obtain the first number of steps ST1. Here, the predetermined timing is the timing at which counting of the number of steps is started. For example, the predetermined timing is when the step counting program 221 is activated and the user inputs to start counting steps. Alternatively, if the step counting program 211 starts counting at the same time as the step counting program 211 is activated, the timing at which the step counting 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 counting program 221 is executed, the main processor 10 transmits an acquisition request to the sub-processor 60 at 16 Hz, for example. This allows the first counting unit 110 to obtain 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歩進んだことを確実に検出することができる。 Let ST0(n) represent the number of steps ST0 acquired at the n-th timing. If the current timing is n-th, the first counting unit 110 compares ST0(n) and ST0(n-1), and if ST0(n)-ST0(n-1) is "1" , to detect that the user has taken a step. On the other hand, when ST0(n)-ST0(n-1) is "0", first counting section 110 does not detect that the user has taken one step forward. In this example, since acquisition requests are sent to the sub-processor 60 at a high frequency of 16 times per second, it is possible to reliably detect that the user has taken one step forward.

第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 section 120 operates only in the preparatory stage. First, the second counting section 120 acquires the acceleration value A output from the sub-processor 60 in the preparatory stage. Next, the second counting section 120 counts a second number of steps ST2 indicating the number of steps accumulated from the predetermined timing described above, based on the acquired acceleration value A. FIG. In other words, the second counting unit 120 detects one step based on the acquired acceleration value A, and accumulates the number of times of detection each time one step is detected to obtain the second number of steps ST2. The second counting section 120 can also generate the second number of steps ST2 using the acceleration value A directly output from the acceleration sensor 30 .

また、準備段階において、第1計数部110及び第2計数部120は、第1計数部110が歩数ST0を取得するタイミングと、第2計数部120が加速度値Aを取得するタイミングとをほぼ同時(同時を含む)で、歩行の際にほぼ一歩となる間隔よりも短い間隔で行う。 In the preparation stage, the first counting unit 110 and the second counting unit 120 synchronize the timing at which the first counting unit 110 acquires the number of steps ST0 and the timing at which the second counting unit 120 acquires the acceleration value A. (including at the same time), with a shorter interval than the interval of 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 section 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 section 610. .
For example, the process of counting the number of steps based on the acceleration value A by the default counting unit 610 includes the maximum value and the minimum value 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 step is detected when the difference between the maximum value and the minimum value of the acceleration values in any axis direction is equal to or greater than a threshold, and the number of detections is accumulated to generate the number of steps 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 synthesizes 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. Absolute values |A| of the acceleration values in the three axial directions are calculated (|A|=(AX 2 +AY 2 +AZ 2 ) 1/2 ). Furthermore, in the processing, when the difference between the maximum and minimum values of the absolute values |A| A second number of steps ST2 is generated by accumulating the number of times.

更に、デフォルト計数部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 obtained from the acceleration sensor 30 is used as it is to count 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, the acceleration value AY in the Y-axis direction, and the acceleration value AY in the Z-axis direction obtained from the acceleration sensor 30 Filtering processing for removing noise components is performed on the acceleration value AZ, and a second number of steps ST2 is generated based on the filtered acceleration value AX, acceleration value AY, and acceleration value AZ.

次に、生成部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 generator 130 operates only in the preparatory stage. First, generation section 130 acquires first number of steps ST1 from first counting section 110 and acquires second number of steps ST2 from second counting section 120 in the preparation stage. Then, generation section 130 associates the first number of steps ST1 per unit time and the second number ST2 of steps per unit time with the date and time and stores them in table 230 . Note that the storage in this table 230 is repeated every unit time, and is performed until a certain period of time elapses. In addition, in the preparation stage, generation section 130 uses a set of first number of steps ST1 per unit time and second number of steps ST2 per unit time stored in table 230 to obtain the first number of steps in the actual measurement stage. A 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に反映させることができる。 A unit time refers to each of a plurality of divided times obtained by dividing a day's time into a plurality of 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. Moreover, 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. This is because even the same user tends to walk differently depending on the time of day. For example, a step taken while doing household chores at home is often smaller than a step taken outside. For this reason, the number of steps obtained when doing housework at home tends to contain errors. By making the unit time shorter than one day, the characteristics of the user's walking style can be reflected 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 more specifically, with a given time t n−1 , a current time that has passed a unit time from the given time t n−1 t n , and n being an arbitrary natural number. .
First, in the preparation stage, generating section 130 acquires first number of steps ST1 from first counting section 110 and second number of steps ST2 from second counting section 120 until the unit time elapses from time t n−1 . is obtained, and the first number of steps ST1 and the second number of steps ST2 obtained in this unit time are paired and stored in the table 230 in association with the date and time period. Thereafter, generation section 130 stores a set of first number of steps ST1 per unit time and second number of steps ST2 per unit time for a certain period of time in the preparation stage.

ここで、生成部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 number of steps ST1 was 62 steps and the second number of steps ST2 was 10 steps during the period from 8:00 to 9:00 on June 1, 2016. showing. At 8:00 on June 1, 2016, the first number of steps ST1 in the first counting section 110 is reset to zero, and the second number of steps ST2 in the second counting section 120 is also reset to zero. At 9:00 on June 1, 2016, the generator 130 acquires the first number of steps ST1=62 and the second number of steps ST2=10. The generation unit 130 pairs the first number of steps ST1=62 and the second number of steps ST2=10, and stores them in the table 230 in association with June 1, 2016 and the time period from 8:00 to 9:00.

上述のように、生成部130は、準備段階において、一定期間が経過するまで、単位時間あたりの第1歩数ST1と単位時間あたりの第2歩数ST2との組を日時に関連付けてテーブル230に記憶する。一定期間は、実用的な観点からユーザの歩き方の特徴を十分に把握することができるように定められる。例えば、一定期間は一週間である。ただし、第1関係式F1の精度を向上させる観点から、第1歩数ST1と第2歩数ST2との組の数は多いほど好ましいため、一定期間は一週間を超えてもよい。 As described above, in the preparation stage, generating section 130 associates a set of first number of steps ST1 per unit time and second number of steps ST2 per unit time with date and time and stores them in table 230 until a certain period of time elapses. do. The certain period of time is determined from a practical point of view so that the characteristics of the user's walking style can be fully grasped. For example, the fixed period is one week. However, from the viewpoint of improving the accuracy of the first relational expression F1, it is preferable that the number of sets of the first number of steps ST1 and the second number of steps ST2 is as large as possible, so the fixed 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 a set of the first number of steps ST1 per unit time and the second number of steps ST2 per unit time stored in the table 230 for a certain period of time, and performs statistical method (regression analysis). , a first relational expression F1 for estimating the second number of steps ST2 from the first number of steps 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 represented by the following expression (1). However, the cumulative number of steps ST10 is the 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に相当するものとなる。 Equation (1) is a regression line. α represents a coefficient and γ represents an intercept, which are derived by applying the least squares method, for example. With such a first relational expression F1, the cumulative number of steps ST10 in the actual measurement stage corresponds to the second number of steps ST2 with higher 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 in the actual measurement stage. In the actual measurement stage, the correction unit 140 acquires the first relational expression F1 stored in the storage unit 20, acquires the first number of steps ST1 from the first counting unit 110, and adds the first number of steps ST1 to the first relational expression F1. to obtain the cumulative number of steps ST10 in the actual measurement stage.

次に、携帯端末1の動作について説明する。携帯端末1は、主なる機能として、準備段階における機能と実測段階における機能とに大別される。まず、図3A及び図3Bに示すフローチャートを用いて、準備段階における携帯端末1の機能について説明する。 Next, the operation of the mobile terminal 1 will be described. The main functions of the mobile terminal 1 are roughly divided into functions in the preparation stage and functions in the actual measurement stage. First, the functions of the mobile terminal 1 in the preparatory 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 portable terminal 1 is powered on (not shown) by an operation from the operation display unit 40, the operation of each unit can be executed. 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 out the step count program 221 from the storage unit 20 by operating the operation display unit 40 and activates the read step count program 221 . When the preparatory mode is selected by operating the operation display unit 40 in this activated state, the preparatory functions of the step counting program 221 are executed. At the start of the preparatory stage, first, the first counting unit 110 resets the first number of steps ST1 to 0 (ST1=0), and the second counting unit 120 resets the second number of steps 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 or not one step has been detected based on the acquired number of steps ST0 (step S12). If one step is detected (YES in step S12), the first number of steps ST1 is incremented (step S13). On the other hand, if one step is not detected (NO in step S12), the first number of steps 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をインクリメントしない。 The second counting unit 120 also acquires the acceleration value A output from the acceleration sensor 30 (step S21), and performs filtering such as noise removal on the acquired acceleration value A (step S22). Furthermore, the second counting unit 120 determines whether or not a step has been detected based on the filtered acceleration value A (step S23). If one step has been counted (YES in step S23), the second counting unit 120 increments the second number of steps ST2 (step S24). On the other hand, if one step is not detected (NO in step S23), the second counting section 120 does not increment the second number of steps ST2.

第1計数部110によるステップS12でNO又はステップS13の処理、及び第2計数部120によるステップS23でNO又はステップS24の処理の後、生成部130は図3Bに示す処理を実行する。 After NO in step S12 or the process of step S13 by the first counting unit 110 and NO in step S23 by the second counting unit 120 or the process of step S24, the generation unit 130 executes the process shown 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 or not a unit time (for example, one hour) has elapsed since the first number of steps ST1 and the second number of steps ST2 were reset (step S31). If the unit time has passed (YES in step S31), the generation unit 130 calculates the first number of steps ST1 in this unit time incremented by the first counting unit 110 and the number of steps ST1 in this unit time incremented by the second counting unit 120. The second number of steps ST2 is set as a pair. Then, generation section 130 associates a set of first number of steps ST1 and second number of steps ST2 with the date and time in the unit time, and stores the first number of steps ST1 and second number of steps ST2 in table 230 of storage section 20. is reset (step S32). On the other hand, if the unit time has not elapsed (NO in step S31), the process returns to steps S11 and 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 or not a certain period of time has passed since the start of the preparation stage (step S33). If the fixed period has not passed (NO in step S33), the process returns to step S2 and repeats the process. On the other hand, if a certain period of time has passed (YES in step S33), generation unit 130 extracts pairs of first step count ST1 and second step number ST2 stored in the certain period from table 230 stored in storage unit 20, and read out. Generation unit 130 then generates first relational expression F1 for estimating second number of steps ST2 from first number of steps ST1 by a statistical method (step S34), and stores this generated first relational expression F1 in storage unit 20. It is stored, and the series of processing in the preparatory stage is terminated.

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

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

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

次に、補正部140は、操作表示部40における画面が表示中か否かを判定する(ステップS46)。画面が表示中である場合には(ステップS46でYES)、第1歩数ST1を取得し、記憶部20に記憶した第1関係式F1を読み出し、読みだした第1関係式F1に第1歩数ST1を代入して、実測段階における累積歩数ST10を求める(ステップS47)。 Next, the correction unit 140 determines whether or not 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 number of steps ST1 is acquired, the first relational expression F1 stored in the storage unit 20 is read, and the first number of steps is stored in the read first relational expression F1. By substituting ST1, the cumulative number of steps ST10 in the actual measurement stage is obtained (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 after the process of step S48, the first counting unit 110 determines whether or not 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, if the instruction to end the measurement has been received (YES in step S49), the series of processes in the actual 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 representing the relationship between the first number of steps ST1 and the second number of steps ST2. In the actual measurement stage, the operation of the second counting unit 120 is stopped, and the cumulative number of steps ST10 is generated using the first number of steps ST1 measured by the first counting unit 110 and the first relational expression F1. The second counting unit 120 has a larger processing load and consumes more power than the first counting unit 110, but has high counting accuracy. Since the first counting unit 110 and the second counting unit 120 are operated in the preparation stage, the power consumption increases. It is possible to generate the cumulative number of steps ST10 with higher accuracy than the above with low power consumption. As a result, the mobile terminal 1 can count the number of steps with high accuracy while reducing power consumption by executing the number-of-steps counting 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 number-of-steps measurement program 222 of the second embodiment functions to count the number of times NC of continuous walking. This 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 the same parts as those described in the first embodiment is omitted, and only the different parts are described.

連続歩行とは、ユーザが立ち止まらずに連続して歩行することを意味する。また、連続歩行の回数NCとは、一連の連続歩行が行われた回数の意味である。例えば、ユーザが、郵便物を投函する場合に、自宅から郵便ポストまで歩き、投函のために立ち止り、郵便ポストから自宅に戻るといった歩行を、単位時間に行ったとする。この場合、行きの歩行と帰りの歩行の各々が、連続歩行に該当し、単位時間あたりの連続歩行の回数Nは「2」となる。 Continuous walking means that the user walks continuously without stopping. Further, the number of times NC of continuous walking means the number of times a series of continuous walking is performed. For example, when a user posts mail, it is assumed that the user walks from home to a mailbox, stops for posting, and returns home from the mailbox in a unit time. In this case, each of the forward walking and the return walking corresponds to continuous walking, and the number N of continuous walking 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 mobile terminal 1 according to the second embodiment. The main processor 10 reads out the number-of-steps measurement program 222 from the storage unit 20, and executes the read-out number-of-steps measurement program 222 to obtain the functions of the first counting unit 110, the functions of the second counting unit 120, the functions of the generating unit 130, and the functions of the generating unit 130. In addition to the function of the correction unit 140, the function of the continuous walking 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 walking counting unit 111 operates in the preparation stage and the actual measurement stage. The continuous walking counting unit 111 counts the number of times NC of continuous walking based on the first number of steps ST1. Specifically, the continuous walking counting unit 111 determines that 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, if the first number of steps 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 user is stationary. In this case, the continuous walking counting unit 111 increases the number of times NC of continuous walking by “1”. Continuous walking counting unit 111 manages state information indicating the user's state. The state information indicates whether the user's state is walking or stationary. In this way, the continuous walking counting unit 111 compares the walking time from the timing immediately before the first number of steps ST1 is updated to the current time with the predetermined time to determine whether the user is walking or standing still. do.

生成部130は、連続歩行計数部111で計数された連続歩行の回数NCを取得する。そして、生成部130は、第1歩数ST1及び第2歩数ST2に加え、連続歩行の回数NCを用いて関係式Fを生成する。 The generating unit 130 acquires the number of times NC of continuous walking counted by the continuous walking counting unit 111 . Then, generation section 130 generates relational expression F using the number of consecutive walks NC in addition to first number of steps ST1 and 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)
Specifically, generating section 130 generates a set (ST1, ST2, NC) of first number of steps ST1 per unit time, second number of steps ST2 per unit time, and number NC of continuous walking per unit time. are stored in the table 230 in association with each unit of time.
Generation unit 130 reads table 230 from storage unit 20 after a certain period of time has passed, and generates second relational expression F2 by a statistical method (regression analysis). The second relational expression F2 is represented 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)の値α、β及びγを算出する。 Equation (2) represents correcting the regression line shown in Equation (1) above with the number of times NC of continuous walking. β is a coefficient of the number NC of continuous walking. As shown in equation (2), the relational expression F has variables of the first number of steps ST1 and the number of consecutive walks NC. In order to calculate the values α, β, and γ, the generation unit 130 stores a set (ST1, ST2, NC) of the first number of steps ST1, the second number of steps ST2, and the number of times NC of continuous walking per unit time in a table 230. multiple reads from Then, the generation unit 130 calculates the values α, β, and γ of Equation (2) by, for example, applying the method of least squares to the read multiple sets (ST1, ST2, NC).

補正部140は、実測段階において、記憶部20に記憶した式(2)に示す第2関係式F2を取得し、また、第1計数部110から第1歩数ST1を取得し、連続歩行計数部111から連続歩行の回数NCを取得し、式(2)に示す第2関係式F2に第1歩数ST1と連続歩行の回数NCとを代入して、実測段階における累積歩数ST10を算出する。すなわち、第2計数部120が計数したと推定される累積歩数ST10が求められる。 In the actual measurement stage, the correction unit 140 acquires the second relational expression F2 represented by the equation (2) stored in the storage unit 20, acquires the first number of steps ST1 from the first counting unit 110, and calculates the continuous walking counting unit. The number NC of continuous walking is obtained from 111, and the first number of steps ST1 and the number of continuous walking NC are substituted into the second relational expression F2 shown in Equation (2) to calculate the cumulative number of steps ST10 in the actual measurement stage. That is, the cumulative number of steps ST10 estimated to have been counted by second counting section 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 explained. 5A and 5B are flowcharts illustrating the operation of the mobile terminal 1 in the preparatory stage of the second embodiment. In the second embodiment, steps S14 to S19 are provided after step S13 in the processing relating to the step counting program 222, as shown in FIG. 5A, in contrast to the processing relating to the step counting program 221 described in the first embodiment. ing.

ステップS12の判定結果が肯定であり、一歩が検出され、第1歩数ST1がインクリメントされた場合、連続歩行計数部111は、歩行時間をリセットする(ステップS14)。歩行時間は直前の一歩が検出されてから現在までの時間を示している。歩行時間が長くなるのは、次の一歩までの時間が掛かっていることになる。この後、連続歩行計数部111は、状態情報を歩行中に設定する(ステップS15)。 If the determination result in step S12 is affirmative, one step is detected, and the first number of steps ST1 is incremented, the continuous walking counter 111 resets the walking time (step S14). The walking time indicates the time from the detection of the last step to the present. The longer the walking time, the longer it takes to take the next step. Thereafter, the continuous walking counting unit 111 sets the state information to "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 or not the state information indicates walking (step S16). If the state information indicates that the person is walking (YES in step S16), the continuous walking counting unit 111 determines whether or not 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 times NC of continuous walking (step S18), and sets the state information to 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 executed. If completed, if the determination result of step S23 is negative and one step is not detected (NO in step S23), or if the process of step S24 is completed, the generation unit 130 generates the first number of steps ST1 and the second number of steps ST2. It is determined whether or not a unit time (for example, 1 hour) has elapsed since the was reset (step S26). If the unit time has passed (YES in step S26), the generation unit 130 generates a set of the first number of steps ST1, the second number of steps ST2, and the number of consecutive walks NC in this unit time to the date and time in the unit time. After being associated and stored in the table 230 of the storage unit 20, the first number of steps ST1, the second number of steps ST2, and the number of continuous walking steps NC are reset (step S27).

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

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

次に、第2実施形態における実測段階の携帯端末1の動作を説明する。図5Cは、第2実施形態における実測段階の携帯端末1の動作の一例を示すフローチャートである。図5Cに示すフローチャートが、図3Cに示す第1実施形態のフローチャートと相違するのは、ステップS43~S45に替わりにステップS43bを実行する点と、ステップS47の替わりにステップS47bを実行する点である。以下、相違点について説明する。 Next, the operation of the mobile terminal 1 at the actual measurement stage in the second embodiment will be described. FIG. 5C is a flow chart showing an example of the operation of the mobile terminal 1 in the actual measurement stage in the second embodiment. The flowchart shown in FIG. 5C differs 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. be. 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 number of steps ST1 and the number of consecutive walks NC are counted. This process is similar to steps S11 to S19 described with reference to FIG. 5A. In step S47b, the correction unit 140 substitutes the first number of steps ST1 and the number of consecutive walks NC into the second relational expression F2 read from the storage unit 20, thereby calculating the cumulative number of steps ST10 in the actual measurement stage.

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

<第3実施形態>
第2実施形態で説明した歩数計測プログラム222で実現される機能は、ユーザが乗り物に乗っている場合、乗り物に発生する振動が誤って歩数として計測されることがある。これに対して、第3実施形態の歩数計測プログラム223で実現される機能は、ユーザが乗り物に乗っているかどうかを判定して、移動速度が小さい場合に適用される第1速度関係式F31と移動速度が大きい場合に適用される第2速度関係式F32を生成する点で、第2実施形態と相違する。
なお、以下、第3実施形態において、第2実施形態で説明した同様な部分の説明を省略し、相違する部分について説明する。
<Third Embodiment>
The function implemented by the step counting program 222 described in the second embodiment may erroneously measure the number of steps when the user is riding in a vehicle. On the other hand, the function realized by the step counting program 223 of the third embodiment determines whether or not the user is riding in a vehicle, and calculates the first speed relational expression F31 applied when the moving speed is low. This differs from the second embodiment in that the second speed relational expression F32 that is applied when the moving speed is high is generated.
Hereinafter, in the third embodiment, the description of the same parts as those described in the second embodiment will be omitted, and only the 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 mobile terminal 1 according to the third embodiment. The third embodiment differs from the second embodiment in the following points. First, the main processor 10 reads the number-of-steps measurement program 223 from the storage unit 20 and executes the read-out number-of-steps measurement program 223 to obtain the functions of the first counting unit 110, the functions of the second counting unit 120, and the generating unit. In addition to the function of 130, the function of the continuous walking counting unit 111 and the correction unit 140, the function of the specifying unit 112 that specifies the magnitude of the movement speed is further realized. Secondly, the current moving speed V is acquired from the identifying unit 112, and the generating unit 130 generates the first speed relational expression F31 and the second speed relational expression F32 based on the moving speed V. FIG. Third, the correction unit 140 corrects the first number of steps ST1 using the first speed relational expression F31 and the second speed relational expression F32 that take into account the moving speed V, and generates the cumulative number of steps ST10.

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

移動速度Vを算出する方法は、任意の方法でよい。例えば、特定部112は、X軸方向の加速度値AX、Y軸方向の加速度値AY及びZ軸方向の加速度値AZを合成して、加速度値の大きさ|A|を算出する(|A|=(AX+AY+AZ1/2)。そして、特定部112は、算出した加速度値の大きさ|A|を時間について積分して、移動速度Vを算出して累積歩数ST10を生成する。 Any method may be used to calculate the moving speed V. FIG. For example, the specifying unit 112 synthesizes 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| = ( AX2 +AY2 + AZ2 ) 1/2 ). Then, the specifying unit 112 integrates the magnitude |A| of the calculated acceleration value with respect to time to calculate the movement speed V and generate 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 in the vehicle or not in the vehicle, and generates the first speed relational expression F31 and the second speed relational expression F32. Specifically, the generation unit 130 acquires the current moving speed V from the identification unit 112 . Based on the current moving speed V, the generator 130 then divides the second relational expression F2 shown in Equation (2) into a first speed relational expression F31 and a second speed relational expression F32 and generates them. The first speed relational expression F31 is applied when the current moving speed V is less than the reference value Vref. The second speed relational expression F32 is applied when the current moving speed 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. Also, the reference value Vref is a predetermined value, for example, 8 km/h. 8 km/h is a value determined on the basis that it is generally faster than walking speed and slower than bicycle speed.

生成部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に記憶することを単位時間ごとに繰り返す。 The generation unit 130 determines that the user is in a first state W in which the user is not in a vehicle when the current moving speed V is less than the reference value Vref. In other words, the first state W is walking or running. On the other hand, when the current moving speed V is equal to or higher than the reference value Vref, the generating unit 130 determines that the user is in the second state TR of riding a vehicle. Then, generation section 130 generates a set (ST1, ST1, ST2, NC) and the first state W or the second state TR are stored in the table 230 in association with the year/month/day and the time zone, which 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 indicates a set of the first number of steps ST1, the second number of steps ST2, and the number of consecutive walks NC (ST1, ST2 , NC) are associated with the first state W. Further, the sixth row of the table 230 indicates that the first number of steps ST1 is 1241 steps in the time period from 13:00 to 14:00, of which 120 steps are associated with the first state W, and the remaining 1121 steps are associated with the first state W. It indicates that it is associated with a 2-state TR. Similarly, the second number of steps ST2 is 805 steps, 95 steps of which 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 number of steps ST1 and the second number of steps ST2 are 0, the generation unit 130 generates, for example, NA (Not Applicable) corresponding pairs (ST1, 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 passed, generating unit 130 generates first velocity relational expression F31 using the set associated with first state W, and generates second velocity relational expression F31 using the set associated with second state TR. A speed relational expression F32 is generated. Specifically, the generator 130 extracts a plurality of pairs (ST1, ST2, NC) associated with the first state W from the table 230 after a certain period of time has passed, and uses a statistical method (regression analysis) to , a first velocity relational expression F31 is generated using the plurality of extracted pairs. Similarly, generation unit 130 extracts a plurality of pairs (ST1, ST2, NC) associated with second state TR from table 230, and uses the extracted pairs by a statistical method (regression analysis). A second speed relational expression 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)
A first speed relational expression F31 applied to the first state W in which the user is not in the vehicle is represented by the following expression (3). On the other hand, the second speed relational expression F32 applied to the second state TR in which the user is on the vehicle is represented by the following expression (4).
F31(ST1, NC)=ST10=ST1×α1+NC × β1+ γ1 ( 3 )
F32(ST1, NC)=ST10=ST1×α 2 +NC×β 22 (4)

式(3)及び式(4)において、α及びαは、第1歩数ST1の係数である。β及びβは、連続歩行の回数NCの係数である。γ及びγは、切片である。α、β及びγを求めるため、生成部130は、第1状態Wに関連付けられている組に最小二乗法を適用する。同様に、α、β及びγを求めるため、生成部130は、第2状態TRに関連付けられている組に最小二乗法を適用する。 In equations (3) and (4), α1 and α2 are coefficients of the first number of steps ST1. β 1 and β 2 are coefficients of the number NC of continuous walking. γ 1 and γ 2 are the intercepts. The generator 130 applies the least squares method to the set associated with the first state W to determine α 1 , β 1 and γ 1 . Similarly, to find α 2 , β 2 and γ 2 , the generator 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を算出する。 In the actual measurement stage, the correction unit 140 selects either the first speed relational expression F31 or the second speed relational expression F32 stored in the storage unit 20 based on the current moving speed V, and the first counting unit 110 The first number of steps ST1 is obtained from the continuous walking counting unit 111, and the number NC of consecutive walking is obtained from the continuous walking counting unit 111. The first number of steps ST1 and the number of consecutive walking NC are substituted into the selected relational expression, A cumulative number of steps ST10 is calculated. That is, the cumulative number of steps ST10 estimated to have been counted by second counting section 120 is obtained. Specifically, in the actual measurement stage, the correcting unit 140 acquires the current moving speed V from the specifying unit 112, acquires the first number of steps ST1 from the first counting unit 110, and acquires the number of continuous walking from the continuous walking counting unit 111. number of times NC. Then, when the acquired 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 in which the user is not in the vehicle, selects the first speed relational expression F31, and selects this By substituting the acquired first number of steps ST1 and the number of consecutive walks NC into the selected first speed relational expression F31, the cumulative number of steps ST10 in the actual measurement stage is calculated. On the other hand, when the current moving speed V is equal to or greater than the reference value Vref, the correction unit 140 determines that the user is in the second state TR of riding in a vehicle, selects the second speed relational expression F32, and selects the selected second state TR. By substituting the obtained first number of steps ST1 and the number of consecutive walks NC into the two-speed relational expression F32, the accumulated number of steps ST10 in the actual measurement stage is calculated.

図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 number of steps ST1 counted by the first counting section 110 and the second number of steps ST2 counted by the second counting section 120. FIG. The square symbols indicate the tuple (ST1, ST2, NC) associated with the first state W in which the user is not in the vehicle. The black circle symbol indicates the set (ST1, ST2, NC) associated with the second state TR in which the user is in the vehicle. A dotted line virtually indicates a case where the first number of steps ST1 matches the second number of steps ST2.

四角の記号で示す複数の組は、点線から若干ずれて分布している。このずれの原因は、ユーザ個人の歩き方に起因すると考えられる。黒丸の記号で示す複数の組は、点線から大きくずれて分布している。このずれの原因は、乗り物の振動が歩数として計数されたことに起因すると考えられる。 Multiple sets indicated by square symbols are distributed with a slight deviation from the dotted line. The cause of this deviation is considered to be the way the user walks. A plurality of pairs indicated by black circle symbols are distributed with a large deviation from the dotted line. It is considered that the cause of this deviation is 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 correcting section 140 and the second number of steps ST2 counted by second counting section 120. As shown in FIG. The square symbols indicate the tuple (ST1, ST2, NC) associated with the first state W in which the user is not in the vehicle. The black circle symbol indicates the set (ST1, ST2, NC) associated with the second state TR in which the user is in the vehicle. A dotted line virtually indicates a 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 tuples (ST1, ST2, NC) associated with the first state W in which the user is not in the vehicle are distributed generally along the dotted line. Moreover, the miscounting of the set (ST1, ST2, NC) associated with the second state TR in which the user is in the vehicle is improved. Therefore, 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 calculated using the first speed relational expression F31 and the second speed relational expression F32 based on the moving speed V, the power consumption of the main processor 10 and thus the mobile 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 examples can be appropriately combined as long as they are not technically contradictory.

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

(2)上述した各実施形態では、サブプロセッサ60においてデフォルト計数部610の機能を実現したが、加速度センサ30においてデフォルト計数部610の機能を実現することも可能である。具体的には、図1においてデフォルト計数部610は、加速度センサ30の一部として備わり、デフォルト歩数計数プログラム210を記憶部20から読み出し、読み出したデフォルト歩数計数プログラム210を実行する。そして、デフォルト計数部610は、準備段階及び実測段階において、加速度センサ30で検出した加速度値Aに基づいて歩数ST0を計数し、サブプロセッサ60又はメインプロセッサ10の第1計数部110に出力しても良い。 (2) In each of the above-described embodiments, the sub-processor 60 implements the function of the default counting unit 610 , but the acceleration sensor 30 can implement the function of the default counting unit 610 . 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. FIG. Then, in the preparation stage and the actual measurement stage, the default counting unit 610 counts the number of steps ST0 based on the acceleration value A detected by the acceleration sensor 30, and outputs the number to the sub-processor 60 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 each of 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. It suffices if it is possible to acquire walking information related to the walking of the This walking 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 that is generated each time the sub-processor 60 detects one step is applicable.
When the interrupt signal is acquired as the walking information, the first counting unit 110 detects one step when the interrupt signal is detected (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 described above, the acceleration sensor 30 is used to count the first number of steps ST1 and the second number of steps ST2. A gyro sensor may be used together with the acceleration sensor 30 to count the first number of steps ST1 and the second number of steps ST2. In this case, the gyro sensor is connected to the sub-processor 60 and detects angular velocities ω in three axes, that is, angular velocities ωX about the X-axis, ωY about the Y-axis, and ωZ about the Z-axis. The default counting unit 610 counts the number of steps ST0 using the acceleration values A in the three-axis directions and the angular velocity ω in the three-axis directions. Similarly, the second counting unit 120 also counts the first number of steps ST1 using the angular velocity ω in the three axes in addition to the acceleration values 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 values A in the three-axis directions. Alternatively, the current moving speed V may be calculated based on the current position obtained by GPS (Global Positioning System). In this case, the identifying 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 speed relational expression F31 and the second speed relational expression F32 are generated in consideration of the number of times NC of continuous walking, but the present invention is not limited to this. The first speed relational expression F31 and the second speed relational expression F32 may be generated based on the first number of steps ST1 and the second number of steps ST2.
In this case, the first speed relational expression F31 applied to the first state W in which the user is not on the vehicle is represented by the following expression (5). On the other hand, the second speed relational expression F32 applied to the second state TR in which the user is on the vehicle is represented by the following expression (6).
F31(ST1)=ST1×α 11 (5)
F32(ST1)=ST1×α 22 (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... Sub-processor, 110... First counting part, 120... Second counting part, 130... generation unit, 140... correction unit, 111... continuous walking counting unit, 112... specifying unit, 210... default step counting program, 221, 222, 223... step counting program, 230... table, 610... default counting unit.

Claims (8)

プロセッサで実行されて、前記プロセッサを、
加速度センサから出力される加速度値に基づいて生成されたユーザの歩行に関する歩行情報を取得し、取得した前記歩行情報に基づいて所定タイミングから累積した歩数を示す第1歩数を計数する第1計数部、
第2計数部によって前記第1歩数と比較して高い精度で計数された、前記所定のタイミングから累積した歩数を示す第2歩数と、前記第1歩数と、の関係を示す関係式を記憶する記憶部、及び
前記記憶部に記憶された前記関係式に、前記第1計数部で計数された前記第1歩数を代入して、前記第1歩数と比較して精度の高い累積歩数を算出する補正部、
として機能させ
前記第2計数部は、前記第1計数部と比較して処理負荷が重い計数部であり、前記加速度センサから出力される加速度値に基づいて前記第2歩数を算出し、前記関係式は、前記第1歩数から前記第2歩数を推定する式として生成されたものである歩数計測プログラム。
running on a processor, said processor comprising:
A first counting unit that acquires walking information related to walking of the user generated based on the acceleration value output from the acceleration sensor, and counts a first number of steps indicating the number of steps accumulated from a predetermined timing based on the acquired walking information. ,
storing a relational expression indicating a relationship between the first step count and a second step count indicating the step count accumulated from the predetermined timing, which is counted by a second counting unit with higher accuracy than the first step count; a storage unit; and substituting the first number of steps counted by the first counting unit into the relational expression stored in the storage unit to calculate a cumulative number of steps with higher accuracy than the first number of steps. corrector,
function as
The second counting unit has a heavier processing load than the first counting unit, calculates the second number of steps based on the acceleration value output from the acceleration sensor, and the relational expression is: A step count measurement program generated as an equation for estimating the second step count from the first step count .
プロセッサで実行されて、前記プロセッサを、
加速度センサから出力される加速度値に基づいて生成されたユーザの歩行に関する歩行情報を取得し、取得した前記歩行情報に基づいて所定タイミングから累積した歩数を示す第1歩数を計数する第1計数部、
前記第1歩数と比較して精度の高い累積歩数と前記第1歩数との関係を示す関係式を記憶する記憶部、及び
前記記憶部に記憶された前記関係式に、前記第1計数部で計数された前記第1歩数を代入して、前記第1歩数と比較して精度の高い累積歩数を算出する補正部、
として機能させ、
前記関係式は、前記第1歩数と、前記第1計数部と比較して処理負荷が重い計数部によって前記加速度センサから出力される加速度値に基づいて算出された第2歩数とを用いて、前記第1歩数から前記第2歩数を推定する式として生成されたものである、歩数計測プログラム。
running on a processor, said processor comprising:
A first counting unit that acquires walking information related to walking of the user generated based on the acceleration value output from the acceleration sensor, and counts a first number of steps indicating the number of steps accumulated from a predetermined timing based on the acquired walking information. ,
a storage unit for storing a relational expression showing a relationship between the first number of steps and the accumulated number of steps, which is more accurate than the first number of steps; and the first counting unit stores the relational expression stored in the storage unit a correction unit that substitutes the counted first number of steps to calculate an accumulated number of steps that is more accurate than the first number of steps;
function as
The relational expression uses the first number of steps and the second number of steps calculated based on the acceleration value output from the acceleration sensor by a counting unit having a heavier processing load than the first counting unit, A step count measurement program generated as an equation for estimating the second step count from the first step count.
前記関係式は、前記第1歩数を代入することで出力される前記累積歩数を前記第1計数部と比較して処理負荷が重い計数部によって前記加速度センサから出力される加速度値に基づいて算出される第2歩数に近づけるように生成されたものである、請求項に記載の歩数計測プログラム。 The relational expression is calculated by comparing the cumulative number of steps output by substituting the first number of steps with the first counting unit and based on the acceleration value output from the acceleration sensor by the counting unit with a heavy processing load. 3. The step counting program according to claim 2 , which is generated so as to approximate the second number of steps taken. 前記プロセッサを、更に、連続歩行の回数を計数する連続歩行計数部として機能させ、前記関係式は、前記第1歩数、前記累積歩数、及び連続歩行の回数の関係を示し、
前記補正部は、前記第1歩数及び前記連続歩行の回数を前記関係式に代入することで、前記累積歩数を算出する、
請求項1~のいずれか1項に記載の歩数計測プログラム。
further causing the processor to function as a continuous walking counting unit that counts the number of continuous walking, wherein the relational expression represents the relationship between the first number of steps, the cumulative number of steps, and the number of continuous walking;
The correction unit calculates the cumulative number of steps by substituting the first number of steps and the number of times of continuous walking into the relational expression.
A step counting program according to any one of claims 1 to 3 .
前記連続歩行計数部は、前記第1歩数が更新された直前のタイミングから現在までの歩行時間と既定時間とを比較してユーザが歩行中であるかユーザが静止しているかを判定し、判定結果に基づいて連続歩行の回数を計数する請求項に記載の歩数計測プログラム。 The continuous walking counting unit compares the walking 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 the user is stationary. 5. The step counting program according to claim 4 , which counts the number of times of continuous walking based on the result. 前記プロセッサを、更に、ユーザの移動速度を特定する特定部として機能させ、
前記記憶部は、前記関係式として、前記移動速度が大きい場合に適用する第1速度関係式と、前記移動速度が小さい場合に適用する第2速度関係式とを記憶し、
前記補正部は、前記特定部から前記移動速度を取得し、前記記憶部に記憶された前記第1速度関係式及び前記第2速度関係式のいずれかを前記移動速度に基づいて選択し、選択した関係式に前記第1歩数を代入することで前記累積歩数を算出する、
請求項1~のうちいずれか1項に記載の歩数計測プログラム。
further causing the processor to function as an identification unit that identifies the movement speed of the user;
The storage unit stores, as the relational expressions, a first speed relational expression applied when the movement speed is high and a second speed relational expression applied when the movement speed is low,
The correction unit acquires the moving speed from the specifying unit, selects one of the first speed relational expression and the second speed relational expression stored in the storage unit based on the moving speed, and selects calculating the cumulative number of steps by substituting the first number of steps into the relational expression;
The step counting program according to any one of claims 1 to 5 .
加速度値を出力する加速度センサと、
加速度センサから出力される加速度値に基づいてユーザの歩行に関する歩行情報を生成するサブプロセッサと、
前記歩行情報に基づいて所定タイミングから累積した歩数を示す第1歩数を計数する第1計数部と、
第2計数部によって前記第1歩数と比較して高い精度で計数された、前記所定のタイミングから累積した歩数を示す第2歩数と、前記第1歩数と、の関係を示す関係式を記憶する記憶部と、
前記記憶部に記憶された前記関係式に、前記第1計数部で計数された前記第1歩数を代入して、前記第1歩数と比較して精度の高い累積歩数を算出する補正部と、
を備え
前記第2計数部は、前記第1計数部と比較して処理負荷が重い計数部であり、前記加速度センサから出力される加速度値に基づいて前記第2歩数を算出し、前記関係式は、前記第1歩数から前記第2歩数を推定する式として生成されたものである携帯端末。
an acceleration sensor that outputs an acceleration value;
a sub-processor that generates walking information related to walking of a user based on acceleration values output from an 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;
storing a relational expression indicating a relationship between the first step count and a second step count indicating the step count accumulated from the predetermined timing, which is counted by a second counting unit with higher accuracy than the first step count; a storage unit;
a correction unit that substitutes the first number of steps counted by the first counting unit into the relational expression stored in the storage unit to calculate a cumulative number of steps that is more accurate than the first number of steps;
with
The second counting unit has a heavier processing load than the first counting unit, calculates the second number of steps based on the acceleration value output from the acceleration sensor, and the relational expression is: A portable terminal generated as an equation for estimating the second number of steps from the first number of steps .
加速度値を出力する加速度センサと、
加速度センサから出力される加速度値に基づいてユーザの歩行に関する歩行情報を生成するサブプロセッサと、
前記歩行情報に基づいて所定タイミングから累積した歩数を示す第1歩数を計数する第1計数部と、
前記第1歩数と比較して精度の高い累積歩数と前記第1歩数との関係を示す関係式を記憶する記憶部と、
前記記憶部に記憶された前記関係式に、前記第1計数部で計数された前記第1歩数を前記関係式に代入して、前記第1歩数と比較して精度の高い累積歩数を算出する補正部と、を備え、
前記関係式は、前記第1歩数と、前記第1計数部と比較して処理負荷が重い計数部によって前記加速度センサから出力される加速度値に基づいて算出された第2歩数とを用いて、前記第1歩数から前記第2歩数を推定する式として生成されたものである、携帯端末。
an acceleration sensor that outputs an acceleration value;
a sub-processor that generates walking information related to walking of a user based on acceleration values output from an 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 storage unit that stores a relational expression indicating a relationship between the first number of steps and the cumulative number of steps that is more accurate than the first number of steps;
Substituting the first number of steps counted by the first counting unit into the relational expression stored in the storage unit to calculate a cumulative number of steps with higher accuracy than the first number of steps. a correction unit;
The relational expression uses the first number of steps and the second number of steps calculated based on the acceleration value output from the acceleration sensor by a counting unit having a heavier processing load than the first counting unit, A portable terminal generated as an equation for estimating the second number of steps from the first number of steps.
JP2020194312A 2020-11-24 2020-11-24 Pedometer program and mobile terminal Active JP7162911B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Related Parent Applications (1)

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

Publications (3)

Publication Number Publication Date
JP2021057055A JP2021057055A (en) 2021-04-08
JP2021057055A5 JP2021057055A5 (en) 2021-09-02
JP7162911B2 true JP7162911B2 (en) 2022-10-31

Family

ID=75270887

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JP7162911B2 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000227342A (en) 1999-02-08 2000-08-15 Ee D K:Kk Method for automatically correcting error of pedometer, method for measuring distance, and portable information processor
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
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
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
US20150285659A1 (en) 2014-04-03 2015-10-08 Apple Inc. Automatic track selection for calibration of pedometer devices

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000227342A (en) 1999-02-08 2000-08-15 Ee D K:Kk Method for automatically correcting error of pedometer, method for measuring distance, and portable information processor
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
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
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
US20150285659A1 (en) 2014-04-03 2015-10-08 Apple Inc. Automatic track selection for calibration of pedometer devices

Also Published As

Publication number Publication date
JP2021057055A (en) 2021-04-08

Similar Documents

Publication Publication Date Title
JP6674791B2 (en) Congestion degree estimation method, number of persons estimation method, congestion degree estimation program, number of persons estimation program, and number of persons estimation system
JP4877395B2 (en) Stride estimation method and stride estimation apparatus
JP4622827B2 (en) Pedometer
JP2014151149A (en) Motion analysis apparatus and motion analysis method
WO2015146046A1 (en) Correlation coefficient correction method, motion analysis method, correlation coefficient correction device, and program
JP2012008637A (en) Pedometer and program
US9091539B2 (en) Gyroscope dynamic motor amplitude compensation for enhanced rate estimation during startup
JP2014110832A (en) Motion analyzing system and motion analyzing method
JP2006118909A (en) Walking meter
JP2016116743A (en) Exercise support device, exercise support method, and program
CN105841695B (en) Information processing apparatus, information processing method, and recording medium
JP2021107016A (en) Analysis device, analysis method, and program
JP2011149923A (en) Method of estimating stride length, method of calculating movement trajectory, and stride length estimating device
JP7162911B2 (en) Pedometer program and mobile terminal
JP6804087B2 (en) Pedometer program and mobile terminal
JP7255642B2 (en) Information processing device, information processing method and program
JP2015224932A (en) Information processing device, information processing method, and computer program
WO2016165333A1 (en) Method and apparatus for realizing step counting
JP5621899B2 (en) Electronics
JP6233123B2 (en) Sensor device, sampling method and program
JP7279669B2 (en) Movement estimation device, model generation device, movement estimation method and program
CA2975232C (en) A system for and a method of measuring a path length using a handheld electronic device
JP6100299B2 (en) Step detection device, step detection method, and computer program
CN108413970B (en) Positioning method, cloud system, electronic equipment and computer program product
JP7222385B2 (en) Measuring device, measuring method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201207

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210114

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210720

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210914

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20211228

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220221

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220621

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220810

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221012

R150 Certificate of patent or registration of utility model

Ref document number: 7162911

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150