Out-of-Distribution Detection in Dependent Data for Cyber-Physical Systems with Conformal Guarantees

Ramneet Kaur, Yahan Yang, O. Sokolsky, Insup Lee
{"title":"Out-of-Distribution Detection in Dependent Data for Cyber-Physical Systems with Conformal Guarantees","authors":"Ramneet Kaur, Yahan Yang, O. Sokolsky, Insup Lee","doi":"10.1145/3648005","DOIUrl":null,"url":null,"abstract":"Uncertainty in the predictions of learning-enabled components hinders their deployment in safety-critical cyber-physical systems (CPS). A shift from the training distribution of a learning-enabled component (LEC) is one source of uncertainty in the LEC’s predictions. Detection of this shift or out-of-distribution (OOD) detection on individual datapoints has therefore gained attention recently. But in many applications, inputs to CPS form a temporal sequence. Existing techniques for OOD detection in time-series data for CPS either do not exploit temporal relationships in the sequence or do not provide any guarantees on detection. We propose using deviation from the in-distribution temporal equivariance as the non-conformity measure in conformal anomaly detection framework for OOD detection in time-series data for CPS. Computing independent predictions from multiple conformal detectors based on the proposed measure and combining these predictions by Fisher’s method leads to the proposed detector CODiT with bounded false alarms. CODiT performs OOD detection on fixed-length windows of consecutive time-series datapoints by using Fisher value of the input window. We further propose performing OOD detection on real-time time-series traces of variable lengths with bounded false alarms. This can be done by using CODiT to compute Fisher values of the sliding windows in the input trace and combining these values by a merging function. Merging functions such as Harmonic Mean, Arithmetic Mean, Geometric Mean, and Bonferroni Method, etc. can be used to combine Fisher values of the sliding windows in the input trace, and the combined value can be used for OOD detection on the trace with bounded false alarm rate guarantees.\n We illustrate the efficacy of CODiT by achieving state-of-the-art results in two case studies for OOD detection on fixed-length windows. The first one is on an autonomous driving system with perception (or vision) LEC. The second case study is on a medical CPS for walking pattern or GAIT analysis where physiological (non-vision) data is collected with force-sensitive resistors attached to the subject’s body. For OOD detection on variable length traces, we consider the same case studies on the autonomous driving system and medical CPS for GAIT analysis. We report our results with four merging functions on the Fisher values computed by CODiT on the sliding windows of the input trace. We also compare the false alarm rate guarantees by these four merging functions in the autonomous driving system case study. Code, data, and trained models are available at https://github.com/kaustubhsridhar/time-series-OOD.","PeriodicalId":505086,"journal":{"name":"ACM Transactions on Cyber-Physical Systems","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2024-02-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM Transactions on Cyber-Physical Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3648005","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Uncertainty in the predictions of learning-enabled components hinders their deployment in safety-critical cyber-physical systems (CPS). A shift from the training distribution of a learning-enabled component (LEC) is one source of uncertainty in the LEC’s predictions. Detection of this shift or out-of-distribution (OOD) detection on individual datapoints has therefore gained attention recently. But in many applications, inputs to CPS form a temporal sequence. Existing techniques for OOD detection in time-series data for CPS either do not exploit temporal relationships in the sequence or do not provide any guarantees on detection. We propose using deviation from the in-distribution temporal equivariance as the non-conformity measure in conformal anomaly detection framework for OOD detection in time-series data for CPS. Computing independent predictions from multiple conformal detectors based on the proposed measure and combining these predictions by Fisher’s method leads to the proposed detector CODiT with bounded false alarms. CODiT performs OOD detection on fixed-length windows of consecutive time-series datapoints by using Fisher value of the input window. We further propose performing OOD detection on real-time time-series traces of variable lengths with bounded false alarms. This can be done by using CODiT to compute Fisher values of the sliding windows in the input trace and combining these values by a merging function. Merging functions such as Harmonic Mean, Arithmetic Mean, Geometric Mean, and Bonferroni Method, etc. can be used to combine Fisher values of the sliding windows in the input trace, and the combined value can be used for OOD detection on the trace with bounded false alarm rate guarantees. We illustrate the efficacy of CODiT by achieving state-of-the-art results in two case studies for OOD detection on fixed-length windows. The first one is on an autonomous driving system with perception (or vision) LEC. The second case study is on a medical CPS for walking pattern or GAIT analysis where physiological (non-vision) data is collected with force-sensitive resistors attached to the subject’s body. For OOD detection on variable length traces, we consider the same case studies on the autonomous driving system and medical CPS for GAIT analysis. We report our results with four merging functions on the Fisher values computed by CODiT on the sliding windows of the input trace. We also compare the false alarm rate guarantees by these four merging functions in the autonomous driving system case study. Code, data, and trained models are available at https://github.com/kaustubhsridhar/time-series-OOD.
具有共形保证的网络物理系统依赖数据中的分布外检测
学习型组件预测结果的不确定性阻碍了它们在安全关键型网络物理系统(CPS)中的部署。学习型组件(LEC)训练分布的偏移是 LEC 预测不确定性的来源之一。因此,对单个数据点进行这种偏移检测或偏离分布(OOD)检测近来备受关注。但在许多应用中,CPS 的输入是一个时间序列。现有的 CPS 时间序列数据 OOD 检测技术要么没有利用序列中的时间关系,要么不能提供任何检测保证。我们建议在保形异常检测框架中使用与分布内时间等方差的偏差作为非保形度量,用于 CPS 时间序列数据中的 OOD 检测。根据所提出的度量计算多个保形检测器的独立预测值,并通过费雪方法将这些预测值组合起来,就得到了所提出的具有有界误报的检测器 CODiT。CODiT 利用输入窗口的费雪值对连续时间序列数据点的固定长度窗口进行 OOD 检测。我们还建议对长度可变的实时时间序列轨迹进行 OOD 检测,并限制误报率。具体做法是使用 CODiT 计算输入轨迹中滑动窗口的 Fisher 值,并通过合并函数将这些值合并起来。谐波平均数、算术平均数、几何平均数、Bonferroni 法等合并函数可用于合并输入轨迹中滑动窗口的费雪值,合并值可用于轨迹上的 OOD 检测,并保证有界误报率。我们在两个固定长度窗口的 OOD 检测案例研究中取得了最先进的结果,从而说明了 CODiT 的功效。第一个案例研究是关于带有感知(或视觉)LEC 的自动驾驶系统。第二个案例研究是用于步行模式或 GAIT 分析的医疗 CPS,通过连接在受试者身体上的力敏电阻器收集生理(非视觉)数据。对于可变长度轨迹上的 OOD 检测,我们对自动驾驶系统和用于 GAIT 分析的医疗 CPS 进行了相同的案例研究。我们报告了对 CODiT 在输入轨迹的滑动窗口上计算的费雪值使用四种合并函数的结果。我们还比较了自动驾驶系统案例研究中这四种合并函数所保证的误报率。代码、数据和训练有素的模型可在 https://github.com/kaustubhsridhar/time-series-OOD 上获取。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信