A Provenance-Centric Approach to Code Smell Reduction using Human-in-Loop Approach

Fazlullah Khan, Ryan Alturki, Nabeela Awan, Ateeq ur Rehman

Research output: Chapter in Book/Conference proceedingConference contributionpeer-review

Abstract

Code smells are early warning signs of software development whose detection and timely resolution is essential for long-term software quality. Conventional methods used for detecting smells fail to complete the task because they do not consider the evolution of code over time. To overcome this issue this paper suggests a provenance-driven approach to integrate human-in-the-loop approach in code smell detection. The study begins by collecting provenance data from software version control systems. This data includes history of code changes, decisions and developer feedback. Secondly, the automated tools like PMD and FindBugs are used to detect code smells. The results generated by these tools are reviewed and validated by developers to refine the findings. The process works in form of a feedback loop which bring continuous improvement in the method. The system analyzes the provenance data to understand the context of smells and identify the reason behind smell emergence. Finally, we generate refactoring suggestions based on this analysis. To evaluate the performance the proposed method is compared with SonarQube, Checkstyle, PMD and FindBugs using various metrices. Results show that the proposed approach reduces false positives by 30% and increases the detection of complex smells by 25% boosting software maintainability.

Original languageEnglish
Title of host publicationProceedings - 2025 8th International Conference on Information and Computer Technologies, ICICT 2025
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages27-34
Number of pages8
ISBN (Electronic)9798331505189
DOIs
Publication statusPublished - 2025
Externally publishedYes
Event8th International Conference on Information and Computer Technologies, ICICT 2025 - Hawaii-Hilo, United States
Duration: 14 Mar 202516 Mar 2025

Publication series

NameProceedings - 2025 8th International Conference on Information and Computer Technologies, ICICT 2025

Conference

Conference8th International Conference on Information and Computer Technologies, ICICT 2025
Country/TerritoryUnited States
CityHawaii-Hilo
Period14/03/2516/03/25

Keywords

  • automated detection
  • Code smells
  • human-in-the-loop
  • performance metrics
  • provenance data
  • software maintainability

ASJC Scopus subject areas

  • Artificial Intelligence
  • Computational Theory and Mathematics
  • Computer Networks and Communications
  • Computer Science Applications
  • Hardware and Architecture
  • Information Systems

Fingerprint

Dive into the research topics of 'A Provenance-Centric Approach to Code Smell Reduction using Human-in-Loop Approach'. Together they form a unique fingerprint.

Cite this