Skip to content

zihenglin/LSTM-Mobility-Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LSTM-Mobility-Model

The Tensorflow implementation of LSTM Mobility Model learns trajectories of human activity trajectories that have spatial and temporal features.

What are human activity trajectories?

Human activity trajectories are sequences of stationary activities. Stationary activities refer to someone stay at a location for sometime doing something. So the stationary activities have features include, start time, duration, location and purpose.

Have other type of time series problems?

The implementations of the LSTM Mobility Model provide good examples of combining discrete and multidimensional continuous features in one model. The implementations can be easily modified for your problem. Feel free to contact me if you need some extra help.

How does it work?

To model human like decision making for activty choices, I design the two layer model structure shown below. The first layer models the activity type choices, such as Home, Work, or Shopping. The second layer makes decision of activity location and duration according to the activity type decided by the first layer.

Layer are represented as h. The input to both layers x_t is the feature of previous activity. The softmax output from the first layer models the activity type choices. The output from the second layer is a mixture distribution that models the spatial and temporal choices.

Examples

The examples directory contains Jupyter Notebook examples using artifitial data sample: