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

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

Info

Publication number
JP2021057055A
JP2021057055A JP2020194312A JP2020194312A JP2021057055A JP 2021057055 A JP2021057055 A JP 2021057055A JP 2020194312 A JP2020194312 A JP 2020194312A JP 2020194312 A JP2020194312 A JP 2020194312A JP 2021057055 A JP2021057055 A JP 2021057055A
Authority
JP
Japan
Prior art keywords
steps
unit
counting unit
relational expression
walking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2020194312A
Other languages
Japanese (ja)
Other versions
JP7162911B2 (en
JP2021057055A5 (en
Inventor
千里 谷田
Chisato Tanida
千里 谷田
功壮 久米川
Atsuo Kumekawa
功壮 久米川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tanita Corp
Original Assignee
Tanita Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tanita Corp filed Critical Tanita Corp
Priority to 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

Abstract

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

Description

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

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

上述のスマートフォンでは、例えば、ユーザがすり足で移動した場合、加速度の小さな変化を捉えることができず、すり足が歩数に計数されないことがあった。その結果、歩数が実際より少なく計数されてしまう。そこで、ユーザの歩行の特性を考慮して歩数を計数することにより、歩数の計測精度を高める技術が知られている(特許文献1)。 In the above-mentioned smartphone, for example, when the user moves with a slippery foot, a small change in acceleration cannot be captured, and the slippery foot 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 for improving the measurement accuracy of the number of steps 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 the processing technology for considering the walking characteristics of the user disclosed in Patent Document 1 is to be realized on a smartphone, the CPU (Central Processing Unit) mounted on the smartphone considers the walking characteristics of the user. There is a problem that the load on the CPU increases because the processing for doing so must be performed. As a result, there is a problem that the battery of the smartphone is consumed quickly.

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

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

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

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

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

上述した歩数計測プログラムの一態様は、前記準備段階において前記プロセッサを、更に、連続歩行の回数を計数する連続歩行計数部として機能させ、前記関係式は、前記第1歩数、前記第2歩数、及び前記連続歩行の回数の関係を示し、前記生成部は、前記第1歩数、前記第2歩数及び前記連続歩行の回数に基づいて、当該関係式を生成し、前記実測段階において前記プロセッサを、更に、前記連続歩行計数部として機能させ、前記補正部は、前記第1歩数及び前記連続歩行の回数と当該関係式とに基づいて、累積歩数を出力する、ことが好ましい。 In one aspect of the step count measurement program described above, in the preparatory 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 step number, the second step number, and the like. And the relationship of the number of times of continuous walking, the generation unit generates the relational expression based on the number of first steps, the number of second steps and the number of times of continuous walking, and in the actual measurement stage, the processor is used. Further, it is preferable that the continuous walking counting unit functions as the continuous walking counting unit, and the correction unit outputs the cumulative number of steps based on the first step number, the number of continuous walking times, and the relational expression.

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

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

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

上述した歩数計測プログラムの一態様は、前記準備段階において前記プロセッサを、更に、ユーザの移動速度を特定する特定部として機能させ、前記生成部は、前記特定部で特定した移動速度を取得し、前記関係式を、前記移動速度が大きい場合に適用する第1速度関係式と、前記移動速度が小さい場合に適用する第2速度関係式とに分けて生成し、前記実測段階において前記プロセッサを、更に、前記特定部として機能させ、前記補正部は、前記特定部から移動速度を取得し、前記第1速度関係式及び前記第2速度関係式のいずれかを前記移動速度に基づいて選択し、選択した関係式と前記第1歩数とに基づいて累積歩数を出力することが好ましい。 One aspect of the step count measurement program described above causes the processor to further function as a specific unit for specifying the movement speed of the user in the preparation stage, and the generation unit acquires the movement speed specified by the specific unit. The relational expression is generated separately as a first speed relational expression applied when the moving speed is large and a second speed relational expression applied when the moving speed is small, and the processor is generated in the actual measurement stage. Further, it functions as the specific unit, and the correction unit acquires the moving speed from the specific unit and selects either the first speed relational expression or the second speed relational expression based on the moving speed. It is preferable to output the cumulative number of steps 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 on the vehicle or not. As a result, it is possible to reduce the influence of the vibration of the vehicle while reducing the power consumption, and further improve the accuracy of the cumulative number of steps.

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

この態様によれば、関係式を生成する準備段階では、精度が高いが処理負荷が重い第2計数部を用いるが、関係式を生成した後の実測段階では、処理負荷が軽く消費電力の低い第1計数部を用いて、累積歩数を生成する。従って、実測段階では、消費電力を削減しつつ、累積歩数の精度を向上させることができる。 According to this aspect, in the preparatory stage for generating the relational expression, the second counting unit having 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 the power consumption is low. The first counting unit is used to generate the cumulative number of steps. Therefore, in the actual measurement stage, the accuracy of the cumulative number of steps can be improved while reducing the power consumption.

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

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

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

この態様によれば、準備段階で機能させる要素と、実測段階で機能させる要素を異ならせることができ、実測段階では第2計数部及び生成部の機能を停止させる。よって、実測段階における処理負荷を軽減し、消費電力を低減することができる。 According to this aspect, the element that functions in the preparatory stage and the element that functions in the actual measurement stage can be made different, and the functions of the second counting unit and the generating unit 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の構成を示す機能ブロック図である。It is a functional block diagram which shows the structure of the mobile terminal 1 in 1st Embodiment. 第1実施形態におけるテーブル230の記憶内容の一例を示す図である。It is a figure which shows an example of the storage contents of the table 230 in 1st Embodiment. 第1実施形態における準備段階の携帯端末1の動作を例示するフローチャートである。It is a flowchart which illustrates the operation of the mobile terminal 1 in the preparation stage in 1st Embodiment. 第1実施形態における準備段階の携帯端末1の動作を例示するフローチャートである。It is a flowchart which illustrates the operation of the mobile terminal 1 in the preparation stage in 1st Embodiment. 第1実施形態における実測段階の携帯端末1の動作を例示するフローチャートである。It is a flowchart which illustrates the operation of the mobile terminal 1 in the actual measurement stage in 1st Embodiment. 第2実施形態における携帯端末1の構成を示す機能ブロック図である。It is a functional block diagram which shows the structure of the mobile terminal 1 in 2nd Embodiment. 第2実施形態における準備段階の携帯端末1の動作を例示するフローチャートである。It is a flowchart which illustrates the operation of the mobile terminal 1 in the preparation stage in 2nd Embodiment. 第2実施形態における準備段階の携帯端末1の動作を例示するフローチャートである。It is a flowchart which illustrates the operation of the mobile terminal 1 in the preparation stage in 2nd Embodiment. 第2実施形態における実測段階の携帯端末1の動作を例示するフローチャートである。It is a flowchart which illustrates the operation of the mobile terminal 1 in the actual measurement stage in 2nd Embodiment. 第3実施形態における携帯端末1の機能ブロック図である。It is a functional block diagram of the mobile terminal 1 in 3rd Embodiment. 第3実施形態におけるテーブル230の記憶内容の一例を示す図である。It is a figure which shows an example of the storage contents of the table 230 in 3rd Embodiment. 第1歩数ST1と第2歩数ST2との関係を例示するグラフである。It is a graph which illustrates the relationship between the 1st step number ST1 and the 2nd step number ST2. 累積歩数ST10と第2歩数ST2と関係を例示するグラフである。It is a graph which illustrates the relationship between the cumulative step number ST10 and the 2nd step number ST2.

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

<第1実施形態>
図1は、第1実施形態における携帯端末1の構成を示す機能ブロック図である。携帯端末1は、メインプロセッサ10と、記憶部20と、加速度センサ30と、操作表示部40と、通信部50と、サブプロセッサ60とを備える。なお、携帯端末1の構成は、図21の例に限定されない。例えば、携帯端末1がカメラを更に有していてもよい。
<First Embodiment>
FIG. 1 is a functional block diagram showing the configuration of the mobile terminal 1 according to the first embodiment. The mobile terminal 1 includes a main processor 10, a storage unit 20, an acceleration sensor 30, an operation display unit 40, a communication unit 50, and a sub-processor 60. The configuration of the mobile terminal 1 is not limited to the example of FIG. 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 step count measurement program 221 from the storage unit 20 and executes the read step count measurement program 221 to perform time counting, calculation and control, and realize various functions of the main processor 10. In particular, the main processor 10 realizes 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 correction unit 140.

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

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

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

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

操作表示部40は、例えば、静電容量方式のタッチパネルである。操作表示部40は、入力デバイス及び表示デバイスの双方の機能を持つ。操作表示部40は、入力デバイスの機能として、歩数計測プログラム221の起動や各種設定などをユーザによるタッチ操作を受けて検出し、検出結果をユーザの指示情報としてメインプロセッサ10に出力する。操作表示部40は、表示デバイスの機能として、メインプロセッサ10の指示に従って、メインプロセッサ10による出力結果(例えば、設定結果情報及び計測結果)を表示する。なお、操作表示部40の代わりに、入力デバイス(テンキーを含む複数のボタン)及び表示デバイスを別個に携帯端末1が有していてもよい。また、操作表示部40をユーザが操作する操作部と、ユーザに情報を表示する表示部とに分離してもよい。 The operation display unit 40 is, for example, a capacitance type touch panel. The operation display unit 40 has the functions of both an input device and a display device. As a function of the input device, the operation display unit 40 detects the activation of the step count measurement program 221 and various settings by receiving a touch operation by the user, and outputs the detection result to the main processor 10 as instruction information of the user. As a function of the display device, the operation display unit 40 displays the output result (for example, setting result information and measurement result) by the main processor 10 according to the instruction of the main processor 10. In addition, 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 that displays 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 makes voice communication with the mobile terminal of the call destination via, for example, the base station of the cell in which the mobile terminal 1 is located. Further, the communication unit 50 connects to the Internet line via the base station of the cell in which the mobile terminal 1 is located, communicates with the server device, and downloads the step count measurement program 221. Further, the communication unit 50 connects to the personal computer by wire or wirelessly, receives instruction information such as various settings, and transmits an output result (for example, setting result information and measurement result) by the main processor 10.

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

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

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

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

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

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

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

ここで、第2計数部120による加速度値Aに基づいて歩数を計数する処理は、デフォルト計数部610による加速度値Aに基づいて歩数を計数する処理よりも、高い精度で歩数を得ることができる。
例えば、デフォルト計数部610による加速度値Aに基づいて歩数を計数する処理は、X軸方向の加速度値AX、Y軸方向の加速度値AY及びZ軸方向の加速度値AZの各々について最大値と最小値との差を求め、いずれかの軸方向の加速度値の最大値と最小値との差が閾値以上であったときに一歩を検出し、検出回数を累積して歩数ST0を生成する。
Here, the process of counting the number of steps based on the acceleration value A by the second counting unit 120 can obtain the number of steps with higher accuracy than the process of counting the number of steps based on the acceleration value A by the default counting unit 610. ..
For example, the process of counting the number of steps based on the acceleration value A by the default counting unit 610 is 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. The difference from the value is obtained, one step is detected when the difference between the maximum value and the minimum value of the acceleration value in any axial direction is equal to or larger than the threshold value, 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, 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 AZ in the Z-axis direction are combined. Then, the absolute value | A | of the acceleration value in the three-axis direction is calculated (| A | = (AX 2 + AY 2 + AZ 2 ) 1/2 ). Further, in this process, when the difference between the maximum value and the minimum value of the absolute value | A | of the acceleration value in the three-axis direction is equal to or more than the threshold value and the difference is within a certain time, one step is detected and detected. The number of times is accumulated to generate the second step number ST2.

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

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

単位時間とは、1日の時間を複数に分割し、分割された複数の時間の各々を指す。例えば、1日の時間を24等分した場合、単位時間は1時間となる。無論、単位時間は30分でもよい。また、第1関係式F1を生成するにあたって、1日あたりの歩数ではなく、単位時間あたりの歩数を用いることで、精度の高い第1関係式F1が得られる。それは、同じユーザでも、時間帯によって、歩き方が変わる傾向があるためである。例えば、家で家事をするときの一歩は、外を歩くときの一歩より小さいことが多い。そのような理由により、家で家事をする場合に得られた歩数は誤差を含みやすい。単位時間を1日より短くすることで、ユーザの歩き方の特徴を第1関係式F1に反映させることができる。 The unit time refers to each of a plurality of divided hours divided into a plurality of times in a day. For example, if the time of the day is divided into 24 equal parts, the unit time is one hour. Of course, the unit time may be 30 minutes. Further, 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, one step when doing household chores at home is often smaller than one step when walking outside. For that reason, the number of steps taken when doing household chores tends to include 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 by setting a certain time as t n-1 , the current time when a unit time has passed from a certain time t n-1, as t n, and expressing n as an arbitrary natural number. ..
First, in the preparation stage, the generation unit 130 acquires the first step count ST1 from the first counting unit 110 and the second step count ST2 from the second counting unit 120 until a unit time elapses from a certain time t n-1. Is acquired, and the first step number ST1 and the second step number ST2 acquired in this unit time are paired and stored in the table 230 in association with the date and time zone. After that, in the preparation stage, the generation unit 130 stores a set of the first step number ST1 per unit time and the second step number ST2 per unit time for a certain period of time.

ここで、生成部130の機能について、第1実施形態におけるテーブル230の一例を示す図2を参照しながら、より詳細に説明する。 Here, the function of the generation unit 130 will be described in more detail with reference to FIG. 2, which shows 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 shows that the first step number ST1 was 62 steps and the second step number ST2 was 10 steps in the time zone from 8:00 to 9:00 on June 1, 2016. Shown. As of 8:00 on June 1, 2016, the first step count ST1 in the first counting unit 110 is reset to 0, and the second step count ST2 in the second counting unit 120 is also reset to 0. The generation unit 130 acquires the first step number ST1 = 62 and the second step number ST2 = 10 at 9:00 on June 1, 2016. The generation unit 130 stores the first step number ST1 = 62 and the second step number ST2 = 10 in the table 230 in association with June 1, 2016 and the time zone 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, the generation unit 130 stores the pair of the first step number ST1 per unit time and the second step number ST2 per unit time in the table 230 in association with the date and time until a certain period of time elapses. To do. A certain period of time is set so that the characteristics of the user's walking style can be fully grasped from a practical point of view. For example, a fixed period is one week. However, from the viewpoint of improving the accuracy of the first relational expression F1, the larger the number of pairs of the first step number ST1 and the second step number ST2, the more preferable, so that 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 out the set of the first step number ST1 per unit time and the second step number ST2 per unit time stored in the table 230 for a certain period of time, and performs a statistical method (regression analysis). The first relational expression F1 for estimating the second step number ST2 from the first step number 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 equation (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, and is derived by applying, for example, the least squares method. By adopting such a first relational expression F1, the cumulative number of steps ST10 in the actual measurement stage corresponds to the second step number ST2 with higher accuracy than the first step number ST1 based on the first step number 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. The correction unit 140 acquires the first relational expression F1 stored in the storage unit 20 at the actual measurement stage, acquires the first step number ST1 from the first counting unit 110, and obtains the first step number ST1 in the first relational expression F1. Is substituted 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 mobile terminal 1 is roughly classified into a function in the preparation stage and a function in the actual measurement stage as a main function. First, the function of the mobile terminal 1 in the preparation stage will be described with reference to the flowcharts shown in FIGS. 3A and 3B.

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

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

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

第1計数部110によるステップS12でNO又はステップS13の処理、及び第2計数部120によるステップS23でNO又はステップS24の処理の後、生成部130は図3Bに示す処理を実行する。 After the processing of NO or step S13 in step S12 by the first counting unit 110 and the processing of NO or step S24 in step S23 by the second counting unit 120, the generation unit 130 executes the processing 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, 1 hour) has elapsed since the first step number ST1 and the second step number ST2 were reset (step S31). When the unit time has elapsed (YES in step S31), the generation unit 130 in the first step count ST1 in this unit time incremented by the first counting unit 110 and in this unit time incremented by the second counting unit 120. The second step number ST2 is paired. Then, the generation unit 130 associates the pair of the first step number ST1 and the second step number ST2 with the date and time in the unit time, stores it in the table 230 of the storage unit 20, and then stores the first step number ST1 and the second step number ST2. Is reset (step S32). On the other hand, if the unit time has not elapsed (NO in step S31), the process returns to step S11 and step S21, and the process is repeated.

次いで、生成部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 elapsed from the start of the preparation stage (step S33). If a certain period of time has not passed (NO in step S33), the process returns to step S2 and the process is repeated. On the other hand, when a certain period of time has passed (YES in step S33), the generation unit 130 sets the first step number ST1 and the second step number ST2 stored in the storage unit 20 from the table 230 stored in the storage unit 20. Is read. Then, the generation unit 130 generates the first relational expression F1 for estimating the second step number ST2 from the first step number ST1 by a statistical method (step S34), and stores the generated first relational expression F1 in the storage unit 20. It is memorized and a series of processes in the preparation stage are completed.

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

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

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

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

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

第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 showing the relationship between the first step number ST1 and the second step number ST2. It was generated by the unit 130, and in the actual measurement stage, the operation of the second counting unit 120 was stopped, and the cumulative number of steps ST10 was generated using the first step number ST1 and the first relational expression F1 measured by the first counting unit 110. Compared with the first counting unit 110, the second counting unit 120 has a larger processing load and a larger power consumption, but the counting accuracy is higher. Since the first counting unit 110 and the second counting unit 120 are operated in the preparation stage, the power consumption increases, but in the actual measurement stage, if only the first counting unit 110 and the correction unit 140 are operated, the first step number ST1 The cumulative number of steps ST10 with higher accuracy can be generated with low power consumption. As a result, the mobile terminal 1 can count the number of steps with high accuracy while reducing the power consumption by executing the step number measurement program 221.

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

連続歩行とは、ユーザが立ち止まらずに連続して歩行することを意味する。また、連続歩行の回数NCとは、一連の連続歩行が行われた回数の意味である。例えば、ユーザが、郵便物を投函する場合に、自宅から郵便ポストまで歩き、投函のために立ち止り、郵便ポストから自宅に戻るといった歩行を、単位時間に行ったとする。この場合、行きの歩行と帰りの歩行の各々が、連続歩行に該当し、単位時間あたりの連続歩行の回数Nは「2」となる。 Continuous walking means that the user walks continuously without stopping. The number of continuous walks NC means the number of times a series of continuous walks have been performed. For example, suppose that when a user posts a mail item, he / she walks from his / her home to a mailbox, stops for posting, and returns from the mailbox to his / her home in a unit time. In this case, each of the going walk and the returning walk corresponds to continuous walking, and the number of continuous walks N 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 the step count measurement program 222 from the storage unit 20 and executes the read step count measurement program 222 to execute the function of the first counting unit 110, the function of the second counting unit 120, the function of the generation unit 130, and the function of the generation 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 continuous walking NCs based on the first step number ST1. Specifically, the continuous walking counting unit 111 determines that the user's state is walking when the first step number ST1 increases before reaching the predetermined time (for example, 1 second). On the other hand, if the continuous walking counting unit 111 does not increase the number of first steps ST1 before reaching the predetermined time, the continuous walking of the user is interrupted, and the continuous walking counting unit 111 determines that the user's state is stationary. In this case, the continuous walking counting unit 111 increases the number of continuous walking NCs by "1". The continuous walking counting unit 111 manages state information indicating the state of the user. The state information indicates whether the user's state is walking or the user's state is stationary. In this way, the continuous walking counting unit 111 compares the walking time from the timing immediately before the first step number ST1 is updated to the present with the predetermined time, and determines whether the user is walking or stationary. To do.

生成部130は、連続歩行計数部111で計数された連続歩行の回数NCを取得する。そして、生成部130は、第1歩数ST1及び第2歩数ST2に加え、連続歩行の回数NCを用いて関係式Fを生成する。 The generation unit 130 acquires the number of continuous walks NC counted by the continuous walk counting unit 111. Then, the generation unit 130 generates the relational expression F by using the number of continuous walks NC in addition to the first step number ST1 and the second step number 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, the generation unit 130 sets the date and time of a set (ST1, ST2, NC) of the first step number ST1 per unit time, the second step number ST2 per unit time, and the number of continuous walks NC per unit time. The storage in the table 230 in association with is repeated every unit time.
After a certain period of time has elapsed, the generation unit 130 reads the table 230 from the storage unit 20 and generates the second relational expression F2 by a statistical method (regression analysis). The second relational expression F2 is expressed by the following equation (2).
F2 (ST1, NC) = ST10 = ST1 x α + NC x β + γ ... (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 that the regression line shown in the above equation (1) is corrected by the number of continuous walks NC. β is a coefficient of NC for the number of continuous walks. As shown in the equation (2), the relational expression F has the first step number ST1 and the number of continuous walks NC as variables. In order to calculate the values α, β and γ, the generation unit 130 sets the set (ST1, ST2, NC) of the first step number ST1, the second step number ST2, and the number of continuous walks NC per unit time in the table 230. Read multiple from. Then, for example, the generation unit 130 applies the least squares method to the plurality of sets (ST1, ST2, NC) read out to calculate the values α, β, and γ of the equation (2).

補正部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, and also acquires the first step count ST1 from the first counting unit 110, and the continuous walking counting unit. The number of continuous walks NC is obtained from 111, and the first step number ST1 and the number of continuous walks NC are substituted into the second relational expression F2 shown in the 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 the second counting unit 120 is obtained.

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

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

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

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

次に、第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 flowchart 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. is there. The differences will be described below.

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

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

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

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

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

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

基準値Vrefは、移動速度Vが乗り物の速さであるかを判別するための基準である。また、基準値Vrefは、予め定められている値であって、例えば、時速8kmである。時速8kmは、歩く速度よりは早く、自転車の速度よりは一般に遅いことを根拠に決定された値である。 The reference value Vref is a reference for determining whether the moving speed V is the speed of the vehicle. The reference value Vref is a predetermined value, for example, 8 km / h. 8 km / h is a value determined on the basis that it is faster than walking speed and generally 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に記憶することを単位時間ごとに繰り返す。 When the current moving speed V is less than the reference value Vref, the generation unit 130 determines that the user is in the first state W not riding the vehicle. In other words, the first state W is a state of walking or running. On the other hand, when the current moving speed V is equal to or higher than the reference value Vref, the generation unit 130 determines that the user is in the second state TR on the vehicle. Then, the generation unit 130 sets the first step number ST1, the second step number ST2, and the number of continuous walks NC (ST1,) based on the current movement speed V until a certain period (for example, one week) elapses. ST2, NC) and the first state W or the second state TR are stored in the table 230 in association with the date and time zone, and this 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 according to the third embodiment. For example, the first row of the table 230 is a set of the first step number ST1 and the second step number ST2 and the number of continuous walks NC (ST1, ST2) in the time zone from 8:00 to 9:00 on June 1, 2016. , NC) indicates that it is associated with the first state W. Further, in the sixth row of the table 230, the first step number ST1 is 1241 steps in the time zone from 13:00 to 14:00, 120 steps of which are associated with the first state W, and the remaining 1121 steps are the first steps. It shows that it is associated with the two-state TR. Similarly, the 2nd step ST2 is 805 steps, 95 of which are associated with the 1st state W and the remaining 710 steps are associated with the 2nd state TR. As shown in the third row of the table 230, when both the first step number ST1 and the second step number ST2 are 0, the generation unit 130, for example, sets NA (Not Applicable) corresponding to the set (ST1, Associate with ST2, NC).

生成部130は、一定期間が経過した後、第1状態Wに関連付けられている組を用いて第1速度関係式F31を生成し、第2状態TRに関連付けられている組を用いて第2速度関係式F32を生成する。具体的には、生成部130は、一定期間が経過した後、第1状態Wに関連付けられている組(ST1,ST2,NC)をテーブル230から複数抽出し、統計的手法(回帰分析)によって、抽出した複数の組を用いて第1速度関係式F31を生成する。同様に、生成部130は、第2状態TRに関連付けられている組(ST1,ST2,NC)をテーブル230から複数抽出し、統計的手法(回帰分析)によって、抽出した複数の組を用いて第2速度関係式F32を生成する。 After a certain period of time has passed, the generation unit 130 generates the first velocity relational expression F31 using the set associated with the first state W, and the second generation unit 130 uses the set associated with the second state TR. The velocity relational expression F32 is generated. Specifically, the generation unit 130 extracts a plurality of sets (ST1, ST2, NC) associated with the first state W from the table 230 after a certain period of time has elapsed, and uses a statistical method (regression analysis) to extract a plurality of sets (ST1, ST2, NC). , The first velocity relational expression F31 is generated using the extracted plurality of sets. Similarly, the generation unit 130 extracts a plurality of sets (ST1, ST2, NC) associated with the second state TR from the table 230, and uses the plurality of sets extracted by the statistical method (regression analysis). The second velocity 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)
The first speed relational expression F31 applied to the first state W in which the user is not in the vehicle is expressed by the following equation (3). On the other hand, the second speed relational expression F32 applied to the second state TR in which the user is in the vehicle is expressed by the following equation (4).
F31 (ST1, NC) = ST10 = ST1 x α 1 + NC x β 1 + γ 1 ... (3)
F32 (ST1, NC) = ST10 = ST1 × α 2 + NC × β 2 + γ 2 … (4)

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

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

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

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

図8Bに示すように、ユーザが乗り物に乗っていない第1状態Wに関連付けられた組(ST1,ST2,NC)は、概ね点線に沿って分布している。その上で、ユーザが乗り物に乗っている第2状態TRに関連付けられた組(ST1,ST2,NC)の誤計数が改善されている。よって、歩数がより高い精度で計数されていることが分かる。 As shown in FIG. 8B, the pairs (ST1, ST2, NC) associated with the first state W in which the user is not in the vehicle are generally distributed along the dotted line. On top of that, the erroneous counting 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 obtained by 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 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 example>
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. Further, the two or more embodiments arbitrarily selected from the following examples can be appropriately merged as long as they are not technically inconsistent.

(1)上述した各実施形態では、一定期間が経過することを条件に関係式を生成したが本発明はこれに限定されるものではない。例えば、関係式Fを生成するのに必要なサンプル数がテーブル230に記憶された場合に、準備段階から実測段階へ移行させても良い。また、準備段階の期間をユーザが入力できるようにしても良い。 (1) In each of the above-described embodiments, the relational expression is generated on the condition that a certain period of time elapses, but the present invention is not limited thereto. 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. In addition, the user may be able to input the period of the preparation 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 function of the default counting unit 610 is realized in the subprocessor 60, but the function of the default counting unit 610 can also be realized in the acceleration sensor 30. Specifically, in FIG. 1, the default counting unit 610 is provided as a part of the acceleration sensor 30, reads the default step counting program 210 from the storage unit 20, and executes the read default step counting program 210. Then, the default counting unit 610 counts the number of steps ST0 based on the acceleration value A detected by the acceleration sensor 30 in the preparation stage and the actual measurement stage, and outputs the number of steps ST0 to the subprocessor 60 or the first counting unit 110 of the main processor 10. Is 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 the request from the main processor 10, but the present invention is not limited to this, and the first counting unit 110 is the user. It is only necessary to be able to obtain walking information related to walking. 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, the interrupt signal generated every time the subprocessor 60 detects a step corresponds to this.
When the first counting unit 110 acquires an interrupt signal as walking information, it detects one step when it detects the interrupt signal (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 of the above-described embodiments, the first step count ST1 and the second step count ST2 were counted using the acceleration sensor 30. The gyro sensor may be used in combination with the acceleration sensor 30 to count the first step number ST1 and the second step number ST2. In this case, the gyro sensor is connected to the subprocessor 60 and detects the angular velocities ω on the three axes, that is, the angular velocities ωX around the X-axis, the angular velocities ωY around the Y-axis, and the angular velocities ωZ around the Z-axis. The default counting unit 610 counts the number of steps ST0 using the acceleration value A in the three-axis direction and the angular velocity ω in the three axes. Similarly, the second counting unit 120 also counts the first step number ST1 by using the angular velocity ω in the three axes in addition to the acceleration value A in the three-axis direction.

(5)上述した第3実施形態では、現在の移動速度Vは、3軸方向の加速度値Aに基づいて算出される。代替的に、現在の移動速度Vは、GPS(Global Positioning System)によって取得された現在位置に基づいて、算出されてもよい。この場合、特定部112は、位置の時間変化を算出すればよい。 (5) In the third embodiment described above, the current moving speed V is calculated based on the acceleration value A in the three axial directions. Alternatively, the current moving speed V may be calculated based on the current position acquired by GPS (Global Positioning System). In this case, the specific 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 of continuous walking NC, but the present invention is not limited thereto. The first speed relational expression F31 and the second speed relational expression F32 may be generated based on the first step number ST1 and the second step number ST2.
In this case, the first speed relational expression F31 applied to the first state W in which the user is not in the vehicle is expressed by the following equation (5). On the other hand, the second speed relational expression F32 applied to the second state TR in which the user is in the vehicle is expressed by the following equation (6).
F31 (ST1) = ST1 × α 1 + γ 1 … (5)
F32 (ST1) = ST1 × α 2 + γ 2 … (6)

1…携帯端末、10…メインプロセッサ、20…記憶部、30…加速度センサ、40…操作表示部、50…通信部、60…サブプロセッサ、110…第1計数部、120…第2計数部、130…生成部、140…補正部、111…連続歩行計数部、112…特定部、210…デフォルト歩数計数プログラム、221,222,223…歩数計測プログラム、230…テーブル、610…デフォルト計数部。
1 ... mobile terminal, 10 ... main processor, 20 ... storage unit, 30 ... acceleration sensor, 40 ... operation display unit, 50 ... communication unit, 60 ... subprocessor, 110 ... first counting unit, 120 ... second counting unit, 130 ... Generation unit, 140 ... Correction unit, 111 ... Continuous walking counting unit, 112 ... Specific unit, 210 ... Default step counting program, 221, 222, 223 ... Step counting program, 230 ... Table, 610 ... Default counting unit.

Claims (8)

プロセッサに実行させる歩数計測プログラムであって、
前記プロセッサを、
加速度センサから出力される加速度値に基づいて生成されたユーザの歩行に関する歩行情報を取得し、取得した前記歩行情報に基づいて所定タイミングから累積した歩数を示す第1歩数を出力する第1計数部と、
前記加速度値を取得し、取得した前記加速度値に基づいて前記所定タイミングから累積した歩数を示す第2歩数を出力する第2計数部と、
前記第1歩数及び前記第2歩数に基づいて、少なくとも前記第1歩数と前記第2歩数の関係を示す関係式を生成する生成部と、
前記第1歩数と前記関係式とに基づいて、累積歩数を出力する補正部として機能させる、
歩数計測プログラム。
It is a step counting program that is executed by the processor.
The processor
A first counting unit that acquires walking information related to a user's walking generated based on an acceleration value output from an acceleration sensor, and outputs a first step number indicating the number of steps accumulated from a predetermined timing based on the acquired walking information. When,
A second counting unit that acquires the acceleration value and outputs a second step number indicating the number of steps accumulated from the predetermined timing based on the acquired acceleration value.
A generator that generates at least a relational expression showing the relationship between the first step and the second step based on the first step and the second step.
It functions as a correction unit that outputs the cumulative number of steps based on the first number of steps and the relational expression.
Step count program.
歩数を計測する準備段階において前記プロセッサを、
前記第1計数部と、前記第2計数部と、前記生成部として機能させ、
歩数を計測する実測段階において前記プロセッサを、
前記第1計数部と、前記補正部として機能させる、
請求項1に記載の歩数計測プログラム。
In the preparatory stage for measuring the number of steps, the processor
The first counting unit, the second counting unit, and the generating unit are allowed to function.
In the actual measurement stage of measuring the number of steps, the processor
To function as the first counting unit and the correction unit.
The step count measuring program according to claim 1.
前記準備段階において前記プロセッサを、
更に、連続歩行の回数を計数する連続歩行計数部として機能させ、
前記関係式は、前記第1歩数、前記第2歩数、及び前記連続歩行の回数の関係を示し、
前記生成部は、前記第1歩数、前記第2歩数及び前記連続歩行の回数に基づいて、当該関係式を生成し、
前記実測段階において前記プロセッサを、
更に、前記連続歩行計数部として機能させ、
前記補正部は、前記第1歩数及び前記連続歩行の回数と当該関係式とに基づいて、累積歩数を出力する、
請求項2に記載の歩数計測プログラム。
In the preparatory stage, the processor
Furthermore, it functions as a continuous walking counting unit that counts the number of continuous walking.
The relational expression shows the relationship between the first step count, the second step count, and the number of continuous walks.
The generation unit generates the relational expression based on the number of steps of the first step, the number of steps of the second step, and the number of continuous walks.
In the actual measurement stage, the processor
Further, it is made to function as the continuous walking counting unit.
The correction unit outputs the cumulative number of steps based on the number of the first steps, the number of continuous walks, and the relational expression.
The step count measuring program according to claim 2.
前記連続歩行計数部は、前記第1歩数が更新された直前のタイミングから現在までの歩行時間と既定時間とを比較してユーザが歩行中であるかユーザが静止しているかを判定し、判定結果に基づいて連続歩行の回数を計数する請求項3に記載の歩数計測プログラム。 The continuous walking counting unit compares the walking time from the timing immediately before the first step number is updated to the present with the predetermined time, determines whether the user is walking or is stationary, and determines. The step count measuring program according to claim 3, wherein the number of continuous walks is counted based on the result. 前記準備段階において前記プロセッサを、
更に、ユーザの移動速度を特定する特定部として機能させ、
前記生成部は、
前記特定部で特定した移動速度を取得し、
前記関係式を、前記移動速度が大きい場合に適用する第1速度関係式と、前記移動速度が小さい場合に適用する第2速度関係式とに分けて生成し、
前記実測段階において前記プロセッサを、
更に、前記特定部として機能させ、
前記補正部は、前記特定部から移動速度を取得し、前記第1速度関係式及び前記第2速度関係式のいずれかを前記移動速度に基づいて選択し、選択した関係式と前記第1歩数とに基づいて累積歩数を出力する、
請求項2〜4のうちいずれか1項に記載の歩数計測プログラム。
In the preparatory stage, the processor
Furthermore, it functions as a specific part that identifies the movement speed of the user.
The generator
Acquire the moving speed specified by the specific part,
The relational expression is generated separately into a first speed relational expression applied when the moving speed is large and a second speed relational expression applied when the moving speed is small.
In the actual measurement stage, the processor
Further, it is made to function as the specific part.
The correction unit acquires the moving speed from the specific unit, selects either the first speed relational expression or the second speed relational expression based on the moving speed, and selects the selected relational expression and the first step count. Outputs the cumulative number of steps based on
The step count measuring program according to any one of claims 2 to 4.
前記第1計数部の処理負荷は、前記第2計数部の処理負荷と比較して軽く、
前記第2歩数の精度は、前記第1歩数の精度と比較して高い、
請求項2〜5のうちいずれか1項に記載した歩数計測プログラム。
The processing load of the first counting unit is lighter than that of the second counting unit.
The accuracy of the second step is higher than the accuracy of the first step.
The step count measurement program according to any one of claims 2 to 5.
加速度値を出力する加速度センサと、
加速度センサから出力される加速度値に基づいてユーザの歩行に関する歩行情報を生成するサブプロセッサと、
前記歩行情報に基づいて所定タイミングから累積した歩数を示す第1歩数を計数する第1計数部と、
前記加速度値に基づいて前記所定タイミングから累積した歩数を示す第2歩数を計数する第2計数部と、
前記第1歩数及び前記第2歩数に基づいて、前記第1歩数と前記第2歩数の関係を示す関係式を生成する生成部と、
前記第1歩数と前記関係式とに基づいて、累積歩数を出力する補正部と、
を備える携帯端末。
An accelerometer that outputs an acceleration value and
A subprocessor that generates walking information about the user's walking based on the acceleration value output from the acceleration sensor,
A first counting unit that counts the number of steps accumulated from a predetermined timing based on the walking information, and a first counting unit.
A second counting unit that counts the number of steps accumulated from the predetermined timing based on the acceleration value, and a second counting unit.
A generator that generates a relational expression showing the relationship between the first step and the second step based on the first step and the second step.
A correction unit that outputs the cumulative number of steps based on the first step number and the relational expression,
A mobile terminal equipped with.
歩数を計測する準備段階において、前記第1計数部、前記第2計数部、及び前記生成部を動作させ、歩数を計測する実測段階において、前記第1計数部及び前記補正部を動作させる、請求項7に記載の携帯端末。 The first counting unit, the second counting unit, and the generating unit are operated in the preparatory stage for measuring the number of steps, and the first counting unit and the correction unit are operated in the actual measurement stage for measuring the number of steps. Item 7. The mobile terminal according to item 7.
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 true JP2021057055A (en) 2021-04-08
JP2021057055A5 JP2021057055A5 (en) 2021-09-02
JP7162911B2 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
JP7162911B2 (en) 2022-10-31

Similar Documents

Publication Publication Date Title
US10667726B2 (en) Gait posture meter and program
KR102216050B1 (en) System and method for recommending exercise routes
JP2014115093A (en) Gps receiver and program
JP6035812B2 (en) Information processing apparatus, information processing method, and program
US8611725B2 (en) Playback display device, image capturing device, playback display method, and storage medium
JP4622827B2 (en) Pedometer
US11341423B2 (en) Information processing apparatus, artificial intelligence selection method, and artificial intelligence selection program
KR20210077707A (en) How to estimate a metric of interest related to body motion
JP2015184159A (en) Correlation coefficient correction method, motion analysis method, correlation coefficient correction device, and program
JP2016033473A (en) Position calculation method and position calculation device
JP6365031B2 (en) Activity amount measuring device, activity amount measuring method, activity amount measuring program
JP2016142593A (en) Information processing device, position measurement method, and program
JP6804087B2 (en) Pedometer program and mobile terminal
JP6552548B2 (en) Point proposing device and point proposing method
JP2015224931A (en) Information processing device, information processing method, and computer program
JP4954792B2 (en) Speedometer
JP2021057055A (en) Number-of-steps measurement program and portable terminal
JP2013181900A (en) Orientation calculation method, position calculation method, and orientation calculation device
JP2015224932A (en) Information processing device, information processing method, and computer program
JP6233123B2 (en) Sensor device, sampling method and program
JP2012233731A (en) Method for estimating stride length and device for estimating stride length
JP7255642B2 (en) Information processing device, information processing method and program
US11822623B2 (en) Traveling amount estimation apparatus, model generation apparatus, traveling amount estimation method and recording medium
CN110460925B (en) Earphone and system for converting sensing data
CN111297368A (en) Gait recognition method, device, equipment and readable storage medium

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