Retweet Prediction Using Multi-Layer Perceptron Optimized by The Swarm Intelligence Algorithm


  • Jondri Jondri Telkom University, Indonesia
  • Indwiarti Indwiarti Telkom University, Indonesia
  • Dyas Puspandari Telkom University, Indonesia



twitter, user based, Content-based, time-based, Multi layer perceptron, swarm intelligence


Retweets are a way to spread information on Twitter. A tweet is affected by several features which determine whether a tweet will be retweeted or not. In this research, we discuss the features that influence the spread of a tweet. These features are user-based, time-based and content-based. User-based features are related to the user who tweeted, time-based features are related to when the tweet was uploaded, while content-based features are features related to the content of the tweet. The classifier used to predict whether a tweet will be retweeted is Multi Layer Perceptron (MLP) and MLP which is optimized by the swarm intelligence algorithm. In this research, data from Indonesian Twitter users with the hashtag FIFA U-20 was used. The results of this research show that the most influential feature in determining whether a tweet will be retweeted or not is the content-based feature. Furthermore, it was found that the MLP optimized with the swarm intelligence algorithm had better performance compared to the MLP.


L. Wang, Y. Zhang, J. Yuan, K. Hu, and S. Cao, “FEBDNN: fusion embedding-based deep neural network for user retweeting behavior prediction on social networks,” Neural Comput Appl, vol. 34, no. 16, pp. 13219–13235, Aug. 2022, doi: 10.1007/s00521-022-07174-9.

S. Wang, Z. Li, Y. Wang, and Q. Zhang, “Machine learning methods to predict social media disaster rumor refuters,” Int J Environ Res Public Health, vol. 16, no. 8, Apr. 2019, doi: 10.3390/ijerph16081452.

J. Wang and Y. Yang, “Tweet Retweet Prediction Based on Deep Multitask Learning,” Neural Process Lett, vol. 54, no. 1, pp. 523–536, Feb. 2022, doi: 10.1007/s11063-021-10642-3.

T. B. N. Hoang and J. Mothe, “Predicting information diffusion on Twitter – Analysis of predictive features,” J Comput Sci, vol. 28, pp. 257–264, Sep. 2018, doi: 10.1016/j.jocs.2017.10.010.

T. Dai, Y. Xiao, X. Liang, Q. Li, and T. Li, “ICS-SVM: A user retweet prediction method for hot topics based on improved SVM,” Digital Communications and Networks, vol. 8, no. 2, pp. 186–193, Apr. 2022, doi: 10.1016/j.dcan.2021.07.003.

B. Jiang, Z. Lu, N. Li, J. Wu, and Z. Jiang, “Retweet prediction using social-aware probabilistic matrix factorization,” in Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), Springer Verlag, 2018, pp. 316–327. doi: 10.1007/978-3-319-93698-7_24.

S. Sharma and V. Gupta, “Role of twitter user profile features in retweet prediction for big data streams,” Multimed Tools Appl, vol. 81, no. 19, pp. 27309–27338, Aug. 2022, doi: 10.1007/s11042-022-12815-1.

X. Tang, Q. Miao, Y. Quan, J. Tang, and K. Deng, “Predicting individual retweet behavior by user similarity: A multi-task learning approach,” Knowl Based Syst, vol. 89, pp. 681–688, Nov. 2015, doi: 10.1016/j.knosys.2015.09.008.

S. Wang, C. Li, Z. Wang, H. Chen, and K. Zheng, “BPF++: A Unified Factorization model for predicting retweet behaviors,” Inf Sci (N Y), vol. 515, pp. 218–232, Apr. 2020, doi: 10.1016/j.ins.2019.12.017.

N. Y. Jalali and P. Papatla, “Composing tweets to increase retweets,” International Journal of Research in Marketing, vol. 36, no. 4, pp. 647–668, Dec. 2019, doi: 10.1016/j.ijresmar.2019.05.001.

I. Daga, A. Gupta, R. Vardhan, and P. Mukherjee, “Prediction of likes and retweets using text information retrieval,” in Procedia Computer Science, Elsevier B.V., 2020, pp. 123–128. doi: 10.1016/j.procs.2020.02.273.

L. Rivadeneira, J. B. Yang, and M. López-Ibáñez, “Predicting tweet impact using a novel evidential reasoning prediction method,” Expert Syst Appl, vol. 169, May 2021, doi: 10.1016/j.eswa.2020.114400.

S. N. Firdaus, C. Ding, and A. Sadeghian, “Retweet Prediction based on Topic, Emotion and Personality,” Online Soc Netw Media, vol. 25, Sep. 2021, doi: 10.1016/j.osnem.2021.100165.

Y. Liu, J. Zhao, and Y. Xiao, “C-RBFNN: A user retweet behavior prediction method for hotspot topics based on improved RBF neural network,” Neurocomputing, vol. 275, pp. 733–746, Jan. 2018, doi: 10.1016/j.neucom.2017.09.015.

H. X. Xiao, X. Liu, R. Yu, B. Yao, F. Zhang, and Y. Q. Wang, “Contributions of internal climate variability in driving global and ocean temperature variations using multi-layer perceptron neural network,” Advances in Climate Change Research, vol. 13, no. 4, pp. 459–472, Aug. 2022, doi: 10.1016/j.accre.2022.06.001.

M. Stankovic et al., “Tuning Multi-Layer Perceptron by Hybridized Arithmetic Optimization Algorithm for Healthcare 4.0,” Procedia Comput Sci, vol. 215, pp. 51–60, 2022, doi: 10.1016/j.procs.2022.12.006.

Y. Miao, Y. Yao, X. Hong, L. Xiong, F. Zhang, and W. Chen, “Research on optimal control of HVAC system using swarm intelligence algorithms.” [Online]. Available:

A. Banharnsakun, “A new approach for solving the minimum vertex cover problem using artificial bee colony algorithm,” Decision Analytics Journal, vol. 6, p. 100175, Mar. 2023, doi: 10.1016/j.dajour.2023.100175.

Y. Long et al., “Local Path Planning with Multiple Constraints for USV Based on Improved Bacterial Foraging Optimization Algorithm,” J Mar Sci Eng, vol. 11, no. 3, p. 489, Feb. 2023, doi: 10.3390/jmse11030489.

Q. Liu, L. Wu, W. Xiao, F. Wang, and L. Zhang, “A novel hybrid bat algorithm for solving continuous optimization problems,” Appl Soft Comput, vol. 73, pp. 67–82, Dec. 2018, doi: 10.1016/j.asoc.2018.08.012.

L. Wang and S. Han, “Improved cat swarm optimization for parameter estimation of mixed additive and multiplicative random error model,” Geod Geodyn, vol. 14, no. 4, pp. 385–391, Jul. 2023, doi: 10.1016/j.geog.2022.10.003.

P. Ong and Z. Zainuddin, “An optimized wavelet neural networks using cuckoo search algorithm for function approximation and chaotic time series prediction,” Decision Analytics Journal, vol. 6, p. 100188, Mar. 2023, doi: 10.1016/j.dajour.2023.100188.

M. Ghasemi, S. kadkhoda Mohammadi, M. Zare, S. Mirjalili, M. Gil, and R. Hemmati, “A new firefly algorithm with improved global exploration and convergence with application to engineering optimization,” Decision Analytics Journal, vol. 5, p. 100125, Dec. 2022, doi: 10.1016/j.dajour.2022.100125.

Z. Li, “A local opposition-learning golden-sine grey wolf optimization algorithm for feature selection in data classification,” Appl Soft Comput, vol. 142, p. 110319, Jul. 2023, doi: 10.1016/j.asoc.2023.110319.

Y. Zhang and X. Hou, “Application of video image processing in sports action recognition based on particle swarm optimization algorithm,” Prev Med (Baltim), vol. 173, p. 107592, Aug. 2023, doi: 10.1016/j.ypmed.2023.107592.

V. R. S. Nastiti, Z. Sari, and B. Chintia Eka Merita, “The Implementation of Restricted Boltzmann Machine in Choosing a Specialization for Informatics Students,” Jurnal Online Informatika, vol. 8, no. 1, pp. 36–43, Jun. 2023, doi: 10.15575/join.v8i1.917.

O. G. Ajayi and J. Ashi, “Effect of varying training epochs of a Faster Region-Based Convolutional Neural Network on the Accuracy of an Automatic Weed Classification Scheme,” Smart Agricultural Technology, vol. 3, p. 100128, Feb. 2023, doi: 10.1016/j.atech.2022.100128.

P. Thölke et al., “Class imbalance should not throw you off balance: Choosing the right classifiers and performance metrics for brain decoding with imbalanced data,” Neuroimage, vol. 277, p. 120253, Aug. 2023, doi: 10.1016/j.neuroimage.2023.120253.







Citation Check