Application of Natural Language Processing and LSTM in A Travel Chatbot for Medan City

Authors

  • Syarifah Atika Universitas Prima Indonesia, Indonesia
  • Mahara Bengi Universitas Sumatera Utara, Indonesia
  • Shekainah Kim A. Sardeng , Don Mariano Marcos Memorial State University, Philippines

DOI:

https://doi.org/10.31961/eltikom.v9i1.1481

Keywords:

Travel Chatbot, Artificial Intelligence, Natural Language Processing, Long Short Term Memory

Abstract

The tourism sector plays a vital role in economic growth and regional development. Medan, a major city in North Sumatra, offers rich religious, historical, and cultural attractions. However, fragmented and inconsistent information presents challenges for both tourists and destination managers, often complicating travel planning. To address this issue, this study proposes the development of an AI-based chatbot aimed at enhancing the tourism experience in Medan. By integrating Natural Language Processing (NLP) and Long Short-Term Memory (LSTM), the chatbot is designed to deliver accurate, contextual, and conversational responses tailored to users' tourism-related queries. It was trained on a comprehensive dataset compiled from various sources concerning Medan’s tourism. The training ran over 100 epochs, achieving an accuracy of 84.31% and a loss of 0.7594. Validation testing yielded an accuracy of 77.14% and a loss of 2.4233, indicating good generalization to unseen data. End-to-end testing with 312 queries covering all defined intents resulted in a testing accuracy of 75.64%, confirming the model’s practical effectiveness. The findings demonstrate that the chatbot can accurately interpret user input, classify information, and enhance user interaction. supports the digital transformation of Medan’s tourism sector by introducing a reliable, AI-driven tool for seamless travel planning and engagement.

Downloads

Download data is not yet available.

References

M. E. Putri, “Peran Sektor Pariwisata Terhadap Ppendapatan Asli Daerah (Studi Kasus Kabupaten/Kota Provinsi Sulawesi Selatan),” Mar. 2020.

L. Laranjo et al., “Conversational agents in healthcare: a systematic review,” Journal of the American Medical Informatics Associa-tion, vol. 25, no. 9, pp. 1248–1258, Sep. 2018, doi: 10.1093/jamia/ocy072.

M.-H. Su, C.-H. Wu, K.-Y. Huang, Q.-B. Hong, and H.-M. Wang, “A chatbot using LSTM-based multi-layer embedding for elderly care,” in 2017 International Conference on Orange Technologies (ICOT), IEEE, Dec. 2017, pp. 70–74. doi: 10.1109/ICOT.2017.8336091.

D. Calvaresi, A. Ibrahim, J.-P. Calbimonte, R. Schegg, E. Fragniere, and M. Schumacher, “The Evolution of Chatbots in Tourism: A Systematic Literature Review,” in Information and Communication Technologies in Tourism 2021, Cham: Springer International Pub-lishing, 2021, pp. 3–16. doi: 10.1007/978-3-030-65785-7_1.

P. Anki, A. Bustamam, H. S. Al-Ash, and D. Sarwinda, “Intelligent Chatbot Adapted from Question and Answer System Using RNN-LSTM Model,” J Phys Conf Ser, vol. 1844, no. 1, p. 012001, Mar. 2021, doi: 10.1088/1742-6596/1844/1/012001.

E. Kasthuri and S. Balaji, “A Chatbot for Changing Lifestyle in Education,” in 2021 Third International Conference on Intelligent Communication Technologies and Virtual Mobile Networks (ICICV), IEEE, Feb. 2021, pp. 1317–1322. doi: 10.1109/ICICV50876.2021.9388633.

E. Adamopoulou and L. Moussiades, “Chatbots: History, technology, and applications,” Machine Learning with Applications, vol. 2, p. 100006, Dec. 2020, doi: 10.1016/j.mlwa.2020.100006.

O. Zahour, “Towards a Chatbot for educational and vocational guidance in Morocco: Chatbot E-Orientation,” International Journal of Advanced Trends in Computer Science and Engineering, vol. 9, no. 2, pp. 2479–2487, Apr. 2020, doi: 10.30534/ijatcse/2020/237922020.

C. Bulla, “A Review of AI Based Medical Assistant Chatbot,” 2020, doi: 10.5281/zenodo.3902215.

A. Alnefaie, S. Singh, B. Kocaballi, and M. Prasad, “An Overview of Conversational Agent: Applications, Challenges and Future Direc-tions,” in Proceedings of the 17th International Conference on Web Information Systems and Technologies, SCITEPRESS - Science and Technology Publications, 2021, pp. 388–396. doi: 10.5220/0010708600003058.

T. A. Baha, M. El Hajji, Y. Es-Saady, and H. Fadili, “Towards highly adaptive Edu-Chatbot,” Procedia Comput Sci, vol. 198, pp. 397–403, 2022, doi: 10.1016/j.procs.2021.12.260.

E. Adamopoulou and L. Moussiades, “An Overview of Chatbot Technology,” 2020, pp. 373–383. doi: 10.1007/978-3-030-49186-4_31.

S. A. Thorat and V. Jadhav, “A Review on Implementation Issues of Rule-based Chatbot Systems,” SSRN Electronic Journal, 2020, doi: 10.2139/ssrn.3567047.

A. S. Lokman and M. A. Ameedeen, “Modern Chatbot Systems: A Technical Review,” 2019, pp. 1012–1023. doi: 10.1007/978-3-030-02683-7_75.

R. Alotaibi, A. Ali, H. Alharthi, and R. Almehamdi, “AI Chatbot for Tourist Recommendations: A Case Study in the City of Jeddah, Saudi Arabia,” International Journal of Interactive Mobile Technologies (iJIM), vol. 14, no. 19, p. 18, Nov. 2020, doi: 10.3991/ijim.v14i19.17201.

O. Toporkov and R. Agerri, “On the Role of Morphological Information for Contextual Lemmatization,” Feb. 2023, [Online]. Availa-ble: http://arxiv.org/abs/2302.00407

H. van Halteren, Ed., Syntactic Wordclass Tagging. Dordrecht: Kluwer Academic Publishers, 1999.

C. W. Schmidt, V. Reddy, H. Zhang, A. Alameddine, O. Uzan, Y. Pinter, and C. Tanner, "Tokenization Is More Than Compression," Proc. 2024 Conf. Empirical Methods in Natural Language Processing, pp. 678–702, Nov. 2024.

Y. Dang, Y. Liu, E. Yang, G. Guo, L. Jiang, X. Wang, and J. Zhao, "Repeated Padding for Sequential Recommendation," Proc. 18th ACM Conf. Recommender Syst. (RecSys ’24), pp. 1–11, Oct. 2024, Bari, Italy. [Online]. Available: https://github.com/KingGugu/RepPad.

L. Benaddi, H. Boulaknadel, and Y. A. Bassir, “Seq2Seq Model-Based Chatbot with LSTM and Attention Mechanism for Enhanced User Interaction,” arXiv preprint arXiv:2501.00049, Jan. 2024. [Online]. Available: https://arxiv.org/abs/2501.00049

S. Mustakim, “An Intelligent Chatbot for Faculty Administration Using Bidirectional LSTM and Seq2Seq Architecture,” in Proc. 2024 Int. Conf. on Artificial Intelligence and Education, 2024. [Online]. Available: https://dl.acm.org/doi/abs/10.1145/3604281

Y. Wang and X. Zhang, “A Task-oriented Chatbot Based on LSTM and Reinforcement Learning,” in Proc. 2022 ACM Int. Conf. on Intelligent Computing and Human-Computer Interaction, 2022. [Online]. Available: https://dl.acm.org/doi/abs/10.1145/3529649

R. Kumar, A. Pandey, P. Verma, and S. Srivastava, “Development of Medical Chatbots Using Aho-Corasick and Siamese LSTM Net-works,” in Lecture Notes in Networks and Systems, vol. 707, pp. 245–254, 2023. [Online]. Available: https://link.springer.com/chapter/10.1007/978-981-97-8526-1_23

J. Smith and H. Lee, “MarkBot – A Language Model-Driven Chatbot for Interactive Marketing,” J. Business Analytics, vol. 4, no. 2, pp. 67–80, 2021. [Online]. Available: https://doi.org/10.1007/s10796-021-10184-y

L. Chen, M. Zhao, and F. Tan, “Leveraging RNNs and Transformers for Personalized Mental Health Chatbots,” in Lecture Notes in Computer Science, vol. 14434, pp. 317–329, 2024. [Online]. Available: https://link.springer.com/chapter/10.1007/978-981-97-8526-1_30

Downloads

Published

29-06-2025

How to Cite

[1]
Atika, S. et al. 2025. Application of Natural Language Processing and LSTM in A Travel Chatbot for Medan City. Jurnal ELTIKOM : Jurnal Teknik Elektro, Teknologi Informasi dan Komputer. 9, 1 (Jun. 2025), 69–77. DOI:https://doi.org/10.31961/eltikom.v9i1.1481.

Issue

Section

Articles