IEEE Access (Jan 2021)

Out-of-Distribution Detection for Deep Neural Networks With Isolation Forest and Local Outlier Factor

  • Siyu Luan,
  • Zonghua Gu,
  • Leonid B. Freidovich,
  • Lili Jiang,
  • Qingling Zhao

DOI
https://doi.org/10.1109/ACCESS.2021.3108451
Journal volume & issue
Vol. 9
pp. 132980 – 132989

Abstract

Read online

Deep Neural Networks (DNNs) are extensively deployed in today’s safety-critical autonomous systems thanks to their excellent performance. However, they are known to make mistakes unpredictably, e.g., a DNN may misclassify an object if it is used for perception, or issue unsafe control commands if it is used for planning and control. One common cause for such unpredictable mistakes is Out-of-Distribution (OOD) input samples, i.e., samples that fall outside of the distribution of the training dataset. We present a framework for OOD detection based on outlier detection in one or more hidden layers of a DNN with a runtime monitor based on either Isolation Forest (IF) or Local Outlier Factor (LOF). Performance evaluation indicates that LOF is a promising method in terms of both the Machine Learning metrics of precision, recall, F1 score and accuracy, as well as computational efficiency during testing.

Keywords