Scientists have made strides in uncovering the mechanisms underlying memory formation and consolidation in the brain during rest or sleep. Their research focuses on the role of the hippocampus, a brain region important for memory, and its place cells which "replay" neuronal sequences. A team of scientists built an artificial intelligence model to better understand these processes, discovering that sequences of experiences are prioritized during replay based on familiarity and rewards. The AI agent was found to learn spatial information more effectively when replaying these prioritized sequences, offering valuable insight into the way our brains learn and process information.