Early illness recognition using frequent motif discovery