What is the difference between AI, Machine Learning, NLP, and Deep Learning?

Quora

Artificial Intelligence (A.I.)

A field of study with the goal of creating machines that exhibit intelligence.

Machine Learning (ML)

A sub-field of AI, whose focus is to use data to train computer algorithms to perform tasks that typically cannot be done (or very difficult to accomplish) through hard wiring the logic into a program, because no one is quite sure what the rules are. Recognizing objects in images is one such task where the rules are unclear. For e.g., how would you get codify the description of a human face to a computer algorithm?

Note that AI, unlike ML, need not require the use of data. So long as you can convince the user that your system exhibits intelligence, anything goes. In the 1980s to early 1990s, people working in AI often hand code the rules of “intelligence” in “rule-based” systems in an attempt to get the system to appear intelligent. However, as described above, rules are often fragile (due to exceptions). It may also be unclear what the rules are. And even if we can hand code the rules, it is a huge pain to have to craft them for different domains and applications, hence the huge shift towards using ML algorithms in solving AI tasks.

Natural Language Processing (NLP)

A sub-field of AI where ML algorithms are heavily used to make sense of natural languages, for e.g., by figuring out the subject of a sentence, or to translate sentences from one language to another.

Even though a typical language comes with rules, i.e., grammar, different languages have different grammar, and each of them often have exceptions to the rules. Furthermore, sentences often can be ambiguous if one does not take into account the context in which it was written, or if one is unaware of some prior knowledge necessary for understanding the sentence. Hence, hard wiring grammar rules into a program is often insufficient for it to perform an NLP task such as machine translation, well.

Deep Learning

A class of machine learning algorithms that are (very) loosely biologically inspired. For e.g., the Convolutional Neural Network (CNN), Long-Short Term Memory (LSTM) network, are deep learning algorithms. You train them using data, just like you would any machine learning algorithm. CNNs are typically used in computer vision tasks such as object recognition or detection, and LSTMs are commonly used for performing NLP tasks such as sentiment analysis, machine translation, or part-of-speech tagging.

Summary

AI is a broad field of study. ML is a particular sub-field of AI that concerns itself with the use of data to train algorithms to perform challenging tasks where the “rules” are unclear or difficult to fully specify. NLP is a sub-field of AI that studies the use of algorithms to understand natural language. ML is heavily used in NLP. Deep Learning is a class of machine learning algorithms.