A Novel Algorithm for Unsupervised Behavioral Classification