The Magic Behind the Machines
We often feel intimidated by new and challenging technology. But for children, everything is new, and they embrace that newness, learning incredibly fast.
Just a few years ago, Machine Learning (ML) and Artificial Intelligence (AI) were new to most of us. Now, everyone is talking about them. In my two decades in the IT field, I've witnessed many changes. Security is the main concern in ML and AI. I'll save the topic of AI security and cyberattacks for later. First, I want to help those who are still a little confused about the basics.
So, what exactly are ML and AI? Are they the same, or are they different? Suppose your kid asked the same question to you. How are you going to explain it?
Imagine a Super Smart Robot…
You have a super smart robot, but it doesn't know anything yet.
Instead of a grown-up telling the robot every single thing it has to do (like, "If the light is red, stop. If it's green, go."), you give it a giant stack of pictures. Some pictures show red lights and say "STOP," and others show green lights and say "GO."
The robot looks at all the pictures and starts to notice patterns. It figures out what a red light and a green light look like all on its own. It's learning from the examples you gave it. That’s Machine Learning! You're letting a computer learn from examples instead of giving it every single rule.
From the time we were children until now, we've seen countless things, read tons of text, heard different sounds, tasted a variety of foods, and learned languages. Have you ever paused to think about how we learned so much?
We want machines to think like us, and we must train them just as we ourselves were trained to do all the things we are capable of doing now.
Now, imagine that robot isn't just learning to see lights. It's learning how to write a story, create a drawing, or talk to you like a real person. When a robot can do all those smart, creative, or "thinking" things, that's what we call Artificial Intelligence (AI).
So, ML is how we teach the robot, and AI is when the robot becomes so smart it can do amazing things by itself!
The Relationship Between ML and AI
A common question is: What is the relationship between ML and AI?
The simplest way to put it is a part-to-whole relationship: ML is a subfield of AI.
Think of AI as the big goal of making computers smart enough to think and reason like humans. ML is one of the specific methods or tools used to achieve that goal.
- Artificial Intelligence (AI): The Big Goal AI is a broad field of computer science focused on creating intelligent machines that can perform tasks that would normally require human intelligence, such as problem-solving, understanding language, and visual perception.
- Machine Learning (ML): The Method ML is a specific approach to achieving AI. Instead of giving a computer a set of rules, you give it lots of data. The computer then learns from that data to find patterns and make predictions on its own. This is what makes systems like Netflix recommendations and spam filters so effective—they improve the more they are used.
In simple terms:
- AI is the concept of making a machine intelligent.
- ML is a technique that lets a machine learn from data to become intelligent.
There is a hack and it is important to be noted down that while all ML is a form of AI, not all AI is necessarily ML.
ML is simply the dominant and most popular method for building AI today, which is why the two terms are often used interchangeably. At this point the difference should be clear, okay. We will try to understand it with some examples.
Example 1: AI Using Machine Learning
The Application: A Social Media Photo Tagger
This system is a form of AI because it performs a task that requires human-like intelligence: recognizing people in photos.
In this case how it works (The ML part): This system is a classic example of Machine Learning. It's not given a list of rules like "find a nose and two eyes." Instead, it is fed millions of photos that are already tagged with people's names. It learns from this data to recognize patterns in faces. The more photos you tag, the better it gets at recognizing you. Its intelligence comes directly from learning from a dataset, which is the core of ML.
Example 2: AI That Does NOT Use Machine Learning
The Application: An Old-School Chess-Playing Program
This program is a form of AI because it performs a task that requires human-like intelligence: playing a complex game of chess.
Here we will see how it works (The non-ML part): The program doesn't "learn" from playing millions of games like a modern ML system would. Instead, it was built by programmers who gave it a huge, complex set of if-then rules. For example, a rule might be: "IF the opponent's queen is attacking your king, THEN move your king to a safe square." The program makes decisions by following these pre-programmed rules and by looking ahead to all possible moves to find the best one. It is intelligent because it can strategize and win, but its intelligence comes from its creator's rules, not from learning from experience. It's a prime example of an AI that is not an ML system.
I hope the difference between AI with and without ML is clear. Now we will see how a well-trained ML model useful for AI.
For the time being we will focus on a specific type of model. Let's take object detection as our single ML example.
Think of Machine Learning as a powerful tool, and Artificial Intelligence as a bigger system that uses that tool to do many different jobs.
The ML Tool: Object Detection
Object detection is a machine learning model that is trained to find and identify different things in an image or a video. You give it thousands of pictures of cats, dogs, cars, trees, and many more objects. You tell it exactly where each object is. The model then learns what those objects look like and how to draw a box around them.
The end result of this ML training is a single, smart tool that can look at a new picture and say: "I see a car here, a traffic light there, and a person walking over there."
Using the ML Tool in Different AI Applications
Now, here's where the AI part comes in. Different smart AI systems can take this one ML tool and use it for totally different purposes. The ML tool is the brain that sees, but the AI system is the one that decides what to do with what it sees, got it. There are some examples of how AI is using ML:
- For a Self-Driving Car: The AI system uses the object detection model to constantly scan the road. It identifies other cars, pedestrians, traffic signs, and obstacles. The AI then uses this information to make driving decisions, like hitting the brakes, changing lanes, or stopping at a crosswalk. The ML model provides the "vision," and the AI provides the "action."
- For a Retail Store: The same object detection model can be used by an AI system to analyze video from security cameras. The AI can count how many people are in the store, see which shelves they are looking at the longest, or identify when a customer needs help. The ML model sees the people, and the AI uses that data to help the store improve.
- For a Robotic Warehouse: An AI system controlling a robotic arm uses the object detection model to find packages on a conveyor belt. The ML model identifies the size and shape of each box, and the AI system then tells the robotic arm how to grab the package and place it on the right delivery pallet.
Okay put all the understanding together and see more examples. With two more examples of AI and ML use in our daily life. Let's imagine a Smart Security Camera System for a house. This system is a really good example of an AI that uses lots of smaller ML "helper brains" to do a complicated job.
The Main AI Goal: Keeping Your Home Safe
The big goal of this AI system is to know what's happening outside your front door and decide if it needs to send you an alert. To do this, it needs to be able to see and understand a lot more than just motion. Suppose there are multiple helper brains working together with their own specialization.
Helper Brain 1: The Object Detector
This is the first ML helper. Its only job is to look at the camera picture and find different objects. You trained it by showing it millions of pictures of people, cars, dogs, and packages. Now, when it sees a new picture, it quickly draws boxes around everything and labels them.
- Its job: To tell the AI manager, "I see a person and a package."
Helper Brain 2: The Face Recognizer
This is a different ML helper. You trained this one on pictures of your family and friends. Its special skill is to look at a person's face and figure out who they are.
- Its job: To look at the face of the "person" found by Helper Brain 1 and say, "That person is Mom."
Helper Brain 3: The Emotion Analyzer
This is a more complicated helper brain. Its job is to look at someone's facial expression and guess how they are feeling. It's trained on tons of pictures of people showing different emotions like happy, sad, or angry.
- Its job: To look at the face of the "person" and say, "The person looks happy and is smiling."
How the AI Manager Puts It All Together
The main AI system is like the "manager" that gets all the information from its three helper brains. It then uses all that information to make a smart decision.
- The Object Detector says: "I see a person."
- The Face Recognizer says: "That person is Mom."
- The Emotion Analyzer says: "Mom looks happy and is smiling."
The AI manager combines these facts and decides: "This is Mom, she's happy. It's a regular day. No need to send an alert."
But what if the facts were different?
- Object Detector: "I see a person holding a large bag."
- Face Recognizer: "I don't recognize this person."
- Emotion Analyzer: "The person looks angry."
The AI manager combines all this new information and decides: "This is a stranger who looks angry and is holding a bag. ALERT! Send an alert to your phone right away!"
So, the AI system is more than just one smart brain. It's a team of different ML brains working together to be really smart and helpful.
Example 2: An AI-Powered Financial Assistant
The goal of this AI is to help people manage their money and plan for the future. It uses multiple ML models to analyze financial data.
Helper Brain 1: The Transaction Classifier
This ML model's job is to read the description of every transaction on your bank statement and figure out what it was for. It's trained on millions of transaction descriptions and categories like "groceries," "restaurant," "rent," and "entertainment."
- Its job: To tell the AI, "The transaction from 'Whole Foods' was for groceries."
Helper Brain 2: The Spending Predictor
This ML model's job is to look at your past spending habits and predict how much money you will spend in the future. It considers things like how much you spend each week or month on groceries.
- Its job: To tell the AI, "Based on past weeks, you will likely spend $120 on groceries next week."
Helper Brain 3: The Savings Optimizer
This is a more advanced ML model. Its job is to figure out the best way to save money. It looks at your income, your spending habits from Helper Brain 1, and your future spending predictions from Helper Brain 2.
- Its job: To tell the AI, "You can save an extra $50 this month by putting aside $12.50 each week."
How the AI Manager Puts It All Together
You open the financial assistant app.
- The AI manager gets your latest bank transactions.
- Helper Brain 1 (Transaction Classifier) categorizes everything you spent money on.
- Helper Brain 2 (Spending Predictor) uses this data to guess your future spending.
- Helper Brain 3 (Savings Optimizer) looks at all of this information and suggests a savings plan.
The AI manager puts everything together into a simple summary for you: "This week you spent $115 on groceries. We predict you'll spend about $120 next week. Based on that, you can safely set aside $50 for savings this month." The AI system is using the individual ML models to provide you with smart, personalized advice.
Additional Resources for you
This Article Was Written & published by Meena R, Senior Manager - IT, at Luminis Consulting Services Pvt. Ltd, India.
Over the past 16 years, Meena has built a following of IT professionals, particularly in Cybersecurity, Cisco Technologies, and Networking...
She is so obsessed with Cybersecurity domain that she is going out of her way and sharing hugely valuable posts and writings about Cybersecurity on website, and social media platforms.
34,000+ professionals are following her on Facebook and mesmerized by the quality of content of her posts on Facebook.
If you haven't yet been touched by her enthusiastic work of sharing quality info about Cybersecurity, then click here to follow her on Facebook: Cybersecurity PRISM

100% FREE COMMAND GUIDE DOWNLOAD
Cyber Warrior's Command Guide For Ethical Hackers





