Abstract
SMS spam has become a widespread issue, leading to significant inconvenience and security risks for users. Detecting and filtering out such spam messages is crucial for enhancing the user experience and ensuring privacy. TThe dataset used for training and testing the model consists of labeled SMS messages, which are processed using feature extraction techniques such as TF-IDF and word tokenization. Several machine learning algorithms, including Naive Bayes, Support Vector Machine (SVM), and Random Forest, are evaluated to determine the best-performing model for spam detection. The system is trained and tested using a variety of performance metrics, including accuracy, precision, recall, and F1-score. The results show that machine learning models, particularly Naive Bayes, exhibit high accuracy in distinguishing spam from legitimate messages. This system can be implemented in real-time applications such as mobile phones and email services to improve spam detection and reduce unwanted content. By automating the spam filtering process, the system enhances the efficiency and reliability of communication systems.