projets:plim:20142015:gr9
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
projets:plim:20142015:gr9 [2014/11/23 13:37] – palma | projets:plim:20142015:gr9 [2014/11/23 18:08] (Version actuelle) – palma | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ==== User Activity Recognition Using Cell Phone Accelerometer and GPS Sensors ==== | + | ==== Activity Recognition Using Cell Phone Accelerometer and GPS Sensors ==== |
- | === Name of the members of the Group === | + | === Authors |
* Palma, | * Palma, | ||
* Rocher, Gerald [IFI/IAM], rocher.gerald@gmx.fr | * Rocher, Gerald [IFI/IAM], rocher.gerald@gmx.fr | ||
+ | |||
+ | == Abstract == | ||
+ | //**The aim of this project is to evaluate an approach to accurately recognize a range of user’s activities and report the duration of each activity. For that purpose, tri-axial accelerometer and GPS sensors, made available in all modern smart phones, are used for the classification of four activities: resting, walking, running and driving a car. Time domain features are extracted from the GPS (User’s average speed) and tri-axis accelerometer (means, standard deviations) sensors. Accelerometer raw data is cleaned-up using the Butterworth low pass filter and a Fast Fourier Transform (FFT) is then applied to extract frequency domain features on each axis. Finally, the unsupervised k-means clustering algorithm is implemented for activities recognition and classification from time and frequency domains features. Clusters centroids are made persistent to keep activity learning and constantly improve the activity recognition accuracy.**// | ||
=== Equipments === | === Equipments === | ||
Ligne 11: | Ligne 14: | ||
=== Content of the Project === | === Content of the Project === | ||
- | The aim of this project is to evaluate an approach to accurately recognize a range of user’s activities and report the duration | + | == Activities == |
+ | |||
+ | We have considered in this study four user activities: resting, walking, running | ||
+ | |||
+ | == Data collection == | ||
+ | |||
+ | The sensors | ||
+ | Sensors data are gathered during a 6s measurement windows. Accelerometer sampling period is set to 35ms by default, which gives up to 171 measures per axis per measurement window. GPS latitude and longitude | ||
+ | |||
+ | __We have used the following namespaces | ||
+ | - Windows.Devices.Sensors ([[http:// | ||
+ | - Windows.Devices.Geolocation ([[http:// | ||
+ | |||
+ | == Data filtering == | ||
+ | |||
+ | In order to remove the high frequency noise occurring on the accelerometer axis measurements in the real conditions, we implemented a [[http:// | ||
+ | Also, walking and running | ||
+ | |||
+ | == Features extraction == | ||
+ | |||
+ | We describe in this part the time domain and frequency | ||
+ | * Average[3]: Average acceleration for each axis in time domain | ||
+ | * StDev[3]: The standard deviation for each axis in time domain | ||
+ | * Freq[3]: The highest FFT frequency peak for each axis in frequency domain. | ||
+ | * Speed[1]: Computed from the distance travelled during the measurement window. | ||
+ | The average and standard deviation are computed for the 171 measures gathered during the measurement windows. | ||
+ | The frequency step for the FFT on the tri-axis accelerometer | ||
+ | So, by estimating the walking/ | ||
+ | Note also that increasing the measurement window will increase the FFT result accuracy but with a highest memory footprint since more sensors measures will be gathered. Beside the fact that such accuracy is unnecessary, increasing measurement window might generate clusters mapping errors as user activity transition can occur (from resting to walking, from walking to running) inside a (long) measurement window. On the other hand, reducing measurement window can prevent clusters mapping error but would degrade FFT results and user speed calculation. | ||
+ | So features validity depends on some parameters that have to be carefully tuned depending the activities planned to be classified. We list here after the most important parameters: | ||
+ | * Measurement window (default 6s), | ||
+ | * Accelerometer sampling period (default 35ms), | ||
+ | * GPS position change reporting time (default 1s), | ||
+ | * GPS position change reporting trigger (default 10m). | ||
+ | |||
+ | == Classification == | ||
+ | |||
+ | The [[http:// | ||
+ | The k-means clustering algorithm computes the mean value of a ten dimension vector (the ten features | ||
+ | |||
+ | == Learning == | ||
+ | |||
+ | As it is an iterative approach, the k-means classification algorithm needs a high amount of input vectors to accurately define cluster’s centroid. For that reason we first need to repeat several times all defined activities until having accurate centroid values for the four clusters. Once done, we manually annotate each cluster with the name of the corresponding activity. | ||
+ | Cluster’s | ||
=== SOFTWARE PACKAGES of the Project === | === SOFTWARE PACKAGES of the Project === | ||
- | * README File | + | == Requirements == |
- | // an README file to explain all you install from Visual Studio 2013 SP2 with the SDK WP8.0 or later, to deploy and execute your project on the Windows Phone // | + | - Windows 8/8.1 Professional. |
+ | - Visual Studio 2013 SP2 update 3. | ||
+ | - Windows Phone SDK 8.0 | ||
- | | + | == Project zip file == |
- | // add the zip file of the Project | + | |
+ | [[https://drive.google.com/ | ||
+ | |||
+ | == Installation == | ||
+ | |||
+ | - Unzip the project | ||
+ | - Open the project from Visual Studio 2013 (" | ||
+ | |||
+ | == Deployment on the cell phone == | ||
+ | You need a Microsoft Windows developer account in order to be able to deploy this application on a cell phone. (see [[http://msdn.microsoft.com/ | ||
+ | - Connect the device(phone) with the USB cable, | ||
+ | - in " | ||
== The application requires some external libraries to work: == | == The application requires some external libraries to work: == | ||
Ligne 37: | Ligne 96: | ||
'' | '' | ||
- | This will install: | + | __This |
- System.Windows.Controls.DataVisualization.Toolkit | - System.Windows.Controls.DataVisualization.Toolkit | ||
- System.Windows.Controls | - System.Windows.Controls | ||
- | |||
=== HOW TO USE IT === | === HOW TO USE IT === | ||
Once started, you will get the following user interface: | Once started, you will get the following user interface: | ||
- | You have nothing to do. Just rest, walk, run or drive a car to get sensors data gathered. | + | * [[https:// |
- | At the end of the day, you can open-up the statistics window to get a status about your daily activities. | + | |
+ | This interface is mainly designed for a debug purpose. It displays real time data gathered for each measurement window on both accelerometer and GPS. Some sliders are also made available to modify some parameters (although we do not recommend to modify these parameters). | ||
+ | The GPS sensor status is also given by a LED (RED : GPS sensor not ready, GREEN : GPS sensor ready). | ||
+ | |||
+ | You have nothing to do. Just take the cell phone and rest, walk, run or drive a car to get sensors data gathered. | ||
+ | Finally, the " | ||
+ | So, at the end of the day, you can open-up the statistics window to get a status about your daily activities: | ||
+ | |||
+ | * [[https:// | ||
+ | |||
+ | |||
=== RESULTS | === RESULTS | ||
Results are given real time to the user indicating his current activity. More interesting, | Results are given real time to the user indicating his current activity. More interesting, | ||
- | === Publication | + | === CONCLUSION AND FUTURE WORK === |
+ | |||
+ | We have developed a methodology based on mobile phone accelerometer and GPS sensors to measure user activity. First results are very encouraging despite some instabilities noticed on the GPS measurements leading to wrong cluster mapping. This phenomena is aggravated by the fact that resting to walking and walking to running vectors are close (from a user speed standpoint of view) and very sensitive to speed (then GPS) measurement accuracy. On the other hand, GPS measures are key when dealing with driving activity. So, we could improve the clustering efficiency by disregarding the speed measurements that are below 15km/h (set to 0km/h) and rely only on the periodic pattern of each axis of the accelerometer to classify resting, walking and running activities. | ||
+ | Also, the amount of dimensions used in the k-means vector is quite important making hard to ensure data globularity which is a requirement for the k-means algorithm to properly work [19]. The amount of dimension necessary might be refined by additional experiments. | ||
+ | |||
+ | === PUBLICATION ==== | ||
+ | |||
+ | A preliminary publication of this study can be found here after. This publication would still need to be updated with real sensors results gathered from the cell phone. Having the successful matching rate for each activity would be great. | ||
[[https:// | [[https:// | ||
+ | === REFERENCES === | ||
+ | |||
+ | * [1] Ismail, S. A., Matin, A. F. A., & Mantoro, T. (2012). A Comparison Study of Classifier Algorithms for Mobile-phone' | ||
+ | * [2] M.-hee Lee, J. Kim, K. Kim, I. Lee, S. H. Jee, and S. K. Yoo, “Physical Activity Recognition Using a Single Tri-Axis Accelerometer, | ||
+ | * [3] X. Long, B. Yin, and R. M. Aarts, “Single-Accelerometer-Based Daily Physical Activity Classification, | ||
+ | * [4] L. Sun, D. Zhang, and N. Li, “Physical Activity Monitoring with Mobile Phones,” pp. 104-111, 2011. | ||
+ | * [5] J. R. Kwapisz, G. M. Weiss, and S. A. Moore, “Activity Recognition using Cell Phone Accelerometers, | ||
+ | * [6] L. Sun, D. Zhang, B. Li, B. Guo, and S. Li, “Activity Recognition on an Accelerometer Embedded Mobile Phone with Varying Positions and Orientations, | ||
+ | * [7] T. Brezmes, J.-luis Gorricho, and J. Cotrina, “Activity Recognition from Accelerometer Data on a Mobile Phone,” Test, pp. 796-799, 2009. | ||
+ | * [8] Brezmes, T., Gorricho, J.L., and Cotrina, J. 2009. Activity Recognition from accelerometer data on mobile phones. In IWANN '09: Proceedings of the 10th International Work-Conference on Artificial Neural Networks, 796-799. | ||
+ | * [9] Ravi, N., Dandekar, N. 2005. Activity recognition from accelerometer data. In Proceedings of the Seventeenth Conference on Innovative Applications of Artificial Intelligence. | ||
+ | * [10] D. Anguita, A. Ghio, L. Oneto, X. Parra, and J.L. Reyes-Ortiz. Human activity recognition on smart- phones using a multiclass hardware-friendly support vector machine. In Proceedings of the Interna- tional Workshop of Ambient Assited Living, 2012. | ||
+ | * [11] Bernecker, T., Graf, F., Kriegel, H. P., Moennig, C., Dill, D., & Tuermer, C. Activity Recognition on 3D Accelerometer Data (Technical Report). | ||
+ | * [12] Gartner survey on smart phones worldwide penetration (http:// | ||
+ | * [13] Connaissances et comportements de la population française en matière d’alimentation et d’activité physique (http:// | ||
+ | * [14] Fujiki Y.: iPhone as a Physical Activity Measurement Platform. In: CHI’10 USA (2010). | ||
+ | * [15] Ayu M. A., Mantoro T., Abdul Matin A. F., Basamh S. S. O., “Recognizing user activity based on accelerometer data from a mobile phone,” in Proc. 2011 IEEE Symp. on Computers and Informatics, | ||
+ | * [16] Subramanya, A., Raj, A., Bilmes, J., and Fox, D. 2006. Recognizing activities and spatial context using wearable sensors. In Proceedings of the 22nd Conference on Uncertainty in Artificial Intelligence. | ||
+ | * [17] Bao, L., & Intille, S. S. (2004). Activity recognition from user-annotated acceleration data. In Pervasive computing (pp. 1-17). Springer Berlin Heidelberg. | ||
+ | * [18] A. Krause, D.P. Siewiorek, A. Smailagic, and J. Farringdon. Unsupervised, | ||
+ | * [19] Alizadeh, A. (2014). Gesture Recognition based on Hidden Markov Models from Joints' |
projets/plim/20142015/gr9.1416749871.txt.gz · Dernière modification : 2014/11/23 13:37 de palma