Skip to main content
Erschienen in: Arabian Journal for Science and Engineering 4/2021

23.11.2020 | Research Article-Computer Engineering and Computer Science

An Empirical Framework to Investigate the Impact of Bug Fixing on Internal Quality Attributes

verfasst von: Lov Kumar, Sahithi Tummalapalli, Lalita Bhanu Murthy

Erschienen in: Arabian Journal for Science and Engineering | Ausgabe 4/2021

Einloggen

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

search-config
loading …

Abstract

Software testing is the process of fixing bugs by changing the design of the software or simple logic of the software. Researchers have proposed many tools and methods using machine learning techniques to assist practitioners in decision making and automating software engineering tasks. These tools help to find the faulty classes at the starting phase of the software development life cycle. After finding faulty classes using these tools, testers used different techniques to find and fix these faults. The early identification of the faults or bugs fixing process helps to improves the quality of software and reduces the cost required to fix these faults or bugs. The primary objective of this work is to understand whether faults present in code elements are indicators of problems in the design of the software or not. This work investigates the impact of bug fixing operation on four popular internal quality attributes such as complexity, cohesion, inheritance, and coupling. The above investigation has been validated using thirteen different projects. Furthermore, we have also investigated the possibility of prediction models for predicting changes in internal quality attributes. These prediction models are trained using five different classifiers on balance data as well as original data and validated using fivefold cross-validation. The experimental results show that the predictive power of models using LSSVM with the polynomial kernel is better as compared to other techniques. The experimental results also show that the bugs are present in the class having at least one critical attribute in more than 80% of cases. Furthermore, the consistent value of AUC reveals that the prediction of changes in the internal quality attribute is possible using source code metrics.

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!

Literatur
1.
Zurück zum Zitat He, H.; Garcia, E.A.: Learning from imbalanced data. IEEE Trans. Knowl. Data Eng. 21(9), 1263–1284 (2009)CrossRef He, H.; Garcia, E.A.: Learning from imbalanced data. IEEE Trans. Knowl. Data Eng. 21(9), 1263–1284 (2009)CrossRef
2.
Zurück zum Zitat Kapila, H.; Singh, S.: Analysis of CK metrics to predict software fault-proneness using Bayesian inference. Int. J. Comput. Appl. 74(2), 1–4 (2013) Kapila, H.; Singh, S.: Analysis of CK metrics to predict software fault-proneness using Bayesian inference. Int. J. Comput. Appl. 74(2), 1–4 (2013)
3.
Zurück zum Zitat Malhotra, R.; Chug, A.: Application of group method of data handling model for software maintainability prediction using object oriented systems. Int. J. Syst. Assur. Eng. Manag. 5(2), 165–173 (2014)CrossRef Malhotra, R.; Chug, A.: Application of group method of data handling model for software maintainability prediction using object oriented systems. Int. J. Syst. Assur. Eng. Manag. 5(2), 165–173 (2014)CrossRef
4.
Zurück zum Zitat Malhotra, R.; Jain, A.: Fault prediction using statistical and machine learning methods for improving software quality. J. Inf. Process. Syst. 8(2), 241–262 (2012)CrossRef Malhotra, R.; Jain, A.: Fault prediction using statistical and machine learning methods for improving software quality. J. Inf. Process. Syst. 8(2), 241–262 (2012)CrossRef
5.
Zurück zum Zitat Kang B.K.; Bieman, J. M.: Cohesion and reuse in an Object-Oriented system. In: Proceedings of the ACM SIGSOFT Symposium on software reuseability, pp. 259–262. Seattle (1995) Kang B.K.; Bieman, J. M.: Cohesion and reuse in an Object-Oriented system. In: Proceedings of the ACM SIGSOFT Symposium on software reuseability, pp. 259–262. Seattle (1995)
6.
Zurück zum Zitat Abreu, F.B.E.; Carapuca, R.: Object-Oriented software engineering: measuring and controlling the development process. In: Proceedings of the 4th International Conference on Software Quality, vol. 186, pp. 1–8 (1994) Abreu, F.B.E.; Carapuca, R.: Object-Oriented software engineering: measuring and controlling the development process. In: Proceedings of the 4th International Conference on Software Quality, vol. 186, pp. 1–8 (1994)
8.
Zurück zum Zitat Li, W.; Henry, S.: Maintenance metrics for the Object-Oriented paradigm. In: Proceedings of First International Software Metrics Symposium, pp. 52–60 (1993) Li, W.; Henry, S.: Maintenance metrics for the Object-Oriented paradigm. In: Proceedings of First International Software Metrics Symposium, pp. 52–60 (1993)
9.
Zurück zum Zitat Chidamber, S.R.; Kemerer, C.F.: A metrics suite for object-oriented design. IEEE Trans. Software Eng. 20(6), 476–493 (1994)CrossRef Chidamber, S.R.; Kemerer, C.F.: A metrics suite for object-oriented design. IEEE Trans. Software Eng. 20(6), 476–493 (1994)CrossRef
10.
Zurück zum Zitat Chidamber, SR.; Kemerer, CF: Towards a metrics suite for Object-Oriented design. In: ACM, vol. 26. Chidamber, SR.; Kemerer, CF: Towards a metrics suite for Object-Oriented design. In: ACM, vol. 26.
11.
Zurück zum Zitat Erturk, E.; Sezer, E.A.: A comparison of some soft computing methods for software fault prediction. Expert Syst. Appl. 42(4), 1872–1879 (2015)CrossRef Erturk, E.; Sezer, E.A.: A comparison of some soft computing methods for software fault prediction. Expert Syst. Appl. 42(4), 1872–1879 (2015)CrossRef
12.
Zurück zum Zitat Kumar, L.; Misra, S.; Rath, S.K.: An empirical analysis of the effectiveness of software metrics and fault prediction model for identifying faulty classes. Comput. Stand. Interfaces 53, 1–32 (2017)CrossRef Kumar, L.; Misra, S.; Rath, S.K.: An empirical analysis of the effectiveness of software metrics and fault prediction model for identifying faulty classes. Comput. Stand. Interfaces 53, 1–32 (2017)CrossRef
13.
Zurück zum Zitat Kumar, L.; Sripada, S.K.; Sureka, A.; Rath, S.K.: Effective fault prediction model developed using least square support vector machine (lssvm). J. Syst. Softw. 137, 686–712 (2018)CrossRef Kumar, L.; Sripada, S.K.; Sureka, A.; Rath, S.K.: Effective fault prediction model developed using least square support vector machine (lssvm). J. Syst. Softw. 137, 686–712 (2018)CrossRef
14.
Zurück zum Zitat Malhotra, R.: A systematic review of machine learning techniques for software fault prediction. Appl. Soft Comput. 27, 504–518 (2015)CrossRef Malhotra, R.: A systematic review of machine learning techniques for software fault prediction. Appl. Soft Comput. 27, 504–518 (2015)CrossRef
15.
Zurück zum Zitat Rathore, S.S.; Kumar, S.: An empirical study of some software fault prediction techniques for the number of faults prediction. Soft. Comput. 21(24), 7417–7434 (2017)CrossRef Rathore, S.S.; Kumar, S.: An empirical study of some software fault prediction techniques for the number of faults prediction. Soft. Comput. 21(24), 7417–7434 (2017)CrossRef
16.
Zurück zum Zitat Goues, C.L.; Dewey-Vogt, M.; Forrest, S.; Weimer, W.: A systematic study of automated program repair: fixing 55 out of 105 bugs for 8 each. In: 2012 34th International Conference on Software Engineering (ICSE), pp. 3–13 (2012) Goues, C.L.; Dewey-Vogt, M.; Forrest, S.; Weimer, W.: A systematic study of automated program repair: fixing 55 out of 105 bugs for 8 each. In: 2012 34th International Conference on Software Engineering (ICSE), pp. 3–13 (2012)
17.
Zurück zum Zitat Basili, V.R.; Briand, L.C.; Melo, W.L.: A validation of Object-Oriented design metrics as quality indicators. IEEE Trans. Softw. Eng. 22(10), 751–761 (1996)CrossRef Basili, V.R.; Briand, L.C.; Melo, W.L.: A validation of Object-Oriented design metrics as quality indicators. IEEE Trans. Softw. Eng. 22(10), 751–761 (1996)CrossRef
18.
Zurück zum Zitat Chávez, A.; Ferreira, I.; Fernandes, E.; Cedrim, D.; Garcia, A.: How does refactoring affect internal quality attributes? a multi-project study. In: Proceedings of the 31st Brazilian Symposium on Software Engineering, pp. 74–83 (2017) Chávez, A.; Ferreira, I.; Fernandes, E.; Cedrim, D.; Garcia, A.: How does refactoring affect internal quality attributes? a multi-project study. In: Proceedings of the 31st Brazilian Symposium on Software Engineering, pp. 74–83 (2017)
19.
Zurück zum Zitat Malhotra, R.: Empirical research in software engineering: concepts, analysis, and applications. CRC Press, Boca Raton (2016)CrossRef Malhotra, R.: Empirical research in software engineering: concepts, analysis, and applications. CRC Press, Boca Raton (2016)CrossRef
20.
Zurück zum Zitat Chawla, N.V.; Bowyer, K.W.; Hall, L.O.; Philip Kegelmeyer, W.: Smote: synthetic minority over-sampling technique. J. Artif. Intell. Res. 16, 321–357 (2002)CrossRef Chawla, N.V.; Bowyer, K.W.; Hall, L.O.; Philip Kegelmeyer, W.: Smote: synthetic minority over-sampling technique. J. Artif. Intell. Res. 16, 321–357 (2002)CrossRef
21.
Zurück zum Zitat Abaei, G.; Selamat, A.; Fujita, H.: An empirical study based on semi-supervised hybrid self-organizing map for software fault prediction. Knowl.-Based Syst. 74, 28–39 (2015)CrossRef Abaei, G.; Selamat, A.; Fujita, H.: An empirical study based on semi-supervised hybrid self-organizing map for software fault prediction. Knowl.-Based Syst. 74, 28–39 (2015)CrossRef
22.
Zurück zum Zitat Xing, F.; Guo, P.; Lyu, M.R: A novel method for early software quality prediction based on support vector machine. In: 16th IEEE International Symposium on Software Reliability Engineering (ISSRE’05), pp. 10. IEEE, (2005) Xing, F.; Guo, P.; Lyu, M.R: A novel method for early software quality prediction based on support vector machine. In: 16th IEEE International Symposium on Software Reliability Engineering (ISSRE’05), pp. 10. IEEE, (2005)
23.
Zurück zum Zitat Yang, B.; Li, X.: A study on software reliability prediction based on support vector machines. In: 2007 IEEE International Conference on Industrial Engineering and Engineering Management, pp. 1176–1180. IEEE, (2007) Yang, B.; Li, X.: A study on software reliability prediction based on support vector machines. In: 2007 IEEE International Conference on Industrial Engineering and Engineering Management, pp. 1176–1180. IEEE, (2007)
24.
Zurück zum Zitat Bharavi, M.; Shukla, K.K.: Defect prediction for object oriented software using support vector based fuzzy classification model. Int. J. Comput. Appl. 60(15), 8–16 (2012) Bharavi, M.; Shukla, K.K.: Defect prediction for object oriented software using support vector based fuzzy classification model. Int. J. Comput. Appl. 60(15), 8–16 (2012)
25.
Zurück zum Zitat Madeyski, L.; Jureczko, M.: Which process metrics can significantly improve defect prediction models? An empirical study. Software Qual. J. 23(3), 393–422 (2015)CrossRef Madeyski, L.; Jureczko, M.: Which process metrics can significantly improve defect prediction models? An empirical study. Software Qual. J. 23(3), 393–422 (2015)CrossRef
26.
Zurück zum Zitat He, P.; Li, B.; Liu, X.; Chen, J.; Ma, Y.: An empirical study on software defect prediction with a simplified metric set. Inf. Softw. Technol. 59, 170–190 (2015)CrossRef He, P.; Li, B.; Liu, X.; Chen, J.; Ma, Y.: An empirical study on software defect prediction with a simplified metric set. Inf. Softw. Technol. 59, 170–190 (2015)CrossRef
27.
Zurück zum Zitat Ruchika M.; Juhi J. (2020) Handling imbalanced data using ensemble learning in software defect prediction. In: 2020 10th International Conference on Cloud Computing, Data Science & Engineering (Confluence), pp. 300–304. IEEE (2020). Ruchika M.; Juhi J. (2020) Handling imbalanced data using ensemble learning in software defect prediction. In: 2020 10th International Conference on Cloud Computing, Data Science & Engineering (Confluence), pp. 300–304. IEEE (2020).
28.
Zurück zum Zitat Tufano, M.; Watson, C.; Bavota, G.; Di Penta, M.; White, Martin; P.: Denys: An empirical investigation into learning bug-fixing patches in the wild via neural machine translation. In: Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering, pp. 832–837 (2018) Tufano, M.; Watson, C.; Bavota, G.; Di Penta, M.; White, Martin; P.: Denys: An empirical investigation into learning bug-fixing patches in the wild via neural machine translation. In: Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering, pp. 832–837 (2018)
29.
Zurück zum Zitat Abou Khalil, Z.; Constantinou, E.; Mens, T.; Duchien, L.; Quinton, C.: A longitudinal analysis of bug handling across Eclipse releases. In: 2019 IEEE International Conference on Software Maintenance and Evolution (ICSME), pp. 1–12. IEEE (2019) Abou Khalil, Z.; Constantinou, E.; Mens, T.; Duchien, L.; Quinton, C.: A longitudinal analysis of bug handling across Eclipse releases. In: 2019 IEEE International Conference on Software Maintenance and Evolution (ICSME), pp. 1–12. IEEE (2019)
30.
Zurück zum Zitat Chen, D.; Li, B.; Zhou, C.; Zhu X.: Automatically identifying bug entities and relations for bug analysis. In: 2019 IEEE 1st International Workshop on Intelligent Bug Fixing (IBF), pp. 39–43. IEEE (2019) Chen, D.; Li, B.; Zhou, C.; Zhu X.: Automatically identifying bug entities and relations for bug analysis. In: 2019 IEEE 1st International Workshop on Intelligent Bug Fixing (IBF), pp. 39–43. IEEE (2019)
31.
Zurück zum Zitat El Mezouar, M.; Zhang, F.; Zou, Y.: Are tweets useful in the bug fixing process? An empirical study on firefox and chrome. Empir. Softw. Eng. 23(3), 1704–1742 (2018)CrossRef El Mezouar, M.; Zhang, F.; Zou, Y.: Are tweets useful in the bug fixing process? An empirical study on firefox and chrome. Empir. Softw. Eng. 23(3), 1704–1742 (2018)CrossRef
32.
Zurück zum Zitat Saini, V.; Singh, P.; Sureka, A.: Control-flow based anomaly detection in the bug-fixing process of open-source projects. In: Proceedings of the 13th Innovations in Software Engineering Conference on Formerly known as India Software Engineering Conference, pp. 1–11, (2020) Saini, V.; Singh, P.; Sureka, A.: Control-flow based anomaly detection in the bug-fixing process of open-source projects. In: Proceedings of the 13th Innovations in Software Engineering Conference on Formerly known as India Software Engineering Conference, pp. 1–11, (2020)
33.
Zurück zum Zitat Chidamber, S.R.; Darcy, D.P.; Kemerer, C.F.: Managerial use of metrics for object-oriented software: an exploratory analysis. IEEE Trans. Softw. Eng. 24(8), 629–639 (1998)CrossRef Chidamber, S.R.; Darcy, D.P.; Kemerer, C.F.: Managerial use of metrics for object-oriented software: an exploratory analysis. IEEE Trans. Softw. Eng. 24(8), 629–639 (1998)CrossRef
34.
Zurück zum Zitat Chawla, N.V.: Data mining for imbalanced datasets: SN overview. In: Data mining and knowledge discovery handbook, pp. 853–867. Springer, Berlin (2005) Chawla, N.V.: Data mining for imbalanced datasets: SN overview. In: Data mining and knowledge discovery handbook, pp. 853–867. Springer, Berlin (2005)
35.
Zurück zum Zitat Ryan Hoens, T; Chawla, Nitesh V: Imbalanced datasets: from sampling to classifiers. Imbalanced Learning: Foundations, Algorithms, and Applications, pages 43–59, (2013) Ryan Hoens, T; Chawla, Nitesh V: Imbalanced datasets: from sampling to classifiers. Imbalanced Learning: Foundations, Algorithms, and Applications, pages 43–59, (2013)
36.
Zurück zum Zitat Yap, B.W.; Rani, K.A.; Aryani A.; Rahman, H.; Fong, S.; Khairudin, Z., Abdullah, N.N.: An application of oversampling, undersampling, bagging and boosting in handling imbalanced datasets. In: Proceedings of the First International Conference on Advanced Data and Information Engineering (DaEng-2013), pp. 13–22. Springer, (2014) Yap, B.W.; Rani, K.A.; Aryani A.; Rahman, H.; Fong, S.; Khairudin, Z., Abdullah, N.N.: An application of oversampling, undersampling, bagging and boosting in handling imbalanced datasets. In: Proceedings of the First International Conference on Advanced Data and Information Engineering (DaEng-2013), pp. 13–22. Springer, (2014)
37.
Zurück zum Zitat Menzies, T.; Dekhtyar, A.; Distefano, J.; Greenwald, J.: Problems with precision: a response to “comments on” “data mining static code attributes to learn defect predictors”. IEEE Trans. Softw. Eng. 33(9), 637–640 (2007)CrossRef Menzies, T.; Dekhtyar, A.; Distefano, J.; Greenwald, J.: Problems with precision: a response to “comments on” “data mining static code attributes to learn defect predictors”. IEEE Trans. Softw. Eng. 33(9), 637–640 (2007)CrossRef
38.
Zurück zum Zitat Malhotra, R.; Kamal, S.: An empirical study to investigate oversampling methods for improving software defect prediction using imbalanced data. Neurocomputing 343, 120–140 (2019)CrossRef Malhotra, R.; Kamal, S.: An empirical study to investigate oversampling methods for improving software defect prediction using imbalanced data. Neurocomputing 343, 120–140 (2019)CrossRef
39.
Zurück zum Zitat Malhotra, R.; Khan, K.: A study on software defect prediction using feature extraction techniques. In: 2020 8th International Conference on Reliability, Infocom Technologies and Optimization (Trends and Future Directions)(ICRITO), pp. 1139–1144. IEEE (2020) Malhotra, R.; Khan, K.: A study on software defect prediction using feature extraction techniques. In: 2020 8th International Conference on Reliability, Infocom Technologies and Optimization (Trends and Future Directions)(ICRITO), pp. 1139–1144. IEEE (2020)
40.
Zurück zum Zitat Turabieh, H.; Mafarja, M.; Li, X.: Iterated feature selection algorithms with layered recurrent neural network for software fault prediction. Expert Syst. Appl. 122, 27–42 (2019)CrossRef Turabieh, H.; Mafarja, M.; Li, X.: Iterated feature selection algorithms with layered recurrent neural network for software fault prediction. Expert Syst. Appl. 122, 27–42 (2019)CrossRef
41.
Zurück zum Zitat Erturk, E.; Sezer, E.A.: Iterative software fault prediction with a hybrid approach. Appl. Soft Comput. 49, 1020–1033 (2016)CrossRef Erturk, E.; Sezer, E.A.: Iterative software fault prediction with a hybrid approach. Appl. Soft Comput. 49, 1020–1033 (2016)CrossRef
42.
Zurück zum Zitat Shatnawi, R.: The application of roc analysis in threshold identification, data imbalance and metrics selection for software fault prediction. Innov. Syst. Softw. Eng. 13(2–3), 201–217 (2017)CrossRef Shatnawi, R.: The application of roc analysis in threshold identification, data imbalance and metrics selection for software fault prediction. Innov. Syst. Softw. Eng. 13(2–3), 201–217 (2017)CrossRef
43.
Zurück zum Zitat Okutan, A.; Yılıdz, O.T.: Software defect prediction using bayesian networks. Empir. Softw. Eng. 19(1), 154–181 (2014)CrossRef Okutan, A.; Yılıdz, O.T.: Software defect prediction using bayesian networks. Empir. Softw. Eng. 19(1), 154–181 (2014)CrossRef
Metadaten
Titel
An Empirical Framework to Investigate the Impact of Bug Fixing on Internal Quality Attributes
verfasst von
Lov Kumar
Sahithi Tummalapalli
Lalita Bhanu Murthy
Publikationsdatum
23.11.2020
Verlag
Springer Berlin Heidelberg
Erschienen in
Arabian Journal for Science and Engineering / Ausgabe 4/2021
Print ISSN: 2193-567X
Elektronische ISSN: 2191-4281
DOI
https://doi.org/10.1007/s13369-020-05095-0

Weitere Artikel der Ausgabe 4/2021

Arabian Journal for Science and Engineering 4/2021 Zur Ausgabe

Research Article-Computer Engineering and Computer Science

Low-Rank Approximation of Circulant Matrix to a Noisy Matrix

Research Article-Computer Engineering and Computer Science

Smart Fraud Detection Framework for Job Recruitments

Research Article-Computer Engineering and Computer Science

Prolong Network Lifetime in the Wireless Sensor Networks: An Improved Approach

    Marktübersichten

    Die im Laufe eines Jahres in der „adhäsion“ veröffentlichten Marktübersichten helfen Anwendern verschiedenster Branchen, sich einen gezielten Überblick über Lieferantenangebote zu verschaffen.