Learning Signal Temporal Logic through Neural Network for Interpretable Classification

Danyang Li, Mingyu Cai, Cristian-Ioan Vasile, Roberto Tron
10/4/2022
cs.FLcs.LG

Official code: danyangl6/NN-TLI (11 stars, Python, last commit 2025-05-30).

Abstract

Machine learning techniques using neural networks have achieved promising success for time-series data classification. However, the models that they produce are challenging to verify and interpret.

Show full abstract

In this paper, we propose an explainable neural-symbolic framework for the classification of time-series behaviors. In particular, we use an expressive formal language, namely Signal Temporal Logic (STL), to constrain the search of the computation graph for a neural network. We design a novel time function and sparse softmax function to improve the soundness and precision of the neural-STL framework. As a result, we can efficiently learn a compact STL formula for the classification of time-series data through off-the-shelf gradient-based tools. We demonstrate the computational efficiency, compactness, and interpretability of the proposed method through driving scenarios and naval surveillance case studies, compared with state-of-the-art baselines.

View on arXivView PDF

Code Implementations(1)

danyangl6/NN-TLIOfficial100%
115PythonOct 3, 20221 years ago

Similar Papers

Cite this paper

@article{li2022learning,
  title  = {Learning Signal Temporal Logic through Neural Network for Interpretable Classification},
  author = {Danyang Li and Mingyu Cai and Cristian-Ioan Vasile and Roberto Tron},
  year   = {2022},
  eprint = {2210.01910},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.01910}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.01910.svg)](https://codeofpaper.com/paper/2210.01910)

Discussion