Model change detection with application to machine learning