Machine Learning and Evolution: When 98 Percent Is a Failure
An email detector could boast 98 percent accuracy while missing every harmful message in a test. Imagine 100 messages: 98 legitimate and two malicious. Label everything legitimate and the score looks excellent. The two attacks still get through.
That invented result exposes a problem with judging a machine-learning defense by one headline number. Machine learning uses examples to build a model: a system that applies learned relationships to new inputs. In security, its prediction might be whether a message contains an attack. Its usefulness depends on what it learns and which mistakes the evaluation counts.
The “evolution” of these defenses means changing their data, models and operation as the task changes. Improvement has to be measured. A model does not become a better defender merely by spending another month processing traffic.
Machine Learning in 100 Seconds
Before the first prediction
Imagine training this detector on messages already labeled “harmful” or “legitimate.” These labels provide answers the training process can learn from. This is supervised learning: the system finds relationships in examples with known labels, then uses them to classify messages it has not seen.
Developers choose the task, data and evaluation method. The model learns from the supplied examples, rather than requiring a person to write a rule for every message it might encounter. Google's machine-learning introduction explains this approach and contrasts it with methods that seek patterns without supplied answer labels.
Training and use are different moments. Once the detector is in use, it applies what it learned to an incoming message. Unless an updating process is part of the system, processing that message does not change the model.
Those labels define the job. A spam filter trained to recognize unwanted advertisements has a different task from a detector looking for attacks, such as a phishing message designed to trick its recipient.
The mistakes a percentage can hide
The opening detector got 98 ordinary messages right because ordinary messages dominated the test. Its accuracy concealed complete failure on the two attacks. To evaluate a security system, those errors need their own names and counts.
A false negative is a target the model misses: here, a harmful message treated as legitimate. A false positive goes the other way, flagging legitimate mail and potentially keeping it out of the recipient's inbox.
Two measures help reveal the difference. Recall asks what share of the actual target messages were caught. Precision asks what share of the model's alerts were correct. Google's classification metrics guide explains why the choice of measure depends on the cost of the errors.
Many models produce a score that a cutoff turns into a decision. Changing that threshold can catch more attacks while also blocking more legitimate messages. A stricter filter may therefore improve recall while making everyday email harder to use. A useful evaluation keeps both outcomes visible.
- Run AI models on hardware you own instead of renting time in the cloud.
- Build an AI-powered robot or smart camera with NVIDIA's own software stack.
- Learn the tools working AI engineers use, on a board that fits in your hand.
A changing inbox needs fresh evidence
The messages arriving today may differ from the examples used for training. Senders change their behavior, and old data may become less representative. A model can keep making predictions even as those predictions become less useful.
Google's production-monitoring guidance recommends checking differences between training and live data, the model's age and its live results. For spam filtering, user reports can help expose disagreements between a model's decision and what recipients observed.
New training data may help, but a retrained replacement still needs evaluation on current, representative examples. Catching additional harmful messages is only part of the result; the team also needs to count legitimate messages newly caught in the filter.
Regression Analysis: When Unusual Traffic Deserves a Closer Look

Behavior Monitoring: What Software Does Can Give It Away

Data Mining: How Patterns Become Useful—and Misleading

QUOTE:
"Amateurs hack systems, professionals hack people."
