The nature of unsupervised learning in deep neural networks: A new understanding and novel approach