Physics of Perception