Skip to main content
QUICK REVIEW

[Paper Review] Neural Network for Weighted Signal Temporal Logic

Ruixuan Yan, A. Agung Julius|arXiv (Cornell University)|Apr 8, 2021
Time Series Analysis and ForecastingComputer Science12 references6 citations
TL;DR

This paper introduces a differentiable neuro-symbolic framework, wSTL-NN, that learns weighted Signal Temporal Logic (wSTL) formulas from time series data using neural networks, where each neuron represents a wSTL subformula's quantitative satisfaction. The method enables end-to-end back-propagation training and achieves 99.46% classification accuracy on an occupancy detection dataset, with improved interpretability and 700x faster learning than traditional STL methods.

ABSTRACT

In this paper, we propose a neuro-symbolic framework called weighted Signal Temporal Logic Neural Network (wSTL-NN) that combines the characteristics of neural networks and temporal logics. Weighted Signal Temporal Logic (wSTL) formulas are recursively composed of subformulas that are combined using logical and temporal operators. The quantitative semantics of wSTL is defined such that the quantitative satisfaction of subformulas with higher weights has more influence on the quantitative satisfaction of the overall wSTL formula. In the wSTL-NN, each neuron corresponds to a wSTL subformula, and its output corresponds to the quantitative satisfaction of the formula. We use wSTL-NN to represent wSTL formulas as features to classify time series data. STL features are more explainable than those used in classical methods. The wSTL-NN is end-to-end differentiable, which allows learning of wSTL formulas to be done using back-propagation. To reduce the number of weights, we introduce two techniques to sparsify the wSTL-NN.We apply our framework to an occupancy detection time-series dataset to learn a classifier that predicts the occupancy status of an office room.

Motivation & Objective

  • To address the lack of human-readable, interpretable models in time series classification (TSC) by integrating symbolic temporal logic with neural networks.
  • To overcome limitations in existing weighted STL (wSTL) quantitative semantics, such as non-zero weights still influencing results and no ordering of influence by weight.
  • To develop an end-to-end differentiable framework that enables back-propagation-based learning of wSTL formulas, improving training efficiency and model interpretability.
  • To reduce model complexity and memory usage through novel sparsification techniques without sacrificing performance.

Proposed method

  • The wSTL-NN framework maps each neuron to a wSTL subformula, with neuron outputs representing the quantitative satisfaction of that subformula.
  • A novel quantitative satisfaction function for wSTL is defined using a weighted min-max aggregation that ensures non-influence of zero weights, ordering of influence by weight, and monotonicity.
  • The framework is fully differentiable, enabling end-to-end back-propagation training to learn both predicate parameters and importance weights.
  • Two sparsification techniques are introduced: top-𝑠 sparsification and gate-variable-based sparsification, to reduce model complexity and memory usage.
  • The wSTL-NN is trained on an occupancy detection dataset with 744 training and 186 testing samples, using a formula structure of 𝜙̃ = □[0,15]^𝐰 π.
  • The model learns a predicate π with 5-dimensional feature weights and normalized importance weights 𝐰̄ across 16 time points.

Experimental results

Research questions

  • RQ1Can a differentiable, neuro-symbolic framework be designed to learn weighted Signal Temporal Logic (wSTL) formulas from time series data?
  • RQ2Does the proposed wSTL quantitative satisfaction function properly reflect user-specified preferences through weight ordering and non-influence of zero weights?
  • RQ3Can wSTL-NN achieve high classification accuracy while maintaining model interpretability compared to classical ML models?
  • RQ4How do sparsification techniques affect the performance and memory efficiency of wSTL-NN?
  • RQ5Is wSTL-NN significantly faster to train than traditional non-differentiable STL learning methods?

Key findings

  • The wSTL-NN achieved 99.46% classification accuracy on the occupancy detection dataset, matching or exceeding all classical ML models tested, including LDA, KNN, and SVM.
  • The learned wSTL formula 𝜙̃ = □[0,15]^𝐰 π is interpretable, with a 5-dimensional predicate π and normalized weights 𝐰̄ that reflect temporal importance across 16 time points.
  • The wSTL-NN training time was 0.385 seconds, a 700x speedup compared to the 269.7 seconds required for traditional STL learning via non-convex optimization.
  • Sparsification with gate variables achieved 98.92% accuracy at 𝑠̄=4, while top-𝑠 sparsification required higher 𝑠̄ to match performance, indicating gate-based sparsification is more efficient.
  • The wSTL-NN maintained high sensitivity (1.0) and specificity (0.991), outperforming decision trees in positive predictive value and negative predictive value.
  • The proposed wSTL quantitative satisfaction function satisfies all three desired properties: non-influence of zero weights, ordering of influence by weight, and monotonicity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.