This is a topic refered to in Jyana Yoga, the intellectual yoga which has one of the main questions - WHO AM I? WHO or WHAT IS THINKING THIS? etc.