Discriminative factorization models for student behavioral pattern detection and classification