北京航空航天大学学报 ›› 2009, Vol. 35 ›› Issue (10): 1201-1205.

• 论文 • 上一篇    下一篇

基于BBN的故障定位技术

柳永坡1, 金茂忠1, 贾晓霞1, 刘雪梅2   

  1. 1. 北京航空航天大学 计算机学院, 北京 100191;
    2. 北京城市学院 软件学部, 北京 100083
  • 收稿日期:2008-10-21 出版日期:2009-10-31 发布日期:2010-09-16
  • 作者简介:柳永坡(1971-),男,辽宁辽阳人,博士生,liuypo@sei.buaa.edu.cn.
  • 基金资助:

    国家自然科学基金资助项目(60603039)

BBN-based fault localization technique

Liu Yongpo1, Jin Maozhong1, Jia Xiaoxia1, Liu Xuemei2   

  1. 1. School of Computer Science and Technology, Beijing University of Aeronautics and Astronautics, Beijing 100191, China;
    2. College of Software, Beijing City University, Beijing 100083, China
  • Received:2008-10-21 Online:2009-10-31 Published:2010-09-16

摘要: 故障定位的目的是帮助程序员寻找引发失效的原因或故障位置,以加快调试过程.故障和失效间的关系往往非常复杂,难以直接描述故障到失效的转化.分析了采用差异分析的方法,提出基于可疑模式,构建故障推理贝叶斯网络,节点由可疑模式及其方法调用者构成;介绍了贝叶斯网络构建算法,各个相关概率的定义及BBN(Bayesian Belief Network)中各个边的条件概率计算公式.基于推理算法,得到包含故障的模块,并计算得到每个模块包含故障的概率.提出评价方法,并进行了实验验证,取得了平均0.761的定准率和0.737的定全率,定位结果良好有应用价值.

Abstract: Fault localization techniques help programmers find out the locations and the causes of the faults and accelerate the debugging process. The relation between the fault and the failure is usually complicated, making it hard to deduce how a fault causes the failure. At present, analysis of variance is broadly used in many recent correlative researches. A Bayesian belief network(BBN) for fault reasoning was constructed based on the suspicious pattern, whose nodes consist of the suspicious pattern and the callers of the methods that constitute the suspicious pattern. The constructing algorithm of the BBN, the correlative probabilities, and the formula for the conditional probabilities of each arc of the BBN were defined. A reasoning algorithm based on the BBN was proposed, through which the faulty module can be found and the probability for each module containing the fault can be calculated. An evaluation method was proposed. Experiments were executed to evaluation the fault localization technique. The data demonstrated that 0.761 in accuracy and 0.737 in recall on average were achieved by this technique. It is very effective in fault localization and has high practical value.

中图分类号: 


版权所有 © 《北京航空航天大学学报》编辑部
通讯地址:北京市海淀区学院路37号 北京航空航天大学学报编辑部 邮编:100191 E-mail:jbuaa@buaa.edu.cn
本系统由北京玛格泰克科技发展有限公司设计开发