Performance Analysis of Decision Tree Algorithms in Predicting Library Circulation Delays: A Case Study on Data Leakage and Imbalanced Datasets
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.
Downloads
Copyright (c) 2026 Daffa Ghifar Syauqi Eka Saputra, Shofa An Amta Al Mubaroq, Muhammad Zaki Wiryawan, Setiawan Setiawan, Utari Inayatu Zahrah, Putri Hajar Syalsabilah, Mohammad Yanuar Rizky, Amellia Novitasari

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.




.png)
