AR algorithm and classifier