System identification based on riemannian geometry : theory and algorithms