Skip to main content
QUICK REVIEW

[Paper Review] DeepImageSpam: Deep Learning based Image Spam Detection

Amara Dinesh Kumar, R. Vinayakumar|arXiv (Cornell University)|Oct 3, 2018
Digital Media Forensic DetectionComputer Science4 references26 citations
TL;DR

This paper proposes a deep learning approach using Convolutional Neural Networks (CNNs) for image spam detection, automatically learning features from raw images without manual feature engineering. Trained on a dataset of 810 normal and 928 spam images, the model achieves 91.7% accuracy, outperforming traditional image processing and machine learning methods.

ABSTRACT

Hackers and spammers are employing innovative and novel techniques to deceive novice and even knowledgeable internet users. Image spam is one of such technique where the spammer varies and changes some portion of the image such that it is indistinguishable from the original image fooling the users. This paper proposes a deep learning based approach for image spam detection using the convolutional neural networks which uses a dataset with 810 natural images and 928 spam images for classification achieving an accuracy of 91.7% outperforming the existing image processing and machine learning techniques

Motivation & Objective

  • To address the growing threat of image spam that evades traditional text-based spam filters by embedding text within images.
  • To overcome the limitations of conventional image processing techniques like OCR and color histograms, which fail under text obfuscation.
  • To reduce reliance on manual feature extraction by leveraging deep learning for end-to-end feature learning.
  • To improve spam detection accuracy beyond existing machine learning models such as SVM and logistic regression.
  • To demonstrate the effectiveness of CNNs in classifying image spam with high precision and recall using a real-world dataset.

Proposed method

  • A custom CNN architecture is designed with multiple convolutional and max-pooling layers to extract hierarchical spatial features from RGB images.
  • The input images are resized to 56×56 pixels and normalized before feeding into the network to ensure consistent input dimensions.
  • ReLU activation functions are applied after each convolutional layer to introduce non-linearity and improve learning capacity.
  • Dropout layers with a rate of 0.25 are used after pooling and fully connected layers to prevent overfitting and improve generalization.
  • The final layer uses a sigmoid activation function for binary classification (spam or not spam), with binary cross-entropy loss and Adam optimizer.
  • The model is trained for 1,000 epochs using a batch size of 32 on a distributed computing cluster with Keras, scikit-learn, and TensorFlow.

Experimental results

Research questions

  • RQ1Can a deep learning model like CNN outperform traditional image processing techniques such as OCR and color histograms in detecting obfuscated image spam?
  • RQ2To what extent can end-to-end deep learning eliminate the need for manual feature engineering in image spam detection?
  • RQ3How does the performance of a CNN-based approach compare to classical machine learning models like SVM in terms of accuracy, precision, and recall?
  • RQ4Can a CNN effectively classify image spam even when text is obfuscated through font, color, and background changes?
  • RQ5What is the impact of architectural components like dropout and batch normalization on model generalization in image spam detection?

Key findings

  • The proposed CNN-based model achieved a test accuracy of 91.7%, significantly outperforming conventional image processing and machine learning techniques.
  • The model demonstrated perfect precision of 1.000, indicating no false positives in the test set, meaning all predicted spam images were correctly classified.
  • Recall was 85.7%, showing the model successfully identified 85.7% of actual spam images, indicating strong detection capability despite some missed cases.
  • The F1-score of 0.923 reflects a balanced harmonic mean of precision and recall, confirming robust overall performance.
  • The model effectively learned discriminative features from raw images without manual feature extraction, reducing human effort and error.
  • The use of dropout (0.25) and batch normalization contributed to improved generalization and reduced overfitting during training.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.