LEARNING DEVICE, ESTIMATION DEVICE, LEARNING METHOD, ESTIMATION METHOD, AND PROGRAM
20210357812 · 2021-11-18
Assignee
Inventors
- Yuki Kurauchi (Tokyo, JP)
- Naoto ABE (Tokyo, JP)
- Hiroshi KONISHI (Tokyo, JP)
- Hitoshi Seshimo (Tokyo, JP)
Cpc classification
G01D3/00
PHYSICS
International classification
Abstract
A learning apparatus (10) according to the present invention includes: a normalization/standardization unit (13) that performs normalization or standardization on data detected by a plurality of types of sensors; and a learning unit (14) that builds a model by performing machine learning, using, as training data, the detected data on which normalization or standardization has been performed by the normalization/standardization unit (13). The normalization/standardization unit (13) performs normalization or standardization for each type of sensor, on the data detected by the sensor.
Claims
1. A apparatus that builds a model by performing machine learning, using, as training data, data detected by a plurality of types of sensors that detect a state of a subject, the apparatus comprising: a normalizer-standardizer configured to perform normalization or standardization on data detected by the plurality of types of sensors; and a learner configured to build the model by performing machine learning, using, as training data, the detected data on which normalization or standardization has been performed by the normalizer-standardizer, wherein the normalizer-standardizer performs normalization or standardization for each type of sensor, on data detected by the sensor.
2. The apparatus according to claim 1, wherein the plurality of types of sensors include a gravity sensor that detects a direction of gravity, the learning apparatus further comprises a corrector configured to correct data detected by a sensor that detects the state of the subject in a predetermined axis direction, other than the gravity sensor, of the plurality of types of sensors, based on data detected by the gravity sensor, and the normalizer-standardizer performs normalization or standardization on the detected data that has been corrected by the corrector.
3. The apparatus according to claim 1, wherein the apparatus estimates a state of a subject, using a model that has been built through machine learning performed using, as training data, data detected by a plurality of types of sensors that detect the state of the subject, the learning apparatus further comprising: an estimator configured to estimate the state of the subject by applying the detected data on which normalization or standardization has been performed by the normalizer-standardizer, to the model, wherein the normalizer-standardizer performs normalization or standardization for each type of sensor, on data detected by the sensor.
4. The apparatus according to claim 3, wherein the plurality of types of sensors include a gravity sensor that detects a direction of gravity, the apparatus further comprises a corrector that corrects data detected by a sensor that detects the state of the subject in a predetermined axis direction, other than the gravity sensor, of the plurality of types of sensors, based on data detected by the gravity sensor, and the normalizer-standardizer performs normalization or standardization on the detected data that has been corrected by the corrector.
5. (canceled)
6. A method that is to be performed by an apparatus that estimates a state of a subject, using a model that has been built through machine learning performed using, as training data, data detected by a plurality of types of sensors that detect the state of the subject, the estimation method comprising: performing, by a normalizer-standardizer, normalization or standardization on data detected by the plurality of types of sensors; and estimating, by an estimator, the state of the subject by applying the detected data on which normalization or standardization has been performed, to the model, wherein, in the normalization/standardization step, normalization or standardization is performed for each type of sensor, on data detected by the sensor.
7. A computer-readable non-transitory recording medium storing computer-executable instructions that when executed by a processor cause a computer system to: perform, by a normalizer-standardizer, normalization or standardization on data detected by the plurality of types of sensors; and perform, by a learner, machine learning, using, as training data, the detected data on which normalization or standardization has been performed, wherein the performing includes normalization or standardization of each type of sensor, on data detected by the sensor.
8. The computer-readable non-transitory recording medium according to claim 7, wherein the apparatus estimates a state of a subject, using a model that has been built through machine learning performed using, as training data, data detected by a plurality of types of sensors that detect the state of the subject, the computer-executable instructions when executed further causing the computer system to: estimate, by an estimator, the state of the subject by applying the detected data on which normalization or standardization has been performed by the normalizer-standardizer, to the model, wherein the normalizer-standardizer performs normalization or standardization for each type of sensor, on data detected by the sensor.
9. The method according to claim 6 associated with the apparatus that builds a model by performing machine learning, using, as training data, data detected by a plurality of types of sensors that detect a state of a subject, the method further comprising: performing, by a learner, a learning step of building the model by performing machine learning, using, as training data, the detected data on which normalization or standardization has been performed, wherein the performing by the normalizer-standardizer includes normalization or standardization is performed for of each type of sensor, on data detected by the sensor.
10. The method according to claim 6, wherein the plurality of types of sensors include a gravity sensor that detects a direction of gravity, the method further comprising: correcting, by a corrector, data detected by a sensor that detects the state of the subject in a predetermined axis direction, other than the gravity sensor, of the plurality of types of sensors, based on data detected by the gravity sensor; and performing, by the normalizer-standardizer performs normalization or standardization on the detected data that has been corrected by the corrector.
11. The method according to claim 9, wherein the plurality of types of sensors include a gravity sensor that detects a direction of gravity, the method further comprising: correcting, by a corrector, data detected by a sensor that detects the state of the subject in a predetermined axis direction, other than the gravity sensor, of the plurality of types of sensors, based on data detected by the gravity sensor; and performing, by the normalizer-standardizer performs normalization or standardization on the detected data that has been corrected by the corrector.
12. The computer-readable non-transitory recording medium of claim 7, wherein the plurality of types of sensors include a gravity sensor that detects a direction of gravity, the computer-executable instructions when executed further causing the computer system to: correct, by a corrector, data detected by a sensor that detects the state of the subject in a predetermined axis direction, other than the gravity sensor, of the plurality of types of sensors, based on data detected by the gravity sensor; and perform, by the normalizer-standardizer performs normalization or standardization on the detected data that has been corrected by the corrector.
13. The computer-readable non-transitory recording medium of claim 8, wherein the plurality of types of sensors include a gravity sensor that detects a direction of gravity, the computer-executable instructions when executed further causing the computer system to: correct, by a corrector, data detected by a sensor that detects the state of the subject in a predetermined axis direction, other than the gravity sensor, of the plurality of types of sensors, based on data detected by the gravity sensor; and perform, by the normalizer-standardizer performs normalization or standardization on the detected data that has been corrected by the corrector.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
DESCRIPTION OF EMBODIMENTS
[0027] Hereinafter, an embodiment for carrying out the present invention will be described with reference to the drawings. In the drawings, the same reference numerals indicate the same or equivalent constituent elements.
[0028]
[0029] The learning apparatus 10 shown in
[0030] Data detected by a plurality of types of sensors that detect the state of the subject is input to the correction unit 11 as training data. Note that detected data to which teacher labels indicating the state of the subject indicated by the detected data is added is used as the learning data. However, a description of the teacher labels is omitted below. Various sensors such as an acceleration sensor, a gyro sensor, a geomagnetic sensor, a gravity sensor, an atmospheric pressure sensor, and a tilt sensor may be used as the sensors that detect the state of the subject according to the need, depending on the subject of estimation. In the following description, the plurality of types of sensors include a gravity sensor.
[0031] The correction unit 11 corrects data detected by sensors (for example, an acceleration sensor, a gyro sensor, a geomagnetic sensor, and a tilt sensor) that detect the state of the subject in predetermined axis directions (movement of the subject, a tilt, etc.), other than the gravity sensor, of the plurality of types of sensors, based on data detected by the gravity sensor. Specifically, the correction unit 11 corrects values detected by the sensors by rotating the directions of the sensors with reference to the direction of gravity detected by the gravity sensor so that the directions of the sensors are made uniform.
[0032] The correction unit 11 obtains r, θ, and φ that satisfy Expression (1) shown below, where g=(x,y,t).sup.T denotes a value from the gravity sensor (T denotes transposition), R.sub.z (φ) denotes a rotation matrix for rotation about the Z axis, and R.sub.y (φ) denotes a rotation matrix for rotation about the Y axis. The correction unit 11 corrects the values detected by the sensors by applying an expression obtained by substituting r, θ, and φ thus obtained into Expression 1, to the values detected by the sensors.
[0033] The correction unit 11 outputs the corrected detected data to the classification unit 12. Note that, if the directions of the sensors have been made uniform in advance, the correction unit 11 need not perform correction.
[0034] The classification unit 12 classifies the pieces of detected data output from the correction unit 11, according to the types of the sensors, and outputs them to the normalization/standardization unit 13.
[0035] The normalization/standardization unit 13 performs normalization or standardization (normalization/standardization) (at least one of normalization and standardization) on the pieces of detected data output from the classification unit 12. Specifically, the normalization/standardization unit 13 performs normalization/standardization on the pieces of detected data classified by the classification unit 12 according to the types of the sensors, and the normalization/standardization unit 13 performs normalization/standardization for each type of sensor, on data detected by the sensor. The normalization/standardization unit 13 outputs the pieces of detected data that have been subjected to the normalization/standardization, to the learning unit 14.
[0036] The learning unit 14 performs machine learning using the detected data subjected to the normalization/standardization performed by the normalization/standardization unit 13 as training data, to build a model that is used to estimate the state of the subject.
[0037] The storage unit 15 stores the model built by the learning unit 14.
[0038]
[0039] The estimation apparatus 20 shown in
[0040] Data detected by a plurality of types of sensors that are attached to the subject of which the state is to be estimate is input to the correction unit 21 as input data. In the following description, the plurality of types of sensors include a gravity sensor.
[0041] The correction unit 21 corrects data detected by sensors (for example, an acceleration sensor, a gyro sensor, a geomagnetic sensor, and a tilt sensor) that detect the state of the subject in predetermined axis directions (movement of the subject, a tilt, etc.), other than the gravity sensor, of the plurality of types of sensors, based on data detected by the gravity sensor. Specifically, as with the correction unit 11 of the learning apparatus 10, the correction unit 21 corrects the detected data according to Expression 1. The correction unit 21 outputs the corrected detected data to the classification unit 22.
[0042] The classification unit 22 classifies the pieces of detected data output from the correction unit 21, according to the types of the sensors, and outputs them to the normalization/standardization unit 23.
[0043] The normalization/standardization unit 23 performs normalization/standardization (at least one of normalization and standardization) on the pieces of detected data output from the classification unit 22. Specifically, the normalization/standardization unit 23 performs normalization/standardization on the pieces of detected data classified by the classification unit 22 according to the types of the sensors, and the normalization/standardization unit 23 performs normalization/standardization for each type of sensor, on data detected by the sensor. The normalization/standardization unit 23 outputs the pieces of detected data that have been subjected to the normalization/standardization, to the estimation unit 25.
[0044] The storage unit 24 stores the model built by the learning apparatus 10.
[0045] The estimation unit 25 estimates the state of the subject by applying the detected data subjected to the normalization/standardization performed by the normalization/standardization unit 23, to the model stored in the storage unit 24. Specifically, the estimation unit 25 inputs the detected data output from the normalization/standardization unit 23, to the model, and outputs an output from the model as the result of estimation of the state of the subject.
[0046] Next, normalization/standardization performed by the normalization/standardization unit 13 and the normalization/standardization unit 23 will be described. Note that the normalization/standardization unit 13 and the normalization/standardization unit 23 employ the same normalization/standardization method. Therefore, the following describes the normalization/standardization unit 13 as an example, and a description of the normalization/standardization unit 23 will be omitted.
[0047] As described above, the normalization/standardization unit 13 performs normalization/standardization for each type of sensor, on data detected by the sensor. That is to say, as shown in
[0048]
[0049]
[0050] As described above, the normalization/standardization unit 13 performs normalization/standardization for each type of sensor, on data detected by the sensor. Therefore, in the case of the example shown in
[0051] The normalization/standardization unit 13 performs normalization according to Expression 2 shown below, and performs standardization according to Expression 3 shown below, where x denotes a value detected by a sensor, x′ denotes a detection value that has been subjected to normalization/standardization, and max, min, avr, and std respectively denote the maximum value, the minimum value, the average, and the variance of values detected by each type of sensor.
x′=(x−min)/(max−min) Expression 2
x′=(x−avr)/std Expression 3
[0052] In the example in
[0053] Next, a learning method performed by the learning apparatus 10 according to the present embodiment will be described with reference to the flowchart shown in
[0054] Upon receiving pieces of input detected data as training data (step S11), the correction unit 11 corrects the input detected data to make the directions of the sensors uniform (step S12).
[0055] The classification unit 12 classifies the pieces of detected data thus corrected by the correction unit 11, according to the types of the sensors (step S13).
[0056] The normalization/standardization unit 13 determines whether or not at least a predetermined amount of detected data (training data), classified by the classification unit 12 according to the types of the sensors, has been collected (step S14).
[0057] Upon determining that at least the predetermined amount of training data has not been collected (step S14: No), processing returns to step S11, and new training data is input to the correction unit 11.
[0058] Upon determining that at least the predetermined amount of training data has been collected (step S14: Yes), the normalization/standardization unit 13 performs normalization/standardization on the pieces of detected data classified by the classification unit 12 according to the types of the sensors (step S15).
[0059] The learning unit 14 performs machine learning on a learning model, using the detected data normalized/standardized by the normalization/standardization unit 13 as training data (step S16), to build a trained model. Thereafter, the learning unit 14 outputs the trained model thus built (step S17). Note that various models, including a model using the convolutional neural network, the SVM (Support Vector Machine), and so on, may be used as the learning model.
[0060] As described with reference to
[0061] Next, an estimation method performed by the estimation apparatus 20 according to the present embodiment will be described with reference to the flowchart shown in
[0062] Upon receiving, as input data, pieces of data detected by the plurality of types of sensors that detect the state of the subject (step S21), the correction unit 21 corrects the input detected data to make the directions of the sensors uniform (step S22).
[0063] The classification unit 22 classifies the pieces of detected data thus corrected by the correction unit 21, according to the types of the sensors (step S23).
[0064] The normalization/standardization unit 23 performs normalization/standardization on the pieces of detected data classified by the classification unit 22 according to the types of the sensors (step S24).
[0065] The estimation unit 25 estimates the state of the subject by inputting the detected data normalized/standardized by the normalization/standardization unit 23 to the trained model built by the learning apparatus 10 (step S25), and outputs an output from the trained model as the result of estimation (step S26).
[0066] As described with reference to
[0067] In this way, in the present embodiment, the learning apparatus 10 includes a normalization/standardization unit 13 that performs normalization or standardization on pieces of data detected by a plurality of types of sensors, and a learning unit 14 that builds a model by performing machine learning, using, as training data, the detected data on which normalization or standardization has been performed by the normalization/standardization unit 13. The normalization/standardization unit 13 performs normalization or standardization for each type of sensor, on data detected by the sensor.
[0068] Also, in the present embodiment, the estimation apparatus 20 includes a normalization/standardization unit 23 that performs normalization or standardization on data detected by a plurality of types of sensors, and an estimation unit 25 that estimates the state of the subject by applying the detected data that has been normalized or standardized by the normalization/standardization unit 23, to a model. The normalization/standardization unit 23 performs normalization or standardization for each type of sensor, on data detected by the sensor.
[0069] By performing normalization or standardization on detected data for each type of sensor, it is possible to perform normalization or standardization considering the differences between the averages/variances of the values detected by the sensors. In addition, by performing normalization or standardization on detected data for each type of sensor, it is possible to perform normalization or standardization considering changes in the value range caused due to the values detected by the sensor being corrected in order to make the directions of the sensors uniform. Therefore, with the learning apparatus 10 and the estimation apparatus 20 according to the present embodiment, it is possible to improve accuracy in performing machine learning on a model, using training data, and in performing estimation, using a model.
[0070] While the learning apparatus 10 and the estimation apparatus 20 have been described above, a computer may be used so as to function as the learning apparatus 10 and the estimation apparatus 20. Such a computer can be realized by storing a program that describes the content of processing performed to realize the functions of the learning apparatus 10 and the estimation apparatus 20, in a storage unit of the computer, and causing a CPU of the computer to read out and execute the program.
[0071] The program may be recorded on a computer-readable recording medium. By using such a recording medium, it is possible to install the program to a computer. Here, the recording medium on which the program is recorded may be a non-transitory recording medium. A non-transitory recording medium is not specifically limited, and may be a recording medium such as a CD-ROM or a DVD-ROM, for example.
[0072] Although the above embodiment has been described as a presentative example, it is obvious for a person skilled in the art that various modifications and replacements may be applied within the spirit and the scope of the present invention. Therefore, the present invention should not be construed as being limited by the above-described embodiment, and various modifications and changes may be made without departing from the scope of the claims. For example, in the configuration according to the present invention, it is possible to combine a plurality of constituent blocks described in the configuration diagram according to the embodiment into one block, or to divide one constituent block into a plurality of blocks.
REFERENCE SIGNS LIST
[0073] 10 Learning apparatus
[0074] 11 Correction unit
[0075] 12 Classification unit
[0076] 13 Normalization/standardization unit
[0077] 14 Learning unit
[0078] 15 Storage unit
[0079] 20 Specification apparatus
[0080] 21 Correction unit
[0081] 22 Classification unit
[0082] 23 Normalization/standardization unit
[0083] 24 Storage unit
[0084] 25 Estimation unit