Real-Time Spam Detection in Chat Systems Using Naive Bayes, CNN, and OCR Techniques

In the modern era of digital communication, platforms such as email, SMS, and instant messaging have become integral to daily interactions. However, this widespread adoption has also led to an increase in spam content, which has evolved from traditional text-based messages to more sophisticated image-based formats in an effort to bypass conventional filters. This paper presents a hybrid spam detection approach integrated into a custom chat application, utilizing both text and image classification techniques. For text-based spam detection, a Naive Bayes classifier is employed, achieving an accuracy of 97%. To address image-based spam, a Deep Convolutional Neural Network (CNN) is used, attaining an accuracy of 96.87%. Additionally, an OCR-based method using Tesseract is implemented to extract textual content from images, which is then analyzed using the text classifier. The proposed approach demonstrates efficient processing times, with text messages classified in under one second and image messages within five seconds on web platforms. On mobile devices, image spam classification required approximately one minute and ten seconds. The effectiveness and responsiveness of these techniques for real-time spam detection are thoroughly evaluated in this paper.

Authors

Institutions

Publication Details

Journal
Journal of Advanced College of Engineering and Management
Published
2025-09-18
DOI
https://doi.org/10.3126/jacem.v11i1.84523
Primary Topic
Spam and Phishing Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Real-Time Spam Detection in Chat Systems Using Naive Bayes, CNN, and OCR Techniques

Ankit Pradhan, Aakash Shrestha, Anku Jaiswal, F. Sunar et al.
Journal of Advanced College of Engineering and Management
Spam and Phishing Detection
article

Real-Time Spam Detection in Chat Systems Using Naive Bayes, CNN, and OCR Techniques

Ankit Pradhan, Aakash Shrestha, Anku Jaiswal, F. Sunar, P. Adhikari
article en

Abstract

In the modern era of digital communication, platforms such as email, SMS, and instant messaging have become integral to daily interactions. However, this widespread adoption has also led to an increase in spam content, which has evolved from traditional text-based messages to more sophisticated image-based formats in an effort to bypass conventional filters. This paper presents a hybrid spam detection approach integrated into a custom chat application, utilizing both text and image classification techniques. For text-based spam detection, a Naive Bayes classifier is employed, achieving an accuracy of 97%. To address image-based spam, a Deep Convolutional Neural Network (CNN) is used, attaining an accuracy of 96.87%. Additionally, an OCR-based method using Tesseract is implemented to extract textual content from images, which is then analyzed using the text classifier. The proposed approach demonstrates efficient processing times, with text messages classified in under one second and image messages within five seconds on web platforms. On mobile devices, image spam classification required approximately one minute and ten seconds. The effectiveness and responsiveness of these techniques for real-time spam detection are thoroughly evaluated in this paper.

Journal of Advanced College of Engineering and ManagementVol. 11
Nepal Medical College Teaching Hospital (NP), Institute of Electronics (BG)
Openalex Percentile: Top 63%
Spam and Phishing Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Real-Time Spam Detection in Chat Systems Using Naive Bayes, CNN, and OCR Techniques — Ankit Pradhan, Aakash Shrestha, et al. · Journal of Advanced College of Engineering and Management (2025) | TGRS Research Map | TGRS