"Guilty but insane" is a legal term used when an individual is convicted of a crime but is deemed to have been suffering from a mental illness at the time of the crime. Synonyms for this term include "not guilty by reason of insanity," "criminally insane," and "mentally incompetent to stand trial." Other related terms include "insanity defense," "mental illness defense," and "diminished capacity." These terms are used to describe a range of legal concepts and procedures related to mental illness and criminal culpability. The use of these terms can be controversial and complex, as the law seeks to balance the needs of justice and the rights of individuals with mental health issues.