Hybrid Intelligent Architecture for Context-Driven Code Clone Detection

Code clone detection is a critical task in software engineering, directly influencing code maintainability, quality, and technical debt management. Despite advancements in both static analysis techniques and AI-driven approaches, existing solutions remain fragmented, either relying on deterministic syntactic analysis for syntactic clone detection or employing machine learning, deep learning, and LLM-based methods for semantic clone detection. This separation leads to inefficiencies, scalability challenges, and missed optimization opportunities. This paper introduces a Hybrid Intelligent Clone Detection Architecture (HICDA), a context-driven delegation framework that routes clone detection tasks based on syntactic or semantic characteristics. Central to this architecture is the conceptualization of a Context-Driven Delegation Controller, which dynamically assigns detection tasks based on the syntactic or semantic complexity of cloned code fragments, optimizing resource utilization by integrating deterministic precision with semantic reasoning. HICDA is embedded within a comprehensive code clone management framework, incorporating automated refactoring and post-detection code quality evaluation, seamlessly integrated into real-time development workflows. Theoretical justification is provided through efficiency models, cognitive delegation analogies, and alignment with modern software architecture principles. A case study demonstrates the framework’s practical viability, highlighting reductions in computational overhead without compromising detection accuracy. This contribution establishes a foundational model for hybrid AI-augmented static analysis, offering a scalable and generalizable blueprint for future intelligent software engineering tools.

Authors

Publication Details

Journal
Journal of King Abdulaziz University-Computing and Information Technology Sciences
Published
2025-12-31
DOI
https://doi.org/10.64064/1658-6336.1014
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Hybrid Intelligent Architecture for Context-Driven Code Clone Detection

Sanaa Sharaf, Afnan A. Almatrafi, Fathy A. Eassa
Journal of King Abdulaziz University-Computing and Information Technology Sciences
Software Engineering Research
article

Hybrid Intelligent Architecture for Context-Driven Code Clone Detection

Sanaa Sharaf, Afnan A. Almatrafi, Fathy A. Eassa
article en

Abstract

Code clone detection is a critical task in software engineering, directly influencing code maintainability, quality, and technical debt management. Despite advancements in both static analysis techniques and AI-driven approaches, existing solutions remain fragmented, either relying on deterministic syntactic analysis for syntactic clone detection or employing machine learning, deep learning, and LLM-based methods for semantic clone detection. This separation leads to inefficiencies, scalability challenges, and missed optimization opportunities. This paper introduces a Hybrid Intelligent Clone Detection Architecture (HICDA), a context-driven delegation framework that routes clone detection tasks based on syntactic or semantic characteristics. Central to this architecture is the conceptualization of a Context-Driven Delegation Controller, which dynamically assigns detection tasks based on the syntactic or semantic complexity of cloned code fragments, optimizing resource utilization by integrating deterministic precision with semantic reasoning. HICDA is embedded within a comprehensive code clone management framework, incorporating automated refactoring and post-detection code quality evaluation, seamlessly integrated into real-time development workflows. Theoretical justification is provided through efficiency models, cognitive delegation analogies, and alignment with modern software architecture principles. A case study demonstrates the framework’s practical viability, highlighting reductions in computational overhead without compromising detection accuracy. This contribution establishes a foundational model for hybrid AI-augmented static analysis, offering a scalable and generalizable blueprint for future intelligent software engineering tools.

Journal of King Abdulaziz University-Computing and Information Technology SciencesVol. 14(2)
Openalex Percentile: Top 21%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.