Development of a lightweight two-stage hybrid classifier for privacy-preserving on-device multi-class SMS threat detection
DOI:
https://doi.org/10.21303/2461-4262.2026.004397Keywords:
SMS classification, multi-class classification, smishing detection, spam detection, mobile securityAbstract
Short Message Service (SMS) is one of the most important communication channels in modern society. Smishing (SMS phishing) and spam messages are cybersecurity threats distributed through mobile communication channels to deceive users using social engineering techniques. Existing detection methods use binary classification or require extensive computing power. Mobile devices lack the capacity for complex models, leading to the use of third-party services, which compromise user privacy. This paper proposes a lightweight, on-device, two-stage approach for real-time SMS threat detection. This solution distinguishes between "ham", "spam" and "smishing" without sending message content to external servers. In the first stage, a machine learning classifier based on eleven metrics identifies the majority of incoming messages, processing approximately 95% of messages without requiring deeper analysis. Ambiguous messages are passed to the second stage, where a compact TextCNN model performs lexical content analysis to classify intent. Results on several datasets demonstrate accuracy exceeding 97% in balanced multi-class datasets and 98,56% in binary dataset. The proposed method achieves an F1-score of 97.40%, with an average prediction time of 30 milliseconds per message. The strong results are explained by the discriminative power of structural features such as phone number presence and short URL detection handled by the first stage, combined with deep lexical content analysis in the second stage that captures deceptive patterns such as urgency phrases and action-oriented language. The method is applicable to any mobile platform and can be integrated into SMS client applications or mobile security software.
Downloads
References
Barrera, D., Naranjo, V., Fuertes, W., Macas, M. (2024). Literature Review of SMS Phishing Attacks: Lessons, Addresses, and Future Challenges. Advanced Research in Technologies, Information, Innovation and Sustainability, 191–204. https://doi.org/10.1007/978-3-031-48855-9_15
Timko, D., Rahman, M. L. (2023). Commercial Anti-Smishing Tools and Their Comparative Effectiveness Against Modern Threats. Proceedings of the 16th ACM Conference on Security and Privacy in Wireless and Mobile Networks, 1–12. https://doi.org/10.1145/3558482.3590173
Martínez-Mendoza, A., Fidalgo, E., Alegre, E., Fernández-Robles, L. (2026). Building a multi-class Short Message Service dataset for smishing detection using agglomerative clustering and dataset fusion. Engineering Applications of Artificial Intelligence, 163, 112864. https://doi.org/10.1016/j.engappai.2025.112864
Faklaris, C., Lipford, H. R., Tabassum, S. (2023). Preliminary results from a U.S. demographic analysis of SMiSh susceptibility. arXiv. https://doi.org/10.48550/arXiv.2309.06322
Roy, P. K., Singh, J. P., Banerjee, S. (2020). Deep learning to filter SMS Spam. Future Generation Computer Systems, 102, 524–533. https://doi.org/10.1016/j.future.2019.09.001
Akande, O. N., Gbenle, O., Abikoye, O. C., Jimoh, R. G., Akande, H. B., Balogun, A. O., Fatokun, A. (2023). SMSPROTECT: An automatic smishing detection mobile application. ICT Express, 9 (2), 168–176. https://doi.org/10.1016/j.icte.2022.05.009
Dewi, F. K., Fadhlurrahman, Mgs. M. R., Rahmanianto, M. D., Mahendra, R. (2017). Multiclass SMS message categorization: Beyond spam binary classification. 2017 International Conference on Advanced Computer Science and Information Systems (ICACSIS), 210–215. https://doi.org/10.1109/icacsis.2017.8355035
Oyeyemi, D. A., Ojo, A. K. (2023). SMS Spam Detection and Classification to Combat Abuse in Telephone Networks Using Natural Language Processing. Journal of Advances in Mathematics and Computer Science, 38 (10), 144–156. https://doi.org/10.9734/jamcs/2023/v38i101832
Choudhary, N., Jain, A. K. (2017). Towards Filtering of SMS Spam Messages Using Machine Learning Based Technique. Advanced Informatics for Computing Research, 18–30. https://doi.org/10.1007/978-981-10-5780-9_2
Zhraw, D. S., Hussain, M. A., Abduljabbar, Z. A., Nyangaresi, V. O., Aldarwish, A. J. Y. (2025). Chronological Review of MITM Attacks: Challenges, Solutions and Recommendations. Software Engineering: Emerging Trends and Practices in System Development, 202–220. https://doi.org/10.1007/978-3-032-03406-9_13
Li, Y., Zhang, R., Rong, W., Mi, X. (2024). SpamDam: Towards privacy-preserving and adversary-resistant SMS spam detection. arXiv. https://doi.org/10.48550/arXiv.2404.09481
Rawassizadeh, R., Pierson, T. J., Peterson, R., Kotz, D. (2018). NoCloud: Exploring Network Disconnection through On-Device Data Analysis. IEEE Pervasive Computing, 17 (1), 64–74. https://doi.org/10.1109/mprv.2018.011591063
Ghourabi, A. (2021). SM‐Detector: A security model based on BERT to detect SMiShing messages in mobile environments. Concurrency and Computation: Practice and Experience, 33 (24). https://doi.org/10.1002/cpe.6452
Cai, H., Lin, J., Lin, Y., Liu, Z., Tang, H., Wang, H. et al. (2022). Enable Deep Learning on Mobile Devices: Methods, Systems, and Applications. ACM Transactions on Design Automation of Electronic Systems, 27 (3), 1–50. https://doi.org/10.1145/3486618
Jain, A. K., Kaur, K., Gupta, N. K., Khare, A. (2025). Detecting Smishing Messages Using BERT and Advanced NLP Techniques. SN Computer Science, 6 (2). https://doi.org/10.1007/s42979-024-03532-7
Goel, D., Ahmad, H., Jain, A. K., Goel, N. (2024). Machine learning driven smishing detection framework for mobile security. arXiv. https://doi.org/10.48550/arXiv.2412.09641
Hosseinpour, S., Das, S. (2025). POSTER: A Multi-Signal Model for Detecting Evasive Smishing. 18th ACM Conference on Security and Privacy in Wireless and Mobile Networks, 292–293. https://doi.org/10.1145/3734477.3736147
Singhal, Y., Varshney, Y. V., Goyal, A., Aggrawal, N. (2018). Multiclass classification approach SMS categorization. International Journal of Advanced Studies of Scientific Research, 3 (10). Available at: https://papers.ssrn.com/sol3/Delivery.cfm/SSRN_ID3315602_code3240942.pdf?abstractid=3315602&mirid=1
Latifah, N., Dwiyansaputra, R., Nugraha, G. S. (2024). Multiclass Text Classification of Indonesian Short Message Service (SMS) Spam using Deep Learning Method and Easy Data Augmentation. MATRIK: Jurnal Manajemen, Teknik Informatika Dan Rekayasa Komputer, 23 (3), 663–676. https://doi.org/10.30812/matrik.v23i3.3835
Munoz, M. L., Islam, M. F. (2025). Deep Learning Approaches for Multi-Class Classification of Phishing Text Messages. Journal of Cybersecurity and Privacy, 5 (4), 102. https://doi.org/10.3390/jcp5040102
Shaaban, M. A., Hassan, Y. F., Guirguis, S. K. (2022). Deep convolutional forest: a dynamic deep ensemble approach for spam detection in text. Complex & Intelligent Systems, 8 (6), 4897–4909. https://doi.org/10.1007/s40747-022-00741-6
Ghourabi, A., Alohaly, M. (2023). Enhancing Spam Message Classification and Detection Using Transformer-Based Embedding and Ensemble Learning. Sensors, 23 (8), 3861. https://doi.org/10.3390/s23083861
Alsariera, Y. A., Alanazi, M. H., Said, Y., Allan, F. (2024). An Investigation of AI-Based Ensemble Methods for the Detection of Phishing Attacks. Engineering, Technology & Applied Science Research, 14 (3), 14266–14274. https://doi.org/10.48084/etasr.7267
Alsaedi, M., Ghaleb, F., Saeed, F., Ahmad, J., Alasli, M. (2022). Cyber Threat Intelligence-Based Malicious URL Detection Model Using Ensemble Learning. Sensors, 22 (9), 3373. https://doi.org/10.3390/s22093373
Sankaranarayanan, S., Sivachandran, A. T., Mohd Khairuddin, A. S., Hasikin, K., Wahab Sait, A. R. (2024). An ensemble classification method based on machine learning models for malicious Uniform Resource Locators (URL). Plos One, 19 (5), e0302196. https://doi.org/10.1371/journal.pone.0302196
Taskiran, S. F., Turkoglu, B., Kaya, E., Asuroglu, T. (2025). A comprehensive evaluation of oversampling techniques for enhancing text classification performance. Scientific Reports, 15 (1). https://doi.org/10.1038/s41598-025-05791-7
Tepper, N., Goldbraich, E., Zwerdling, N., Kour, G., Anaby Tavor, A., Carmeli, B. (2020). Balancing via Generation for Multi-Class Text Classification Improvement. Findings of the Association for Computational Linguistics: EMNLP 2020, 1440–1452. https://doi.org/10.18653/v1/2020.findings-emnlp.130
Lim, L. P., Mahinderjit Singh, M. (2020). Resolving the imbalance issue in short messaging service spam dataset using cost-sensitive techniques. Journal of Information Security and Applications, 54, 102558. https://doi.org/10.1016/j.jisa.2020.102558
Mishra, S., Soni, D. (2020). Smishing Detector: A security model to detect smishing through SMS content analysis and URL behavior analysis. Future Generation Computer Systems, 108, 803–815. https://doi.org/10.1016/j.future.2020.03.021
Le Pochat, V., Van Goethem, T., Tajalizadehkhoob, S., Korczynski, M., Joosen, W. (2019). Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation. Proceedings 2019 Network and Distributed System Security Symposium. https://doi.org/10.14722/ndss.2019.23386
Joulin, A., Grave, E., Bojanowski, P., Mikolov, T. (2017). Bag of Tricks for Efficient Text Classification. Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Short Papers, 427–431. https://doi.org/10.18653/v1/e17-2068
Umer, M., Imtiaz, Z., Ahmad, M., Nappi, M., Medaglia, C., Choi, G. S., Mehmood, A. (2022). Impact of convolutional neural network and FastText embedding on text classification. Multimedia Tools and Applications, 82 (4), 5569–5585. https://doi.org/10.1007/s11042-022-13459-x
Guo, B., Zhang, C., Liu, J., Ma, X. (2019). Improving text classification with weighted word embeddings via a multi-channel TextCNN model. Neurocomputing, 363, 366–374. https://doi.org/10.1016/j.neucom.2019.07.052
Muñoz, M., Islam, M. (2025). A balanced dataset for spam and smishing detection using large language models (LLMs). Mendeley Data, V1. https://doi.org/10.17632/vmg875v4xs.1
Mishra, S., Soni, D. (2022). SMS phishing dataset for machine learning and pattern recognition. Mendeley Data, V1. https://doi.org/10.17632/f45bkkt8pr.1
Almeida, T. A., Hidalgo, J. M. G., Yamakami, A. (2011). Contributions to the study of SMS spam filtering. Proceedings of the 11th ACM Symposium on Document Engineering, 259–262. https://doi.org/10.1145/2034691.2034742
Merkel, D. (2014). Docker: Lightweight Linux containers for consistent development and deployment. Linux Journal, 239. Available at: https://dl.acm.org/doi/10.5555/2600239.2600241
Mishra, S., Soni, D. (2021). DSmishSMS-A System to Detect Smishing SMS. Neural Computing and Applications, 35 (7), 4975–4992. https://doi.org/10.1007/s00521-021-06305-y
Prince, Md. A. H., Hossain, G. M. S., Mahmud, T., Rahman, Md. A., Hossain, M. S., Andersson, K. (2026). An Explainable Hybrid Transformer-Based Feature Fusion Approach for Smishing Detection in Cybersecurity. IEEE Access, 14, 106124–106147. https://doi.org/10.1109/access.2026.3712173
Phap, H. C. (2026). Edge-AI enabled smishing and suspicious SMS detection: a cost-sensitive and lightweight deep learning architecture. Journal of Information and Telecommunication, 1–15. https://doi.org/10.1080/24751839.2026.2713250
Ahmed, A. B., Haruna, K. (2025). Enhanced SMS spam detection using Bernoulli Naive Bayes with TF-IDF. Fudma Journal of Sciences, 9(1), 393–399. https://doi.org/10.33003/fjs-2025-0901-3226
Xia, T., Chen, X. (2020). A Discrete Hidden Markov Model for SMS Spam Detection. Applied Sciences, 10 (14), 5011. https://doi.org/10.3390/app10145011
Sulaiman, N. F., Jali, M. Z. (2015). A New SMS Spam Detection Method Using Both Content-Based and Non Content-Based Features. Advanced Computer and Communication Engineering Technology, 505–514. https://doi.org/10.1007/978-3-319-24584-3_43
Downloads
Published
Versions
- 2026-09-30 (Version of Record 1.0)
Data Availability Statement
Publicly available datasets were analyzed in this research and are cited in references [34–36]. The code used to reproduce the experiments, including preprocessing, training, and evaluation scripts, is publicly available at: https://github.com/vusalshahbaz/two-stage-smsclassification
Funding Statement
The research was performed without financial support.
Issue
Section
License
Copyright (c) 2026 Vusal Shahbazov (Author)

This work is licensed under a Creative Commons Attribution 4.0 International License.
Our journal abides by the Creative Commons CC BY copyright rights and permissions for open access journals.
Authors, who are published in this journal, agree to the following conditions:
1. The authors reserve the right to authorship of the work and pass the first publication right of this work to the journal under the terms of a Creative Commons CC BY, which allows others to freely distribute the published research with the obligatory reference to the authors of the original work and the first publication of the work in this journal.
2. The authors have the right to conclude separate supplement agreements that relate to non-exclusive work distribution in the form in which it has been published by the journal (for example, to upload the work to the online storage of the journal or publish it as part of a monograph), provided that the reference to the first publication of the work in this journal is included.
