IRJIT: A Simple, Online, Information Retrieval Approach for Just-In-Time Software Defect Prediction

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Sahar, Hareem, Bangash, Abdul Ali, Hindle, Abram, Barbosa, Denilson
Natura: Preprint
Pubblicazione: 2022
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866914831875964928
author Sahar, Hareem
Bangash, Abdul Ali
Hindle, Abram
Barbosa, Denilson
author_facet Sahar, Hareem
Bangash, Abdul Ali
Hindle, Abram
Barbosa, Denilson
contents Just-in-Time software defect prediction (JIT-SDP) prevents the introduction of defects into the software by identifying them at commit check-in time. Current software defect prediction approaches rely on manually crafted features such as change metrics and involve expensive to train machine learning or deep learning models. These models typically involve extensive training processes that may require significant computational resources and time. These characteristics can pose challenges when attempting to update the models in real-time as new examples become available, potentially impacting their suitability for fast online defect prediction. Furthermore, the reliance on a complex underlying model makes these approaches often less explainable, which means the developers cannot understand the reasons behind models' predictions. An approach that is not explainable might not be adopted in real-life development environments because of developers' lack of trust in its results. To address these limitations, we propose an approach called IRJIT that employs information retrieval on source code and labels new commits as buggy or clean based on their similarity to past buggy or clean commits. IRJIT approach is online and explainable as it can learn from new data without expensive retraining, and developers can see the documents that support a prediction, providing additional context. By evaluating 10 open-source datasets in a within project setting, we show that our approach is up to 112 times faster than the state-of-the-art ML and DL approaches, offers explainability at the commit and line level, and has comparable performance to the state-of-the-art.
format Preprint
id arxiv_https___arxiv_org_abs_2210_02435
institution arXiv
publishDate 2022
record_format arxiv
spellingShingle IRJIT: A Simple, Online, Information Retrieval Approach for Just-In-Time Software Defect Prediction
Sahar, Hareem
Bangash, Abdul Ali
Hindle, Abram
Barbosa, Denilson
Software Engineering
Just-in-Time software defect prediction (JIT-SDP) prevents the introduction of defects into the software by identifying them at commit check-in time. Current software defect prediction approaches rely on manually crafted features such as change metrics and involve expensive to train machine learning or deep learning models. These models typically involve extensive training processes that may require significant computational resources and time. These characteristics can pose challenges when attempting to update the models in real-time as new examples become available, potentially impacting their suitability for fast online defect prediction. Furthermore, the reliance on a complex underlying model makes these approaches often less explainable, which means the developers cannot understand the reasons behind models' predictions. An approach that is not explainable might not be adopted in real-life development environments because of developers' lack of trust in its results. To address these limitations, we propose an approach called IRJIT that employs information retrieval on source code and labels new commits as buggy or clean based on their similarity to past buggy or clean commits. IRJIT approach is online and explainable as it can learn from new data without expensive retraining, and developers can see the documents that support a prediction, providing additional context. By evaluating 10 open-source datasets in a within project setting, we show that our approach is up to 112 times faster than the state-of-the-art ML and DL approaches, offers explainability at the commit and line level, and has comparable performance to the state-of-the-art.
title IRJIT: A Simple, Online, Information Retrieval Approach for Just-In-Time Software Defect Prediction
topic Software Engineering
url https://arxiv.org/abs/2210.02435