Could an AIinfected by a virus claim a defence similar to coercion or intoxication, or an AI that is malfunctioning claim a defence akin to insanity? What would punishment look like – and who would be punished?

Artificial Intelligence Trends and Ethics: Issues for Investors

AI is getting better and better at modelling human thought, experience, action, conversation and
relationships. In an age where we will frequently interact with machines as if they are humans, what
will the impact be on real human relationships?

For example, could an AIinfected by a virus claim a defence similar to coercion or intoxication, or an AI that is malfunctioning claim a defence akin to insanity? What would punishment look like – and
who would be punished?