Gradient-based learning methods extended to smooth manifolds applied to automated clustering