T-pattern detection and analysis for the discovery of hidden features of behaviour