JP6459834B2 - Electronic device and status notification program - Google Patents

Electronic device and status notification program Download PDF

Info

Publication number
JP6459834B2
JP6459834B2 JP2015152103A JP2015152103A JP6459834B2 JP 6459834 B2 JP6459834 B2 JP 6459834B2 JP 2015152103 A JP2015152103 A JP 2015152103A JP 2015152103 A JP2015152103 A JP 2015152103A JP 6459834 B2 JP6459834 B2 JP 6459834B2
Authority
JP
Japan
Prior art keywords
feature
movement state
value
component
state
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.)
Expired - Fee Related
Application number
JP2015152103A
Other languages
Japanese (ja)
Other versions
JP2017033260A (en
Inventor
崇尚 杉本
崇尚 杉本
弘志 根來
弘志 根來
陽介 千田
陽介 千田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2015152103A priority Critical patent/JP6459834B2/en
Publication of JP2017033260A publication Critical patent/JP2017033260A/en
Application granted granted Critical
Publication of JP6459834B2 publication Critical patent/JP6459834B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、電子機器及び状態通知プログラムに関する。   The present invention relates to an electronic device and a status notification program.

近年、携帯電話機、スマートフォン、タブレット端末、又はウェアラブル端末などの装置には各種センサが搭載され、センサの検出値を用いて装置が置かれている状態を判別することが可能となってきている。例えば、センサの検出値を用いて、移動状態を判別することが行われている。移動状態は、例えば、装置が置かれている移動の状態であってよく、電車に乗っている状態、自動車に乗っている状態、自転車に乗っている状態、歩行している状態、及び静止している状態を含んでよい。なお、装置が置かれている移動の状態は、例えば、装置を保持するユーザの移動の状態と対応していてよい。そして、例えば、日常生活を振り返るためのライフログを記録するアプリケーションや、健康支援のためのアプリケーションなどにおいて、判別された移動状態の情報が利用されている。また、例えば、装置が置かれている現在の状態に適した情報や広告を配信するアプリケーションなども開発されている。   In recent years, various sensors are mounted on a device such as a mobile phone, a smartphone, a tablet terminal, or a wearable terminal, and it is possible to determine a state where the device is placed using a detection value of the sensor. For example, the movement state is discriminated using the detection value of the sensor. The moving state may be, for example, a moving state in which the device is placed, such as a state of riding a train, a state of riding a car, a state of riding a bicycle, a state of walking, and a stationary state. State may be included. Note that the state of movement in which the device is placed may correspond to the state of movement of the user holding the device, for example. For example, information on the determined movement state is used in an application for recording a life log for looking back on daily life, an application for health support, or the like. In addition, for example, applications that distribute information and advertisements suitable for the current state in which the device is placed have been developed.

これに関し、ユーザの各行動を精度良く認識するための技術が知られている(例えば、特許文献1参照)。また、携帯している人の行動そのものを特定してより詳細な各種情報を得るための技術が知られている(例えば、特許文献2参照)。通信相手のユーザのいまの状態を知り、その状態に応じた処理を行うための技術が知られている(例えば、特許文献3参照)。より簡単に、利用者が車で移動している状態か電車で移動している状態かを判別するための技術が知られている(例えば、特許文献4参照)。   In this regard, a technique for accurately recognizing each action of a user is known (for example, see Patent Document 1). In addition, a technique for acquiring various detailed information by specifying the behavior of a person who carries it is known (for example, see Patent Document 2). A technique for knowing the current state of a communication partner user and performing processing according to the state is known (see, for example, Patent Document 3). Techniques for determining whether a user is moving in a car or in a train are more easily known (see, for example, Patent Document 4).

特開2014−56585号公報JP 2014-56585 A 特開平10−24026号公報JP-A-10-24026 特開2006−345269号公報JP 2006-345269 A 特開2014−66638号公報JP 2014-66638 A

しかしながら、センサの検出値を用いて装置が置かれている移動状態を判別する場合に、実際の移動状態とは異なる移動状態に類似した検出値が発生してしまい、移動状態を誤判別することがあった。本発明の1つの側面に係る目的は、装置が置かれている移動状態の判別精度を向上させることのできる技術を提供することである。   However, when using the detection value of the sensor to determine the movement state where the device is placed, a detection value similar to the movement state different from the actual movement state is generated, and the movement state is erroneously determined. was there. The objective which concerns on one side of this invention is to provide the technique which can improve the discrimination | determination precision of the movement state in which the apparatus is set | placed.

本発明の一つの態様の電子機器は、取得部と、記憶部と、出力部とを含む。取得部は、磁気センサで検出された磁気のうち、所定の周波数以下の成分を含む第1の周波数範囲の成分を抽出して得た第1の磁気ベクトルから第1の特徴量を取得する。また、取得部は、磁気のうち、所定の周波数以下の成分を含まない第2の周波数範囲の成分を抽出して得た第2の磁気ベクトルから第2の特徴量を取得する。記憶部は、複数の移動状態のそれぞれにおける、第1の特徴量の傾向を表す第1の代表値と、第2の特徴量の傾向を表す第2の代表値とを含む代表値の組を記憶している。出力部は、第1の特徴量と第2の特徴量とを含む特徴量の組が示すパターンに合致する代表値の組の移動状態を示す情報を出力する。   An electronic device according to one aspect of the present invention includes an acquisition unit, a storage unit, and an output unit. The obtaining unit obtains a first feature amount from a first magnetic vector obtained by extracting a component in a first frequency range including a component having a frequency equal to or lower than a predetermined frequency from magnetism detected by a magnetic sensor. In addition, the acquisition unit acquires a second feature amount from a second magnetic vector obtained by extracting a component in the second frequency range that does not include a component equal to or lower than a predetermined frequency in the magnetism. The storage unit includes a set of representative values including a first representative value representing a tendency of the first feature value and a second representative value representing a tendency of the second feature value in each of the plurality of movement states. I remember it. The output unit outputs information indicating a movement state of the representative value set that matches the pattern indicated by the feature value set including the first feature value and the second feature value.

1つの側面によれば、装置が置かれている移動状態の判別精度を向上させることができる。   According to one aspect, it is possible to improve the determination accuracy of the moving state where the apparatus is placed.


第1の実施形態に係る装置のブロック構成を例示する図である。It is a figure which illustrates the block configuration of the apparatus which concerns on 1st Embodiment. 磁気センサで検出される磁気を示す図である。It is a figure which shows the magnetism detected with a magnetic sensor. 磁気を周波数領域に変換した図である。It is the figure which converted the magnetism into the frequency domain. 第1の周波数範囲の成分と、第2の周波数範囲の成分とを例示する図である。It is a figure which illustrates the component of the 1st frequency range, and the component of the 2nd frequency range. 第1の実施形態に係る移動状態情報を例示する図である。It is a figure which illustrates the movement state information which concerns on 1st Embodiment. 第1の実施形態に係る移動状態の通知処理を例示する図である。It is a figure which illustrates the notification process of the movement state which concerns on 1st Embodiment. 各移動状態の一致度を例示する図である。It is a figure which illustrates the coincidence degree of each movement state. 第2の実施形態に係る装置のブロック構成を例示する図である。It is a figure which illustrates the block configuration of the apparatus which concerns on 2nd Embodiment. 第2の実施形態に係る移動状態情報を例示する図である。It is a figure which illustrates the movement state information which concerns on 2nd Embodiment. 第2の実施形態に係る移動状態の通知処理を例示する図である。It is a figure which illustrates the notification process of the movement state which concerns on 2nd Embodiment. 第2の実施形態の変形例に係る移動状態の判別処理を例示する図である。It is a figure which illustrates the discrimination process of the movement state which concerns on the modification of 2nd Embodiment. 実施形態に係る電子機器と、電子機器を備える装置とを実現するための装置のハードウェア構成を例示する図である。It is a figure which illustrates the hardware constitutions of the apparatus for implement | achieving the electronic device which concerns on embodiment, and an apparatus provided with an electronic device.

以下、図面を参照しながら、本発明のいくつかの実施形態について詳細に説明する。なお、複数の図面において対応する要素には同一の符号を付す。   Hereinafter, some embodiments of the present invention will be described in detail with reference to the drawings. In addition, the same code | symbol is attached | subjected to the corresponding element in several drawing.

<第1の実施形態>
第1の実施形態では、例えば、3軸の磁気センサで検出されている3軸の磁気(μT)の値から、所定の周波数以下の成分を含む第1の周波数範囲の成分が抽出され、得られた第1の周波数範囲の成分の磁気の値が第1の磁気ベクトルとして取得される。また、同様に、3軸の磁気センサで検出されている3軸の磁気の値から、所定の周波数以下の成分を含まない第2の周波数範囲の成分が抽出され、得られた第2の周波数範囲の成分の磁気の値が第2の磁気ベクトルとして取得される。そして、第1の磁気ベクトルの大きさを第1の特徴量、及び第2の磁気ベクトルの大きさを第2の特徴量として用い、第1の特徴量と第2の特徴量との組が示すパターン(傾向)から装置が置かれている移動状態が判別される。なお、第1の特徴量と、第2の特徴量とを用いて装置が置かれている移動状態を判別するのは、例えば、以下のことが考えられるためである。
<First Embodiment>
In the first embodiment, for example, components in the first frequency range including components below a predetermined frequency are extracted from the value of the three-axis magnetism (μT) detected by the three-axis magnetic sensor. The magnetic value of the first frequency range component obtained is acquired as the first magnetic vector. Similarly, the second frequency range obtained by extracting the component in the second frequency range that does not include the component below the predetermined frequency from the value of the triaxial magnetism detected by the triaxial magnetic sensor. The magnetic value of the range component is obtained as the second magnetic vector. Then, using the magnitude of the first magnetic vector as the first feature quantity and the magnitude of the second magnetic vector as the second feature quantity, a set of the first feature quantity and the second feature quantity is obtained. The movement state in which the device is placed is determined from the pattern (trend) shown. Note that the movement state in which the apparatus is placed is determined using the first feature amount and the second feature amount because, for example, the following may be considered.

例えば、装置が静止している状態では、装置に備えられている磁気センサで検出される磁気は、装置に対する北方位が変化しないため、一定の値を示す。この場合、磁気センサで検出された磁気に含まれる周波数成分は、例えば、周波数:0Hzの直交成分となる。   For example, when the apparatus is stationary, the magnetism detected by the magnetic sensor provided in the apparatus shows a constant value because the north direction relative to the apparatus does not change. In this case, the frequency component included in the magnetism detected by the magnetic sensor is, for example, an orthogonal component having a frequency of 0 Hz.

また、例えば、ユーザが保持した装置を動かした場合、装置の動きに応じて装置に対する北方位は変化するため、装置に備えられている磁気センサで検出される磁気は変化する。例えば、ユーザが装置を保持しながら歩行したり、方向転換したり、装置を振ったり、装置を回したりすると、装置の位置や向きなどの変化に応じて装置に備えられている磁気センサで検出される磁気は変化する。この場合、磁気の変化はユーザが体を動かすことができる速さに応じた変化となるため、例えば、所定の周波数以下の周波数成分の変化に収まると推定できる。なお、所定の周波数は、例えば、所定の周波数以下の成分に、ユーザが保持した装置を動かすことで生じる磁気の変化が含まれるように設定されてよい。所定の周波数は、例えば、1〜3Hzの周波数であってよい。   Further, for example, when the device held by the user is moved, the north direction with respect to the device changes in accordance with the movement of the device, and thus the magnetism detected by the magnetic sensor provided in the device changes. For example, when the user walks, changes direction, shakes the device, or turns the device while holding the device, it is detected by the magnetic sensor provided in the device according to changes in the position and orientation of the device. The magnetism changes. In this case, since the change in magnetism is a change according to the speed at which the user can move the body, for example, it can be estimated that the change is within a change in frequency components below a predetermined frequency. Note that the predetermined frequency may be set so that, for example, a component that is equal to or lower than the predetermined frequency includes a magnetic change caused by moving the device held by the user. The predetermined frequency may be, for example, a frequency of 1 to 3 Hz.

一方、装置が置かれている移動状態が電車や自動車などで移動している移動状態であるとする。この場合、例えば、付近に存在する50Hzなどの高速に回転するモータが発する磁力に起因して、磁気センサで検出される磁気には、所定の周波数よりも高周波数側にある周波数成分に変化が生じる。また、別な例として、装置が置かれている移動状態が電車や自動車などで移動している移動状態である場合に、装置は、強力な磁力を帯びた複数の電線や磁性を帯びた複数の鉄骨等の下を高速で通過することがある。それにより、磁気センサで検出される磁気には所定の周波数よりも高周波数側の周波数成分に変化が生じる。そして、この様な、所定の周波数よりも高周波数側の周波数成分の磁気の変化は、例えば、装置の移動状態が静止している状態や歩行している状態ではほとんど発生しない。   On the other hand, it is assumed that the moving state in which the device is placed is a moving state in which the apparatus is moving by a train or a car. In this case, for example, due to the magnetic force generated by a high-speed rotating motor such as 50 Hz existing in the vicinity, the magnetic component detected by the magnetic sensor has a change in the frequency component on the higher frequency side than the predetermined frequency. Arise. As another example, when the moving state where the device is placed is a moving state where the device is moving by a train or a car, the device has a plurality of wires with strong magnetic force or a plurality of magnetized wires. May pass at high speed under the steel frame. Thereby, in the magnetism detected by the magnetic sensor, a change occurs in the frequency component on the higher frequency side than the predetermined frequency. Then, such a change in magnetism of a frequency component on the higher frequency side than the predetermined frequency hardly occurs, for example, when the moving state of the apparatus is stationary or walking.

また、装置が置かれている移動状態が電車や自動車などで移動している状態である場合、装置の付近にモータや電線などの磁力を発する多くの物体が存在する状況が多い。そのため、電車や自動車などで移動している状態では、所定の周波数以下の周波数成分についても静止や歩行している状態よりも多く発生する傾向がある。   In addition, when the moving state where the device is placed is a state where the device is moving by a train, an automobile, or the like, there are many situations where there are many objects that generate magnetic force, such as motors and electric wires, in the vicinity of the device. For this reason, in a state where the vehicle is moving by a train or an automobile, there is a tendency that frequency components equal to or lower than a predetermined frequency are generated more than in a stationary or walking state.

また更に、電車に乗っている状態と自動車に乗っている状態とを比較すると、例えば電車においては移動中に高頻度で電線を通過するが、自動車はその限りではなく、所定の周波数以下の周波数成分は電車の方が多く発生する傾向がある。一方で、自動車に乗っている状態の方が、例えば別の自動車やオートバイクなどが備えるモータが付近に複数存在することが多い。そのため、自動車に乗っている状態の方が所定の周波数よりも高周波数側の周波数成分は多く発生する傾向がある。   Furthermore, when comparing the state of riding on a train and the state of riding on a car, for example, in a train, the wire passes frequently while moving, but the car is not limited to this, and the frequency is equal to or lower than a predetermined frequency. There is a tendency that more components are generated in the train. On the other hand, in the state of being in a car, for example, a plurality of motors provided in another car or motorcycle are often present in the vicinity. Therefore, there is a tendency that more frequency components on the higher frequency side than a predetermined frequency are generated when the vehicle is in a car.

同様に、自転車についても、所定の周波数以下の周波数成分は、電車及び自動車と比較して少なく、一方、歩行や静止の状態よりは、付近に磁力を発する物体が存在する状況が多くなるため、多くなる。また、所定の周波数よりも高周波数側の周波数成分は、高速で回転する自転車のタイヤのフレームの影響で、例えば歩行や静止の状態よりも多くなる。   Similarly, for bicycles, the frequency component below a predetermined frequency is small compared to trains and automobiles, while on the other hand, there are more situations where objects that generate magnetic force exist in the vicinity than when walking or standing still, Become more. Further, the frequency component on the higher frequency side than the predetermined frequency is larger than, for example, a walking state or a stationary state due to the influence of the frame of the bicycle tire rotating at high speed.

結果として、例えば、所定の周波数以下の周波数成分と所定の周波数よりも高周波数側の周波数成分とをそれぞれの移動状態の間で比較すると、その量が示す傾向には差が生じる。そのため、第1の実施形態では、例えば、磁気センサで検出されている磁気の値から、所定の周波数以下の成分を含む第1の周波数範囲の成分を抽出し、得られた第1の周波数範囲の成分の磁気の値を第1の磁気ベクトルとして取得する。また、同様に、磁気センサで検出されている磁気の値から、所定の周波数以下の成分を含まない第2の周波数範囲の成分を抽出し、得られた第2の周波数範囲の成分の磁気の値を第2の磁気ベクトルとして取得する。そして、第1の磁気ベクトルの大きさである第1の特徴量と、第2の磁気ベクトルの大きさである第2の特徴量とを用いて装置が置かれている移動状態を判別する。これにより、移動状態の判別精度を向上させることができる。   As a result, for example, when a frequency component equal to or lower than a predetermined frequency and a frequency component higher than the predetermined frequency are compared between the respective moving states, a difference is generated in the tendency indicated by the amount. Therefore, in the first embodiment, for example, a first frequency range obtained by extracting a component in a first frequency range including a component equal to or lower than a predetermined frequency from a magnetic value detected by a magnetic sensor. Is obtained as the first magnetic vector. Similarly, a component in the second frequency range that does not include a component below a predetermined frequency is extracted from the value of magnetism detected by the magnetic sensor, and the magnetic component of the component in the obtained second frequency range is extracted. The value is obtained as the second magnetic vector. Then, the moving state in which the apparatus is placed is determined using the first feature quantity that is the magnitude of the first magnetic vector and the second feature quantity that is the magnitude of the second magnetic vector. Thereby, the determination accuracy of the moving state can be improved.

以下、図1から図7を参照して第1の実施形態を更に詳細に説明する。
図1は、第1の実施形態に係る装置10のブロック構成を例示する図である。装置10は、磁気センサ20と、制御部30と、電子機器100とを含む。なお、装置10は、例えば、携帯電話機、スマートフォン、タブレット端末、又はウェアラブル端末などの磁気センサ20を含む装置であってよい。電子機器100は、例えば、磁気センサ20及び制御部30と接続されている。磁気センサ20は、例えば、3軸の地磁気センサなどの磁気センサである。
Hereinafter, the first embodiment will be described in more detail with reference to FIGS.
FIG. 1 is a diagram illustrating a block configuration of an apparatus 10 according to the first embodiment. The apparatus 10 includes a magnetic sensor 20, a control unit 30, and an electronic device 100. In addition, the apparatus 10 may be an apparatus including the magnetic sensor 20 such as a mobile phone, a smartphone, a tablet terminal, or a wearable terminal. The electronic device 100 is connected to, for example, the magnetic sensor 20 and the control unit 30. The magnetic sensor 20 is, for example, a magnetic sensor such as a triaxial geomagnetic sensor.

電子機器100は、例えば、制御部101及び記憶部110を含む。制御部101は、例えば、取得部102、及び出力部103を含む。記憶部110は、例えば、後述する移動状態情報500及びプログラムを記憶してよい。これらの機能部及び記憶部110に格納されている情報の詳細については後述する。   The electronic device 100 includes a control unit 101 and a storage unit 110, for example. The control unit 101 includes, for example, an acquisition unit 102 and an output unit 103. The storage unit 110 may store movement state information 500 and a program, which will be described later, for example. Details of the information stored in these functional units and the storage unit 110 will be described later.

そして、電子機器100の制御部101は、例えば、磁気センサ20で検出された磁気に基づいて、装置10が置かれている移動状態を判別する。なお、制御部101は、例えば、判別した移動状態を、装置10の制御部30に通知してよい。装置10の制御部30は、例えば、プログラムを実行することでアプリケーションを稼働していてよく、アプリケーションは、通知された移動状態を利用してよい。装置10の制御部30は、例えば、装置10の各部を制御してよい。   And the control part 101 of the electronic device 100 discriminate | determines the movement state in which the apparatus 10 is placed based on the magnetism detected by the magnetic sensor 20, for example. Note that the control unit 101 may notify the determined movement state to the control unit 30 of the apparatus 10, for example. For example, the control unit 30 of the apparatus 10 may operate an application by executing a program, and the application may use the notified movement state. The control unit 30 of the device 10 may control each unit of the device 10, for example.

図2は、磁気センサ20で検出される磁気を示す図である。なお、図2においては、X軸、Y軸、及びZ軸のそれぞれの磁気が示されている。X軸、Y軸、及びZ軸は、例えば、磁気センサ20から異なる3つの方向へととられた互いに直交する軸であってよい。図2において、縦軸は、磁気(μT:マイクロテスラ)であり、横軸は時間(s:秒)である。図2では、磁気センサ20によりX軸、Y軸、及びZ軸の方向の磁気が検出されており、検出されたX軸、Y軸、及びZ軸の磁気の値は、例えば、北方位を示す磁気ベクトルとして用いることができる。   FIG. 2 is a diagram illustrating magnetism detected by the magnetic sensor 20. In FIG. 2, the magnetism of each of the X axis, the Y axis, and the Z axis is shown. For example, the X axis, the Y axis, and the Z axis may be axes orthogonal to each other taken in three different directions from the magnetic sensor 20. In FIG. 2, the vertical axis represents magnetism (μT: microtesla) and the horizontal axis represents time (s: seconds). In FIG. 2, magnetism in the X-axis, Y-axis, and Z-axis directions is detected by the magnetic sensor 20, and the detected magnetic values of the X-axis, Y-axis, and Z-axis are, for example, in the north direction. It can be used as the magnetic vector shown.

また、図3は、図2に示す時間領域の各軸の磁気を、周波数領域に変換した図である。図3において、縦軸は、磁気(μT:マイクロテスラ)であり、横軸は周波数(Hz:ヘルツ)である。   FIG. 3 is a diagram in which the magnetism of each axis in the time domain shown in FIG. 2 is converted into the frequency domain. In FIG. 3, the vertical axis represents magnetism (μT: microtesla), and the horizontal axis represents frequency (Hz: hertz).

そして、第1の実施形態では電子機器100の制御部101は、磁気センサ20で検出されている磁気(μT)から、所定の周波数以下の成分を含む第1の周波数範囲の成分と、所定の周波数以下の成分を含まない第2の周波数範囲の成分とを抽出する。図4は、所定の周波数以下の成分を含む第1の周波数範囲の成分と、所定の周波数以下の成分を含まない第2の周波数範囲の成分とを例示する図である。なお、所定の周波数は、上述のように、例えば、所定の周波数以下の周波数成分に、ユーザが保持した装置10を動かすことで生じる磁気の変化が含まれるように設定されてよい。所定の周波数は、例えば、1〜3Hzの周波数であってよい。所定の周波数以下の成分を含む第1の周波数範囲は、例えば、0Hzから所定の周波数までの周波数範囲であってよく、或いは別の周波数範囲であってもよい。所定の周波数以下の成分を含まない第2の周波数範囲は、所定の周波数よりも高周波数側にある周波数範囲であってよい。第2の周波数範囲は、例えば、50Hzなどの高速に回転するモータや強力な磁力を帯びた複数の電線や磁性を帯びた複数の鉄骨等の下を高速で通過することに起因して発生する外乱による磁気の変化が検出できる範囲に設定されてよい。第2の周波数範囲の上限の周波数は、例えば、500〜2kHzであってよい。   In the first embodiment, the control unit 101 of the electronic device 100 includes, from the magnetism (μT) detected by the magnetic sensor 20, a first frequency range component including a component equal to or lower than a predetermined frequency, and a predetermined frequency A component in the second frequency range that does not include a component below the frequency is extracted. FIG. 4 is a diagram illustrating a first frequency range component including a component equal to or lower than a predetermined frequency and a second frequency range component not including a component equal to or lower than the predetermined frequency. Note that, as described above, the predetermined frequency may be set so that, for example, a frequency component equal to or lower than the predetermined frequency includes a magnetic change generated by moving the device 10 held by the user. The predetermined frequency may be, for example, a frequency of 1 to 3 Hz. The first frequency range including a component equal to or lower than the predetermined frequency may be, for example, a frequency range from 0 Hz to a predetermined frequency, or may be another frequency range. The second frequency range that does not include a component equal to or lower than the predetermined frequency may be a frequency range that is on the higher frequency side than the predetermined frequency. The second frequency range is generated due to, for example, passing under a motor rotating at a high speed such as 50 Hz, a plurality of electric wires with strong magnetic force, a plurality of magnetic steel frames, or the like at high speed. It may be set in a range in which a change in magnetism due to a disturbance can be detected. The upper limit frequency of the second frequency range may be, for example, 500 to 2 kHz.

そして、制御部101は、磁気センサ20で検出されている各軸の磁気から第1の周波数範囲の成分の値を抽出し、得られた各軸の値をベクトル成分とする第1の磁気ベクトルを取得する。また、同様に、制御部101は、磁気センサ20で検出されている各軸の磁気から第2の周波数範囲の成分の値を抽出し、得られた各軸の値をベクトル成分とする第2の磁気ベクトルを取得する。そして、制御部101は、得られた第1の磁気ベクトルの大きさを第1の特徴量として取得する。また同様に、制御部101は、得られた第2の磁気ベクトルの大きさを第2の特徴量として取得する。   Then, the control unit 101 extracts the value of the first frequency range component from the magnetism of each axis detected by the magnetic sensor 20, and uses the obtained value of each axis as a vector component. To get. Similarly, the control unit 101 extracts the value of the second frequency range component from the magnetism of each axis detected by the magnetic sensor 20, and uses the obtained value of each axis as a vector component. Get the magnetic vector of. And the control part 101 acquires the magnitude | size of the obtained 1st magnetic vector as a 1st feature-value. Similarly, the control unit 101 acquires the magnitude of the obtained second magnetic vector as the second feature amount.

また、電子機器100は、例えば、判別する移動状態ごとの第1の特徴量と第2の特徴量との傾向を表す代表値を含む移動状態情報500を記憶部110に記憶している。図5は、移動状態情報500を例示する図である。図5では移動状態情報500は、静止、歩行、自転車、自動車、及び電車のそれぞれの移動状態における、第1の特徴量の傾向を表す第1の代表値と、第2の特徴量の傾向を表す第2の代表値とを含んでいる。なお、第1の代表値及び第2の代表値は、例えば、それぞれの移動状態において計測された複数の第1の特徴量、及び複数の第2の特徴量をそれぞれ代表する値であってよい。例えば、電車に乗っている状態に対する第1の代表値は、電車に乗っている状態で磁気センサ20により検出された複数の磁気から取得された複数の第1の特徴量の平均値、中央値、又は最頻値などの統計値であってよい。また同様に、電車に乗っている状態に対する第2の代表値は、電車に乗っている状態で磁気センサ20により検出された複数の磁気から取得された複数の第2の特徴量の平均値、中央値、最頻値などの統計値であってよい。その他の移動状態についても、同様に代表値を取得することができる。   In addition, the electronic device 100 stores, for example, movement state information 500 including a representative value indicating a tendency between the first feature amount and the second feature amount for each movement state to be determined in the storage unit 110. FIG. 5 is a diagram illustrating movement state information 500. In FIG. 5, the movement state information 500 indicates the first representative value indicating the tendency of the first feature amount and the tendency of the second feature amount in the movement states of stationary, walking, bicycle, automobile, and train. 2nd representative value to represent. Note that the first representative value and the second representative value may be values representative of the plurality of first feature amounts and the plurality of second feature amounts, respectively, measured in each moving state, for example. . For example, the first representative value for the state on the train is an average value or median value of the plurality of first feature amounts acquired from the plurality of magnetisms detected by the magnetic sensor 20 in the state of riding the train. Or a statistical value such as a mode value. Similarly, the second representative value for the state on the train is an average value of the plurality of second feature amounts acquired from the plurality of magnetisms detected by the magnetic sensor 20 while on the train, It may be a statistical value such as median or mode. Similarly, representative values can be acquired for other movement states.

そして、電子機器100の制御部101は、例えば、磁気センサ20で検出された磁気から取得された第1の特徴量及び第2の特徴量の組を、移動状態情報500に含まれる移動状態ごとの第1の代表値及び第2の代表値の組と比較する。それによって、装置10が置かれている移動状態を判別する。以下、第1の実施形態に係る移動状態の通知処理を説明する。   Then, for example, the control unit 101 of the electronic device 100 uses a combination of the first feature amount and the second feature amount acquired from the magnetism detected by the magnetic sensor 20 for each movement state included in the movement state information 500. Are compared with a set of the first representative value and the second representative value. Thereby, the moving state in which the apparatus 10 is placed is determined. Hereinafter, the movement state notification process according to the first embodiment will be described.

図6は、第1の実施形態に係る移動状態の通知処理を例示する図である。図6の動作フローは例えば、電子機器100の制御部101に移動状態の判別を指示する信号が入力されると開始してよい。   FIG. 6 is a diagram illustrating a moving state notification process according to the first embodiment. The operation flow in FIG. 6 may be started, for example, when a signal instructing the determination of the movement state is input to the control unit 101 of the electronic device 100.

ステップ601(以降、ステップを“S”と記載し、例えば、S601と表記する)において制御部101は、磁気センサ20から入力される3軸の磁気の値から所定の周波数以下の成分を含む第1の周波数範囲の成分を抽出し、第1の磁気ベクトルを特定する。なお、磁気センサ20から入力される3軸の磁気の値からの第1の周波数範囲の成分の抽出は、例えば、ローパスフィルタ又は移動平均を用いて実施することができる。また、制御部101は、磁気センサ20から入力される3軸の磁気の値から所定の周波数以下の成分を含まない第2の周波数範囲の成分を抽出し、第2の磁気ベクトルを特定する。磁気センサ20から入力される3軸の磁気の値からの第2の周波数範囲の成分の抽出は、例えば、ハイパスフィルタを用いて実施することができる。フィルタには、例えば、FIR(Finite Impulse Response)フィルタ、及びIIR(Infinite Impulse Response)フィルタを用いることができる。   In step 601 (hereinafter, “step” is described as “S”, for example, expressed as S601), the control unit 101 includes a component having a frequency equal to or lower than a predetermined frequency from the three-axis magnetic value input from the magnetic sensor 20. A component in a frequency range of 1 is extracted, and a first magnetic vector is specified. In addition, extraction of the component of the 1st frequency range from the value of the triaxial magnetism input from the magnetic sensor 20 can be implemented using a low-pass filter or a moving average, for example. In addition, the control unit 101 extracts a component in the second frequency range that does not include a component equal to or lower than a predetermined frequency from the three-axis magnetic value input from the magnetic sensor 20, and specifies the second magnetic vector. Extraction of the component in the second frequency range from the triaxial magnetism value input from the magnetic sensor 20 can be performed using, for example, a high-pass filter. As the filter, for example, a FIR (Finite Impulse Response) filter and an IIR (Infinite Impulse Response) filter can be used.

S602において、制御部101は、第1の磁気ベクトルの大きさを、第1の特徴量として取得する。また、制御部101は、第2の磁気ベクトルの大きさを、第2の特徴量として取得する。   In step S602, the control unit 101 acquires the magnitude of the first magnetic vector as a first feature amount. Further, the control unit 101 acquires the magnitude of the second magnetic vector as the second feature amount.

S603において制御部101は、得られた第1の特徴量と第2の特徴量との組を、移動状態情報500に含まれる各移動状態における第1の代表値と、第2の代表値との組と比較する。そして、制御部101は、第1の特徴量と第2の特徴量との組が示すパターンに合致する代表値の組を有する移動状態を特定する。   In step S <b> 603, the control unit 101 uses the obtained first feature amount and second feature amount as a first representative value and a second representative value in each movement state included in the movement state information 500. Compare with the pair. Then, the control unit 101 specifies a movement state having a representative value set that matches the pattern indicated by the set of the first feature value and the second feature value.

第1の特徴量と第2の特徴量との組が示すパターンに合致する代表値の組を有する移動状態の特定は、例えば、以下のように実行されてよい。まず、制御部101は、第1の特徴量の一致度と、第2の特徴量の一致度とを以下の式1を用いて計算する。
一致度=|移動状態の代表値−特徴量|/移動状態の代表値 ・・・式1
The specification of the movement state having the representative value set that matches the pattern indicated by the set of the first feature value and the second feature value may be executed as follows, for example. First, the control unit 101 calculates the degree of coincidence of the first feature quantity and the degree of coincidence of the second feature quantity using Expression 1 below.
Consistency = | Representative value of moving state−Feature amount | / Representative value of moving state

例えば、S602で得られた第1の特徴量が100であったとする。この場合、移動状態情報500の静止の第1の代表値は80であるため、第1の特徴量の一致度は、|80−100|/80=0.25となる。また、移動状態情報500の歩行の第1の代表値は100であるため、第1の特徴量の一致度は|100−100|/100=0となる。例えば、この様にして各移動状態における第1の特徴量の一致度を算出することができる。また、S602で得られた第2の特徴量についても、同様に式1を用いて各移動状態における第2の特徴量の一致度を算出することができる。   For example, assume that the first feature value obtained in S602 is 100. In this case, since the first representative value of the stationary state of the movement state information 500 is 80, the degree of coincidence of the first feature amount is | 80-100 | /80=0.25. Since the first representative value of walking in the movement state information 500 is 100, the degree of coincidence of the first feature amount is | 100-100 | / 100 = 0. For example, the degree of coincidence of the first feature amount in each moving state can be calculated in this way. Similarly, for the second feature amount obtained in S602, the degree of coincidence of the second feature amount in each movement state can be calculated using Equation 1 in the same manner.

続いて、制御部101は、例えば、移動状態ごとに算出された第1の特徴量の一致度と、第2の特徴量の一致度とを用いて移動状態の一致度を求める。移動状態の一致度は、例えば、第1の特徴量の一致度と第2の特徴量の一致度の平均値などの統計値であってよい。図7は、各移動状態の一致度を例示する図である。   Subsequently, the control unit 101 obtains the degree of coincidence of the movement state using, for example, the degree of coincidence of the first feature amount calculated for each movement state and the degree of coincidence of the second feature amount. The degree of coincidence of the movement state may be, for example, a statistical value such as an average value of the degree of coincidence between the first feature quantity and the second feature quantity. FIG. 7 is a diagram illustrating the degree of coincidence of each movement state.

そして、制御部101は、各移動状態の一致度を比較することで、第1の特徴量と第2の特徴量との組が示すパターンに合致する代表値の組を有する移動状態を特定する。例えば、制御部101は、移動状態の一致度が最も低い移動状態を、第1の特徴量と第2の特徴量との組が示すパターンに合致する代表値の組を有する移動状態として特定してよい。   And the control part 101 specifies the movement state which has the group of the representative value which matches the pattern which the group of the 1st feature amount and the 2nd feature amount shows by comparing the coincidence degree of each movement state. . For example, the control unit 101 identifies the movement state having the lowest degree of coincidence of movement states as a movement state having a set of representative values that matches the pattern indicated by the combination of the first feature amount and the second feature amount. It's okay.

S604において制御部101は、特定した移動状態を示す情報を出力する。例えば、制御部101は、装置10の制御部30が稼働させている移動状態を利用するアプリケーション(例えば、上位プログラム)に、特定された移動状態を示す情報を出力してよい。制御部101が特定した移動状態を示す情報を出力すると、本動作フローは終了する。なお、装置10の制御部30が稼働させている移動状態を利用するアプリケーションは、例えば、日常生活の変化を振り返るライフログ機能や健康支援機能、及びユーザの現在の移動状態に適した広告などを配信するために、通知された移動状態を利用してよい。   In step S604, the control unit 101 outputs information indicating the identified movement state. For example, the control unit 101 may output information indicating the specified movement state to an application (for example, a host program) that uses the movement state operated by the control unit 30 of the apparatus 10. When the information indicating the movement state specified by the control unit 101 is output, the operation flow ends. In addition, the application using the movement state operated by the control unit 30 of the apparatus 10 includes, for example, a life log function that looks back on changes in daily life, a health support function, and an advertisement suitable for the current movement state of the user. In order to deliver, the notified movement state may be used.

図6の動作フローにおいて、S601〜S602の処理では、電子機器100の制御部101は、例えば、取得部102として機能する。また、S603〜S604の処理では、電子機器100の制御部101は、例えば、出力部103として機能する。   In the operation flow of FIG. 6, in the processing of S601 to S602, the control unit 101 of the electronic device 100 functions as the acquisition unit 102, for example. In the processing of S603 to S604, the control unit 101 of the electronic device 100 functions as the output unit 103, for example.

以上で述べた様に、第1の実施形態では磁気センサ20で検出された磁気から所定の周波数以下の成分を含む第1の周波数範囲の成分が抽出され第1の磁気ベクトルが取得される。また、磁気センサ20で検出された磁気から所定の周波数以下の成分を含まない第2の周波数範囲の成分が抽出され第2の磁気ベクトルが取得される。そして、第1の磁気ベクトルの大きさである第1の特徴量と、第2の磁気ベクトルの大きさである第2の特徴量との組が示すパターンに合致する代表値の組を有する移動状態を特定することで、装置10が置かれている移動状態が判別されている。上述のように、第1の特徴量にはユーザが保持した装置10を動かすことで生じる磁気の変動、及び付近の磁力を発する物体の影響が反映されやすい。一方、第2の特徴量には、例えば、高速に回転するモータや、磁力を帯びた複数の電線や鉄骨等の下を高速で通過することに起因して発生する外乱による磁気の変化が反映されやすい。そのため、これらの第1の特徴量と第2の特徴量との組を用いて装置10が置かれている移動状態を判別することで、高精度に移動状態を判別することができる。   As described above, in the first embodiment, the first magnetic vector is acquired by extracting the component in the first frequency range including the component below the predetermined frequency from the magnetism detected by the magnetic sensor 20. In addition, a component in the second frequency range that does not include a component equal to or lower than a predetermined frequency is extracted from the magnetism detected by the magnetic sensor 20, and a second magnetic vector is acquired. Then, the movement having a set of representative values matching the pattern indicated by the set of the first feature quantity that is the magnitude of the first magnetic vector and the second feature quantity that is the magnitude of the second magnetic vector. By specifying the state, the moving state in which the apparatus 10 is placed is determined. As described above, the first feature amount is likely to reflect the magnetic fluctuation caused by moving the device 10 held by the user and the influence of an object that generates a nearby magnetic force. On the other hand, the second feature value reflects, for example, a change in magnetism due to a disturbance generated due to a high-speed rotation under a high-speed rotating motor, a plurality of magnetic wires or steel frames, etc. Easy to be. Therefore, it is possible to determine the movement state with high accuracy by determining the movement state in which the apparatus 10 is placed using the set of the first feature amount and the second feature amount.

<第2の実施形態>
上述のように、例えば、装置10が静止している状態では、磁気センサ20で検出される北方位を示す磁気ベクトルの向きは一定の方向を示す。しかしながら、モータなどの周囲に存在する磁力を発生する物体の存在で、磁気センサ20で計測される北方位を示す磁気ベクトルの向きは変化する。
<Second Embodiment>
As described above, for example, when the apparatus 10 is stationary, the direction of the magnetic vector indicating the north direction detected by the magnetic sensor 20 indicates a certain direction. However, the presence of an object that generates a magnetic force, such as a motor, changes the direction of the magnetic vector indicating the north direction measured by the magnetic sensor 20.

例えば、電車ではレールと並行に電線が敷設されている。そのため、電車に乗っている状態では装置10は、高頻度で電線の下を通過することになり、この場合に、例えば重力加速度の方向に磁気ベクトルの向きの変化が表れることがある。一方、例えば自動車の場合には、周囲に別の自動車が走ることがしばしばあり、この様な別の自動車の高速に回転するモータが発する磁力の影響で、水平方向に磁気ベクトルの向きの変化が表れることがある。即ち、磁気ベクトルの向きは、移動状態に応じて重力加速度の方向と水平方向に異なる変化の傾向を示し得る。   For example, electric wires are laid in parallel with rails on trains. For this reason, the apparatus 10 frequently passes under the electric wire while riding on a train, and in this case, for example, the direction of the magnetic vector may change in the direction of gravitational acceleration. On the other hand, for example, in the case of a car, another car often runs around, and due to the influence of the magnetic force generated by the motor that rotates at a high speed, the direction of the magnetic vector changes in the horizontal direction. May appear. In other words, the direction of the magnetic vector can show a different tendency of change in the direction of gravitational acceleration and in the horizontal direction depending on the moving state.

そこで、第2の実施形態では磁気ベクトルの向きの変化を捕らえるために、第1の磁気ベクトルと、第2の磁気ベクトルを重力加速度の方向(重力方向)の成分と、水平方向(重力加速度の方向に垂直な方向)の成分とに分解して、特徴量を取得する。   Therefore, in the second embodiment, in order to catch the change in the direction of the magnetic vector, the first magnetic vector and the second magnetic vector are divided into components of the direction of gravitational acceleration (gravity direction) and the horizontal direction (of gravitational acceleration). The feature amount is obtained by decomposing the component into components in a direction perpendicular to the direction.

また、第2の実施形態では、加速度センサで検出された加速度ベクトルも移動状態の判定に用いる。なお、加速度ベクトルについても、移動状態に応じて、加速度ベクトルの表れやすい向きは異なる。例えば、歩行している状態では、装置10を保持するユーザの歩行の際の体の上下の動きに応じた加速度が、重力加速度の方向に現れる傾向がある。自転車などではこのような上下の動きは少ない。一方で、自転車の方が歩行と比較して移動速度が速い傾向があるため、水平方向の加速度は自転車の方が歩行よりも大きくなる傾向がある。   In the second embodiment, the acceleration vector detected by the acceleration sensor is also used for determining the movement state. Note that the direction in which the acceleration vector is likely to appear also varies depending on the movement state. For example, in the state of walking, the acceleration corresponding to the vertical movement of the body when the user holding the device 10 walks tends to appear in the direction of gravitational acceleration. There are few such up and down movements on bicycles. On the other hand, since the bicycle tends to move faster than walking, the horizontal acceleration tends to be greater for the bicycle than for walking.

そのため、第2の実施形態では、加速度ベクトルについても重力加速度の方向の成分と、水平方向の成分とに分解して、特徴量を取得する。   For this reason, in the second embodiment, the acceleration vector is also decomposed into a component in the direction of gravitational acceleration and a component in the horizontal direction to acquire the feature amount.

そして、第2の実施形態では制御部101は、第1の磁気ベクトルと、第2の磁気ベクトルと、加速度ベクトルとのそれぞれから重力加速度の方向の成分の特徴量と、水平方向の成分の特徴量とを抽出し、得られた6つの特徴値の組を用いて、移動状態を判別する。   In the second embodiment, the control unit 101 determines the feature amount of the component in the direction of gravitational acceleration and the feature of the component in the horizontal direction from each of the first magnetic vector, the second magnetic vector, and the acceleration vector. The quantity is extracted, and the moving state is discriminated using the obtained set of six feature values.

図8は、第2の実施形態に係る装置10のブロック構成を例示する図である。図8に示す装置10は、図1の第1の実施形態に係る装置10に加えて、更に加速度センサ40を含む。電子機器100は、例えば、加速度センサ40と接続されていてよい。加速度センサ40で検出される加速度ベクトルは、例えば、加速度センサ40から異なる3つの方向へととられた互いに直交するX軸、Y軸、及びZ軸の座標系で表されてよい。   FIG. 8 is a diagram illustrating a block configuration of the device 10 according to the second embodiment. The apparatus 10 shown in FIG. 8 further includes an acceleration sensor 40 in addition to the apparatus 10 according to the first embodiment of FIG. The electronic device 100 may be connected to the acceleration sensor 40, for example. The acceleration vector detected by the acceleration sensor 40 may be represented by, for example, a coordinate system of X axis, Y axis, and Z axis orthogonal to each other taken in three different directions from the acceleration sensor 40.

電子機器100は、例えば、制御部101及び記憶部110を含む。制御部101は、例えば、取得部102、及び出力部103を含む。記憶部110は、例えば、後述する移動状態情報900及びプログラムを記憶してよい。   The electronic device 100 includes a control unit 101 and a storage unit 110, for example. The control unit 101 includes, for example, an acquisition unit 102 and an output unit 103. The storage unit 110 may store movement state information 900 and a program, which will be described later, for example.

図9は、第2の実施形態に係る移動状態情報900を示す図である。移動状態情報900は、第1の磁気ベクトル、第2の磁気ベクトル、及び加速度ベクトルの重力加速度の方向の特徴量と水平方向の特徴量に対する代表値を移動状態ごとに含む。なお、これらの特徴量の代表値は、例えば、それぞれの移動状態において取得された複数の特徴量を代表する値であってよい。例えば、電車に乗っている状態での第1の磁気ベクトルの重力加速度の方向の特徴量の代表値は、電車に乗っている状態で取得された複数の第1の磁気ベクトルの重力加速度の方向の特徴量の平均値、中央値、最頻値などの統計量であってよい。また同様に、例えば、自動車に乗っている状態での第2の磁気ベクトルの水平方向の特徴量の代表値は、自動車に乗っている状態で取得された複数の第2の磁気ベクトルの水平方向の特徴量の平均値、中央値、最頻値などの統計量であってよい。その他の特徴量の移動状態ごとの代表値についても、同様に取得することができる。   FIG. 9 is a diagram showing movement state information 900 according to the second embodiment. The movement state information 900 includes, for each movement state, the first magnetic vector, the second magnetic vector, and the feature value in the direction of gravity acceleration of the acceleration vector and the representative value for the horizontal direction feature amount. Note that the representative values of these feature amounts may be, for example, values that represent a plurality of feature amounts acquired in the respective movement states. For example, the representative value of the direction of gravity acceleration of the first magnetic vector in the state of riding on the train is the direction of gravity acceleration of the plurality of first magnetic vectors acquired in the state of riding on the train. It may be a statistic such as an average value, median value, or mode value of feature quantities. Similarly, for example, the representative value of the horizontal feature amount of the second magnetic vector in the state of riding in the automobile is the horizontal direction of the plurality of second magnetic vectors acquired in the state of riding in the automobile. It may be a statistic such as an average value, median value, or mode value of feature quantities. The representative values for the movement states of other feature amounts can be obtained in the same manner.

また、第1の磁気ベクトル、第2の磁気ベクトル、及び加速度ベクトルのそれぞれの重力加速度の方向の特徴量は、例えば以下のように算出されてよい。まず、制御部101は、加速度センサ40で検出される検出値に基づいて重力加速度を表す重力加速度ベクトルを算出する。続いて、制御部101は、重力加速度ベクトルを正規化した重力加速度単位ベクトルを算出する。制御部101は、重力加速度単位ベクトルと、第1の磁気ベクトルとの内積を計算し、得られた値を第1の磁気ベクトルの重力加速度の方向の特徴量として用いてよい。同様に、制御部101は、重力加速度単位ベクトルと、第2の磁気ベクトル、及び加速度ベクトルのそれぞれとの内積を計算し、得られた値を第2の磁気ベクトル、及び加速度ベクトルの重力加速度の方向の特徴量としてそれぞれ用いてよい。   In addition, the feature amounts of the first magnetic vector, the second magnetic vector, and the acceleration vector in the direction of gravitational acceleration may be calculated as follows, for example. First, the control unit 101 calculates a gravitational acceleration vector representing the gravitational acceleration based on the detection value detected by the acceleration sensor 40. Subsequently, the control unit 101 calculates a gravitational acceleration unit vector obtained by normalizing the gravitational acceleration vector. The control unit 101 may calculate the inner product of the gravitational acceleration unit vector and the first magnetic vector, and may use the obtained value as a feature amount in the direction of the gravitational acceleration of the first magnetic vector. Similarly, the control unit 101 calculates the inner product of the gravitational acceleration unit vector and each of the second magnetic vector and the acceleration vector, and uses the obtained values for the gravitational acceleration of the second magnetic vector and the acceleration vector. Each may be used as a direction feature.

また、第1の磁気ベクトル、第2の磁気ベクトル、及び加速度ベクトルのそれぞれの水平方向の特徴量は、例えば、以下のように算出されてよい。例えば、制御部101は、重力加速度単位ベクトルと、第1の磁気ベクトルとの外積を計算し、得られた法線ベクトルの大きさを第1の磁気ベクトルの水平方向の特徴量として用いてよい。同様に、制御部101は、重力加速度単位ベクトルと、第2の磁気ベクトル、及び加速度ベクトルのそれぞれとの外積を計算し、得られた法線ベクトルの大きさを第2の磁気ベクトル、及び加速度ベクトルの水平方向の特徴量としてそれぞれ用いてよい。   Further, the horizontal feature amounts of the first magnetic vector, the second magnetic vector, and the acceleration vector may be calculated as follows, for example. For example, the control unit 101 may calculate the outer product of the gravitational acceleration unit vector and the first magnetic vector, and may use the magnitude of the obtained normal vector as the horizontal feature amount of the first magnetic vector. . Similarly, the control unit 101 calculates the outer product of the gravitational acceleration unit vector, the second magnetic vector, and the acceleration vector, and determines the magnitude of the obtained normal vector as the second magnetic vector and acceleration. Each may be used as a horizontal feature amount of the vector.

図10は、第2の実施形態に係る移動状態の通知処理を例示する図である。図10の動作フローは例えば、電子機器100の制御部101に移動状態の判別を指示する信号が入力されると開始してよい。   FIG. 10 is a diagram exemplifying movement state notification processing according to the second embodiment. The operation flow in FIG. 10 may be started, for example, when a signal instructing the determination of the moving state is input to the control unit 101 of the electronic device 100.

S1001において電子機器100の制御部101は、磁気センサ20から入力される3軸の磁気の値から所定の周波数以下の成分を含む第1の周波数範囲の成分を抽出し、第1の磁気ベクトルを特定する。また、制御部101は、磁気センサ20から入力される3軸の磁気の値から所定の周波数以下の成分を含まない第2の周波数範囲の成分を抽出し、第2の磁気ベクトルを特定する。なお、S1001の処理は、例えば、S601と同様に実行されてよい。S1002において制御部101は、加速度センサ40から入力される検出値から加速度ベクトルと重力加速度単位ベクトルとを取得する。   In step S <b> 1001, the control unit 101 of the electronic device 100 extracts a first frequency range component including a component having a frequency equal to or lower than a predetermined frequency from the triaxial magnetism values input from the magnetic sensor 20, and obtains the first magnetic vector. Identify. In addition, the control unit 101 extracts a component in the second frequency range that does not include a component equal to or lower than a predetermined frequency from the three-axis magnetic value input from the magnetic sensor 20, and specifies the second magnetic vector. Note that the process of S1001 may be executed in the same manner as in S601, for example. In step S <b> 1002, the control unit 101 acquires an acceleration vector and a gravitational acceleration unit vector from the detection value input from the acceleration sensor 40.

S1003において制御部101は、第1の磁気ベクトル、第2の磁気ベクトル、及び加速度ベクトルのそれぞれから重力加速度の方向の特徴量を取得する。例えば、制御部101は、第1の磁気ベクトル、第2の磁気ベクトル、及び加速度ベクトルのそれぞれと、重力加速度単位ベクトルとの内積を計算する。それによって、制御部101は、第1の磁気ベクトル、第2の磁気ベクトル、及び加速度ベクトルのそれぞれの重力加速度の方向の特徴量を取得してよい。   In step S1003, the control unit 101 acquires a feature amount in the direction of gravitational acceleration from each of the first magnetic vector, the second magnetic vector, and the acceleration vector. For example, the control unit 101 calculates the inner product of each of the first magnetic vector, the second magnetic vector, and the acceleration vector and the gravitational acceleration unit vector. Thereby, the control unit 101 may acquire the feature amounts of the first magnetic vector, the second magnetic vector, and the acceleration vector in the direction of gravity acceleration.

S1004において制御部101は、第1の磁気ベクトル、第2の磁気ベクトル、及び加速度ベクトルのそれぞれから水平方向の特徴量を取得する。例えば、制御部101は、第1の磁気ベクトル、第2の磁気ベクトル、及び加速度ベクトルのそれぞれと、重力加速度単位ベクトルとの外積を計算し、それぞれの法線ベクトルを取得する。そして、制御部101は、得られたそれぞれの法線ベクトルの大きさを第1の磁気ベクトル、第2の磁気ベクトル、及び加速度ベクトルの水平方向の特徴量として取得してよい。   In step S1004, the control unit 101 acquires a horizontal feature amount from each of the first magnetic vector, the second magnetic vector, and the acceleration vector. For example, the control unit 101 calculates the outer product of each of the first magnetic vector, the second magnetic vector, and the acceleration vector and the gravitational acceleration unit vector, and acquires each normal vector. And the control part 101 may acquire the magnitude | size of each obtained normal vector as a feature-value of the horizontal direction of a 1st magnetic vector, a 2nd magnetic vector, and an acceleration vector.

S1005において制御部101は、得られた第1の磁気ベクトル、第2の磁気ベクトル、及び加速度ベクトルのそれぞれの重力加速度の方向と水平方向の特徴量の組を、移動状態情報900に含まれる各移動状態における特徴量の代表値の組と比較する。そして、制御部101は、得られた特徴量の組が示すパターンに合致する代表値の組を有する移動状態を特定する。   In step S <b> 1005, the control unit 101 includes each of the obtained first magnetic vector, second magnetic vector, and acceleration vector, each set of gravitational acceleration direction and horizontal feature amount included in the movement state information 900. It is compared with a set of representative values of feature values in the moving state. Then, the control unit 101 specifies a movement state having a representative value set that matches the pattern indicated by the obtained feature value set.

なお、S1005における各特徴量の組が示すパターンに合致する代表値の組を有する移動状態の特定は、例えば、S603と同様に一致度を算出することで実行されてよい。まず、制御部101は、第1の磁気ベクトル、第2の磁気ベクトル、及び加速度ベクトルのそれぞれの重力加速度の方向と水平方向の特徴量と、各移動状態の代表値との一致度を上述の式1を用いて算出する。   Note that the identification of the movement state having the representative value pair that matches the pattern indicated by each feature value pair in S1005 may be executed by calculating the degree of coincidence in the same manner as in S603, for example. First, the control unit 101 determines the degree of coincidence between the gravitational acceleration direction and the horizontal feature amount of each of the first magnetic vector, the second magnetic vector, and the acceleration vector and the representative value of each moving state as described above. Calculation is performed using Equation 1.

続いて、制御部101は、例えば、移動状態ごとに算出された第1の磁気ベクトル、第2の磁気ベクトル、及び加速度ベクトルのそれぞれの重力加速度の方向と水平方向の特徴量の一致度を用いて移動状態の一致度を求める。移動状態の一致度は、例えば、移動状態ごとの第1の磁気ベクトル、第2の磁気ベクトル、及び加速度ベクトルのそれぞれの重力加速度の方向と水平方向の特徴量の一致度の平均値などの統計値であってよい。図7は、各移動状態に対する一致度を例示する図である。   Subsequently, the control unit 101 uses, for example, the degree of coincidence between the direction of gravity acceleration and the horizontal direction feature amount of each of the first magnetic vector, the second magnetic vector, and the acceleration vector calculated for each movement state. To obtain the degree of coincidence of the movement state. The degree of coincidence of the moving state is, for example, a statistic such as an average value of the degree of coincidence between the direction of gravity acceleration and the horizontal direction of each of the first magnetic vector, the second magnetic vector, and the acceleration vector for each moving state. May be a value. FIG. 7 is a diagram illustrating the degree of coincidence for each movement state.

そして、制御部101は、各移動状態の一致度を比較することで、第1の磁気ベクトル、第2の磁気ベクトル、及び加速度ベクトルのそれぞれの重力加速度の方向と水平方向の特徴量の組が示すパターンに合致する代表値の組を有する移動状態を特定する。例えば、制御部101は、移動状態の一致度が最も低い移動状態を、第1の磁気ベクトル、第2の磁気ベクトル、及び加速度ベクトルのそれぞれの重力加速度の方向と水平方向の特徴量の組が示すパターンに合致する代表値の組を有する移動状態として特定してよい。   Then, the control unit 101 compares the degree of coincidence between the movement states, so that the combination of the gravity acceleration direction and the horizontal feature amount of each of the first magnetic vector, the second magnetic vector, and the acceleration vector is obtained. A movement state having a set of representative values matching the pattern to be shown is specified. For example, the control unit 101 determines a moving state having the lowest matching degree of moving states as a set of gravity acceleration directions and horizontal feature amounts of the first magnetic vector, the second magnetic vector, and the acceleration vector. You may specify as a movement state which has the set of the representative value which corresponds to the pattern to show.

S1006において制御部101は、特定した移動状態を示す情報を出力し、本動作フローは終了する。なお、S1006において制御部101は、例えば、装置10の制御部30が稼働させている移動状態を利用するアプリケーションに、特定した移動状態を示す情報を出力してよい。   In S1006, the control unit 101 outputs information indicating the identified movement state, and the operation flow ends. In S1006, for example, the control unit 101 may output information indicating the specified movement state to an application that uses the movement state operated by the control unit 30 of the apparatus 10.

図10の動作フローにおいて、S1001〜S1004の処理では、電子機器100の制御部101は、例えば、取得部102として機能する。また、S1005〜S1006の処理では、電子機器100の制御部101は、例えば、出力部103として機能する。   In the operation flow of FIG. 10, in the processing of S1001 to S1004, the control unit 101 of the electronic device 100 functions as the acquisition unit 102, for example. In the processing of S1005 to S1006, the control unit 101 of the electronic device 100 functions as the output unit 103, for example.

以上で述べた様に、第2の実施形態では制御部101は、第1の磁気ベクトルと、第2の磁気ベクトルとから重力加速度の方向の成分の大きさを表す特徴量と、水平方向の成分の大きさを表す特徴量とを抽出する。また更に、制御部101は、加速度ベクトルからも重力加速度の方向の成分の大きさを表す特徴量と、水平方向の成分の大きさを表す特徴量とを抽出する。そして、制御部101は、得られた重力加速度の方向と水平方向のそれぞれの特徴量を用いて、装置10が置かれている移動状態を判別する。上述のように、第1の磁気ベクトル、第2の磁気ベクトル、及び加速度ベクトルの向きは、移動状態に応じて異なる変化の傾向を示し得る。そのため、各特徴量を重力加速度の方向の成分と、水平方向の成分とに分解することで、更に装置10が置かれている移動状態の判別精度を向上させることができる。   As described above, in the second embodiment, the control unit 101 includes the first magnetic vector, the feature amount indicating the magnitude of the component in the direction of gravitational acceleration from the second magnetic vector, and the horizontal direction. A feature amount representing the size of the component is extracted. Furthermore, the control unit 101 extracts a feature amount that represents the magnitude of the component in the direction of gravitational acceleration and a feature amount that represents the magnitude of the component in the horizontal direction from the acceleration vector. And the control part 101 discriminate | determines the movement state in which the apparatus 10 is set | placed using each feature-value of the direction of gravity acceleration and the horizontal direction which were obtained. As described above, the directions of the first magnetic vector, the second magnetic vector, and the acceleration vector may show different change trends depending on the movement state. Therefore, by decomposing each feature quantity into a component in the direction of gravitational acceleration and a component in the horizontal direction, it is possible to further improve the determination accuracy of the moving state in which the apparatus 10 is placed.

なお、第2の実施形態では、第1の磁気ベクトル、第2の磁気ベクトル、及び加速度ベクトルの重力加速度の方向の成分の特徴量と、水平方向の成分の特徴量とを用いて移動状態を判別する場合を例示している。しかしながら、実施形態はこれに限定されるものではない。例えば、これらの特徴量のうちの一部の特徴量は、移動状態の判別に用いられなくてもよく、また、取得されなくてもよい。即ち、例えば、第1の磁気ベクトル、第2の磁気ベクトルの重力加速度の方向の成分の特徴量と、水平方向の成分の特徴量とを用いて第2の実施形態に係る移動状態の判別が実行されてもよい。しかしながら、例えば、これらの特徴量のうちのより多くの特徴量を用いて第2の実施形態に係る移動状態の判別を実行することで、装置10が置かれている移動状態の判別精度を向上させることができる。   In the second embodiment, the movement state is determined using the first magnetic vector, the second magnetic vector, and the feature quantity of the acceleration vector in the direction of gravitational acceleration and the feature quantity of the horizontal component. The case where it discriminate | determines is illustrated. However, the embodiment is not limited to this. For example, some of these feature values may not be used for determining the movement state, and may not be acquired. That is, for example, the moving state according to the second embodiment is determined using the feature amount of the first magnetic vector and the second magnetic vector in the direction of gravitational acceleration and the feature amount of the horizontal component. May be executed. However, for example, by determining the movement state according to the second embodiment using a larger amount of these feature amounts, the determination accuracy of the movement state in which the apparatus 10 is placed is improved. Can be made.

<第2の実施形態の変形例>
第2の実施形態の変形例では、更に、前回出力した移動状態を用いて、移動状態の判別を所定の移動状態に限定する場合を例示する。例えば、装置10を保持するユーザが、乗り物に乗って移動している移動状態にある場合、次の移動状態への遷移は、乗り物を降りた際に起こることが推定される。この場合、次の移動状態は、例えば、歩行している状態、及び静止している状態であることが推定できる。一方で、装置10を保持するユーザが、乗り物に乗って移動している移動状態にある場合、例えば、別の乗り物に乗って移動している移動状態に直接遷移することはあまり起こらないと考えられる。即ち、例えば、自動車に乗っている状態から、電車や自転車に乗っている状態へと直接遷移することは起こらないと推定できる。
<Modification of Second Embodiment>
The modification of the second embodiment further illustrates a case where the movement state is limited to a predetermined movement state using the movement state output last time. For example, when the user holding the device 10 is in a moving state where he / she is moving on a vehicle, it is estimated that the transition to the next moving state occurs when the user gets off the vehicle. In this case, it can be estimated that the next moving state is, for example, a walking state and a stationary state. On the other hand, when the user holding the device 10 is in a moving state where he / she is moving on a vehicle, for example, a direct transition to a moving state where he / she is moving on another vehicle is unlikely to occur. It is done. That is, for example, it can be estimated that a direct transition from a state of riding a car to a state of riding a train or a bicycle does not occur.

そのため、第2の実施形態の変形例では、前回の移動状態が乗り物による移動状態である場合、装置10が置かれている移動状態の遷移先を、乗り物に乗っている移動状態以外の例えば、静止している移動状態、又は歩行している移動状態に限定する。   Therefore, in the modified example of the second embodiment, when the previous movement state is the movement state by the vehicle, the transition destination of the movement state where the device 10 is placed is, for example, other than the movement state on the vehicle, for example, Limited to a stationary moving state or a walking moving state.

なお、第2の実施形態の変形例において装置10は、図8のブロック構成を有していてよい。また、記憶部110は、図9の移動状態情報900を記憶していてよい。そして、第2の実施形態の変形例では制御部101は、図10の移動状態の通知処理を実行してよい。しかしながら、第2の実施形態の変形例では、制御部101は、S1005の処理の代わりに、例えば、図11の動作フローを実行する。   In addition, in the modification of 2nd Embodiment, the apparatus 10 may have the block configuration of FIG. The storage unit 110 may store the movement state information 900 in FIG. And in the modification of 2nd Embodiment, the control part 101 may perform the notification process of the movement state of FIG. However, in the modification of the second embodiment, the control unit 101 executes, for example, the operation flow of FIG. 11 instead of the process of S1005.

図11は、第2の実施形態の変形例において、第2の実施形態のS1005の処理の代わりに実行される移動状態の判別処理を例示する図である。図11の動作フローは、例えば、図10のS1005に進むと開始してよい。   FIG. 11 is a diagram illustrating a moving state determination process that is executed instead of the process of S1005 of the second embodiment in the modification of the second embodiment. The operation flow in FIG. 11 may be started when the process proceeds to S1005 in FIG.

S1101において制御部101は、各移動状態に対する一致度を算出する。各移動状態に対する一致度は、例えば、S1005の説明で例示したように算出されてよい。   In S1101, the control unit 101 calculates the degree of coincidence for each movement state. The degree of coincidence with respect to each moving state may be calculated as exemplified in the description of S1005.

S1102において制御部101は、前回出力した移動状態を取得する。前回出力した移動状態は、例えば、後述する1105の処理を前回実行した際に、記憶部110に記憶されていてよい。そして、制御部101は、S1102の処理では前回出力した移動状態を記憶部110から読み出してよい。   In step S1102, the control unit 101 acquires the movement state output last time. The movement state output last time may be stored in the storage unit 110 when, for example, the process 1105 described later is executed last time. And the control part 101 may read the movement state output last time from the memory | storage part 110 in the process of S1102.

S1103において制御部101は、S1101で算出した各移動状態の一致度のうちで、一致度の最も低い移動状態が、前回出力した移動状態と同じであるか否かを判定する。一致度の最も低い移動状態が前回出力した移動状態と同じである場合(S1103がYes)、フローはS1104へと進む。S1104において制御部101は、移動状態を前回出力した移動状態と同じ移動状態に判別する。S1105において制御部101は、判別された移動状態を記憶部110に記録する。   In S1103, the control unit 101 determines whether or not the movement state with the lowest degree of coincidence among the movement degrees calculated in S1101 is the same as the movement state output last time. When the movement state with the lowest degree of coincidence is the same as the movement state output last time (Yes in S1103), the flow proceeds to S1104. In step S1104, the control unit 101 determines that the movement state is the same movement state as the movement state output last time. In step S1105, the control unit 101 records the determined movement state in the storage unit 110.

一方、S1103において、一致度の最も低い移動状態が前回出力した移動状態と異なる場合(S1103がNo)、フローはS1106へと進む。S1106において制御部101は、前回出力した移動状態が、歩行している状態、又は静止している状態であるか否かを判定する。前回出力した移動状態が歩行している状態又は静止している状態である場合(S1106がYes)、フローはS1107へと進む。S1107において制御部101は、自動車の移動状態の一致度が最も高いか否かを判定する。S1107において自動車の移動状態の一致度が最も高い場合(S1107がYes)、フローはS1108へと進み、制御部101は、移動状態を自動車に乗っている状態と判別し、フローはS1105へと進む。一方、S1107において自動車の移動状態の一致度が最も高くはない場合(S1107がNo)、フローはS1109へと進む。   On the other hand, in S1103, when the movement state with the lowest matching degree is different from the movement state output last time (S1103 is No), the flow proceeds to S1106. In step S <b> 1106, the control unit 101 determines whether the movement state output last time is a walking state or a stationary state. When the movement state output last time is a walking state or a stationary state (Yes in S1106), the flow proceeds to S1107. In step S1107, the control unit 101 determines whether or not the degree of coincidence of the moving state of the automobile is the highest. If the degree of coincidence of the moving state of the car is the highest in S1107 (Yes in S1107), the flow proceeds to S1108, the control unit 101 determines that the moving state is in the car, and the flow proceeds to S1105. . On the other hand, if the degree of coincidence of the moving state of the vehicle is not the highest in S1107 (S1107 is No), the flow proceeds to S1109.

S1109において制御部101は、電車の移動状態の一致度が最も高いか否かを判定する。S1109において電車の移動状態の一致度が最も高い場合(S1109がYes)、フローはS1110へと進み、制御部101は、移動状態を電車に乗っている状態と判別し、フローはS1105へと進む。一方、S1109において電車の移動状態の一致度が最も高くはない場合(S1109がNo)、フローはS1111へと進む。   In step S1109, the control unit 101 determines whether or not the degree of coincidence of the moving state of the train is the highest. When the coincidence degree of the moving state of the train is the highest in S1109 (Yes in S1109), the flow proceeds to S1110, the control unit 101 determines that the moving state is on the train, and the flow proceeds to S1105. . On the other hand, if the degree of coincidence of the moving state of the train is not the highest in S1109 (No in S1109), the flow proceeds to S1111.

S1111において制御部101は、自転車の移動状態の一致度が最も高いか否かを判定する。S1111において自転車の移動状態の一致度が最も高い場合(S1111がYes)、フローはS1112へと進み、制御部101は、移動状態を自転車に乗っている状態と判別し、フローはS1105へと進む。一方、S1111において自転車の移動状態の一致度が最も高くはない場合(S1111がNo)、フローはS1113へと進む。   In S1111, the control unit 101 determines whether or not the degree of coincidence of the movement state of the bicycle is the highest. When the degree of coincidence of the movement state of the bicycle is the highest in S1111 (S1111 is Yes), the flow proceeds to S1112, the control unit 101 determines that the movement state is riding on the bicycle, and the flow proceeds to S1105. . On the other hand, if the degree of coincidence of the movement state of the bicycle is not the highest in S1111 (S1111 is No), the flow proceeds to S1113.

S1113において制御部101は、歩行の移動状態の一致度が、静止の移動状態の一致度よりも高いか否かを判定する。S1113において歩行の移動状態の一致度が、静止の移動状態の一致度よりも高い場合(S1113がYes)、フローはS1114へと進み、制御部101は、移動状態を歩行している状態と判別し、フローはS1105へと進む。一方、S1113において歩行の移動状態の一致度が、静止の移動状態の一致度よりも高くはない場合(S1113がNo)、フローはS1115へと進む。S1115において制御部101は、移動状態を静止している状態と判別し、フローはS1105へと進む。   In step S <b> 1113, the control unit 101 determines whether the matching degree of the walking movement state is higher than the matching degree of the stationary movement state. When the coincidence degree of the walking movement state is higher than the coincidence degree of the stationary movement state in S1113 (Yes in S1113), the flow proceeds to S1114, and the control unit 101 determines that the movement state is the walking state. Then, the flow proceeds to S1105. On the other hand, if the coincidence degree of the walking movement state is not higher than the coincidence degree of the stationary movement state in S1113 (No in S1113), the flow proceeds to S1115. In S1115, the control unit 101 determines that the moving state is a stationary state, and the flow proceeds to S1105.

また、S1106において前回出力した移動状態が歩行している状態又は静止している状態でない場合(S1106がNo)、移動状態は乗り物に乗っている状態であると考えられる。この場合、別の乗り物に乗って移動している移動状態に直接遷移することは起こらないと考えられる。そのため、制御部101は、フローをS1113へと進めて、次の移動状態を、例えば、歩行している状態、及び静止している状態などの乗り物に乗っていない状態に限定する。   In addition, when the movement state output last time in S1106 is not a walking state or a stationary state (No in S1106), the movement state is considered to be a state of riding a vehicle. In this case, it is considered that no direct transition to a moving state where the vehicle is moving on another vehicle occurs. Therefore, the control unit 101 advances the flow to S1113 and limits the next movement state to a state where the vehicle is not on a vehicle such as a walking state and a stationary state.

そして、上述のように、S1105において制御部101は、判別された移動状態を記憶部110に記録し、本動作フローは終了し、フローはS1006へと進む。そして、第2の実施形態の変形例では、制御部101は、S1006においてS1104、S1108、S1110、S1112、S1114、S1115のいずれかで判別された移動状態を示す情報を出力する。   Then, as described above, in S1105, the control unit 101 records the determined movement state in the storage unit 110, the operation flow ends, and the flow proceeds to S1006. And in the modification of 2nd Embodiment, the control part 101 outputs the information which shows the movement state discriminate | determined by one of S1104, S1108, S1110, S1112, S1114, and S1115 in S1006.

図11の動作フローにおいて、電子機器100の制御部101は、例えば、出力部103として機能する。   In the operation flow of FIG. 11, the control unit 101 of the electronic device 100 functions as, for example, the output unit 103.

以上で述べた様に、第2の実施形態の変形例では、前回の移動状態が乗り物に乗っている移動状態である場合、装置10が置かれている移動状態の遷移先を乗り物に乗っている移動状態以外の例えば、静止している移動状態、又は歩行している移動状態に限定する。これにより、装置10が置かれている移動状態の判別精度を更に向上させることができる。   As described above, in the modified example of the second embodiment, when the previous movement state is a movement state on the vehicle, the vehicle is placed on the transition destination of the movement state on which the device 10 is placed. For example, the moving state is limited to a stationary moving state or a walking moving state. Thereby, the discrimination accuracy of the moving state where the apparatus 10 is placed can be further improved.

従って、上述の実施形態によれば、装置10が置かれている移動状態の判別精度を向上させることができる。例えば、加速度センサ40で検出された加速度をそのまま用いて移動状態を判定した場合、ユーザが装置10を手で振ったりすることで実際の移動状態とは異なる移動状態に判定されてしまうことがある。或いは、例えば、磁気センサ20で検出された磁気をそのまま用いて移動状態を判別した場合、扇風機や洗濯機などが発する磁気等の外乱の影響で移動状態を誤判別してしまうことがある。しかしながら、上述の実施形態によれば、装置10が置かれている移動状態の判別精度が向上するため、このような場合にも移動状態の誤判別を抑制することができる。   Therefore, according to the above-described embodiment, it is possible to improve the determination accuracy of the moving state where the apparatus 10 is placed. For example, when the moving state is determined using the acceleration detected by the acceleration sensor 40 as it is, the moving state may be determined to be different from the actual moving state when the user shakes the device 10 by hand. . Alternatively, for example, when the movement state is determined using the magnetism detected by the magnetic sensor 20 as it is, the movement state may be erroneously determined due to the influence of a disturbance such as magnetism generated by a fan or a washing machine. However, according to the above-described embodiment, the determination accuracy of the moving state in which the apparatus 10 is placed is improved, and thus it is possible to suppress erroneous determination of the moving state even in such a case.

以上において、実施形態を例示したが、実施形態はこれらに限定されるものではない。例えば、上述の動作フローは例示であり、実施形態はこれに限定されるものではない。可能な場合には、動作フローは、処理の順番を変更して実行されてもよく、別に更なる処理を含んでもよく、又は、一部の処理が省略されてもよい。例えば、別の実施形態においては、S1003の処理とS1004の処理とは順序を入れ替えて実行されてもよい。   In the above, although embodiment was illustrated, embodiment is not limited to these. For example, the above-described operation flow is an example, and the embodiment is not limited to this. If possible, the operation flow may be executed by changing the order of processing, may include additional processing, or some processing may be omitted. For example, in another embodiment, the process of S1003 and the process of S1004 may be executed in a reversed order.

また、移動状態は、例えば、飛行機に乗っている状態、船に乗っている状態、オートバイクに乗っている状態など、更なる別の移動状態を含んでもよい。また、上述の特徴量の一致度の算出、移動状態の一致度の算出、及び一致度を用いた合致する代表値の組の移動状態の特定は例示であり、その他の手法を用いて一致度の算出や、合致する代表値の組の移動状態の特定が実行されてもよい。   Further, the moving state may include other different moving states such as a state of riding on an airplane, a state of riding on a ship, and a state of riding on a motorcycle. In addition, the above-described calculation of feature quantity coincidence, calculation of movement state coincidence, and identification of the movement state of a set of matching representative values using the coincidence are examples, and the degree of coincidence can be determined using other methods. And the identification of the movement state of a set of matching representative values may be executed.

図12は、実施形態に係る電子機器100と、電子機器100を備える装置10とを実現するための装置1200のハードウェア構成を例示する図である。図12の装置1200を実現するためのハードウェア構成は、例えば、プロセッサ1201、メモリ1202、通信装置1203、出力装置1204、磁気センサ20、加速度センサ40、電子機器1220を備える。なお、プロセッサ1201、メモリ1202、通信装置1203、出力装置1204、電子機器1220は、例えば、バス1210を介して互いに接続されている。   FIG. 12 is a diagram illustrating a hardware configuration of a device 1200 for realizing the electronic device 100 according to the embodiment and the device 10 including the electronic device 100. The hardware configuration for realizing the device 1200 of FIG. 12 includes, for example, a processor 1201, a memory 1202, a communication device 1203, an output device 1204, a magnetic sensor 20, an acceleration sensor 40, and an electronic device 1220. Note that the processor 1201, the memory 1202, the communication device 1203, the output device 1204, and the electronic device 1220 are connected to each other via a bus 1210, for example.

プロセッサ1201は、メモリ1202を利用してプログラムを実行することにより、上述の制御部30として動作してよい。プロセッサ1201は、例えば、ユーザの日常生活を振り返るためのライフログを記録するアプリケーション、健康支援アプリケーション、ユーザの現在の状態に適した情報や広告を配信するアプリケーションなどを稼働させてよい。そして、プロセッサ1201は、後述するプロセッサ1221から入力される装置1200の移動状態を、稼働中のアプリケーションにおいて利用してよい。プロセッサ1201は、装置1200の各部を制御してよい。   The processor 1201 may operate as the above-described control unit 30 by executing a program using the memory 1202. The processor 1201 may operate, for example, an application that records a life log for looking back on the daily life of the user, a health support application, an application that distributes information and advertisements suitable for the current state of the user, and the like. Then, the processor 1201 may use the movement state of the device 1200 input from the processor 1221 described later in the running application. The processor 1201 may control each unit of the device 1200.

メモリ1202は、例えば半導体メモリであり、RAM領域及びROM領域を含んでいてよい。なお、RAMは、Random Access Memoryの略称である。また、ROMは、Read Only Memoryの略称である。通信装置1203は、プロセッサ1201の指示に従ってネットワークを介してデータを送受信する。出力装置1204は、例えば、ディスプレーなどの表示装置、及びスピーカなどの音声装置を含んでよい。   The memory 1202 is a semiconductor memory, for example, and may include a RAM area and a ROM area. Note that RAM is an abbreviation for Random Access Memory. ROM is an abbreviation for Read Only Memory. The communication device 1203 transmits / receives data via the network in accordance with instructions from the processor 1201. The output device 1204 may include, for example, a display device such as a display and an audio device such as a speaker.

また、装置1200は、例えば、磁気センサ20を含む。磁気センサ20は、例えば、3軸の地磁気センサである。また、装置1200は、例えば、加速度センサ40を含んでいてよい。   Moreover, the apparatus 1200 includes the magnetic sensor 20, for example. The magnetic sensor 20 is, for example, a triaxial geomagnetic sensor. Further, the device 1200 may include an acceleration sensor 40, for example.

また、電子機器1220は、例えば、マイクロコントローラ及びマイクロコンピュータであってよい。また、別の実施形態では、電子機器1220は、例えばデジタル信号プロセッサ(DSP)であってもよい。電子機器1220は、例えば、プロセッサ1221及びメモリ1222を含む。   The electronic device 1220 may be a microcontroller and a microcomputer, for example. In another embodiment, the electronic device 1220 may be a digital signal processor (DSP), for example. The electronic device 1220 includes, for example, a processor 1221 and a memory 1222.

プロセッサ1221は、メモリ1222を利用して例えば上述の動作フローの手順を記述した状態通知プログラムを実行することにより、上述した制御部101として動作してよく、電子機器100の各機能部の一部または全部の機能を提供する。プロセッサ1221は、例えば、磁気センサ20及び加速度センサ40と接続されており、これらのセンサから検出値が入力されてよい。また、プロセッサ1221は、センサから入力された検出値を解析した結果をプロセッサ1201へと出力してよい。例えば、プロセッサ1221は、上述のS604及びS1006においてプロセッサ1201に、判別された移動状態を示す情報を出力してよい。   The processor 1221 may operate as the control unit 101 described above by executing, for example, a state notification program describing the procedure of the above-described operation flow using the memory 1222, and a part of each functional unit of the electronic device 100. Or provide full functionality. The processor 1221 is connected to, for example, the magnetic sensor 20 and the acceleration sensor 40, and detection values may be input from these sensors. Further, the processor 1221 may output a result of analyzing the detection value input from the sensor to the processor 1201. For example, the processor 1221 may output information indicating the determined movement state to the processor 1201 in the above-described S604 and S1006.

メモリ1222は、例えば半導体メモリであり、RAM領域及びROM領域を含んでいてよい。上述の記憶部110は、例えば、メモリ1222であってよい。そして、メモリ1222は、例えば、上述の移動状態情報500、及び移動状態情報900などの情報を記憶していてよい。また、メモリ1222には、上述のS1105において、前回出力した移動状態が記憶されてよい。   The memory 1222 is a semiconductor memory, for example, and may include a RAM area and a ROM area. The storage unit 110 described above may be a memory 1222, for example. The memory 1222 may store information such as the above-described movement state information 500 and movement state information 900, for example. The memory 1222 may store the movement state output last time in S1105 described above.

なお、図12を参照して述べた装置1200のハードウェア構成は、例示であり、実施形態はこれに限定されるものではない。例えば、上述の機能部の一部または全部の機能がFPGA及びSoCなどによるハードウェアとして実装されてもよい。なお、FPGAは、Field Programmable Gate Arrayの略称である。SoCは、System-on-a-chipの略称である。また、例えば、磁気センサ20で検出された磁気からの第1の磁気ベクトル及び第2の磁気ベクトルの取得は、プロセッサ1221がローパスフィルタ、ハイパスフィルタ及びバンドパスフィルタなどとして動作することで実行されてよい。また、別の実施形態では、磁気センサ20で検出された磁気からの第1の磁気ベクトル及び第2の磁気ベクトルの取得は、ハードウェアで実装されたローパスフィルタ、ハイパスフィルタ、及びバンドパスフィルタなどを用いて実行されてもよい。   The hardware configuration of the device 1200 described with reference to FIG. 12 is an exemplification, and the embodiment is not limited to this. For example, some or all of the functions of the above-described functional units may be implemented as hardware such as FPGA and SoC. Note that FPGA is an abbreviation for Field Programmable Gate Array. SoC is an abbreviation for System-on-a-chip. Further, for example, the acquisition of the first magnetic vector and the second magnetic vector from the magnetism detected by the magnetic sensor 20 is executed by the processor 1221 operating as a low-pass filter, a high-pass filter, a band-pass filter, and the like. Good. In another embodiment, the acquisition of the first magnetic vector and the second magnetic vector from the magnetism detected by the magnetic sensor 20 is performed by a hardware-installed low-pass filter, high-pass filter, band-pass filter, or the like. May be performed using

以上において、いくつかの実施形態について説明した。しかしながら、実施形態は上記の実施形態に限定されるものではなく、上述の実施形態の各種変形形態及び代替形態を包含するものとして理解されるべきである。例えば、各種実施形態は、その趣旨及び範囲を逸脱しない範囲で構成要素を変形して具体化できることが理解されよう。また、前述した実施形態に開示されている複数の構成要素を適宜組み合わせることにより、種々の実施形態を成すことができることが理解されよう。更には、実施形態に示される全構成要素からいくつかの構成要素を削除して又は置換して、或いは実施形態に示される構成要素にいくつかの構成要素を追加して種々の実施形態が実施され得ることが当業者には理解されよう。   In the above, several embodiments have been described. However, the embodiments are not limited to the above-described embodiments, and should be understood as including various modifications and alternatives of the above-described embodiments. For example, it will be understood that various embodiments can be embodied by modifying the components without departing from the spirit and scope thereof. It will be understood that various embodiments can be made by appropriately combining a plurality of components disclosed in the above-described embodiments. Further, various embodiments may be implemented by deleting or replacing some components from all the components shown in the embodiments, or adding some components to the components shown in the embodiments. Those skilled in the art will appreciate that this can be done.

10 装置
20 磁気センサ
30 制御部
40 加速度センサ
100 電子機器
101 制御部
102 取得部
103 出力部
110 記憶部
1200 装置
1201 プロセッサ
1202 メモリ
1203 通信装置
1204 出力装置
1210 バス
1220 電子機器
1221 プロセッサ
1222 メモリ
10 Device 20 Magnetic Sensor 30 Control Unit 40 Acceleration Sensor 100 Electronic Device 101 Control Unit 102 Acquisition Unit 103 Output Unit 110 Storage Unit 1200 Device 1201 Processor 1202 Memory 1203 Communication Device 1204 Output Device 1210 Bus 1220 Electronic Device 1221 Processor 1222 Memory

Claims (7)

磁気センサで検出された磁気のうち、所定の周波数以下の成分を含む第1の周波数範囲の成分を抽出して得た第1の磁気ベクトルから第1の特徴量を取得し、及び前記磁気のうち、前記所定の周波数以下の成分を含まない第2の周波数範囲の成分を抽出して得た第2の磁気ベクトルから第2の特徴量を取得する取得部と、
複数の移動状態のそれぞれにおける、前記第1の特徴量の傾向を表す第1の代表値と、前記第2の特徴量の傾向を表す第2の代表値とを含む代表値の組を記憶している記憶部と、
前記第1の特徴量と前記第2の特徴量とを含む特徴量の組が示すパターンに合致する前記代表値の組の移動状態を示す情報を出力する出力部と、
を含む、電子機器。
Obtaining a first feature amount from a first magnetic vector obtained by extracting a component in a first frequency range including a component having a frequency equal to or lower than a predetermined frequency out of magnetism detected by a magnetic sensor; and An acquisition unit that acquires a second feature amount from a second magnetic vector obtained by extracting a component in a second frequency range that does not include a component equal to or lower than the predetermined frequency;
Storing a set of representative values including a first representative value representing a tendency of the first feature value and a second representative value representing a tendency of the second feature value in each of a plurality of movement states; A storage unit,
An output unit that outputs information indicating a movement state of the set of representative values that matches a pattern indicated by a set of feature values including the first feature value and the second feature value;
Including electronic equipment.
前記第1の特徴量は前記第1の磁気ベクトルの大きさであり、前記第2の特徴量は前記第2の磁気ベクトルの大きさである、ことを特徴とする請求項1に記載の電子機器。   2. The electron according to claim 1, wherein the first feature amount is a magnitude of the first magnetic vector, and the second feature amount is a magnitude of the second magnetic vector. machine. 前記取得部は、更に、加速度センサで検出された加速度ベクトルから重力加速度の方向を特定し、
前記第1の特徴量は前記第1の磁気ベクトルの重力加速度の方向の成分の大きさであり、
前記第2の特徴量は前記第2の磁気ベクトルの重力加速度の方向の成分の大きさである、ことを特徴とする請求項1に記載の電子機器。
The acquisition unit further specifies the direction of gravity acceleration from the acceleration vector detected by the acceleration sensor,
The first feature amount is a magnitude of a component in a direction of gravitational acceleration of the first magnetic vector,
The electronic device according to claim 1, wherein the second feature amount is a magnitude of a component of the second magnetic vector in a direction of gravitational acceleration.
前記取得部は、更に、前記第1の磁気ベクトルから重力加速度の方向に垂直な成分の大きさを第3の特徴量として取得し、前記第2の磁気ベクトルから重力加速度の方向に垂直な成分の大きさを第4の特徴量として取得し、
前記記憶部は、前記複数の移動状態のそれぞれにおける、前記第1の代表値と、前記第2の代表値と、前記第3の特徴量の傾向を表す第3の代表値と、前記第4の特徴量の傾向を表す第4の代表値とを含む前記代表値の組を記憶しており、
前記出力部は、前記第1の特徴量と、前記第2の特徴量と、前記第3の特徴量と、前記第4の特徴量とを含む前記特徴量の組が示すパターンに合致する前記代表値の組の移動状態を示す情報を出力する、
ことを特徴とする請求項3に記載の電子機器。
The acquisition unit further acquires a magnitude of a component perpendicular to the direction of gravity acceleration from the first magnetic vector as a third feature amount, and a component perpendicular to the direction of gravity acceleration from the second magnetic vector. Is obtained as the fourth feature amount,
The storage unit includes a first representative value, a second representative value, a third representative value representing a tendency of the third feature amount, and a fourth representative value in each of the plurality of movement states. A set of representative values including a fourth representative value representing a tendency of the feature amount of
The output unit matches the pattern indicated by the set of feature quantities including the first feature quantity, the second feature quantity, the third feature quantity, and the fourth feature quantity. Output information indicating the movement status of the set of representative values.
The electronic device according to claim 3.
前記取得部は、更に、前記加速度ベクトルの重力加速度の方向の成分の大きさを第5の特徴量として取得し、前記加速度ベクトルの重力加速度の方向に垂直な成分の大きさを第6の特徴量として取得し、
前記記憶部は、前記複数の移動状態のそれぞれにおける、前記第1の代表値と、前記第2の代表値と、前記第3の代表値と、前記第4の代表値と、前記第5の特徴量の傾向を表す第5の代表値と、前記第6の特徴量の傾向を表す第6の代表値とを含む前記代表値の組を記憶しており、
前記出力部は、前記第1の特徴量と、前記第2の特徴量と、前記第3の特徴量と、前記第4の特徴量と、前記第5の特徴量と、前記第6の特徴量とを含む前記特徴量の組が示すパターンに合致する前記代表値の組の移動状態を示す情報を出力する、
ことを特徴とする請求項4に記載の電子機器。
The acquisition unit further acquires the magnitude of a component of the acceleration vector in the direction of gravitational acceleration as a fifth feature amount, and sets the magnitude of a component perpendicular to the direction of gravitational acceleration of the acceleration vector as a sixth feature. Get as quantity,
The storage unit includes the first representative value, the second representative value, the third representative value, the fourth representative value, and the fifth representative value in each of the plurality of movement states. Storing a set of representative values including a fifth representative value representing a tendency of a feature quantity and a sixth representative value representing a tendency of the sixth feature quantity;
The output unit includes the first feature value, the second feature value, the third feature value, the fourth feature value, the fifth feature value, and the sixth feature. Output information indicating the movement state of the set of representative values that matches the pattern indicated by the set of feature quantities including the quantity;
The electronic device according to claim 4.
前記複数の移動状態は、静止している移動状態、歩行している移動状態、第1の乗り物に乗っている移動状態、及び第2の乗り物に乗っている移動状態を含み、
前記記憶部は、更に、前記出力部が前回出力した移動状態を示す情報を記憶し、
前記出力部は、前記前回出力した移動状態を示す情報が、前記第1の乗り物に乗っている移動状態を示す情報である場合、出力する移動状態を示す情報を前記静止している移動状態を示す情報、又は前記歩行している移動状態を示す情報に限定する、ことを特徴とする請求項1から5のいずれか1項に記載の電子機器。
The plurality of movement states include a stationary movement state, a walking movement state, a movement state riding on a first vehicle, and a movement state riding on a second vehicle,
The storage unit further stores information indicating a movement state output by the output unit last time,
When the information indicating the movement state output last time is information indicating the movement state riding on the first vehicle, the output unit outputs the information indicating the movement state to be output as the stationary movement state. The electronic apparatus according to claim 1, wherein the electronic apparatus is limited to information indicating or information indicating the moving state of walking.
磁気センサで検出された磁気のうち、所定の周波数以下の成分を含む第1の周波数範囲の成分を抽出して得た第1の磁気ベクトルから第1の特徴量を取得し、及び前記磁気のうち、前記所定の周波数以下の成分を含まない第2の周波数範囲の成分を抽出して得た第2の磁気ベクトルから第2の特徴量を取得し、
複数の移動状態のそれぞれにおける、前記第1の特徴量の傾向を表す第1の代表値と、前記第2の特徴量の傾向を表す第2の代表値とを含む代表値の組のうちで、前記第1の特徴量と前記第2の特徴量とを含む特徴量の組が示すパターンに合致する前記代表値の組の移動状態を示す情報を出力する、
処理を電子機器に実行させる状態通知プログラム。
Obtaining a first feature amount from a first magnetic vector obtained by extracting a component in a first frequency range including a component having a frequency equal to or lower than a predetermined frequency out of magnetism detected by a magnetic sensor; and Among them, a second feature amount is obtained from a second magnetic vector obtained by extracting a component in a second frequency range that does not include a component below the predetermined frequency,
Of a set of representative values including a first representative value that represents the tendency of the first feature value and a second representative value that represents the tendency of the second feature value in each of a plurality of movement states. Outputting information indicating the movement state of the set of representative values that matches the pattern indicated by the set of feature values including the first feature value and the second feature value;
A status notification program that causes an electronic device to execute processing.
JP2015152103A 2015-07-31 2015-07-31 Electronic device and status notification program Expired - Fee Related JP6459834B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015152103A JP6459834B2 (en) 2015-07-31 2015-07-31 Electronic device and status notification program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015152103A JP6459834B2 (en) 2015-07-31 2015-07-31 Electronic device and status notification program

Publications (2)

Publication Number Publication Date
JP2017033260A JP2017033260A (en) 2017-02-09
JP6459834B2 true JP6459834B2 (en) 2019-01-30

Family

ID=57988861

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015152103A Expired - Fee Related JP6459834B2 (en) 2015-07-31 2015-07-31 Electronic device and status notification program

Country Status (1)

Country Link
JP (1) JP6459834B2 (en)

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3651598B2 (en) * 2002-01-07 2005-05-25 日本電気株式会社 Mobile terminal device and position information system
JP2003244314A (en) * 2002-02-19 2003-08-29 Ricoh Co Ltd Portable mobile telephone system
JP2006157127A (en) * 2004-11-25 2006-06-15 Vodafone Kk Method of displaying state, and mobile terminal
JP4211996B2 (en) * 2006-04-17 2009-01-21 防衛省技術研究本部長 Ship traffic monitoring device
JP5356923B2 (en) * 2009-06-11 2013-12-04 Kddi株式会社 Method and system for estimating movement state of portable terminal device
JP5459179B2 (en) * 2010-05-14 2014-04-02 カシオ計算機株式会社 Moving state discriminating apparatus, moving state discriminating method and program
JP5972019B2 (en) * 2012-04-16 2016-08-17 京セラ株式会社 Electronics
JP2014066638A (en) * 2012-09-26 2014-04-17 Lapis Semiconductor Co Ltd Determination device, electronic apparatus, and determination method
JP6207343B2 (en) * 2013-10-30 2017-10-04 京セラ株式会社 Electronic device, determination method, and program

Also Published As

Publication number Publication date
JP2017033260A (en) 2017-02-09

Similar Documents

Publication Publication Date Title
Stief et al. A PCA and two-stage Bayesian sensor fusion approach for diagnosing electrical and mechanical faults in induction motors
US9999395B2 (en) Apparatus and method for detecting user action
Coskun et al. Phone position/placement detection using accelerometer: Impact on activity recognition
KR101165537B1 (en) User Equipment and method for cogniting user state thereof
US20070091292A1 (en) System, medium, and method controlling operation according to instructional movement
JP6233727B2 (en) Method and apparatus for determining vehicle acceleration
CN109866760B (en) Remote control method and device for automatic parking and wearable electronic equipment
CN103518389B (en) Vehicle context awareness by detecting engine RPM using a motion sensor
US20160016590A1 (en) Method for detecting driving events of a vehicle based on a smartphone
CN104813379A (en) Detecting changes in position of a device in a horizontal or vertical direction
CN104487915A (en) Maintaining continuity of augmentations
CN105824735B (en) A kind of mobile terminal falls processing method and mobile terminal
KR101228336B1 (en) Personalization Service Providing Method by Using Mobile Terminal User&#39;s Activity Pattern and Mobile Terminal therefor
JP6613876B2 (en) Posture estimation apparatus, posture estimation method, and program
CN108095694B (en) State monitoring method and device of wearable equipment and wearable equipment
US20150241243A1 (en) Method for counting steps and electronic apparatus using the same
CN106297184A (en) The monitoring method of mobile terminal surrounding, device and mobile terminal
JP6459834B2 (en) Electronic device and status notification program
Zeng et al. A novel step counting algorithm based on acceleration and gravity sensors of a smart-phone
US10578640B2 (en) Determination of a mobility context for a user carrying a device fitted with inertial sensors
CN111580660A (en) Operation triggering method, device, equipment and readable storage medium
Prasertsung et al. A classification of accelerometer data to differentiate pedestrian state
JP2013017131A (en) State detector, electronic apparatus, program and state detecting method
JP2008541041A (en) Device comprising sensor device and estimator
US20220218230A1 (en) System and method of detecting walking activity using waist-worn inertial sensors

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180413

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

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20181130

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20181217

R150 Certificate of patent or registration of utility model

Ref document number: 6459834

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees