non compos mentis
Latin, "not master of one's mind."