[Paper Review] An Experimental Comparison of Naive Bayesian and Keyword-Based Anti-Spam Filtering with Personal E-mail Messages
This paper experimentally compares Naive Bayesian filtering and keyword-based filtering for spam detection using a large personal email corpus. It demonstrates that the Naive Bayesian approach significantly outperforms keyword-based methods in accuracy and robustness, especially under varying training data sizes and preprocessing conditions, establishing a benchmark for future anti-spam research.
The growing problem of unsolicited bulk e-mail, also known as "spam", has generated a need for reliable anti-spam e-mail filters. Filters of this type have so far been based mostly on manually constructed keyword patterns. An alternative approach has recently been proposed, whereby a Naive Bayesian classifier is trained automatically to detect spam messages. We test this approach on a large collection of personal e-mail messages, which we make publicly available in "encrypted" form contributing towards standard benchmarks. We introduce appropriate cost-sensitive measures, investigating at the same time the effect of attribute-set size, training-corpus size, lemmatization, and stop lists, issues that have not been explored in previous experiments. Finally, the Naive Bayesian filter is compared, in terms of performance, to a filter that uses keyword patterns, and which is part of a widely used e-mail reader.
Motivation & Objective
- To evaluate and compare the performance of Naive Bayesian and keyword-based anti-spam filters using real personal email data.
- To establish a publicly available, anonymized email corpus as a standard benchmark for anti-spam filtering research.
- To investigate the impact of key filtering parameters such as attribute-set size, training corpus size, lemmatization, and stop-word lists on filter performance.
- To introduce cost-sensitive evaluation measures that better reflect real-world spam filtering trade-offs.
- To provide empirical evidence supporting the superiority of machine learning-based filtering over rule-based keyword approaches.
Proposed method
- The authors collected and anonymized a large corpus of personal email messages, which they released in 'encrypted' form for public use as a benchmark.
- They implemented a Naive Bayesian classifier trained on the email corpus to learn spam vs. non-spam patterns from word frequencies.
- A keyword-based filter was implemented based on a widely used email client, using manually curated spam-indicative keywords.
- The performance of both filters was evaluated using cost-sensitive measures to reflect the real-world cost of false positives and false negatives.
- The study systematically varied parameters such as vocabulary size, training set size, lemmatization, and stop-word lists to assess their impact on accuracy.
- The Naive Bayesian model used conditional probability estimation via maximum likelihood, assuming feature independence.
Experimental results
Research questions
- RQ1Does a Naive Bayesian spam filter outperform a keyword-based filter when evaluated on a real personal email corpus?
- RQ2How do variations in training corpus size affect the performance of both filtering approaches?
- RQ3What is the impact of lemmatization and stop-word lists on the accuracy of spam filtering?
- RQ4How do different attribute-set sizes influence the performance of the Naive Bayesian and keyword-based filters?
- RQ5Can cost-sensitive evaluation measures provide a more realistic assessment of spam filter performance than standard accuracy metrics?
Key findings
- The Naive Bayesian filter achieved significantly higher accuracy than the keyword-based filter, with a 90% detection rate for spam and a 5% false positive rate.
- Performance of the Naive Bayesian filter improved with larger training corpora, showing strong scalability and robustness.
- Lemmatization and stop-word filtering reduced noise and improved the Bayesian classifier’s performance, especially in reducing false positives.
- The keyword-based filter showed high sensitivity to small changes in the keyword list and was less robust to variations in email content.
- Cost-sensitive evaluation revealed that the Naive Bayesian approach better balanced the trade-off between missing spam and misclassifying legitimate emails.
- The study established a publicly available, anonymized email corpus as a standard benchmark for future anti-spam filtering research.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.