Embedding stochastic dynamics of the environment in spontaneous activity by prediction-based plasticity | Synapse