In fact, this is a continuation of what your brain has seen and heard during the day or recently! In other words, when you are asleep, your subconscious or some brain cells are not resting! They are comprehensively processing what you have seen and heard, and will postpone the scene after comprehensive processing! !
So there is nothing to predict, just an activity of the brain!