IDEAS home Printed from https://ideas.repec.org/a/spr/ijsaem/v15y2024i7d10.1007_s13198-024-02326-7.html
   My bibliography  Save this article

Enhancing software code smell detection with modified cost-sensitive SVM

Author

Listed:
  • Praveen Singh Thakur

    (MNIT Jaipur)

  • Mahipal Jadeja

    (MNIT Jaipur)

  • Satyendra Singh Chouhan

    (MNIT Jaipur)

Abstract

Code Smell detection is a crucial task in software systems. The code smell can negatively impact software maintenance and evolution. The machine learning-based code smell detection model suffers from the data imbalance problem where the number of instances belonging to both classes significantly differ. Existing oversampling approaches, such as SMOTE, have addressed this issue by generating synthetic samples for the minority class to balance the code smell dataset. However, the distribution of code smell datasets often overlaps, meaning randomly generated instances can disrupt the decision boundary between the two classes. This article addresses the problem of imbalanced data in code smell prediction. It presents a novel approach called MC-CSP (Modified Cost-sensitive approach for Code Smell Prediction). Unlike existing cost-sensitive based approaches, it employs a novel approach of allocating different weights to each positive instance, considering their role and importance in the classification task. The MC-CSP calculates the Margin Violation Value (MVV) for each instance. Subsequently, based on the MVV’s values, it identifies minority instances that have been misclassified or classified near the decision boundary. In order to enhance the classifier’s performance for the minority class, MC-CSP updates the weights of such minority instances based on their geometric proximity to the decision boundary. The proposed MC-CSP model has been evaluated on seven code smell datasets and compared with the state-of-the-art approaches. The experimental results demonstrate that MC-CSP outperforms other state-of-the-art methods by improving the prediction performance by $$1.5\%$$ 1.5 % (minimum) to $$20.29\%$$ 20.29 % (maximum).

Suggested Citation

  • Praveen Singh Thakur & Mahipal Jadeja & Satyendra Singh Chouhan, 2024. "Enhancing software code smell detection with modified cost-sensitive SVM," International Journal of System Assurance Engineering and Management, Springer;The Society for Reliability, Engineering Quality and Operations Management (SREQOM),India, and Division of Operation and Maintenance, Lulea University of Technology, Sweden, vol. 15(7), pages 3210-3224, July.
  • Handle: RePEc:spr:ijsaem:v:15:y:2024:i:7:d:10.1007_s13198-024-02326-7
    DOI: 10.1007/s13198-024-02326-7
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s13198-024-02326-7
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s13198-024-02326-7?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    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:spr:ijsaem:v:15:y:2024:i:7:d:10.1007_s13198-024-02326-7. 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.

    We have no bibliographic references for this item. You can help adding them by using 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.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.