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.
Copyrights © 2026