Sentiment Analysis of Digitalization of Small and Medium Enterprise on Social Media X Using SVM and KNN Methods
Abstract
The rapid digitalization of Small and Medium Enterprises (SMEs) has led to significant shifts in business operations, especially in their adaptation to digital platforms. Public perception towards this digital transformation is crucial to understand, as it reflects the success and acceptance of these efforts. This research conducts sentiment analysis on social media platform X to classify public opinions regarding the digitalization of SMEs. The analysis employs two machine learning algorithms, Support Vector Machine (SVM) and K-Nearest Neighbor (KNN), using Term Frequency-Inverse Document Frequency (TF-IDF) for feature extraction. The study compares the performance of both models under baseline and hyperparameter-tuned conditions. The results show that the SVM model consistently outperforms KNN in terms of accuracy, precision, recall, and F1-score. The highest accuracy achieved by the SVM model is 81.97% after hyperparameter tuning with a sigmoid kernel. Meanwhile, the best KNN model records an accuracy of 81.31% using Manhattan distance with 11 neighbors. This study demonstrates that SVM provides better stability and performance in sentiment classification related to SME digitalization. The findings are expected to help policymakers better understand public sentiment and formulate more effective strategies for supporting SME digital transformation.
Downloads
References
O. Juwita, A. Firdonsyah, M. Ali, A. P. Widodo, and R. R. Isnanto, “Studi Literatur Platform Digital Sebagai Sarana Pembangunan Ekosistem Dalam Mengembangkan UMKM,” INFORMAL: Informatics Journal, vol. 7, no. 1, p. 59, Jun. 2022, doi: 10.19184/isj.v7i1.31547.
P. Chairun, N. Fakultas, E. Dan Bisnis, and J. Manajemen, “PELUANG DAN TANTANGAN: KONSEP DIGITALISASI SMART CITY EKONOMI E-COMMERCE DI INDONESIA,” 2019. [Online]. Available: https://economy.okezone.com/read/201
V. Kurniawan, M. Faisal, R. Ansori, R. Yunus Pangaribuan, and I. Maritim Prasetya Mandiri, “PENGARUH UMKM (USAHA MIKRO KECIL MENEGAH) TERHADAP PENINGKATAN PEREKONOMIAN INDONESIA TAHUN 2024”, doi: 10.8734/mnmae.v1i2.359.
D. Rizqi Khusnul Khotimah, “Economic Growth and E-Commerce: Potensial for Digitizing SMSEs in East Java,” East Java Economic Journal, vol. 5, no. 2, pp. 183–203, Sep. 2021, doi: 10.53572/ejavec.v5i2.69.
E. Shintya Pratiwi, “ANALISIS SENTIMEN PADA DATA TWITTER KPK RI MENGGUNAKAN ALGORITMA SUPPORT VECTOR MACHINE (SVM),” 2023. Accessed: Jan. 10, 2025. [Online]. Available: Teknologipintar.org
A. Cahaya Puspitasari, “PENINGKATAN KINERJA ANALISIS SENTIMEN DENGAN TEKNIK FEATURE ENGINEERING PADA MACHINE LEARNING.” Accessed: Jan. 10, 2025. [Online]. Available: Puspitasari
A. Permata Informatika, “ANALISIS SENTIMEN MEDIA SOSIAL: MENGURAI OPINI PUBLIK DENGAN DATA,” 2024. Accessed: Jan. 10, 2025. [Online]. Available: Teknologipintar.org
N. Naw, “Twitter Sentiment Analysis Using Support Vector Machine and K-NN Classifiers,” International Journal of Scientific and Research Publications (IJSRP), vol. 8, no. 10, Oct. 2018, doi: 10.29322/IJSRP.8.10.2018.p8252.
Dhina Nur Fitriana and Yuliant Sibaroni, “Sentiment Analysis on KAI Twitter Post Using Multiclass Support Vector Machine (SVM),” Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 4, no. 5, pp. 846–853, Oct. 2020, doi: 10.29207/resti.v4i5.2231.
A. Deviyanto and M. D. R. Wahyudi, “PENERAPAN ANALISIS SENTIMEN PADA PENGGUNA TWITTER MENGGUNAKAN METODE K-NEAREST NEIGHBOR,” JISKA (Jurnal Informatika Sunan Kalijaga), vol. 3, no. 1, p. 1, Dec. 2018, doi: 10.14421/jiska.2018.31-01.
P. Verma, T. Bhardwaj, A. Bhatia, and M. Mursleen, “Sentiment Analysis ‘Using SVM, KNN and SVM with PCA,’” in Artificial Intelligence in Cyber Security: Theories and Applications, vol. 240, Springer, Cham, 2023. doi: 10.1007/978-3-031-28581-3_5.
V. A. Retnowati and V. Purwayoga, “Analisis Sentimen Twitter Tentang Isu Resesi 2023: Studi Komparatif Pendekatan Machine Learning Twitter Sentiment Analysis of Recession 2023: A Comparative Study of Machine Learning Approaches,” vol. 11, p. 1, 2024, doi: 10.25124/jrsi.v11i01.612.
M. D. H. Jasy, S. Al Hasan, M. I. K. Sagor, A. Noman, and J. M. Ji, “A Performance Evaluation of Sentiment Classification Applying SVM, KNN, and Naive Bayes,” in 2021 International Conference on Computing, Networking, Telecommunications & Engineering Sciences Applications (CoNTESA), IEEE, Dec. 2021, pp. 56–60. doi: 10.1109/CoNTESA52813.2021.9657115.
E. K. Nararto, S. D. Budiwati, and S. K. Sari, “Opinion Classification on MSME Social Media Comments using Support Vector Machine and Random Forest Models,” in 2024 4th International Conference of Science and Information Technology in Smart Administration (ICSINTESA), IEEE, Jul. 2024, pp. 165–170. doi: 10.1109/ICSINTESA62455.2024.10748163.
M. D. H. Jasy, S. Al Hasan, M. I. K. Sagor, A. Noman, and J. M. Ji, “A Performance Evaluation of Sentiment Classification Applying SVM, KNN, and Naive Bayes,” in 2021 International Conference on Computing, Networking, Telecommunications & Engineering Sciences Applications (CoNTESA), IEEE, Dec. 2021, pp. 56–60. doi: 10.1109/CoNTESA52813.2021.9657115.
D. Mustikasari, I. Widaningrum, R. Arifin, W. Henggal, and E. Putri, “Comparison of Effectiveness of Stemming Algorithms in Indonesian Documents,” 2021. [Online]. Available: http://tiny.cc/rootwords.
B. Wijaya Rauf, “Sentimen Analisis Pertambangan Di Konawe Utara Dengan Metode Naïve Bayes,” 2023. [Online]. Available: https://t.co/fSdh2dCADm
N. Istiqomah and F. Novika, “Sentiment Analysis Penyedia layanan Asuransi dari Media Sosial Twitter,” Jurnal Tekno Kompak, vol. 18, no. 1, p. 77, Feb. 2024, doi: 10.33365/jtk.v18i1.3465.
R. Sanjaya, E. Tohidi, E. Wahyudi, and K. Kaslani, “ANALISIS SENTIMEN TERHADAP BERHENTINYA TIKTOKSHOP PADA MEDIA SOSIAL TWITTER MENGGUNAKAN ALGORITMA NAÏVE BAYES,” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 8, no. 1, pp. 507–514, Feb. 2024, doi: 10.36040/jati.v8i1.8443.
F. Syahro and N. Fitriani, “PERBANDINGAN PERFORMA MODEL MACHINE LEARNING SUPPORT VECTOR MACHINE, NEURAL NETWORK, DAN K-NEAREST NEIGHBORS DALAM PREDIKSI HARGA SAHAM,” Jar’s, vol. 2, no. 1, p. 13, [Online]. Available: https://www.ejournalwiraraja.com/index.php/JARS
J. Ravi and S. Kulkarni, “Text embedding techniques for efficient clustering of twitter data,” Evol Intell, vol. 16, no. 5, pp. 1667–1677, Oct. 2023, doi: 10.1007/s12065-023-00825-3.
P. A. Octaviani, Y. Wilandari, and D. Ispriyanti, “PENERAPAN METODE KLASIFIKASI SUPPORT VECTOR MACHINE (SVM) PADA DATA AKREDITASI SEKOLAH DASAR (SD) DI KABUPATEN MAGELANG,” vol. 3, no. 4, pp. 811–820, 2014, [Online]. Available: http://ejournal-s1.undip.ac.id/index.php/gaussian
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Sentiment Analysis of Digitalization of Small and Medium Enterprise on Social Media X Using SVM and KNN Methods
Pages: 2815-2823
Copyright (c) 2025 Muhammad Dzakiyuddin Haidar, Kemas Muslim Lhaksmana

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).





















