How do AI-based filters (TensorFlow, Microsoft SmartScreen) operate?

Still have a question, spotted an error, or have a better explanation or a source we should cite?

Think about how a seasoned fraud investigator learns to spot a scam. They don't memorize a list of rules. They absorb thousands of cases until the pattern recognition becomes instinctive. AI-based spam filters work the same way, and they've seen a lot more cases than any human investigator ever could.

At the core of these systems are neural networks, loosely modeled on how the brain connects ideas. You feed the network millions of labeled examples (spam marked as spam, legitimate email marked as safe), and it adjusts its internal connections until it can reliably tell the difference. That process is called training. The resulting model doesn't store rules. It stores something more like intuition, encoded as weighted relationships between signals.

What signals do they actually look at?

  • Structural signals: HTML-to-text ratio, presence of hidden elements, number of links, image-only layouts, mismatched link text versus actual URL destination.
  • Authentication signals: Does the sending domain have a valid SPF record? Does DKIM pass? Does DMARC align? Failed authentication is a strong negative signal.
  • Sender reputation signals: How many spam reports has this IP received? What's the bounce rate? Does sending volume spike suddenly?
  • Behavioral signals: Do recipients open this sender's emails? Do they delete them unread? Do they move them to spam? These actions train the model in real time.
  • Content signals: Not just keywords, but topic modeling, tone, urgency language, and whether the content matches what the sender typically sends.
  • URL reputation: Does this link point to a recently registered domain? Does the landing page look like a phishing attempt? Has this URL appeared in other flagged emails?

Gmail uses TensorFlow (Google's open source machine learning framework) to run these models at scale. It processes hundreds of signals simultaneously for every inbound message. The model doesn't evaluate each signal in isolation. It finds correlations across all of them at once, which is why a single clean signal won't save an email when five other signals point the wrong way.

Microsoft SmartScreen, used in Outlook and Edge, focuses heavily on URL and phishing detection alongside general spam filtering. It analyzes page content behind links, cross-references known threat databases, and incorporates aggregate feedback from across the Microsoft 365 user base. One user flagging a URL as suspicious doesn't trigger action. But a pattern across millions of users triggers a rapid model update.

That continuous retraining is what makes these systems hard to game. When a new spam campaign launches, the first wave of user reports becomes training data. The model adapts within hours, sometimes faster. Manual rule sets would take days to update. AI filters don't need to wait for a human to write the rule, they learn it from the behavior itself.

For senders, this means your reputation and engagement history matter more than any individual email. A single message with unusual content won't sink you if your track record is clean. But a sudden change in sending behavior, a spike in spam reports, or a pattern of unopened emails will shift the model's assessment of your domain faster than you might expect.

If you're trying to understand where your emails stand with these filters, our free Email Header Analyzer shows you what authentication signals your messages are actually carrying. That's the first layer these models check.

The most useful email questions, once a month

One email a month. New questions worth reading, real deliverability changes (Gmail and Outlook updates, etc.), and any tool or report that landed since the last issue. No fluff, no upsell.

Contributors

Who worked on this answer

Every name links to their profile. Every company links to their site. Real people, real accountability.

Ask an AI · tailored to your setup

Get a ranked audit checklist for your sending signals

I send marketing emails and want to understand how AI spam filters evaluate my campaigns. Based on the signals these models look at (authentication, sender reputation, engagement behavior, content structure, URL reputation), can you give me a ranked checklist of what I should audit first? Separate it into: signals I control directly, signals that build over time, and signals I can't control but should be aware of.

Edit the yellow boxes, then send to the AI of your choice.