1. A method of generating a bilinear spatiotemporal basis model, comprising: providing a trajectory basis for the bilinear spatiotemporal basis model; receiving three-dimensional spatiotemporal data for a training sequence; estimating a shape basis for the bilinear spatiotemporal basis model using the three-dimensional spatiotemporal data; and computing coefficients for the bilinear spatiotemporal basis model using the trajectory basis and the shape basis.