Skip to content

Example report 61 · Email services · Text Classification

Separate likely spam from useful email

Which incoming messages look like unsolicited bulk email?

All examples

Recommended by Impulse AI

Impulse AI result

Selected model: Impulse AI custom model

Standard algorithms and custom models are candidates within the Impulse AI workflow—not competing services.

Illustrative test result · Accuracy
87.8%

Send suspect messages to a reversible review folder.

Records
70,000 fictional emails
Training / test
56,000 / 14,000
Metric
Accuracy · higher is better
Models evaluated
8

01The business question

Which incoming messages look like unsolicited bulk email?

Each record represents one email. The target to predict is spam_message.

What you would do with it

Send suspect messages to a reversible review folder.

02The input data

Input messages or descriptions and their category labels, plus the six numeric descriptors below. Text comparison methods use the original text as well as the applicable descriptors.

  • message_lengthinput
  • link_countinput
  • capital_ratioinput
  • recipient_countinput
  • trigger_word_countinput
  • sender_history_scoreinput
  • spam_messagetarget

Group-held-out 80/20 split; repeated entities stay in the same partition.

03Models evaluated

This illustrative recommendation represents model selection on training/validation data. The separate test scores below show how the candidates compare; a real workflow must not use its final test set to choose a model. Higher is better for Accuracy.

Candidates within the Impulse AI workflow; fictional test scores, not a ranking of competing services
Candidate modelTest Accuracy (illustrative)
Impulse AI custom modelSelected by Impulse AI87.8%
CatBoost86.5%
LightGBM85%
Random Forest83.6%
Multinomial Naive Bayes82.1%
Linear SVM (TF-IDF)80.7%
Logistic Regression (TF-IDF)79.3%
Most frequent classbaseline62%

04Practical takeaway

In this fictional report, Impulse AI selects Impulse AI custom model, with an illustrative test result of 87.8%, compared with 62% for the Most frequent class baseline. Impulse AI’s role is to evaluate candidates and deliver the selected model, whether it uses a standard algorithm or a custom model. The prediction supports one decision: send suspect messages to a reversible review folder.

05Limitations

  • A text-plus-descriptor adaptation of Spambase. Check false positives and new campaigns; a spam score does not prove a message is malicious.
  • All rows and scores are invented for illustration; a real table would need its own evaluation.
  • A single test split gives one estimate; scores on new data will vary.

06Source of inspiration

OpenML · Public dataset catalog · OpenML 44

Spambase(opens in new tab)

The linked sources inspired this fictional problem; the report may simplify or adapt the original task. No source datasets were downloaded or evaluated, and no competition results were copied.

07Exploratory data profile

A compact illustrative profile of the 6 inputs, not the full checks a real engine run performs. 1,680 missing values appear across the table. All ranges are fictional.

Illustrative column profile, fictional values
ColumnTypeValidMissingMissing %UniqueMeanStd devMin25%Median75%MaxZeros %
message_lengthNumeric70,00000.0%2204530022.54567.53601.0%
link_countNumeric70,00000.0%3415738028.55785.54402.5%
capital_ratioNumeric68,7401,2601.8%1210.640.2400.460.640.8214.0%
recipient_countNumeric70,00000.0%5838154040.581121.56001.0%
trigger_word_countNumeric69,5804200.6%6819362046.593139.56802.5%
sender_history_scoreNumeric70,00000.0%1210.640.2400.460.640.8214.0%

08Use your model

Download model

Take a reusable model package to run predictions in your own environment.

Host for inference

Have Impulse AI host your model so you can send new data for predictions.