The process of transforming sensory information into memory representations that can be stored and retrieved later.