Journal of Software Engineering and Information System (SEIS)
Vol. 5 No. 1 (2025)

OPTIMASI KNN DENGAN PSO UNTUK KLASIFIKASI KASUS HUKUM DI AUSTRALIA MENGGUNAKAN N-GRAM

Karan (Unknown)
M Alidin (Unknown)
Rafi Fadilla (Unknown)



Article Info

Publish Date
15 Mar 2025

Abstract

This study aims to improve the accuracy of legal case classification in Australia by integrating the K-Nearest Neighbors (KNN) algorithm optimized using Particle Swarm Optimization (PSO) and N-Gram-based text representation. The dataset consists of 15,263 legal documents collected from the Federal Court of Australia (FCA) with an 80:20 data split for training and testing. The classification process is carried out by applying TF-IDF weighting and a combination of N-Gram (unigrams, bigrams, trigrams) to enrich the data representation. The PSO optimization results show an optimal K value of 9, with a testing accuracy reaching 96%. The evaluation of the model performance shows a precision value of 0.95, a recall of 0.96, and an F1-Score of 0.94. These results indicate that the combination of KNN, PSO, and N-Gram is able to significantly improve the performance of legal document classification, especially in the Cited case category. However, the weakness of the model in the Not Cited category indicates the need to develop a method to handle data imbalance in order to improve model generalization.

Copyrights © 2025






Journal Info

Abbrev

SEIS

Publisher

Subject

Computer Science & IT Decision Sciences, Operations Research & Management Engineering

Description

Journal of Software Engineering and Information System (SEIS) is a peer-reviewed journal published twice a year (January and August) by the Department of Information System - Faculty of Computer Science, Universitas Muhammadiyah Riau. The scope of the journal is: Artificial Intelligent Business ...