- Open Access
Using GPS-derived speed patterns for recognition of transport modes in adults
International Journal of Health Geographics volume 13, Article number: 40 (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
We cut each of the speed profiles into separate sequences whenever speed was zero, assuming that zero speed implied no transport and therefore no activity by the participants. Of all sequences, we calculated the duration in seconds, and, in km/h the mean, 95th percentile and standard deviation of speed measurements. We also calculated the rate-of-change metric (RCM) and standardized rate-of-change metric (the RCM divided by the standard deviation over which the RCM is calculated) of speed measurements . The calculation of the RCM is given in Equation 1, where Sn is the nth speed measurement in the time series:
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).
An overview of the number of persons collecting data per mode of transport, the number of sequences and the sequence duration is given in Table 1. Over all sequences, speed appeared to be very low, with walking displaying median speeds of 2, bicycling of 6 and motorized traffic (as a combined category) of about 17 km/h. The average speed increased considerably if speed was calculated based on only those observations that had a least a one minute duration: Median speed increased to about 4, 15 and 48 km/h for walking, bicycling and motorized traffic as a combined category, respectively (Table 1). Speed patterns were quite diverse across the evaluated modes of transport (Figure 1).
Kappa coefficients of the cross-validation runs are shown in Figures 2 and 3. While Kappa coefficients as well as the proportion of observed agreement ranged widely, they increased strongly by increasing duration of the sequences (Figure 2). For sequences of at least one minute duration, discriminant analysis using one metric clearly resulted in highest Kappa coefficients when using the 95th percentile of speed (median Kappa 0.66, IQR 0.65-0.67). When combining two metrics, the highest Kappa coefficients were achieved when using the 95th percentile of speed in combination with either acceleration or deceleration, or when using mean speed and the standard deviation of speed (all median Kappas 0.67, IQR 0.66-0.68; Additional file 1: Figure S2). When using three metrics, Kappa was highest when combining the 95th percentile with acceleration and deceleration (median Kappa 0.73, IQR 0.72-0.74); such Kappas can be interpreted as “substantial agreement” [16, 17]. All other combinations of speed metrics included in the discriminant analysis resulted in lower Kappa values (Figure 3).
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.
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.
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.
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.
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.
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.
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.
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/423035
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.
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.
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.
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.
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.
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.
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.
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.
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. 3
Landis JR, Koch GG: The measurement of observer agreement for categorical data. Biometrics. 1977, 33 (1): 159-174. 10.2307/2529310.
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.
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.
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.
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 Studies
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.
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.
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.
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.
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.
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.
All authors report that they have no conflicts of interest.
AH designed the study, performed the statistical analysis and drafted the manuscript. JB collected the data including all annotation of transport modes with the study participants. RV conceived of the study, and participated in its design and helped to draft the manuscript. All authors contributed to data interpretation and finalising the draft, and read and approved the final manuscript.
About this article
Cite this article
Huss, A., Beekhuizen, J., Kromhout, H. et al. Using GPS-derived speed patterns for recognition of transport modes in adults. Int J Health Geogr 13, 40 (2014) doi:10.1186/1476-072X-13-40
- Physical activity
- Active transport
- Discriminant analysis