
第21卷第7期 2013年7月
文章编号
1004-924X(2013)07-1865-08
光学精密工程
Optics and Precision Engineering
Vol. 21No.7
Jul.2013
似然关系模型在航天软件缺陷预测中的应用
陈媛“,沈湘衡,王安邦,宋元章
(中国科学院长春光学精密机械与物理研究所,吉林长春130033)
摘要:将似然关系模型在描述和推理多属性类之间关系及其不确定性知识方面的优势用于预测软件缺陷,提出了航天软件缺陷预测模型PRM_METHOD。首先,提出了基于软件测试的软件缺陷分类方法,以软件缺陷类关系为例分析了似然关系模型用于航天软件缺陷预测的理论依据;然后,在对人员能力、缺陷数量特征等数据进行定义和泛化等预处理的基磁上,描述了提出的预测模型PRM_METHOD,详细阐述其结构、学习过程以及预测过程,并针对数据集的分类操作提出了基于弥合数据缝隙的<-均值聚类方法。最后,以某航天项目软件为例验证了模型PRM_METHOD的实现过程,并以实际测试工作中产生的历史数据作为训练集和验证集进行实验验证。验证结果显示,验证集的记录与预测结果的平均绝对偏差均值为0.0868,即模型的预测精度为0.9132,表明该模型对关联关系较为复杂的航天软件缺陷有较好的预测精度。
关
键
调:软件缺陷预测;似然关系模型;缺陷分类;聚类分析
中图分类号:TP311.5
文献标识码:A
doi;10.3788/OPE,20132107.1865
Applicationofprobabilisticrelationalmodelto
aerospacesoftwaredefectprediction
CHENYuan',SHENXiang-heng,WANGAn-bang,SONGYuan-zhang
(Changchun Institute of Optics,FineMechanics andPhysics, ChineseAcademyofSciences,Changchun130033,China) +Correspondingauthor,E-mail:chris_chen226@163.com
Abstract: An aerospace software defect prediction model PRM_METHOD was proposed by use of the advantage of probabilistic relational model in describing and reasoning the relationship between multi-attribute classes and their uncertainty knowledge. First, a software defect classification method based on software test was proposed, and the theoretical basis of the application of probabilistic relational model to the aerospace software defect prediction was analyzed via the relationship between software defect classes. Then, under the definition and generalization of staff capacity and the feature of defect quantity, the model PRM_METHOD was described with its structure, learning and predict process. Moreover, an improved k-average clustering algorithm based on closing data gap was proposed aim at data set classification operation. Finally, an aerospace software was taken as the example to actualize the model, and the practical testing data were used as the training set and validation set to validate it as well. The results show that the average of mean absolute deviation between the validation set and
收稿日期:2012-08-08;修订日期:2012-10-11。
基金项目:国家863高技术研究发展计划资助项目(No,2011AA7031024G)