automatisms

/ɔːˈtɒmətɪz(ə)m/

noun

The performance of actions without conscious thought or intention.

diabetic patients who commit crimes while hypoglycaemic may be able to plead automatism