Skip to content

Mai-CS/Deep-Convolutional-Forest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deep convolutional forest: a dynamic deep ensemble approach for spam detection in text

Mai A. Shaaban, Yasser F. Hassan, Shawkat K. Guirguis

PWC Static Badge python tensorflow

Abstract

The increase in people’s use of mobile messaging services has led to the spread of social engineering attacks like phishing, considering that spam text is one of the main factors in the dissemination of phishing attacks to steal sensitive data such as credit cards and passwords. In addition, rumors and incorrect medical information regarding the COVID-19 pandemic are widely shared on social media leading to people’s fear and confusion. Thus, filtering spam content is vital to reduce risks and threats. Previous studies relied on machine learning and deep learning approaches for spam classification, but these approaches have two limitations. Machine learning models require manual feature engineering, whereas deep neural networks require a high computational cost. This paper introduces a dynamic deep ensemble model for spam detection that adjusts its complexity and extracts features automatically. The proposed model utilizes convolutional and pooling layers for feature extraction along with base classifiers such as random forests and extremely randomized trees for classifying texts into spam or legitimate ones. Moreover, the model employs ensemble learning procedures like boosting and bagging. As a result, the model achieved high precision, recall, f1-score and accuracy of 98.38%.


Figure 1: Workflow of data: text preprocessing, word embedding, feature extraction and classification


Figure 2: Structure of Deep Convolutional Forest (DCF)


Usage

This project was prepared to run on Colab

To use the code on Colab:

  1. Uncomment the following in cell #5 to download GloVe embeddings

    !wget http://nlp.stanford.edu/data/glove.6B.zip

    !unzip -q glove.6B.zip

  2. Change the data and the embeddings directories in cell #2 and #6:

    /content/drive/My Drive/Shared DCF/

Cite


@article{Shaaban2022,
	title        = {Deep convolutional forest: a dynamic deep ensemble approach for spam detection in text},
	author       = {Shaaban, Mai A. and Hassan, Yasser F. and Guirguis, Shawkat K.},
	year         = 2022,
	month        = {Apr},
	day          = 26,
	journal      = {Complex {\&} Intelligent Systems},
	doi          = {10.1007/s40747-022-00741-6},
	issn         = {2198-6053},
	url          = {https://doi.org/10.1007/s40747-022-00741-6},
	abstract     = {The increase in people's use of mobile messaging services has led to the spread of social engineering attacks like phishing, considering that spam text is one of the main factors in the dissemination of phishing attacks to steal sensitive data such as credit cards and passwords. In addition, rumors and incorrect medical information regarding the COVID-19 pandemic are widely shared on social media leading to people's fear and confusion. Thus, filtering spam content is vital to reduce risks and threats. Previous studies relied on machine learning and deep learning approaches for spam classification, but these approaches have two limitations. Machine learning models require manual feature engineering, whereas deep neural networks require a high computational cost. This paper introduces a dynamic deep ensemble model for spam detection that adjusts its complexity and extracts features automatically. The proposed model utilizes convolutional and pooling layers for feature extraction along with base classifiers such as random forests and extremely randomized trees for classifying texts into spam or legitimate ones. Moreover, the model employs ensemble learning procedures like boosting and bagging. As a result, the model achieved high precision, recall, f1-score and accuracy of 98.38{\%}.}
}

About

Shaaban, M.A., Hassan, Y.F. & Guirguis, S.K. Deep convolutional forest: a dynamic deep ensemble approach for spam detection in text. Complex Intell. Syst. (2022). https://doi.org/10.1007/s40747-022-00741-6

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published