The Yoga Sutras of Patanjali describe the fluctuations of the mind through the concept of Vritti Sarupyam Itaratra, which means that at times the consciousness identifies itself with the patterns or modifications of the mind. https://nichenest.xyz/understanding-the-meaning-of-vritti-sarupyam-itaratra/