Uncertainty-aware spatiotemporal perception for autonomous vehicles