IT For Society : Journal of Information Technology
Vol 9, No 2 (2024)

Chatbot for Mental Health Using Tf-Idf and SVM

Rahadiyan, Deffa (Unknown)
Sudrajat, Muhammad (Unknown)
Nugraha, Bagja Satya (Unknown)
Royan, Neil (Unknown)
Alifah, Nurli (Unknown)
Adityo, Vincentius (Unknown)
Al-Latief, Panji Maulana (Unknown)
Humami, Miqdam (Unknown)



Article Info

Publish Date
18 Jul 2025

Abstract

This research aims to develop a chatbot for mental health by using the term frequency-inverse frequency (Tf-Idf) technique to represent text and support vector machines (SVM) for classification. This chatbot is designed to provide support and information to users seeking help with mental health issues. The dataset used to train the model includes mental health-related conversations, including conversations between mental health professionals and patients, as well as general conversations about mental health. The chatbot interface allows users to input their questions or concerns, which are then processed using Tf-Idf to vectorize the text data. These features are fed into an SVM model for classification, determining the appropriate response type, such as depression, anxiety, or general advice. Chatbot responses are generated based on the classification results, providing relevant information and support to the user. Chatbots are deployed on a platform where users can interact with them, and their performance is evaluated using metrics such as accuracy, precision, gain, and F1 score.

Copyrights © 2024






Journal Info

Abbrev

Itforsociety

Publisher

Subject

Computer Science & IT

Description

IT For Society (ISSN 2503-2224); E-ISSN 2527-595X) is a biannual peer-reviewed journal published by President University. The journal has a scope relevant and related (but not limited) to information technology and information ...