基于统计的软件故障预测指标阈值设置方法:在固件项目中的工业经验
Statistical-Based Metric Threshold Setting Method for Software Fault Prediction in Firmware Projects: An Industrial Experience
AI总结:
本文提出基于统计的软件故障预测指标阈值设置方法,通过实证研究验证了其在工业环境中的有效性,为故障预测提供可解释的解决方案。
摘要:
确保嵌入式固件软件的质量至关重要,特别是在安全关键领域,其中符合功能安全标准(ISO 26262)需要软件可靠性的强保证。虽然基于机器学习的故障预测模型已显示出高准确性,但其缺乏可解释性限制了其在工业环境中的应用。开发者需要可以立即应用于软件质量保证过程并指导缺陷缓解策略的行动见解。在本文中,我们提出了一种结构化过程,用于定义适用于工业环境中的故障检测工作流的上下文特定软件度量阈值。我们的方法支持跨项目故障预测,通过从一组项目中推导阈值并应用于独立开发的固件,从而在不重新训练或进行领域特定调整的情况下实现跨相似软件系统的重用。我们分析了三个由工业合作伙伴提供的现实世界C嵌入式固件项目,使用Coverity和Understand静态分析工具提取软件度量。通过统计分析和假设检验,我们识别出区分故障和非故障函数的判别度量,并推导出经验阈值值。通过实验评估验证了推导出的阈值,证明其在高精度识别易故障函数方面是有效的。结果确认推导出的阈值可以作为故障预测的可解释解决方案,符合行业标准和SQA实践。这种方法为黑箱AI模型提供了实用的替代方案,使开发人员能够系统地评估软件质量,采取预防措施,并将基于度量的故障预测集成到工业开发流程中,以减轻软件故障。
英文摘要:
Ensuring software quality in embedded firmware is critical, especially in safety-critical domains where compliance with functional safety standards (ISO 26262) requires strong guarantees of software reliability. While machine learning-based fault prediction models have demonstrated high accuracy, their lack of interpretability limits their adoption in industrial settings. Developers need actionable insights that can be directly employed in software quality assurance processes and guide defect mitigation strategies. In this paper, we present a structured process for defining context-specific software metric thresholds suitable for integration into fault detection workflows in industrial settings. Our approach supports cross-project fault prediction by deriving thresholds from one set of projects and applying them to independently developed firmware, thereby enabling reuse across similar software systems without retraining or domain-specific tuning. We analyze three real-world C-embedded firmware projects provided by an industrial partner, using Coverity and Understand static analysis tools to extract software metrics. Through statistical analysis and hypothesis testing, we identify discriminative metrics and derived empirical threshold values capable of distinguishing faulty from non-faulty functions. The derived thresholds are validated through an experimental evaluation, demonstrating their effectiveness in identifying fault-prone functions with high precision. The results confirm that the derived thresholds can serve as an interpretable solution for fault prediction, aligning with industry standards and SQA practices. This approach provides a practical alternative to black-box AI models, allowing developers to systematically assess software quality, take preventive actions, and integrate metric-based fault prediction into industrial development workflows to mitigate software faults.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。