insanity defense : a defense where the defendant admit doing all the charges on the basis that he/she is psychologically unstable
The standards usually being done by having to take several tests conducted by the experts, which tend to differ between states
hope this helps