Using GPS-derived speed patterns for recognition of transport modes in adults
© Huss et al.; licensee BioMed Central Ltd. 2014
Received: 13 August 2014
Accepted: 2 October 2014
Published: 11 October 2014
Identification of active or sedentary modes of transport is of relevance for studies assessing physical activity or addressing exposure assessment. We assessed in a proof-of-principle study if speed as logged by GPSs could be used to identify modes of transport (walking, bicycling, and motorized transport: car, bus or train).
12 persons commuting to work walking, bicycling or with motorized transport carried GPSs for two commutes and recorded their mode of transport. We evaluated seven speed metrics: mean, 95th percentile of speed, standard deviation of the mean, rate-of-change, standardized-rate-of-change, acceleration and deceleration. We assessed which speed metric would best identify the transport mode using discriminant analyses. We applied cross validation and calculated agreement (Cohen’s Kappa) between actual and derived modes of transport.
Mode of transport was reliably classified whenever a person used a mode of transport for longer than one minute. Best results were observed when using the 95th percentile of speed, acceleration and deceleration (kappa 0.73). When we combined all motorized traffic into one category, kappa increased to 0.95.
GPS-measured speed enable the identification of modes of transport. Given the current low costs of GPS devices and the built-in capacity of GPS tracking in most smartphones, the use of such devices in large epidemiological studies may facilitate the assessment of physical activity related to transport modes, or improve exposure assessment using automated travel mode detection.
Since transport-related physical activity (i.e. walking or bicycling for travel) can contribute considerably to total physical activity, the identification of active or sedentary modes of transport is of relevance e.g. for studies assessing physical activity [1, 2]. Differentiating between modes of transport might also be of interest in studies addressing personal exposure to air pollution [3, 4]. Some studies have used self-reporting, e.g. interviews , questionnaires or diaries  to assess transport mode, but in recent years other studies have attempted to distinguish modes of transport using either measured accelerometer data , combinations of accelerometer data and global positioning system (GPS) data , or combinations of GPS with geo-data in a geographic information system (GIS) .
GPS receivers have developed into relatively small and low-cost sensors that can be easily used by study participants in epidemiological studies. GPSs have been used for localization purposes, e.g. in combination with accelerometer and geo-data to evaluate the relationship between the built environment and location-based physical activity . Next to position, GPSs also register speed and therefore offer the opportunity to additionally evaluate speed patterns, since speed patterns can differ greatly according to type of transport mode (Additional file 1: Figure S1). Speed alone as measured with GPSs might provide a relatively easy way to differentiate between modes of transport. Previous studies have primarily applied absolute cut-offs to average or maximum trip speeds to identify modes of transport, but have not evaluated which metrics would result in the best classification of transport modes [12, 13]. We assessed which combination of speed metrics would best identify transport modes from GPS data collected under real life conditions.
We tracked 12 persons with GPSs during two back- and forth commutes to work at the Institute for Risk Assessment Sciences, Utrecht, the Netherlands, during Summer 2010. Participants were volunteers who were selected based upon their spread in home location and differences in modes of transport (walk, bike, train (but not metro, tram, light rail, subway or similar public transport systems), bus or car) . For the current analysis, we used data collected with an Adapt AD-850 (Adapt-Mobile, London, UK). GPS locations and speed (in km/h) were logged every second, resulting in a total of 215,725 observations. Spatial accuracy was high, with median errors of about 3.5-5 m. Of note, the accuracy of the Adapt AD 850 did not differ materially from two other tested devices .
Each speed profile of the commutes was annotated directly using the geographic information system (GIS) ArcGIS 9.3.1 (Esri Redlands, CA, USA), in order to assign true modes of transport (walk/bike/motorized transport in bus, trains or car). Annotation was performed by location based on aerial imagery (Aerodata International Surveys Deurne, Belgium) together with the study participants on their first day of the commute. Because we were more interested in outdoor activities, we removed all logged indoor points (i.e. when being inside of a building, e.g. at home, at work or inside a train station). For each commute, there was a short interval of approximately 10-20s for which we did not know whether the participant was indoors or outdoors. Thus, the exact transition between indoors and outdoors was uncertain and we chose to remove these points. This concerned only a small amount of all logged points (<1.5%).
Sequences and metrics
Within each sequence, we also calculated the differences of consecutive speed observations by subtracting the speed value of the previous observation. Positive values then represent acceleration and negative values deceleration. We then extracted the 95th and the 5th percentile from these differences per sequence, as proxies for high acceleration and deceleration events, respectively.
We applied non-parametric discriminant analysis, based on all combinations of the different speed metrics, including either one, two or three metrics at the same time into the analysis. As metrics we used the mean, 95th percentile and standard deviation of speed, RCM, standardized RCM, acceleration and deceleration in our calculations. To avoid over-fitting, we performed a k-fold cross validation procedure: We split our data sets of 12 persons into two subsets: eight persons to run the discriminant analysis and predict type of activity (“development data set”), and the remaining four persons to calculate a Cohen’s Kappa coefficient between predicted and true type of activity (“validation data set”). For the cross validation, we calculated Cohen’s Kappa coefficients for 152 combinations of groupings of persons: This corresponded to all permutations (n = 495) except those where not all three types of transport mode were included in the development data set (n = 54) or in the validation data set (n = 317). Because sequences had very different durations and since very short sequences would likely be difficult to classify, we compared Kappa values according to groups of sequences with up to 15 seconds, 16–30 seconds, 31–60 seconds and more than a minute duration. This was done in order to assess which time frame would give the most reliable results. We also calculated the observed absolute agreement.
We then combined all train, bus and car commutes into a group of “motorized traffic” and re-ran the analysis. Train, bus and car commutes all represent sedentary travel modes, and this calculation might therefore be of interest if addressing physical activity rather than exposure to e.g. air pollution. Finally, we repeated the analysis including the 441 sequences where all travel modes were included in the development, but not in the validation data set.
All analyses were performed in Stata (version 12, Stata Corp, College Station, Texas, USA).
Number of persons performing a transport mode, speed and duration of sequences
Sequences of at least one minute duration
Speed per sequence
Speed per sequence
Kappas increased to values above 0.9 if bus, train and car commutes were combined into one category of motorized transport: The highest Kappa was again obtained when using the 95th percentile of speed in combination with acceleration and deceleration (Kappa 0.95, IQR 0.94-0.95). These Kappas can be interpreted as “excellent” or to represent “almost perfect agreement” [16, 17].
When we included those sequences where all different types of transport modes were included in the development, but not in the validation data set, this resulted in a few low outliers of the Kappa values. Median or interquartile ranges were, however, not affected (data not shown). This was due to cross-validation runs that included only one or two activities, resulting in high observed and expected agreement. For example, one combination where only bicycling was included in the validation data set resulted in a Kappa of zero, although observed agreement was 97%.
The vast majority of all sequences were very short and displayed low Kappa coefficients. However, given the average duration of 252 seconds of all sequences longer than at least one minute, this translates into 83% of all observation-time that could be classified with high reliability.
Speed profiles as recorded from GPS devices can be used to differentiate between the modes of transport of study participants. While for very short-duration sequences the transport modes were difficult to identify, activities lasting for at least one minute could be reliably classified. The majority of sequences were relatively short, but because longer sequences of more than one minute duration contributed more to total observation-time, over 80% of all observations could be assigned the correct mode of transport with high accuracy.
A strength of our study is that we had a reasonably large amount of observations (>200.000 logged GPS positions) that we could analyze and that were collected under real-life conditions. A second strength is that the calculation was based on only a few different speed metrics as logged by a GPS, which makes this procedure a likely feasible approach also for larger study populations, if GPS data is available. Thirdly, the true mode of transport was assigned together with the study participants based on location and aerial imagery. In order to circumvent potential problems of recalling the travelled route, annotation of the route was performed on the day of the commute. Since volunteers also were very familiar with the routes they usually travelled on working days, we are confident that this procedure resulted in high-quality validation data.
A weakness of our study includes that only 12 persons collected data and that within persons, sequences (and travels) were not independent, although we treated them as such in our analysis. We performed our validation across persons to counteract this, but our Kappas might nevertheless have been affected. It is, however, unclear if this would lead to an upward- or downward shift of the Kappas. Another disadvantage is that our data collection was performed in a very flat area. Speed profiles may be more variable in topographically more challenging areas. In addition, speed profiles of motorized traffic may also be more difficult to disentangle from bicycling if driving is restricted to urban areas with dense traffic and slower driving speeds. Cycling may also display quite similar speed profiles as jogging/running, although jogging/running is rarely used for commuting and would be therefore less of an issue when assessing modes of transport. Only two persons contributed to our walking data set. Although a small data set, the speeds are very close to those previously reported in the scientific literature . Reference values for walking speeds have been reported to lie between about 3.3-5.1 km/h . Also, given the strong differences in speed profiles to the next faster category (bicycling, with about 15 km/h), even a larger data set capturing a higher variability in walking profiles would be unlikely to result in deteriorated recognition of this transport mode. Walking has also previously been reported to be captured with high reliability from speed data alone, because walking displays consistently low speeds during trips [20, 21]. Finally, our study group was restricted to a relatively homogenous group of employees (age group 25–60 years), and speed patterns may therefore not be generalizable to elderly persons or to children, the latter for instance, have been described to display a much more erratic movement behavior .
Alternative methods to assess modes of transport include for example diary data recorded by study participants, but this type of data collection requires relatively high levels of commitment of participants, especially if data collection is performed over several days. Adding accelerometer data could help in further separating activities that display similar speed profiles, such as bicycling and inline skating. Accelerometer data provides the additional opportunity to evaluate energy expenditure. However, applying two different devices, while increasing the amount of information, will on the other hand increase costs through an increased workload to collect and process the data. Also, the amount of data collected with triaxial accelerometers can be huge, depending on the time resolution, and might pose some additional challenges. The combination with other sensor data, such as from pedometers, the gyroscope or from heart rate monitors may further improve transport mode detection. If available, adding contextual location information (e.g. location of tram, bus or train stations to GPS-logged locations) in a geographic information system will likely enable to improve travel mode detection even further. This is because information on environmental features can be added, leading e.g. to the possibility to add non-logged positions (e.g. when taking an underground) .
In summary, discriminant analysis based on a few speed metrics showed that modes of transport can be reliably assessed from GPS data alone. Using the 95th percentile of speed in combination with acceleration and deceleration provided best results.
Active transport to school or work can contribute to total physical activity levels [23, 24]. Objective measurements performed with GPSs would be expected to contribute to more accurate quantification of transport-related levels of physical activity, compared with, for example, self-report. Improving the assessment of physical activity levels would in turn contribute to a more accurate assessment of the association between physical activity and health effects and the design of effective interventions . The ability to differentiate transport modes from speed data alone may be of use in future large epidemiological studies assessing transport-related physical activity or traffic related exposures.
Currently, smartphones have integrated sensors that include among others GPS receivers, and applications have been developed that can evaluate transport modes. However, the application of this technology for larger epidemiological studies may still be hampered in that applications are not necessarily freely available, privacy issues may arise, and there may be comparability issues between devices. Constant GPS activation and logging considerably drains mobile phone batteries. Methods such as variable rate logging have been developed to increase battery time,  but so far this issue still remains a limiting factor for the application into wider population studies.
We would like to thank Dr. John Bolte for lending us the AD-850 GPS-devices, and the volunteers for collecting GPS-data during their commutes.
This study was supported by the ZonMW grants number 85800001 and 85200001 of the Dutch programme Electromagnetic Fields and Health Research, The Netherlands. The funding source had no role in deciding for the study design; in the collection, analysis and interpretation of data; in the writing of the report; and in the decision to submit the article for publication.
- Buehler R, Pucher J, Merom D, Bauman A: Active travel in Germany and the US: contributions of daily walking and cycling to physical activity. Am J Prev Med. 2011, 41 (3): 241-250. 10.1016/j.amepre.2011.04.012.View ArticlePubMedGoogle Scholar
- Hamer M, Chida Y: Active commuting and cardiovascular risk: a meta-analytic review. Prev Med. 2008, 46 (1): 9-13. 10.1016/j.ypmed.2007.03.006.View ArticlePubMedGoogle Scholar
- Dirks K, Sharma P, Salmond J, Costello S: Personal Exposure to Air Pollution for Various Modes of Transport in Auckland, New Zealand. Open Atmos Sci J. 2012, 6 (1): 84-92. 10.2174/1874282301206010084.View ArticleGoogle Scholar
- Zuurbier M, Hoek G, Oldenwening M, Lenters V, Meliefste K, van den Hazel P, Brunekreef B: Commuters’ exposure to particulate matter air pollution is affected by mode of transport, fuel type, and route. Environ Health Perspect. 2010, 118 (6): 783-10.1289/ehp.0901622.PubMed CentralView ArticlePubMedGoogle Scholar
- Pleis JR, Ward BW, Lucas JW: Summary health statistics for U.S. adults: National Health Interview Survey, 2009. Vital Health Stat. 2010, 249 (249): 1-207.Google Scholar
- Laverty AA, Mindell JS, Webb EA, Millett C: Active Travel to Work and Cardiovascular Risk Factors in the United Kingdom. Am J Prev Med. 2013, 45 (3): 282-288. 10.1016/j.amepre.2013.04.012.View ArticlePubMedGoogle Scholar
- Petrunoff NA, Xu H, Rissel C, Wen LM, van der Ploeg HP: Measuring Workplace Travel Behaviour: Validity and Reliability of Survey Questions. J Environ Public Health. 2013, 6-Article ID 423035, http://dx.doi.org/10.1155/2013/423035Google Scholar
- Pober DM, Staudenmayer J, Raphael C, Freedson PS: Development of novel techniques to classify physical activity mode using accelerometers. Med Sci Sports Exerc. 2006, 38 (9): 1626-10.1249/01.mss.0000227542.43669.45.View ArticlePubMedGoogle Scholar
- Troped PJ, Oliveira MS, Matthews CE, Cromley EK, Melly SJ, Craig BA: Prediction of activity mode with global positioning system and accelerometer data. Med Sci Sports Exerc. 2008, 40 (5): 972-10.1249/MSS.0b013e318164c407.View ArticlePubMedGoogle Scholar
- Wu J, Jiang C, Houston D, Baker D, Delfino R: Automated time activity classification based on global positioning system (GPS) tracking data. Environ Health. 2011, 10: 101-10.1186/1476-069X-10-101.PubMed CentralView ArticlePubMedGoogle Scholar
- Krenn PJ, Titze S, Oja P, Jones A, Ogilvie D: Use of global positioning systems to study physical activity and the environment: a systematic review. Am J Prev Med. 2011, 41 (5): 508-515. 10.1016/j.amepre.2011.06.046.View ArticlePubMedGoogle Scholar
- Bohte W, Maat K: Deriving and validating trip purposes and travel modes for multi-day GPS-based travel surveys: A large-scale application in the Netherlands. Transportation Research Part C. 2009, 17 (3): 285-297. 10.1016/j.trc.2008.11.004.View ArticleGoogle Scholar
- Gong H, Chen C, Bialostozky E, Lawson CT: A GPS/GIS method for travel mode detection in New York City. Comput, Environ Urban Syst. 2012, 36 (2): 131-139. 10.1016/j.compenvurbsys.2011.05.003.View ArticleGoogle Scholar
- Beekhuizen J, Kromhout H, Huss A, Vermeulen R: Performance of GPS-devices for environmental exposure assessment. J Expo Sci Environ Epidemiol. 2013, 23: 498-505. 10.1038/jes.2012.81.View ArticlePubMedGoogle Scholar
- Foliart DE, Iriye RN, Tarr KJ, Silva JM, Kavet R, Ebi KL: Alternative magnetic field exposure metrics: relationship to TWA, appliance use, and demographic characteristics of children in a leukemia survival study. Bioelectromagnetics. 2001, 22 (8): 574-580. 10.1002/bem.86.View ArticlePubMedGoogle Scholar
- Fleiss JL, Levin B, Paik MC: The measurement of interrater agreement. Statistical methods for rates and proportions. Edited by: Fleiss JL, Levin B, Paik MC. 2003, New York: Wiley, 598-626. 3View ArticleGoogle Scholar
- Landis JR, Koch GG: The measurement of observer agreement for categorical data. Biometrics. 1977, 33 (1): 159-174. 10.2307/2529310.View ArticlePubMedGoogle Scholar
- Terrier P, Schutz Y: Variability of gait patterns during unconstrained walking assessed by satellite positioning (GPS). Eur J Appl Physiol. 2003, 90 (5–6): 554-561.View ArticlePubMedGoogle Scholar
- Bohannon RW, Williams A: Normal walking speed: a descriptive meta-analysis. Physiotherapy. 2011 Sep, 97 (3): 182-189. 10.1016/j.physio.2010.12.004.View ArticlePubMedGoogle Scholar
- Chen C, Gong H, Lawson C, Bialostozky E: Evaluating the feasibility of a passive travel survey collection in a complex urban environment: Lessons learned from the New York City case study. Transportation Research Part A: Policy and Practice. 2010, 44 (10): 830-840. 10.1016/j.tra.2010.08.004.Google Scholar
- Stopher P, Clifford E, Zhang J, FitzGerald C: Deducing mode and purpose from GPS data. Working paper ITLS-WP-08-06. 2008, University of Sydney, Australia: Institute of Transport and Logistics StudiesGoogle Scholar
- Hands B, Larkin D: Physical activity measurement methods for young children: a comparative study. Meas Phys Educ Exerc Sci. 2006, 10 (3): 203-214. 10.1207/s15327841mpee1003_5.View ArticleGoogle Scholar
- Oja P, Titze S, Bauman A, De Geus B, Krenn P, Reger-Nash B, Kohlberger T: Health benefits of cycling: a systematic review. Scand J Med Sci Sports. 2011, 21 (4): 496-509. 10.1111/j.1600-0838.2011.01299.x.View ArticlePubMedGoogle Scholar
- Bonomi A, Plasqui G, Goris A, Westerterp K: Aspects of activity behavior as a determinant of the physical activity level. Scand J Med Sci Sports. 2012, 22 (1): 139-145. 10.1111/j.1600-0838.2010.01130.x.View ArticlePubMedGoogle Scholar
- Maddison R, Mhurchu CN: Global positioning system: a new opportunity in physical activity measurement. Int J Behav Nutr Phys Act. 2009, 6 (1): 73-10.1186/1479-5868-6-73.PubMed CentralView ArticlePubMedGoogle Scholar
- Lee C, Lee M, Han D: Energy-efficient Location Logging for Mobile Device. Proceedings of the Applications and the Internet (SAINT), 2010 10th IEEE/IPSJ International Symposium. 2010, 84-90.View ArticleGoogle Scholar
This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly credited. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.