This Application claims priority of Taiwan Patent Application No. 97145898, filed on Nov. 27, 2008, the entirety of which is incorporated by reference herein.
1. Field of the Invention
The invention relates generally to a motion mode determination method and apparatus and storage media using the same, and more particularly, to a motion mode determination method and apparatus and storage media using the same, which is capable of determining the surrounding terrain of a pedestrian.
2. Description of the Related Art
Electronic devices have become an essential part of every day life for humans. For example, when traveling, a Global Positioning System (GPS) is used to find the most appropriate routes for traveling. However, the GPS is not suitable for indoor usage, and even more is not suitable for a pedestrian. So it is necessary to provide a pedestrian with a motion mode determination method and apparatus for judging the surrounding terrain and helping him by the auxiliary guidance service.
The invention discloses a motion mode determination apparatus. The motion mode determination apparatus comprises an inertial device, a frequency decomposition module, a characteristic value generator, a training module and a determination module. The inertial device collects at least a first motion signal corresponding to a first motion mode and at least a second motion signal corresponding to a second motion mode, wherein each of the first motion signal and the second motion signal comprises a first signal, a second signal and a third signal. The frequency decomposition module decomposes each of the first signals into a first high-frequency signal and a first low-frequency signal. The characteristic value generator generates a plurality of characteristic values, wherein the characteristic values are the means and variances for each group of the first high-frequency signals, the first low-frequency signals, the second signals and the third signals respectively. The training module generates a first data group corresponding to the first motion mode and a second data group corresponding to the second motion mode, according to the characteristic values. The determination module determines the motion mode of a third motion signal according to the generated first data group and the second data group.
Furthermore, the invention discloses a motion mode determination method. The method comprises collecting at least a first motion signal corresponding to a first motion mode and at least a second motion signal corresponding to a second motion mode, wherein each of the first motion signal and the second motion signal comprises a first signal, a second signal and a third signal. The method further comprises decomposing each of the first signals into a first high-frequency signal and a first low-frequency signal. The method further comprises generating a plurality of characteristic values, wherein the characteristic values are the means and variances for each group of the first high-frequency signals, the first low-frequency signals, the second signals and the third signals respectively. The method further comprises generating a first data group corresponding to the first motion mode and a second data group corresponding to the second motion mode, according to the characteristic values. The method further comprises determining the motion mode of a third motion signal according to the generated first data group and the second data group.
Furthermore, the invention discloses a storage medium for storing a motion mode determination program. The motion mode determination program comprises a plurality of program codes to be loaded onto a computer system so that a motion mode determination method may be executed by the computer system. The method comprises collecting at least a first motion signal corresponding to a first motion mode and at least a second motion signal corresponding to a second motion mode, wherein each of the first motion signal and the second motion signal comprises a first signal, a second signal and a third signal. The method further comprises decomposing each of the first signals into a first high-frequency signal and a first low-frequency signal. The method further comprises generating a plurality of characteristic values, wherein the characteristic values are the means and variances for each group of the first high-frequency signals, the first low-frequency signals, the second signals and the third signals respectively. The method further comprises generating a first data group corresponding to the first motion mode and a second data group corresponding to the second motion mode, according to the characteristic values. The method further comprises determining the motion mode of a third motion signal according to the generated first data group and the second data group.
For fully understanding the of the purpose, the features, and the advantage of the invention, preferred embodiments of the invention are illustrated in the accompanying drawings and described in detail with reference to the following description. In the drawings:
The following description is the preferred embodiment for carrying out the invention. This description is made for the purpose of illustrating the general principles of the invention and should not be taken in a limiting sense. The scope of the invention is best determined by reference to the appended claims.
In the embodiment, the invention assumes that the inertial device 11 initially receives a pedestrian motion signal “walking” corresponding to a pedestrian motion mode “walking”, as well as another pedestrian motion signal “walking upstairs” corresponding to the pedestrian motion mode “walking upstairs” (step S20). In some embodiments, the inertial device 11 comprises an accelerator, a gyro and a compass. Each of the pedestrian motion signals comprises a first signal collected by the accelerator, a second signal collected by the gyro, and a third signal collected by the compass.
After the pedestrian motion signals “walking” and “walking upstairs” are collected, the next step is to extract a plurality of characteristic values from the collected signals, such as the first signals, second signals and third signals collected by the accelerator, the gyro and the compass. For the collected first signals by the accelerator, the characteristic values are obtained by frequency decomposition. Referring to
Next, the frequency decomposition module 12 decomposes each signal sample into a high-frequency signal and a low-frequency signal using wavelet transform (step S21), as shown in
Based on the four representative signals, the second and the third signals for each motion signal, the characteristic value generator 13 generates the means and variances for each group of the six signals (step S22) respectively, so that 12 characteristic values are obtained. In some embodiments, the 12 characteristic values are not yet appropriate for signal analysis since they are somewhat weak in signal strength. Thus, the amplifier 14 is provided to amplify the characteristic values in an exponential manner (step S23). The amplified characteristic values are later sent to the training module 15 for pedestrian motion mode training (step S24). A Support Vector Machine (SVM) algorithm is provided by the training module 15 for training of the pedestrian motion mode.
In some embodiments, the following formula is provided for data training by the training module 15:
wherein, X is characteristic value vector for unanalyzed data, αi and b are constants which are generated during the training of the SVM algorithm, K is a Kernel Function, which is used to project data from a current dimension to a higher dimension, xi is a support vector, which is generated during the training of SVM algorithm, and yi is the corresponding label with respect to xi, such as a level group or a stairway.
Next, after all characteristic values are trained by the SVM algorithm, categorized motion mode data are generated (step S25). Following, the categorized motion mode data is stored in a pedestrian navigator, such that a motion mode and surrounding terrain of a pedestrian can be detected using the trained data (step S26), thus further providing auxiliary guidance services.
Following, how the trained data is used to determine an on-going motion mode of a pedestrian is described.
When a pedestrian is moving (walking, running, etc.), the pedestrian motion mode determination apparatus 10 receives a motion signal through the inertial device 11. Then, the characteristic value generator 13 generates characteristic values thereof. The amplifier 14 next amplifies the characteristic values, and the determination module 16, according to the amplified characteristic values, determines which data group is located closest to the signal sample of the motion signal. If the signal sample of the motion signal is located closer to the black dots group, then the pedestrian motion mode determination apparatus 10 is determined to be under the motion mode “walking”. Therefore, it is determined that the surrounding terrain is a level group. On the contrary, if the signal sample of the motion signal is located closer to the white dots group, then the pedestrian motion mode determination apparatus 10 is determined to be under the motion mode “walking-upstairs”. Therefore, it is determined that the surrounding terrain of the pedestrian is a stairway.
A separate line determined by the previously described Formula (A) can be used to determine which data group the pedestrian motion mode is close to. As shown in
Note that in
Finally, the pedestrian motion mode determination method can be recorded as a program in a storage medium for performing the above procedures, such as an optical disk, floppy disk and portable hard drive and so on. It is to be emphasized that the program of the pedestrian motion mode determination method is formed by a plurality of program codes corresponding to the procedures described above.
While the invention has been described by way of example and in terms of the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. To the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
97145898 | Nov 2008 | TW | national |