Beyond Word-Based Model Embeddings: Contextualized Representations for Enhanced Social Media Spam Detection
Source abstract
Abstract
As social media platforms continue their exponential growth, so do the threats targeting their security. Detecting disguised spam messages poses an immense challenge owing to the constant evolution of tactics. This research investigates advanced artificial intelligence techniques to significantly enhance multiplatform spam classification on Twitter and YouTube. The deep neural networks we use are state-of-the-art. They are recurrent neural network architectures with long- and short-term memory cells that are powered by both static and contextualized word embeddings. Extensive comparative experiments precede rigorous hyperparameter tuning on the datasets. Results reveal a profound impact of tailored, platform-specific AI techniques in combating sophisticated and perpetually evolving threats. The key innovation lies in tailoring deep learning (DL) architectures to leverage both intrinsic platform contexts and extrinsic contextual embeddings for strengthened generalization. The results include consistent accuracy improvements of more than 10–15% in multisource datasets, unlocking actionable guidelines on optimal components of neural models, and embedding strategies for cross-platform defense systems. Contextualized embeddings like BERT and ELMo consistently outperform their noncontextualized counterparts. The standalone ELMo model with logistic regression emerges as the top performer, attaining exceptional accuracy scores of 90% on Twitter and 94% on YouTube data. This signifies the immense potential of contextualized language representations in capturing subtle semantic signals vital for identifying disguised spam. As emerging adversarial attacks exploit human vulnerabilities, advancing defense strategies through enhanced neural language understanding is imperative. We recommend that social media companies and academic researchers build on contextualized language models to strengthen social media security. This research approach demonstrates the immense potential of personalized, platform-specific DL techniques to combat the continuously evolving threats that threaten social media security.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Spam and Phishing Detection · Topic Modeling · Sentiment Analysis and Opinion Mining
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Faculty of Computer Science and Information Technology, Yarmouk University, Irbid 21163, Jordan
Information Technology, School of Computing, Southern Illinois University Carbondale, 1365 Douglas Drive, Carbondale, IL 62901, USA
Software Engineering, Computer and Information Sciences, Prince Sultan University, Riyadh 11586, Saudi Arabia
References (55)
Show source-provided references
1. Ham and spam e-mails classification using machine learning techniques10.1080/19361610.2018.1463136 ↗
2. Shahzad, K., Khan, S.A., Iqbal, A., Shabbir, O., and Latif, M. (2023). Determinants of fake news diffusion on social media: A systematic literature review. Glob. Knowl. Mem. Commun., ahead-of-print.10.1108/GKMC-06-2023-0189 ↗
3. Barushka, A., and Hájek, P. (2018, January 25–27). Spam filtering in social networks using regularized deep neural networks with ensemble learning. Proceedings of the Artificial Intelligence Applications and Innovations: 14th IFIP WG 12.5 International Conference, AIAI 2018, Rhodes, Greece. Proceedings 14.
4. Twitter spam detection: Survey of new approaches and comparative study10.1016/j.cose.2017.11.013 ↗
5. Predictive Analytics in Mental Health Leveraging LLM Embeddings and Machine Learning Models for Social Media Analysis10.4018/IJWSR.338222 ↗
6. (2023). Spam Detection on Social Media Platform. Int. J. Innov. Res. Adv. Eng.
7. Cybersecurity awareness factors among adolescents in Jordan: Mediation effect of cyber scale and personal factors10.30935/ojcmt/12942 ↗
8. Lai, K., Long, Y., Wu, B., Li, Y., and Wang, B. (2022, January 17–21). Semorph: A Morphology Semantic Enhanced Pre-trained Model for Chinese Spam Text Detection. Proceedings of the CIKM’22: Proceedings of the 31st ACM International Conference on Information & Knowledge Management, Atlanta, GA, USA.10.1145/3511808.3557448 ↗
9. (2023). Enhancing Spam Message Classification and Detection Using Transformer-Based Embedding and Ensemble Learning. Sensors, 23.
10. Li, Y., Wang, H., and Liu, J. (2017). Can CNNs Construct Highly Accurate Model Efficiently with Limited Training Samples. arXiv.
11. The Repercussions of the COVID-19 Pandemic on Higher Education and its implications for Syrian Refugees Students (An Analytical Descriptive Study)10.35516/hum.v49i5.2770 ↗
12. Machine learning for email spam filtering: Review, approaches and open research problems10.1016/j.heliyon.2019.e01802 ↗
13. Alshattnawi, S. (2023). Evaluation of Deep Learning and Machine Learning Algorithms in Intrusion Detection Systems. J. Theor. Appl. Inf. Technol., 101.
14. Alsobeh, A., and Woodward, B. (2023, January 11–14). AI as a Partner in Learning: A Novel Student-in-the-Loop Framework for Enhanced Student Engagement and Outcomes in Higher Education. Proceedings of the 24th Annual Conference on Information Technology Education, Marietta, GA, USA.10.1145/3585059.3611405 ↗
15. Spider monkey optimization algorithm for load balancing in cloud computing environments
16. Xiao, L., Wang, G., and Zuo, Y. (2018, January 8–9). Research on patent text classification based on word2vec and LSTM. Proceedings of the 2018 11th International Symposium on Computational Intelligence and Design (ISCID), IEEE, Hangzhou, China.10.1109/ISCID.2018.00023 ↗
17. Weavesim: A scalable and reusable cloud simulation framework leveraging aspect-oriented programming
18. From static to dynamic word representations: A survey10.1007/s13042-020-01069-8 ↗
19. Mikolov, T., Chen, K., Corrado, G., and Dean, J. (2013). Efficient estimation of word representations in vector space. arXiv.
20. Pre-operative obesity does not predict poorer symptom control and quality of life after lumbar disc surgery10.1080/02688697.2017.1354122 ↗
21. da Silva, J.R.M.F. (2023, December 01). Robust Handling of Out-of-Vocabulary Words in Deep Language Processing. Available online: https://repositorio.ul.pt/bitstream/10451/11956/1/ulsd068787_td_Joao_Silva.pdf.
22. Saidani, N. (2023, December 01). A Learning Approach for Spam Detection Using Semantic Representation. Available online: https://di.uqo.ca/id/eprint/1311/1/Saidani_Nadjate_2021_these.pdf.
23. Alsobeh, A., and Shatnawi, A. (2023, January 8–10). Integrating Data-Driven Security, Model Checking, and Self-adaptation for IoT Systems Using BIP Components: A Conceptual Proposal Model. Proceedings of the International Conference on Advances in Computing Research, Orlando, FL, USA.10.1007/978-3-031-33743-7_44 ↗
24. Machine learning and deep learning techniques for natural language processing with application to audio recordings
25. Spam detection on social media using semantic convolutional neural network10.4018/IJKDB.2018010102 ↗
26. Sedik, A., Marey, M., and Mostafa, H. (2023). An Adaptive Fatigue Detection System Based on 3D CNNs and Ensemble Models. Symmetry, 15.10.3390/sym15061274 ↗
27. Spam detection in social media using convolutional and long short term memory neural network10.1007/s10472-018-9612-z ↗
28. A deep learning model for Twitter spam detection10.1016/j.osnem.2020.100079 ↗
29. CBiLSTM: A hybrid deep learning model for efficient reputation assessment of cloud services10.1109/ACCESS.2022.3163246 ↗
30. TextSpamDetector: Textual content based deep learning framework for social spam detection using conjoint attention mechanism10.1007/s12652-020-02640-5 ↗
31. Near real-time twitter spam detection with machine learning techniques
32. Text Classification of Twitter Opinion Related to Permendikbud 30/2021 Using Bidirectional LSTM10.30598/barekengvol17iss2pp1113-1122 ↗
33. A drift-sensitive distributed LSTM method for short text stream classification10.1109/TBDATA.2022.3164239 ↗
34. Vanam, H., and Raj, J.R. (2023). CNN-OLSTM: Convolutional Neural Network with Optimized Long Short-Term Memory Model for Twitter based Sentiment Analysis. IETE J. Res., 1–12.10.1080/03772063.2023.2178977 ↗
35. How can we manage offensive text in social media-a text classification approach using LSTM-BOOST
36. Bidirectional LSTM-RNN-based hybrid deep learning frameworks for univariate time series classification10.1007/s11227-020-03560-z ↗
37. Sharma, D.K., Singh, B., Agarwal, S., Pachauri, N., Alhussan, A.A., and Abdallah, H.A. (2023). Sarcasm Detection over Social Media Platforms Using Hybrid Ensemble Model with Fuzzy Logic. Electronics, 12.10.3390/electronics12040937 ↗
38. Agile approaches for cybersecurity systems, IoT and intelligent transportation10.1109/ACCESS.2021.3136861 ↗
39. Al-Eidi, S., Darwish, O., and Chen, Y. (2020). Covert timing channel analysis either as cyber attacks or confidential applications. Sensors, 20.10.3390/s20082417 ↗
40. Fast evaluation of crack growth path using time series forecasting10.1016/j.engfracmech.2019.106567 ↗
41. Ibrahim, M., Gauch, S., Gerth, T., and Cox, B. (2021). WOVe: Incorporating word order in GloVe word embeddings. arXiv.10.46328/ijonest.83 ↗
42. Alhassun, A.S., and Rassam, M.A. (2022). A Combined Text-Based and Metadata-Based Deep-Learning Framework for the Detection of Spam Accounts on the Social Media Platform Twitter. Processes, 10.10.3390/pr10030439 ↗
43. Li, Y., and Yang, T. (2018). Word embedding for understanding natural language: A survey. Guide Big Data Appl., 83–104.10.1007/978-3-319-53817-4_4 ↗
44. Word2Vec10.1017/S1351324916000334 ↗
45. Distributed representations of words and phrases and their compositionality
46. Pennington, J., Socher, R., and Manning, C.D. (2014, January 25–29). Glove: Global vectors for word representation. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, Qatar.10.3115/v1/D14-1162 ↗
47. Multi-label text classification of Indonesian customer reviews using bidirectional encoder representations from transformers language model
48. Ethayarajh, K. (2019). How contextual are contextualized word representations? Comparing the geometry of BERT, ELMo, and GPT-2 embeddings. arXiv.10.18653/v1/D19-1006 ↗
49. Qiu, Y., Zhao, C., Zhang, H., Zhuo, J., Li, T., Zhang, X., Wang, S., Xu, S., Long, B., and Yang, W.Y. (2022, January 17–21). Pre-training Tasks for User Intent Detection and Embedding Retrieval in E-commerce Search. Proceedings of the 31st ACM International Conference on Information & Knowledge Management, Atlanta, GA, USA.10.1145/3511808.3557670 ↗
50. Combining machine learning algorithms for personality trait prediction10.1016/j.eij.2024.100439 ↗
51. Shleifer, S. (2019). Low resource text classification with ulmfit and backtranslation. arXiv.
52. Tsvetkov, Y. (2016). The Requirements for the Degree of Doctor of Philosophy in Language and Information Technologies, Carnegie Mellon University.
53. Kumar, A.S., Kumar, N.S., Devi, R.K., and Muthukannan, M. (2024). AI-Centric Modeling and Analytics, CRC Press.
54. Advances in spam detection for email spam, web spam, social network spam, and review spam: ML-based and nature-inspired-based techniques
55. Spam Detection using Recurrent Neural Networks