Patañjali's Yogasūtra I.6

I.6 - pramāṇa-viparyaya-vikalpa-nidrā-smṛtayaḥ

[The five mental activities are] correct comprehension, misapprehension, imagination, deep sleep and memory.

Each mental activity has its own characteristics and although not always apparent, these can be individually recognized. Their dominance and effects on our behaviour and attitudes combine to make up our personalities.