arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2008.11856cs.LGcs.SEstat.ML
收藏

基于混合深度神经网络的黑箱系统状态模型推断

Hybrid Deep Neural Networks to Infer State Models of Black-Box Systems

University of Calgary(卡尔加里大学)

Mohammad Jafar Mashhadi, Hadi Hemmati

摘要:

推断运行软件系统的行为模型对于几个自动化软件工程任务非常有用,例如程序理解、异常检测和测试。大多数现有的动态模型推理技术是白盒的,即,它们需要对源代码进行检测以获得运行时跟踪。然而,在许多系统中,插装整个源代码是不可能的(例如,当使用黑盒第三方库时)或者可能非常昂贵。不幸的是,大多数检测状态的黑盒技术要么是单变量的,要么对数据分布做出假设,要么对过去很长一段时间的行为学习能力有限。为了克服上述问题,在本文中,我们提出了一种混合深度神经网络,它接受一组时间序列作为输入,系统的每个输入/输出信号一个,并应用一组卷积和递归层来学习信号和模式之间的非线性相关性。我们已经将我们的方法应用于一个真正的无人机自动驾驶解决方案,该解决方案来自我们的行业合作伙伴,具有50万行C代码。随着时间的推移,我们随机运行了888个最近的系统级测试用例和推断状态。我们与几个传统的时间序列变化点检测技术的比较表明,我们的方法提高了他们的性能高达102%,在寻找状态变化点,F1得分衡量。我们还表明,我们的状态分类算法提供了平均90.45%的F1分数,这使传统的分类算法提高了17%。

英文摘要:

Inferring behavior model of a running software system is quite useful for several automated software engineering tasks, such as program comprehension, anomaly detection, and testing. Most existing dynamic model inference techniques are white-box, i.e., they require source code to be instrumented to get run-time traces. However, in many systems, instrumenting the entire source code is not possible (e.g., when using black-box third-party libraries) or might be very costly. Unfortunately, most black-box techniques that detect states over time are either univariate, or make assumptions on the data distribution, or have limited power for learning over a long period of past behavior. To overcome the above issues, in this paper, we propose a hybrid deep neural network that accepts as input a set of time series, one per input/output signal of the system, and applies a set of convolutional and recurrent layers to learn the non-linear correlations between signals and the patterns, over time. We have applied our approach on a real UAV auto-pilot solution from our industry partner with half a million lines of C code. We ran 888 random recent system-level test cases and inferred states, over time. Our comparison with several traditional time series change point detection techniques showed that our approach improves their performance by up to 102%, in terms of finding state change points, measured by F1 score. We also showed that our state classification algorithm provides on average 90.45% F1 score, which improves traditional classification algorithms by up to 17%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑