Principles of perception