Recognition of thinking patterns