Algorithm studies images to produce a video of what might happen next