Defect must be due to a disease of the mind.
It is a legal term, not a medical term and pplied to "any mental or physical disease which affects the mind" (R v Kemp)
Examples of legal diseases of the mind:
EXCEPTION - (R v Quick) - D took insulin but failed to eat enough - D's state was due to an external cause therefore NOT insanity.
Insulin NOT administered = insanity
Insulin administered - N.I. Automatism.