Skip to content
Open access

Pengembangan Model Klasifikasi Code Smells Pada Backend Python Menggunakan Algoritma Random Forest (Studi Kasus Proyek Open Source Github)

Aug 2026 · JURNAL FASILKOM · Vol 16, pp. 445-455 · 0 citations · 13 references

TL;DR

This research provides an automated quality assurance system for developers to detect code refactoring opportunities at an early stage using the Random Forest ensemble algorithm integrated with the Synthetic Minority Over-sampling Technique for class balancing.

Abstract

Deadline pressure in software development often drives coding shortcuts, leading to internal quality degradation known as code smells. These structural anomalies contribute to technical debt accumulation and complicate system maintenance over time. This study develops an automated classification model to detect code smell contamination in the Python backend ecosystem. The methodology uses the Random Forest ensemble algorithm integrated with the Synthetic Minority Over-sampling Technique (SMOTE) for class balancing. Data mining on GitHub with high-reputation criteria extracted 137,728 code samples from 7 large-scale repositories using the Radon multi-metric tool. To simulate human error in real-world scenarios, 5% random noise was inserted into the labeling data. Testing using the confusion matrix shows the proposed model achieves highly stable and balanced performance, with average precision, recall, and f1-score of 0.95 in both macro and weighted averages. Ablation study analysis proves that SMOTE intervention effectively maintains detection consistency in minority class categories. Feature importance ranking identifies the Logical Lines of Code (LLOC) metric as the most crucial indicator with 37.65% influence weight, followed by LOC and Blank metrics. This research provides an automated quality assurance system for developers to detect code refactoring opportunities at an early stage.

Read PDF

Similar papers

Open access Aug 2026

Evaluasi Kritis Random Forest dalam Prediksi Kegagalan CI/CD Pipeline pada Dataset Log Sintetis

Continuous Integration and Continuous Deployment (CI/CD) pipelines are crucial in modern DevOps environments; however, pipeline failures often hinder software delivery. This study aims to implement Machine Learning specifically the Random Forest algorithm to predict the specific stage of failure (Build, Test, or Deploy...

Rizqia Fauziah Rachma, Windu Gata, Farizal Ginanjar et al. · 0 citations
#software testing Open access Sep 2026

Pengembangan Sistem Dokumen Akreditasi Program Studi D4 TRPL Berbasis Website dengan Penerapan BM25 dan Inverted Index

This study develops web-based SIDA TRPL using Waterfall, Laravel 13, SQLite, an in-memory Inverted Index, and BM25, which supports centralized document management, role-based validation, completeness monitoring, and relevance-oriented retrieval.

L. Hakim, M. D. Mulyodiputro, Sirajunnasihin Sirajunnasihin et al. · 0 citations
Open access Sep 2026

Implementasi Prediksi Stunting Menggunakan Algoritma Xgboost dan Smote Berdasarkan Data BKKBN

The management and intervention of stunting cases in toddlers still face major challenges due to the high class imbalance in risk assessment data, where the population of normal toddlers significantly dominates the at-risk class. This condition often causes machine learning classification models to suffer from predicti...

Sabila Wahyu Pratama, Ghufron Ghufron · 0 citations
Open access Aug 2026

Klasifikasi Smartphone Berdasarkan Spesifikasi Menggunakan Decision Tree C4.5 dan Random Forest dengan Hyperparameter Tuning

The rapid growth of smartphone products has produced substantial variation in technical specifications and price segments, making manual grouping increasingly complex. This study identifies the most informative specification using the C4.5 Decision Tree and develops a smartphone price-segment classification model using...

Akbar Ainurrofik, Ilham Saifudin, Rosita Yanuarti · 0 citations
Open access Oct 2026

PENERAPAN ALGORITMA DECISION TREE UNTUK KLASIFIKASI SURAT DALAM PENGARSIPAN DIGITAL (STUDI KASUS: SMPK RATU DAMAI)

The manual filing of letters at SMPK Ratu Damai makes the storage, retrieval, and grouping of letters ineffective and carries the risk of misclassification. This study aims to apply the Decision Tree algorithm to a digital archiving system to automatically classify letters based on archive categories. The research meth...

Petru Lazar, Alfian Nara Weking, Bernadete Deta · 0 citations
Review Open access Sep 2026

Aplicación de Técnicas de Machine Learning para la Predicción Temprana de Defectos en Proyectos de Software

The results show that ensemble learning models and deep architectures achieve superior predictive capacity, particularly in scenarios with high dimensionality and class imbalance, and confirm the strategic value of Machine Learning as a systematic tool for contemporary software engineering.

María Teodolinda Ortega Ovalle · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.