Skip to main content

2024 | OriginalPaper | Buchkapitel

Software Defect Prediction Using Abstract Syntax Trees Features and Object—Oriented Metrics

verfasst von : Anushka Sethi, Aseem Sangalay, Ruchika Malhotra

Erschienen in: Reliability Engineering for Industrial Processes

Verlag: Springer Nature Switzerland

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Bug prediction systems have developed to assist developers in prioritizing testing tasks as software releases become more frequent due to changing requirements. Previous studies used methods such as classifying modules as faulty or not, or performing multi-class classification to predict the number of bugs. Some studies used Object-Oriented (OO) metrics, while others used Abstract Syntax Trees (ASTs) to extract code features for bug prediction. This research treated bug prediction as a regression problem and used deep learning models, such as LSTM and CNN, to solve it. The study compared the results of LSTM and CNN models trained on OO metrics with classical machine learning models and a multilayer perceptron model, and found that their LSTM model performed better in terms of MAE and MRE than three of the classical models. The LSTM and CNN models were also trained on features extracted from file-level ASTs of the source code of projects and compared with the models trained on OO metrics. The CNN model trained on file-level AST features produced MAE results similar to the LSTM model trained on OO metrics, but outperformed it in terms of MRE.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Literatur
1.
Zurück zum Zitat Software engineering book tenth edition. Ian Sommerville Software engineering book tenth edition. Ian Sommerville
2.
Zurück zum Zitat Tang MH, Kao MH, Chen MH (1999) An empirical study on object-oriented metrics. In: IEEE computer, proceedings on software metrics symposium, pp 242–249 Tang MH, Kao MH, Chen MH (1999) An empirical study on object-oriented metrics. In: IEEE computer, proceedings on software metrics symposium, pp 242–249
5.
Zurück zum Zitat Pachouly J, Ahirrao S, Kotecha K, Selvachandran G, Abraham A (2022) A systematic literature review on software defect prediction using artificial intelligence: datasets, data validation methods, approaches, and tools. Eng Appl Artif Intell 111:104773CrossRef Pachouly J, Ahirrao S, Kotecha K, Selvachandran G, Abraham A (2022) A systematic literature review on software defect prediction using artificial intelligence: datasets, data validation methods, approaches, and tools. Eng Appl Artif Intell 111:104773CrossRef
6.
Zurück zum Zitat Chidamber SR, Kemerer CF (1993) A metrics suite for object oriented design. M.I.T. Sloan School of Management E53–315 Chidamber SR, Kemerer CF (1993) A metrics suite for object oriented design. M.I.T. Sloan School of Management E53–315
7.
Zurück zum Zitat Henderson-Sellers B (1996) Object-oriented metrics: measures of complexity. Prentice-Hall, pp 142–147 Henderson-Sellers B (1996) Object-oriented metrics: measures of complexity. Prentice-Hall, pp 142–147
8.
Zurück zum Zitat Martin RC (2002) Agile software development: principles, patterns, and practices. Alant Apt Series. Prentice Hall, Upper Saddle River, NJ, USA Martin RC (2002) Agile software development: principles, patterns, and practices. Alant Apt Series. Prentice Hall, Upper Saddle River, NJ, USA
10.
Zurück zum Zitat Yang X, Wen W (2018) Ridge and Lasso regression models for cross-version defect prediction. IEEE Trans Reliab 67(3):885–896CrossRef Yang X, Wen W (2018) Ridge and Lasso regression models for cross-version defect prediction. IEEE Trans Reliab 67(3):885–896CrossRef
12.
Zurück zum Zitat Yu L (2012) Using negative binomial regression analysis to predict software faults: a study of apache ant. IJ Inf Technol Comput Sci 4(8):63–70 Yu L (2012) Using negative binomial regression analysis to predict software faults: a study of apache ant. IJ Inf Technol Comput Sci 4(8):63–70
14.
Zurück zum Zitat Dam H, Pham T, Ng S, Tran T, Grundy J, Ghose A, Kim T, Kim C-J (2018) A deep tree-based model for software defect prediction Dam H, Pham T, Ng S, Tran T, Grundy J, Ghose A, Kim T, Kim C-J (2018) A deep tree-based model for software defect prediction
17.
Zurück zum Zitat White M, Vendome C, Linares-Vasquez M, Poshyvanyk D (2015) Toward deep learning software repositories. In: Proceedings of the 2015 IEEE/ACM 12th working conference on mining software repositories (MSR), Florence, Italy, 16–17 May 2015, pp 334–345 White M, Vendome C, Linares-Vasquez M, Poshyvanyk D (2015) Toward deep learning software repositories. In: Proceedings of the 2015 IEEE/ACM 12th working conference on mining software repositories (MSR), Florence, Italy, 16–17 May 2015, pp 334–345
20.
Zurück zum Zitat Liu J, Ai J, Lu M, Wang J, Shi H (2023) Semantic feature learning for software defect prediction from source code and external knowledge. J Syst Softw 111753 Liu J, Ai J, Lu M, Wang J, Shi H (2023) Semantic feature learning for software defect prediction from source code and external knowledge. J Syst Softw 111753
24.
Zurück zum Zitat Li J, He P, Zhu J, Lyu MR (2017) Software defect prediction via convolutional neural network. In: Proceedings of the 2017 IEEE international conference on software quality, reliability and security (QRS), Prague, Czech Republic, 25–29 July 2017, pp 318–328 Li J, He P, Zhu J, Lyu MR (2017) Software defect prediction via convolutional neural network. In: Proceedings of the 2017 IEEE international conference on software quality, reliability and security (QRS), Prague, Czech Republic, 25–29 July 2017, pp 318–328
Metadaten
Titel
Software Defect Prediction Using Abstract Syntax Trees Features and Object—Oriented Metrics
verfasst von
Anushka Sethi
Aseem Sangalay
Ruchika Malhotra
Copyright-Jahr
2024
DOI
https://doi.org/10.1007/978-3-031-55048-5_13

Premium Partner