Dynamic object recognition using sparse coded three-way conditional restricted Boltzmann machines