Chinese handwritten writer classification based on affine sparse matrix factorization