Email Record: Grammar-based feature generation for time-series prediction