Spam Image Detection using Convolutional Neural Networks (CNNs) and Deep Learning
Abstract
Spam content, especially in the form of images, has significantly increased because of the rapid development of email, social networks, and online communication. In contrast to text-based spam, which can be filtered using keyword and pattern analysis to remove harmful or promotional content, image-based spam is more difficult to identify because the text may be distorted, embedded within the image, or represented with intricate graphics to avoid detection by conventional filters. Conventional spam filtering methods consequently lose their effectiveness, which raise security risks such as malware distribution, phishing attacks, invasions of privacy, and needless bandwidth usage. This study is about the design of a system that identifies spam images using convolutional neural networks (CNNs) which are popular deep learning models that can learn spatial and visual features automatically. Without the need for human feature engineering, the CNN model learns discriminative features such as texture, edge density, color variations, embedded text patterns, and visual noise. Deep learning is used to train and assess spam datasets and no spam images. We use accuracy, precision, recall, F1_score and confusion matrix to evaluate its performance. According to the study, compared with traditional machine learning classifiers, CNN-based models are much more reliable at identifying contemporary spam images. By assisting in the creation of intelligent, automated spam filtering systems, this work advances cybersecurity.