Insanity
n. Mental illness of such a severe nature that a person cannot distinguish fantasy from reality, cannot conduct her/his affairs due to psychosis, or is subject to uncontrollable impulsive behavior. (See here.)
The above is a legal definition as distinguished from the popular quote (misattributed to Albert Einstein), “Insanity is doing the same thing [...]