{"title":"在搜索框架内基于谱的模型故障自动定位","authors":"Ting Shu , Xinru Xue , Xuesong Yin , Jinsong Xia","doi":"10.1016/j.jss.2025.112576","DOIUrl":null,"url":null,"abstract":"<div><div>Models play a crucial role in software engineering, guiding development processes and ensuring quality. Extended Finite State Machines (EFSM) effectively model complex systems, but ensuring their correctness is a challenging and critical task. This study aims to improve spectrum-based fault localization accuracy in EFSMs by automating the optimization of risk evaluation formula combinations. We propose a Model Fault Localization Framework (MFLF) that automates the generation, selection, and combination of these formulas. Within this framework, the KWOA-LTR method is developed, employing K-Means clustering to classify formulas based on their fault localization capabilities and the Sum of Squared Errors (SSE) metric to determine the optimal number <span><math><mi>K</mi></math></span> of formulas. The Whale Optimization Algorithm (WOA) is then used to select an optimal combination of risk evaluation formulas. Subsequently, a learning-to-rank algorithm constructs a fault localization ranking model that integrates the suspiciousness scores derived from these formulas. Leveraging this trained model, KWOA-LTR efficiently and precisely locates faults. Extensive empirical evaluations on 10 representative benchmark EFSMs demonstrate that KWOA-LTR improves fault localization precision, stability, and overall performance, outperforming existing methods and reducing the manual effort required. The MFLF framework has the potential to support automated spectrum-based fault localization in model-based systems. Moreover, KWOA-LTR within this framework is competitive in terms of fault localization performance. The code is publicly available at https://github.com/Renee0715/GMFLF.</div></div>","PeriodicalId":51099,"journal":{"name":"Journal of Systems and Software","volume":"230 ","pages":"Article 112576"},"PeriodicalIF":4.1000,"publicationDate":"2025-07-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Automated spectrum-based model fault localization within a search framework\",\"authors\":\"Ting Shu , Xinru Xue , Xuesong Yin , Jinsong Xia\",\"doi\":\"10.1016/j.jss.2025.112576\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>Models play a crucial role in software engineering, guiding development processes and ensuring quality. Extended Finite State Machines (EFSM) effectively model complex systems, but ensuring their correctness is a challenging and critical task. This study aims to improve spectrum-based fault localization accuracy in EFSMs by automating the optimization of risk evaluation formula combinations. We propose a Model Fault Localization Framework (MFLF) that automates the generation, selection, and combination of these formulas. Within this framework, the KWOA-LTR method is developed, employing K-Means clustering to classify formulas based on their fault localization capabilities and the Sum of Squared Errors (SSE) metric to determine the optimal number <span><math><mi>K</mi></math></span> of formulas. The Whale Optimization Algorithm (WOA) is then used to select an optimal combination of risk evaluation formulas. Subsequently, a learning-to-rank algorithm constructs a fault localization ranking model that integrates the suspiciousness scores derived from these formulas. Leveraging this trained model, KWOA-LTR efficiently and precisely locates faults. Extensive empirical evaluations on 10 representative benchmark EFSMs demonstrate that KWOA-LTR improves fault localization precision, stability, and overall performance, outperforming existing methods and reducing the manual effort required. The MFLF framework has the potential to support automated spectrum-based fault localization in model-based systems. Moreover, KWOA-LTR within this framework is competitive in terms of fault localization performance. The code is publicly available at https://github.com/Renee0715/GMFLF.</div></div>\",\"PeriodicalId\":51099,\"journal\":{\"name\":\"Journal of Systems and Software\",\"volume\":\"230 \",\"pages\":\"Article 112576\"},\"PeriodicalIF\":4.1000,\"publicationDate\":\"2025-07-29\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Journal of Systems and Software\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0164121225002456\",\"RegionNum\":2,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"COMPUTER SCIENCE, SOFTWARE ENGINEERING\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Systems and Software","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0164121225002456","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
Automated spectrum-based model fault localization within a search framework
Models play a crucial role in software engineering, guiding development processes and ensuring quality. Extended Finite State Machines (EFSM) effectively model complex systems, but ensuring their correctness is a challenging and critical task. This study aims to improve spectrum-based fault localization accuracy in EFSMs by automating the optimization of risk evaluation formula combinations. We propose a Model Fault Localization Framework (MFLF) that automates the generation, selection, and combination of these formulas. Within this framework, the KWOA-LTR method is developed, employing K-Means clustering to classify formulas based on their fault localization capabilities and the Sum of Squared Errors (SSE) metric to determine the optimal number of formulas. The Whale Optimization Algorithm (WOA) is then used to select an optimal combination of risk evaluation formulas. Subsequently, a learning-to-rank algorithm constructs a fault localization ranking model that integrates the suspiciousness scores derived from these formulas. Leveraging this trained model, KWOA-LTR efficiently and precisely locates faults. Extensive empirical evaluations on 10 representative benchmark EFSMs demonstrate that KWOA-LTR improves fault localization precision, stability, and overall performance, outperforming existing methods and reducing the manual effort required. The MFLF framework has the potential to support automated spectrum-based fault localization in model-based systems. Moreover, KWOA-LTR within this framework is competitive in terms of fault localization performance. The code is publicly available at https://github.com/Renee0715/GMFLF.
期刊介绍:
The Journal of Systems and Software publishes papers covering all aspects of software engineering and related hardware-software-systems issues. All articles should include a validation of the idea presented, e.g. through case studies, experiments, or systematic comparisons with other approaches already in practice. Topics of interest include, but are not limited to:
•Methods and tools for, and empirical studies on, software requirements, design, architecture, verification and validation, maintenance and evolution
•Agile, model-driven, service-oriented, open source and global software development
•Approaches for mobile, multiprocessing, real-time, distributed, cloud-based, dependable and virtualized systems
•Human factors and management concerns of software development
•Data management and big data issues of software systems
•Metrics and evaluation, data mining of software development resources
•Business and economic aspects of software development processes
The journal welcomes state-of-the-art surveys and reports of practical experience for all of these topics.