IDEAS home Printed from https://ideas.repec.org/a/gam/jsusta/v15y2023i6p5517-d1103190.html
   My bibliography  Save this article

Software Defect Prediction Analysis Using Machine Learning Techniques

Author

Listed:
  • Aimen Khalid

    (Department of Computer Science, Federal Urdu University of Arts, Science and Technology Islamabad, Islamabad 44000, Pakistan
    These authors contributed equally to this work.)

  • Gran Badshah

    (Department of Computer Science, College of Computer Science, King Khalid University Abha, Abha 61413, Saudi Arabia
    These authors contributed equally to this work.)

  • Nasir Ayub

    (Department of Software Engineering, Faculty of Computing, Capital University of Science and Technology, Islamabad 44000, Pakistan
    These authors contributed equally to this work.)

  • Muhammad Shiraz

    (Department of Computer Science, Federal Urdu University of Arts, Science and Technology Islamabad, Islamabad 44000, Pakistan
    These authors contributed equally to this work.)

  • Mohamed Ghouse

    (Department of Computer Science, College of Computer Science, King Khalid University Abha, Abha 61413, Saudi Arabia
    These authors contributed equally to this work.)

Abstract

There is always a desire for defect-free software in order to maintain software quality for customer satisfaction and to save testing expenses. As a result, we examined various known ML techniques and optimized ML techniques on a freely available data set. The purpose of the research was to improve the model performance in terms of accuracy and precision of the dataset compared to previous research. As previous investigations show, the accuracy can be further improved. For this purpose, we employed K-means clustering for the categorization of class labels. Further, we applied classification models to selected features. Particle Swarm Optimization is utilized to optimize ML models. We evaluated the performance of models through precision, accuracy, recall, f-measure, performance error metrics, and a confusion matrix. The results indicate that all the ML and optimized ML models achieve the maximum results; however, the SVM and optimized SVM models outperformed with the highest achieved accuracy, 99% and 99.80%, respectively. The accuracy of NB, Optimized NB, RF, Optimized RF and ensemble approaches are 93.90%, 93.80%, 98.70%, 99.50%, 98.80% and 97.60, respectively. In this way, we achieve maximum accuracy compared to previous studies, which was our goal.

Suggested Citation

  • Aimen Khalid & Gran Badshah & Nasir Ayub & Muhammad Shiraz & Mohamed Ghouse, 2023. "Software Defect Prediction Analysis Using Machine Learning Techniques," Sustainability, MDPI, vol. 15(6), pages 1-17, March.
  • Handle: RePEc:gam:jsusta:v:15:y:2023:i:6:p:5517-:d:1103190
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2071-1050/15/6/5517/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2071-1050/15/6/5517/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Elena N. Akimova & Alexander Yu. Bersenev & Artem A. Deikov & Konstantin S. Kobylkin & Anton V. Konygin & Ilya P. Mezentsev & Vladimir E. Misilov, 2021. "A Survey on Software Defect Prediction Using Deep Learning," Mathematics, MDPI, vol. 9(11), pages 1-14, May.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Ahmed Abdu & Zhengjun Zhai & Redhwan Algabri & Hakim A. Abdo & Kotiba Hamad & Mugahed A. Al-antari, 2022. "Deep Learning-Based Software Defect Prediction via Semantic Key Features of Source Code—Systematic Survey," Mathematics, MDPI, vol. 10(17), pages 1-26, August.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jsusta:v:15:y:2023:i:6:p:5517-:d:1103190. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.