Automated time activity classification based on global positioning system (GPS) tracking data
© Wu et al; licensee BioMed Central Ltd. 2011
Received: 7 June 2011
Accepted: 14 November 2011
Published: 14 November 2011
Air pollution epidemiological studies are increasingly using global positioning system (GPS) to collect time-location data because they offer continuous tracking, high temporal resolution, and minimum reporting burden for participants. However, substantial uncertainties in the processing and classifying of raw GPS data create challenges for reliably characterizing time activity patterns. We developed and evaluated models to classify people's major time activity patterns from continuous GPS tracking data.
We developed and evaluated two automated models to classify major time activity patterns (i.e., indoor, outdoor static, outdoor walking, and in-vehicle travel) based on GPS time activity data collected under free living conditions for 47 participants (N = 131 person-days) from the Harbor Communities Time Location Study (HCTLS) in 2008 and supplemental GPS data collected from three UC-Irvine research staff (N = 21 person-days) in 2010. Time activity patterns used for model development were manually classified by research staff using information from participant GPS recordings, activity logs, and follow-up interviews. We evaluated two models: (a) a rule-based model that developed user-defined rules based on time, speed, and spatial location, and (b) a random forest decision tree model.
Indoor, outdoor static, outdoor walking and in-vehicle travel activities accounted for 82.7%, 6.1%, 3.2% and 7.2% of manually-classified time activities in the HCTLS dataset, respectively. The rule-based model classified indoor and in-vehicle travel periods reasonably well (Indoor: sensitivity > 91%, specificity > 80%, and precision > 96%; in-vehicle travel: sensitivity > 71%, specificity > 99%, and precision > 88%), but the performance was moderate for outdoor static and outdoor walking predictions. No striking differences in performance were observed between the rule-based and the random forest models. The random forest model was fast and easy to execute, but was likely less robust than the rule-based model under the condition of biased or poor quality training data.
Our models can successfully identify indoor and in-vehicle travel points from the raw GPS data, but challenges remain in developing models to distinguish outdoor static points and walking. Accurate training data are essential in developing reliable models in classifying time-activity patterns.
Environmental air pollution has been associated with a variety of adverse health outcomes, including respiratory illness, cardiovascular diseases, pregnancy outcomes, and morbidity [1–5]. The knowledge of where individuals spend time is essential for human exposure assessment of air pollution because air pollutant concentrations may vary significantly by location. Studies have shown that traffic-generated air pollutants such as ultrafine particles can be up to ten times higher inside a vehicle compared to ambient outdoor concentrations because of proximity to vehicle exhaust [6–8]. Outdoor walking and cycling spaces often have lower concentrations of traffic-related pollutants than in-vehicle spaces , but often correspond with increased inhalation rates and longer travel durations which could result in a higher dose of air pollutant inhalation . In addition, air pollutant concentrations can be much higher indoors than outdoors for pollutants with predominate indoor sources (e.g. environmental tobacco smoke) and vice versa for pollutants with predominate outdoor sources (e.g. ozone) [11, 12]. Accurate characterization of people's time-location patterns significantly reduce errors in exposure estimates in environmental epidemiological studies in which personal exposure is not measured directly and has to be estimated.
Time activity data have traditionally been collected by recall telephone interviews or activity logs recorded by study participants [13, 14]. However, these methods are limited by accuracy of recall, reliability, and compliance . Recently, new techniques have been used to collect time-location data, such as the use of portable global positioning system (GPS) devices to track people's time-location or commuting patterns with or without corresponding participant diary information [15–22]. GPS-based tracking presents an enormous opportunity for improving our understanding of the space-time activities of individuals and how they influence environmental exposure and health outcomes. It offers many advantages over traditional methods including near-continuous location tracking, high temporal resolution, and minimum reporting burden for participants . However, barriers exist for extracting accurate time activity patterns for human subjects from raw GPS data because they are not consistently reliable due to errors caused by satellite or receiver issues, atmospheric and ionospheric disturbances, multipath signal reflection, or signal loss or blocking . The multipath problem occurs mainly in urban areas where tall buildings and structures reflect satellite signals many times before they reach a GPS device, leading to GPS coordinate errors .
Since GPS datasets are usually very large (e.g., over 5,000 location coordinates per day at a 15-second interval) and are associated with such uncertainties, validated techniques are needed to automatically identify time activities in major microenvironments, such as commuting, indoor, and outdoor locations. The literature on GPS data classification techniques largely comes from the travel behavior and physical activity research fields. A number of studies have developed methods to classify travel activity using only GPS data or the combination of GPS and accelerometer data [26–34]. However, most of these studies collected data and developed models solely for travel activities (e.g. mode of travel, route choice, and distance traveled); some measurements were even conducted at predefined routes or activity schedules. Only a few studies have used GPS to track people's time-activity patterns in free living conditions. Cho et al.  collected GPS and self-reported one-week location diary data for 5 research staff (35 person-days of data) for model development and calibration and 34 volunteers (136 person-days of data) for model validation. They successfully developed and validated an algorithm to identify outdoor walking trips that lasted more than 5 minutes in free-living conditions. The authors reported difficulty in identifying walking trips with only GPS information in free living conditions because people often walk very slowly or briskly and make short stops. Unfortunately, the application of the techniques used in these studies in air pollution epidemiological research is limited because people's exposure to air pollution is significantly influenced by activity patterns across multiple indoor, outdoor, and transportation microenvironments. Few studies have evaluated techniques to classify people's continuous time-activity patterns across both travel and non-travel periods based on GPS location data for subjects in free living conditions. To our knowledge, only one study by Adams et al.  developed an apportion algorithm for time-location patterns across indoor, outdoor and travel microenvironments based on data from a monitoring system that measured personal air pollution exposure, temperature, and real-time GPS locations. However, this study only tested the algorithm for a single person for four days with known home and workplace locations. In addition, their use of temperature to distinguish indoor from outdoor locations in the winter of Colorado may not be applicable to other regions or seasons when indoor and outdoor temperature does not vary as much.
The purpose of this study was to address a major gap in the literature on air pollution epidemiology - the lack of reliable automated classification techniques to post-process multi-day GPS location tracking data for free living human subjects. We developed and evaluated two automated models that classify GPS tracking data into four major time-activity categories (i.e. indoor, outdoor static, outdoor walking, and in-vehicle travel) that are important in determining people's exposure to traffic-related and other air pollutants [6–12].
GPS and Roadway Data
We developed our classification models based on 131 person-days of GPS time activity data collected for 47 participants in the Harbor Communities Time Location Study (HCTLS). Participants were 21-65 years old and were tracked for 3 days from February 19 to June 13, 2008 in the Wilmington area of the City of Los Angeles and the western portion of the City of Long Beach, California . Data were available for 3 days for 37 participants and 2 days for 10 participants. Participants were asked to carry a portable GlobalSat DG-100 GPS device (approximately 227 g) with them during waking hours on the observation days. Concurrently, the participants recorded in an activity log each time they changed location by recording the time, checking whether they were indoors (home, work, school, other), outdoors (walking, biking, other), or in-vehicle (auto, van, or truck, transit, or other), and noting location details. After the logs and the GPS data were retrieved, participant GPS data were reviewed over highly resolved and geographically rectified Digital Ortho Quarter Quads (DOQQ) aerial photography data from the United States Geological Survey using geographical information system (GIS) techniques in ArcGIS software (ESRI, Redlands, CA). Based on the participant logs and DOQQ imagery, prompts were generated for follow-up interviews regarding discrepancies, unclear patterns, and suspected unreported activities. Follow-up interviews were administered 2-5 weeks after the monitored days because of the time required for post-processing GPS data and logistics. Based on feedback from these interviews, the GPS data were finalized and coded into major location categories (e.g., indoor/outdoor at home, school, restaurants, etc.) and travel mode (e.g., biking, walking, automobile, bus, train). Unfortunately these manually-classified data at times do not precisely differentiate indoor vs. near-building outdoor points due to the positional error of GPS data . In instances when it was not possible to consistently distinguish near-building outdoor locations (e.g., patio and sidewalk) from indoor locations, participants were assumed to be indoors unless GPS locations were consistently separated from a building for at least 2-5 minutes, in which case they were classified as outdoor.
Most (92.1%) of the HCTLS data were collected at a 15-second interval, while 4.0%, 0.1% and 3.8% of the data were collected at 1-second, 2 to 14 seconds, and > 15-second intervals, respectively. Since the recording intervals may occasionally shift even with a fixed interval setting in the GPS device, we decided to exclude only those points with no time stamp and data from one participant who had the majority of the data in 1-second interval. Data with speed higher than 200 kilometers per hour (km/h) (0.002% of all the data) were corrected to zero speed because they were determined through mapping and follow-up interviews to be erroneous GPS locations which appeared far from the participant location and were caused by GPS device error or blocked satellite signals.
In addition to the HCTLS data, we collected 21 person-days of supplemental GPS time activity data for three UC-Irvine staff volunteers during December 6-13, 2010. The volunteers were asked to carry with them a GPS device (BT-Q1000XT from QSTARZ; approximately 65 g; recording at a 15-second interval) and to record on a paper diary the following information: the start and end time for their major time activity patterns, mode of travel (outdoor walking or biking, in-vehicle travel by passenger car, bus, or train), and type of location including indoor or outdoor (home, work, school or education, other residence, park and recreational area, food-consumption related location, retailer store, short stops for gas-filling etc.). The BT-Q1000XT was used in this task mainly because it had longer battery life (48 hours) than the DG-100 model used in the HCTLS (17 hours) . Consistent with the manually-classified HCTLS data, these supplemental GPS data were manually classified based on the diary data, GIS verification, and verification by interview. The three staff volunteers were thoroughly instructed on how and when to record the diary logs and all of them were actively involved in the time activity research and knowledgeable of the study aims and possible mistakes that may be encountered by human participants.
There were two major differences between the HCTLS data and the supplemental UCI data. First, we obtained better diary logs in the supplemental dataset than the HCTLS study (particularly for the indoor vs. outdoor differentiation) because of more thorough and careful documentation of short-term events. The HCTLS only classified outdoor points as those that were consistently outdoors for at least 2-5 minutes based on map overlays in GIS software while the supplemental dataset recorded outdoor points at a much higher accuracy of less than 1 minute. In addition, slight differences were observed between the DG-100 used in the HCTLS and the BT-Q1000x used in supplemental data collection; BT-Q1000x had a shorter acquisition time at cold start in an indoor environment, lower rate of data loss, but slightly poorer performance in spatial accuracy .
All GPS data were converted to the Universal Transverse Mercator projection (North American Datum NAD 83 and Zone 11 N). In addition to the above GPS data, we obtained roadway data for the study region from the ESRI StreetMap™ North America 9.3 http://www.esri.com. This dataset was bundled with ArcGIS software products and included 2003 TeleAtlas® street data rather than the less-accurate TIGER 2000-based street data .
Model Development and Time-Activity Classifications
We developed a rule-based model and a decision-tree based model to classify time-location patterns. The two types of models were chosen because the rule-based method best utilizes the user's understanding of spatial patterns in the data (time, speed, and spatial relationships of the GPS points) while the decision-tree method requires minimal user-input and has been shown to outperform the other approaches .
We focused on four time-activity patterns (i.e. indoor, outdoor static, outdoor walking, and in-vehicle travel) because of their importance in determining air pollution exposures and the availability of data. The in-vehicle travel here refers to travels in passenger vehicles only. Although other time-activity patterns such as biking and travel by bus and subways may also be associated with high levels of exposure to traffic-related air pollutants [39–41], our data contained very limited data on these activities and were not examined in our models. No HCTLS participants traveled in an underground train; only 10 and 3 subjects reported bus travel and biking for a total of approximately 8 and 5 hours, respectively. No subway, bus, or biking activity was reported in the supplemental UCI data.
We did not distinguish indoor static vs. indoor moving conditions because the positional accuracy of GPS data was limited during indoor periods due to obstructed satellite signals from building structures. Our previous research indicates that the positional errors of the GPS devices can be large in typical indoor locations and can be in the range of 0-300 meters for DG-100 depending on the building materials (e.g., wood frame vs. concrete/steel) and surrounding structures . Significant GPS signal loss was also observed indoors in concrete structures or structures surrounded by high buildings . Therefore, we decided not to track participants' moving patterns in an indoor environment. Instead, we asked the study participants (≥21 years old) to place the GPS device on a static location (e.g., counter or desk) nearby while they were indoors at home, school, or work locations; thus most of our indoor data were static points.
Random Forest Classification
As an alternative to the rule-based algorithm, we applied a machine learning model, random forest , to classify the GPS data into different time activity categories. Here, a forest refers to a constellation of many decision tree models. Because a forest consists of many trees, it is more stable and less prone to prediction errors as a result of data perturbations . Random forest is considered one of the most accurate general-purpose learning techniques available  and has been already widely used in bioinformatics [44, 45]. Random forest creates multiple classification and regression (CART) trees, each trained on a bootstrap sample of the original training data and searches across a randomly selected subset of input variables to determine the split. Each tree in the forest gives or "votes" for a classification (e.g. time activity category). The forest chooses the classification having the most votes over all the trees in the forest.
In this study, we used an R interface in Waikato Environment for Knowledge Analysis (WEKA) 3.6 software, a popular machine learning workbench developed by researchers in University of Waikatoi [46, 47]. We examined the following types of variables: acceleration rate, speed, distance difference, and distance ratio. Acceleration was calculated as the change in speed between a given point and the previous sequential point. The distance difference was calculated for any three sequential points as we described above for the rule-based model. The distance ratio was calculated for a series of sequential points as the ratio between (a) distance between the first sequential point and the last sequential point in the series and (b) the sum of the distance for all line segments formed by sequential points in the series. Speed, distance difference, and distance ratio variables were calculated under various averaging time intervals ranging from 2 to 60 minutes and centered at each GPS point. Speed and distance difference were expressed as minimum, median, and maximum values. Standard deviation was also calculated for distance difference. Final variables were selected by checking the variable importance index (a measure of the relative importance of the variables) generated from the model diagnostics and the correlations among the variables. We first selected 20 most important variables that were not highly correlated with each other (r < 0.75). Then we run the model again with these variables and selected the most important variables with the p-value of the z-score < 0.001 for all the variables. Sensitivity tests were conducted for the maximum depth of a tree and the number of trees. Two separate models were developed based on the HCTLS data (hereafter HCTLS random forest model) and the supplemental UCI data (hereafter UCI random forest model). For both models, we randomly selected a subset of indoor points (N = 30,000 for the HCTLS data and N = 5,000 for the UCI data) in addition to all outdoor static, outdoor walking, and in-vehicle travel points in the original datasets as training data.
Time activity classifications of GPS data based on model predictions were compared to those from manually-classified data for both the HCTLS and the supplemental datasets. There is no "gold-standard" against which to compare the classification of GPS-derived time activity data. In this study we used the manually-classified time activity classifications as the basis of model evaluation because these time activity codes were developed based on extensive quality assurance checks that involved careful inspection of real-time GPS locations in GIS using map overlays, comparison with participant activity logs, and clarifications from follow-up interviews with participants and staff. We examined the sensitivity (the ability of the model to identify specific cases), specificity (the ability of the model to identify non-cases), and precision (the proportion of predicted cases that are correctly real cases) of model prediction for each time activity category. Both the rule-based and the random forest models were evaluated against the HCTLS data and the supplemental UCI data. The two random forest models were evaluated using a repeated 10-fold cross validation method that has been recommended for model selection [48, 49]. More specifically, the dataset was randomly split into 10 mutually exclusive subsets of equal size. The random forest model was trained on 9 subsets and validated on the remaining 1 subset of data; the procedure was repeated for 10 times. The reported validation results were the averages from the 10-folds testing. We further evaluated the capability of the random forest models in predicting new data by applying the HCTLS model to the UCI data and the UCI model to the HCTLS data.
We obtained 406,261 GPS data points from the HCTLS data after exclusion of points with no time stamp (N = 609) and data from one participant who had most of GPS recordings (N = 16,887) at a one-second interval. Indoor, outdoor static, outdoor walking and in-vehicle travel accounted for 83.4%, 6.1%, 3.3% and 7.2% of the data, respectively, based on manually-classified time activity classifications. Based on the HCTLS data, the median duration of periods in each time activity category was 41, 2, 5, and 9 minutes for indoor, outdoor static, outdoor walking, and in-vehicle travel, respectively (Additional file 1, Table S1). The maximum duration of the indoor clusters was 2.2 days (confirmed through our follow-up interview).
Time activity classification using the rule-based model a
Outdoor static (modeled)
Outdoor walking (modeled)
In-vehicle travel (modeled)
Model evaluation against the HCTLS data
Outdoor static (coded)
Outdoor walking (coded)
In-vehicle travel (coded)
Model evaluation against the supplemental UCI data
Outdoor static (coded)
Outdoor walking (coded)
In-vehicle travel (coded)
Time activity classification using the random forest models a
Outdoor static (modeled)
Outdoor walking (modeled)
In-vehicle travel (modeled)
HCTLS random forest model e
10-fold cross validation f
Outdoor static (coded)
Outdoor walking (coded)
In-vehicle travel (coded)
Evaluation against the full UCI dataset
Outdoor static (coded)
Outdoor walking (coded)
In-vehicle travel (coded)
UCI random forest model g
10-fold cross validation f
Outdoor static (coded)
Outdoor walking (coded)
In-vehicle travel (coded)
Evaluation against the full the full HCTLS dataset
Outdoor static (coded)
Outdoor walking (coded)
In-vehicle travel (coded)
From the 10-fold cross validation results, we found similar performance of the random forest models compared to the rule-based model except somewhat degraded performance of the HCTLS model for indoor predictions and better performance of the UCI model for outdoor static and outdoor walking predictions. For new data prediction, the HCTLS model performed similarly as the rule-based model in predicting UCI data. However, the UCI model performed worse than the rule-based model in predicting HCTLS data, likely because of the very small and non-representative training dataset for the development of the UCI model. Similar to the rule-based model, we found that the HCTLS model most frequently misclassified indoor, outdoor walking, and in-vehicle travel to outdoor static while outdoor static to indoor category. The misclassification pattern was different for the UCI model, again likely due to the small and non-representative training data.
We developed, evaluated, and compared two models to classify time-location patterns based solely on the publicly-available roadway data and raw GPS data (three-dimensional location data and the corresponding time stamps) from participants under free living conditions. To our knowledge, this is one of the first studies that developed models to systematically classify human time activity patterns for travel and non-travel activities based on raw GPS tracking data for use in air pollution epidemiological studies. Three major strengths of the study include the use of extensive manually-classified time-activity data from human participants under free living conditions for model development, the comparison of two models in classifying time activity patterns, and additional model validation using supplemental data which were carefully collected and coded. The reasonably good performance of the models indicates feasibility of using these models to reliably batch-process GPS tracking data from free living human subjects.
Air pollution epidemiological studies are increasingly using GPS to track time activity patterns of human subjects. However, few studies have used the GPS-derived time activity information extensively in exposure assessment and epidemiological analysis; rather, most prior studies rely on questionnaire-reported time activity patterns in the analysis. Lack of reliable methods to mine raw GPS data may be one of the major reasons for the limited and crude classification of these data. For instance, a Canadian study assigned all GPS points within 350 m of a residence as home and 400 m of a work place as work, and did not differentiate indoor from outdoor environments ; such an approach could lead to substantial exposure misclassification. A growing body of transportation and physical activity literature has begun to provide insights into methods for automating the classification of GPS to identify different travel modes during periods of travel [26–34]. However, since our focus is to develop and evaluate procedures to classify GPS data for travel and non-travel periods given the paucity of applicable methods in the air pollution epidemiological literature, we do not provide a comprehensive overview of the transportation and physical activity literature.
Overall we found no striking differences in the performance of the rule-based model and the random forest models. Both models have advantages and disadvantages. The rule-based model features high flexibility and easy-to-interpret results, but the effort involved in the model development is substantial and may require a lot of additional data and resources. The random forest model is easy to use and requires minimum user interference, but it faces a potential over-fitting problem if not properly trained and difficulty in results interpretation. In terms of computational time, random forest was faster than the rule-based model (e.g. it took approximately one hour for the rule-based model to predict the HCTLS data while < 30 seconds for the random forest to build the model for the same dataset on a 64-bit computer with 16 GB of memory and a 2.93 GB Intel® Core™ i7 Quad Core Processor). However, since random forest model is purely data driven, it may be more severely affected by biased or unrepresentative training data than the rule-based model. In fact, we observed poor model performance when the UCI random forest model was applied to predict the HCTLS data. With high quality training data, random forest model should be a good choice to quickly identify important predictor variables, develop exploratory models, or even final model based on its performance.
For the rule-based model, we observed similar model performance for indoor and outdoor static predictions between the HCTLS data and the supplemental UCI data. We observed improved model performance for in-vehicle travel and degraded performance for outdoor walking predictions in the UCI data. The inferior model performance for outdoor walking in the UCI data may be because over 85% of the limited outdoor walking data (a total of approximately 8 hours) came from one of the staff during his one-day tour to the Sea World theme park in San Diego. It is difficult to distinguish walking from the other activities since the tour was associated with brisk walking, frequent short stops, slow walking speed, and potentially high uncertainties in the coding of this type of activity. As expected, most of his walking points were misclassified by the rule-based model as outdoor static (Table 1). Even though most of the thresholds for classification rules were developed based on the HCTLS data, we observed better results from the rule-based model for the other type of time-activity patterns (i.e. indoor, outdoor static, and in-vehicle travel) for the supplemental UCI data, indicating the importance of accurate diary data (in this case more accurate indoor and in-vehicle travel coding in the UCI data) for model development, training, and validation. We did not test whether the performance of the rule-based model would be improved if we refined classification rules using statistics from the UCI data because these data were limited to only three subjects who were indoors 87% of the time and had non-representative outdoor walking data. In addition, model performance may also be influenced by the different GPS devices used in the two dataset; however, we cannot determine this impact based on available data. We suggest avoiding the use of different GPS devices where a single time activity model is to be used for all of the GPS data.
We found that misclassifying between indoor and outdoor static points was one of the most severe problems in both the rule-based and the random forest models. In Southern California, the majority of residential homes are wood structures that do not block satellite signals appreciably. In addition, for outdoor locations adjacent to buildings structures, GPS signals may be reflected by the buildings and result in positional error . Because of the above reasons, the quality of the GPS data did not differ much between indoor and outdoor microenvironments, which makes it difficult to differentiate the two under static conditions. Although we included the scatter patterns of the static clusters to differentiate indoor vs. outdoor static conditions (Figure 5), these measures did not do well as shown in our results. Outdoor walking and in-vehicle travel were also frequently misclassified as outdoor static under low speed conditions (e.g., start or end of the trip near a static cluster). For in-vehicle travel, approximately 80% of the points that were wrongly classified as outdoor static points occurred when the participants stayed in the car without moving (e.g., waiting to pick up someone) or the car moved very slowly approaching or leaving a parking lot (results not shown). The models usually classified vehicle idling longer than two minutes or vehicle moving at very low speed as outdoor static, whereas participants usually reported such conditions as in-vehicle travel. One the other hand, we found that approximately 75% of the outdoor static points that were wrongly classified as in-vehicle travels lasted less than two minutes, indicating that this type of misclassification came from either coding errors (e.g., participants and research staff may have difficulty correctly reporting/coding the start or end of an in-vehicle travel period compared to an outdoor static period) or modeling errors (e.g., the models were incapable of reliably classifying time activity categories near the start or end of an activity).
Three major limitations exist in this study. First, the manually-classified time activity classifications of the HCTLS and UCI data were not error free despite the extensive measures we have taken to minimize errors and enhance the accuracy of the coding (e.g., GPS tracking was combined with a paper diary and in-person interview). Participants in the HCTLS tended to not record short stops or trips such as walking to an adjacent school to pick up a child from school or walking to a nearby corner store . Although follow-up interviews were used to clarify these discrepancies and to finalize the classifications of these missing periods, these data may not reliably capture the precise time of transitions between indoor and outdoor spaces particularly when participants lingered near a building entrance during the transition. Furthermore, even the most compliant participants (including our research staff) may have difficulty correctly documenting the start and end time of an activity because it takes time and effort to record such information on a time activity log and this could interfere with ongoing activities.
The second limitation is that we collected data for 47 participants living in southern Los Angeles County and three staff volunteers living in Irvine, Orange County. Although the participants traveled throughout the region, , we did not target data collection for residents of areas with a more challenging built environment for GPS data collection, such as downtown Los Angeles where there are many tall and high-density buildings which our previous research indicates could result in more GPS signal loss and positional error . Complete loss of satellite signals indoors, however, may not be a drawback because it can help determine whether people are indoors or outdoors. Future work is needed to refine the models so that they can classify time activity patterns in a wide range of built environments.
The third limitation of the study is that our GPS-based time-activity patterns were not comprehensive enough for us to explore more refined time-activity patterns. For example, we had little GPS data for other modes of travel (e.g., bus, biking, and train). Future studies should develop more refined classifications based on a combination of over-sampling of these travel modes and using related supplemental GIS data (e.g., trails and bus and train routes). In addition, we did not look at the impact of different GPS recording intervals on the model performance since the data were very limited for the other time intervals. Only one subject had 1-second interval data (sometimes two seconds due to recording fluctuation); the fluctuation in GPS recordings at other intervals accounted for only about 3.9% of the data. We believe the rule-based model can be easily adjusted to accommodate different recording intervals.
Future work should consider if the performance of the models can be further improved by including supplemental measurement data, GPS diagnostic parameters, and detailed points-of-interest (POI) information. Adding data from a physical activity sensor (pedometer or actigraph) may provide improved discrimination across the indoor and outdoor environments. Certain GPS devices output diagnostic information such as the number of satellites used in the determination of locations, the number of satellites in view, and the dilution of precision which can influence satellite signal quality and positional accuracy. Our previous work has shown that horizontal dilution of precision was a good measure of spatial accuracy of the GPS data and may be helpful in distinguishing indoor vs. outdoor points . Other studies have shown the number of satellites used in the location determination and the number of satellites in view can be used to improve classifications of GPS data . However, our GPS data did not contain such information. Commercial POI data provide information on building and facility type (e.g. school, shopping, restaurant, hospital, and park) and are available from a number of companies (e.g., Garmin) with the main application being in GPS-based tracking and mapping software. Such POI data can help refine models to better classify different microenvironments (e.g. residence, school, restaurant) and time activity patterns (e.g. travel mode) and improve exposure assessment of air pollutants .
As we discussed above, this study was limited by input data quality (e.g. error in manually-classified time activity classifications) and quantity (e.g. lack of GPS diagnostic and physical activity data). Despite the limitations, our models showed promising results in identifying time-location patterns in air pollution health studies where exposure levels vary remarkably by location (e.g. indoor, outdoor, and in-transit). With technology advances, the data quality and quantity will be improved significantly in the future research. For instance, some GPS devices (e.g. VGPS-900 from Visiontac™) can voice tag POI, which can improve the manually-classified time activity classifications. In addition, certain physical activity monitors (e.g. GT3X+ activity monitor from ActiGraph™) records both activity level and ambient light - an intriguing parameter for distinguishing indoor vs. outdoor environment. In addition to the ease of use and the minimal learning curve, the random forest model is capable of handling a large number (hundreds to thousands) of variables, which makes it a suitable modeling tool in future studies that may collect many types of measurement data in high temporal resolutions (e.g. GPS, actigraph, and electrocardiogram data). With appropriate data, the model can be easily adapted to classify both time-location and physical activity levels, which will advance the understanding of potential interactions between air pollution exposure and physical activity levels on health outcomes. In addition to air pollution epidemiology, the model can also be applied in other public health fields, such as physical activity and obesity research. More effort is needed to modify and validate the rule-based model before it can incorporate or classify other types of data. But the rule-based model can be a good choice if the researchers have a good understanding of the data and if the decision tree approach cannot capture certain patterns in the data.
We successfully developed and evaluated two models to identify indoor and in-vehicle travel periods from raw GPS data under free living conditions. The rule-based model classified indoor and in-vehicle travel points reasonably well, but the performance was moderate for outdoor static and outdoor walking predictions. No striking differences were observed between the rule-based and the random forest models. The random forest model was fast and easy to execute, but was likely less robust than the rule-based model when the quality of the training data was poor.
Digital orthophoto quarter quadrangle
Global positioning system.
The research was supported by the National Institute of Environmental Health Sciences (NIEHS, R21ES016379 and 3R21ES016379-02S1) and the National Children's Study (Formative Research: LOI3-ENV-4-A #14 under Contract No. HHSN27555200503415). The HCTLS was supported by the California Air Resources Board (Contract No. 04-348) and the University of California Transportation Center. It would not have been possible without the HCTLS participants who generously allowed us to track their activities for multiple days. We also thank the staff volunteers who provided GPS time activity data and are grateful to the valuable insights and assistance provided by Lianfa Li, Paul Ong, Arthur Winer, Guillermo Jaimes, Walberto Martin, Jordan Simms and Carrie Ashendel.
- Brook RD: Is air pollution a cause of cardiovascular disease? Updated review and controversies. Rev Environ Health. 2007, 22: 115-137. 10.1515/REVEH.2007.22.2.115.View ArticleGoogle Scholar
- Chen H, Goldberg MS, Villeneuve PJ: A systematic review of the relation between long-term exposure to ambient air pollution and chronic diseases. Rev Environ Health. 2008, 23: 243-297. 10.1515/REVEH.2008.23.4.243.Google Scholar
- Englert N: Fine particles and human health--a review of epidemiological studies. Toxicol Lett. 2004, 149: 235-242. 10.1016/j.toxlet.2003.12.035.View ArticleGoogle Scholar
- Pelucchi C, Negri E, Gallus S, Boffetta P, Tramacere I, La Vecchia C: Long-term particulate matter exposure and mortality: a review of European epidemiological studies. BMC Public Health. 2009, 9: 453-10.1186/1471-2458-9-453.View ArticleGoogle Scholar
- Stillerman KP, Mattison DR, Giudice LC, Woodruff TJ: Environmental exposures and adverse pregnancy outcomes: a review of the science. Reprod Sci. 2008, 15: 631-650. 10.1177/1933719108322436.View ArticleGoogle Scholar
- Chan CC, Ozkaynak H, Spengler JD, Sheldon L: Driver Exposure to Volatile Organic-Compounds, Co, Ozone, and No2 under Different Driving Conditions. Environmental Science & Technology. 1991, 25: 964-972. 10.1021/es00017a021.View ArticleGoogle Scholar
- Zhu Y, Eiguren-Fernandez A, Hinds WC, Miguel AH: In-Cabin Commuter Exposure to Ultrafine Particles on Los Angeles Freeways. Environ Sci Technol. 2007, 41: 2138-2145. 10.1021/es0618797.View ArticleGoogle Scholar
- Westerdahl D, Fruin S, Sax T, Fine PM, Sioutas C: Mobile platform measurements of ultrafine particles and associated pollutant concentrations on freeways and residential streets in Los Angeles. Atmospheric Environment. 2005, 39: 3597-3610. 10.1016/j.atmosenv.2005.02.034.View ArticleGoogle Scholar
- Briggs DJ, de Hoogh K, Morris C, Gulliver J: Effects of travel mode on exposures to particulate air pollution. Environ Int. 2008, 34: 12-22. 10.1016/j.envint.2007.06.011.View ArticleGoogle Scholar
- de Nazelle A, Nieuwenhuijsen MJ, Anto JM, Brauer M, Briggs D, Braun-Fahrlander C, Cavill N, Cooper AR, Desqueyroux H, Fruin S, Hoek G, Panis LI, Janssen N, Jerrett M, Joffe M, Andersen ZJ, van Kempen E, Kingham S, Kubesch N, Leyden KM, Marshall JD, Matamala J, Mellios G, Mendez M, Nassif H, Ogilvie D, Peiro R, Perez K, Rabl A, Ragettli M, et al: Improving health through policies that promote active travel: a review of evidence to support integrated health impact assessment. Environ Int. 2011, 37: 766-777. 10.1016/j.envint.2011.02.003.View ArticleGoogle Scholar
- Weisel CP, Zhang J, Turpin BJ, Morandi MT, Colome S, Stock TH, Spektor DM, Korn L, Winer AM, Kwon J, Meng QY, Zhang L, Harrington R, Liu W, Reff A, Lee JH, Alimokhtari S, Mohan K, Shendell D, Jones J, Farrar L, Maberti S, Fan T: Relationships of Indoor, Outdoor, and Personal Air (RIOPA). Part I. Collection methods and descriptive analyses. Res Rep Health Eff Inst. 2005, 1-107. discussion 109-127Google Scholar
- Suh HH, Bahadori T, Vallarino J, Spengler JD: Criteria air pollutants and toxic air pollutants. Environ Health Perspect. 2000, 108 (Suppl 4): 625-633.View ArticleGoogle Scholar
- Wallace L, Nelson W, Ziegenfus R, Pellizzari E, Michael L, Whitmore R, Zelon H, Hartwell T, Perritt R, Westerdahl D: The Los Angeles TEAM study: personal exposures, indoor-outdoor air concentrations, and breath concentrations of 25 volatile organic compounds. J Expos Anal Environ Epidemiol. 1991, 1: 157-192.Google Scholar
- Klepeis NE, Nelson WC, Ott WR, Robinson JP, Tsang AM, Switzer P, Behar JV, Hern SC, Engelmann WH: The National Human Activity Pattern Survey (NHAPS): a resource for assessing exposure to environmental pollutants. Journal of Exposure Analysis and Environmental Epidemiology. 2001, 11: 231-252. 10.1038/sj.jea.7500165.View ArticleGoogle Scholar
- Elgethun K, Yost MG, Fitzpatrick CTE, Nyerges TL, Fenske RA: Comparison of global positioning system (GPS) tracking and parent-report diaries to characterize children's time-location patterns. Journal of Exposure Science and Environmental Epidemiology. 2007, 17: 196-206. 10.1038/sj.jes.7500496.View ArticleGoogle Scholar
- Duncan MJ, Mummery WK: GIS or GPS? A comparison of two methods for assessing route taken during active transport. American Journal of Preventive Medicine. 2007, 33: 51-53. 10.1016/j.amepre.2007.02.042.View ArticleGoogle Scholar
- Elgethun K, Fenske RA, Yost MG, Palcisko GJ: Time-location analysis for exposure assessment studies of children using a novel global positioning system instrument. Environmental Health Perspectives. 2003, 111: 115-122.View ArticleGoogle Scholar
- Schantz P, Stigell E: A Criterion Method for Measuring Route Distance in Physically Active Commuting. Medicine and Science in Sports and Exercise. 2009, 41: 472-478.View ArticleGoogle Scholar
- Rainham D, Krewski D, McDowell I, Sawada M, Liekens B: Development of a wearable global positioning system for place and health research. International Journal of Health Geographics. 2008, 7: 59-10.1186/1476-072X-7-59.View ArticleGoogle Scholar
- Phillips ML, Hall TA, Esmen NA, Lynch R, Johnson DL: Use of global positioning system technology to track subject's location during environmental exposure sampling. Journal of Exposure Analysis and Environmental Epidemiology. 2001, 11: 207-215. 10.1038/sj.jea.7500161.View ArticleGoogle Scholar
- Larsson P, Henriksson-Larsen K: The use of dGPS and simultaneous metabolic measurements during orienteering. Medicine and Science in Sports and Exercise. 2001, 33: 1919-1924. 10.1097/00005768-200111000-00018.View ArticleGoogle Scholar
- Stopher P, FitzGerald C, Zhang J: Search for a global positioning system device to measure person travel. Transportation Research Part C-Emerging Technologies. 2008, 16: 350-369. 10.1016/j.trc.2007.10.002.View ArticleGoogle Scholar
- Rainham D, McDowell I, Krewski D, Sawada M: Conceptualizing the healthscape: Contributions of time geography, location technologies and spatial ecology to place and health research. Social Science & Medicine. 2010, 70: 668-676. 10.1016/j.socscimed.2009.10.035.View ArticleGoogle Scholar
- Wu J, Jiang C, Liu Z, Houston D, Jaimes G, McConnell R: Performances of Different Global Positioning System Devices for Time-Location Tracking in Air Pollution Epidemiological Studies. Environ Health Insights. 2010, 4: 93-108.Google Scholar
- van Dierendock A, Fenton P, Ford T: Theory and Performance of Narrow Correlator Spacing in a GPS Receiver. Journal of the Institute of Navigation. 1992, 39: 265-283.View ArticleGoogle Scholar
- Chung EH, Shalaby A: A trip reconstruction tool for GPS-based personal travel surveys. Transportation Planning and Technology. 2005, 28: 381-401. 10.1080/03081060500322599.View ArticleGoogle 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-Emerging Technologies. 2009, 17: 285-297. 10.1016/j.trc.2008.11.004.View ArticleGoogle Scholar
- Du J, Aultman-Hall L: Increasing the accuracy of trip rate information from passive multi-day GPS travel datasets: Automatic trip end identification issues. Transportation Research Part a-Policy and Practice. 2007, 41: 220-232. 10.1016/j.tra.2006.05.001.View ArticleGoogle Scholar
- Duncan MJ, Mummery WK, Dascombe BJ: Utility of global positioning system to measure active transport in urban areas. Medicine and Science in Sports and Exercise. 2007, 39: 1851-1857. 10.1249/mss.0b013e31811ff31e.View ArticleGoogle Scholar
- Gonzalez PA, Weinstein JS, Barbeau SJ, Labrador MA, Winters PL, Georggi NL, Perez R: Automating mode detection for travel behaviour analysis by using global positioning systems-enabled mobile phones and neural networks. Iet Intelligent Transport Systems. 2010, 4: 37-49. 10.1049/iet-its.2009.0029.View ArticleGoogle Scholar
- Schuessler N, Axhausen KW: Processing Raw Data from Global Positioning Systems Without Additional Information. Transportation Research Record. 2009, 28-36.Google Scholar
- Zheng Y, Liu L, Wang L, Xie X: Learning transportation mode from raw GPS data for geographic applications on the Web. the 11th International Conference on World Wide Web; Beijing, China. 2008, ACM Press, 247-256.Google Scholar
- Cooper AR, Page AS, Wheeler BW, Griew P, Davis L, Hillsdon M, Jago R: Mapping the Walk to School Using Accelerometry Combined with a Global Positioning System. American Journal of Preventive Medicine. 2010, 38: 178-183. 10.1016/j.amepre.2009.10.036.View ArticleGoogle Scholar
- Duncan JS, Badland HM, Schofield G: Combining GPS with heart rate monitoring to measure physical activity in children: A feasibility study. Journal of Science and Medicine in Sport. 2009, 12: 583-585. 10.1016/j.jsams.2008.09.010.View ArticleGoogle Scholar
- Cho GH, Rodriguez DA, Evenson KR: Identifying Walking Trips Using GPS Data. Medicine and Science in Sports and Exercise. 2011, 43: 365-372.View ArticleGoogle Scholar
- Adams C, Riggs P, Volckens J: Development of a method for personal, spatiotemporal exposure assessment. Journal of Environmental Monitoring. 2009, 11: 1331-1339. 10.1039/b903841h.View ArticleGoogle Scholar
- Houston D, Ong P, Jaimes G, Winer A: Traffic exposure near the Los Angeles-Long Beach port complex: using GPS-enhanced tracking to assess the implications of unreported travel and locations. Journal of Transport Geography. 2011, 19: 1399-1409. 10.1016/j.jtrangeo.2011.07.018.View ArticleGoogle Scholar
- Wu J, Funk TH, Lurmann FW, Winer AM: Improving Spatial Accuracy of Roadway Networks and Geocoded Addresses. Transactions in GIS. 2005, 9: 585-601. 10.1111/j.1467-9671.2005.00236.x.View ArticleGoogle Scholar
- Nieuwenhuijsen MJ, Gomez-Perales JE, Colvile RN: Levels of particulate air pollution, its elemental composition, determinants and health effects in metro systems. Atmospheric Environment. 2007, 41: 7995-8006. 10.1016/j.atmosenv.2007.08.002.View ArticleGoogle Scholar
- Nieuwenhuijsen MJ, Kaur S: Determinants of Personal Exposure to PM(2.5), Ultrafine Particle Counts, and CO in a Transport Microenvironment. Environmental Science & Technology. 2009, 43: 4737-4743. 10.1021/es803199z.View ArticleGoogle Scholar
- Panis LI, de Geus B, Vandenbulcke G, Willems H, Degraeuwe B, Bleux N, Mishra V, Thomas I, Meeusen R: Exposure to particulate matter in traffic: A comparison of cyclists and car passengers. Atmospheric Environment. 2010, 44: 2263-2270. 10.1016/j.atmosenv.2010.04.028.View ArticleGoogle Scholar
- Breiman L: Random forests. Machine Learning. 2001, 45: 5-32. 10.1023/A:1010933404324.View ArticleGoogle Scholar
- Biau G: Analysis of a Random Forests model, Technical report, Université Paris VI. 2010Google Scholar
- Cutler A, Stevens JR: Random forests for microarrays. Methods in Enzymology. 2006, 411: 422-432.View ArticleGoogle Scholar
- Khalilia M, Chakraborty S, Popescu M: Predicting disease risks from highly imbalanced data using random forest. BMC Med Inform Decis Mak. 2011, 11: 51-10.1186/1472-6947-11-51.View ArticleGoogle Scholar
- Bouckaert RR, Frank E, Hall MA, Holmes G, Pfahringer B, Reutemann P, Witten IH: WEKA-Experiences with a Java Open-Source Project. Journal of Machine Learning Research. 2010, 11: 2533-2541.Google Scholar
- Hall M, Frank E, Holmes G, Pfahringer B, Reutemann P, Witten IH: The WEKA data mining software: an update. SIGKDD Explorations. 2009, 11: 10-18. 10.1145/1656274.1656278.View ArticleGoogle Scholar
- Kohavi R: A study of cross-validation and bootstrap for accuracy estimation and model selection. Fourteenth International Joint Conference on Artificial Intelligence, IJCAI; Montreal, CA. 1995, 1137-1143.Google Scholar
- Kim JH: Estimating classification error rate: Repeated cross-validation, repeated hold-out and bootstrap. Computational Statistics & Data Analysis. 2009, 53: 3735-3745. 10.1016/j.csda.2009.04.009.View ArticleGoogle Scholar
- Nethery E, Leckie SE, Teschke K, Brauer M: From measures to models: an evaluation of air pollution exposure assessment for epidemiological studies of pregnant women. Occupational and Environmental Medicine. 2008, 65: 579-586. 10.1136/oem.2007.035337.View ArticleGoogle Scholar
- Estrin D: Director, Center for Embedded Networked Sensing, an NSF Science and Technology Center, Headquartered at UCLA. Personal communication
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/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.