Artificial Intelligence, Machine Learning and Deep Learning - Are they same?
One of the most common questions that beginners have when they start to learn Machine Learning is - “Are Artificial Intelligence(AI), Machine Learning(ML) and Deep Learning(DL) the same thing?”
And that’s a question which I personally hear a lot from so many people. So, I thought why not make a blog post to explain it?
Artificial Intelligence (AI)
Artificial intelligence refers to the capability of a machine to imitate intelligent human behaviour. In other words, any machine that is able to perform tasks that would otherwise require human intelligence viz., making decisions or giving (meaningful) responses in a conversation can be said to have some kind of artificial intelligence.
It is a broad area of computer science, which deals with the simulation of intelligent behavior in computers.
Virtual assistants are very good examples of implementation of AI. With the power of AI, virtual assistants such as Google Assistant or Siri (by Apple) can nowadays imitate human behaviour with high fidelity. Have a look at the following video which demonstrates how Google Assistant uses AI to book an appointment for the user.
AI can be implemented through huge collection of explicitly programmed if-else statements, or a complex statistical model. But, the end goal of AI remains same - “Simulation of human intelligence in machines”.
The practice of explicitly programming if-else statements for implementing AI models is known as “Good Old-Fashioned Artificial Intelligence” (GOFAI), which was the dominant paradigm of AI research from the mid-1950s until the late 1980s.
Some AI models might be termed as “weak AI” models since they only focus on getting the work done without figuring out how human reasoning works. One such example could be - bots created using Artificial Intelligence Markup Language (AIML). These bots try to give responses by simply matching some basic patterns against the input using an XML-like structure of conditions without trying to “understand” the conversation.
On the other hand, AI systems which pretend to think exactly like humans do, are termed as “strong AI” models. We have already seen an example of this while discussing about Google Assistant.
Machine Learning (ML)
While AI is a broad area of cognitive computing, Machine Learning is a particular subset of AI which mainly deals with the study of how machines learn.
Doesn’t make sense? Let me clear that for you.
Early AI researchers found some problems way much harder to solve with the early available techniques of AI (GOFAI). Hard coded algorithms were simply not useful for solving those problems.
For example, how would you make a computer to distinguish between pictures of cats and dogs? Will you write hard-coded algorithms for identifying each picture individually? What happens if it sees a picture that it has never seen before? What happens if it sees a partial picture? Will it still be able to recognize it?
It turns out that for solving these kind problems, instead of just imitating human behaviour, researchers started to find ways to imitate how humans learn. And that’s what gave rise to the field of Machine Learning. It is the field of study that gives computers the ability to learn without being explicitly programmed.
More specifically, in case of machine learning problems, you need to give the computer some data (lots of cat and dog images in this case), tell it to “learn” from that data, and then predict the correct output for new, unseen data.
This is nothing but a mathematical function (model) which maps inputs to its correct outputs. The task of Machine Learning engineers is to figure out and implement this “mathematical function” in such a way that programmers won’t need to write “hard-coded” algorithms for solving each individual problem.
Deep Learning (DL)
Deep Learning is a subfield of machine learning which is concerned with algorithms inspired by the structure and function of the brain.
It consists of a particular type of mathematical model that can be thought of as a collection of simple blocks, distributed across multiple layers. Each of these blocks are specialized to perform a particular task and can be adjusted to better predict the final outcome.
Human brain consists of billions of neurons interconnected to each other. Each neuron receives a signal, processes the signal, and passes it on to the other neurons. This is how the information is processed in our brain.
These blocks try to simulate the behaviour of neuron cells present in human brain for performing a particular task. Hence, the collection of these blocks can be referred to as Artificial Neural Network (ANN).
Deep Learning is called “deep” because the composition of these blocks are stacked on top of each other forming multiple layers. The deeper you go, the more complex features are extracted.
Although terms like artificial intelligence, machine learning and deep learning are used interchangeably but, they are not the same thing. Machine learning is the subset of artificial intelligence and deep learning is a subset of machine learning.
Here are the key takeaways:
- Artificial Intelligence deals with imitating human intelligence.
- Machine Learning deals with imitating how humans learn.
- Deep learning deals with imitating how human brain processes data with the help of neurons.