Action sequence mining and behavior pattern analysis for user modeling