Design and Implementation of Social Media Sentiment and Engagement Pattern using VADER and TextBlob
Keywords:
Engagement analysis, K-Means, Machine learning, Network analysis, Principal component analysis (PCA), Sentiment analysis, Social media analyticsAbstract
The rapid growth of social media and related platforms generates vast amounts of user-created content. This extensive information contains significant material that is shared on social media for specific purposes, and in response, the public expresses their opinions through likes, dislikes, shares, comments, and various reactions to these posts. This study aims to investigate the sentiment and engagement aspects associated with this information, as well as the genuine opinions of the public regarding these posts. It is a challenging task due to the unstructured nature of the content, the high dimensionality of public inputs, and the complexity of the information. Traditional analytical methods and two-dimensional visualization techniques often struggle to effectively uncover hidden patterns and relationships within large-scale social media datasets. This study introduces a conceptual framework for analyzing sentiment and engagement trends on social media by employing three-dimensional visual analytics and machine learning approaches. First, social media data is gathered and processed to eliminate noise, duplicates, and non-essential information. Sentiment-related characteristics are obtained using VADER and TextBlob, while engagement features are calculated based on interaction metrics including likes, shares, comments, and reposts. To tackle the difficulties posed by high-dimensional data, Principal Component Analysis (PCA) and Uniform Manifold Approximation and Projection (UMAP) are used to create compact three-dimensional representations that maintain essential structural information. Additionally, clustering algorithms such as K-Means and DBSCAN are employed to detect clusters of posts that share similar sentiment and engagement attributes. Techniques from network analysis are applied to explore interaction patterns, pinpoint influential users, and uncover online communities. The resulting three-dimensional visualizations enable an intuitive examination of user behavior, sentiment distribution, and engagement dynamics across social media platforms.
References
I. T. Jolliffe and J. Cadima, “Principal component analysis: a review and recent developments,” Philosophical Transactions of the Royal Society A, vol. 374, no. 2065, 2016.
L. McInnes, J. Healy, and J. Melville, “UMAP: Uniform manifold approximation and projection for dimension reduction,” arXiv, Sep. 2020.
C. C. Aggarwal, Ed., Social Network Data Analytics. Boston, MA, USA: Springer, 2011.
B. Pang and L. Lee, “Opinion mining and sentiment analysis,” Foundations and Trends in Information Retrieval, vol. 2, no. 1–2, pp. 1–135, Jul. 2008.
C. J. Hutto and E. Gilbert, “VADER: A parsimonious rule-based model for sentiment analysis of social media text,” Proceedings of the International AAAI Conference on Web and Social Media, vol. 8, no. 1, pp. 216–225, May 2014.
A. Gaius, R. W. Mwangi, and A. Ngunyi, “A Stacking-Based Ensemble Approach with Embeddings from Language Models for Depression Detection from Social Media Text,” Journal of Data Analysis and Information Processing, vol. 11, no. 4, pp. 420–453, 2023.
J. Han, M. Kamber, and J. Pei, Data Mining: Concepts and techniques, 3rd ed. Waltham, MA, USA: Morgan Kaufmann, 2011.
F. Pedregosa et al., “Scikit-learn: Machine learning in Python,” The Journal of Machine Learning Research,” vol. 12, pp. 2825–2830, 2011.
J. MacQueen, “Some Methods for Classification and Analysis of Multivariate Observations,” in Proceedings of the Fifth Berkeley Symposium on Mathematical Statistics and Probability, 1967, pp. 281–297.
M. Ester, H.-P. Kriegel, J. Sander, and X. Xu, “A Density-Based Algorithm for Discovering Clusters in Large Spatial Databases with Noise,” in KDD, 1996, pp. 226–231.
M. E. J. Newman, Networks: An Introduction. Oxford, U.K.: Oxford University Press, 2010.
S. Wasserman and K. Faust, Social Network Analysis: Methods and Applications. Cambridge, U.K.: Cambridge University Press, 1994.
C. D. Manning, P. Raghavan, and H. Schütze, Introduction to Information Retrieval. Cambridge, U.K.: Cambridge University Press, 2008.
T. Mikolov, K. Chen, G. Corrado, and J. Dean, “Efficient estimation of word representations in vector space,” arXiv, Sep. 2013.
D. M. Blei, A. Y. Ng, and M. I. Jordan, “Latent Dirichlet allocation,” Journal of Machine Learning Research, vol. 3, pp. 993–1022, 2003.