Perbandingan SVM dan Logistic Regression untuk Klasifikasi Teks Konsultasi Daring Kehamilan dan Menstruasi

Authors

  • Zahra Syifa Prasasti Universitas Budi Luhur
  • Safitri Juanita Universitas Budi Luhur

DOI:

https://doi.org/10.29408/jit.v9i2.35011

Keywords:

feature importance, logistic regression, medical text classification, Support Vector Machines (SVM)

Abstract

The high volume of doctors' response texts in online health consultations, particularly on pregnancy and menstruation topics, has increased the need for an accurate and automated medical text classification system. However, these two topics often share similar medical terminology and consultation contexts, making the classification process challenging. This study aims to develop an automatic classification model for Indonesian-language doctors' responses in online health consultations by comparing two algorithms, namely Support Vector Machine (SVM) and Logistic Regression (LR), which were selected because they are widely used in text classification tasks with TF-IDF feature representation and are capable of handling high-dimensional data. The contributions of this study include the development of a classification model using an underexplored Indonesian doctors' response dataset, feature importance analysis to identify dominant medical terms in each category, and a comparative evaluation of SVM and LR performance validated using McNemar's statistical test. The study utilized the public "Doctor's Answer Text Dataset in Indonesian" from Mendeley Data, comprising 17,807 records. The models were developed using the CRISP-DM framework with TF-IDF feature extraction and evaluated across four train-test split ratios using accuracy, precision, recall, and F1-score metrics. The results showed that Logistic Regression (LR) consistently outperformed Support Vector Machine (SVM), achieving the highest accuracy of 0.9359 with an 80:20 train-test split. Feature importance analysis identified "hamil" (pregnant) and "janin" (fetus) as the dominant features for the pregnancy category, and "menstruasi" (menstruation) and "siklus" (cycle) for the menstruation category. These findings demonstrate that TF-IDF-based LR is an effective approach for classifying Indonesian-language online health consultation texts.

References

[1] A. S. Sitanggang, R. G. Imanuel, N. I. Rapa, W. Shandie, and I. J. Halim, “Telemedicine : Revolusi Akses dan Efisiensi Pelayanan Kesehatan di Era Digital,” Nusant. J. Multidiscip. Sci., vol. 2, no. 1, pp. 12–18, 2024.

[2] P. M. S. Rizqi, M. I. Hannari, S. Dewi, E. Alvionita, A. D. Shafira, and S. H. Purba, “Literatur Review : Transformasi Layanan Kesehatan Melalui Telemedicine : Peluang Dan Tantangan Di Era Digital,” J. Kesehat. Tambusai, vol. 6, no. 1, pp. 699–707, 2025.

[3] D. P. Artiray, Misrawati, and W. P. Suci, “Gambaran Penggunaan Aplikasi Kesehatan Mobile dan Pengetahuan Ibu Hamil tentang Kehamilan,” J. Ners Univ. Pahlawan, vol. 9, no. 1, pp. 1216–1224, 2025.

[4] T. N. Putri, “Peran Aplikasi Mobile Health Dalam Pemantauan Siklus Menstruasi,” J. Innov. Creat., vol. 5, no. 3, pp. 34654–34663, 2025.

[5] E. Winengsih, T. Lubis, K. Khopiati, and N. N. Rahmah, “Deteksi Kesehatan Mental dengan Gangguan Menstruasi Remaja Gen Z,” J. Kesehat. Perintis, vol. 11, no. 2, pp. 159–167, 2025.

[6] N. E. C. Dewi and V. N. Hafifah, “Edukasi eMAMA dalam Meningkatkan Pengetahuan Ibu Hamil terhadap faktor Risiko Kematian Maternal,” Indones. Heal. Sci. J., vol. 5, no. 2, pp. 122–128, 2025.

[7] N. W. A. Prasetya, L. P. Wanti, and R. Purwanto, “Studi Perbandingan Kinerja Support Vector Machine Pada Klasifikasi Diabetes Mellitus Menggunakan Fitur Regular Expression dan Non- Regular Expression,” Infotekmesin, vol. 17, no. 1, pp. 190–198, 2026.

[8] A. Firizkiansah, A. Muhammad, and I. R. Maulana, “Optimasi Klasifikasi Data Teks Menggunakan Algoritma Logistic Regression dengan TF-IDF dan SMOTE,” JIKOMTI J. Ilm. Ilmu Komput. dan Teknol. Inf., vol. 2, no. 1, pp. 29–38, 2025.

[9] G. Ben Abdennour, K. Gasmi, and R. Ejbali, “An Optimal Model for Medical Text Classification Based on Adaptive Genetic Algorithm,” Data Sci. Eng., vol. 9, no. 4, pp. 378–392, 2024.

[10] M. J. Faisti, R. H. Kusumodestoni, and G. W. N. Wibowo, “Mental Health Classification Using Naïve Bayes and Random Forest Algorithms,” J. Appl. Informatics Comput., vol. 9, no. 4, pp. 1740–1750, 2025.

[11] A. G. S. Moeslim, E. Firmansyah, and B. Sutara, “Perbandingan Kinerja XGBoost dan IndoBERT untuk Klasifikasi Teks Kesehatan Bahasa Indonesia,” Data Sci. Indones., vol. 5, no. 2, pp. 62–72, 2025.

[12] S. A. Ramadani, H. Hamrul, and N. Arifin, “Analisis Pengaruh Random Search Pada Logistic Regression dan Support Vector Machine Dalam Klasifikasi Sentimen Aplikasi PDAM Info,” J. SKANIKA Sist. Komput. dan Tek. Inform., vol. 9, no. 1, pp. 61–75, 2026.

[13] D. Sofia and P. Sekarpuji, “Penerapan Metode Stacking Ensemble Untuk Analisis Sentimen Pada Ulasan Aplikasi RuangGuru,” Idealis Indones. J. Inf. Syst., vol. 8, no. 2, pp. 248–257, 2025.

[14] S. Juanita, D. Purwitasari, I. K. E. Purnama, A. F. Abdillah, and M. H. Purnomo, “Multi-Label Classification for Doctor’s Behavioral Pattern Matching During Online Medical Interview using Machine Learning,” Int. J. Electr. Eng. Informatics, vol. 15, no. 3, pp. 435–452, 2023.

[15] S. Juanita, D. Purwitasari, I. K. E. Purnama, and M. Purnomo, “Doctor’s Answer Text Dataset in Indonesian Contains Information on Medical Interview Patterns,” 2023..

[16] L. Zhang, “Features Extraction Based on Naive Bayes Algorithm and TF-IDF for News Classification,” PLoS One, vol. 20, no. 7, pp. 1–17, 2025.

[17] O. Rainio, J. Teuho, and R. Klén, “Evaluation Metrics and Statistical Tests for Machine Learning,” Sci. Rep., vol. 14, no. 6068, pp. 1–14, 2024

Downloads

Published

21-07-2026

How to Cite

Prasasti, Z. S., & Juanita, S. (2026). Perbandingan SVM dan Logistic Regression untuk Klasifikasi Teks Konsultasi Daring Kehamilan dan Menstruasi. Infotek: Jurnal Informatika Dan Teknologi, 9(2), 651–662. https://doi.org/10.29408/jit.v9i2.35011

Similar Articles

<< < 3 4 5 6 7 8 9 10 11 12 > >> 

You may also start an advanced similarity search for this article.