Skip to main content

Defect Prediction of Cross Projects Using PCA and Ensemble Learning Approach

  • Conference paper
  • First Online:
Micro-Electronics and Telecommunication Engineering

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 106))

Abstract

Cross-project defect prediction (CPDP) is a technique of detecting defects in software modules in which the training and the testing projects for the classification model are different. The effective prediction leads to a more reliable software. The merging of dataset from varying sources results to an imbalanced dataset. The complex structure and the imbalance data make it a challenge for an effective cross-project defect prediction. To overcome these issues, in this paper, we propose a cross-project defect prediction framework. In the first stage of this framework, PCA is applied for dimensionality reduction of the dataset into two components. In the second phase, SMOTE technique of data sampling is applied to handle the class imbalance problem. Then the ensemble classifiers random forest and XGBoost are applied for an effective defect-prediction model. We have conducted the experiments on eight open source software projects. The results are compared with few baseline techniques. The results indicate that the proposed framework gave comparable performance of cross-project defect prediction to some baseline methods.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 219.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 279.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 279.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Caglayan B, Misirli AT, Bener AB, Miranskyy A (2015) Predicting defective modules in different test phases. Softw Quality J 23(2):205–227

    Article  Google Scholar 

  2. Monden A et al (2013) Assessing the cost effectiveness of fault prediction in acceptance testing. IEEE Trans Softw Eng 39(10):1345–1357

    Article  Google Scholar 

  3. Hall T, Beecham S, Bowes D, Gray D, Counsell S (2012) A systematic literature review on fault prediction performance in software engineering. IEEE Trans Softw Eng 38(6):1276–1304

    Google Scholar 

  4. Kitchenham BA, Mendes E, Travassos GH (2007) Cross versus within company cost estimation studies: systematic review. IEEE Trans Softw Eng 33(5):316329

    Article  Google Scholar 

  5. Anushree A, Malhotra R (2019) Cross project defect prediction for open source software. Int J Inf Technol 1–15. https://doi.org/10.1007/s41870-019-00299-6

  6. Turhan B, Menzies T, Bener AB, Di Stefano J (2009) On the relative value of cross-company and within-company data for defect prediction. Empirical Software Eng 14(5):540–578

    Article  Google Scholar 

  7. Zimmermann T, Nagappan N, Gall H, Giger E, Murphy B (2009) Cross-project defect prediction. In: Proceedings of the 7th joint meeting of the european software engineering conference and the ACM SIGSOFT symposium on the foundations of software engineering (ESEC/FSE), pp 91–100

    Google Scholar 

  8. Ma Y, Luo G, Zeng X, Chen A (2012) Transfer learning for cross-company software defect prediction. Inf Softw Technol 54(3):248–256

    Article  Google Scholar 

  9. Nam J, Pan SJ, Kim S (2013) Transfer defect learning. In: Proceedings of the 35th international conference on software engineering (ICSE), pp 382–391

    Google Scholar 

  10. Herbold S (2013) Training data selection for cross-project defect prediction. In: Proceedings of the 9th international conference on predictive models in software engineering (PROMISE), pp 6–16

    Google Scholar 

  11. Jing XY, Wu F, Dong X, Qi F, Xu B (2015) Heterogeneous cross company defect prediction by unified metric representation and CCA-based transfer learning. In: Proceedings of the 10th joint meeting on foundations of software engineering, pp 496–507

    Google Scholar 

  12. Nam J, Kim S (2015) Heterogeneous defect prediction. In: Proceeding ESEC/FSE 2015 proceedings of the 2015 10th joint meeting on foundations of software engineering, ACM. New York, pp 508–519. https://doi.org/10.1145/2786805.2786814

  13. Lin C, Fang B, Shang Z, Tang Y (2015) Negative samples reduction in cross-company software defects prediction. Inf Softw Technol 62:67–77

    Article  Google Scholar 

  14. Ryu D, Choi O, Baik J (2016) Value-cognitive boosting with a support vector machine for crossproject defect prediction. Empirical Softw Eng. https://doi.org/10.1007/s10664-014-9346-4

    Article  Google Scholar 

  15. Zhang, F et al. (2016) Cross-project defect prediction using a connectivity-based unsupervised classifier. In: Proceedings of the 38th international conference on software engineering. ACM

    Google Scholar 

  16. Xia X et al (2016) Hydra: massively compositional model for cross-project defect prediction. IEEE Trans Softw Eng 42(10):977–998

    Google Scholar 

  17. Herbold S et al (2017) A comparative study to benchmark cross-project defect prediction approaches. IEEE Trans Softw Eng

    Google Scholar 

  18. Chawla NV, Bowyer KW, Hall LO, Kegelmeyer WP (2002) SMOTE: synthetic minority over-sampling technique. J Artif Intell Res 16:321–357

    Article  Google Scholar 

  19. He P, He Y, Yu L, Li B (2018) An improved method for cross-project defect prediction by simplifying training data. Math Probl Eng 18, Article ID 2650415

    Google Scholar 

  20. Limsettho N, Bennin, K, Keung J, Hata H, Matsumoto K (2018) Cross project defect prediction using class distribution estimation and oversampling. Inf Softw Technol 100. https://doi.org/10.1016/j.infsof.2018.04.001

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Lipika Goel .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Goel, L., Sharma, M., Khatri, S.K., Damodaran, D. (2020). Defect Prediction of Cross Projects Using PCA and Ensemble Learning Approach. In: Sharma, D.K., Balas, V.E., Son, L.H., Sharma, R., Cengiz, K. (eds) Micro-Electronics and Telecommunication Engineering. Lecture Notes in Networks and Systems, vol 106. Springer, Singapore. https://doi.org/10.1007/978-981-15-2329-8_31

Download citation

  • DOI: https://doi.org/10.1007/978-981-15-2329-8_31

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-15-2328-1

  • Online ISBN: 978-981-15-2329-8

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics