Sentiment Analysis of Instagram User Comments related to the Inauguration of Mr. Prabowo Subianto as President of the Republic of Indonesia Using Natural Language Processing
How to cite (IJASEIT) :
This study employs Natural Language Processing (NLP) techniques to analyze sentiments expressed in Instagram comments about Prabowo Subianto's inauguration as Indonesia's president. The dataset comprises a rich collection of user-generated comments, meticulously preprocessed with the Sastrawi stemmer tailored for Indonesian. This preprocessing stage includes rigorous text cleaning, stemming, and stopword removal, ensuring that the analysis is based on the most relevant linguistic elements. To accurately classify the sentiment of these comments as positive or negative, a logistic regression model has been trained. The model leverages TF-IDF (Term Frequency-Inverse Document Frequency) for effective feature extraction, enhancing the precision of the analysis. With promising results, particularly in identifying uplifting remarks that celebrate the new president's ascendance, this study underscores the essential role of natural language processing in unraveling public sentiment surrounding pivotal political events. The findings of this research not only shed light on the intricate tapestry of public opinion but also pave the way for future sentiment analysis endeavors within the vibrant landscape of Indonesian social media. The model demonstrates robust accuracy, illustrating its effectiveness in interpreting the nuanced sentiments of digital discourse surrounding significant political milestones.
K. L. Tan et al., "A survey of sentiment analysis: Approaches, datasets, and future research," Appl. Sci., vol. 13, no. 7, p. 4550, Apr. 2023, doi: 10.3390/app13074550.
H. A. Alatabi and A. R. Abbas, "Sentiment analysis in social media using machine learning techniques," Iraqi J. Sci., vol. 61, no. 1, pp. 193–201, Jan. 2020, doi: 10.24996/ijs.2020.61.1.22.
A. Kampatzis, A. Sidiropoulos, K. Diamantaras, and S. Ougiaroglou, “Sentiment dimensions and intentions in scientific analysis: Multilevel classification in text and citations,” Electronics, vol. 13, no. 9, p. 1753, May 2024, doi: 10.3390/electronics13091753.
Z. Zhou, J. Qin, X. Xiang, Y. Tan, Q. Liu, and N. N. Xiong, "News text topic clustering optimized method based on TF-IDF algorithm on Spark," Comput., Mater. Contin., vol. 62, no. 1, pp. 217–231, 2020, doi: 10.32604/cmc.2020.06431.
P. Guleria, J. Frnda, and P. N. Srinivasu, "NLP based text classification using TF-IDF enabled fine-tuned long short-term memory: An empirical analysis," Array, vol. 27, p. 100467, Sep. 2025, doi: 10.1016/j.array.2025.100467.
A. Albladi, M. Islam, and C. Seals, "Sentiment analysis of Twitter data using NLP models: A comprehensive review," IEEE Access, vol. 13, pp. 30444–30468, 2025, doi: 10.1109/ACCESS.2025.3541494.
A. A. Ghafoor and M. A. Aish, "Enhanced fake news detection with Bi-LSTM networks and TF-IDF," J. Innov. Comput. Emerg. Technol., vol. 4, no. 2, pp. 1–10, Oct. 2024, doi: 10.56536/jicet.v4i2.124.
M. Arman et al., "Evaluating transformer-based models for Bengali political sentiment analysis," in Proc. 5th Int. Conf. Electr., Comput. Energy Technol. (ICECET), Paris, France, Jul. 2025, pp. 1–6. [Online]. Available: https://hal.science/hal-05068202
X. Qi and A. Shabrina, "Twitter sentiment analysis using NLP," Ain Shams Eng. J., vol. 14, no. 9, p. 102112, Sep. 2023, doi: 10.1049/icp.2023.2562.
M. Trevisan et al., "Towards understanding political interactions on Instagram," in Proc. 30th ACM Conf. Hypertext Soc. Media (HT), Hof, Germany, Sep. 2019, pp. 247–251, doi: 10.1145/3342220.3343657.
W. N. Chan and T. Thein, "A comparative study of machine learning techniques for real-time multi-tier sentiment analysis," in Proc. 1st IEEE Int. Conf. Knowl. Innov. Invention (ICKII), Jeju, Korea (South), 2018, pp. 90–93, doi: 10.1109/ICKII.2018.8569169.
H. Bashiri and H. Naderi, "Comprehensive review and comparative analysis of transformer models in sentiment analysis," Knowl. Inf. Syst., vol. 66, no. 12, pp. 7305–7361, Dec. 2024, doi: 10.1007/s10115-024-02214-3.
K. Srinidhi, A. Harika, S. S. Voodarla, and J. Abhiram, "Sentiment analysis of social media comments using natural language processing," in Proc. Int. Conf. Inventive Comput. Technol. (ICICT), Lalitpur, Nepal, 2024, pp. 762–768, doi: 10.1109/ICICT60155.2024.10544849.
S. Pappala, "Sentiment-driven movie recommendation system: A machine learning approach," Int. J. Multidiscipl. Res. (IJFMR), vol. 6, no. 3, pp. 1–6, May-Jun. 2024.
S. Gnanapriya and K. Anandan, "Sentiment analysis in political discourse: Understanding public opinion from social media," E-Learn. Digit. Media, Early Access, 2025, doi: 10.1177/20427530251343205.
S. Pradha, M. N. Halgamuge, and N. Tran Quoc Vinh, "Effective text data preprocessing technique for sentiment analysis in social media data," in Proc. 11th Int. Conf. Knowl. Syst. Eng. (KSE), Da Nang, Vietnam, 2019, pp. 1–8, doi: 10.1109/KSE.2019.8919368.
K. Al Sharou, Z. Li, and L. Specia, "Towards a better understanding of noise in natural language processing," in Proc. Int. Conf. Recent Adv. Nat. Lang. Process. (RANLP), Held Online, Sep. 2021, pp. 53–62. [Online]. Available: https://aclanthology.org/2021.ranlp-1.7/
H. T. Duong and T. A. Nguyen-Thi, "A review: Preprocessing techniques and data augmentation for sentiment analysis," Comput. Soc. Netw., vol. 8, no. 1, p. 1, Jan. 2021, doi: 10.1186/s40649-020-00080-x.
Q. A. Xu, V. Chang, and C. Jayne, "A systematic review of social media-based sentiment analysis: Emerging trends and challenges," Decis. Analytics J., vol. 3, p. 100073, Jun. 2022, doi: 10.1016/j.dajour.2022.100073.
W. Xie, W. Zhao, and Z. Xu, "Comparative analysis of multi-platform e-commerce online reviews based LDA and sentiment dictionary," Int. J. Intell. Comput. Cybern., vol. 18, no. 2, pp. 298–325, 2025, doi: 10.1108/IJICC-08-2024-0384.
M. Alfreihat et al., "Emo-SL framework: Emoji sentiment lexicon using text-based features and machine learning for sentiment analysis," IEEE Access, vol. 12, pp. 81793–81812, 2024, doi: 10.1109/ACCESS.2024.3382836.
S. Dorle and N. Pise, "Political sentiment analysis through social media," in Proc. 2nd Int. Conf. Comput. Methodol. Commun. (ICCMC), Erode, India, 2018, pp. 869–873, doi: 10.1109/ICCMC.2018.8487879.
E. S. Tellez, S. Miranda-Jiménez, M. Graff, D. Moctezuma, O. S. Siordia, and E. A. Villaseñor, "A case study of Spanish text transformations for twitter sentiment analysis," Expert Syst. Appl., vol. 81, pp. 457–471, Sep. 2017, doi: 10.1016/j.eswa.2017.03.071.
S. R. El-Beltagy and A. Ali, "Open issues in the sentiment analysis of Arabic social media: A case study," in Proc. 9th Int. Conf. Innov. Inf. Technol. (IIT), Al Ain, United Arab Emirates, 2013, pp. 215–220, doi:10.1109/Innovations.2013.6544421.
J. Lappeman, R. Clark, J. Evans, L. Sierra-Rubia, and P. Gordon, "Studying social media sentiment using human validated analysis," MethodsX, vol. 7, p. 100867, 2020, doi: 10.1016/j.mex.2020.100867.
U. Naseem, I. Razzak, and P. W. Eklund, "A survey of pre-processing techniques to improve short-text quality: A case study on hate speech detection on Twitter," Multimedia Tools Appl., vol. 80, no. 28, pp. 35239–35266, Nov. 2021, doi: 10.1007/s11042-020-10082-6.
A. Perdana et al., "Analisis sentimen terhadap isu penundaan pemilu di Twitter menggunakan Naive Bayes classifier," Jurnal Sisfokom, vol. 11, no. 2, pp. 195–200, Jul. 2022, doi: 10.32736/sisfokom.v11i2.1412.
L. Geni et al., "Sentiment analysis of tweets before the 2024 elections in Indonesia using IndoBERT," J. Inf. Technol. Comput. Sci., vol. 9, no. 3, pp. 746–757, 2023, doi: 10.26555/jiteki.v9i3.26490.
S. M. P. Tyas et al., "A robustly optimized BERT using random oversampling for analyzing imbalanced stock news sentiment data," in Proc. Int. Conf. Comput. Sci., Inf. Technol., Electr. Eng. (ICCoSITE), Jakarta, Indonesia, Mar. 2023, pp. 134–139, doi: 10.1109/ICCoSITE57641.2023.10127725.
B. Wilie et al., "IndoNLU: Benchmark and resources for evaluating Indonesian natural language understanding," in Proc. 1st Conf. Asia-Pacific Chapter Assoc. Comput. Linguistics 10th Int. Joint Conf. Nat. Lang. Process. (AACL-IJCNLP), Suzhou, China, Dec. 2020, pp. 843–857, doi: 10.18653/v1/2020.aacl-main.85.
E. H. Aydoğan and F. Y. Okay, "Sentiment analysis of reviews for E-commerce applications," in Proc. 9th Int. Conf. Comput. Sci. Eng. (UBMK), Antalya, Turkiye, 2024, pp. 1–6, doi: 10.1109/UBMK63289.2024.10773400.
N. Agustiana et al., "Comparison of sentiment analysis on Traveloka and Tiket.com using Naïve Bayes method," ITEJ (Inf. Technol. Eng. J.), vol. 8, no. 2, pp. 112–120, 2023, doi: 10.24235/itej.v8i2.119.
V. V. V. R. Gurram and J. M. Nalam, "Automated detection of fake news in natural language processing: A comparative study of TF-IDF and lexical-based stance detection with logistic regression," Blekinge Inst. Technol., Karlskrona, Sweden, Tech. Rep., 2024, pp. 60.
M. Tezgider et al., "Bidirectional transformer models for financial sentiment analysis," Concurrency Computat.: Pract. Exper., vol. 34, no. 20, p. e6486, Sep. 2022, doi: 10.1002/cpe.6486.
Z. C. Lipton and J. Steinhardt, "Troubling trends in machine learning scholarship: Some ML papers suffer from flaws that could mislead the public and stymie future research," Queue, vol. 17, no. 1, pp. 45–77, Feb. 2019.
G. James, D. Witten, T. Hastie, and R. Tibshirani, An Introduction to Statistical Learning with Applications in R, 2nd ed. New York, NY, USA: Springer, 2021. doi: 10.1007/978-1-0716-1418-1.
I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning. Cambridge, MA, USA: MIT Press, 2016.
C. Molnar, Interpretable Machine Learning: A Guide for Making Black Box Models Explainable. 2018. [Online]. Available: https://christophm.github.io/interpretable-ml-book/
J. D. Kelleher and B. Tierney, Data Science. Cambridge, MA, USA: MIT Press, 2018.
J. H. Martin and D. Jurafsky, Speech and Language Processing. Upper Saddle River, NJ, USA: Prentice Hall, 2000.
A. Vaswani et al., "Attention is all you need," in Proc. 31st Int. Conf. Neural Inf. Process. Syst. (NeurIPS), Long Beach, CA, USA, Dec. 2017
IBM, "What is natural language processing (NLP)?," IBM, Armonk, NY, USA, Tech. Rep., 2024. [Online]. Available: https://www.ibm.com/topics/natural-language-processing.
T. Mikolov, K. Chen, G. Corrado, and J. Dean, "Efficient estimation of word representations in vector space," arXiv:1301.3781, 2013. [Online]. Available: https://arxiv.org/abs/1301.3781
S. Mittal, A. Chandel, and P. M. Nguyen, "AI and social media analytics: Leveraging real-time data for entrepreneurial growth," in Improving Entrepreneurial Processes Through Advanced AI, IGI Global, 2025, pp. 267–290.
M. Jindal, "Advancements in cloud-based machine learning: Navigating deployment and scalability," Int. J. Multidiscip. Res., vol. 5, no. 6, 2023, doi: 10.36948/ijfmr.2023.v05i06.11371.

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Attribution-ShareAlike 4.0 International License
https://creativecommons.org/licenses/by-sa/4.0/