一种基于关联分析与N-Gram 的错误参数检测方法

Translated title of the contribution: Association Analysis and N-Gram Based Detection of Incorrect Arguments

Chao Li, Hui Liu*

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

3 Citations (Scopus)

Abstract

To detect the method calls with incorrect arguments in software systems, an association analysis and N-Gram based static anomaly detection approach (ANiaD) is proposed. Based on the massive open source code, an association analysis model is constructed to mine the strong association rules between arguments. An N-Gram model is constructed for method calls with strong association rules between arguments. Using the trained N-Gram model, the probability of a given method call statement is calculated. Low probability method calls are reported as potential bugs. The proposed approach is evaluated based on 10 open-source Java projects. The results show that the accuracy of the proposed approach is about 43.40%, significantly greater than that of similarity-based approach (25% accuracy).

Translated title of the contributionAssociation Analysis and N-Gram Based Detection of Incorrect Arguments
Original languageChinese (Traditional)
Pages (from-to)2243-2257
Number of pages15
JournalRuan Jian Xue Bao/Journal of Software
Volume29
Issue number8
DOIs
Publication statusPublished - 1 Aug 2018

Fingerprint

Dive into the research topics of 'Association Analysis and N-Gram Based Detection of Incorrect Arguments'. Together they form a unique fingerprint.

Cite this