Authorship attribution of source code by using back propagation neural network based on particle swarm optimization
Open Access
- 2 November 2017
- journal article
- research article
- Published by Public Library of Science (PLoS) in PLOS ONE
- Vol. 12 (11) , e0187204
Abstract
Authorship attribution is to identify the most likely author of a given sample among a set of candidate known authors. It can be not only applied to discover the original author of plain text, such as novels, blogs, emails, posts etc., but also used to identify source code programmers. Authorship attribution of source code is required in diverse applications, ranging from malicious code tracking to solving authorship dispute or software plagiarism detection. This paper aims to propose a new method to identify the programmer of Java source code samples with a higher accuracy. To this end, it first introduces back propagation (BP) neural network based on particle swarm optimization (PSO) into authorship attribution of source code. It begins by computing a set of defined feature metrics, including lexical and layout metrics, structure and syntax metrics, totally 19 dimensions. Then these metrics are input to neural network for supervised learning, the weights of which are output by PSO and BP hybrid algorithm. The effectiveness of the proposed method is evaluated on a collected dataset with 3,022 Java files belong to 40 authors. Experiment results show that the proposed method achieves 91.060% accuracy. And a comparison with previous work on authorship attribution of source code for Java language illustrates that this proposed method outperforms others overall, also with an acceptable overhead.Keywords
Funding Information
- the National High Technology Research and Development Program of China (863 Program) (2015AA017202)
This publication has 27 references indexed in Scilit:
- A review on particle swarm optimization algorithm and its variants to clustering high-dimensional dataArtificial Intelligence Review, 2013
- Comparing techniques for authorship attribution of source codeSoftware: Practice and Experience, 2012
- Recognizing authors: an examination of the consistent programmer hypothesisSoftware Testing, Verification and Reliability, 2010
- A method for detecting the theft of Java programs through analysis of the control flow informationInformation and Software Technology, 2009
- Particle swarm optimizationSwarm Intelligence, 2007
- A hybrid particle swarm optimization–back-propagation algorithm for feedforward neural network trainingApplied Mathematics and Computation, 2007
- Extraction of Java program fingerprints for software authorship identificationJournal of Systems and Software, 2004
- Authorship analysis: identifying the author of a programComputers & Security, 1997
- Software forensics: Can we track code to its authors?Computers & Security, 1993
- Beyond preliminary analysis of the WANK and OILZ worms: a case study of malicious codeComputers & Security, 1993