CoChat

Predicting Defective Lines Using a Model-Agnostic Technique

Open access

The DOI matches its Crossref record; 107 of the 109 references it cites were found in a registry or an index.

Abstract

Defect prediction models are proposed to help a team prioritize the areas of source code files that need Software Quality Assurance (SQA) based on the likelihood of having defects. However, developers may waste their unnecessary effort on the whole file while only a small fraction of its source code lines are defective. Indeed, we find that as little as 1-3 percent of lines of a file are defective. Hence, in this work, we propose a novel framework (calledLine-DP) to identify defective lines using a model-agnostic technique, i.e., an Explainable AI technique that provides information why the model makes such a prediction. Broadly speaking, ourLine-DPfirst builds a file-level defect model using code token features. Then, ourLine-DPuses a state-of-the-art model-agnostic technique (i.e., LIME) to identify risky tokens, i.e., code tokens that lead the file-level defect model to predict that the file will be defective. Then, the lines that contain risky tokens are predicted as defective lines. Through a case study of 32 releases of nine Java open source systems, our evaluation results show that ourLine-DPachieves an average recall of 0.61, a false alarm rate of 0.47, a top 20%LOC recall of 0.27, and an initial false alarm of 16, which are statistically better than six baseline approaches. Our evaluation shows that ourLine-DPrequires an average computation time of 10 seconds including model construction and defective line identification time. In addition, we find that 63 percent of defective lines that can be identified by ourLine-DPare related to common defects (e.g., argument change, condition change). These results suggest that ourLine-DPcan effectively identify defective lines that contain common defects while requiring a smaller amount of inspection effort and a manageable computation cost. The contribution of this paper builds an important step towards line-level defect prediction by leveraging a model-agnostic technique.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1109/tse.2020.3023177

Cites

107 of 107 references verified0 citation errors · 0 not checkable

Statistics

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Show all 107 references

Research works printed but not linked: 5

  1. 10.1023/A:I0I0933404324 · doi:10.1023/a:i0i0933404324
  2. Copeland, 2005, PMD Applied, 10
  3. 2020, Release Management Process
  4. Ribeiro, Proc. 22nd ACM SIGKDD Int. Conf. Knowl. Discov. Data Mining, 1135
  5. Tomczak, 2014, The need to report effect size estimates revisited. An overview of some recommended measures of effect size, Trends Sport Sci., 21, 19

Cited by

See all 137

Metadata

Authors
Wattanakriengkrai, S., Thongtanunam, P., Tantithamthavorn, C., Hata, H., & Matsumoto, K.
Affiliations
  • Nara Institute of Science and Technology (JP)
  • The University of Melbourne (AU)
  • Monash University (AU)
Venue
IEEE Transactions on Software Engineering
Published
2022-05-01
Volume
48
Issue
5
Pages
1480-1496
ISSN
  • 0098-5589 (ISSN-L)
  • 1939-3520
  • 2326-3881
OpenAlex
W3083954092
Cited by
137
References
109
Citations by year
2026: 21 · 2025: 24 · 2024: 38 · 2023: 24 · 2022: 15
FWCI
12.69
Type
journal article
Language
en
Open access
Locations
  • IEEE Transactions on Software Engineering (publishedVersion, cc-by)
  • Institutional Repositories DataBase (IRDB) (publishedVersion, cc-by)
  • arXiv (Cornell University) (submittedVersion)
  • Minerva Access (University of Melbourne) (submittedVersion, cc-by)
  • Monash University Research Portal (Monash University) (submittedVersion, other-oa)
  • NAIST Digital Library (Nara Institute of Science and Technology) (submittedVersion, cc-by-nc-nd)
  • arXiv (Cornell University) (cc-by)
Funders
  • JSPS KAKENHI (16H05857, 20H05706)
  • Australian Research Council (DE200100941, DE210101091)
  • Monash-FIT Early Career Researcher
Topics
  • Physical Sciences › Computer Science › Information Systems › Software Engineering Research
  • Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques
  • Physical Sciences › Computer Science › Software › Software Reliability and Analysis Research
Keywords
model-agnostic explanation, lime, explainable AI, software defect prediction, software quality assurance

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

How to cite

Cite CoChat for the checks on this page, and the paper for its own findings.

This page
CoChat. (2026). Citation check: Predicting Defective Lines Using a Model-Agnostic Technique. https://app.cochat.ai/papers/10.1109/tse.2020.3023177
The paper
Wattanakriengkrai, S., Thongtanunam, P., Tantithamthavorn, C., Hata, H., & Matsumoto, K. (2022). Predicting Defective Lines Using a Model-Agnostic Technique. IEEE Transactions on Software Engineering. https://doi.org/10.1109/tse.2020.3023177

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.