Understanding User Behavior in Online Social Networks
Keywords:
spam, spammers, spam detection, user behavior analysis, graph analysisAbstract
The increasing use of the Internet and social networks and their great popularity have created numerous challenges and difficulties in these services, among which spam and harassment can be mentioned. Despite many efforts by previous researchers to counter spam, there is still a lot of spam in social networks and on the Internet, which shows that the precision and efficiency of these methods are insufficient. This study tries to identify and limit spammers, as the sources of spam messages, using data mining, by understanding the behavior of users in online social networks. We identify spammers with a combined method that uses the analytical features of graphs and features based on user behavior, employing more efficient features that cover more comprehensive user behavior. Two scenarios were used to achieve a higher level of accuracy. The first scenario used all the data to develop and evaluate the models, and the results show a higher level of accuracy with this approach. In the second scenario, the ratio of normal users to spammers was set to 2:1, which gave satisfactory results. Based on the confusion matrix, the logistic algorithm was chosen as the suitable algorithm, consistent with the aims of this study.
References
Aslan, Ç. B., Sağlam, R. B., & Li, S. (2018). Automatic Detection of Cyber Security Related Accounts on Online Social Networks. In Proceedings of the 9th International Conference on Social Media and Society (pp. 236–240). ACM. https://doi.org/10.1145/3217804.3217919
Cao, C., & Caverlee, J. (2015). Detecting Spam URLs in Social Media via Behavioral Analysis. In Advances in Information Retrieval (pp. 703–714). Springer International Publishing. https://doi.org/10.1007/978-3-319-16354-3_77
Concone, F., Re, G. L., Morana, M., & Das, S. K. (2023). SpADe: Multi-Stage Spam Account Detection for Online Social Networks. IEEE Transactions on Dependable and Secure Computing, 20(4), 3128–3143. https://doi.org/10.1109/tdsc.2022.3198830
Deng, L., Wu, C., Lian, D., Wu, Y., & Chen, E. (2023). Markov-Driven Graph Convolutional Networks for Social Spammer Detection. IEEE Transactions on Knowledge and Data Engineering, 35(12), 12310–12322. https://doi.org/10.1109/tkde.2022.3150669
Fathaliani, F., & Bouguessa, M. (2015). A model-based approach for identifying spammers in social networks. In 2015 IEEE International Conference on Data Science and Advanced Analytics (DSAA) (pp. 1–9). IEEE. https://doi.org/10.1109/dsaa.2015.7344843
Gao, H., Hu, J., Huang, T., Wang, J., & Chen, Y. (2011). Security Issues in Online Social Networks. IEEE Internet Computing, 15(4), 56–63. https://doi.org/10.1109/mic.2011.50
Gao, H., Hu, J., Wilson, C., Li, Z., Chen, Y., & Zhao, B. Y. (2010). Detecting and characterizing social spam campaigns. In Proceedings of the 10th ACM SIGCOMM conference on Internet measurement (pp. 35–47). ACM. https://doi.org/10.1145/1879141.1879147
Guo, Z., Tang, L., Guo, T., Yu, K., Alazab, M., & Shalaginov, A. (2021). Deep Graph neural network-based spammer detection under the perspective of heterogeneous cyberspace. Future Generation Computer Systems, 117, 205–218. https://doi.org/10.1016/j.future.2020.11.028
Hu, X., Tang, J., & Liu, H. (2014). Online Social Spammer Detection. Proceedings of the AAAI Conference on Artificial Intelligence, 28(1). https://doi.org/10.1609/aaai.v28i1.8728
Jethava, G., & Rao, U. P. (2022). User behavior-based and graph-based hybrid approach for detection of Sybil Attack in online social networks. Computers and Electrical Engineering, 99, 107753. https://doi.org/10.1016/j.compeleceng.2022.107753
Jindal, N., & Liu, B. (2008). Opinion spam and analysis. In Proceedings of the international conference on Web search and web data mining - WSDM '08 (pp. 219). ACM Press. https://doi.org/10.1145/1341531.1341560
Koggalahewa, D., Xu, Y., & Foo, E. (2022). An unsupervised method for social network spammer detection based on user information interests. Journal of Big Data, 9(1), Article 7. https://doi.org/10.1186/s40537-021-00552-5
Liu, L., Lu, Y., Luo, Y., Zhang, R., Itti, L., & Lu, J. (2016). Detecting "Smart" Spammers on Social Network: A Topic Model Approach. In Proceedings of the NAACL Student Research Workshop (pp. 45–50). Association for Computational Linguistics. https://doi.org/10.18653/v1/n16-2007
Liu, H., & Yu, L. (2005). Toward integrating feature selection algorithms for classification and clustering. IEEE Transactions on Knowledge and Data Engineering, 17(4), 491–502. https://doi.org/10.1109/tkde.2005.66
Mohaddes Deylami, H., & Singh, Y. P. (2013). Cybercrime detection techniques based on support vector machines. Artificial Intelligence Research, 2(1), 1–11. https://doi.org/10.5430/air.v2n1p1
Monirul Kabir, M., Monirul Islam, M., & Murase, K. (2010). A new wrapper feature selection approach using neural network. Neurocomputing, 73(16-18), 3273–3283. https://doi.org/10.1016/j.neucom.2010.04.003
Najafi Sarpiri, M., Javdani Gandomani, T., Teymourzadeh, M., & Motamedi, A. (2018). A hybrid method for spammer detection in social networks by analyzing graph and user behavior. Journal of Computers, 13(7), 823–829. https://doi.org/10.17706/jcp.13.7.823-829
Pathan, S., & H., R. (2016). Detection of Spam Messages in Social Networks based on SVM. International Journal of Computer Applications, 145(10), 34–38. https://doi.org/10.5120/ijca2016910793
Qiu, T., Liu, X., Zhou, X., Qu, W., Ning, Z., & Chen, C. L. P. (2022). An Adaptive Social Spammer Detection Model With Semi-Supervised Broad Learning. IEEE Transactions on Knowledge and Data Engineering, 34(10), 4622–4635. https://doi.org/10.1109/tkde.2020.3047857
Soiraya, M., Thanalerdmongkol, S., & Chantrapornchai, C. (2012). Using a Data Mining Approach: Spam Detection on Facebook. International Journal of Computer Applications, 58(13), 26–31. https://doi.org/10.5120/9343-3660
Spirin, N., & Han, J. (2012). Survey on web spam detection. ACM SIGKDD Explorations Newsletter, 13(2), 50–64. https://doi.org/10.1145/2207243.2207252
Thomas, K., Grier, C., Ma, J., Paxson, V., & Song, D. (2011). Design and Evaluation of a Real-Time URL Spam Filtering Service. In 2011 IEEE Symposium on Security and Privacy (pp. 447–462). IEEE. https://doi.org/10.1109/sp.2011.25
Vieira, S. M., Sousa, J. M. C., & Runkler, T. A. (2010). Two cooperative ant colonies for feature selection using fuzzy models. Expert Systems with Applications, 37(4), 2714–2723. https://doi.org/10.1016/j.eswa.2009.08.026
Vishwarupe, V., Bedekar, M., Pande, M., & Hiwale, A. (2018). Intelligent Twitter Spam Detection: A Hybrid Approach. In Smart Trends in Systems, Security and Sustainability (pp. 189–197). Springer Singapore. https://doi.org/10.1007/978-981-10-6916-1_17
Viswanath, B., Mislove, A., Cha, M., & Gummadi, K. P. (2009). On the evolution of user interaction in Facebook. In Proceedings of the 2nd ACM workshop on Online social networks (pp. 37–42). ACM. https://doi.org/10.1145/1592665.1592675
Wilson, C., Boe, B., Sala, A., Puttaswamy, K. P. N., & Zhao, B. Y. (2009). User interactions in social networks and their implications. In Proceedings of the 4th ACM European conference on Computer systems (pp. 205–218). ACM. https://doi.org/10.1145/1519065.1519089
Xu, G., Qi, J., Huang, D., & Daneshmand, M. (2016). Detecting spammers on social networks based on a hybrid model. In 2016 IEEE International Conference on Big Data (Big Data) (pp. 3062–3068). IEEE. https://doi.org/10.1109/bigdata.2016.7840960
Zheng, X., Zeng, Z., Chen, Z., Yu, Y., & Rong, C. (2015). Detecting spammers on social networks. Neurocomputing, 159, 27–34. https://doi.org/10.1016/j.neucom.2015.02.047
Zhu, Y., Wang, X., Zhong, E., Liu, N., Li, H., & Yang, Q. (2012). Discovering spammers in social networks. Proceedings of the AAAI Conference on Artificial Intelligence, 26(1), 171–177. https://doi.org/10.1609/aaai.v26i1.8116
Downloads
Published
Issue
Section
License
Copyright (c) 2026 DarnerView

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.