Beyond Where to How: A Machine Learning Approach for Sensing Mobility Contexts Using Smartphone Sensors
This paper presents the results of research on the use of smartphone sensors (namely, GPS and accelerometers), geospatial information (points of interest, such as bus stops and train stations) and machine learning (ML) to sense mobility contexts. Our goal is to develop techniques to continuously and...
Main Author: | |
---|---|
Format: | Article |
Language: | English |
Published: |
MDPI AG
2015-04-01
|
Series: | Sensors |
Subjects: | |
Online Access: | http://www.mdpi.com/1424-8220/15/5/9962 |
_version_ | 1828155275511595008 |
---|---|
author | Robert E. Guinness |
author_facet | Robert E. Guinness |
author_sort | Robert E. Guinness |
collection | DOAJ |
description | This paper presents the results of research on the use of smartphone sensors (namely, GPS and accelerometers), geospatial information (points of interest, such as bus stops and train stations) and machine learning (ML) to sense mobility contexts. Our goal is to develop techniques to continuously and automatically detect a smartphone user’s mobility activities, including walking, running, driving and using a bus or train, in real-time or near-real-time (<5 s). We investigated a wide range of supervised learning techniques for classification, including decision trees (DT), support vector machines (SVM), naive Bayes classifiers (NB), Bayesian networks (BN), logistic regression (LR), artificial neural networks (ANN) and several instance-based classifiers (KStar, LWLand IBk). Applying ten-fold cross-validation, the best performers in terms of correct classification rate (i.e., recall) were DT (96.5%), BN (90.9%), LWL (95.5%) and KStar (95.6%). In particular, the DT-algorithm RandomForest exhibited the best overall performance. After a feature selection process for a subset of algorithms, the performance was improved slightly. Furthermore, after tuning the parameters of RandomForest, performance improved to above 97.5%. Lastly, we measured the computational complexity of the classifiers, in terms of central processing unit (CPU) time needed for classification, to provide a rough comparison between the algorithms in terms of battery usage requirements. As a result, the classifiers can be ranked from lowest to highest complexity (i.e., computational cost) as follows: SVM, ANN, LR, BN, DT, NB, IBk, LWL and KStar. The instance-based classifiers take considerably more computational time than the non-instance-based classifiers, whereas the slowest non-instance-based classifier (NB) required about five-times the amount of CPU time as the fastest classifier (SVM). The above results suggest that DT algorithms are excellent candidates for detecting mobility contexts in smartphones, both in terms of performance and computational complexity. |
first_indexed | 2024-04-11T22:50:53Z |
format | Article |
id | doaj.art-a165a4782bef4f6b81c965aa5667665f |
institution | Directory Open Access Journal |
issn | 1424-8220 |
language | English |
last_indexed | 2024-04-11T22:50:53Z |
publishDate | 2015-04-01 |
publisher | MDPI AG |
record_format | Article |
series | Sensors |
spelling | doaj.art-a165a4782bef4f6b81c965aa5667665f2022-12-22T03:58:35ZengMDPI AGSensors1424-82202015-04-011559962998510.3390/s150509962s150509962Beyond Where to How: A Machine Learning Approach for Sensing Mobility Contexts Using Smartphone SensorsRobert E. Guinness0Finnish Geospatial Research Institute, Geodeetinrinne 2, FI-02430 Masala, FinlandThis paper presents the results of research on the use of smartphone sensors (namely, GPS and accelerometers), geospatial information (points of interest, such as bus stops and train stations) and machine learning (ML) to sense mobility contexts. Our goal is to develop techniques to continuously and automatically detect a smartphone user’s mobility activities, including walking, running, driving and using a bus or train, in real-time or near-real-time (<5 s). We investigated a wide range of supervised learning techniques for classification, including decision trees (DT), support vector machines (SVM), naive Bayes classifiers (NB), Bayesian networks (BN), logistic regression (LR), artificial neural networks (ANN) and several instance-based classifiers (KStar, LWLand IBk). Applying ten-fold cross-validation, the best performers in terms of correct classification rate (i.e., recall) were DT (96.5%), BN (90.9%), LWL (95.5%) and KStar (95.6%). In particular, the DT-algorithm RandomForest exhibited the best overall performance. After a feature selection process for a subset of algorithms, the performance was improved slightly. Furthermore, after tuning the parameters of RandomForest, performance improved to above 97.5%. Lastly, we measured the computational complexity of the classifiers, in terms of central processing unit (CPU) time needed for classification, to provide a rough comparison between the algorithms in terms of battery usage requirements. As a result, the classifiers can be ranked from lowest to highest complexity (i.e., computational cost) as follows: SVM, ANN, LR, BN, DT, NB, IBk, LWL and KStar. The instance-based classifiers take considerably more computational time than the non-instance-based classifiers, whereas the slowest non-instance-based classifier (NB) required about five-times the amount of CPU time as the fastest classifier (SVM). The above results suggest that DT algorithms are excellent candidates for detecting mobility contexts in smartphones, both in terms of performance and computational complexity.http://www.mdpi.com/1424-8220/15/5/9962context awarenesssmartphone sensorsmachine learningclassificationmobility contextsupervised learning |
spellingShingle | Robert E. Guinness Beyond Where to How: A Machine Learning Approach for Sensing Mobility Contexts Using Smartphone Sensors Sensors context awareness smartphone sensors machine learning classification mobility context supervised learning |
title | Beyond Where to How: A Machine Learning Approach for Sensing Mobility Contexts Using Smartphone Sensors |
title_full | Beyond Where to How: A Machine Learning Approach for Sensing Mobility Contexts Using Smartphone Sensors |
title_fullStr | Beyond Where to How: A Machine Learning Approach for Sensing Mobility Contexts Using Smartphone Sensors |
title_full_unstemmed | Beyond Where to How: A Machine Learning Approach for Sensing Mobility Contexts Using Smartphone Sensors |
title_short | Beyond Where to How: A Machine Learning Approach for Sensing Mobility Contexts Using Smartphone Sensors |
title_sort | beyond where to how a machine learning approach for sensing mobility contexts using smartphone sensors |
topic | context awareness smartphone sensors machine learning classification mobility context supervised learning |
url | http://www.mdpi.com/1424-8220/15/5/9962 |
work_keys_str_mv | AT roberteguinness beyondwheretohowamachinelearningapproachforsensingmobilitycontextsusingsmartphonesensors |