Deep learning is considered a subset of machine learning. The main differentiator that distinguishes deep-learning algorithms from other machine-learning algorithms is the use of artificial neural networks. And the main feature that makes a neural network “deep” is the presence of hidden layers between the input and output layers that make up a basic perceptron.