Spatiotemporal occupancy prediction for autonomous driving