Deyun Lyu , Yi Li , Zhenya Zhang , Paolo Arcaini , Xiao-Yi Zhang , Fuyuki Ishikawa , Jianjun Zhao
{"title":"Fault localization of AI-enabled cyber–physical systems by exploiting temporal neuron activation","authors":"Deyun Lyu , Yi Li , Zhenya Zhang , Paolo Arcaini , Xiao-Yi Zhang , Fuyuki Ishikawa , Jianjun Zhao","doi":"10.1016/j.jss.2025.112475","DOIUrl":null,"url":null,"abstract":"<div><div>Modern <em>cyber–physical systems (CPS)</em> are evolving to integrate <em>deep neural networks (DNNs)</em> as controllers, leading to the emergence of <em>AI-enabled CPSs</em>. An inadequately trained DNN controller may produce incorrect control actions, exposing the system to safety risks. Therefore, it is crucial to localize the faulty neurons of the DNN controller responsible for the wrong decisions. However, since an unsafe system behavior typically arises from a sequence of control actions, establishing a connection between unsafe behaviors and faulty neurons is challenging. To address this problem, we propose <span>Tactical</span> that localizes faults in an AI-enabled CPS by exploiting <em>temporal neuron activation criteria</em> that capture temporal aspects of the DNN controller inferences. Specifically, based on testing results, for each neuron, <span>Tactical</span> constructs a <em>spectrum</em>, which considers the specification satisfaction and the evolution of the activation status of the neuron during the system execution. Then, starting from the spectra of all the neurons, <span>Tactical</span> applies suspiciousness metrics to compute a suspiciousness score for each neuron, from which the most suspicious ones are selected. We assess <span>Tactical</span> configured with eight <em>temporal neuron activation criteria</em>, on 3504 faulty AI-enabled CPS benchmarks spanning over different domains. The results show the effectiveness of <span>Tactical</span> w.r.t. a baseline approach.</div></div>","PeriodicalId":51099,"journal":{"name":"Journal of Systems and Software","volume":"229 ","pages":"Article 112475"},"PeriodicalIF":3.7000,"publicationDate":"2025-05-12","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/S0164121225001438","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0
Abstract
Modern cyber–physical systems (CPS) are evolving to integrate deep neural networks (DNNs) as controllers, leading to the emergence of AI-enabled CPSs. An inadequately trained DNN controller may produce incorrect control actions, exposing the system to safety risks. Therefore, it is crucial to localize the faulty neurons of the DNN controller responsible for the wrong decisions. However, since an unsafe system behavior typically arises from a sequence of control actions, establishing a connection between unsafe behaviors and faulty neurons is challenging. To address this problem, we propose Tactical that localizes faults in an AI-enabled CPS by exploiting temporal neuron activation criteria that capture temporal aspects of the DNN controller inferences. Specifically, based on testing results, for each neuron, Tactical constructs a spectrum, which considers the specification satisfaction and the evolution of the activation status of the neuron during the system execution. Then, starting from the spectra of all the neurons, Tactical applies suspiciousness metrics to compute a suspiciousness score for each neuron, from which the most suspicious ones are selected. We assess Tactical configured with eight temporal neuron activation criteria, on 3504 faulty AI-enabled CPS benchmarks spanning over different domains. The results show the effectiveness of Tactical w.r.t. a baseline approach.
期刊介绍:
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.