Software Defect Prediction and Automatic Repair Based on Machine Learning

Authors

  • Kung Tang
  • Yutang Zhang
  • Shengkai Xia

DOI:

https://doi.org/10.54097/cwfckw19

Keywords:

software defects; bug prediction; automatic repair; machine learning; deep learning; software engineering; data imbalance; memory leaks; long short-term memory.

Abstract

Software defects can have a significant impact on quality, reliability, and development costs if not addressed properly. With the increasing complexity of modern software, traditional testing methods struggle to keep up. Machine learning and deep learning have emerged as promising new approaches for software defect prediction (SDP) and automatic repair. These approaches leverage historical data to identify patterns associated with defects. Deep learning models can automatically learn complex feature representations from raw code. However, imbalanced defect data can bias models, necessitating techniques such as data augmentation or cost-sensitive learning. Memory leaks are a common defect that can gradually deplete resources if left unrepaired. Long short-term memory (LSTM) networks are well-suited for sequential code analysis and can exploit long-term dependencies to learn complex patterns and identify leak scenarios. This research aims to advance SDP and repair through machine learning techniques.

Downloads

Download data is not yet available.

References

S. Lessmann, B. Baesens, C. Mues, and S. Pietsch, “Benchmarking Classification Models for Software Defect Prediction: A Proposed Framework and Novel Findings,” IEEE Trans. Softw. Eng., vol. 34, no. 4, pp. 485–496, Jul. 2008, doi: 10/fdtzx3.

“Data Mining Static Code Attributes to Learn Defect Predictors | IEEE Journals & Magazine | IEEE Xplore.” Accessed: Feb. 02, 2024. [Online]. Available: https://ieeexplore.ieee.org/abstract/document/4027145.

D. Rodríguez, R. Ruiz, J. C. Riquelme, and J. S. Aguilar–Ruiz, “Searching for rules to detect defective modules: A subgroup discovery approach,” Inf. Sci., vol. 191, pp. 14–30, May 2012, doi: 10/dhrpgt.

I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning. MIT Press, 2016.

“Symmetry | Free Full-Text | Empirical Study of Software Defect Prediction: A Systematic Mapping.” Accessed: Feb. 02, 2024. [Online]. Available: https://www.mdpi.com/2073-8994/11/2/212.

I. Batool and T. A. Khan, “Software fault prediction using data mining, machine learning and deep learning techniques: A systematic literature review,” Comput. Electr. Eng., vol. 100, p. 107886, May 2022, doi: 10/gtgngx.

J. Pachouly, S. Ahirrao, K. Kotecha, G. Selvachandran, and A. Abraham, “A systematic literature review on software defect prediction using artificial intelligence: Datasets, Data Validation Methods, Approaches, and Tools,” Eng. Appl. Artif. Intell., vol. 111, p. 104773, May 2022, doi: 10/gq4s84.

S. Oh, K. Jang, J. Kim, and I. Moon, “Online state of charge estimation of lithium-ion battery using surrogate model based on electrochemical model,” in Computer Aided Chemical Engineering, vol. 51, L. Montastruc and S. Negny, Eds., in 32 European Symposium on Computer Aided Process Engineering, vol. 51. , Elsevier, 2022, pp. 1447–1452. doi: 10.1016/B978-0-323-95879-0.50242-3.

H. Shi, A. Wei, X. Xu, Y. Zhu, H. Hu, and S. Tang, “A CNN-LSTM based deep learning model with high accuracy and robustness for carbon price forecasting: A case of Shenzhen’s carbon market in China,” J. Environ. Manage., vol. 352, p. 120131, Feb. 2024, doi: 10/gtgnhd.

S. Liu, Z. Kong, T. Huang, Y. Du, and W. Xiang, “An ADMM-LSTM framework for short-term load forecasting,” Neural Netw., p. 106150, Feb. 2024, doi: 10/gtgnhf.

Downloads

Published

16-05-2024