Perancangan Chatbot Layanan Kependudukan Berbasis Hybrid Rule-Based dan NLP dengan Decision Layer
DOI:
https://doi.org/10.70340/jirsi.v5i3.714Keywords:
chatbot, population services, Rule-Based, Natural Language Processing, Decision Layer, TF-IDF, Cosine SimilarityAbstract
Population administration services face a high volume of information requests, yet public access to procedural information at the Population and Civil Registration Office (Disdukcapil) of Medan City remains limited to operating hours and staff availability. This study designs a population service chatbot using a hybrid approach that combines Rule-Based methods and Natural Language Processing (NLP). Its novelty lies in a Decision Layer that routes queries hierarchically: Rule-Based pattern matching, context resolution, NLP classification based on TF-IDF and Cosine Similarity, and a fallback response when confidence falls below a threshold (τ). Intent classification uses a 1-Nearest Neighbor approach on a corpus of 380 utterances across 19 intents. Under forced-choice classification, testing with a confusion matrix yields an accuracy of 60.53%, reflecting the limitations of a lexical approach on short Indonesian-language utterances. Threshold calibration based on the Youden index sets τ = 0.60. Compared to a configuration without the Decision Layer—which forces an answer to every query and thus answers all out-of-scope queries incorrectly—the Decision Layer rejects 80% of out-of-scope queries while admitting 69.74% of valid ones. Further analysis shows that threshold-based filtering does not improve in-scope accuracy; the Decision Layer's contribution therefore lies in controlling out-of-scope queries rather than improving classification accuracy. User acceptance testing with 31 respondents produced an index of 83.92% (Good category). These results show that the Decision Layer is important for controlling information delivery, preventing the system from forcing potentially erroneous answers. This research contributes to adaptive, controlled public information service systems.
Downloads
References
R. S. Anjani and A. Abdal, “Implementasi Kebijakan Sistem Pemerintahan Berbasis Elektronik (SPBE) dalam Mendukung Transformasi Digital Pelayanan Publik di Indonesia,” Indonesian Journal of Multidisciplinary on Social and Technology, vol. 4, no. 2, pp. 2571–2579, Jun. 2026, doi: 10.69693/ijmst.v4i2.10558.
T. B. M. F. Suryana, A. A. Rahmawati, N. S. Ramdanti, and A. N. Safitri, “Transformasi Digital dalam Pelayanan Publik: Tinjauan Yuridis terhadap SPBE di Indonesia,” CONSTITUO : Journal of State and Political Law Research, vol. 4, no. 1, pp. 37–53, Jun. 2025, doi: 10.47498/constituo.v4i1.4944.
E. L. Wargadinata and N. R. P. Tendean, “Amidst the Euphoria of Digitalization Public Services in Municipal Government: Raising Public Acceptance,” Jurnal Bina Praja, vol. 16, no. 2, pp. 335–346, Aug. 2024, doi: 10.21787/jbp.16.2024.335-346.
J. Khatib Sulaiman, M. Abid Nadzif, and U. Stikubank Semarang, “Penggunaan Teknologi Natural Language Processing dalam Sistem Chatbot Untuk Peningkatan Layanan Informasi Administrasi Publik,” Indonesian Journal of Computer Science Attribution, vol. 13, no. 1, pp. 2024–1227.
R. Aulia and A. Purnama, “Development of an Intent-Classification Chatbot to Support Operational Services at Kadin Indonesia,” Brilliance: Research of Artificial Intelligence, vol. 5, no. 2, pp. 1171–1180, Dec. 2025, doi: 10.47709/brilliance.v5i2.7438.
R. D. Safitri1 and D. Casmiwati2, “Policy And Maritime Review 50.”
R. Aulia and A. Purnama, “Development of an Intent-Classification Chatbot to Support Operational Services at Kadin Indonesia,” Brilliance: Research of Artificial Intelligence, vol. 5, no. 2, pp. 1171–1180, Dec. 2025, doi: 10.47709/brilliance.v5i2.7438.
Z. A. Annisa, R. S. Perdana, and P. P. Adikara, “Kombinasi Intent Classification dan Named Entity Recognition pada Data Berbahasa Indonesia dengan Metode Dual Intent and Entity Transformer,” Jurnal Teknologi Informasi dan Ilmu Komputer, vol. 11, no. 5, pp. 1017–1024, Oct. 2024, doi: 10.25126/jtiik.2024117985.
M. Zulkarnain, M. Zulkarnain Lubis, and M. Khaibar Putra Adithia, “Desain dan Implementasi Inovasi Pelayanan Publik Berbasis Website dengan Bantuan AI di Kota Medan,” vol. 4, no. 5, pp. 1232–1242, 2025, [Online]. Available: https://ojs.trigunadharma.ac.id/index.php/jsi
M. Huda, A. M. Kusumaningrum, and G. Aninditiyah, “Pemanfaatan Chatbot Untuk Meningkatkan Layanan Informasi Publik Di Instansi Pemerintah Tingkat Kecamatan,” vol. 15, no. 2, pp. 413–424, 2024, [Online]. Available: http://ejurnal.provisi.ac.id/index.php/JTIKP
M. Akbar Nasution et al., “Implementasi NLP Dalam Pembuatan Chatbot Customer Service Publisher Jurnal Studi Kasus LARISMA,” 2024.
S. Ernawati, I. Maulana, and N. Ruhyana, “Simpatik: Jurnal Sistem Informasi dan Informatika Penerapan Natural Language Processing Pada Model Chatbot Hybrid Untuk Optimasi Pelayanan Open Journal Systems.” [Online]. Available: http://jurnal.bsi.ac.id/index.php/simpatik
W. Bunandi and V. C. Mawardi, “Chatbot Virtual Assistant Help Desk Dengan Metode Aiml,” Jurnal Serina Sains, Teknik dan Kedokteran, vol. 2, no. 1, pp. 51–60, Mar. 2024, doi: 10.24912/jsstk.v2i1.32051.
R. Nur Aziza et al., “Pembangunan Aplikasi dan Klasifikasi Pertanyaan Chatbot Informasi Akademik Menggunakan Metode Cosine Similarity dan Naïve Bayes,” vol. 12, no. 2, doi: 10.33322/kilat.v12i2.1921.
M. T. Hidayat, M. Arifin, and S. Muzid, “Prediction Sentiment Analysis Grab Reviews Using SVM Linear Based Streamlit,” IJCCS (Indonesian Journal of Computing and Cybernetics Systems, vol. 19, no. 2, pp. 189–200, 2025, doi: 10.22146/ijccs.104924.
C. B. Chandrakala, R. Bhardwaj, and C. Pujari, “An intent recognition pipeline for conversational AI,” International Journal of Information Technology (Singapore), vol. 16, no. 2, pp. 731–743, Feb. 2024, doi: 10.1007/s41870-023-01642-8.
A. Fauzan Zaky and C. Indah Ratnasari, “Developing Rule-Based and AI Hybrid Chatbot for Academic Information Services,” International Journal of Informatics and Computation (IJICOM), vol. 7, no. 2, p. 2025, doi: 10.35842/ijicom.
N. Khumairoh and W. Syaihul Huda, “Implementation Of Hybrid Chatbot Based On Dialogflow And Keyword Matching To Improve Website Service Efficiency,” 2025.
L. Grassi, C. T. Recchiuto, and A. Sgorbissa, “Knowledge-Grounded Dialogue Flow Management for Social Robots and Conversational Agents,” Int. J. Soc. Robot., vol. 14, no. 5, pp. 1273–1293, Jul. 2022, doi: 10.1007/s12369-022-00868-z.
D. Kristanto, R. A. Ramadhani, and A. B. Setiawan, “Pengembangan Chatbot Layanan Informasi Kampus Menggunakan TF-IDF,” Jurnal Algoritma, vol. 22, no. 2, pp. 103–115, Nov. 2025, doi: 10.33364/algoritma/v.22-2.2350.
A. Rinaldi, L. Hiryanto, ) Viny, and C. Mawardi, “Jurnal Ilmu Komputer dan Sistem Informasi Penerapan Tf-Idf Dan Cosine Similarity Pada Question And Answering System Terkait Informasi Konsol Dan Game Playstation.”
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Heru Manudin Wibowo Heru, Saidi Ramadan Siregar, Sri Wanti Nasution

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.







