Claim Missing Document
Check
Articles

Found 2 Documents
Search
Journal : Journal of Advanced Computer Knowledge and Algorithms

Applying TF-IDF and K-NN for Clickbait Detection in Indonesian Online News Headlines Afif, Muhammad Athallah; Ula, Munirul; Rosnita, Lidya; Rizal, Rizal
Journal of Advanced Computer Knowledge and Algorithms Vol 1, No 2 (2024): Journal of Advanced Computer Knowledge and Algorithms - April 2024
Publisher : Department of Informatics, Universitas Malikussaleh

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.29103/jacka.v1i2.15810

Abstract

This research explores the application of TF-IDF (Term Frequency-Inverse Document Frequency) and K-Nearest Neighbor (K-NN) in constructing a clickbait detection system for Indonesian online news headlines. The TF-IDF method is employed to ascertain the significance of words in news headlines, utilizing a tokenization process to generate numeric representations. The TF-IDF matrix serves as features in the K-NN classification model, with k=1 determining the most similar class. Model evaluation yields outstanding results, achieving accuracy, precision, recall, and F1-Score all reaching 1.0. The confusion matrix unveils no misclassifications, affirming the model's adeptness in correctly classifying all samples.
Classification of Hospital Stay Duration for Schizophrenia Patients at RSUD Muyang Kute Using a Combination of C4.5 and Particle Swarm Optimization Putri Agustina Dewi; Munirul Ula; Said Fadlan Anshari
Journal of Advanced Computer Knowledge and Algorithms Vol. 3 No. 2 (2026): Journal of Advanced Computer Knowledge and Algorithms - April 2026 (In Press)
Publisher : Department of Informatics, Universitas Malikussaleh

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.29103/jacka.v3i2.25930

Abstract

Schizophrenia is a chronic mental disorder that often requires inpatient care, so an increase in the number of patients can lead to limited bed capacity in psychiatric wards. This study aims to classify the length of hospital stay for schizophrenia patients to support room requirement planning at RSUD Muyang Kute using the C4.5 algorithm optimized with Particle Swarm Optimization (PSO). The dataset consists of 657 medical records of inpatient schizophrenia cases from February 2023 to March 2025, categorized into three length-of-stay classes: short (1–5 days), medium (6–10 days), and long (>10 days). The C4.5 algorithm is used to construct a decision tree model based on historical data, while PSO is employed as an optimization method to improve the model configuration. The evaluation uses classification accuracy and Mean Absolute Percentage Error (MAPE) for room demand estimation. The results show that both the C4.5 and C4.5–PSO models achieve similarly high accuracy on the test data, while the manual MAPE calculation for room demand estimation yields a value of 52.66%. In contrast, the MAPE calculated by the system is 0.00% in the test scenario because all classes in the test data are correctly predicted. The web-based decision support system developed using Python and Streamlit is able to automatically provide predictions of length of stay and estimates of the required number of psychiatric beds at RSUD Muyang Kute.