JP2015029696A - Similarity calculation device, similarity calculation method, similarity calculation program, and information processor - Google Patents

Similarity calculation device, similarity calculation method, similarity calculation program, and information processor Download PDF

Info

Publication number
JP2015029696A
JP2015029696A JP2013161445A JP2013161445A JP2015029696A JP 2015029696 A JP2015029696 A JP 2015029696A JP 2013161445 A JP2013161445 A JP 2013161445A JP 2013161445 A JP2013161445 A JP 2013161445A JP 2015029696 A JP2015029696 A JP 2015029696A
Authority
JP
Japan
Prior art keywords
value
data
feature amount
similarity
feature
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.)
Pending
Application number
JP2013161445A
Other languages
Japanese (ja)
Inventor
雄樹 千葉
Yuki Chiba
雄樹 千葉
潤 野田
Jun Noda
潤 野田
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2013161445A priority Critical patent/JP2015029696A/en
Publication of JP2015029696A publication Critical patent/JP2015029696A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide a similarity calculation device or the like calculating similarity at high speed even when the number of pieces of data increases.SOLUTION: A similarity calculation device 101 has: a characteristic amount calculation part 102 calculating a characteristic amount characterizing data according to a prescribed characteristic amount calculation procedure; a range evaluation part 103 calculating an overlapping degree representing similarity related to the characteristic amount according to a prescribed degree calculation procedure on the basis of a first characteristic amount that is the characteristic amount calculated by the characteristic amount calculation part 102 about data included in teacher data and a second characteristic amount that is the characteristic amount calculated by the characteristic amount calculation part 102 about target data; a selection part 104 selecting specific data from the teacher data according to the overlapping degree; and a similarity calculation part 105 calculating similarity between the specific data and the target data.

Description

本発明は、データ間の類似度を算出する類似度算出装置等に関する。   The present invention relates to a similarity calculation device for calculating a similarity between data.

スマートフォンや携帯端末等の情報処理装置は、ユーザの動作等に関する加速度を計測する加速度センサを有する。加速度センサが計測する加速度に基づいて、ユーザの動作を推定する技術は、ゲーム、ジェスチャ、または、動作等に応じて、機器を操作する分野等に応用されている。   An information processing apparatus such as a smartphone or a mobile terminal includes an acceleration sensor that measures an acceleration related to a user's operation or the like. A technique for estimating a user's motion based on an acceleration measured by an acceleration sensor is applied to a field of operating a device according to a game, a gesture, or a motion.

例えば、特許文献1は、加速度センサを用いてユーザの動作を推定する技術を開示する。特許文献1が開示する方式においては、2つの加速度センサが計測する加速度に基づき、動作に関する類似性を算出する。まず、ユーザは、加速度センサを有する装置を手に持って動かす。次に、該加速度センサは、ユーザの動作に関する加速度を計測する。さらに、該装置は、加速度センサが計測する加速度に関するデータ(以下、「加速度データ」と表す)に基づき、該ユーザの動作を推定する。   For example, Patent Literature 1 discloses a technique for estimating a user's motion using an acceleration sensor. In the method disclosed in Patent Document 1, the similarity related to the operation is calculated based on the acceleration measured by the two acceleration sensors. First, the user moves the apparatus having the acceleration sensor by holding it in his hand. Next, the acceleration sensor measures acceleration related to the user's motion. Further, the apparatus estimates the user's motion based on data relating to acceleration measured by the acceleration sensor (hereinafter referred to as “acceleration data”).

特許文献1が開示する技術は、あらかじめ、推定対象である複数の動作(以下、推定対象動作)について、ユーザがそれぞれの動作を行う場合に計測される加速度データと、該動作の種類とが関連付けされたデータ(以降、「教師データ」と表す)に基づき、ユーザが行う動作の種類を推定する。   The technique disclosed in Patent Literature 1 associates in advance acceleration data measured when a user performs each motion with respect to a plurality of motions to be estimated (hereinafter, motions to be estimated) and the types of the motions. Based on the obtained data (hereinafter referred to as “teacher data”), the type of operation performed by the user is estimated.

まず、加速度センサは、ユーザの動作に関する加速度を計測する。次に、特許文献1が開示する技術は、該加速度データと、教師データとの間において、類似度を算出する。その結果、該技術は、該加速度データと最も高い類似度を有する教師データに関連付けされた動作を、ユーザの動作として推定する。   First, the acceleration sensor measures the acceleration related to the user's operation. Next, the technique disclosed in Patent Document 1 calculates a similarity between the acceleration data and the teacher data. As a result, the technique estimates the motion associated with the teacher data having the highest similarity with the acceleration data as the user motion.

例えば、教師データは、「腕を振る」場合及び「腕を回す」場合等に計測される加速度データを含む。該技術は、加速度センサがユーザの動作を計測することにより、加速度データを取得する。そして、該技術は、特許文献1が開示する方式に基づき、計測される加速度データと、教師データにおける各加速度データと比較する。例えば、加速度センサが計測する加速度データが、「腕を回す」場合に計測される加速度データよりも、「腕を振る」場合に計測される加速度データに類似する場合に、該技術は、ユーザの動作が「腕を振る」動作であると推定する。   For example, the teacher data includes acceleration data measured when “waving the arm”, “turning the arm”, and the like. In the technique, acceleration data is acquired by an acceleration sensor measuring a user's movement. And this technique compares the acceleration data measured with each acceleration data in teacher data based on the system which patent document 1 discloses. For example, when the acceleration data measured by the acceleration sensor is more similar to the acceleration data measured when “waving the arm” than the acceleration data measured when “turning the arm”, the technique is It is presumed that the motion is a “waving arm” motion.

例えば、特許文献2が開示する人体動作判別装置は、加速度に基づき、ユーザの動作を推定する装置である。該人体動作判別装置は、加速度センサが計測する加速度データと、あらかじめユーザの動作の種類に関連付けされた加速度データとを比較する。該人体動作判別装置は、上記の2つの加速度データ間における差が少ない加速度データに関連付けされたユーザの動作を参照することにより、ユーザが行う動作の種類を推定する。   For example, the human body motion determination device disclosed in Patent Document 2 is a device that estimates a user's motion based on acceleration. The human body motion determination device compares acceleration data measured by the acceleration sensor with acceleration data previously associated with the type of user's motion. The human body motion determination device estimates the type of motion performed by the user by referring to the user motion associated with the acceleration data having a small difference between the two acceleration data.

特開2010−187282号公報JP 2010-187282 A 特開2000−213967号公報JP 2000-213967 A

特許文献2が開示する人体動作判別装置は、推定対象動作ごとに、加速度データを取得し、取得した加速度データをまとめることにより教師データを作成する。したがって、推定対象動作の種類が増えるにつれ、教師データの数は増大する。この結果、特許文献2に開示する人体動作判別装置を用いる場合には、加速度センサが計測する加速度データと、教師データにおける加速度データとを比較する回数が増えるため、動作の種類を推定する時間は長くなる。   The human body motion discrimination device disclosed in Patent Document 2 acquires acceleration data for each estimation target motion, and creates teacher data by collecting the acquired acceleration data. Therefore, the number of teacher data increases as the types of estimation target motions increase. As a result, when the human body motion determination device disclosed in Patent Document 2 is used, the number of times that the acceleration data measured by the acceleration sensor and the acceleration data in the teacher data are compared increases, so the time for estimating the type of motion is become longer.

そこで、本発明の主たる目的は、例えば、推定対象である動作等に関するデータ数が増大する場合においても、高速に類似度を算出可能な類似度算出装置を提供することである。   Accordingly, a main object of the present invention is to provide a similarity calculation device capable of calculating a similarity at high speed even when the number of data related to an operation to be estimated increases.

前述の目的を達成するために、本発明に係る類似度算出装置は、以下の構成を備えることを特徴とする。   In order to achieve the above-described object, a similarity calculation apparatus according to the present invention is characterized by having the following configuration.

すなわち、本発明に係る類似度算出装置は、
所定の特徴量算出手順に従い、データを特徴付ける特徴量を算出する特徴量算出部と、
教師データに含まれるデータについて前記特徴量算出部が算出する前記特徴量である第1特徴量と、対象データについて前記特徴量算出部が算出する前記特徴量である第2特徴量とに基づいて、所定の度数算出手順に従い、前記特徴量に関する類似度を表す重なり度を算出する範囲評価部と、
前記重なり度に応じて、前記教師データから特定のデータを選び出す選択部と、
前記特定のデータと、前記対象データとの類似度を算出する類似度算出部と
を備えることを特徴とする。
That is, the similarity calculation device according to the present invention is
A feature amount calculation unit that calculates a feature amount that characterizes the data according to a predetermined feature amount calculation procedure;
Based on the first feature value that is the feature value calculated by the feature value calculation unit for data included in the teacher data and the second feature value that is the feature value calculated by the feature value calculation unit for target data. In accordance with a predetermined frequency calculation procedure, a range evaluation unit that calculates the degree of overlap representing the degree of similarity related to the feature amount;
A selection unit that selects specific data from the teacher data according to the degree of overlap;
A similarity calculation unit that calculates the similarity between the specific data and the target data is provided.

また、本発明の他の見地として、本発明に係る類似度算出方法は、
情報処理装置を用いて、教師データに含まれるデータについて所定の特徴量算出手順に従い算出された特徴量である第1特徴量と、対象データについて前記所定の特徴量算出手順に従い算出された前記特徴量である第2特徴量とに基づいて、所定の度数算出手順に従い、前記特徴量に関する類似度を表す重なり度を算出し、前記重なり度に応じて、前記教師データから特定のデータを選び、前記特定のデータと、前記対象データとの類似度を算出する
ことを特徴とする。
As another aspect of the present invention, the similarity calculation method according to the present invention includes:
Using the information processing apparatus, the first feature amount, which is a feature amount calculated according to a predetermined feature amount calculation procedure for data included in the teacher data, and the feature calculated according to the predetermined feature amount calculation procedure for target data Based on the second feature value that is a quantity, according to a predetermined frequency calculation procedure, calculate the degree of overlap representing the degree of similarity with respect to the feature quantity, and select specific data from the teacher data according to the degree of overlap, The similarity between the specific data and the target data is calculated.

さらに、同目的は、係る類似度算出プログラム、および、そのプログラムを記録するコンピュータ読み取り可能な記録媒体によっても実現される。   Furthermore, this object is also realized by such a similarity calculation program and a computer-readable recording medium for recording the program.

本発明に係る類似度算出装置等によれば、データ数が増大する場合においても、高速に類似度を算出することができる。   According to the similarity calculation device and the like according to the present invention, the similarity can be calculated at high speed even when the number of data increases.

本発明の第1の実施形態に係る類似度算出装置が有する構成を示すブロック図である。It is a block diagram which shows the structure which the similarity calculation apparatus which concerns on the 1st Embodiment of this invention has. 第1の実施形態に係る類似度算出装置における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in the similarity calculation apparatus which concerns on 1st Embodiment. 所定の特徴量算出手順の一例を表す図である。It is a figure showing an example of the predetermined feature-value calculation procedure. 第1の実施形態に係る加速度センサが計測する加速度の一例を表す図である。It is a figure showing an example of the acceleration which the acceleration sensor which concerns on 1st Embodiment measures. 第1の実施形態に係る特徴量算出部が検出する極大値の一例を表す図である。It is a figure showing an example of the local maximum value which the feature-value calculation part which concerns on 1st Embodiment detects. 第2の値に関する領域を第1間隔にて区分する一例を表す図である。It is a figure showing an example which divides the field about the 2nd value at the 1st interval. 本発明の第2の実施形態に係る類似度算出装置が有する構成を示すブロック図である。It is a block diagram which shows the structure which the similarity calculation apparatus which concerns on the 2nd Embodiment of this invention has. 第2の実施形態に係る特徴量算出部における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process in the feature-value calculation part which concerns on 2nd Embodiment. 第2間隔にて、時刻を分割する一例を表す図である。It is a figure showing an example which divides | segments time at a 2nd space | interval. 本発明の第3の実施形態に係る類似度算出装置が有する構成を示すブロック図である。It is a block diagram which shows the structure which the similarity calculation apparatus which concerns on the 3rd Embodiment of this invention has. 第3の実施形態に係る特徴量算出部における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in the feature-value calculation part which concerns on 3rd Embodiment. 本発明の第4の実施形態に係る類似度算出装置が有する構成を示すブロック図である。It is a block diagram which shows the structure which the similarity calculation apparatus which concerns on the 4th Embodiment of this invention has. 第4の実施形態に係る類似度算出装置における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in the similarity calculation apparatus which concerns on 4th Embodiment. 第4の実施形態に係る変更部が再帰的に第2間隔を変更する処理の一例を概念的に表す図である。It is a figure which represents conceptually an example of the process in which the change part which concerns on 4th Embodiment changes a 2nd space | interval recursively. 教師データの構成例をテーブル状に表す説明図であるIt is explanatory drawing showing the structural example of teacher data in a table form 本発明の第5の実施形態に係る情報処理装置が有する構成を示すブロック図である。It is a block diagram which shows the structure which the information processing apparatus which concerns on the 5th Embodiment of this invention has. 第5の実施形態に係る情報処理装置における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in the information processing apparatus which concerns on 5th Embodiment. 本発明の各実施形態に係る類似度算出装置を実現可能な計算処理装置のハードウェア構成を、概略的に示すブロック図である。It is a block diagram which shows roughly the hardware constitutions of the calculation processing apparatus which can implement | achieve the similarity calculation apparatus which concerns on each embodiment of this invention.

次に、本発明を実施する実施形態について図面を参照しながら詳細に説明する。   Next, embodiments for carrying out the present invention will be described in detail with reference to the drawings.

<第1の実施形態>
本発明の第1の実施形態に係る類似度算出装置101が有する構成と、類似度算出装置101が行う処理とについて、図1及び図2を参照しながら詳細に説明する。図1は、本発明の第1の実施形態に係る類似度算出装置101が有する構成を示すブロック図である。図2は、第1の実施形態に係る類似度算出装置101における処理の流れを示すフローチャートである。
<First Embodiment>
The configuration of the similarity calculation apparatus 101 according to the first embodiment of the present invention and the processing performed by the similarity calculation apparatus 101 will be described in detail with reference to FIGS. 1 and 2. FIG. 1 is a block diagram showing the configuration of the similarity calculation apparatus 101 according to the first embodiment of the present invention. FIG. 2 is a flowchart showing the flow of processing in the similarity calculation apparatus 101 according to the first embodiment.

第1の実施形態に係る類似度算出装置101は、特徴量算出部102と、範囲評価部103と、選択部104と、類似度算出部105とを有する。   The similarity calculation apparatus 101 according to the first embodiment includes a feature amount calculation unit 102, a range evaluation unit 103, a selection unit 104, and a similarity calculation unit 105.

例えば、スマートフォン等の情報処理装置が、ユーザの動作を表す加速度を計測する加速度センサと、本実施形態に係る類似度算出装置101とを有する例を用いながら、類似度算出装置101における処理の流れについて説明する。   For example, while using an example in which an information processing apparatus such as a smartphone includes an acceleration sensor that measures an acceleration representing a user's action and the similarity calculation apparatus 101 according to the present embodiment, the flow of processing in the similarity calculation apparatus 101 Will be described.

まず、例えば、ユーザは、あらかじめ、スマートフォン等の情報処理装置を手に持ちながら、推定対象である複数の動作を行う。それとともに、加速度センサは、該ユーザの動作に関する加速度(例えば、図4)を計測する。図4は、加速度センサが計測する加速度の一例を表す図である。   First, for example, a user performs a plurality of operations that are estimation targets while holding an information processing apparatus such as a smartphone in advance. At the same time, the acceleration sensor measures acceleration (for example, FIG. 4) related to the user's motion. FIG. 4 is a diagram illustrating an example of acceleration measured by the acceleration sensor.

図4において、横軸は、矢印の方向に時刻(本実施形態においては時刻に限定されないため、以降、「第1の値」とも表す)が進むことを表す。また、縦軸は、矢印の方向に加速度(本実施形態においては加速度に限定されないため、以降、「第2の値」とも表す)が大きくなることを表す。   In FIG. 4, the horizontal axis indicates that the time (in the present embodiment, it is not limited to the time and is hereinafter also referred to as “first value”) in the direction of the arrow. The vertical axis indicates that the acceleration (in the present embodiment, it is not limited to acceleration, and is hereinafter also referred to as “second value”) increases in the direction of the arrow.

教師データは、例えば、計測された加速度(以降、「加速度データ」と表す。また、本実施形態においては加速度に限定されないため、以降、「対象データ」とも表す。)と、該動作の種類とを関連付ける。教師データにおける加速度データは、所定の特徴量算出手順に従い算出された特徴量に関連付けされている。また、教師データは、さらに、動作した人物の年齢及び性別などに関する情報を、加速度データに関連付けて有していてもよい。本実施形態に係る類似度算出装置101は、上述した特徴量等に基づいて、類似度を算出する。   The teacher data is, for example, measured acceleration (hereinafter referred to as “acceleration data”. In addition, in the present embodiment, the teacher data is also referred to as “target data” since it is not limited to acceleration), and the type of the operation. Associate. The acceleration data in the teacher data is associated with the feature amount calculated according to a predetermined feature amount calculation procedure. Further, the teacher data may further include information relating to the age and sex of the person who has operated in association with the acceleration data. The similarity calculation apparatus 101 according to the present embodiment calculates the similarity based on the above-described feature amount and the like.

所定の特徴量算出手順は、例えば、図3に示す手順である。図3は、所定の特徴量算出手順の一例を表す図である。すなわち、特徴量算出部102は、所定の特徴量算出手順に従い、データに関する特徴量を算出する。   The predetermined feature amount calculation procedure is, for example, the procedure shown in FIG. FIG. 3 is a diagram illustrating an example of a predetermined feature amount calculation procedure. That is, the feature amount calculation unit 102 calculates a feature amount related to data according to a predetermined feature amount calculation procedure.

まず、特徴量算出部102は、加速度データにおける第2の値(図4に示す例では、加速度)に関する極大値を探す(ステップS301)。例えば、図4に示す加速度データである場合、特徴量算出部102は、図5(図中における丸印)に示す加速度の極大値(例えば、加速度が極大となる時刻を、それぞれ、t1、t2、t3、t4、t5とする)を探す。図5は、特徴量算出部102が検出する極大値の一例を表す図である。例えば、特徴量算出部102は、加速度データの傾きを算出し、算出した傾きに応じて極大値を探す。   First, the feature amount calculation unit 102 searches for a local maximum value related to the second value (acceleration in the example shown in FIG. 4) in the acceleration data (step S301). For example, in the case of the acceleration data shown in FIG. 4, the feature quantity calculation unit 102 sets the maximum values of acceleration shown in FIG. 5 (circles in the figure) (for example, the times at which the acceleration becomes maximum, respectively, t1, t2 , T3, t4, and t5). FIG. 5 is a diagram illustrating an example of the maximum value detected by the feature amount calculation unit 102. For example, the feature amount calculation unit 102 calculates the inclination of the acceleration data, and searches for the maximum value according to the calculated inclination.

次に、特徴量算出部102は、第2の値からなる領域(図4に示す例において、加速度データ)を第1間隔にて分割し(図6)、分割された各区間において、極大値に関する頻度を算出する。図6は、第2の値に関する領域を第1間隔にて区分する一例を表す図である。図6において、例えば、第2の値からなる領域は、第1間隔により、第1区間乃至第4区間を有する4つの区間に区切られている。   Next, the feature amount calculation unit 102 divides the region composed of the second values (acceleration data in the example shown in FIG. 4) at the first interval (FIG. 6), and the local maximum value in each divided section. Calculate the frequency. FIG. 6 is a diagram illustrating an example of dividing the region relating to the second value at the first interval. In FIG. 6, for example, the region having the second value is divided into four sections having a first section to a fourth section by the first interval.

第1間隔は、あらかじめ決められていてもよいし、例えば、第2の値の最大値と最小値とに基づいて算出してもよい。また、第1間隔は、必ずしも、各区間が同じ幅を有する必要はない。   The first interval may be determined in advance, or may be calculated based on the maximum value and the minimum value of the second value, for example. Further, the first interval does not necessarily have to have the same width in each section.

次に、特徴量算出部102は、各区間において極大値が出現する頻度を算出する(ステップS302)。図6に示す例の場合、第1区間、第2区間及び第3区間は、それぞれ、1つ(時刻t3における極大値)、1つ(時刻t1における極大値)、3つ(時刻t2、t4及びt5における極大値)の極大値を含む。   Next, the feature quantity calculation unit 102 calculates the frequency at which the maximum value appears in each section (step S302). In the example shown in FIG. 6, the first interval, the second interval, and the third interval are each one (maximum value at time t3), one (maximum value at time t1), and three (time t2, t4). And the maximum value at t5).

次に、特徴量算出部102は、図6の例において、頻度が低い(ただし、1以上)極大値を与える第1の値(図6に示す例では、時刻)を、特徴量として算出する(ステップS303)。例えば、図6に示す例では、第1区間及び第2区間が、第3区間における極大値数よりも少ないため、特徴量算出部102は、時刻t1及び時刻t3を特徴量として算出する。   Next, the feature amount calculation unit 102 calculates the first value (in the example shown in FIG. 6, time) that gives a local maximum value with a low frequency (however, 1 or more) in the example of FIG. 6 as the feature amount. (Step S303). For example, in the example illustrated in FIG. 6, since the first section and the second section are smaller than the number of maximum values in the third section, the feature amount calculation unit 102 calculates time t1 and time t3 as the feature amount.

所定の特徴量算出手順には、例えば、以下の各実施形態にて示す手順(または、「方法」とも表現する)が存在する。所定の特徴量算出手順は、データに基づき算出される値、符号等であれば良く、上述した手順に限定されない。   The predetermined feature amount calculation procedure includes, for example, a procedure (or expressed as “method”) shown in the following embodiments. The predetermined feature amount calculation procedure may be any value, code, or the like calculated based on the data, and is not limited to the above-described procedure.

また、上述した例においては、特徴量算出部102は、極大値が出現する時刻を特徴量として算出したが、一定の幅を持つ時間(すなわち、区間における開始時刻と終了時刻との間)であっても、区間における中心の時刻であってもよい。すなわち、特徴量は、上述した例における値に限定されない。   In the above-described example, the feature amount calculation unit 102 calculates the time when the maximum value appears as the feature amount, but the time has a certain range (that is, between the start time and the end time in the section). It may be the center time in the section. That is, the feature amount is not limited to the value in the above-described example.

まず、特徴量算出部102は、例えば、加速度センサが計測する加速度データを受信し、所定の特徴量算出手順に従い、受信した加速度データの特徴を表す特徴量(以降では、「第2特徴量」と表す。)を算出する(ステップS201)。   First, the feature quantity calculation unit 102 receives, for example, acceleration data measured by an acceleration sensor, and represents a feature quantity (hereinafter referred to as “second feature quantity”) representing the characteristics of the received acceleration data according to a predetermined feature quantity calculation procedure. (Step S201).

次に、範囲評価部103は、教師データが有する各データに関する特徴量(以降では、「第1特徴量」と表す。)と、第2特徴量とに基づき、所定の度数算出手順に従い、該2つの特徴量に関する類似度である重なり度を算出する(ステップS202)。   Next, the range evaluation unit 103 follows the predetermined frequency calculation procedure based on the feature amount (hereinafter referred to as “first feature amount”) related to each data included in the teacher data and the second feature amount. The degree of overlap, which is the degree of similarity between the two feature quantities, is calculated (step S202).

所定の度数算出手順としては、例えば、式1に示すように、第1特徴量と第2特徴量との離散の度合いに応じて、重なり度を算出する方法がある。例えば、第1特徴量を時刻が早い方から順にtt1,tt2…ttnとし、第2特徴量を、tu1,tu2…tunとする場合、範囲評価部103は、式1に従い重なり度Pを算出する。   As the predetermined frequency calculation procedure, for example, as shown in Equation 1, there is a method of calculating the degree of overlap according to the degree of discreteness between the first feature value and the second feature value. For example, when the first feature value is tt1, tt2,... Ttn in order from the earliest time and the second feature value is tu1, tu2,... Tun, the range evaluation unit 103 calculates the overlap degree P according to Equation 1. .

P=1÷(|ttk−tuk|のkに関する総和)・・・(式1)、
(ただし、|x|はxの絶対値を表す)。
P = 1 ÷ (sum of | ttk−tuk | with respect to k) (Expression 1),
(Where | x | represents the absolute value of x).

所定の度数算出手順は、第1特徴量と、第2特徴量との類似度を算出すればよく、上述した例に限定されない。   The predetermined frequency calculation procedure is not limited to the above-described example as long as the similarity between the first feature value and the second feature value is calculated.

次に、選択部104は、範囲評価部103が所定の度数算出手順に従い算出する重なり度に応じて、教師データから特定のデータを選び出す(ステップS203)。例えば、選択部104は、教師データから、第2特徴量との重なり度が大きな第1特徴量が表す1つ以上のデータを、特定のデータとして選び出す。   Next, the selection unit 104 selects specific data from the teacher data in accordance with the degree of overlap calculated by the range evaluation unit 103 according to a predetermined frequency calculation procedure (step S203). For example, the selection unit 104 selects one or more data represented by the first feature value having a large degree of overlap with the second feature value as the specific data from the teacher data.

次に、類似度算出部105は、選択部104が選び出す特定のデータと、加速度データとの間における類似度を算出する(ステップS204)。例えば、類似度算出部105は、特許文献1が開示する方法等に従い、加速度データと、特定のデータとの間における類似度を算出する。   Next, the similarity calculation unit 105 calculates the similarity between the specific data selected by the selection unit 104 and the acceleration data (step S204). For example, the similarity calculation unit 105 calculates the similarity between acceleration data and specific data according to the method disclosed in Patent Document 1.

本実施形態は、教師データから、加速度データを特徴付ける第2特徴量との重なり度が大きな特定のデータを選び出し、選び出した特定のデータに関して加速度データとの類似度を算出する。すなわち、本実施形態によれば、加速度データと比較する教師データの数を削減することができる。従って、第1の実施形態に係る類似度算出装置によれば、データ数が増大する場合においても、高速に類似度を算出することができる。   In the present embodiment, specific data having a large degree of overlap with the second feature value that characterizes the acceleration data is selected from the teacher data, and the similarity with the acceleration data is calculated for the selected specific data. That is, according to this embodiment, the number of teacher data to be compared with acceleration data can be reduced. Therefore, according to the similarity calculation apparatus according to the first embodiment, the similarity can be calculated at high speed even when the number of data increases.

一方、例えば、特許文献2が開示する人体動作判別装置においては、推定対象である動作の種類が増えるにつれ、教師データの数は増大する。この結果、該人体動作判別装置は、教師データの数が増大するにつれ、加速度データと比較するデータ数が増大する。したがって、該人体動作判別装置は、加速度データと比較するデータが増大する場合に、高速に類似度を算出することが難しくなる。   On the other hand, for example, in the human body motion determination device disclosed in Patent Document 2, the number of teacher data increases as the types of motions to be estimated increase. As a result, the number of data to be compared with the acceleration data increases in the human body movement determination device as the number of teacher data increases. Therefore, when the data to be compared with the acceleration data increases, it is difficult for the human body motion determination device to calculate the similarity at high speed.

尚、上述した説明において、スマートフォンが加速度を計測する加速度センサを有する場合を例としたが、本実施形態は上述した例に限定されない。例えば、本実施形態は、心電図における波形から病状を判定する場合、音声などを表す波形から意味を解析する場合、または、装置における温度変化などから該装置が故障するか否かを推定する場合等、様々な状況に適用することができる。すなわち、本実施形態は、上述した例に限定されない。   In the above description, the smartphone has an acceleration sensor that measures acceleration, but the present embodiment is not limited to the above example. For example, in the present embodiment, when determining a medical condition from a waveform in an electrocardiogram, when analyzing a meaning from a waveform representing a voice, or when estimating whether or not the device fails from a temperature change in the device, etc. It can be applied to various situations. That is, this embodiment is not limited to the above-described example.

また、上述した例において、情報処理装置が加速度を計測する加速度センサと、計測した加速度に基づいて動作を推定する機能を有するとしたが、必ずしも、一つの情報処理装置が上記2つの機能を有する必要はない。すなわち、一つの情報処理装置にて、加速度を計測し、別の情報処理装置にて、計測した加速度に関する動作を推定する等してもよい。すなわち、本実施形態は、上述した例に限定されない。   In the above-described example, the information processing apparatus has an acceleration sensor that measures acceleration and a function that estimates an operation based on the measured acceleration. However, one information processing apparatus does not necessarily have the above two functions. There is no need. In other words, the acceleration may be measured by one information processing apparatus, and the operation related to the measured acceleration may be estimated by another information processing apparatus. That is, this embodiment is not limited to the above-described example.

<第2の実施形態>
次に、上述した第1の実施形態を基本とする本発明の第2の実施形態について説明する。
<Second Embodiment>
Next, a second embodiment of the present invention based on the first embodiment described above will be described.

以下の説明においては、本実施形態に係る特徴的な部分を中心に説明すると共に、上述した第1の実施形態と同様な構成については、同一の参照番号を付すことにより、重複する説明を省略する。   In the following description, the characteristic part according to the present embodiment will be mainly described, and the same components as those in the first embodiment described above will be denoted by the same reference numerals, and redundant description will be omitted. To do.

図7と図8とを参照しながら、第2の実施形態に係る類似度算出装置701が有する構成と、類似度算出装置701が行う処理とについて説明する。図7は、本発明の第2の実施形態に係る類似度算出装置701が有する構成を示すブロック図である。図8は、第2の実施形態に係る特徴量算出部702における処理の流れを示すフローチャートである。   The configuration of the similarity calculation device 701 according to the second embodiment and the processing performed by the similarity calculation device 701 will be described with reference to FIGS. FIG. 7 is a block diagram showing a configuration of a similarity calculation apparatus 701 according to the second embodiment of the present invention. FIG. 8 is a flowchart showing the flow of processing in the feature amount calculation unit 702 according to the second embodiment.

類似度算出装置701は、特徴量算出部702と、範囲評価部103と、選択部104と、類似度算出部105とを有する。   The similarity calculation device 701 includes a feature amount calculation unit 702, a range evaluation unit 103, a selection unit 104, and a similarity calculation unit 105.

特徴量算出部702は、所定の特徴量算出手順に従い、受信するデータに関する特徴量を算出する(ステップS801乃至ステップS804)。   The feature amount calculation unit 702 calculates a feature amount related to received data according to a predetermined feature amount calculation procedure (steps S801 to S804).

例えば、特徴量算出部702は、第2間隔に応じて、第1の値からなる領域を1つ以上の区間に分割する(ステップS801)。例えば、図9に示す例のように、第1の値が時刻を表す場合に、特徴量算出部702は、第2間隔にて、時刻を分割する(分割により作成された区間を「時間窓」と表す)。図9は、第2間隔にて、時刻を分割する一例を表す図である。図9に示す例において、時刻は、第1乃至第4時間窓に区分けされる。   For example, the feature amount calculation unit 702 divides the region composed of the first values into one or more sections according to the second interval (step S801). For example, as in the example illustrated in FIG. 9, when the first value represents time, the feature amount calculation unit 702 divides the time at the second interval (the section created by the division is expressed as “time window "). FIG. 9 is a diagram illustrating an example of dividing the time at the second interval. In the example shown in FIG. 9, the time is divided into first to fourth time windows.

次に、特徴量算出部702は、所定の代表値算出手順に従い、分割された区間を代表する第2の値を代表値として算出する(ステップS802)。例えば、所定の代表値算出手順として、各時間窓において、第2の値の最大値、最小値、平均値、または、分散値等の値を算出する方法がある。代表値を算出する手法には様々な手法が既に存在するため、ここでは、該手法に関する説明を省略する。   Next, the feature amount calculation unit 702 calculates a second value representing the divided section as a representative value in accordance with a predetermined representative value calculation procedure (step S802). For example, as a predetermined representative value calculation procedure, there is a method of calculating a value such as a maximum value, a minimum value, an average value, or a variance value of the second value in each time window. Since various methods for calculating the representative value already exist, description on the method is omitted here.

次に、特徴量算出部702は、第3間隔にて、第2の値(図9に示す例では、加速度)からなる領域を1つ以上の区間に分割し、分割した各区間において、算出した代表値に関する頻度を算出する(ステップS803)。   Next, the feature amount calculation unit 702 divides the region made up of the second value (acceleration in the example shown in FIG. 9) into one or more sections at the third interval, and calculates in each divided section. The frequency relating to the representative value is calculated (step S803).

例えば、第3間隔は、あらかじめ決められていてもよいし、例えば、第2の値の最大値と最小値とに基づいて算出してもよい。また、第3間隔は、必ずしも、各区間が同じ幅を有する必要はない。   For example, the third interval may be determined in advance, or may be calculated based on the maximum value and the minimum value of the second value, for example. The third interval does not necessarily have to have the same width in each section.

次に、特徴量算出部702は、頻度が低い(ただし、1以上)代表値を与える第1の値(図9に示す例では、時刻)を、特徴量として算出する(ステップS804)。   Next, the feature amount calculation unit 702 calculates a first value (in the example illustrated in FIG. 9) that gives a representative value with a low frequency (however, 1 or more) as a feature amount (step S804).

第1の実施形態においては、極大値に関する頻度を算出したが、本実施形態は、代表値に関する頻度を算出する。   In the first embodiment, the frequency related to the maximum value is calculated, but in the present embodiment, the frequency related to the representative value is calculated.

第2の実施形態は、第1の実施形態と同様の構成を含むため、第1の実施形態と同様の効果を享受することができる。すなわち、第2の実施形態に係る類似度算出装置によれば、データ数が増大する場合においても、高速に類似度を算出することができる。   Since the second embodiment includes the same configuration as that of the first embodiment, the same effect as that of the first embodiment can be obtained. That is, according to the similarity calculation apparatus according to the second embodiment, the similarity can be calculated at high speed even when the number of data increases.

平均値または分散値等を利用することによって代表値の種類を増やすことができる。この結果、様々な特徴を捉えることができるため、本実施形態によれば、第1の実施形態よりも、さらに高精度に類似度を算出することができる。   By using an average value or a variance value, the types of representative values can be increased. As a result, since various features can be captured, according to the present embodiment, the similarity can be calculated with higher accuracy than in the first embodiment.

<第3の実施形態>
次に、上述した第1の実施形態を基本とする本発明の第3の実施形態について説明する。
<Third Embodiment>
Next, a third embodiment of the present invention based on the first embodiment described above will be described.

以下の説明においては、本実施形態に係る特徴的な部分を中心に説明すると共に、上述した第1の実施形態と同様な構成については、同一の参照番号を付すことにより、重複する説明を省略する。   In the following description, the characteristic part according to the present embodiment will be mainly described, and the same components as those in the first embodiment described above will be denoted by the same reference numerals, and redundant description will be omitted. To do.

図10と図11とを参照しながら、第3の実施形態に係る類似度算出装置901が有する構成と、類似度算出装置901が行う処理とについて説明する。図10は、本発明の第3の実施形態に係る類似度算出装置901が有する構成を示すブロック図である。図11は、第3の実施形態に係る特徴量算出部902における処理の流れを示すフローチャートである。   The configuration of the similarity calculation device 901 according to the third embodiment and the processing performed by the similarity calculation device 901 will be described with reference to FIGS. 10 and 11. FIG. 10 is a block diagram showing a configuration of a similarity calculation apparatus 901 according to the third embodiment of the present invention. FIG. 11 is a flowchart showing a flow of processing in the feature amount calculation unit 902 according to the third embodiment.

類似度算出装置901は、特徴量算出部902と、範囲評価部103と、選択部104と、類似度算出部105とを有する。   The similarity calculation device 901 includes a feature amount calculation unit 902, a range evaluation unit 103, a selection unit 104, and a similarity calculation unit 105.

特徴量算出部902は、所定の特徴量算出手順に従い、データに関する特徴量を算出する(ステップS1001乃至ステップS1005)。   The feature amount calculation unit 902 calculates a feature amount related to data according to a predetermined feature amount calculation procedure (steps S1001 to S1005).

例えば、特徴量算出部902は、第2間隔に応じて、第1の値からなる領域を1つ以上の区間に分割する(ステップS1001)。例えば、図9に示す例のように、第1の値が時刻を表す場合に、特徴量算出部902は、第2間隔にて、時刻を分割する(分割により作成された区間を「時間窓」と表す)。   For example, the feature amount calculation unit 902 divides the region including the first value into one or more sections according to the second interval (step S1001). For example, as in the example illustrated in FIG. 9, when the first value represents time, the feature amount calculation unit 902 divides the time at the second interval (the section created by the division is referred to as “time window ").

次に、特徴量算出部902は、作成された区間(例えば、「時間窓」)における関数(すなわち、第1の値と第2の値とを関連付ける関数)を、それぞれフーリエ変換する(ステップS1002)。該関数は、フーリエ変換により、周波数と振幅とを関連付ける関数に変換される。   Next, the feature amount calculation unit 902 performs Fourier transform on each function (that is, a function that associates the first value with the second value) in the created section (for example, “time window”) (step S1002). ). The function is converted into a function for associating the frequency and the amplitude by Fourier transform.

次に、特徴量算出部902は、作成された区間において、それぞれ、大きな振幅に関連付けされた周波数を算出する(ステップS1003)。図9に示す例の場合において、特徴量算出部902が周波数を算出することにより、各時間窓は特定の周波数と関連付けされる。   Next, the feature amount calculation unit 902 calculates a frequency associated with a large amplitude in the created section (step S1003). In the case of the example illustrated in FIG. 9, each time window is associated with a specific frequency by the feature amount calculation unit 902 calculating the frequency.

次に、特徴量算出部902は、第4間隔にて、第2の値(この例では、周波数)からなる領域を1つ以上の区間に分割し、分割された各区間において、算出した周波数に関する頻度を算出する(ステップS1004)。   Next, the feature amount calculation unit 902 divides the region composed of the second value (in this example, the frequency) into one or more sections at the fourth interval, and calculates the frequency calculated in each divided section. The frequency regarding is calculated (step S1004).

例えば、第4間隔は、あらかじめ決められていてもよいし、例えば、第2の値の最大値と最小値とに基づいて算出してもよい。また、第4間隔は、必ずしも、各区間が同じ幅を有する必要はない。   For example, the fourth interval may be determined in advance, or may be calculated based on the maximum value and the minimum value of the second value, for example. Further, the fourth interval does not necessarily have to have the same width in each section.

次に、特徴量算出部902は、頻度が低い(ただし、1以上)周波数を与える第1の値(図9に示す例では、時刻)を、特徴量として算出する(ステップS1005)。   Next, the feature amount calculation unit 902 calculates a first value (in the example shown in FIG. 9, time) giving a low frequency (however, 1 or more) frequency as a feature amount (step S1005).

第3の実施形態は、第1の実施形態と同様の構成を含むため、第3の実施形態は、第1の実施形態と同様の効果を享受することができる。すなわち、第3の実施形態に係る類似度算出装置によれば、データ数が増大する場合においても、高速に類似度を算出することができる。   Since the third embodiment includes the same configuration as that of the first embodiment, the third embodiment can enjoy the same effects as those of the first embodiment. That is, according to the similarity calculation apparatus according to the third embodiment, the similarity can be calculated at high speed even when the number of data increases.

また、本実施形態においては、フーリエ変換を用いて振幅が大きな周波数を算出することにより、例えば、ユーザの動作における細かなゆれを取り除くことができる。この結果、本実施形態によれば、加速度を計測する際の誤差等を軽減することができる。このため、上述した第1の実施形態と比べて、さらに高精度に類似度を算出することができる。   In the present embodiment, by calculating a frequency having a large amplitude using Fourier transform, for example, fine fluctuations in the user's operation can be removed. As a result, according to the present embodiment, an error or the like when measuring the acceleration can be reduced. For this reason, the similarity can be calculated with higher accuracy than in the first embodiment described above.

<第4の実施形態>
次に、上述した第2の実施形態を基本とする本発明の第4の実施形態について説明する。
<Fourth Embodiment>
Next, a fourth embodiment of the present invention based on the second embodiment will be described.

以下の説明においては、本実施形態に係る特徴的な部分を中心に説明すると共に、上述した第2の実施形態と同様な構成については、同一の参照番号を付すことにより、重複する説明を省略する。   In the following description, the characteristic part according to the present embodiment will be mainly described, and the same reference numerals will be given to the same configurations as those of the second embodiment described above, thereby omitting redundant description. To do.

図12と図13とを参照しながら、第4の実施形態に係る類似度算出装置1101が有する構成と、類似度算出装置1101が行う処理とについて説明する。図12は、本発明の第4の実施形態に係る類似度算出装置1101が有する構成を示すブロック図である。図13は、第4の実施形態に係る類似度算出装置1101における処理の流れを示すフローチャートである。   The configuration of the similarity calculation device 1101 according to the fourth embodiment and the processing performed by the similarity calculation device 1101 will be described with reference to FIGS. FIG. 12 is a block diagram showing a configuration of a similarity calculation device 1101 according to the fourth embodiment of the present invention. FIG. 13 is a flowchart showing the flow of processing in the similarity calculation device 1101 according to the fourth embodiment.

類似度算出装置1101は、特徴量算出部102と、範囲評価部103と、選択部1104と、類似度算出部1105と、変更部1106とを有する。   The similarity calculation device 1101 includes a feature amount calculation unit 102, a range evaluation unit 103, a selection unit 1104, a similarity calculation unit 1105, and a change unit 1106.

まず、選択部1104は、第1の実施形態にて説明したように、範囲評価部103が所定の度数算出手順に従い算出する重なり度に応じて、教師データから特定のデータを選ぶ(ステップS1201)。   First, as described in the first embodiment, the selection unit 1104 selects specific data from the teacher data according to the degree of overlap calculated by the range evaluation unit 103 according to a predetermined frequency calculation procedure (step S1201). .

次に、変更部1106は、特定のデータ数が所定の閾値よりも小さいか否かを判定する(ステップS1202)。変更部1106は、特定のデータ数が所定の閾値よりも大きいと判定する場合に(ステップS1202にてNOと判定)、第2間隔を狭くする(ステップS1203)。   Next, the changing unit 1106 determines whether or not the specific number of data is smaller than a predetermined threshold (step S1202). When determining that the number of specific data is larger than the predetermined threshold (NO in step S1202), the changing unit 1106 narrows the second interval (step S1203).

所定の閾値を設定する手順には、あらかじめ、例えば、3または10等の正の値を設定する方法や、情報処理装置が有する処理性能に応じて値を設定する等の方法がある。所定の閾値を設定する手順は、上述した例に限定されない。   The procedure for setting the predetermined threshold includes, for example, a method of setting a positive value such as 3 or 10 in advance and a method of setting a value according to the processing performance of the information processing apparatus. The procedure for setting the predetermined threshold is not limited to the example described above.

次に、特徴量算出部102は、変更部1106が狭くした第2間隔に基づき、第2特徴量を算出する(ステップS1204)。   Next, the feature amount calculation unit 102 calculates a second feature amount based on the second interval narrowed by the changing unit 1106 (step S1204).

次に、範囲評価部103は、第1特徴量と、第2特徴量とに基づき、所定の度数算出手順に従い、該特徴量に関する類似度である重なり度を算出する(ステップS1205)。   Next, the range evaluation unit 103 calculates a degree of overlap, which is a degree of similarity related to the feature amount, according to a predetermined frequency calculation procedure based on the first feature amount and the second feature amount (step S1205).

変更部1106が、特定のデータ数が所定の閾値よりも小さいと判定する場合に(ステップS1202にてYESと判定)、ステップS1203乃至ステップS1205を実施しない。   When the changing unit 1106 determines that the number of specific data is smaller than the predetermined threshold (YES in step S1202), steps S1203 to S1205 are not performed.

尚、上述した説明において、類似度算出装置1101は、ステップS1201乃至ステップS1205の処理を実施するとしたが、該処理を再帰的に繰り返し実施してもよい。例えば、図14に示すように、第2間隔が第1の値からなる領域の半分の大きさである場合に、変更部1106は、それぞれの区間における領域を更に半分にする処理を繰り返し実施してもよい。図14は、変更部1106が再帰的に第2間隔を変更する処理の一例を概念的に表す図である。   In the above description, the similarity calculation device 1101 performs the processing from step S1201 to step S1205. However, the processing may be recursively repeated. For example, as illustrated in FIG. 14, when the second interval is half the size of the area having the first value, the changing unit 1106 repeatedly performs the process of further halving the area in each section. May be. FIG. 14 is a diagram conceptually illustrating an example of processing in which the changing unit 1106 recursively changes the second interval.

尚、領域を分割する方法は、該領域を半分に2等分する必要はなく、N分割(Nは、3以上の整数)であってもよい。   Note that the method of dividing the region does not need to divide the region into two halves, and may be divided into N (N is an integer of 3 or more).

第4の実施形態は、第2の実施形態と同様の構成を含むため、第4の実施形態は、第2の実施形態と同様の効果を享受することができる。すなわち、第4の実施形態に係る類似度算出装置1101によれば、データ数が増大する場合においても、高速に類似度を算出することができる。   Since the fourth embodiment includes the same configuration as the second embodiment, the fourth embodiment can enjoy the same effects as those of the second embodiment. That is, according to the similarity calculation apparatus 1101 according to the fourth embodiment, the similarity can be calculated at high speed even when the number of data increases.

変更部1106が、第2間隔を狭くすることにより、作成される区間は小さくなる。従って、特徴量算出部102は、より小さな区間において代表値を算出する。範囲評価部103は、特徴量算出部102が算出する代表値に基づき、より小さな区間において重なり度を算出する。区間を小さくするほど、大きな重なり度を有する区間は少なくなるため、本実施形態によれば、特定のデータ数が減少する。すなわち、本実施形態によれば、さらに、高速に類似度を算出することができる。   The changing section 1106 narrows the second interval, so that the created section becomes small. Therefore, the feature amount calculation unit 102 calculates a representative value in a smaller section. The range evaluation unit 103 calculates the degree of overlap in a smaller section based on the representative value calculated by the feature amount calculation unit 102. As the section is reduced, the number of sections having a large degree of overlap decreases. Therefore, according to the present embodiment, the number of specific data decreases. That is, according to the present embodiment, the similarity can be calculated at a higher speed.

スマートフォン等の情報処理装置が本実施形態に係る類似度算出装置1101と、ユーザの動作を計測する加速度センサとを有する場合の例について説明する。教師データは、類似度算出装置1101が類似度を算出する対象となる動作として、例えば、「腕を突き出す」、「腕を回す」、「腕を振る」及び「腕を引く」に関する4種類の動作データを含むとする。   An example in which an information processing apparatus such as a smartphone includes the similarity calculation apparatus 1101 according to the present embodiment and an acceleration sensor that measures a user's operation will be described. The teacher data includes four types of operations related to “projecting an arm”, “turning an arm”, “waving an arm”, and “pulling an arm” as operations for which the similarity calculation device 1101 calculates a similarity, for example. Suppose that it contains motion data.

まず、ユーザは、スマートフォンを手に握り、スマートフォンが有するディスプレイに表示される「動作開始」ボタンを押下する。加速度センサは、ユーザがボタンを押下するのに応じて、加速度データを計測する。   First, the user holds the smartphone and presses an “operation start” button displayed on the display of the smartphone. The acceleration sensor measures acceleration data in response to the user pressing a button.

一方、スマートフォンは、ディスプレイに、「センサデータ取得開始」等のメッセージと、「動作終了」ボタンとを表示する。ユーザは、「センサデータ取得開始」等のメッセージの表示を確認し、その後、対象データの基となる動作を行う。ユーザは、該動作が完了するのに応じて、ディスプレイに表示される「動作終了」ボタンを押下する。加速度センサは、ユーザが「動作終了」ボタンを押下するのに応じて、加速度データの計測を終了する。   On the other hand, the smartphone displays a message such as “sensor data acquisition start” and an “operation end” button on the display. The user confirms the display of a message such as “start sensor data acquisition”, and then performs an operation that is the basis of the target data. In response to the completion of the operation, the user presses an “end operation” button displayed on the display. The acceleration sensor ends the measurement of acceleration data in response to the user pressing the “end operation” button.

ユーザが「動作終了」ボタンを押下するのに応じて、類似度算出装置1101は、加速度データに基づいて類似度を算出する。スマートフォンは、類似度算出装置1101が算出する類似度に応じて、加速度データに関する動作の種類を推定する。   In response to the user pressing the “end operation” button, the similarity calculation device 1101 calculates the similarity based on the acceleration data. The smartphone estimates the type of motion related to the acceleration data according to the similarity calculated by the similarity calculation device 1101.

しかしながら、例えば、ユーザがボタンを押下するときにも加速度は発生する。加速度センサが計測する加速度データは、ユーザが意図して行う動作において計測される加速度データと異なるため、誤差を有するデータである。スマートフォンは、例えば、ユーザがボタンを押下する場合等に、意図せず発生する加速度データを分離する機能を有していてもよい。すなわち、スマートフォンは、加速度センサが計測する加速度データの中から、ユーザが意図する動作を行う場合に計測される加速度データを抽出してもよい。   However, for example, acceleration occurs when the user presses a button. The acceleration data measured by the acceleration sensor is data having an error because it is different from the acceleration data measured in the operation intended by the user. The smartphone may have a function of separating acceleration data that is generated unintentionally, for example, when the user presses a button. That is, the smartphone may extract acceleration data measured when the user performs an action intended from the acceleration data measured by the acceleration sensor.

以降の説明においては、ユーザが「腕を突き出す」動作を行う場合に、加速度センサが計測する加速度データに基づいて、スマートフォンがユーザの動作の種類を推定する場合を例とする。   In the following description, a case where the smartphone estimates the type of the user's operation based on the acceleration data measured by the acceleration sensor when the user performs the “protruding arm” operation is taken as an example.

特徴量算出部102は、加速度センサが計測する加速度データに基づいて、所定の特徴量算出手順に従い、第2特徴量を算出する。例えば、特徴量算出部102は、加速度データに基づいて、ピーク(例えば、上に凸な関数における変曲点)の値を第2特徴量として算出する。仮に、加速度センサが、図5における加速度データを計測するとする。該加速度データにおけるピークは、図5に示すように、加速度データにおいて5点存在する。以降の説明において、この5点を時刻順に、それぞれ、a、b、c、d、eと表す。   The feature amount calculation unit 102 calculates the second feature amount according to a predetermined feature amount calculation procedure based on the acceleration data measured by the acceleration sensor. For example, the feature amount calculation unit 102 calculates the value of a peak (for example, an inflection point in an upward convex function) as the second feature amount based on the acceleration data. Assume that the acceleration sensor measures acceleration data in FIG. As shown in FIG. 5, there are five peaks in the acceleration data in the acceleration data. In the following description, these five points are represented as a, b, c, d, and e in order of time.

次に、特徴量算出部102は、例えば、得られた5点のピークにおいて、特徴的な変化を表すピークを特定する。具体的に、まず図6に示すように、特徴量算出部102は、第1間隔に基づき、加速度データからなる領域を1つ以上の区間に区切る。例えば、特徴量算出部102は、第1間隔として、加速度データの最大値と最小値の間の領域を、4つの区間に区切る。説明のため、この区分された区間を、加速度データの小さい方から順に、それぞれ、第1区間、第2区間、第3区間及び第4区間と表す。   Next, the feature quantity calculation unit 102 specifies, for example, a peak representing a characteristic change in the obtained five peaks. Specifically, as shown in FIG. 6, the feature amount calculation unit 102 first divides an area made up of acceleration data into one or more sections based on the first interval. For example, the feature amount calculation unit 102 divides the region between the maximum value and the minimum value of the acceleration data into four sections as the first interval. For the sake of explanation, the divided sections are expressed as a first section, a second section, a third section, and a fourth section in order from the smallest acceleration data.

次に、特徴量算出部102は、ピークが出現する回数を、第1区間乃至第4区間においてそれぞれ算出する。図6に示す例の場合、第1区間、第2区間及び第3区間は、それぞれ、1つ(ピークc)、1つ(ピークa)、3つ(ピークb、ピークd、ピークe)のピークを含む。   Next, the feature amount calculation unit 102 calculates the number of times the peak appears in each of the first to fourth intervals. In the case of the example shown in FIG. 6, the first section, the second section, and the third section are one (peak c), one (peak a), and three (peak b, peak d, peak e), respectively. Includes peaks.

次に、特徴量算出部102は、図6の例において、頻度が低い(ただし、1以上)ピークを与える第1の値(図6に示す例では、時刻)を、特徴量として算出する。例えば、特徴量算出部102は、ピークaが発生する時刻t1、及びピークcが発生する時刻t3を、特徴量として算出する。   Next, the feature amount calculation unit 102 calculates, as the feature amount, the first value (in the example shown in FIG. 6, time) that gives a low frequency (however, 1 or more) peak in the example of FIG. For example, the feature amount calculation unit 102 calculates the time t1 when the peak a occurs and the time t3 when the peak c occurs as the feature amounts.

例えば、上述した例において、加速度センサが加速度データを計測する時間の長さが1000(ミリ秒、mili second、以降[msec]と表す」、計測を開始する時刻が0[msec]、t1が160[msec]、t3が310[msec]であるとする。   For example, in the above-described example, the length of time for which the acceleration sensor measures acceleration data is 1000 (millisecond, milli second, hereinafter referred to as [msec]), the measurement start time is 0 [msec], and t1 is 160. It is assumed that [msec] and t3 are 310 [msec].

教師データは、図15に示すデータであるとする。図15は、教師データの構成例をテーブル状に表す説明図である。図15に示す例において、教師データは、特徴量と、計測する時間の長さ(以降、「計測時間」と表す)と、動作の種類とを関連付ける。例えば、「腕を突き出す」動作は、特徴量「150、300」と、計測時間「100」とに関連付けされている。   The teacher data is assumed to be data shown in FIG. FIG. 15 is an explanatory diagram illustrating a configuration example of teacher data in a table form. In the example illustrated in FIG. 15, the teacher data associates the feature amount, the length of time to be measured (hereinafter referred to as “measurement time”), and the type of operation. For example, the operation of “extending an arm” is associated with the feature quantity “150, 300” and the measurement time “100”.

教師データは、例えば、さらに、各教師データの時間の長さ情報、教師データを取得する環境情報(例えば、動作した人物の年齢・性別などの情報)、加速度センサに関する性能情報(例えば、サンプリング周波数や分解能など)等に関連付けされていてもよい。この場合、類似度算出装置1101は、上述した情報等にも基づいて類似度を算出する。   The teacher data further includes, for example, time length information of each teacher data, environment information for acquiring the teacher data (for example, information such as the age and gender of the person who has operated), performance information regarding the acceleration sensor (for example, sampling frequency) Or resolution). In this case, the similarity calculation device 1101 calculates the similarity based also on the information described above.

範囲評価部103は、特徴量算出部102が加速度データに基づいて算出する特徴量と、教師データにおける特徴量との重なり度を、所定の度数算出手順に従い算出する。   The range evaluation unit 103 calculates the degree of overlap between the feature amount calculated by the feature amount calculation unit 102 based on the acceleration data and the feature amount in the teacher data according to a predetermined frequency calculation procedure.

所定の度数算出手順の一例として、加速度データを計測して始めてから計測し終えるまでの時間を分割する方法について説明する。   As an example of the predetermined frequency calculation procedure, a method of dividing the time from when the acceleration data is measured until the measurement is completed will be described.

範囲評価部103は、加速度データの計測時間(すなわち、1000[msec])を2分割することにより、第1区間及び第2区間に区切る。仮に、第1区間は、0乃至500[msec]、第2区間は、501乃至1000[msec]であるとする。この場合、第1区間には、2つのピーク(時刻160[msec]、310[msec]におけるピーク)が存在する。   The range evaluation unit 103 divides the measurement time of acceleration data (that is, 1000 [msec]) into two to divide it into a first section and a second section. Assume that the first interval is 0 to 500 [msec], and the second interval is 501 to 1000 [msec]. In this case, there are two peaks (peaks at time 160 [msec] and 310 [msec]) in the first section.

同様に、範囲評価部103は、教師データにおける各データについて、計測時間を分割する。例えば、教師データにおける「腕を突き出す」データの特徴量は、150[msec]、および300[msec]である。そのため、第1区間に2つのピークが存在する。また、「腕を回す」データは第2区間に1つのピーク、「腕を引く」データは、第1区間に2つのピークを有する。尚、「腕を振る」のデータは、計測時間においてピークを有しない。   Similarly, the range evaluation unit 103 divides the measurement time for each data in the teacher data. For example, the feature amount of the “extrus arm” data in the teacher data is 150 [msec] and 300 [msec]. Therefore, there are two peaks in the first section. Further, the “turn arm” data has one peak in the second section, and the “pull arm” data has two peaks in the first section. It should be noted that the data of “waving the arm” has no peak in the measurement time.

範囲評価部103は、「腕を突き出す」データ及び「腕を引く」データが、加速度データと同様に、第1区間において2点ピークを有すると判定する。この結果、範囲評価部103は、加速度データと、「腕を突き出す」データ及び「腕を引く」データとが高い重なり度を有すると算出する。   The range evaluation unit 103 determines that the “extend arm” data and the “pull arm” data have a two-point peak in the first interval, similarly to the acceleration data. As a result, the range evaluation unit 103 calculates that the acceleration data, the “extend arm” data, and the “pull arm” data have a high degree of overlap.

選択部1104は、範囲評価部103が算出する重なり度に応じて、「腕を突き出す」データ及び「腕を引く」データを、特定のデータとして選び出す。   The selection unit 1104 selects “extend arm” data and “pull arm” data as specific data according to the degree of overlap calculated by the range evaluation unit 103.

次に、変更部1106は、特定のデータ数が所定の閾値よりも少ないか否かを判定してもよい。   Next, the changing unit 1106 may determine whether the specific number of data is less than a predetermined threshold.

例えば、所定の閾値が3である場合、変更部1106は、特定のデータ数が所定の閾値よりも小さいと判定するため、第1間隔を変更しない。この場合、選択部1104は、範囲評価部103が算出する重なり度に応じて、「腕を突き出す」データ及び「腕を引く」データを、特定のデータとして選び出す。   For example, when the predetermined threshold is 3, the changing unit 1106 does not change the first interval because it determines that the specific number of data is smaller than the predetermined threshold. In this case, the selection unit 1104 selects “extend arm” data and “pull arm” data as specific data according to the degree of overlap calculated by the range evaluation unit 103.

また、所定の閾値が1である場合、変更部1106は、特定のデータ数が所定の閾値よりも大きいと判定するため、第1間隔を変更する。例えば、変更部1106は、第1区間及び第2区間をそれぞれ2分割することにより、第1間隔を変更する。   When the predetermined threshold is 1, the changing unit 1106 changes the first interval in order to determine that the specific number of data is larger than the predetermined threshold. For example, the changing unit 1106 changes the first interval by dividing each of the first section and the second section into two.

以降、第1区間は、第1−1区間(すなわち、0乃至250)及び第1−2区間(すなわち、251乃至500)に分割され、第2区間は、第2−1区間(すなわち、501乃至750)及び第2−2区間(すなわち、751乃至1000)に分割されるとする。   Thereafter, the first section is divided into a 1-1 section (that is, 0 to 250) and a 1-2 section (that is, 251 to 500), and the second section is divided into a 2-1 section (that is, 501). To 750) and 2-2 section (that is, 751 to 1000).

加速度データにおけるピークが、時刻160[msec]、310[msec]に存在するため、範囲評価部103は、第1−1区間に1つのピーク、第1−2区間に1つのピークが存在すると判定する。さらに、範囲評価部103は、「腕を突き出す」データについて、第1−1区間に1つのピーク、第1−2区間に1つのピークが存在すると判定する。   Since peaks in the acceleration data exist at times 160 [msec] and 310 [msec], the range evaluation unit 103 determines that there is one peak in the 1-1 section and one peak in the 1-2 section. To do. Further, the range evaluation unit 103 determines that there is one peak in the 1-1 section and one peak in the 1-2 section for the “extend arm” data.

同様に、範囲評価部103は、「腕を引く」データについて、第1−2区間において2つのピークが存在すると判定する。すなわち、範囲評価部103は、「腕を突き出す」データと加速度データとにおいて、ピークが出現する区間が一致するため、「腕を引く」データよりも「腕を突き出す」データに高い重なり度を算出する。この場合、選択部1104は、範囲評価部103が算出する重なり度に応じて、「腕を突き出す」データを、特定のデータとして選び出す。   Similarly, the range evaluation unit 103 determines that there are two peaks in the first-second section for the “pull arm” data. That is, the range evaluation unit 103 calculates a higher degree of overlap in the “extend arm” data than in the “pull out arm” data, since the peak appearing sections match in the “extrude arm” data and the acceleration data. To do. In this case, the selection unit 1104 selects the “projecting arm” data as specific data according to the degree of overlap calculated by the range evaluation unit 103.

類似度算出部1105は、該特定のデータと、加速度データとの類似度を算出する。スマートフォンは、類似度算出部1105が算出する類似度に応じて、加速度データに関する動作の種類を判定する。例えば、類似度算出部1105が、加速度データと「腕を突き出す」データとの類似度が高いと判定する場合、スマートフォンは、ディスプレイに、ユーザの動作が「腕を突き出す」動作であると表示する。   The similarity calculation unit 1105 calculates the similarity between the specific data and the acceleration data. The smartphone determines the type of operation related to the acceleration data according to the similarity calculated by the similarity calculation unit 1105. For example, when the similarity calculation unit 1105 determines that the similarity between the acceleration data and the “extend arm” data is high, the smartphone displays on the display that the user's operation is an “extrude arm” operation. .

すなわち、本実施形態によれば、加速度データと比較する教師データの数を削減することができる。従って、本実施形態に係る類似度算出装置によれば、データ数が増大する場合においても、高速に類似度を算出することができる。   That is, according to this embodiment, the number of teacher data to be compared with acceleration data can be reduced. Therefore, according to the similarity calculation apparatus according to the present embodiment, the similarity can be calculated at high speed even when the number of data increases.

<第5の実施形態>
次に、上述した第1の実施形態を基本とする本発明の第5の実施形態について説明する。
<Fifth Embodiment>
Next, a fifth embodiment of the present invention based on the first embodiment described above will be described.

以下の説明においては、本実施形態に係る特徴的な部分を中心に説明すると共に、上述した第1の実施形態と同様な構成については、同一の参照番号を付すことにより、重複する説明を省略する。   In the following description, the characteristic part according to the present embodiment will be mainly described, and the same components as those in the first embodiment described above will be denoted by the same reference numerals, and redundant description will be omitted. To do.

図16と図17とを参照しながら、第5の実施形態に係る情報処理装置1508が有する構成と、情報処理装置1508が行う処理とについて説明する。図16は、本発明の第5の実施形態に係る情報処理装置1508が有する構成を示すブロック図である。図17は、第5の実施形態に係る情報処理装置1508における処理の流れを示すフローチャートである。   The configuration of the information processing apparatus 1508 according to the fifth embodiment and the processing performed by the information processing apparatus 1508 will be described with reference to FIGS. FIG. 16 is a block diagram showing a configuration of an information processing apparatus 1508 according to the fifth embodiment of the present invention. FIG. 17 is a flowchart showing the flow of processing in the information processing apparatus 1508 according to the fifth embodiment.

情報処理装置1508は、類似度算出装置1501と、判定部1507と、管理部1506とを有する。類似度算出装置1501は、特徴量算出部1502と、範囲評価部1503と、選択部104と、類似度算出部105とを有する。   The information processing device 1508 includes a similarity calculation device 1501, a determination unit 1507, and a management unit 1506. The similarity calculation device 1501 includes a feature amount calculation unit 1502, a range evaluation unit 1503, a selection unit 104, and a similarity calculation unit 105.

判定部1507は、類似度算出部105が算出する類似度に応じて、該類似度が高い特定のデータに関連付けされた値(図14等が表す例においては、動作の種類)を算出する。例えば、判定部1507は、加速度データが「腕を突き出す」データに最も類似する場合、ユーザの動作が「腕を突き出す」であると推定する。   The determination unit 1507 calculates a value associated with specific data with a high similarity (in the example shown in FIG. 14 and the like, the type of action) according to the similarity calculated by the similarity calculation unit 105. For example, when the acceleration data is most similar to the “extend arm” data, the determination unit 1507 estimates that the user's action is “extend the arm”.

管理部1506は、判定部1507が推定する値が、受け取る値に一致するか否かに応じて(ステップS1601)、教師データを更新するか否かを決定する。管理部1506は、判定部1507が推定する値が、受け取る値に一致すると判定する場合(ステップS1601にてYESと判定)、教師データを更新しない。管理部1506は、判定部1507が推定する値が、受け取る値に一致しないと判定する場合(ステップS1601にてNOと判定)、教師データを受け取る値に基づいて更新する(ステップS1602)。   The management unit 1506 determines whether or not to update the teacher data depending on whether or not the value estimated by the determination unit 1507 matches the received value (step S1601). If the management unit 1506 determines that the value estimated by the determination unit 1507 matches the received value (YES in step S1601), the management unit 1506 does not update the teacher data. When determining that the value estimated by the determination unit 1507 does not match the received value (NO in step S1601), the management unit 1506 updates the value based on the received teacher data (step S1602).

例えば、管理部1506は、受け取る値(すなわち、この例において「腕を突き出す」)を受け取るとする。判定部1507が加速度データを「腕を突き出す」データであると推定する場合に、受け取る値(すなわち、この例において「腕を突き出す」)は、判定部1507が推定する値と一致する。このため、管理部1506は、教師データを更新しない。   For example, it is assumed that the management unit 1506 receives a received value (that is, “extends an arm” in this example). When the determination unit 1507 estimates that the acceleration data is “extends the arm” data, the value received (that is, “extends the arm” in this example) matches the value estimated by the determination unit 1507. For this reason, the management unit 1506 does not update the teacher data.

一方、例えば、管理部1506は、受け取る値(すなわち、この例において「腕を引く」)を受け取るとする。この場合、判定部1507が推定する値(すなわち、この例において「腕を突き出す」)と受け取る値(すなわち、この例において「腕を引く」)とは異なる。従って、管理部1506は、受け取る値(すなわち、この例において「腕を引く」)に基づいて教師データを更新する。すなわち、管理部1506は、受け取る値と、加速度データに基づいて特徴量算出部1502が算出する特徴量とを関連付けて、教師データに追加する。管理部1506は、教師データから、判定部1507が推定する値(この例においては「腕を突き出す」)に関連付けされた特徴量等を削除してもよい。   On the other hand, for example, it is assumed that the management unit 1506 receives a received value (that is, “pull an arm” in this example). In this case, the value estimated by the determination unit 1507 (that is, “extends the arm” in this example) and the value received (that is, “pulls the arm” in this example) are different. Accordingly, the management unit 1506 updates the teacher data based on the received value (that is, “pull the arm” in this example). That is, the management unit 1506 associates the received value with the feature amount calculated by the feature amount calculation unit 1502 based on the acceleration data, and adds it to the teacher data. The management unit 1506 may delete the feature amount or the like associated with the value estimated by the determination unit 1507 (in this example, “protrud arm”) from the teacher data.

第4の実施形態に示す例を用いて、本実施形態に係る情報処理装置1508における処理について説明する。   Processing in the information processing apparatus 1508 according to the present embodiment will be described using the example shown in the fourth embodiment.

情報処理装置1508(例えば、スマートフォン)は、ディスプレイ(不図示)に、判定部1507が推定する値が、正しいことを表す信号を管理部1506に送る「正解」ボタン、及び、判定部1507が推定する値が、誤りであることを表す信号を管理部1506に送る「間違い」ボタンを表示する。ユーザは、判定部1507が推定する値が正しい場合に、「正解」ボタンを押下する。一方、ユーザは、判定部1507が推定する値が、誤りである場合に、「間違い」ボタンを押下する。   The information processing device 1508 (for example, a smartphone) has a “correct” button for sending a signal indicating that the value estimated by the determination unit 1507 is correct to the management unit 1506 on a display (not shown), and the determination unit 1507 estimates A “wrong” button for sending a signal indicating that the value to be performed is an error to the management unit 1506 is displayed. The user presses the “correct answer” button when the value estimated by the determination unit 1507 is correct. On the other hand, when the value estimated by the determination unit 1507 is incorrect, the user presses the “wrong” button.

ユーザが「正解」ボタン、または、「間違い」ボタンを押下する処理に応じて、管理部1506は、処理を開始する。   In response to a process in which the user presses the “correct answer” button or the “wrong” button, the management unit 1506 starts the process.

情報処理装置1508は、ユーザが「間違い」ボタンを押下する場合に、ディスプレイ(不図示)に文字列を入力する入力欄を表示する。ユーザは、該入力欄に動作の種類を入力する。次に、管理部1506は、ユーザが入力した動作の種類と、加速度データに基づいて算出する特徴量とを関連付けて教師データに追加する。   When the user presses the “wrong” button, the information processing apparatus 1508 displays an input field for inputting a character string on a display (not shown). The user inputs the type of operation in the input field. Next, the management unit 1506 associates the type of motion input by the user with the feature amount calculated based on the acceleration data and adds it to the teacher data.

例えば、ユーザが入力欄に「腕を回す」と入力し、加速度データに関して特徴量算出部1502が算出する特徴量が、160[msec]、300[msec]、800[msec]であるとする。この例の場合、管理部1506は、「腕を回す」を、160[msec]、300[msec]及び800[msec]である特徴量に関連付けて教師データに追加する。管理部1506は、誤りである値に関連付けされた教師データを削除してもよい。   For example, it is assumed that the user inputs “turn the arm” in the input field, and the feature amounts calculated by the feature amount calculation unit 1502 regarding the acceleration data are 160 [msec], 300 [msec], and 800 [msec]. In this example, the management unit 1506 adds “turn the arm” to the teacher data in association with the feature amounts of 160 [msec], 300 [msec], and 800 [msec]. The management unit 1506 may delete the teacher data associated with the erroneous value.

第5の実施形態における類似度算出装置は、第1の実施形態と同様の構成を含むため、第1の実施形態と同様の効果を享受することができる。すなわち、第5の実施形態に係る類似度算出装置によれば、データ数が増大する場合においても、高速に類似度を算出することができる。   Since the similarity calculation device according to the fifth embodiment includes the same configuration as that of the first embodiment, the same effect as that of the first embodiment can be obtained. That is, according to the similarity calculation apparatus according to the fifth embodiment, the similarity can be calculated at high speed even when the number of data increases.

さらに、管理部1506は、判定部1507が推定する値が正しくない場合に、該値と関連付けされた教師データを、正しい値に更新する。したがって、教師データは、加速度センサが計測するユーザの動作に応じた加速度データと、該動作の種類とを、正しく関連付ける。この結果、範囲評価部1503は、管理部1506が更新する教師データに基づいて重なり度を算出する。すなわち、範囲評価部1503が算出する重なり度がより正確になるため、本実施形態に係る情報処理装置によれば、更に、ユーザの動作を正しく判定することができる。   Furthermore, when the value estimated by the determination unit 1507 is not correct, the management unit 1506 updates the teacher data associated with the value to a correct value. Therefore, the teacher data correctly associates the acceleration data corresponding to the user's operation measured by the acceleration sensor and the type of the operation. As a result, the range evaluation unit 1503 calculates the degree of overlap based on the teacher data updated by the management unit 1506. That is, since the degree of overlap calculated by the range evaluation unit 1503 becomes more accurate, the information processing apparatus according to the present embodiment can further correctly determine the user's action.

(ハードウェア構成例)
上述した本発明の各実施形態における類似度算出装置を、1つの計算処理装置(情報処理装置、コンピュータ)を用いて実現するハードウェア資源の構成例について説明する。但し、係る類似度算出装置は、物理的または機能的に少なくとも2つの計算処理装置を用いて実現してもよい。また、係る類似度算出装置は、専用の装置として実現してもよい。
(Hardware configuration example)
A configuration example of hardware resources that realizes the similarity calculation device according to each embodiment of the present invention described above using one calculation processing device (information processing device, computer) will be described. However, the similarity calculation device may be realized using at least two calculation processing devices physically or functionally. Further, the similarity calculation device may be realized as a dedicated device.

図18は、第1の実施形態乃至第5の実施形態に係る類似度算出装置を実現可能な計算処理装置のハードウェア構成を概略的に示す図である。計算処理装置20は、中央処理演算装置(Central Processing Unit、以降「CPU」と表す)21、メモリ22、ディスク23、不揮発性記録媒体24、入力装置25、および、出力装置26を有する。   FIG. 18 is a diagram schematically illustrating a hardware configuration of a calculation processing apparatus capable of realizing the similarity calculation apparatus according to the first to fifth embodiments. The calculation processing device 20 includes a central processing unit (Central Processing Unit, hereinafter referred to as “CPU”) 21, a memory 22, a disk 23, a nonvolatile recording medium 24, an input device 25, and an output device 26.

不揮発性記録媒体24は、コンピュータが読み取り可能な、例えば、コンパクトディスク(Compact Disc)、デジタルバーサタイルディスク(Digital Versatile Disc)、ブルーレイディスク(Blu−ray Disc。登録商標)、ユニバーサルシリアルバスメモリ(USBメモリ)、ソリッドステートドライブ(Solid State Drive)等を指しており、電源を供給しなくても係るプログラムを保持し、持ち運びを可能にする。不揮発性記録媒体24は、上述した媒体に限定されない。また、不揮発性記録媒体24の代わりに、通信ネットワークを介して係るプログラムを持ち運びしてもよい。   The non-volatile recording medium 24 can be read by a computer, for example, a compact disc (Compact Disc), a digital versatile disc, a Blu-ray Disc (registered trademark), a universal serial bus memory (USB memory). ), A solid state drive (Solid State Drive), etc., and the program can be retained and carried even without power supply. The nonvolatile recording medium 24 is not limited to the above-described medium. Further, the program may be carried via a communication network instead of the nonvolatile recording medium 24.

すなわち、CPU21は、ディスク23が記憶するソフトウェア・プログラム(コンピュータ・プログラム:以下、単に「プログラム」と称する)を、実行する際にメモリ22にコピーし、演算処理を実行する。CPU21は、プログラム実行に必要なデータをメモリ22から読み取る。表示が必要な場合には、CPU21は、出力装置26に出力結果を表示する。外部からプログラムを入力する場合、CPU21は、入力装置25からプログラムを読み取る。CPU21は、上述した図1、図7、図10、図12、あるいは、図16に示した各部が表す機能(処理)に対応するところのメモリ22にある類似度算出プログラム(図2、図3、図8、図11、図13あるいは、図17)を解釈し実行する。CPU21は、上述した本発明の各実施形態において説明した処理を順次行う。   That is, the CPU 21 copies a software program (computer program: hereinafter simply referred to as “program”) stored in the disk 23 to the memory 22 when executing it, and executes arithmetic processing. The CPU 21 reads data necessary for program execution from the memory 22. When the display is necessary, the CPU 21 displays the output result on the output device 26. When inputting a program from the outside, the CPU 21 reads the program from the input device 25. The CPU 21 calculates a similarity calculation program (FIGS. 2 and 3) in the memory 22 corresponding to the function (process) represented by each unit shown in FIG. 1, FIG. 7, FIG. 10, FIG. 12, or FIG. 8, FIG. 11, FIG. 13 or FIG. 17) are interpreted and executed. The CPU 21 sequentially performs the processes described in the above-described embodiments of the present invention.

すなわち、このような場合、本発明は、係る類似度算出プログラムによっても成し得ると捉えることができる。更に、係る類似度算出プログラムが記録されたコンピュータ読み取り可能な記録媒体によっても、本発明は成し得ると捉えることができる。   That is, in such a case, it can be understood that the present invention can also be realized by such a similarity calculation program. Furthermore, it can be understood that the present invention can also be realized by a computer-readable recording medium in which the similarity calculation program is recorded.

101 類似度算出装置
102 特徴量算出部
103 範囲評価部
104 選択部
105 類似度算出部
701 類似度算出装置
702 特徴量算出部
901 類似度算出装置
902 特徴量算出部
1101 類似度算出装置
1104 選択部
1105 類似度算出部
1106 変更部
1501 類似度算出装置
1502 特徴量算出部
1503 範囲評価部
1506 管理部
1507 判定部
1508 情報処理装置
20 計算処理装置
21 CPU
22 メモリ
23 ディスク
24 不揮発性記録媒体
25 入力装置
26 出力装置
DESCRIPTION OF SYMBOLS 101 Similarity calculation apparatus 102 Feature quantity calculation part 103 Range evaluation part 104 Selection part 105 Similarity calculation part 701 Similarity calculation apparatus 702 Feature quantity calculation part 901 Similarity degree calculation apparatus 902 Feature quantity calculation part 1101 Similarity degree calculation apparatus 1104 Selection part DESCRIPTION OF SYMBOLS 1105 Similarity calculation part 1106 Change part 1501 Similarity calculation apparatus 1502 Feature-value calculation part 1503 Range evaluation part 1506 Management part 1507 Determination part 1508 Information processing apparatus 20 Computation processing apparatus 21 CPU
22 Memory 23 Disk 24 Non-volatile recording medium 25 Input device 26 Output device

Claims (10)

所定の特徴量算出手順に従い、データを特徴付ける特徴量を算出する特徴量算出部と、
教師データに含まれるデータについて前記特徴量算出部が算出する前記特徴量である第1特徴量と、対象データについて前記特徴量算出部が算出する前記特徴量である第2特徴量とに基づいて、所定の度数算出手順に従い、前記特徴量に関する類似度を表す重なり度を算出する範囲評価部と、
前記重なり度に応じて、前記教師データから特定のデータを選び出す選択部と、
前記特定のデータと、前記対象データとの類似度を算出する類似度算出部と
を備える類似度算出装置。
A feature amount calculation unit that calculates a feature amount that characterizes the data according to a predetermined feature amount calculation procedure;
Based on the first feature value that is the feature value calculated by the feature value calculation unit for data included in the teacher data and the second feature value that is the feature value calculated by the feature value calculation unit for target data. In accordance with a predetermined frequency calculation procedure, a range evaluation unit that calculates the degree of overlap representing the degree of similarity related to the feature amount;
A selection unit that selects specific data from the teacher data according to the degree of overlap;
A similarity calculation device comprising: a similarity calculation unit that calculates the similarity between the specific data and the target data.
前記特徴量算出部は、第1の値に応じて第2の値が決まる場合に、前記第2の値からなる領域を第1間隔に従って複数の第1区間に分割するとともに、前記第2の値の極大値を算出し、前記第1区間について、算出した極大値が出現する頻度を計測し、前記頻度が低い前記極大値を与える前記第1の値を、前記特徴量として算出する前記所定の特徴量算出手順によって、前記特徴量を算出する
請求項1に記載の類似度算出装置。
When the second value is determined according to the first value, the feature amount calculation unit divides the region including the second value into a plurality of first sections according to a first interval, and the second value Calculating the local maximum value of the value, measuring the frequency at which the calculated local maximum value appears for the first section, and calculating the first value giving the local maximum value with the low frequency as the feature amount The similarity calculation device according to claim 1, wherein the feature amount is calculated by a feature amount calculation procedure.
前記特徴量算出部は、第1の値に応じて第2の値が決まる場合に、前記第1の値からなる領域を第2間隔に従って複数の第2区間に分割し、所定の代表値算出手順に従い、前記第2区間を代表する代表値を算出し、算出した前記代表値からなる領域を第3間隔に従って複数の第3区間に分割し、前記第3区間において、前記代表値が出現する頻度を計測し、計測した前記頻度が少ない前記代表値を与える前記第2区間における前記第1の値を、前記特徴量として算出する前記所定の特徴量算出手順によって、前記特徴量を算出する
請求項1に記載の類似度算出装置。
When the second value is determined according to the first value, the feature amount calculation unit divides the region including the first value into a plurality of second sections according to a second interval, and calculates a predetermined representative value According to the procedure, a representative value representative of the second interval is calculated, and the region including the calculated representative value is divided into a plurality of third intervals according to a third interval, and the representative value appears in the third interval. The feature amount is calculated by the predetermined feature amount calculation procedure for measuring the frequency and calculating the first value in the second section that gives the representative value with the low measured frequency as the feature amount. Item 3. The similarity calculation device according to item 1.
前記特徴量算出部は、第1の値に応じて第2の値が決まる関数において、前記第1の値からなる領域を第2間隔に従って複数の第2区間に分割し、前記第2区間における前記関数をフーリエ変換し、変換後に得られる振幅が大きな値に対応する周波数を、第4間隔に基づいて区分し、区分した第4区間における頻度を計測し、少ない前記頻度を与える前記第2区間における前記第1の値を前記特徴量として算出する前記所定の特徴量算出手順によって、前記特徴量を算出する
請求項1に記載の類似度算出装置。
The feature amount calculation unit divides a region including the first value into a plurality of second sections according to a second interval in a function in which a second value is determined according to the first value, Fourier transform of the function, the frequency corresponding to a large amplitude value obtained after the transformation is divided based on the fourth interval, the frequency in the divided fourth interval is measured, and the second interval giving the low frequency The similarity calculation device according to claim 1, wherein the feature amount is calculated by the predetermined feature amount calculation procedure for calculating the first value in the as the feature amount.
前記範囲評価部は、前記第1特徴量と、前記第2特徴量との間における離散の度合いに応じて前記重なり度を算出する前記所定の度数算出手順によって、前記重なり度を算出する
請求項2乃至請求項4のいずれかに記載の類似度算出装置。
The range evaluation unit calculates the degree of overlap according to the predetermined frequency calculation procedure for calculating the degree of overlap according to a degree of discreteness between the first feature amount and the second feature amount. The similarity calculation apparatus according to claim 2.
前記特定のデータにおけるデータ数に応じて、前記第2間隔を算出する変更部を更に備え、
前記所定の特徴量算出手順は、前記変更部が算出する前記第2間隔に基づき、前記特徴量を算出する手順である
請求項3乃至請求項5のいずれかに記載の類似度算出装置。
According to the number of data in the specific data, further comprising a change unit that calculates the second interval,
The similarity calculation apparatus according to any one of claims 3 to 5, wherein the predetermined feature amount calculation procedure is a procedure of calculating the feature amount based on the second interval calculated by the changing unit.
前記教師データは、それぞれ、動作の種類に関連付けされており、
請求項1乃至請求項6に記載の類似度算出装置と、
最も大きな前記類似度を有するデータに関連付けされた前記動作の種類を算出する判定部と
を備える情報処理装置。
Each of the teacher data is associated with an action type,
The similarity calculation device according to claim 1,
An information processing apparatus comprising: a determination unit that calculates a type of the operation associated with data having the largest similarity.
前記判定部が算出する前記動作の種類が正しくない場合に、前記対象データと正しい動作の種類とを関連付けて、前記教師データに追加する管理部
を更に備える請求項7に記載の情報処理装置。
The information processing apparatus according to claim 7, further comprising: a management unit that associates the target data with a correct operation type and adds to the teacher data when the operation type calculated by the determination unit is incorrect.
情報処理装置を用いて、教師データに含まれるデータについて所定の特徴量算出手順に従い算出された特徴量である第1特徴量と、対象データについて前記所定の特徴量算出手順に従い算出された前記特徴量である第2特徴量とに基づいて、所定の度数算出手順に従い、前記特徴量に関する類似度を表す重なり度を算出し、前記重なり度に応じて、前記教師データから特定のデータを選び、前記特定のデータと、前記対象データとの類似度を算出する類似度算出方法。   Using the information processing apparatus, the first feature amount, which is a feature amount calculated according to a predetermined feature amount calculation procedure for data included in the teacher data, and the feature calculated according to the predetermined feature amount calculation procedure for target data Based on the second feature value that is a quantity, according to a predetermined frequency calculation procedure, calculate the degree of overlap representing the degree of similarity with respect to the feature quantity, and select specific data from the teacher data according to the degree of overlap, A similarity calculation method for calculating a similarity between the specific data and the target data. 所定の特徴量算出手順に従い、データを特徴付ける特徴量を算出する特徴量算出機能と、
教師データに含まれるデータについて前記特徴量算出機能が算出する前記特徴量である第1特徴量と、対象データについて前記特徴量算出機能が算出する前記特徴量である第2特徴量とに基づいて、所定の度数算出手順に従い、前記特徴量に関する類似度を表す重なり度を算出する範囲評価機能と、
前記重なり度に応じて、前記教師データから特定のデータを選び出す選択機能と、
前記特定のデータと、前記対象データとの類似度を算出する類似度算出機能と
をコンピュータに実現させる類似度算出プログラム。
A feature amount calculation function for calculating a feature amount that characterizes data according to a predetermined feature amount calculation procedure;
Based on the first feature value that is the feature value calculated by the feature value calculation function for data included in the teacher data and the second feature value that is the feature value calculated by the feature value calculation function for target data. A range evaluation function for calculating the degree of overlap representing the degree of similarity related to the feature amount according to a predetermined frequency calculation procedure;
A selection function for selecting specific data from the teacher data according to the degree of overlap;
A similarity calculation program for causing a computer to realize a similarity calculation function for calculating the similarity between the specific data and the target data.
JP2013161445A 2013-08-02 2013-08-02 Similarity calculation device, similarity calculation method, similarity calculation program, and information processor Pending JP2015029696A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013161445A JP2015029696A (en) 2013-08-02 2013-08-02 Similarity calculation device, similarity calculation method, similarity calculation program, and information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013161445A JP2015029696A (en) 2013-08-02 2013-08-02 Similarity calculation device, similarity calculation method, similarity calculation program, and information processor

Publications (1)

Publication Number Publication Date
JP2015029696A true JP2015029696A (en) 2015-02-16

Family

ID=52515543

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013161445A Pending JP2015029696A (en) 2013-08-02 2013-08-02 Similarity calculation device, similarity calculation method, similarity calculation program, and information processor

Country Status (1)

Country Link
JP (1) JP2015029696A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017023449A (en) * 2015-07-23 2017-02-02 沖電気工業株式会社 Activity amount estimation device, activity amount estimation method, program, model generation device, and model generation method
JP2020014702A (en) * 2018-07-25 2020-01-30 山下 克宏 Motion evaluation system
WO2020153031A1 (en) * 2019-01-21 2020-07-30 株式会社アルファコード User attribute estimation device and user attribute estimation method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017023449A (en) * 2015-07-23 2017-02-02 沖電気工業株式会社 Activity amount estimation device, activity amount estimation method, program, model generation device, and model generation method
JP2020014702A (en) * 2018-07-25 2020-01-30 山下 克宏 Motion evaluation system
WO2020153031A1 (en) * 2019-01-21 2020-07-30 株式会社アルファコード User attribute estimation device and user attribute estimation method
JP2020119097A (en) * 2019-01-21 2020-08-06 株式会社アルファコード User attribute estimation device and user attribute estimation method
JP7453490B2 (en) 2019-01-21 2024-03-21 株式会社アルファコード User attribute estimation device and user attribute estimation method

Similar Documents

Publication Publication Date Title
US9847042B2 (en) Evaluation method, and evaluation apparatus
US20200397346A1 (en) Annotation method, annotation device, storage medium, and identification system
US11246493B2 (en) Wrist temperature rhythm acquisition apparatus and method, core temperature rhythm acquisition apparatus and method, and wearable device
KR102655676B1 (en) Apparatus and method for estimating blood pressure, and apparatus for supporting blood pressure estimation
US20150193654A1 (en) Evaluation method, evaluation apparatus, and recording medium
JP2017086894A (en) Signal feature extracting method, and apparatus and computer-readable storage medium therefor
US11164094B2 (en) Device, method, and non-transitory computer readable storage medium for labelling motion data
JP2015029696A (en) Similarity calculation device, similarity calculation method, similarity calculation program, and information processor
JP2018202130A (en) State estimation apparatus, information processor, and state estimation system
JP2013034670A (en) Cardiac sound information processor, cardiac sound information processing method, and cardiac sound information processing program
US20210264939A1 (en) Attribute identifying device, attribute identifying method, and program storage medium
TW202034845A (en) Baseline correction and extraction of heartbeat profiles
KR102065912B1 (en) Apparatus and method for obtaining image for user authentication using sensing pressure
JP2018109801A5 (en)
JPWO2017145363A1 (en) Measuring apparatus and measuring program
JP2017205145A (en) Pulse estimation device, pulse estimation system, pulse estimation method, and pulse estimation program
CN113764099A (en) Psychological state analysis method, device, equipment and medium based on artificial intelligence
US20170371418A1 (en) Method for recognizing multiple user actions on basis of sound information
KR101048479B1 (en) Game interface method and system using surface EMG sensor and inertial sensor
JP5846165B2 (en) Feature amount extraction apparatus, method, and program
TW201337792A (en) Measuring device and method of performance of electronic produce
US20190133467A1 (en) System and method for identifying baby needs
JP7016680B2 (en) Biometric information processing equipment, biometric information processing methods and programs
KR102330811B1 (en) System for processing learning data of human care robot for elderly people
KR20220098314A (en) Training method and apparatus for neural network and related object detection method and apparatus