Sentiment Analysis Optimization Using Ensemble of Multiple SVM Kernel Functions
DOI:
https://doi.org/10.29207/resti.v9i4.6708Keywords:
Ensemble Learning, SMOTE, Kernel Function, Sentiment Analysis, Support Vector MachineAbstract
This research aims to optimize sentiment analysis by leveraging the strengths of multiple Support Vector Machine (SVM) kernels—Linear, RBF, Polynomial, and Sigmoid—through an ensemble learning approach. This study introduces a novel model called SVM Porlis, which integrates these kernels using both hard and soft voting strategies to improve the classification performance on imbalanced datasets. Sentiment classification in this study involves two classes: positive and negative. Tweets related to the controversy over the naturalization of Indonesian national football players were collected using the official X/Twitter API, resulting in a dataset of 2,248 entries. The dataset was notably imbalanced, with significantly more negative samples than positive samples. Data preprocessing included cleaning, labeling, tokenization, stopword removal, stemming, and feature extraction using TF-IDF. To address the class imbalance, the SMOTE technique was applied to synthetically augment the minority class. Each SVM kernel was trained and evaluated individually before being combined into an SVM Porlis model. Evaluation metrics included accuracy, precision, recall, F1-score, and confusion matrix analysis. The results demonstrate that SVM Porlis with soft voting achieved the highest performance, with 98% accuracy, precision, recall, and F1-score, surpassing the performance of individual kernels and other ensemble approaches such as SVM + Chi-Square and SVM + PSO. These findings highlight the effectiveness of combining multiple kernels to capture both linear and non-linear patterns, offering a robust and adaptive solution for sentiment analysis in real-world, imbalanced data scenarios.
Downloads
References
M. K. Anam, M. B. Firdaus, F. Suandi, Lathifah, T. Nasution, and S. Fadly, “Performance Improvement of Machine Learning Algorithm Using Ensemble Method on Text Mining,” in ICFTSS 2024 - International Conference on Future Technologies for Smart Society, Kuala Lumpur: Institute of Electrical and Electronics Engineers Inc., Sep. 2024, pp. 90–95. doi: 10.1109/ICFTSS61109.2024.10691363.
R. Guido, S. Ferrisi, D. Lofaro, and D. Conforti, “An Overview on the Advancements of Support Vector Machine Models in Healthcare Applications: A Review,” Information (Switzerland), vol. 15, no. 4, pp. 1–36, Apr. 2024, doi: 10.3390/info15040235.
A. Zamsuri, S. Defit, and G. W. Nurcahyo, “Development and Comparison of Multiple Emotion Classification Models in Indonesia Text Using Machine Learning,” Journal of Advances in Information Technology, vol. 15, no. 4, pp. 519–531, 2024, doi: 10.12720/jait.15.4.519-531.
N. Amaya-Tejera, M. Gamarra, J. I. Vélez, and E. Zurek, “A distance-based kernel for classification via Support Vector Machines,” Front Artif Intell, vol. 7, pp. 1–15, Feb. 2024, doi: 10.3389/frai.2024.1287875.
J. Nalepa and M. Kawulok, “Selecting training sets for support vector machines: a review,” Artif Intell Rev, vol. 52, no. 2, pp. 857–900, Aug. 2019, doi: 10.1007/s10462-017-9611-1.
M. A. Sembiring, H. Saputra, R. A. Yusda, S. Sutarman, and E. B. Nababan, “Performance of Robust Support Vector Machine Classification Model on Balanced, Imbalanced and Outliers Datasets,” JITK (Jurnal Ilmu Pengetahuan dan Teknologi Komputer), vol. 10, no. 1, pp. 208–215, Aug. 2024, doi: 10.33480/jitk.v10i1.5272.
W. Sholihah and A. Silvia Handayani, “Revolutionizing Healthcare: Comprehensive Evaluation and Optimization of SVM Kernels for Precise General Health Diagnosis,” Scientific Journal of Informatics, vol. 10, no. 4, pp. 445–454, 2023, doi: 10.15294/sji.v10i4.46430.
R. A. Sulthana, A. K. Jaithunbi, H. Harikrishnan, and V. Varadarajan, “Sentiment Analysis on Movie Reviews Dataset Using Support Vector Machines and Ensemble Learning,” International Journal of Information Technology and Web Engineering, vol. 17, no. 1, pp. 1–23, 2022, doi: 10.4018/IJITWE.311428.
M. Khalid, I. Ashraf, A. Mehmood, S. Ullah, M. Ahmad, and G. S. Choi, “GBSVM: Sentiment classification from unstructured reviews using ensemble classifier,” Applied Sciences (Switzerland), vol. 10, no. 8, Apr. 2020, doi: 10.3390/APP10082788.
E. Hokijuliandy, H. Napitupulu, and Firdaniza, “Application of SVM and Chi-Square Feature Selection for Sentiment Analysis of Indonesia’s National Health Insurance Mobile Application,” Mathematics, vol. 11, no. 17, pp. 1–21, Sep. 2023, doi: 10.3390/math11173765.
V. KP, R. AB, G. HL, V. Ravi, and M. Krichen, “A tweet sentiment classification approach using an ensemble classifier,” International Journal of Cognitive Computing in Engineering, vol. 5, pp. 170–177, Jan. 2024, doi: 10.1016/j.ijcce.2024.04.001.
M. Liebenlito, N. Inayah, E. Choerunnisa, T. E. Sutanto, and S. Inna, “Active Learning on Indonesian Twitter Sentiment Analysis Using Uncertainty Sampling,” Journal of Applied Data Sciences, vol. 5, no. 1, pp. 114–121, Jan. 2024, doi: 10.47738/jads.v5i1.144.
N. Mardiah, L. Marlina, K. Khairul, Z. Sitorus, and M. Iqbal, “Analysis Of Indonesian People’s Sentiment Towards 2024 Presidential Candidates On Social Media Using Naïve Bayes Classifier and Support Vector Machine,” Building of Informatics, Technology and Science (BITS), vol. 6, no. 2, pp. 950–960, Sep. 2024, doi: 10.47065/bits.v6i2.5766.
I. G. B. A. Budaya and I. K. P. Suniantara, “Comparison of Sentiment Analysis Algorithms with SMOTE Oversampling and TF-IDF Implementation on Google Reviews for Public Health Centers,” MALCOM: Indonesian Journal of Machine Learning and Computer Science, vol. 4, no. 3, pp. 1077–1086, Jul. 2024, doi: 10.57152/malcom.v4i3.1459.
N. Saha, A. K. Show, P. Das, and S. Nanda, “Performance comparison of different kernel tricks based on SVM approach for parkinson’s disease detection,” in 2021 2nd International Conference for Emerging Technology, INCET 2021, Institute of Electrical and Electronics Engineers Inc., May 2021, pp. 1–4. doi: 10.1109/INCET51464.2021.9456233.
X. Ding, J. Liu, F. Yang, and J. Cao, “Random radial basis function kernel-based support vector machine,” J Franklin Inst, vol. 358, no. 18, pp. 10121–10140, Dec. 2021, doi: 10.1016/j.jfranklin.2021.10.005.
S. D. Latif et al., “Improving sea level prediction in coastal areas using machine learning techniques,” Ain Shams Engineering Journal, vol. 15, no. 9, pp. 1–21, Sep. 2024, doi: 10.1016/j.asej.2024.102916.
Z. Abidin, W. Destian, and R. Umer, “Combining support vector machine with radial basis function kernel and information gain for sentiment analysis of movie reviews,” in Journal of Physics: Conference Series, IOP Publishing Ltd, Jun. 2021, pp. 1–5. doi: 10.1088/1742-6596/1918/4/042157.
H. Prasetya, Z. Situmorang, and R. Rosnelly, “SVM Optimization with Kernel Function for Sentiment Analysis on Social Media twitter (X) in AFC U23 Asian Cup Case Study,” in 1st Proceeding of International Conference on Science and Technology UISU (ICST), 2024, pp. 227–233. doi: 10.30743/wjxmmr59.
A. F. Rochim, K. Widyaningrum, and D. Eridani, “Performance Comparison of Support Vector Machine Kernel Functions in Classifying COVID-19 Sentiment,” in International Seminar on Research of Information Technology and Intelligent Systems, Institute of Electrical and Electronics Engineers Inc., 2021, pp. 224–228. doi: 10.1109/ISRITI54043.2021.9702845.
F. M. Rizky, J. Jondri, and K. M. Lhaksmana, “Twitter Sentiment Analysis of Kanjuruhan Disaster using Word2Vec and Support Vector Machine,” Building of Informatics, Technology and Science (BITS), vol. 5, no. 1, pp. 219–227, Jun. 2023, doi: 10.47065/bits.v5i1.3612.
I. S. Al-Mejibli, J. K. Alwan, and D. H. Abd, “The effect of gamma value on support vector machine performance with different kernels,” International Journal of Electrical and Computer Engineering, vol. 10, no. 5, pp. 5497–5506, Oct. 2020, doi: 10.11591/IJECE.V10I5.PP5497-5506.
N. K. M. Budayani, I. Slamet, and S. S. Handajani, “A Comparison of SVM Kernel Functions for Sentiment Analysis of UU TPKS,” Sci Educ (Dordr), vol. 2, pp. 761–765, 2023.
C. B. Tan, M. H. A. Hijazi, and P. N. E. Nohuddin, “A comparison of different support vector machine kernels for artificial speech detection,” Telkomnika (Telecommunication Computing Electronics and Control), vol. 21, no. 1, pp. 97–103, Feb. 2023, doi: 10.12928/TELKOMNIKA.v21i1.24259.
A. Nurkholis, D. Alita, and A. Munandar, “Comparison of Kernel Support Vector Machine Multi-Class in PPKM Sentiment Analysis on Twitter,” Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 6, no. 2, pp. 227–233, Apr. 2022, doi: 10.29207/resti.v6i2.3906.
D. Aryo Anggoro and D. Permatasari, “Performance Comparison of the Kernels of Support Vector Machine Algorithm for Diabetes Mellitus Classification,” Int J Adv Comput Sci Appl, vol. 14, no. 2, p. 2023, 2023, doi: 10.14569/IJACSA.2023.0140226.
M. A. Nanda, K. B. Seminar, D. Nandika, and A. Maddu, “A comparison study of kernel functions in the support vector machine and its application for termite detection,” Information (Switzerland), vol. 9, no. 1, pp. 1–14, Jan. 2018, doi: 10.3390/info9010005.
M. K. Anam et al., “Sara Detection on Social Media Using Deep Learning Algorithm Development,” Journal of Applied Engineering and Technological Science, vol. 6, no. 1, pp. 225–237, Dec. 2024, doi: 10.37385/jaets.v6i1.5390.
fikrimln16, “data-crawling-x-tweetharvest.”
M. K. Anam, S. Defit, Haviluddin, L. Efrizoni, and M. B. Firdaus, “Early Stopping on CNN-LSTM Development to Improve Classification Performance,” Journal of Applied Data Sciences, vol. 5, no. 3, pp. 1175–1188, 2024, doi: 10.47738/jads.v5i3.312.
F. Suandi et al., “Enhancing Sentiment Analysis Performance Using SMOTE and Majority Voting in Machine Learning Algorithms,” in International Conference on Applied Engineering, Atlantis Press, 2024, pp. 126–138. doi: 10.2991/978-94-6463-620-8_10.
Hamdani, Randi N.A, and M. K. Anam, “Comparison of Support Vector Machine and Random Forest Algorithms for Analyzing Online Loans on Twitter social media,” JAIA-Journal Of Artificial Intelligence And Applications, vol. 4, no. 1, pp. 8–16, 2024, doi: 10.33372/jaia.v4i1.1087.
A. N. Ulfah, M. K. Anam, N. Y. S. Munti, S. Yaakub, and M. B. Firdaus, “Sentiment Analysis of the Convict Assimilation Program on Handling Covid-19,” JUITA: Jurnal Informatika, vol. 10, no. 2, pp. 209–216, 2022, doi: 10.30595/juita.v10i2.12308.
P. P. Putra, M. K. Anam, S. Defit, and A. Yunianta, “Enhancing the Decision Tree Algorithm to Improve Performance Across Various Datasets,” INTENSIF: Jurnal Ilmiah Penelitian dan Penerapan Teknologi Sistem Informasi, vol. 8, no. 2, pp. 200–212, Aug. 2024, doi: 10.29407/intensif.v8i2.22280.
M. K. Anam et al., “Enhancing the Performance of Machine Learning Algorithm for Intent Sentiment Analysis on Village Fund Topic,” Journal of Applied Data Sciences, vol. 6, no. 2, pp. 1102–1115, 2025, doi: 10.47738/jads.v6i2.637.
M. K. Anam et al., “Improved Performance of Hybrid GRU-BiLSTM for Detection Emotion on Twitter Dataset,” Journal of Applied Data Sciences, vol. 6, no. 1, pp. 354–365, Jan. 2025, doi: 10.47738/jads.v6i1.459.
M. K. Anam, T. P. Lestari, H. Yenni, T. Nasution, and M. B. Firdaus, “Enhancement of Machine Learning Algorithm in Fine-grained Sentiment Analysis Using the Ensemble,” ECTI Transactions on Computer and Information Technology (ECTI-CIT), vol. 19, no. 2, pp. 159–167, Mar. 2025, doi: 10.37936/ecti-cit.2025192.257815.
M. K. Anam, T. A. Fitri, Agustin, Lusiana, M. B. Firdaus, and A. T. Nurhuda, “Sentiment Analysis for Online Learning using The Lexicon-Based Method and The Support Vector Machine Algorithm,” ILKOM Jurnal Ilmiah, vol. 15, no. 2, pp. 290–302, 2023, doi: 10.33096/ilkom.v15i2.1590.290-302.
V. V., R. A. C, R. Mohammed, S. K. V, and P. S. Kumthekar, “Support Vector Machine Implementation to Separate Linear and Non-Linear Dataset,” Saudi Journal of Engineering and Technology, vol. 8, no. 1, pp. 4–15, Jan. 2023, doi: 10.36348/sjet.2023.v08i01.002.
A. P. Gopi, R. N. S. Jyothi, V. L. Narayana, and K. S. Sandeep, “Classification of tweets data based on polarity using improved RBF kernel of SVM,” International Journal of Information Technology (Singapore), vol. 15, no. 2, pp. 965–980, Feb. 2023, doi: 10.1007/s41870-019-00409-4.
L. Muflikhah, D. Joko Haryanto, A. Andy Soebroto, and E. Santoso, “High Performance of Polynomial Kernel at SVM Algorithm for Sentiment Analysis,” Journal of Information Technology and Computer Science, vol. 3, no. 2, pp. 194–201, 2018, doi: 10.25126/jitecs.20183260.
L. K. Ramasamy, S. Kadry, Y. Nam, and M. N. Meqdad, “Performance analysis of sentiments in Twitter dataset using SVM models,” International Journal of Electrical and Computer Engineering, vol. 11, no. 3, pp. 2275–2284, Jun. 2021, doi: 10.11591/ijece.v11i3.pp2275-2284.
B. L. Supriyatna and F. P. Putri, “Optimized support vector machine for sentiment analysis of game reviews,” International Journal of Informatics and Communication Technology (IJ-ICT), vol. 13, no. 3, p. 344, Dec. 2024, doi: 10.11591/ijict.v13i3.pp344-353.
M. Hidayat and A. Wibowo, “SVM Optimization With Information Gain Feature Selection to Increase the Accuracy of Sentiment Analysis of Increasing The Cost of the Hajj,” Jurnal Teknik Informatika (Jutif), vol. 5, no. 4, pp. 579–591, Aug. 2024, doi: 10.52436/1.jutif.2024.5.4.2217.
Shahmirul Hafizullah Imanuddin, Kusworo Adi, and Rahmat Gernowo, “Sentiment Analysis on Satusehat Application Using Support Vector Machine Method,” Journal of Electronics, Electromedical Engineering, and Medical Informatics, vol. 5, no. 3, pp. 143–149, Jul. 2023, doi: 10.35882/jeemi.v5i3.304.
N. W. Susanto and H. Suparwito, “SVM-PSO Algorithm for Tweet Sentiment Analysis #BesokSenin,” Indonesian Journal of Information Systems (IJIS), vol. 6, no. 1, pp. 36–47, 2023, doi: 10.24002/ijis.v6i1.7551.
M. K. Anam, M. I. Mahendra, W. Agustin, Rahmaddeni, and Nurjayadi, “Framework for Analyzing Netizen Opinions on BPJS Using Sentiment Analysis and Social Network Analysis (SNA),” Intensif, vol. 6, no. 1, pp. 2549–6824, 2022, doi: 10.29407/intensif.v6i1.15870.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi)

This work is licensed under a Creative Commons Attribution 4.0 International License.
Copyright in each article belongs to the author
- The author acknowledges that the RESTI Journal (System Engineering and Information Technology) is the first publisher to publish with a license Creative Commons Attribution 4.0 International License.
- Authors can enter writing separately, arrange the non-exclusive distribution of manuscripts that have been published in this journal into other versions (eg sent to the author's institutional repository, publication in a book, etc.), by acknowledging that the manuscript has been published for the first time in the RESTI (Rekayasa Sistem dan Teknologi Informasi) journal ;




