IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v12y2024i13p2113-d1429708.html
   My bibliography  Save this article

Software Fault Localization Based on Weighted Association Rule Mining and Complex Networks

Author

Listed:
  • Wentao Wu

    (School of Reliability and Systems Engineering, Beihang University, Beijing 100191, China
    Science and Technology on Reliability and Environmental Engineering Laboratory, Beijing 100191, China)

  • Shihai Wang

    (School of Reliability and Systems Engineering, Beihang University, Beijing 100191, China
    Science and Technology on Reliability and Environmental Engineering Laboratory, Beijing 100191, China
    State Key Laboratory of Software Development Environment, Beijing 100191, China)

  • Bin Liu

    (School of Reliability and Systems Engineering, Beihang University, Beijing 100191, China
    Science and Technology on Reliability and Environmental Engineering Laboratory, Beijing 100191, China
    State Key Laboratory of Software Development Environment, Beijing 100191, China)

Abstract

Software fault localization technology aims to identify suspicious statements that cause software failures, which is crucial for ensuring software quality. Spectrum-based software fault location (SBFL) technology calculates the suspiciousness of each statement by analyzing the correlation between statement coverage information and execution results in test cases. SBFL has attracted increasing attention from scholars due to its high efficiency and scalability. However, existing SBFL studies have shown that a large number of statements share the same suspiciousness, which hinders software debuggers from quickly identifying the location of faulty statements. To address this challenge, we propose an SBFL model based on weighted association rule mining and complex networks: FL-WARMCN. The algorithm first uses Jaccard to measure the distance between passing and failing test cases, and applies it as the weight of passing test cases. Next, FL-WARMCN calculates the initial suspiciousness of each statement based on the program spectrum data. Then, the FL-WARMCN model utilizes a weighted association rule mining algorithm to obtain the correlation relationships between statements and models the network based on this. In the network, the suspiciousness of statements is used as node weights, and the correlation between statements is used as edge weights. We chose the eigenvector centrality that takes into account the degree centrality of statements and the importance of neighboring statements to calculate the importance of each statement, and used it as a weight to incorporate into the weighted suspiciousness calculation of the statement. Finally, we applied the FL-WARMCN model for experimental validation on the Defects4J dataset. The results showed that the model was significantly superior to other baselines. In addition, we analyzed the impact of different node and edge weights on model performance.

Suggested Citation

  • Wentao Wu & Shihai Wang & Bin Liu, 2024. "Software Fault Localization Based on Weighted Association Rule Mining and Complex Networks," Mathematics, MDPI, vol. 12(13), pages 1-21, July.
  • Handle: RePEc:gam:jmathe:v:12:y:2024:i:13:p:2113-:d:1429708
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/12/13/2113/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/12/13/2113/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Dorogovtsev, S.N. & Mendes, J.F.F., 2003. "Evolution of Networks: From Biological Nets to the Internet and WWW," OUP Catalogue, Oxford University Press, number 9780198515906.
    2. Wandelt, Sebastian & Shi, Xing & Sun, Xiaoqian, 2021. "Estimation and improvement of transportation network robustness by exploiting communities," Reliability Engineering and System Safety, Elsevier, vol. 206(C).
    3. Zhou, Ying & Li, Chenshuang & Ding, Lieyun & Sekula, Przemyslaw & Love, Peter E.D. & Zhou, Cheng, 2019. "Combining association rules mining with complex networks to monitor coupled risks," Reliability Engineering and System Safety, Elsevier, vol. 186(C), pages 194-208.
    4. Zhengqi He & Dechun Huang & Junmin Fang & Qingyuan Zhu, 2021. "Social Stability Risk Diffusion of Large Complex Engineering Projects Based on an Improved SIR Model: A Simulation Research on Complex Networks," Complexity, Hindawi, vol. 2021, pages 1-17, December.
    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. Ya-Chun Gao & Zong-Wen Wei & Bing-Hong Wang, 2013. "Dynamic Evolution Of Financial Network And Its Relation To Economic Crises," International Journal of Modern Physics C (IJMPC), World Scientific Publishing Co. Pte. Ltd., vol. 24(02), pages 1-10.
    2. Wang, Qingyun & Duan, Zhisheng & Chen, Guanrong & Feng, Zhaosheng, 2008. "Synchronization in a class of weighted complex networks with coupling delays," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 387(22), pages 5616-5622.
    3. F. W. S. Lima, 2015. "Evolution of egoism on semi-directed and undirected Barabási-Albert networks," International Journal of Modern Physics C (IJMPC), World Scientific Publishing Co. Pte. Ltd., vol. 26(12), pages 1-9.
    4. Kurmankhojayev, Daniyar & Li, Guoyuan & Chen, Anthony, 2024. "Link criticality index: Refinement, framework extension, and a case study," Reliability Engineering and System Safety, Elsevier, vol. 243(C).
    5. L. da F. Costa & L. E.C. da Rocha, 2006. "A generalized approach to complex networks," The European Physical Journal B: Condensed Matter and Complex Systems, Springer;EDP Sciences, vol. 50(1), pages 237-242, March.
    6. Perc, Matjaž, 2010. "Zipf’s law and log-normal distributions in measures of scientific output across fields and institutions: 40 years of Slovenia’s research as an example," Journal of Informetrics, Elsevier, vol. 4(3), pages 358-364.
    7. Florian Blöchl & Fabian J. Theis & Fernando Vega-Redondo & Eric O'N. Fisher, 2010. "Which Sectors of a Modern Economy are most Central?," CESifo Working Paper Series 3175, CESifo.
    8. M. C. González & A. O. Sousa & H. J. Herrmann, 2004. "Opinion Formation On A Deterministic Pseudo-Fractal Network," International Journal of Modern Physics C (IJMPC), World Scientific Publishing Co. Pte. Ltd., vol. 15(01), pages 45-57.
    9. A. Chatterjee, 2009. "Kinetic models for wealth exchange on directed networks," The European Physical Journal B: Condensed Matter and Complex Systems, Springer;EDP Sciences, vol. 67(4), pages 593-598, February.
    10. D Dylan Johnson Restrepo & Neil F Johnson, 2017. "Unraveling the Collective Dynamics of Complex Adaptive Biomedical Systems," Current Trends in Biomedical Engineering & Biosciences, Juniper Publishers Inc., vol. 8(5), pages 118-132, September.
    11. A. Santiago & J. P. Cárdenas & M. L. Mouronte & V. Feliu & R. M. Benito, 2008. "Modeling The Topology Of Sdh Networks," International Journal of Modern Physics C (IJMPC), World Scientific Publishing Co. Pte. Ltd., vol. 19(12), pages 1809-1820.
    12. Slobodan Maletić & Danijela Horak & Milan Rajković, 2012. "Cooperation, Conflict And Higher-Order Structures Of Social Networks," Advances in Complex Systems (ACS), World Scientific Publishing Co. Pte. Ltd., vol. 15(supp0), pages 1-29.
    13. Giorgio Fagiolo & Marco Valente & Nicolaas J. Vriend, 2009. "A Dynamic Model of Segregation in Small-World Networks," Lecture Notes in Economics and Mathematical Systems, in: Ahmad K. Naimzada & Silvana Stefani & Anna Torriero (ed.), Networks, Topology and Dynamics, pages 111-126, Springer.
    14. H. Lin & C.-X. Wu, 2006. "Dynamics of congestion transition triggered by multiple walkers on complex networks," The European Physical Journal B: Condensed Matter and Complex Systems, Springer;EDP Sciences, vol. 51(4), pages 543-547, June.
    15. Derzsi, A. & Derzsy, N. & Káptalan, E. & Néda, Z., 2011. "Topology of the Erasmus student mobility network," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 390(13), pages 2601-2610.
    16. Li, Siping & Zhou, Yaoming & Kundu, Tanmoy & Sheu, Jiuh-Biing, 2021. "Spatiotemporal variation of the worldwide air transportation network induced by COVID-19 pandemic in 2020," Transport Policy, Elsevier, vol. 111(C), pages 168-184.
    17. Ming Fang & Yi Zhang & Mengjue Zhu & Shaopei Chen, 2022. "Cause Mechanism of Metro Collapse Accident Based on Risk Coupling," IJERPH, MDPI, vol. 19(4), pages 1-18, February.
    18. Gómez-Gardeñes, J. & Moreno, Y. & Floría, L.M., 2005. "Michaelis–Menten dynamics in complex heterogeneous networks," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 352(2), pages 265-281.
    19. G. De Masi & Y. Fujiwara & M. Gallegati & B. Greenwald & J. E. Stiglitz, 2009. "An Analysis of the Japanese Credit Network," Papers 0901.2384, arXiv.org, revised Nov 2010.
    20. Gaogeng Zhu & Guoming Chen & Jingyu Zhu & Xiangkun Meng & Xinhong Li, 2022. "Modeling the Evolution of Major Storm-Disaster-Induced Accidents in the Offshore Oil and Gas Industry," IJERPH, MDPI, vol. 19(12), pages 1-27, June.

    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:jmathe:v:12:y:2024:i:13:p:2113-:d:1429708. 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.