arXiv:2610.39007cs.AIOct 2026

Manuscript Offprint

arXiv:2610.39007

Formal Specifications with Data-Driven Signal Analysis

Roderick Bloem, Benedikt Maderbacher, Cristinel Mateis, Dejan Ničković, Sergii Tkachov, Björn Ziegler

Roderick Bloem¹, Benedikt Maderbacher², Cristinel Mateis³, Dejan Ničković³, Sergii Tkachov⁴, Björn Ziegler⁴

¹ Graz University of Technology, Graz, Austria roderick.bloem@tugraz.at

² CISPA Helmholtz Center for Information Security, Saarbrücken, Germany benedikt.maderbacher@cispa.de

³ AIT Austrian Institute of Technology, Vienna, Austria {cristinel.mateis,dejan.nickovic}@ait.ac.at

⁴ Infineon Technologies Austria AG, Villach, Austria {sergii.tkachov,bjoern.ziegler}@infineon.com

Abstract. Developing analog and hybrid systems requires substantial domain knowledge that is hard to articulate in a formal specification; without additional effort, this domain knowledge is also inaccessible to machine learning methods. We propose a hybrid approach for analyzing and monitoring real-valued signals that integrates specification-based and data-driven techniques. We use regular expressions with interval operations to identify regions of interest in a signal, classical signal processing methods to extract semantically meaningful features, and semi-supervised machine learning to infer complex relationships that distinguish correct from faulty behaviors. The relationships learned from normal behavior data can automatically detect incorrect behavior in the same system or variants thereof. We evaluate the method on a voltage regulator, demonstrating its effectiveness in detecting undesired system behaviors.

1 Introduction

The design of analog and hybrid systems is challenging due to the tight coupling between discrete-event logic and continuous-time analog dynamics. Ensuring correctness in these systems is essential, especially for safety-critical applications where failures can have severe consequences. Formal verification methods provide rigorous guarantees, but often struggle to scale with system complexity. As a more pragmatic alternative, monitoring and evaluation of individual system behaviors against formal specifications enables an efficient, yet systematic analysis of the underlying system. Formal specification languages, such as SystemVerilog Assertions (SVA), Property Specification Language (PSL), Signal Temporal Logic (STL) [12] and Timed Regular Expressions (TRE) [2], have proven effective for this purpose. These languages allow rigorous specification of intended behaviors, facilitating the detection of property violations. Moreover, they enable pattern matching within system traces to identify critical events or anomalies. By combining formal specifications with trace evaluation, engineers can gain valuable insights into system behavior, while balancing rigor and scalability.

Nevertheless, nominally meeting the specification in an analog or hybrid system in terms of bandwidth, gain, power consumption and other desired properties, does not guarantee that the system is without flaws. Consider for instance an analog integrated circuit (IC) component with small oscillations. Such oscillations may be within the nominal specification limits and hence not detected by the commonly used testing tools. However, they can still significantly affect the long-term reliability of the circuit. While being able to visually distinguish between benign and harmful oscillations, design experts may struggle to give their precise mathematical characterizations. It is therefore sometimes challenging to use formal specification languages alone to capture subtle anomalies in the observed system behavior.

In this paper, we introduce SIGMA, an approach for signal measurement and analysis that integrates formal specifications with data-driven anomaly detection. At the core of SIGMA is SIGMA-SPEC, a formal specification language for expressive signal measurement and analysis. Building upon

  • This work was supported by the Austrian Research Promotion Agency (FFG) under project FATE (project no. 894789).

R. Bloem et al.

timed regular expressions (TRE) [2,7], SIGMA-SPEC extends their expressiveness with a flexible and powerful signal-processing layer inspired by stream-monitoring languages. Leveraging SIGMA-SPEC as an advanced feature extraction tool, we identify relevant signal segments and perform targeted measurements, effectively reducing the complexity of high-dimensional time series data into a concise set of meaningful parameters. These extracted features then serve as inputs for machine learning algorithms, enabling the detection of subtle and complex anomalies with improved accuracy. In this way, SIGMA combines explicit domain knowledge encoded through formal specifications of characteristic behavioral patterns with implicit knowledge learned from data to distinguish normal from anomalous system behaviors, yielding a powerful methodology for anomaly detection in analog and hybrid systems. We implemented our approach in a prototype tool and demonstrate its effectiveness on a voltage regulator case study.