A judge or jury determined the defendant committed the offense, but for lack of mental capacity the defendant was not responsible for their actions.
More:
Prison