用LSTM与注意力机制构建自研聊天机器人,提升旅游领域交互体验
Seq2Seq Model-Based Chatbot with LSTM and Attention Mechanism for Enhanced User Interaction
- 采用序列到序列架构结合LSTM和注意力机制,无需依赖外部API
- 在摩洛哥德拉塔菲拉莱特旅游数据集上测试,准确率达94.12%
- 适合需要低成本、高定制化聊天机器人的垂直领域应用
聊天机器人是一种通过消息平台以自然语言自动化对话的智能软件应用。借助人工智能(AI),聊天机器人可实现客户服务、信息收集和闲聊等多种功能。现有虚拟助手如ChatGPT和Gemini展示了AI在自然语言处理(NLP)中的潜力,但多数方案依赖预定义API,易导致厂商锁定和高昂成本。为解决该问题,本文提出一种基于序列到序列(Seq2Seq)模型的聊天机器人,采用编码器-解码器架构,融合注意力机制和长短期记忆(LSTM)单元。该方法避免使用预定义API,确保灵活性与成本效益。聊天机器人在摩洛哥德拉塔菲拉莱特地区专门定制的旅游数据集上进行训练、验证和测试。评估结果显示:训练准确率约99.58%,验证准确率98.03%,测试准确率94.12%。这些结果表明,该聊天机器人在旅游领域能生成相关且连贯的回应,凸显专用AI应用在提升细分市场用户体验与满意度方面的潜力。
原文摘要 · Abstract (English)
A chatbot is an intelligent software application that automates conversations and engages users in natural language through messaging platforms. Leveraging artificial intelligence (AI), chatbots serve various functions, including customer service, information gathering, and casual conversation. Existing virtual assistant chatbots, such as ChatGPT and Gemini, demonstrate the potential of AI in Natural Language Processing (NLP). However, many current solutions rely on predefined APIs, which can result in vendor lock-in and high costs. To address these challenges, this work proposes a chatbot developed using a Sequence-to-Sequence (Seq2Seq) model with an encoder-decoder architecture that incorporates attention mechanisms and Long Short-Term Memory (LSTM) cells. By avoiding predefined APIs, this approach ensures flexibility and cost-effectiveness. The chatbot is trained, validated, and tested on a dataset specifically curated for the tourism sector in Draa-Tafilalet, Morocco. Key evaluation findings indicate that the proposed Seq2Seq model-based chatbot achieved high accuracies: approximately 99.58% in training, 98.03% in validation, and 94.12% in testing. These results demonstrate the chatbot's effectiveness in providing relevant and coherent responses within the tourism domain, highlighting the potential of specialized AI applications to enhance user experience and satisfaction in niche markets.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。