A CNN-LSTM-based Hybrid Deep Learning Model Enhanced with PSO-GA Optimization for Accurate Code Clone Detection
Year: 2026
Type: article
Abstract: Code clone analysis is needed when software repositories contain multiple implementations of the same or closely related functionality. Such duplication can make later maintenance harder because a change made in one fragment may not be reflected in another. This paper presents a hybrid CNN–LSTM framework in which PSO and GA are used to refine the feature representation before classification. The workflow consists of source-code preparation, feature construction, optimization, and clone classification. CNN is used to learn local patterns from the code representation, whereas LSTM models dependencies that extend across the sequence. The optimized representation is evaluated on BigCloneBench, Google Code Jam, and a Java repository. The reported experiments show that the combined model provides higher recall, accuracy, and precision than the comparison models. The findings indicate that optimization-assisted deep learning can provide a practical route toward more reliable clone analysis in software repositories.
Institution: Lovely Professional University
Language: English
Subfield: Information Systems
Field: Computer Science
Domain: Physical Sciences
Open Access status: diamond
OpenAlex ID: W7225886192
