Journal
Implementation of the Term Frequency-Inverse Document Frequency Method for Mental Health Classification Using Algorithm Support Vector Machine
Recursive Journal of Informatics · Vol. 3 No. 2 (2025) · pp. 93–98
- ISSN
- 2986-6588, 2963-5551
- Published
- 2025-10-17
- Publisher
- Universitas Negeri Semarang
- Language
- eng
Abstract
Abstract. Mental health is a person's emotional, social and psychological condition. A person's mental health level can be influenced by emotional experiences, behavior, environment and family educational background. A person's psychological well-being can be influenced by a person's behavior, where they live, the education they receive, and their emotional experiences. It is important not to underestimate the existence of mental health disorders because the number of cases is currently increasing. Purpose: Using SVM algorithm and TF-IDF method can produce good accuracy for classification text. Therefore this research aims to determine the implementation of the use of the TF-IDF method and the SVM algorithm in mental health classification and to determine the accuracy results of using these methods. Study Method/Design/Approach: The methods used in the research this for the mental health classification is Term Frequency-Inverse Document Frequency used in the vectorization process to convert text into a numerical representation, as well as using the Support Vector Machine algorithm in modeling. The dataset used is the Mental Health Corpus dataset obtained from the Kaggle website. This dataset consists of two classes containing text and labels totaling 27,977 data. Before applying the model, preprocessing is carried out first, namely cleaning the text using stopword removal and stemming. After cleaning the text, the next process is vectorization using CountVectorizer and TF-IDF. Results/Findings: In this study the SVM algorithm was used four kernels, namely the linear kernel, the RBF kernel, the polynomial kernel, and the later sigmoid kernel get the best accuracy results on the RBF kernel if compared to with other kernels. Accuracy results obtained _ of 92.62%, value precision of 92.64%, value recall 92.62%, and value f1-score 92.62%. Novelty/Originality/Value: So, it can be concluded that the application of the SVM algorithm and the TF-IDF method is possible used for classification mental health results mark high accuracy.
Keywords
Collaboration network of the authors
40 authors · 103 co-authorship links · 19 across different organisations · showing the 40 most connected
Hover or tap a name to highlight its co-authors. Double-click to open the author's page.
- State University of Semarang
- Institut Teknologi Kalimantan
- Tun Hussein Onn University of Malaysia
- Universitas PGRI Palembang
- Affiliation unknown
- Different organisations
- Same organisation
- Affiliation unknown
- Thicker line = more joint articles · bigger circle = more articles
Show as table
| Co-author | Organisation | Joint articles |
|---|---|---|
| Endang Sugiharti | State University of Semarang | 5 |
| Florentina Yuni Arini | State University of Semarang | 3 |
| Rochmad Rochmad | Affiliation unknown | 3 |
| Amin Suyitno | Affiliation unknown | 3 |
| Alamsyah Alamsyah | Institut Teknologi Kalimantan | 2 |
| Anggyi Trisnawan Putra | Affiliation unknown | 2 |
| Novanka Agnes Sekartaji | Affiliation unknown | 2 |
| Irfan Fajar Muttaqin | Affiliation unknown | 2 |
| Ramadhan Ridho Arrohman | Affiliation unknown | 2 |
| Dwijanto Dwijanto | Affiliation unknown | 2 |
| Putriaji Hendikawati | Affiliation unknown | 2 |
| Mashuri Mashuri | Affiliation unknown | 2 |
| Budi Prasetiyo | State University of Semarang | 1 |
| Much Aziz Muslim | Tun Hussein Onn University of Malaysia | 1 |
| Jumanto Jumanto | State University of Semarang | 1 |
| Rofik Rofik | State University of Semarang | 1 |
| Arif Widiyatmoko | State University of Semarang | 1 |
| Stephani Diah Pamelasari | State University of Semarang | 1 |
| Arka Yanitama | State University of Semarang | 1 |
| Melissa Salma Darmawan | State University of Semarang | 1 |
| Aji Saputra | Universitas PGRI Palembang | 1 |
| Desy Fitria Astutianingtyas | Affiliation unknown | 1 |
| Syafa Nabilah Syahputra | Affiliation unknown | 1 |
| Athoillah Athoillah | Affiliation unknown | 1 |
| Kholiq Budiman | Affiliation unknown | 1 |
| zaenal abidin | Affiliation unknown | 1 |
| Anggoro Sakti Anindhito | Affiliation unknown | 1 |
| Fajar Sujito | Affiliation unknown | 1 |
| Anita Wahyu Melinda | Affiliation unknown | 1 |
| Isa Akhlis | State University of Semarang | 1 |
| Achmad Wahyu Hidayat | Affiliation unknown | 1 |
| Dian Rahman Syahputra | Affiliation unknown | 1 |
| Safit Firmansyah | Affiliation unknown | 1 |
| Anggil Agusta | Affiliation unknown | 1 |
| Fachrizal Ahdy Andoyo | Affiliation unknown | 1 |
| Margareta Ayu Riantik | Affiliation unknown | 1 |
| Dandi Indra Wijaya | Affiliation unknown | 1 |
| Hanif Nur Cahyani | Affiliation unknown | 1 |
Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.