We’ve talked a lot about the general meaning of AI and the impact that it has had on our world. In previous articles we have talked about the types of AI algorithms and when and why those are used. If you missed those you can read them here.
For any of you who have previously researched AI must have come across the following buzzwords; Computer Vision and NLP.
These are 2 of the most talked-about — and undoubtedly important — branches of AI and these are what we’ll talk about in this article.
By the end of this article you would have answered the following questions:
- What’s Natural Language Processing?
- What is Computer Vision?
- What is their importance?
- What is their impact on the modern world?
Without further ado, let’s get started.
NLP — Natural Language Processing
As the heading already gave it away, NLP stands for 'Natural Language Processing'. The most basic idea of NLP is all in its name but if we were to define it we would say it is:
‘the way machines interpret natural human language’
We know all machines see are Zeros and Ones. The concept of words, sentences, languages are not understood by machines so there are certain processing techniques that we need to use and this is where NLP jumps in to save the day. NLP is a very diverse field that starts from very simple steps but eventually leads up to very complex memory-based models.
Some simple Natural Language preprocessing techniques include:
- Tokenization — breaking down sentences into words.
- Stemming — cutting the suffixes of words to extract the core context from words e.g. studies → studi.
- Lemmatization — this is very similar to stemming but instead of simply cutting off the suffix, this reduces the word to its root e.g. studies →study.
- Bag of Words — an approach to represent all the important words in a corpus in the form of vectors.
- TF-IDF — similar approach as a bag of words but with the added advantage of giving higher weightage to important words and vice versa.
These are just a few of the simplest techniques, most of these are used in conjunction with one another and the end result is a numeric vector that actually makes sense to your computer.
Natural language processing covers vast processing techniques.
**If you have ever removed useless punctuation from certain text or converted the entire text to lower case then congratulations! you have applied NLP in your work.
But all these techniques seem quite useless! What good can we make of them? The answer is “Very Little”. Almost all of the techniques mentioned above are mostly used for data preparation. This prepared data is then passed onto larger, more complicated models which use them to generate useful outputs.
What is CV?
As NLP dealt with textual data, CV is the processing of image data by your computer and performing multiple useful tasks on those images.
We may see images as colorful paintings but a computer views them as pixels and channels. A color image has 3 channels (Red, Green, Blue). Manipulation of these pixel values is the basis of Computer Vision.
Some basic Computer Vision techniques include;
- Edge detection — detecting edges of the objects present in an image.
- Color segmentation — grouping similar pixels together to create a mask for the image.
- Noise filtering — removing unwanted entities from an image to make it clearer.
- Adding filters — this includes adding blurs, changing colors, cropping the image, etc.
This field is a little more intuitive than Natural Language Processing because it is easier to visualize the process but just like NLP, the above-mentioned techniques are fun to play around with but it is very little you can do with these alone. As a computer vision engineer real-world usefulness is achieved when we introduce complex Deep Neural Nets to the procedure.
Real-world applications of both NLP and CV are discussed in the next section.
There are many companies that are dedicated to developing products that utilize these techniques.
When you open your personal assistant by saying “Hey Siri” or “Okay Google” they respond to these commands because there is a trained NLP model in your smartphone which interprets these words and decides what action to take. The same model is used when you ask your personal assistant to do something for you e.g. Set a reminder.
Most of us are familiar with Snapchat and are or have been crazy about the real-time filters that they apply to your face. Placing a virtual crown on your head or making your eyes pop out. This is possible because of Augmented Reality — a field of Computer Vision. The computer vision model detects the shape of your face and keeps tracking it to change the position of the virtual object. Similar models are used when Facebook AI detects a person in your picture and suggests you tag them. Facebook Detectron2 model is considered state-of-the-art in object detection in images.
It is undeniable that the impact of artificial intelligence on everyday life has been huge. We utilize this technology in our everyday applications and don’t even realize it. AI has impacted our lives more than we realize.
After coming so far ahead in research and development, the world of AI continues to evolve with every passing day as newer models are released and new research papers are released.
If you enjoy data science and Machine Learning, you can view my other works.