An analytic layer-wise deep learning framework with applications to robotics. (January 2022)