HEDP:一种基于人误机制的软件缺陷早期预测方法
HEDP: A Method for Early Forecasting Software Defects based on Human Error Mechanisms
摘要:
作为软件缺陷的主要原因,人为错误是理解的关键,也许是预测和避免它们的关键。很少有研究根据导致缺陷的认知错误来预测缺陷。本文提出了一种方法来预测软件缺陷,通过知识的认知机制的人为错误。我们的理论是,软件缺陷背后的主要过程是一个容易出错的场景触发了人类的错误模式,心理学家已经观察到这种模式在不同的活动中反复出现。软件缺陷可以通过识别这些场景来预测,由典型错误模式的知识指导。所提出的想法强调预测可能缺陷的确切位置和形式。我们进行了两个案例研究,以证明和验证这种方法,55名程序员在编程比赛和5分析师作为用户的方法。我们发现令人印象深刻的是,该方法能够在需求阶段预测代码中发现的22种特定类型缺陷中的7种(31.8%)的确切位置和形式。预测的缺陷往往是常见的缺陷:他们的出现构成的缺陷总数的75.7%,在55个开发的程序,他们每个人都介绍了至少两个人。被预测的程序员引入的缺陷的比例平均为(在所有程序员中)75%。此外,这些预测的缺陷在调试过程中是高度持久的。如果使用预测成功地防止了这些缺陷,这可以节省46.2%的调试迭代。在软件开发的早期阶段预测可能的缺陷的确切位置和形式的这种出色的能力,建议该方法对缺陷预防和早期检测有很大的好处。
英文摘要:
As the primary cause of software defects, human error is the key to understanding, and perhaps to predicting and avoiding them. Little research has been done to predict defects on the basis of the cognitive errors that cause them. This paper proposes an approach to predicting software defects through knowledge about the cognitive mechanisms of human errors. Our theory is that the main process behind a software defect is that an error-prone scenario triggers human error modes, which psychologists have observed to recur across diverse activities. Software defects can then be predicted by identifying such scenarios, guided by this knowledge of typical error modes. The proposed idea emphasizes predicting the exact location and form of a possible defect. We conducted two case studies to demonstrate and validate this approach, with 55 programmers in a programming competition and 5 analysts serving as the users of the approach. We found it impressive that the approach was able to predict, at the requirement phase, the exact locations and forms of 7 out of the 22 (31.8%) specific types of defects that were found in the code. The defects predicted tended to be common defects: their occurrences constituted 75.7% of the total number of defects in the 55 developed programs; each of them was introduced by at least two persons. The fraction of the defects introduced by a programmer that were predicted was on average (over all programmers) 75%. Furthermore, these predicted defects were highly persistent through the debugging process. If the prediction had been used to successfully prevent these defects, this could have saved 46.2% of the debugging iterations. This excellent capability of forecasting the exact locations and forms of possible defects at the early phases of software development recommends the approach for substantial benefits to defect prevention and early detection.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。