JITCoS : Journal of Information Technology and Computer System
Vol. 2 No. 1 (2026): Journal of Information Technology and Computer System

Employee Performance Classification Using K-Nearest Neighbor and Random Forest with Work Behavior Scenario Simulation

Hafiz Aryanda (Universitas Islam Negeri Sumatera Utara)
Alwi Syahputra (Universitas Islam Negeri Sumatera Utara)
Muhammad Farhan (Universitas Islam Negeri Sumatera Utara)
Ade Aulia Dharma (STMIK Kaputama Binjai)



Article Info

Publish Date
30 Jun 2026

Abstract

Employee performance evaluation is a critical aspect of human resource management, directly influencing productivity, promotion decisions, and career development planning. Traditional approaches often fail to capture hidden patterns in complex employee data, making machine learning (ML) a promising solution for more accurate and objective classification. This study aims to model and compare two ML algorithms, K-Nearest Neighbor (KNN) and Random Forest, for employee performance classification, followed by scenario-based simulation using the best-performing model. The research employed a quantitative computational approach with a dataset of 100,000 employee records and 20 features. Preprocessing steps included feature selection, binarization of performance scores, handling class imbalance using Synthetic Minority Over-sampling Technique (SMOTE), and feature engineering to enrich data representation. The dataset was split into 80% training and 20% testing. KNN was first built as a baseline model, then optimized through hyperparameter tuning using GridSearchCV with cross-validation. Random Forest was implemented with 100 decision trees and bootstrap sampling to enhance accuracy and stability. Results show that the tuned KNN model achieved an accuracy of 70.88%, improving from 63.85% baseline. However, Random Forest outperformed KNN significantly, reaching 97.17% accuracy with lower error rates. Scenario simulations using Random Forest demonstrated practical applicability in predicting employee performance based on work behavior profiles. In conclusion, Random Forest provides a more robust and reliable model for employee performance classification compared to KNN. The study contributes by integrating algorithm comparison with simulation design, offering actionable insights for human resource decision-making. Future research may explore additional ensemble methods and real-time evaluation frameworks.

Copyrights © 2026






Journal Info

Abbrev

jitcos

Publisher

Subject

Computer Science & IT Control & Systems Engineering

Description

JITCoS: Journal of Information Technology and Computer System is a peer-reviewed scholarly journal that aims to advance the theory and practice of information technology and computer systems. The journal seeks high-quality contributions from researchers, academics, and industry professionals that ...