Skip to main content
Log in

Learning daily activity patterns with probabilistic grammars

  • Published:
Transportation Aims and scope Submit manuscript

Abstract

Daily activity pattern is the reflection and abstraction of actual individual activity participation on daily basis. It carries information on activity type, frequency and sequence. Preference of daily activity patterns varies among population, and thus can be interpreted as personal life styles. This paper advances studies on human daily activity patterns by providing new perspective and methodology in the modeling and learning of daily activity patterns using probabilistic context-free grammars. In this paper, similarities between daily activity pattern—which is defined as activity sequence—and language are explored. We developed context-free grammars to parse and generate daily activity patterns. To replicate people’s heterogeneity in selecting daily activity patterns, we introduced probabilistic context-free grammars and proposed several formulations to estimate the probability of a context-free grammar with daily activity patterns observed in household travel survey. We conducted experiments on the proposed formulations, finding that under proper context-free grammar and problem formulation, the estimated probabilistic context-free grammar is able to reproduce the observed pattern distribution in household travel survey with satisfactory precision. Practically, the proposed methodology sheds light on the issue of generating stochastic and accessibility-dependent choice sets for daily activity pattern models in certain activity-based modeling frameworks.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4

Similar content being viewed by others

References

  • Allahviranloo, M., Recker, W.: Daily activity pattern recognition by using support vector machines with multiple classes. Transp. Res. Part B 58(1), 16–43 (2013). doi:10.1016/j.trb.2013.09.008

    Article  Google Scholar 

  • Axhausen, K., Zimmermann, A., Schönfelder, S., Rindsfüser, G., Haupt, T.: Observing the rhythms of daily life: a six-week travel diary. Transportation 29(2), 95–124 (2002). doi:10.1023/A:1014247822322

    Article  Google Scholar 

  • Bellman, R.: Adaptive Control Processes: A Guided Tour. Princeton University Press, Princeton (1961)

    Book  Google Scholar 

  • Ben-Akiva, M., Bowman, J.L.: Activity-based travel demand model systems. In: Marcotte, P., Nguyen, S. (eds.) Equilibrium and Advanced Transportation Modeling, pp. 27–46. Kluwer Academic Publishers, Boston (1998)

    Chapter  Google Scholar 

  • Bhat, C., Guo, J., Srinivasan, S., Sivakumar, A.: Comprehensive econometric microsimulator of daily activity-travel patterns. Transp. Res. Rec. 1894, 57–66 (2004). doi:10.3141/1894-07

    Article  Google Scholar 

  • Booth, T., Thompson, R.: Applying probability measures to abstract languages. IEEE Trans. Comput. C-22 100(5), 442–450 (1973). doi:10.1109/T-C.1973.223746

  • Bowman, J.L.: The day activity schedule approach to travel demand analysis. Ph.D. thesis, Massachusetts Institute of Technology (1998)

  • Bowman, J.L.: Historical development of activity-based model theory and practice. Traffic Eng. Control 50(2), 59–62, 314–318. http://jbowman.net/papers/2009.Bowman.Historical_dev_of_AB_model_theory_and_practice.pdf (2009). Accessed 1 May 2015

  • Bowman, J.L., Ben-Akiva, M.: Activity-based disaggregate travel demand model system with activity schedules. Transp. Res. Part A 35(1), 1–28 (2001). doi:10.1016/S0965-8564(99)00043-9

    Article  Google Scholar 

  • Bradley, M.A., Portland Metro, Bowman, J.L., Cambridge Systematics, Inc.: A system of activity-based models for Portland, Oregon. USDOT Report DOT-T-99-02, prepared for the Federal Highway Administration Travel Model Improvement Program of the USDOT and EPA, Washington, D.C. http://ntl.bts.gov/lib/21000/21600/21683/PB99133837.pdf (1998). Accessed 1 May 2015

  • Cambridge Systematics, Inc.: DRCOG model design plan. Technical Report prepared for the Denver Regional Council of Governments (2010)

  • Cantillo, V., de Dios, Ortúzar J.: A semi-compensatory discrete choice model with explicit attribute thresholds of perception. Transp. Res. Part B 39(7), 641–657 (2005). doi:10.1016/j.trb.2004.08.002

    Article  Google Scholar 

  • Castro, M., Martínez, F., Munizaga, M.: Estimation of a constrained multinomial logit model. Transportation 40(3), 563–581 (2013). doi:10.1007/s11116-012-9435-4

    Article  Google Scholar 

  • Chi, Z., Geman, S.: Estimation of probabilistic context-free grammars. Comput. Linguist. 24(2), 299–305 (1998)

    Google Scholar 

  • Chomsky, N.: Three models for the description of language. IRE Trans. Inf. Theory 2(3), 113–124 (1956). doi:10.1109/TIT.1956.1056813

    Article  Google Scholar 

  • Chomsky, N.: Syntactic Structures. de Gruyter Mouton, Berlin (1957)

    Google Scholar 

  • Chomsky, N.: On certain formal properties of grammars. Inf. Control 2(2), 137–167 (1959). doi:10.1016/S0019-9958(59)90362-6

    Article  Google Scholar 

  • Chomsky, N., Miller, G.A.: Finite state languages. Inf. Control 1(2), 91–112 (1958). doi:10.1016/S0019-9958(58)90082-2

    Article  Google Scholar 

  • Cruz-Alcázar, P., Vidal-Ruiz, E.: Learning regular grammars to model musical style: comparing different coding schemes. In: Honavar, V., Slutzki, G. (eds.) Grammatical Inference, pp. 211–222. Springer, Berlin (1998). doi:10.1007/BFb0054077

    Chapter  Google Scholar 

  • DKS Associate: Sacramento activity-based travel simulation model (SACSIM11)—Model reference report. Technical Report prepared for the Sacramento Area Council of Governments. http://sacog.org/mtpscs/files/MTP-SCS/appendices/C-4%20SACSIM%20Documentation.pdf (2012). Accessed 1 May 2015

  • Dubey, A., Jalote, P., Aggarwal, S.: Learning context-free grammar rules from a set of program. IET Software 2(3), 223–240 (2008). doi:10.1049/iet-sen:20070061

    Article  Google Scholar 

  • Dyrka, W., Nebel, J.C.: A stochastic context free grammar based framework for analysis of protein sequences. BMC Bioinf 10(323), 1–24 (2009). doi:10.1186/1471-2105-10-323

    Google Scholar 

  • Gonzalez, M.C., Hidalgo, C.A., Barabási, A.-L.: Understanding individual human mobility patterns. Nature 453(7196), 779–782 (2008). doi:10.1038/nature06958

    Article  Google Scholar 

  • Hanson, S.: The determinants of daily travel-activity patterns: relative location and sociodemographic factors. Urban Geography 3(3), 179–202 (1982). doi:10.2747/0272-3638.3.3.179

    Article  Google Scholar 

  • Hopcroft, J.E., Motwani, R., Ullman, J.D.: Introduction to Automata Theory, Languages, and Computation, 3rd edn. Addison-Wesley Longman, Boston (2006)

    Google Scholar 

  • Javed, F., Bryant, B.R., Črepinšek, M., Mernik, M., Sprague, A.: Context-free grammar induction using genetic programming. In: Proceedings of the 42nd Annual Southeast Regional Conference, pp. 404–405. ACM-SE 42. Association for Computing Machinery, New York, USA (2004) doi:10.1145/986537.986635

  • Jiang, S., Ferreira, J., Gonzalez, M.C.: Clustering daily patterns of human activities in the city. Data Min. Knowl. Discov. 25(3), 478–510 (2012). doi:10.1007/s10618-012-0264-z

    Article  Google Scholar 

  • Joh, C.-H., Arentze, T., Hofman, F., Timmermans, H.: Activity pattern similarity: a multidimensional sequence alignment method. Transp. Res. Part B 36(5), 385–403 (2002). doi:10.1016/S0191-2615(01)00009-1

    Article  Google Scholar 

  • Kaplan, S., Bekhor, S., Shiftan, Y.: Two-stage model for jointly revealing determinants of noncompensatory conjunctive choice set formation and compensatory choice. Transp. Res. Rec. 2134, 153–163 (2009). doi:10.3141/2134-18

    Article  Google Scholar 

  • Kaplan, S., Bekhor, S., Shiftan, Y.: Development and estimation of a semi-compensatory residential choice model based on explicit choice protocols. Annals Reg. Sci. 47(1), 51–80 (2011). doi:10.1007/s00168-009-0350-3

    Article  Google Scholar 

  • Kleene, S.: Representations of events in nerve nets and finite automata. In: Shannon, C., McCarthy, J. (eds.) Automata Studies, pp. 3–41. Princeton University Press, Princeton (1956)

    Google Scholar 

  • Kozen, D.C.: Automata and Computability, 1st edn. Springer, New York (1997)

    Book  Google Scholar 

  • Manski, C.: The structure of random utility models. Theor. Decis. 8(3), 229–254 (1977). doi:10.1007/BF00133443

    Article  Google Scholar 

  • McNaughton, R., Yamada, H.: Regular expressions and state graphs for automata. IEEE Trans. Electron. Comput. 9, 39–47 (1960). doi:10.1109/TEC.1960.5221603

    Article  Google Scholar 

  • Parsons Brinckerhoff: The Ohio statewide short distance travel model. Paper presented at the 11th national planning applications conference, Daytona Beach, May 2007. http://trbappcon.org/2007conf/papers/session17/02-Design_Estimation_and_Calibration_of_the_Ohio_Statewide_Short_Distance_Travel_Models.pdf (2007). Accessed 1 May 2015

  • Pas, E.I.: A flexible and integrated methodology for analytical classification of daily travel-activity behavior. Transp. Sci. 17(4), 405–429 (1983). doi:10.1287/trsc.17.4.405

    Article  Google Scholar 

  • Pas, E.I.: The effect of selected sociodemographic characteristics on daily travel activity behavior. Environ. Plan. A 16(5), 571–581 (1984). doi:10.1068/a160571

    Article  Google Scholar 

  • Phithakkitnukoon, S., Horanont, T., Lorenzo, G., Shibasaki, R., Ratti, C.: Activity-aware map: Identifying human daily activity pattern using mobile phone data. In: Salah, A., Gevers, T., Sebe, N., Vinciarelli, A. (eds.) Human Behavior Understanding, pp. 14–25. Springer, Berlin (2010)

    Chapter  Google Scholar 

  • Rozenberg, G., Salomaa, A.: The Handbook of Formal Language, vol. 2. Springer, Berlin (1997)

    Book  Google Scholar 

  • Rubinstein, A.: Finite automata play the repeated prisoner’s dilemma. J. Econ. Theory 39(1), 83–96 (1986). doi:10.1016/0022-0531(86)90021-9

    Article  Google Scholar 

  • Sang, S., O’Kelly, M., Kwan, M.-P.: Examining commuting patterns: results from a journey-to-work model disaggregated by gender and occupation. Urban Stud 48(5), 891–909 (2011). doi:10.1177/0042098010368576

    Article  Google Scholar 

  • Song, C., Qu, Z., Blumm, N., Barabási, A.-L.: Limits of predictability in human mobility. Science 327(5968), 1018–1021 (2010). doi:10.1126/science.1177170

    Article  Google Scholar 

  • Swait, J., Ben-Akiva, M.: Empirical test of a constrained choice discrete model: mode choice in São Paulo, Brazil. Transp. Res. Part B 21(2), 103–115 (1987). doi:10.1016/0191-2615(87)90010-5

    Article  Google Scholar 

  • Vij, A., Carrel, A., Walker, J.L.: Incorporating the influence of latent modal preferences on travel mode choice behavior. Transp. Res. Part A 54(1), 164–178 (2013). doi:10.1016/j.tra.2013.07.008

    Google Scholar 

  • Wendehals, L., Orso, A.: Recognizing behavioral patterns at runtime using finite automata. In: Proceedings of the 2006 International Workshop on Dynamic Systems Analysis, pp. 33–40. WODA’06. ACM, New York, USA (2006) doi:10.1145/1138912.1138920

  • Wyard, P.: Context-free grammar induction using genetic algorithms. In: IEE Colloquium on Grammatical Inference: Theory, Applications and Alternatives. pp. P11/1–P11/5 (1993)

  • Zheng, Y., Zhang, L., Xie, X., Ma, W.-Y.: Mining interesting locations and travel sequences from GPS trajectories. In: Proceedings of the 18th International Conference on World Wide Web, pp. 791–800. Madrid, Spain (2009) doi:10.1145/1526709.1526816

Download references

Acknowledgments

This research was conducted under Future (Urban) Mobility Interdisciplinary Research Group (FM IRG) of Singapore-MIT Alliance for Research and Technology (SMART), which is funded by the National Research Foundation of Singapore (NRF). The authors would like to thank the Land Transport Authority of Singapore (LTA) for providing the household travel survey data used in this study.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Der-Horng Lee.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Li, S., Lee, DH. Learning daily activity patterns with probabilistic grammars. Transportation 44, 49–68 (2017). https://doi.org/10.1007/s11116-015-9622-1

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11116-015-9622-1

Keywords

Navigation