brain encoding process