📧 Spam Filter
4th Grade 🤖 Artificial Intelligence
A spam filter is a system that spots unwanted messages — mass ads, scams and attempts to steal your details — and moves them to a separate folder so they don’t flood your inbox.
Spam filters are one of the oldest examples of machine learning in everyday life. The system learns from tons of messages that people marked “spam” or “not spam,” and it discovers patterns: words like “You won!” or “Urgent,” suspicious links, an unknown sender or the same message sent to thousands of people. Every new message gets a score — how much it looks like spam.
When you mark a message as spam, or move a good message out of the spam folder, you help the system get better. Spammers are always trying to sneak past the filters, so the filters have to keep updating all the time.
A common mistake is thinking that if a message landed in your main inbox, it’s safe. The filter makes mistakes in both directions: a scam message can get through, and an important message can get stuck in spam. So don’t click strange links, never give a password because a message asked for it, and ask a grown-up when something looks suspicious.
For example
- A message saying “You won a free phone! Click here and fill in your details” that goes to the spam folder.
- A text-message filter on a phone that flags a suspicious text.
- A birthday party invitation that got stuck in spam by mistake — so you mark it “not spam.”
- A message pretending to be from a bank and asking for a password — a scam (called phishing) you should never answer.
📌 Remember: Spam filter = AI that spots unwanted messages using patterns. It makes mistakes too — don’t click suspicious links.
Quick quiz
How does a spam filter learn?
A message arrived in your main inbox. Is it definitely safe?
What do you do with a message that “urgently” asks for your password?