Jurnal Media Computer Science
Vol 5 No 4 (2026): Oktober

Performance Analysis of Decision Tree Algorithms in Predicting Library Circulation Delays: A Case Study on Data Leakage and Imbalanced Datasets

Daffa Ghifar Syauqi Eka Saputra (Universitas Negeri Malang)
Shofa An Amta Al Mubaroq (Universitas Negeri Malang)
Muhammad Zaki Wiryawan (Universitas Negeri Malang)
Setiawan Setiawan (Universitas Negeri Malang)
Utari Inayatu Zahrah (Universitas Negeri Malang)
Putri Hajar Syalsabilah (Universitas Negeri Malang)
Mohammad Yanuar Rizky (Universitas Negeri Malang)
Amellia Novitasari (Universitas Negeri Malang)



Article Info

Publish Date
31 Oct 2026

Abstract

This study critically analyzes the performance of the Decision Tree algorithm in predicting late book returns in a library circulation system, focusing on the identification of data leakage and imbalanced dataset issues that are commonly overlooked in naive model evaluations. The dataset comprises 1,249 borrowing transactions with a highly skewed class distribution: 1,219 on-time returns (97.60%) and 30 late returns (2.40%). Decision Tree models were trained using DecisionTreeClassifier with the Gini Index criterion under three data-splitting scenarios: 80:20, 70:30, and 60:40. Although test accuracy appeared high — 100% for the 80:20 and 70:30 splits and 99.80% for the 60:40 split — feature importance analysis revealed that the model's entire classification logic depends solely on the Member_ID feature (importance score = 1.0000), a unique identifier devoid of generalizable predictive value. Decision tree visualization confirms that the resulting two-level structure uses only Member_ID thresholds, ignoring all temporal and categorical features entirely. This study concludes that high accuracy alone does not indicate true generalization capability, and emphasizes the critical need for proper feature selection, class imbalance handling (e.g., SMOTE), and multidimensional evaluation metrics (F1-score, AUC-ROC) as minimum standards in machine learning-based predictive model development.

Copyrights © 2026






Journal Info

Abbrev

jmcs

Publisher

Subject

Computer Science & IT

Description

Jurnal Media Computer Science merupakan jurnal nasional yang diterbitkan oleh Universitas Dehasen Bengkulu sejak tahun 2022. Jurnal Media Computer Science memuat artikel hasil-hasil penelitian di bidang Komputer, Sistem Informasi dan Teknologi. Jurnal Media Computer Science berkomitmen untuk menjadi ...