Sentiment Analysis Of Instagram Comments On The BPS Province X Account Using The Naive Bayes Algorithm Based On Machine Learning

Jessika Jessika, Al Khaidar, Nurdin Nurdin, Syarifah Muliana

Sari


Sentiment analysis is an approach in natural language processing that aims to identify and categorize user opinions or attitudes towards an entity based on text data. The data used consists of the last 500 uploaded captions obtained through the Phantombuster tool. The analysis stages include data crawling, preprocessing (removal of duplicate and empty data, tokenization, stopword removal, and case folding), printing using the Naïve Bayes algorithm, and visualization of the classification results. Based on the processing results, it was found that the majority of the data was classified as neutral (97.65%), while the rest was divided into positive (1.57%) and negative (0.78%) categories, with a model accuracy of 94%. Although the model accuracy is relatively high, the dominance of the neutral class indicates an imbalance in data distribution (imbalanced data) which can affect the quality of the generalization model.

Teks Lengkap:

PDF

Referensi


A. Khaidar, M. Arhami, And M. Abdi, “Application Of The Random Forest Method For Ukt Classification At Politeknik Negeri Lhokseumawe,†J. Artif. Intell. Softw. Eng., Vol. 4, No. 2, Pp. 94–103, 2024.

S. Kurnia And A. Khaidar, “Perbandingan Metode Machine Learning Menggunakan Metode Support Vector Machine Dan Artificial Neural Network Dalam Memprediksi Serangan Jantung,†J. Inform. Kaputama (Jik, Vol. 9, No. 2, Pp. 87–94, 2025.

A. S. Das And S. A. G. G. Singh, “A Survey Of Sentiment Analysis In Social Media: Techniques And Challenges,†J. Data Intell., Vol. 3, No. 2, Pp. 211–235, 2022.

M. A. Hasan, M. A. Al-Ghamdi, And M. A. Hossain, “Sentiment Analysis Of Social Media Data Using Machine Learning: A Comprehensive Review,†Ieee Access, Vol. 9, Pp. 88754–88772, 2021.

R. Sharma, S. Sharma, And R. Kumar, “Performance Analysis Of Naïve Bayes And Svm In Sentiment Classification Of Twitter Data,†Int. J. Inf. Technol., Vol. 14, No. 1, Pp. 245–253, 2022.

P. Singh, N. Kumar, And A. Singh, “Text Preprocessing Techniques For Sentiment Analysis: A Comparative Study,†J. King Saud Univ. - Comput. Inf. Sci., Vol. 34, No. 8, Pp. 5867–5878, 2022.

H. Kaur, S. Singh, And M. Kumar, “A Deep Learning-Based Model For Sentiment Analysis Of Instagram Captions,†Multimed. Tools Appl., Vol. 81, No. 1, Pp. 1123–1142, 2022.

D. Supriyanto, N. Nuryanti, And A. Noegroho, “Media Sosial Dalam Efektivitas Komunikasi Pelayanan Publik Instansi Pemerintah Daerah,†Innov. J. Soc. Sci. Res., Vol. 4, No. 4, Pp. 7796–7810, 2024.

Y. E. Putri, F. M. Elita, I. Gemiharto, And F. I. Komunikasi, “Pengaruh Media Sosial Instagram@ Bps_Statistics Terhadap Ekuitas Merek Badan Pusat Statistik,†Ekspresi Dan Persepsi J. Ilmu Komun., Vol. 6, No. 1, Pp. 17–31, 2023.

A. N. Ahmed, M. F. A. Fauzi, And M. A. A. M. Ali, “Sentiment Analysis Visualization Tools For Social Media: A Review,†J. Phys. Conf. Ser., Vol. 2163, No. 1, P. 12024, 2022.

T. H. Nguyen, H. T. Nguyen, And D. T. Le, “A Hybrid Approach For Sentiment Analysis On Imbalanced Social Media Data,†Expert Syst. Appl., Vol. 194, P. 116524, 2022.

S. Al-Sallab, A. H. A. Al-Zoubi, And A. Al-Soud, “Challenges Of Arabic Sentiment Analysis: A Systematic Literature Review,†Acm Trans. Asian Low-Resource Lang. Inf. Process., Vol. 21, No. 4, Pp. 1–28, 2022.

E. P. Wijaya and Muhammad Husni Rifqo, “Application of Naive Bayes Algorithm in Analyzing Public Sentiment towards Coretax on Platform X,†Journal of Artificial Intelligence and Software Engineering, vol. 5, no. 2, pp. 564–572, 2025, doi: https://doi.org/10.30811/jaise.v5i2.6949.

S. B. K. Kumar, S. S. Kumar, And R. Kumar, “Ethical Considerations In Social Media Data Crawling For Academic Research,†J. Information, Commun. Ethics Soc., Vol. 20, No. 3, Pp. 411–427, 2022.

Z. Li, Q. Wang, And Y. Liu, “Improving Naïve Bayes For Text Classification By Feature Weighting,†J. Ambient Intell. Humaniz. Comput., Vol. 13, No. 5, Pp. 2651–2662, 2022.

F. Saberi, M. A. Cheraghalikhani, And A. H. Ghorbani, “A Novel Framework For Sentiment Analysis On Instagram Comments Using Deep Learning,†J. Big Data, Vol. 8, No. 1, P. 112, 2021.

L. Deng, Y. Wang, And J. Li, “Public Opinion Analysis On Government Social Media During Public Health Crises: A Case Study Of Covid-19,†Inf. Process. Manag., Vol. 58, No. 5, P. 102652, 2021.

J. A. P. Jiménez, M. A. R. Díaz, And D. G. García, “Sentiment Analysis Of Public Services User Comments On Social Networks Using Nlp Techniques,†Ieee Lat. Am. Trans., Vol. 20, No. 7, Pp. 1655–1663, 2022.

A. Zakira, M. Arhami, M. I. Abdi, And S. Safriadi, “Text-Based Emotion Sentiment Analysis On Social Media Using Nlp And Lexicon Approach (Case Study: Gaza Conflict,†J. Informatics Eng. Softw. Appl., Vol. 1, No. 1, Pp. 139–149, 2025.

E. N. Hamdana, O. Nur, and R. Tri, “Sentiment Analysis of Visitor Reviews on Google Maps at Kampung Coklat Tourism,†Journal of Artificial Intelligence and Software Engineering (J-AISE), vol. 5, no. 1, pp. 274–274, Mar. 2025, doi: https://doi.org/10.30811/jaise.v5i1.6488.

R. R. Armayani, L. C. Tambunan, R. M. Siregar, N. R. Lubis, And A. Azahra, “Analisis Peran Media Sosial Instagram Dalam Meningkatkan Penjualan Online,†J. Pendidik. Tambusai, Vol. 5, No. 3, Pp. 8920–8928, 2021.

L. L. Larasati, “Analisis Sentimen Terhadap Opini Warganet Tentang Wisata Di Yogyakarta Pada Platform Instagram Menggunakan Naïve Bayes Classifier (Studi Kasus: Data Opini Warganet Di Instagram Selama Satu Tahun,†2024.

S. D. Parameswari, M. Lubis, S. Suakanto, Y. Z. Ramadhan, R. N. Amanah, And R. A. Dila, “Studi Perbandingan Naïve Bayes Dan Support Vector Machine (Svm) Dalam Analisis Sentimen Pengguna Metaverse,†J. Teknol. Dan Manaj. Ind. Terap., Vol. 4, No. 3, Pp. 1059–1065, 2025.




DOI: http://dx.doi.org/10.30811/jaise.v5i3.7815

Refbacks

  • Saat ini tidak ada refbacks.


Indexing :

Creative Commons License
Journal of Artificial Intelligence and Software Engineering (JAISE) licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.