Group 2 R 李庭閣 R 孔垂玖 R 許守傑 R 鄭力維
Experiment setting Feature extraction Model training Hybrid-Model Conclusion Reference
Selected online corpus: enron Removing html tags Factoring important headers Six folders from enron1 to enron6. Contain totally spam mails & ham mails
Experiment setting Feature extraction Model training Hybrid-Model Conclusion Reference
1. Transmitted Time of the Mail 2. Number of the Receiver 3. Existence of Attachment 4. Existence of images in mail 5. Existence of Cited URLs in mail 6. Symbols in Mail Title 7. Mail-body
Spam: Non-uniform D istribution Spam: Only Single Receiver
AttachmentImageURL Spam %0.6816%30.779% Ham %0%7.0521%
MarksProbability of being Spam Mail Feature Showing Rate ~ ^ | * % [] ! ? = % in spam \ / ; & % in ham Title Absentness Spam senders add titles now. Arabic Numeral : Almost equal probability (Date, ID) Non-alphanumeric Character & Punctuation Marks: Appear more often in Spam Appear more often in ham
Build the internal structure of words Use a good NLP tool called Treetagger to help us do word stemming Given the stemmed words appeared in each mail, we build a sparse format vector to represent the “semantic” of a mail
Experiment setting Feature extraction Model training Hybrid-Model Conclusion Reference
Given a bag of words (x 1, x 2, x 3,…,x n ), Naïve Bayes is powerful for document classification.
Create a word-document (mail) matrix by SRILM. For every mail (column) pair, a similarity value can be calculated.
As K = 1, the KNN classification model show the best accuracy.
Maximize the entropy and minimize the Kullback-Leiber distance between model and the real distribution. The elements in word-document matrix are modified to the binary value {0, 1}.
Binary : Select binary value {0,1} to represent that this word appears or not Normalized : Count the occurrence of each word and divide them by their maximum occurrence counts.
Experiment setting Feature extraction Model training Hybrid-Model Conclusion Reference
The accuracy of NN-based Hybrid Model is always the highest.
The voting model averages the classification result, promoting the ability of the filter slightly. However, sometimes voting might reduce the accuracy because of misjudgments of majority. 1.Knn + naïve Bayes + Maximum Entropy 2.naïve Bayes + Maximum Entropy + SVM
Experiment setting Feature extraction Model training Hybrid-Model Conclusion Reference
7 features are shown mail type discrimination. Transmitted Time & Receiver Size Attachment, Image, and URL Non-alphanumeric Character & Punctuation Marks 5 populous Machine Learning are proved suitable for spam filter Naïve Bayes, KNN, SVM 2 Model combination ways are tested. Committee-based & Single Neural Network
[1]. M. Sahami, S. Dumais, D. Heckerman, and E. Horvitz, "A Bayesian Approach to Filtering Junk E- Mail," in Proc. AAAI 1998, Jul [2] A plan for spam: [3]Enron Corpus: [4]Treetagger: stuttgart.de/projekte/corplex/TreeTagger/DecisionTreeTagger.html [5]Maximum Entropy: [6]SRILM: [7]SVM: