Modeling sequential data using higher-order relational features and predictive training