Ai's cognitive abilities had been studied extensively since she was brought to a Japanese institute in 1977.