plea of insanity

noun

1.
(criminal law) a plea in which the defendant claims innocence due to mental incompetence at the time