15
The analysis of dynamic travel mode choice: a heterogeneous hidden Markov approach Chenfeng Xiong * , Xiqun Chen , Xiang He , Wei Guo § , and Lei Zhang November 15, 2014 Abstract Discrete choices are often analyzed statically. The limitations of static models become more obvious when employing them in more long-term travel demand forecasting. The re- search gap lies in a theoretical model which is dynamically formulated, and in readily avail- able longitudinal data sources. To address this, a heterogeneous hidden Markov modeling approach (HMM) is proposed in this paper to model dynamic discrete choices. Both longitudi- nal and cross-sectional heterogeneity are considered. The approach is demonstrated on a travel mode choice application using ten-wave Puget Sound Transport Panel (PSTP) data coupled with some other supplementary data sources. Results indicate that travelers’ long-term life- cycle stages have an enduring impact when shifted to different mode choice states, wherein sensitivities to travel time and cost vary. Empirical results are put in line with static discrete choice models. The paper demonstrates that the family of HMM models provide the best fit- ting model. The dynamic model has superior explanatory power in fitting longitudinal data and thus shall provide more accurate estimates for planning and policy analyses. The proposed ap- proach can be generalized to study other short/mid-term travel behavior. The estimated model can be easily calibrated and transferred for applications elsewhere. * Graduate Research Assistant, E-mail: [email protected]. Research Fellow, E-mail: [email protected]. Graduate Research Assistant, E-mail: [email protected]. § Consultant (DECVP), [email protected] Associate Professor, Dept. of Civil Eng., Univ. of maryland, 1173 Glenn Martin Hall Bldg., College Park, MD 20742. E-mail: [email protected].

The analysis of dynamic travel mode choice: a heterogeneous ...cxiong/pubs/hmm_TRB.pdf63 He further asserted that hidden state is a dynamic extension to “latent classes”. Following

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: The analysis of dynamic travel mode choice: a heterogeneous ...cxiong/pubs/hmm_TRB.pdf63 He further asserted that hidden state is a dynamic extension to “latent classes”. Following

The analysis of dynamic travel mode choice: aheterogeneous hidden Markov approach

Chenfeng Xiong∗, Xiqun Chen†, Xiang He‡, Wei Guo§, and Lei Zhang¶

November 15, 2014

Abstract

Discrete choices are often analyzed statically. The limitations of static models becomemore obvious when employing them in more long-term travel demand forecasting. The re-search gap lies in a theoretical model which is dynamically formulated, and in readily avail-able longitudinal data sources. To address this, a heterogeneous hidden Markov modelingapproach (HMM) is proposed in this paper to model dynamic discrete choices. Both longitudi-nal and cross-sectional heterogeneity are considered. The approach is demonstrated on a travelmode choice application using ten-wave Puget Sound Transport Panel (PSTP) data coupledwith some other supplementary data sources. Results indicate that travelers’ long-term life-cycle stages have an enduring impact when shifted to different mode choice states, whereinsensitivities to travel time and cost vary. Empirical results are put in line with static discretechoice models. The paper demonstrates that the family of HMM models provide the best fit-ting model. The dynamic model has superior explanatory power in fitting longitudinal data andthus shall provide more accurate estimates for planning and policy analyses. The proposed ap-proach can be generalized to study other short/mid-term travel behavior. The estimated modelcan be easily calibrated and transferred for applications elsewhere.

∗Graduate Research Assistant, E-mail: [email protected].†Research Fellow, E-mail: [email protected].‡Graduate Research Assistant, E-mail: [email protected].§Consultant (DECVP), [email protected]¶Associate Professor, Dept. of Civil Eng., Univ. of maryland, 1173 Glenn Martin Hall Bldg., College Park, MD

20742. E-mail: [email protected].

Page 2: The analysis of dynamic travel mode choice: a heterogeneous ...cxiong/pubs/hmm_TRB.pdf63 He further asserted that hidden state is a dynamic extension to “latent classes”. Following

Xiong, Chen, He, Guo, Zhang 2

1 INTRODUCTION1

Although mode choice is obviously an important dimension in individual decision-making process,2

it is usually treated as aggregate in many practices and is not part of the individual travel demand3

models (14). One reason for this treatment is that mode decision is constrained by factors such as4

vehicle ownership, availability of public transit, and transit fare, all of which are relatively stable5

and unlikely to change in a short time period. However, as concepts such as Transit Oriented6

Development (TOD) and multimodal corridor management attract increasing interests from both7

researchers and policy makers, there is increasing need to internalize mode decisions and build a8

more comprehensive model to support long-term policy analysis.9

A number of time-varying personal/household-level factors would influence travel mode choice.10

For instance, a person who previously drove to work may have to carpool in the future if she/he11

gets married and the partner does not own a car. When the kid of a family reaches school age and12

can ride school bus on her own, family adults are more likely to commute alone more often. These13

examples illustrate how changes in lifecycle stage may affect individuals’ mode choice preference.14

In the real world, many other factors may also play their share, e.g. occupation, salary, health15

status, immigration, etc. These factors are time-varying and can no longer be accommodated by16

modeling methods that emphasize only the cross-sectional variability. This research gap in mod-17

eling methodology can be filled, as discrete choice data collected over time (e.g. multi-day/week18

travel diary data, annual panel survey data, etc.) becomes available and provides sufficient empiri-19

cal evidence. Hence, the authors are motivated to:20

• develop a dynamic modeling approach that is flexible enough to consider cross-sectional21

observed/unobserved heterogeneity and time-dependent heterogeneity.22

• empirically test the approach using longitudinal data sources and understand its implications23

and sensitivity.24

The organization of the remainder of the paper is as follows. The next section presents a25

hidden Markov multinomial logit model and one of its direct extensions, hidden Markov random-26

parameter error component model. An empirical application on Puget Sound Travel Panel (PSTP)27

survey data for travel mode decision processes is described in Section 3, followed by a demonstra-28

tion of the model’s capability in capturing individual and system dynamics. Closing remarks on29

theoretical/practical contributions, as well as directions for future research, are offered at the end30

of the paper.31

2 LITERATURE REVIEW32

The majority of travel mode choice studies have been focused on econometric theory of random33

utility maximization. It assumes that an individual’s choice is determined by the indirect utilities34

of each alternative and the individual can choose the one that maximizes her/his utility level. For35

example, (9) used a multinomial logit model to predict mode share changes in response to a range36

of transit service improvements. Later on, a great deal of advances has been done following this37

line of research. Mixed logit models have been applied to model mode choice and incorporate38

both observed and unobserved heterogeneities (10). The assumption of independence from irrel-39

evant alternatives (IIA) has been addressed by a series of studies on nested logit and generalized40

Page 3: The analysis of dynamic travel mode choice: a heterogeneous ...cxiong/pubs/hmm_TRB.pdf63 He further asserted that hidden state is a dynamic extension to “latent classes”. Following

Xiong, Chen, He, Guo, Zhang 3

nested logit models (e.g. 19, 21). However, most existing studies model static choice and rely41

on cross-sectional datasets (8, 13, 14). Only recently, increasing amount of research on dynamic42

models has been available (e.g. (4, 15, 20)). For example, Cirillo and Axhausen (5) studied short-43

term mode choice dynamics using discrete choice method and panel data. They further extended44

the method to include dynamic variables in the systematic utility functions (4). Srinivasan and45

Bhargavi investigated long-range commute mode choice dynamics (including exogenous variable46

change, state-dependence, user sensitivity, and unobserved factors) in India using a five-year lon-47

gitudinal dataset (17). Their model captured persistent inertia which would hinder the immediate48

effects, as predicted by traditional cross-sectional models, of improved LOS in transit services.49

Research on short-term within-day (16) and day-to-day (11) variability was also seen in literature.50

As an alternative, process models attract increasing research attention. Arentze and Timmer-51

mans developed a computational process model (ALBATROSS) wherein decision trees were em-52

ployed to model the decision-making process (1). Goulias reported results within the context of53

time-use and activity patterns using Markov process model and PSTP dataset (7). Ben-Akiva (2)54

proposed a planning and action hidden Markov model (HMM) where the intrinsic plan of chang-55

ing modes was modeled as a Markov process. Choudhury et al., (3) apply HMM to study dynamic56

plans of driving and route choice behavior for a shorter time horizon. Xiong and Zhang proposed a57

HMM mode search/switching model (22). It is found that travelers can be classified into different58

“states” (e.g. car-loving state v.s. transit-loving state). With changes in level-of-service and/or59

socio-demographic characteristics, travelers may change their preference, which can be identified60

as the state-switching using the HMM model. Vij (18) also demonstrated the use of HMM more61

specific to mode choice and mode switching behavior based on panel data from Santiago, Chile.62

He further asserted that hidden state is a dynamic extension to “latent classes”. Following this line63

of HMM research, this paper seeks to further uncover the factors that contribute to the dynamics64

of mode choice behavior.65

Based on the existing mode choice research on inertia, values, attitudes, and preference, this66

paper takes a fundamental step in modeling the dynamics of the choice. All aforementioned “la-67

tent” human factors can eventually fit in the proposed hierarchical approach in explaining why and68

how choice makers are evolving and making decisions. A hidden Markov process is developed69

here. The hidden states are a finite set of states representing different hidden modal preferences.70

A nonhomogeneous transition matrix has been developed to replace the transition probabilities in71

the matrix and thus it can incorporate more time-varying covariates such as household compo-72

sition changes, income increase, personal occupation changes, etc. All these life-stage changes73

determine the innate drive force of the mode choice dynamics. For instance, when two adults get74

married, the household is more likely to coordinate more carpool commute than households with75

single adult. Household adults will do drive-alone more if their kids reach school age and take76

school buses. These quick examples help explain the dynamic influences on mode choice. Condi-77

tioned on these states, a set of state-dependent utility functions can be formulated and estimated to78

model the choice. A Bayes MCMC procedure has been used to estimate the HMM model and to79

account for observed heterogeneity. A hierarchical Bayesian error component is used to account80

for unobserved heterogeneity.81

Page 4: The analysis of dynamic travel mode choice: a heterogeneous ...cxiong/pubs/hmm_TRB.pdf63 He further asserted that hidden state is a dynamic extension to “latent classes”. Following

Xiong, Chen, He, Guo, Zhang 4

3 MODELING DYNAMIC MODE CHOICE: A HIDDEN MARKOV APPROACH82

We define Y = {yi,t} as a vector of all travel mode choices yi,t observed for individual i during83

the time period t. In our application, t is defined as the time between each two waves of the84

longitudinal data collection (typically one year). yi,t can take values from 1 to 5, indicating auto85

drive alone, carpool, transit, walk, and bike, respectively. Some predefined availability constraints86

are specified here in order to make the estimation more meaningful (e.g. walk mode is not available87

for travels with excessively long distance). Heterogeneous choice sets can be a worthy topic for88

future research.89

We model the transitions between states as a Markov process. The transition matrix is defined90

as:91

P i,t−1→t =

p(1,1)it p

(1,2)it · · · p

(1,H)it

p(2,1)it p

(2,2)it · · · p

(2,H)it

...... . . . ...

p(H,1)it p

(H,2)it · · · p

(H,H)it

In this formulation, P i,t−1→t is the Markov chain transition matrix expressing, in probabilistic92

manner, the likelihood that traveler i switches hidden state. In a typical hidden Markov model, the93

transition probabilities term p(a,b)it is often defined as a constant transition probability as:94

p(a,b)it = Pr(Ht+1 = b|Ht = a) (1)

In this paper, this homogeneous Markov transition is further extended with observed hetero-95

geneity. Consider different states of travel mode choice, it highly depends on a number of factors,96

which is already successfully observed from latent-class approach (18) and latent variable approach97

(12). This paper explores the specification of a heterogeneous Markov transition by hypothesizing98

that the transition highly depends on whether the household or life cycle changes in the previ-99

ous period were strong enough to transition the traveler to another state. For simplicity, we first100

assume a simple two-state hidden Markov model with p(h1,h2)it denoting the transition probability101

from hidden state h1 to hidden state h2 for individual i in period t. Here we allow the transition102

probabilities to be dependent on covariates as well. We introduce the following parameterizations103

for the heterogeneous Markov transitions:104

p(h1,h2)it =

exp(Zit′λ(h1,h2))

1 + exp(Zit′λ(h1,h2))

(2)

λ(h1,h2) is the corresponding regression coefficients for the transition probability p(h1,h2)it . Z105

denotes personal/household covariates. This formulation defines a heterogeneous Markov Chain106

since it allows the transition probabilities of the hidden states to depend on the set of observed107

covariates (including travel time, cost, and socio-demographic variables). This extension is gen-108

eral enough to, in the future, incorporate drivers’ latent modal preferences and their unobserved109

variables including values, inertia, and attitudes into the formulation.110

We assume that given individual i’s true state Hit in period t, the observed process of travel111

mode choices: Yit are conditionally independent of the hidden state of other time periods. The112

Page 5: The analysis of dynamic travel mode choice: a heterogeneous ...cxiong/pubs/hmm_TRB.pdf63 He further asserted that hidden state is a dynamic extension to “latent classes”. Following

Xiong, Chen, He, Guo, Zhang 5

state-dependent mode choice follows random utility maximization modeling form. Thus, we as-113

sume that the state-dependent choice of the alternative mode m has the utility as follows:114

V m(it|Hit)

= Z′

i,tβ(m|Hit)+ X′

m,tγ(m|Hit)+ ε(im|Hit) (3)

where β and γ are the vectors of state Hit dependent fixed parameters for personal/household115

covariates Z and travel mode covariates X, respectively. Level-of-service variables (i.e. travel116

time, cost) and various personal/household characteristics (e.g. gender, income level, number of117

vehicles) can enter the formulation of utility functions. Therefore, the probability for individual i118

to choose travel mode m, conditional on the unobserved random state Hit is given by:119

Pr(Yit = m|Hit = h) =exp(Z′

itβm|h + X′itγm|h)∑

j exp(Zit′βh|j + X′

itγm|j);h = 1, ..., H (4)

Where Zit is the vector of covariates measured at period t for individual i, βhm is the corre-120

sponding regression coefficients for choosing mode m hidden state h. One good feature about this121

hierarchical modeling structure is that this model can be generalized to allow for various forms of122

parameter heterogeneity following the well-established line of random utility maximization while123

still retaining its dynamic nature. For instance, combining random parameters and error compo-124

nents into the modeling structure can account for heterogeneity across observations. This paper125

extends the HMM function by incorporating error components into state-dependent utility func-126

tions:127

V m(it|Hit)

= Z′

i,tβ(m|Hit)+ X′

m,tγ(m|Hit)+ σ(m|Hit)η(im|Hit) + ε(im|Hit) (5)

where σ(m|Hit) is a scalar parameter specific to travel mode m and state Hit. η(im|Hit) is a128

random variable hypothesized to be i.i.d. normal (0, 1) across individuals i, modes m,and hidden129

states. Conditionally conjugate priors that are commonly used in different Bayesian statistical130

studies are employed in this paper to sample posterior distributions for the coefficients. In terms131

of the empirical test in this paper which employs 10-year travel panel survey data, we adopt non-132

informative conjugate priors and let the massive data determine inferences. This is largely due133

to the huge sample size over the years and the fact that little evidence is known in terms of any134

established prior information regarding the estimation parameters.135

σm ∼ Inverse Gamma (am, bm) (6)

where am and bm are predefined values. An individual’s decision probabilities are correlated136

through the common underlying path of the hidden states, because of the Markovian properties of137

the model. Therefore, the joint likelihood function is given as:138

L(β,λ, Hit) = Pr(Yi1 = yi1, · · · ,YiN = yiN)

=∑Hi1

∑Hi2

· · ·∑HiN

[Pr(Hi1)N∏t=2

Pr(Hit|Hit−1)]

·N∏t=1

Pr(Yit = yit|Hit)

(7)

Page 6: The analysis of dynamic travel mode choice: a heterogeneous ...cxiong/pubs/hmm_TRB.pdf63 He further asserted that hidden state is a dynamic extension to “latent classes”. Following

Xiong, Chen, He, Guo, Zhang 6

WhereN denotes the total number of periods in the observations. Hi1 denotes the initial hidden139

state of the individual i. Its distribution is solved using Equation 5 Therefore, the likelihood can be140

interpreted as that the joint likelihood of a sequence of observations of choosing alternative modes141

is given by the sum over all possible routes that this person could take over periods between the142

underlying states.143

Parameters of the transition matrix and state-dependent searching are estimated using the joint144

likelihood function in Equation 7. Estimation and maximization of the likelihood is not easy es-145

pecially when the transition matrix is covariate-dependent. Here we employ Bayesian estimation146

and Markov Chain Monte Carlo (MCMC) simulation to sample the parameter distributions. This147

method follows Bayesian statistical inference. This paper assumes prior distributions for the re-148

gression coefficients β and λ(h1,h2). The Bayesian inference is based on the posterior distribution:149

Pr(β, λ,Hit|Y) = L(β, λ,Hit)Pr(β, λ,Hit) (8)

This formulation’s left-hand side represents the posterior distribution of the coefficients. The150

right-hand side is a multiplication of the joint likelihood function and the prior distribution. To151

estimate the coefficients, this posterior distribution needs to be sequentially drawn. However, the152

equation does not have a closed form. In Bayesian theory, if it is possible to express each of the153

coefficients to be estimated as conditioned on the others, then we can eventually reach the true joint154

distribution by cycling through these conditional statements (6). Thus we use MCMC simulation to155

sample the posterior. For this paper, standard MCMC technique (i.e. Gibbs sampler) is coded using156

R and WinBUGS package. Starting from initial values [β[0],λ[0]] (the superscript denotes the step),157

at the jth step, the estimation method draws values from the following conditional distributions:158

β[j] ∼ π(β|β[j−1],λ[j−1]) (9)159

λ[j] ∼ π(λ|β[j],λ[j−1]) (10)

π(β,λ) denotes the limiting distribution of interest where β and λ are the vectors of coeffi-160

cients whose posterior distribution we want to describe. j is incremented and repeated until conver-161

gence. By doing this, a Markov chain that cycles through these conditional statements Equations162

(9) and (10) moving forward and then around the true limiting distribution has been constructed.163

Once convergence is reached, a sufficient number of samples should be drawn to represent all areas164

of the target posterior. Gibbs sampling requires a full set of conditional distributions which is often165

not the case in hierarchical conditional relationships. The Metropolis-Hastings algorithm can be166

explored in future research when the model is enhanced with a Bayesian hierarchical structure.167

4 DATA168

The data used for this study is from the Puget Sound Transportation Panel survey data that was169

collected over a 10-year period from 1989 to 2000. Each wave of the panel included some 1,700170

household samples and 3,400 people in the Puget Sound area, which were stratified by travel171

modes and residence county. Each member of the households surveyed were asked to record a172

two-day diary along with their personal, household, and vehicle information. The first wave survey173

started in 1989 with 1,687 households. Approximately 20% of the samples left the panel between174

each wave due to relocation and other issues. This attrition was replaced with new households.175

Page 7: The analysis of dynamic travel mode choice: a heterogeneous ...cxiong/pubs/hmm_TRB.pdf63 He further asserted that hidden state is a dynamic extension to “latent classes”. Following

Xiong, Chen, He, Guo, Zhang 7

The panel data is processed in the way that any households that have stayed in the panel for 6176

consecutive waves are included in the data set. All the home-based work trips produced by these177

households are then collected for analyzing the commute travel mode choice. A total number of178

1,050 samples have been included in the analysis, which results in 6,300 commute trip records in179

the data set. Descriptive statistics are summarized by Table 1. Statistics for wave 7, 8, 9, and 10180

are omitted.181

Table 1: Descriptive Statistics

Wave 1 Wave 2 Wave 3 Wave 4 Wave 5 Wave 6

mean mean mean mean mean mean(std. dev.) (std. dev.) (std. dev.) (std. dev.) (std. dev.) (std. dev.)

Gender(0=Male) 0.47(0.5) 0.48(0.5) 0.47(0.5) 0.47(0.5) 0.47(0.5) 0.47(0.5)Age 42.5(16.1) 42.4(16.2) 44.5(16.7) 43.5(16.6) 45.9(16.7) 44.2(16.8)# of Vehicle 2.1(1.1) 2.1(1.1) 2.1(1.7) 2.1(1.1) 2.1(1.2) 2.1(1.2)Household Size 2.6(1.3) 2.6(1.3) 2.5(1.3) 2.5(1.2) 2.5(1.2) 2.6(1.3)Income level 5.4(2.3) 5.7(2.2) 5.5(2.1) 5.4(2.2) 5.6(2.3) 5.8(2.9)Life-cycle Stage 4.5(2.6) 4.5(2.6) 4.7(2.6) 4.6(2.6) 4.8(2.5) 4.6(2.6)# persons surveyed 3392 4267 3736 4081 3735 4574# households surveyed 1712 1923 1703 2005 1902 2238

One uniqueness of this data is that it provides one of the few, if any, longitudinal travel survey182

datasets within United States. It is rich in long-term travel behavior adjustments. For instance,183

the commute travel mode shares for the observed 10-wave panel data are plotted in Fig. 1a. We184

can observe a slight increase in drive-alone percentage while transit and walk shares shrink. At185

the same time, more profound life-cycle stage and household composition changes beyond travel186

behavioral changes can be captured by this dataset. Here we choose to analyze the most repre-187

sentative life-cycle stages. The predefined life-cycle stages (i.e. 1:pre-school kids; 2: school-age188

kids; 3: 1 adult under 35, no kids; 4: one adult 35-64, no kids; 5: one adult above 65, no kids;189

6:two+ adults under 35, no kids; 7: two+ adults 35-64, no kids; 8: two+ adults above 65, no kids) is190

re-grouped into four categories: 1) households with preschool kids; 2) households with school-age191

kids; 3) single households no kids; 4) two+ households no kids. During the panel survey period,192

the proportion changes of these four types of households can be tracked in Fig. 1b.193

Within the over ten years of the ten-wave survey, the percentage of households with kids194

dropped to around 30%. Significant decrease in the percentage of households with preschool-age195

kids is observed. On the contrary, the percentage of single households without kids has increased196

while 2-adult families remain in a stable percentage. While this paper’s main purpose is to pro-197

pose and demonstrate the dynamic mode choice model, the changes in household composition and198

life-cycle stages can be an important factor in explaining the dynamics and thus can introduce199

interesting empirical finding if we incorporate this in the model.200

Fig. 2 plots commute travel mode share in different waves for travelers in different life-cycle201

stages. While the mode share for travelers in life-cycle stage 4 (plotted in Fig. 2d) is gener-202

ally stable during the plotted six time periods, travelers in other stages tend to behave differently203

among different time periods. For instance, growing carpool share and diminishing tansit share are204

observed among individuals in lifecycle stage 2.205

Page 8: The analysis of dynamic travel mode choice: a heterogeneous ...cxiong/pubs/hmm_TRB.pdf63 He further asserted that hidden state is a dynamic extension to “latent classes”. Following

Xiong, Chen, He, Guo, Zhang 8

wave 1wave 2wave 3wave 4wave 5wave 6wave 7wave 8wave 9wave 1050

60

70

80

90M

ode S

hare

Perc

enta

ge

CarCarpoolTransitWalkbike

(a) Commute travel mode ahare for the 10-wavepanel

wave 1wave 2wave 3wave 4wave 5wave 6wave 7wave 8wave 9wave 100

10

20

30

40

50

60

70

80

90

Life

-cycl

e s

tage p

erc

enta

ges

(%)

HH with preschool kidsHH with school age kidsSingle hhlds no kids2+ hhlds no kids

(b) % of households in different life-cycle stages

Figure 1: Commute travel mode split and household life-cycle stage changes during the survey

5 ESTIMATION RESULTS206

The HMM family of models are compared with their benchmarks to reach a conclusion of whichmodel fits the data best. Five alternative model specifications are considered: a standard multi-nomial logit model (MNL), which has a single homogeneous component and fixed parametersacross all observations; a latent classes model; a mixture model of latent classes and error com-ponents; a two-state homogeneous-chain hidden Markov multinomial logit model; and a two-stateheterogeneous-chain hidden Markov model with error components. Following Vij et al., (18) for-mulation, we specify our state/class-dependent systematic utility functions as follows:

V auto = β0,auto + β1 · tauto + β4 · cauto + β5 · highinc · cauto + β6 · numveh/hhsizeV carp = β0,carp + β1 · tcarp + β4 · ccarp + β5 · highinc · ccarp + β7 · numveh/hhsizeV transit = β0,transit + β1 · ttransit + β2 · taccess + β4 · ctransit + β10 · buspassV walk = β0,walk + β2 · twalk + β8 ·maleV bike = β0,bike + β3 · tbike + β9 ·male

Where t denotes travel time; c denotes travel cost; highinc is a dummy variable for higher in-207

come population (with household annual income higher than $35K); numveh denotes the number208

of vehicles in household; hhsize denotes the household size; buspass is a dummy variable for209

holding a bus pass; male dis a dummy variable for male travelers.210

Various performance measures of these five models are compared in Table 2. The estimated211

parameters from the MNL model are set up as a group of initial values to the Bayesian estimation212

of the hidden Markov models. The details about the estimation results of the benchmark model213

are not included in the interest of paper length but can be obtained from the authors. The same214

utility functions specified in MNL are used in modeling the class-dependent choice (latent classes215

models) and state-dependent choice (hidden Markov models). From Table 2, it is worth noting that216

static latent classes models do not fit the data very well. Even with 42 parameters specified in a217

latent-classes model with error components, the Pseudo ρ2 statistic is only improved from 0.673218

Page 9: The analysis of dynamic travel mode choice: a heterogeneous ...cxiong/pubs/hmm_TRB.pdf63 He further asserted that hidden state is a dynamic extension to “latent classes”. Following

Xiong, Chen, He, Guo, Zhang 9

wave 1 wave 2 wave 3 wave 4 wave 5 wave 650

60

70

80

90M

ode S

hare

Perc

enta

ge

CarCarpoolTransitWalkbike

(a) Lifecycle stage 1: family with preschool agekids

wave 1 wave 2 wave 3 wave 4 wave 5 wave 650

60

70

80

90

Mode S

hare

Perc

enta

ge

CarCarpoolTransitWalkbike

(b) Lifecycle stage 2: family with school age kids

wave 1 wave 2 wave 3 wave 4 wave 5 wave 650

60

70

80

90

Mode S

hare

Perc

enta

ge

CarCarpoolTransitWalkbike

(c) Lifecycle stage 3: single-adult family no kids

wave 1 wave 2 wave 3 wave 4 wave 5 wave 650

60

70

80

90

Mode S

hare

Perc

enta

ge

CarCarpoolTransitWalkbike

(d) Lifecycle stage 4: double-adult family no kids

Figure 2: Commute Travel Mode Share for Different Lifecycle Stages

to 0.737. This is likely to be due to the fact that hidden Markov models consider the dependen-219

cies between time periods and capture time-varying heterogeneity with the transition probabilities,220

which a typical static latent-classes model can not. A homogeneous-chain HMM model (i.e. transi-221

tion probabilities are not related to personal/household covariates) with 40 parameters outperforms222

latent-classes model with pseudo ρ2 = 0.798. And the extension to a heterogeneous chain (i.e. a223

transition model rather than probabilities) can further enhance the goodness-of-fit. This demon-224

strates the superiority of HMM models in modeling dynamic data.225

We report the estimation results for the HMM models in Table 3. The standard errors of the226

estimated parameters are reported in the brackets. Insignificant parameters at the 90% confidence227

level are denoted as italic in Table 3.228

Once in a specific state, holding certain preferences on different travel modes for commuting229

travel, travelers exhibit certain levels of inertia in changing the state. This is validated by the230

negative and significant estimates for the Markov transition probabilities, which also indicates231

the stickiness of the two states (stickiness indicates that the probability of staying in the state is232

greater than the probability of switching out). Secondly, the heterogeneous chain estimates suggest233

significantly negative results for long-term life-cycle stages. This finding indicates that compared234

Page 10: The analysis of dynamic travel mode choice: a heterogeneous ...cxiong/pubs/hmm_TRB.pdf63 He further asserted that hidden state is a dynamic extension to “latent classes”. Following

Xiong, Chen, He, Guo, Zhang 10

Table 2: Performance Measures for Choosing the Number of Hidden States

# of Log- PseudoModels parameters likelihood ρ2

Standard multinomial logit model 14 -3246.7 0.673Latent classes model 32 -3126.04 0.689Latent classes with error components 42 -2667.65 0.737Homogeneous-chain HMM error components 40 -2053.0 0.798Heterogeneous-chain HMM error components 46 -1670.0 0.854

to travelers in a 2-adult household, single individuals and individuals with kids in general have235

higher inertia in switching hidden states (except that single-family individuals are more likely to236

switch from state 1 to state 2). We found this initial finding interesting. While further evidence237

needs to be drawn to validate the true impact from life-cycle stages on transitions between different238

states, the empirical results suggest that this modeling framework can serve as a useful test-bed239

wherein various empirical assumptions on choice dynamics, not limited to travel mode choice, can240

be tested. For instance, more general assumptions on inertia, modal preference, and attitudes can241

be incorporated in modeling this state transition.242

From the empirical test, HMM model finds factors that significantly influence travelers’ com-243

mute travel mode choice. The HMM model with heterogeneous chain and error components (de-244

noted as EC in Table 3) demonstrated a superior goodness-of-fit by accounting for both the cross-245

sectional unobserved heterogeneity and time-varying observed heterogeneity. The EC effects for246

different alternatives are all positive and significant, indicating strong alternative-specific taste vari-247

ation. State-1 individuals tend to have the highest variation in bike utilities, while the variation is248

high for auto, transit, and bike modes for state-2 individuals. In terms of our posterior estimates,249

we find that State 1 tends to be a “time/cost-sensitive state” which has the highest elasticity of de-250

mand with respect to travel times and costs. In this state, individuals tend to have higher commute251

value-of-time (reported in Table 6) and evaluate their options mainly based on travel times/costs252

of each travel mode. Higher numbers of vehicles per person are likely to trigger individuals in253

this state to choose driving. Possessing a metro card does not necessarily increase the propensity254

to use transit significantly. On the contrary, State 2 is more likely to be a “auto-loving” state,255

judging by the alternative specific constant (ASC) statistics. Individuals in this state have strong256

preferences towards driving-alone mode and their sensitivities to level-of-service variables are less257

intense when compared with State 1. Marginal disutilities from travel time and costs are estimated258

one tenth of the scale of the disutilities observed for State 1. Therefore, State 2 is likely to be259

related to individuals on certain life-cycle stages. Conforming to the findings obtained from the260

heterogeneous Markov transitions, Individuals on life stage 2 and 3 are more likely to stay in State261

2. Especially for life stage 3 individuals (single adult with no kids), the positive estimate on the262

transition probability from State 1 to State 2 is 1.128, which suggests that they have a much higher263

possibility to switch state in the short-term if they are currently in State 1. This coefficient for life264

stage 1 individuals (adults with preschool-age kids) is -1.674 and -0.916 for the two transitions,265

respectively. It indicates that while in general reluctant to any change, preschool kids parents are266

more likely to stay in “time/cost sensitive state”. Similar interpretation can be done to life stage 3267

Page 11: The analysis of dynamic travel mode choice: a heterogeneous ...cxiong/pubs/hmm_TRB.pdf63 He further asserted that hidden state is a dynamic extension to “latent classes”. Following

Xiong, Chen, He, Guo, Zhang 11

individuals. If considering the case when an individual makes life-stage change from stage 1 to 2,268

for example, this individual have a much higher chance to stop being a time/cost sensitive parent269

and embrace the “car-loving” state.270

Table 3: Estimation Results for the hidden Markov models

Models Homogeneous Chain HMM EC Heterogeneous Chain HMM EC

State 1 MNL EC State 2 MNL EC State 1 MNL EC State 2 MNL ECCoeff. (Std. Err.) Coeff. (Std. Err.) Coeff. (Std. Err.) Coeff. (Std. Err.)

Variables Hidden Markov Error Component Models

In-vehicle time (min.) -1.13 (0.080) -0.074 (0.027) -1.165 (0.120) -0.072 (0.025)Walk time (min.) -0.564 (0.047) -0.048 (0.006) -0.576 (0.047) -0.046 (0.006)Bike time (min.) -0.541 (0.057) -0.041 (0.008) 0.548 (0.052) -0.053 (0.012)Travel cost (2013 $) -1.876 (0.185) -0.315 (0.084) -1.794 (0.275) -0.279 (0.083)High income * cost (2013 $) 0.021 (0.500) 0.329 (0.111) 0.079 (0.031) 0.149 (0.085)# veh / household size - car 1.86 (1.065) 0.512 (0.275) 5.423 (1.255) 0.646 (0.197)# veh / household size - carpool -0.9257 (0.991) 0.703 (0.207) -1.148 (1.348) 1.041 (0.282)male - walk -1.292 (0.723) 1.935 (1.093) 0.186 (0.707) 1.888 (1.006)male - bike -0.013 (1.323) 2.026 (0.305) 0.004 (3.15) 2.183 (0.615)buspass - transit 0.772 (1.838) 6.40 (0.454) 0.763 (2.327) 6.080 (1.642)ASC (auto) 0.964 (1.112) 6.494 (0.698) 0.897 (1.086) 6.347 (0.808)ASC (carpool) -0.915 (0.954) 0.380 (0.778) 1.323 (1.34) -0.002 (0.906)ASC (transit) -2.552 (1.056) -1.064 (1.046) -2.018 (1.064) -1.149 (0.983)ASC (walk) 1.533 (0.150) 2.758 (0.964) 1.557 (0.137) 0.424 (1.436)ASC (bike) 0 (fixed)EC (auto) 0.544 (0.148) 4.899 (0.578) 0.435 (0.042) 5.091 (0.314)EC (carpool) 1.717 (0.362) 0.310 (0.068) 0.795 (0.083) 0.112 (0.010)EC (transit) 1.076 (0.466) 2.741 (0.422) 0.489 (0.121) 4.059 (0.514)EC (walk) 2.335 (0.850) 0.282 (0.088) 0.212 (0.031) 0.117 (0.015)EC (bike) 3.295 (0.309) 3.653 (0.448) 4.018 (0.233) 3.401 (0.339)

Markov Transition Probabilities

p(1, 2) p(2, 1) p(1, 2) p(2, 1)

ASC -1.862 (0.127) -2.804 (0.113) -1.504 (0.143) -2.271 (0.119)Life stage 1 (preschool kids) n/a n/a -1.674 (0.632) -0.916 (0.344)Life stage 2 (school kids) n/a n/a -0.504 (0.257) -1.523 (0.342)Life stage 3 (1 adult no kids) n/a n/a 1.128 (0.522) -1.174 (0.487)

Number of Obs. 6,300 6,300Log Likelihood -2053.0 -1670.0

Pseudo R2 0.798 0.854

The model predicted a Markov transition with small transition probabilities (negative coef-271

ficients from Table 3. We further test the model’s sensitivities to Markov transition covariates272

Page 12: The analysis of dynamic travel mode choice: a heterogeneous ...cxiong/pubs/hmm_TRB.pdf63 He further asserted that hidden state is a dynamic extension to “latent classes”. Following

Xiong, Chen, He, Guo, Zhang 12

Table 4: Sensitivity of the heterogeneous Markov transition covariates

in State 1 car carpool transit walk bike

Life stage 1 (preschool age kids) -21.87 9.93 -4.22 0.06 -0.97 -4.80Life stage 2 (school age kids) 13.32 -6.21 2.52 -0.05 0.77 2.96Life stage 3 (one adult no kids) -4.86 2.33 -1.24 0.07 0.04 -1.20Life stage 4 (two adults no kids) 21.49 -9.98 3.89 -0.08 1.20 4.98

Table 5: Sensitivity of the Hidden Markov Error Component Logit Model

Variable Hidden State 1 Hidden State 2

car carpool transit walk bike car carpool transit walk bike

car time (min.) -3.9254 1.6391 0.0291 0.3355 1.9218 -0.1608 0.0495 0.0622 0.0309 0.0182

carpool time (min.) 1.5549 -2.6939 0.0379 0.0029 1.0983 0.0436 -0.0458 0.0004 0.0005 0.0012

Transit in-vehicle time (min.) 0.0180 0.0408 -0.1023 0.0000 0.0435 0.0595 0.0004 -0.0606 0.0004 0.0003

Transit walk time (min.) 0.0104 0.0211 -0.0565 -0.0000 0.0250 0.0384 0.0003 -0.0391 0.0003 0.0002

Walk time (min.) 0.1694 0.0024 0.0000 -0.5894 0.4176 0.0217 0.0003 0.0003 -0.0231 0.0007

Bike time (min.) 0.8857 0.6637 -0.0274 0.4124 -1.9893 0.0135 0.0009 0.0003 0.0009 -0.0156

Car cost ($) -5.6895 2.4194 0.0456 0.4668 2.7577 -0.3605 0.1059 0.1357 0.0783 0.0406

Carpool cost ($) 2.2423 -3.7626 0.0522 0.0035 1.4647 0.0924 -0.0970 0.0008 0.0010 0.0028

Transit fare ($) 0.0236 0.0567 -0.1355 0.0000 0.0522 0.1201 0.0008 -0.1223 0.0008 0.0006

High income (1 if > $50K) 0.0787 -0.0358 -0.0004 -0.0162 -0.0271 0.0845 -0.0210 -0.0090 -0.0439 -0.0106

Number of vehicles 8.4738 -4.1144 -0.0290 -0.7520 -3.5784 0.2754 0.1283 -0.2346 -0.1014 -0.0676Household size -6.1446 3.1767 0.0151 0.5589 2.3939 -0.1607 -0.0894 0.1781 0.0522 0.0197Male traveler (1 if male) -0.0474 -0.0016 0.0000 0.1082 -0.0592 -0.4729 -0.0040 -0.0091 0.4233 0.0627

buspass -0.0151 -0.0089 0.0610 0.0000 -0.0370 -5.1617 -0.1568 5.5587 -0.1325 -0.1078

and state-dependent choice covariates. Sensitivity statistics are reported in Table 4 and Table 5.273

Lifestage status is significantly influence the share of individuals in different hidden states. In274

terms of sensitivities to different modes, life stage 2 and 4 individuals exhibit similar patterns in275

increasing the percentages of carpool and low-speed modes. The marginal effects from one minute276

increase in different travel times and from one dollar increase in different travel costs are presented277

in Table 5. For example, one minute increase in car travel time will lead to a 3.93% decrease in car278

mode share among State 1 travelers. This number is much smaller for State 2 as State 2 individuals279

are predicted to be less sensitive to time and cost.280

Finally, the estimation with regards to commute value of travel times is presented in Table 6.281

Value of travel times can be calculated for both states and both the low-income group and the high-282

income group. Monetary terms are transferred to dollars in year 2013 using consumer price index283

in order to make results comparable to findings in most recent research. In State 1, individuals284

tend to have a higher value of time. The difference between low-income and high-income people285

is found much smaller.286

Page 13: The analysis of dynamic travel mode choice: a heterogeneous ...cxiong/pubs/hmm_TRB.pdf63 He further asserted that hidden state is a dynamic extension to “latent classes”. Following

Xiong, Chen, He, Guo, Zhang 13

Table 6: Value of time estimates (in 2013 $)

State 1 State 2Low-income High-income Low-income High-income

In-vehicle time ($/hr) 37.8 39.6 15.5 33.2Walk time ($/hr) 18.9 19.7 9.89 21.2Bike time ($/hr) 18.1 18.9 11.4 24.5

6 CONCLUSIONS287

The objective of this paper is to explore the dynamic nature of travel mode choice. To accomplish288

this goal, the choice has been formulated as a hidden Markov model. Bayesian estimation with289

MCMC sampling procedure has been used to estimate the HMM model and to account for observed290

heterogeneity. This method is believed to embed time-varying heterogeneity in modeling mode291

choice. This extension helps relieve the limitation of time-constant assumptions of traditional292

methods, which can be potentially problematic if models employ longitudinal data. The model293

further extends the HMM to include hierarchical random parameters and error components in order294

to better consider unobserved heterogeneity. Most importantly, the model includes a heterogeneous295

transition matrix to incorporate observable dynamics. This is innovative and can be potentially296

significant since it provide a hierarchical framework wherein a great deal of empirical assumptions297

and model formulation can be tested.298

Practical highlights of the paper include an empirical experiment conducted using a 10-wave299

Puget Sound Travel Panel (PSTP) data. In order to obtain supplementary data on alternative modes,300

Seattle region’s planning model is obtained and executed to collect 24-hour origin-destination301

skimming matrix information. The paper has found that the HMM family of models produces302

the best data fitting when compared with static discrete choice models such as MNL and latent-303

classes. Two hidden states were specified and the model statistics suggested a clear evidence that304

individuals’ long-term life-cycle changes significantly influence their state switching. Other fac-305

tors, such as mode-specific level-of-service variables, household characteristics (household size,306

number of vehicles), and personal characteristics were found to have an effect on commute mode307

choice in a dynamic context.308

This paper remains as a first research effort that uses panel dataset to estimate a model with309

sensitivity to time/cost changes and various personal/household changes. It is fully acknowledged310

that limitations are there for us to address in the future. First of all, all travel modes are assumed311

available to decision-makers. This assumption needs to be relaxed as modality availability is more312

variant especially in modeling long-term behavior. Another limitation lies in the way we specify313

the HMM transition matrix. We demonstrate the formulation of transition matrix using two hidden314

states and the life-cycle stage variables. Other socio-demographical variables could influence the315

state specification and the number of states. For instance, we may try to capture more modality316

styles (18) e.g. inveterate drivers, car commuters, multimodals, etc.317

Future work can also focus on the theoretical part, e.g. taking into account the individual un-318

observed heterogeneity in the HMM model. Random-effect parameters can be incorporated into319

the transition matrix and estimated with a hierarchical Bayesian structure, allowing for unobserved320

heterogeneity in the stickiness to different states. Another promising direction can explore practical321

Page 14: The analysis of dynamic travel mode choice: a heterogeneous ...cxiong/pubs/hmm_TRB.pdf63 He further asserted that hidden state is a dynamic extension to “latent classes”. Following

Xiong, Chen, He, Guo, Zhang 14

applications of this model. The authors see a potential integration of the HMM and a one-day traf-322

fic simulation model to simulate day-to-day behavior changes. Interesting results on multimodal323

behavior responses can be captured.324

7 Acknowledgement325

This research is financially supported by a National Science Foundation CAREER Award, “Re-326

liability as an Emergent Property of Transportation Networks”, and the U.S. Federal Highway327

Administration Exploratory Advanced Research Program. The authors are grateful to Neil Kilgren328

and Carol Naito affiliated with Puget Sound Regional Council for kindly provide Puget Sound329

Transportation Panel data and supplemented Puget Sound regional planning skimming matrices.330

The authors would like to thank Chen Dong affiliated with the Department of Mathematics, Univ.331

of Maryland, for his advice in addressing various hidden Markov model estimation issues. The332

opinions in this paper do not necessarily reflect the official views of NSF or FHWA. They assume333

no liability for the content or use of this paper. The authors are solely responsible for all statements334

in this paper.335

References336

[1] Arentze, T. A. and H. J. Timmermans (2004). A learning-based transportation oriented simu-337

lation system. Transportation Research Part B: Methodological 38(7), 613–633.338

[2] Ben-Akiva, M. (2010). Planning and action in a model of choice. Choice modelling: the339

state-of-the-art and the state-of-practice. Emerald, 19–34.340

[3] Choudhury, C. F., M. Ben-Akiva, and M. Abou-Zeid (2010). Dynamic latent plan models.341

Journal of Choice Modelling 3(2), 50–70.342

[4] Cirillo, C. and K. W. Axhausen (2010). Dynamic model of activity-type choice and scheduling.343

Transportation 37(1), 15–38.344

[5] Cirillo, C., K. W. Axhausen, K. W. Axhausen, and K. W. Axhausen (2002). Mode choice of345

complex tours: A panel analysis. ETH, Eidgenossische Technische Hochschule Zurich, Institut346

fur Verkehrsplanung, Transporttechnik, Strassen-und Eisenbahnbau IVT.347

[6] Gill, J. (2002). Bayesian methods: A social and behavioral sciences approach. CRC press.348

[7] Goulias, K. G. (1999). Longitudinal analysis of activity and travel pattern dynamics using349

generalized mixed markov latent class models. Transportation Research Part B: Methodologi-350

cal 33(8), 535–558.351

[8] Kitamura, R. (1990). Panel analysis in transportation planning: An overview. Transportation352

Research Part A: General 24(6), 401–415.353

[9] Koppelman, F. S. (1983). Predicting transit ridership in response to transit service changes.354

Journal of Transportation Engineering 109(4), 548–564.355

Page 15: The analysis of dynamic travel mode choice: a heterogeneous ...cxiong/pubs/hmm_TRB.pdf63 He further asserted that hidden state is a dynamic extension to “latent classes”. Following

Xiong, Chen, He, Guo, Zhang 15

[10] McFadden, D. and K. Train (2000). Mixed mnl models for discrete response. Journal of356

applied Econometrics 15(5), 447–470.357

[11] Pas, E. I. and F. S. Koppelman (1987). An examination of the determinants of day-to-day358

variability in individuals’ urban travel behavior. Transportation 14(1), 3–20.359

[12] Paulssen, M., D. Temme, A. Vij, and J. L. Walker (2013). Values, attitudes and travel be-360

havior: a hierarchical latent variable mixed logit model of travel mode choice. Transportation,361

1–16.362

[13] Pendyala, R. and E. Pas (2000). Multi-day and multi-period data for travel demand analysis363

and modeling. Technical report.364

[14] Pendyala, R. M. (2009). Challenges and opportunities in advancing activity-based approaches365

for travel demand analysis. In The Expanding Sphere of Travel Behavior Research: Selected366

Papers from the 11th Conference of the International Association for Travel Behavior Research:367

Selected Papers from the 11th Conference of the International Association for Travel Behavior368

Research, pp. 303. Emerald Group Publishing.369

[15] Pendyala, R. M., R. Kitamura, A. Kikuchi, T. Yamamoto, and S. Fujii (2005). Florida activ-370

ity mobility simulator: overview and preliminary validation results. Transportation Research371

Record: Journal of the Transportation Research Board 1921(1), 123–130.372

[16] Ramadurai, G. and K. K. Srinivasan (2006). Dynamics and variability in within-day mode373

choice decisions: role of state dependence, habit persistence, and unobserved heterogeneity.374

Transportation Research Record: Journal of the Transportation Research Board 1977(1), 43–375

52.376

[17] Srinivasan, K. K. and P. Bhargavi (2007). Longer-term changes in mode choice decisions377

in chennai: a comparison between cross-sectional and dynamic models. Transportation 34(3),378

355–374.379

[18] Vij, A. (2013). Incorporating the influence of latent modal preferences in travel demand380

models. University of California Transportation.381

[19] Vovsha, P. (1997). Application of cross-nested logit model to mode choice in tel aviv, israel,382

metropolitan area. Transportation Research Record: Journal of the Transportation Research383

Board 1607(1), 6–15.384

[20] Walker, J. L. (2001). Extended discrete choice models: integrated framework, flexible error385

structures, and latent variables. Ph. D. thesis, Massachusetts Institute of Technology.386

[21] Wen, C.-H. and F. S. Koppelman (2001). The generalized nested logit model. Transportation387

Research Part B: Methodological 35(7), 627–641.388

[22] Xiong, C. and L. Zhang (2014). Dynamic travel mode searching and switching analysis389

considering hidden modal preference and behavioral decision processes. In Transportation390

Research Board 93rd Annual Meeting, Number 14-4710.391