Behavioural Analytics: Mathematics of the Mind