Manuscript Offprint
arXiv:2610.39007Formal Specifications with Data-Driven Signal Analysis
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.
We extend this work in several ways. First, we note that for runtime verification, we always have traces consisting of a finite number of samples, possibly sampled at irregular intervals. This allows us to avoid expensive zone-based algorithms and employ standard techniques for matching regular expressions. Second, we use formal specifications not only to identify semantically meaningful intervals within signals, but on these intervals, we also apply signal-processing operations and extract features that capture relevant behavioral characteristics. We then apply machine-learning techniques to these specification-derived features to distinguish correct from suspicious traces. We thus combine domain-guided symbolic localization with data-driven anomaly detection, reducing the burden on the verification engineer of specifying correctness explicitly while still enabling the use of domain knowledge.
Matrix Profile methods support efficient time-series subsequence mining, e.g., motif and discord discovery [17]. They are complementary to SIGMA-SPEC: while Matrix Profile discovers recurring or unusual patterns directly from raw time series, SIGMA-SPEC first uses symbolic specifications to localize semantically relevant intervals, such as post-perturbation stabilization regimes, before applying feature operators and learned predicates.
The use of machine-learning methods is fairly standard for detecting anomalies in signals across various domains [8,1,5]. These approaches typically use machine learning in isolation, without logical representations. This means that domain knowledge has to be included into the machine-learning algorithm in an ad hoc manner.
Kong et al. [10] also study a combination of formal specification and machine learning. They define a language of parameterized specifications and use anomaly learning and anomaly detection to learn formulas and parameter values that distinguish good traces from bad ones.
Several papers study quantitative versions of logics that incorporate robustness measures [6,3,4]. These approaches focus on quantitative semantics for logical satisfaction rather than on signal-processing-based feature extraction and learned classification of real-valued signals. In our approach, robustness is not modeled explicitly in the formalism, but is instead handled through the confidence estimates provided by the machine-learning methods.
3 SIGMA-Spec Specification Language
3.1 Language
SIGMA-SPEC is a stream processing language to specify and process intervals of a trace. It is illustrated in Fig. 1: First, we match intervals using regular expressions over events. We can then adjust the intervals by shifting their boundaries. Next, features are extracted and a Machine Learning step assigns a robustness score. Finally, the robustness scores of the intervals are aggregated in an overall robustness score for a trace.
Formally, we assume that a measurement trace contains samples of a set of real-valued signals . (This is easily extended to Boolean signals.) We also assume that we have a set of real-valued

Fig. 1: SIGMA pipeline
features that are computed as part of the processing pipeline. Finally, we have a set of machine learned classifiers that each assign a robustness score in . A valuation is a function and is the set of valuations. Finally, a trace is a finite sequence over timestamps and valuations such that the timestamps are strictly increasing. Note that we only have a finite number of samples that may be taken at irregular intervals.
An interval record is a tuple where is a trace, and are the beginning and end times. Each interval record is associated with a partial function assigning values to features. The start and end times corresponds to a sub-trace of , where () is the smallest (largest) timestep that is not smaller (larger) than (, resp.). We assume that our feature set includes a distinguished feature nr, which we use to order the matched sequences. We denote the set of intervals by .
Trace processing consists of five stages, which we briefly summarize here. (1) We use Timed Regular Expressions (TRE, see below) to extract interval records from traces. (2) Intervals can be adjusted, for instance, we can drop a suffix. (3) new features are extracted. (4) A machine learning algorithm computes a robustness score for the interval. Finally, (5) the robustness scores of the intervals are aggregated into an overall score for the trace.
If denotes a TRE, denotes an interval adjustment operator, denotes the extraction of a feature , denotes the extraction of a robustness score using a machine-learning algorithm , and denotes an aggregation function, then a SIGMA-SPEC specification has the form
Algorithm 1 shows the evaluation of a specification. In the following we describe the individual components of SIGMA-SPEC in more detail.
Algorithm 1 Evaluation of a specification on a trace .
, pipeline stages , aggregator for do for do if is an interval adjustment then if is a feature operation then
3.2 Interval Recognition
We specify interesting intervals with timed regular expressions (TREs) [16,7]. TREs are defined over propositions matched over intervals of time.
We take propositions to be either Boolean combinations of numeric predicates of the form (with a real-valued signal variable, , and a constant), or events defining rising edge ( goes from false to true) and falling edge of a predicate .
The TRE syntax follows the grammar
where is a proposition and is an interval. This syntax defines a variant of classical regular expressions, extended with an intersection and a time restriction operators.
R. Bloem et al.
Let be a trace and let be an interval. TREs follow the usual semantics of regular expressions on words, being matched by intervals , where and . (We denote this by .) The operator is matched by any interval where for some , there is a such that , and .
Following standard greedy matching semantics, the first match of a TRE in is , where is minimal and is maximal, i.e., there is no and with and there is no so that . The extended match set is recursively defined as the set consisting of the union of the singleton set containing the interval record of the first match and , where (with some abuse of notation) assigns to feature of the -th match and is undefined everywhere else.
Note that for a sampling semantics, the complexity of matching regular expressions is equal to that of matching regular expressions on words.
3.3 Interval Adjustment
In addition to the initial matching using TREs SIGMA-SPEC supports operators that modify the matched intervals. An interval operation is a function that maps an interval record to a set of interval records, without changing features. SIGMA-SPEC includes the following interval operations, where , is a duration, with , , and :
The function linefit splits the interval into sub-intervals using line fitting [13]. It finds a piece-wise linear continuous function consisting of line segments that best approximate the interval and returns the interval for the line segment .
3.4 Feature Extraction
Feature operations are functions . When evaluating the pipeline the feature is computed for each interval record and the result is added to feature valuation .
SIGMA-SPEC supports a variety of feature operations. We will discuss some examples. A trace can be sampled at irregular intervals which makes some features hard to compute. These features are computed using a linear approximation between samples.
SIGMA-SPEC includes the following feature operations: (1) The features minimum and maximum and average are computed directly from the trace. (2) The linear fit slope and linear fit MSE are the slope and mean square error of the linear approximation of the signal (see the previous section), resp. (3) Several spectral features: the spectral peak-to-mean ratio is the ratio between the maximum and the mean spectral amplitude, measuring the dominance of a single frequency component over the overall spectral content. The spectral centroid and spectral bandwidth give the amplitude-weighted average frequency and standard deviation, resp., of the signal spectrum, providing a compact descriptor of where and how strongly spectral energy is concentrated. (4) Symbolic predicates are functions that compute a robustness score from one or more existing features indicating how anomalous they are. A classic example would be the distance to a threshold.
3.5 ML-based Anomaly Scoring Functions
In addition to feature operations with fixed symbolic definitions, SIGMA-SPEC allows externally trained anomaly detectors to be applied to interval records. Let be an interval record, where is the feature valuation computed for the interval of trace . An ML-based anomaly detector provides an anomaly scoring function , where denotes the space of feature valuations and the parameters of the ML model learned during training. Evaluating on the current feature valuation yields a real-valued anomaly score. The score can be stored as an additional feature by extending to with
Thus, learned anomaly scores can be used by interval conditions in the same way as other numeric features, for instance by comparing them against a threshold .
This subsection only defines the interface between SIGMA-SPEC specifications and learned scores. The motivation and details of concrete ML-based predicates are discussed in Section 4.
3.6 Aggregation of Interval Streams
We often want to combine the results from different intervals into an overall score for a trace. To facilitate this SIGMA-SPEC includes a small sub-language to describe this. Its grammar is defined as:
where evaluates to the maximum of the feature among all intervals and computes the respective minimum. Addition and subtraction can be used to combine the results computed from different features.
A numerical anomaly score obtained in this way can be used in multiple ways. Given a set of traces, the score can be used to sort them by their level of anomaly. A verification engineer can then limit manual inspection to a small subset of traces to identify potential problems more quickly. Alternatively, a Boolean predicate can be defined to classify individual traces, by defining a threshold for when a trace should be considered anomalous. If the final score is based on an ML-based predicate its threshold is a natural choice for such a predicate.
3.7 Example
To help with understanding SIGMA-SPEC we provide the following example:
The TRE pattern defines intervals delimited by rise and fall events of . The found intervals are altered with the interval operations filter and postfix. The filter uses the sequence number to select only the second and third match. Postfix then selects the last 30% time units of each interval. As feature we use the slope of the linear approximation. Finally the aggregator computes the difference between the maximum and minimum value of that feature among all selected intervals.
Figure 2 shows how this specification is applied to four simulations of an oscillator. The signal is the blue line. Rise and fall events are shown as red and green vertical lines respectively. The gray shaded areas are the intervals remaining after the interval operations. The slope feature is shown by a red line of the linear approximations in each interval.
4 ML-based Predicates in SIGMA-Spec
Symbolic predicates are effective when nominal signal behavior can be expressed by explicit arithmetic constraints over measurements. In analog-design workflows, however, subtle effects such as sustained oscillations or abnormal stabilization patterns are often easier for experts to label from examples than to characterize completely by hand.
The scoring interface introduced in Section 3.5 allows such examples to be used for learned interval predicates. Given a trace and an interval , the preceding SIGMA-SPEC analysis localizes the relevant signal segment and computes a feature valuation . We write
for its vector representation. A learned predicate is defined by an anomaly scoring function and a threshold :
Thus, the specification determines where to look and which measurements to compute, while the learned predicate decides whether the resulting feature vector is consistent with nominal behavior.
R. Bloem et al.

Fig. 3: Simplified closed-loop view of the voltage-regulator case study. The regulator compares feedback from with a reference value and controls the pass device to compensate for input voltage and load-current perturbations.

Fig. 2: Quantitative analysis of analog simulations.
We focus on a semi-supervised one-class setting: only samples labeled as normal are used to fit the learned predicate, while anomalous samples are reserved for feature selection and evaluation. This reflects the industrial setting in which faults are scarce and expensive to label. The choice of the learning algorithm remains data-dependent. SIGMA-SPEC provides the specification-derived representation, but the learned predicate must still be selected and validated for the feature relationships present in the dataset.
In the evaluation, we instantiate learned predicates with autoencoders and One-Class SVMs. Autoencoders provide reconstruction-based anomaly scores, using
and have been used for nonlinear anomaly detection in time-series and telemetry data [14]. One-
Class SVMs estimate the support of the normal data distribution for novelty detection [15]. Given their decision function , we use as anomaly score, so that larger values indicate stronger deviation from the estimated normal support and can be thresholded like the AE reconstruction error. Comparing the two on the same SIGMA-SPEC-derived feature vectors evaluates the sensitivity of the learned-predicate component to the chosen one-class model. It does not test the usefulness of SIGMA-SPEC itself, since localization and feature extraction are shared.
5 Evaluation
5.1 Case Study: Voltage Regulator
We introduce as our case study the model-based testing of a voltage regulator. A voltage regulator is an analog circuit that converts a possibly varying input supply voltage into a regulated output voltage close to a prescribed reference value . In a typical closed-loop regulator, the output voltage is sensed through a feedback path and compared with the reference voltage; the resulting control signal drives a pass device so as to compensate for variations in the input voltage and in the load current. Capacitors are used to filter the input and output nodes and influence the transient response and stability of the regulator [11]. Figure 3 shows the high-level structure of a voltage regulator.
We assume a model-based testing setting, in which we have both a behavioral model of the voltage regulator, as well as its transistor-level design. In this approach, the behavioral model serves as the basis for test generation and for defining test oracles for the circuit-level design. We treat the voltage regulator as a black-box system, interacting with it solely through simulation while observing and analyzing its input and output signals. The analyzed signal is the sampled output voltage . Perturbations are induced by changes in the input voltage and/or load current. A typical response consists of an initial transient, possibly including an overshoot or undershoot, followed by a stabilization regime in which the output voltage returns close to the target reference value. While the initial transient, the overshoots and the undershoots admit efficient symbolic analysis, the analysis of the stabilization regime remains a hard challenge to formalize with specifications. In this case study, we focus on the detection of anomalies in the stabilization regime – its sustained oscillations, excessive residual periodicity, or abnormal noise patterns after the transient may indicate an incorrect design configuration or deteriorated component behavior.
5.2 Research Questions
We seek the answers to the following questions:
RQ1 How accurate is SIGMA's in-domain anomaly detection?
RQ2 How well does SIGMA trained on signals generated from a behavioral model generalize to: (G1) multi-parameter traces of the same model, (G2) the same model with different parameters, and (G3) transistor-level implementation of the same model?
RQ3 Do learned predicates provide an advantage over purely symbolic predicates?
RQ4 How sensitive is SIGMA to the choice of the machine learning algorithm used to infer the learned predicate?
5.3 Experimental Setup
Voltage Regulator Models We evaluate the case study with two models: a behavioral model of the voltage regulator and its transistor-level design.
InfineonSpice behavioral modelling: InfineonSpice is an analog SPICE simulation tool for behavioral circuit simulation with SPICE models, virtual reference designs, and transient-analysis support [9]. In our experiments, InfineonSpice enables inexpensive trace generation that we use to produce the data for training monitors for detecting anomalies.
We consider three VR designs with target reference voltages 5.0 V, 3.3 V, and 1.5 V. For each design, we vary the parameters listed in Table 1. The parameter variations serve two purposes. First, variations of internal design parameters such as , , and the PID-controller parameters , , and are used to emulate non-nominal or deteriorated behavior. Second, variations of operating and stimulus parameters such as , , and explore different input-voltage and load-current perturbations. We also vary to study cases in which the regulator is operated with a reference value different from the nominal value of the model design.
For each design, we generate single-parameter sweeps by varying one parameter at a time up to ±50% from its nominal value in 5% steps, plus one fully nominal trace. This yields 181 traces per design. Additional multi-parameter traces are generated by randomly sampling all parameters from their ranges until obtaining 5000 traces per design.
For each InfineonSpice simulation, the input voltage and load current are varied sequentially: (i) an initial ramp from 0 to , which is discarded from the dataset; (ii) a load-current increase by ; (iii) an input-voltage increase by ; and (iv) a return of the load current to its original value. This protocol yields four perturbation intervals per trace after SIGMA-SPEC segmentation. Figure 4(a) shows a representative InfineonSpice trace with SIGMA-SPEC segmentation.
Table 1: VR parameters varied in the InfineonSpice simulations.
| Parameter Meaning | |
|---|---|
| prescribed reference voltage | |
| output capacitor | |
| input voltage | |
| input capacitor | |
| PID derivative gain | |
| PID integral gain | |
| PID proportional gain | |
| load-current increase | |
| input-voltage increase | |
Transistor-level simulation: We use a proprietary closed-source simulator to implement a transistor-level design of a VR and generate the accurate VR behavior. These traces are more representative of the physical circuit behavior but are significantly more expensive to obtain: one simulation takes approximately 10 hours on average and up to 18 hours in the worst case. Consequently, transistor-level traces are used only for evaluation, not for training.
R. Bloem et al.

(a) InfineonSpice trace. SIGMA-SPEC detects four perturbation intervals. The first, third, and fourth intervals are labeled normal; the second interval is labeled anomalous due to a dominant repeating triangular pattern followed by a shorter repeating pattern of more complex shape.

(b) Transistor-level trace. SIGMA-SPEC detects two perturbation intervals. The first interval is labeled anomalous due to a dominant repeating triangular pattern, whereas the second interval is labeled normal since it shows low-amplitude noise rather than a repeating oscillatory pattern.
Fig. 4: Representative full traces from the two simulation environments used in the case study. The colored regions indicate perturbation intervals detected by SIGMA-SPEC and illustrate the type of signal behavior later analyzed at the level of stabilization portions.

(a) Valid.

(b) No stabilization.

(c) Incorrect fit.
Fig. 5: Examples of stabilization extraction. Left: correct stabilization detection. Middle: missing stabilization due to insufficient simulation time. Right: an inaccurate third-segment fit that still includes part of the transient.
The transistor-level dataset consists of 33 traces for a VR model designed for a target reference voltage of 3.3 V. Simulations were run for three process corners: fast, nominal, and slow. The temperature was fixed to 27°C. All VR design parameters were kept at nominal values except the load current, which was varied from 90 mA to 190 mA in steps of 10 mA, yielding 11 traces per process corner and 33 traces in total. During each simulation, the input voltage was stepped from 5 V to 3.6 V and then back to 5 V. The initial constant 5 V interval was too short for analysis and is discarded. Therefore, each transistor-level trace yields two perturbation intervals after SIGMA-SPEC segmentation. A representative transistor-level trace is shown in Figure 4(b).
Stabilization Specification and Labeling We describe in this section how we formulate specifications that identify the stabilization intervals in signals and how we label the training data.
Specification of stabilization intervals: SIGMA-SPEC is used to identify perturbation intervals in each trace. By construction, each InfineonSpice trace yields four perturbation intervals after discarding the initial ramp phase, while each transistor-level trace yields two usable perturbation intervals. Within each perturbation interval, a piece-wise linearization operator fits a three-segment approximation of the output voltage signal. The third segment is intended to capture the stabilization regime. This extraction is not always valid: the signal may not stabilize within the simulated time horizon, or the third segment may still contain part of the transient overshoot or undershoot. Figure 5 illustrates one valid case and two typical failure modes.
Labeling: A domain expert visually inspected the simulation traces and labeled the normal and the anomalous stabilization intervals in the traces. The expert labeled in total 289 traces – 181 labeled traces were used as the training data to infer the anomaly detectors, while the remaining 108 labeled traces were used as ground truth for the evaluation of our SIGMA approach. We also note that in addition to the validation of the normal/anomalous labels, the expert also validated the validity of the extracted stabilization intervals. Invalid stabilization samples were excluded from training and evaluation.
Table 2 summarizes the datasets used in the evaluation after SIGMA-SPEC segmentation and expert validity filtering. We use the labeled 5.0 V single-parameter dataset for model selection and in-
Table 2: Datasets after SIGMA-SPEC segmentation and expert validity filtering. The “valid” column reports valid stabilization samples labeled by domain experts.
| Use | Design/source | Simulator | Traces | Valid ok/nok |
|---|---|---|---|---|
| Model selection | 5.0 V, single-param. | InfineonSpice | 181 | 513/127 |
| In-domain test | 5.0 V, single-param. | InfineonSpice | – | 103/127 |
| G1 | 5.0 V, multi-param. | InfineonSpice | 25 | 38/10 |
| G2 | 3.3 V | InfineonSpice | 25 | 32/7 |
| G2 | 1.5 V | InfineonSpice | 25 | 27/14 |
| G3 | 3.3 V | transistor-level | 33 | 58/6 |
Table 3: Selected AE feature sets. Test entries are accuracy/F1(ok)/F1(nok).
| ID | Features | # | CV | F1 | Test |
|---|---|---|---|---|---|
| AE-R1 | slope, offset, mse, p2m, bw, flat., energy, periodicity | 8 | |||
| AE-C | slope, offset, centroid, energy | 4 |
domain testing. The remaining rows correspond to the three transfer settings used for the evaluation of RQ2.
Learned-Predicate Instantiation All learned predicates use standardized features, with the scaler fitted only on normal training samples. Feature subsets are selected on the labeled 5.0 V single-parameter data using nested 5-fold cross-validation over the normal samples. The held-out normal fold is combined with the labeled anomalous samples for testing, while the remaining normal samples are split into training and validation sets. For the AE, we use a symmetric encoder-decoder with hidden dimensions , where and for input dimension . It is trained with Adam, learning rate , batch size 128, and early stopping. The AE threshold is set to on log-transformed validation-normal reconstruction errors. For OCSVM, we use an RBF kernel with , , and a threshold at the 95th percentile of validation-normal anomaly scores. These are case-study instantiations, not generally optimal settings.
5.4 RQ1: In-Domain Accuracy
From each valid stabilization segment, SIGMA-SPEC feature operators extract time- and frequency-domain measurements such as linear-fit error, slope, offset, spectral energy, spectral flatness, and periodicity.
Table 3 summarizes the two AE configurations retained after feature-subset selection: AE-R1, the best in-domain feature set, and AE-C, a compact four-feature set with similar cross-validation performance.
Both AE configurations achieve balanced in-domain performance, with F1 scores around 0.87–0.88 for both classes. The compact feature set loses less than one percentage point in accuracy while using half as many features. This answers RQ1 positively: SIGMA achieves accurate in-domain anomaly detection.
5.5 RQ2: Generalization Analysis
We evaluate the two selected AE predicates on the three generalization scenarios G1–G3 defined in Section 5. The same trained models and thresholds are used without retraining or target-domain calibration.
G1: same design, multi-parameter traces Training uses only 5.0 V single-parameter sweeps, while G1 evaluates on 5.0 V traces in which multiple parameters vary simultaneously. Both AE models degrade relative to the in-domain test, especially on the anomalous class. Nevertheless, AE-C substantially outperforms AE-R1. This suggests that the compact feature set is less sensitive to parameter-interaction effects not present in the training distribution.
R. Bloem et al.
Table 4: Symbolic-only baseline on the 5.0 V behavioral model.
| Predicate | Acc. F1(ok) | F1(nok) | P(nok) | R(nok) | |
|---|---|---|---|---|---|
| Symbolic-only | 0.774 | 0.863 | 0.350 | 0.438 | 0.292 |
G2: transfer across VR designs On the 3.3 V InfineonSpice design, AE-C again performs best, indicating that moderate cross-design transfer is possible when the reference voltage and stabilization dynamics remain sufficiently close to the training domain. In contrast, both models perform poorly on the 1.5 V design. The main failure mode is a collapse of normal-class F1, meaning that many normal samples are classified as anomalous. This indicates a substantial shift in normal stabilization behavior that is not compensated by the current normalization and feature set.
G3: simulator-to-simulator transfer Transfer from InfineonSpice to transistor-level simulation is the most challenging setting. The transistor-level simulator changes the distribution of normal stabilization features enough that models trained only on InfineonSpice normals are poorly calibrated. This supports the need for lightweight target-domain calibration, for example threshold recalibration using a small set of transistor-level normal samples, or feature-distribution alignment between simulators.
RQ2 has therefore a mixed answer. SIGMA learned predicates transfer reasonably to multi-parameter traces of the same design and to the nearby 3.3 V design, especially when using the compact feature set. However, large design shifts and simulator shifts require additional calibration.
5.6 RQ3: Symbolic-only Predicate
To assess the contribution of learned predicates, we compare SIGMA with a purely symbolic baseline inspired by [7]. The baseline uses the same regular expression to identify perturbation intervals, but replaces the learned stabilization analysis by a fixed subinterval, namely the last 30% of each perturbation interval. On this subinterval, it computes three simple measurements: the average signal value, the difference between the maximum and minimum sample values, and the maximum deviation from the target value. Thresholds are calibrated from 115 labeled traces by partitioning them into normal and anomalous sets, computing the class-wise average of each measurement, and setting each threshold to the midpoint between the corresponding normal and anomalous averages. The resulting symbolic condition classifies an interval as normal iff all three measurements remain below their thresholds, and as anomalous otherwise. The remaining 66 traces yield 230 valid intervals for evaluation. Table 4 reports the resulting metrics, computed with respect to the anomaly class (nok).
The symbolic baseline achieves a reasonable normal-class performance but misses most anomalies: only 14 of 48 anomalous intervals are detected. Its F1(nok) of 0.350 is far below the learned predicates in Table 3.
This gives a positive answer to RQ3, confirming the intuition that learned predicates provide a significant advantage over this purely symbolic threshold-based predicate for these types of signal properties.
5.7 RQ4: Robustness to ML Methods
To assess how robust SIGMA is to different machine learning algorithms for predicting anomalies, we compare the AE predicate with an OCSVM predicate while keeping the SIGMA-SPEC interval detection, stabilization localization, feature extraction, data splits, and normalization fixed. The comparison includes two controlled OCSVM variants, OCSVM(AE-R1) and OCSVM(AE-C), which use exactly the same feature sets as AE-R1 and AE-C; this isolates the effect of replacing the learned predicate. We also report OCSVM-B, the best OCSVM-selected feature subset found by the same nested cross-validation protocol.
Table 5 reports the learned-predicate comparison across the in-domain test set and the three generalization scenarios. Each table entry reports three values in the order accuracy/F1(ok)/F1(nok). Including all scenarios is important: the in-domain test alone would suggest that OCSVM is preferable, whereas the transfer settings reveal that the choice of learned predicate does not remove the dominant distribution shifts.
Table 5: Comparison of learned predicates. Each entry is accuracy/F1(ok)/F1(nok). OCSVM(AE-R1) and OCSVM(AE-C) keep the AE-selected feature sets fixed; OCSVM-B uses the best OCSVM-selected four-feature subset {slope, FFT peak-to-mean ratio, FFT spectral centroid, FFT band energy}.
| Scenario | AE-R1 | OCSVM(AE-R1) | AE-C | OCSVM(AE-C) | OCSVM-B |
|---|---|---|---|---|---|
| In-domain 5.0 V | 0.878/0.877/0.879 | 0.891/0.884/0.898 | 0.870/0.867/0.872 | 0.891/0.887/0.895 | 0.900/0.895/0.905 |
| G1: same design, multi-param. | 0.667/0.758/0.467 | 0.646/0.712/0.541 | 0.771/0.845/0.560 | 0.667/0.742/0.529 | 0.729/0.800/0.581 |
| G2: 3.3 V InfineonSpice | 0.641/0.720/0.500 | 0.513/0.578/0.424 | 0.769/0.836/0.609 | 0.667/0.745/0.519 | 0.615/0.694/0.483 |
| G2: 1.5 V InfineonSpice | 0.366/0.071/0.519 | 0.342/0.000/0.509 | 0.439/0.258/0.549 | 0.342/0.000/0.509 | 0.463/0.313/0.560 |
| G3: transistor-level | 0.266/0.319/0.203 | 0.109/0.034/0.174 | 0.453/0.615/0.054 | 0.344/0.462/0.160 | 0.172/0.159/0.185 |
The OCSVM-selected configuration, denoted OCSVM-B, uses four features: slope, FFT peak-to-mean ratio, FFT spectral centroid, and FFT band energy. Thus, the best OCSVM model is already compact and comparable in size to the compact AE feature set. Interestingly, the compact AE and the best OCSVM feature sets both select slope, spectral centroid, and band energy, suggesting that these measurements are robust descriptors of stabilization behavior across one-class predicates. They differ in the fourth feature: the AE selects the stabilization offset, whereas the OCSVM selects the FFT peak-to-mean ratio.
The answer to RQ4 is therefore nuanced. In-domain, OCSVM is highly competitive: with its own selected four-feature subset, it achieves the best accuracy and F1 scores. This shows that SIGMA-Spec-derived features are not tied to a particular neural architecture. However, OCSVM does not systematically improve generalization. AE-C is strongest on G1 in accuracy and normal-class F1, best on all reported metrics for the 3.3 V design in G2, and most effective at preserving normal-class behavior in G3. On the 1.5 V design, all models perform poorly, indicating that the main limitation is domain shift rather than the choice between AE and OCSVM.
5.8 Threats to Validity
Internal validity The evaluation relies on expert-provided labels. Hence, the reported performance metrics may be sensitive to labeling noise. In addition, the one-class models are trained exclusively on normal samples, while labeled anomalies are used during cross-validation to rank feature subsets. This may introduce a mild bias toward the observed anomaly types. Future work should evaluate feature selection based only on normal samples or expert-defined criteria.
Construct validity Our approach assumes that stabilization intervals can be identified through SIGMA-SPEC. However, a non-negligible fraction of candidate intervals is discarded because the piece-wise linearization procedure fails to identify a valid stabilization regime. Consequently, the evaluation may not fully capture behaviors that fall outside the assumptions of the segmentation operator. Improving the robustness of the interval extraction procedure is therefore an important direction for future work.
External validity The empirical evaluation was conducted on a single industrial case study involving a voltage regulator. Although the stabilization and oscillation phenomena considered in this work are representative of common challenges in analog circuit design, the generalizability of the results to other analog or mixed-signal systems remains to be demonstrated. Furthermore, the observed performance degradation on the 1.5 V design and transistor-level traces indicates that domain shift between source and target configurations can substantially affect detection accuracy. Practical deployment may therefore require target-domain calibration, such as threshold adaptation using a small number of normal target-domain samples or feature-wise normalization across domains.
Conclusion validity Several evaluations, particularly the out-of-domain experiments, rely on relatively small expert-labeled test sets. The reported results should therefore be interpreted as indicative trends rather than statistically definitive estimates. This limitation is especially relevant for anomaly-detection performance, where only a limited number of anomalous traces are available.
6 Conclusion and Future Work
In this paper, we presented SIGMA, an approach that combines formal signal analysis with data-driven anomaly detection for analog and hybrid systems, showing the synergies between formal methods and
R. Bloem et al.
machine learning for CPS monitoring workflows. We demonstrated on an industrial voltage regulator case study that SIGMA can detect subtle stabilization anomalies that are difficult to characterize using purely symbolic specifications. The experiments show that SIGMA is robust under moderate distribution shifts, including multi-parameter variations and transfer across regulator designs, and that it is not tied to a particular learning architecture.
Our framework can be extended in several directions. For instance, when one domain is used for learning and another for evaluation, there may be systematic shifts between the training and evaluation domains. It would be interesting to see if these can be accounted for in the specification or machine learning. This paper is intended to propose a framework rather than a definitive set of Measurement Operators; the set chosen by us can certainly be improved. Finally, our methodology can be integrated into a verification loop, driving the selection of simulation parameters toward areas in which the system may exhibit worse performance.
References
-
Ahmad, S., Styp-Rekowski, K., Nedelkoski, S., Kao, O.: Autoencoder-based condition monitoring and anomaly detection method for rotating machines. In: Wu, X., Jermaine, C., Xiong, L., Hu, X., Kotevska, O., Lu, S., Xu, W., Aluru, S., Zhai, C., Al-Masri, E., Chen, Z., Saltz, J. (eds.) 2020 IEEE International Conference on Big Data (IEEE BigData 2020), Atlanta, GA, USA, December 10-13, 2020. pp. 4093-4102. IEEE (2020). https://doi.org/10.1109/BIGDATA50022.2020.9378015, https://doi.org/10.1109/BigData50022.2020.9378015
-
Asarin, E., Caspi, P., Maler, O.: Timed regular expressions. J. ACM 49(2), 172-206 (2002). https://doi.org/10.1145/506147.506151, https://doi.org/10.1145/506147.506151
-
Bakhirkin, A., Ferrère, T., Maler, O., Ulus, D.: On the quantitative semantics of regular expressions over real-valued signals. In: Abate, A., Geeraerts, G. (eds.) Formal Modeling and Analysis of Timed Systems - 15th International Conference, FORMATS 2017, Berlin, Germany, September 5-7, 2017, Proceedings. pp. 189-206. Lecture Notes in Computer Science, Springer (2017). https://doi.org/10.1007/978-3-319-65765-3_11, https://doi.org/10.1007/978-3-319-65765-3_11
-
Deshmukh, J.V., Donzé, A., Ghosh, S., Jin, X., Junival, G., Seshia, S.A.: Robust online monitoring of signal temporal logic. Formal Methods Syst. Des. 51(1), 5-30 (2017). https://doi.org/10.1007/S10703-017-0286-7, https://doi.org/10.1007/s10703-017-0286-7
-
Esmaeili, F., Cassie, E., Nguyen, H.P.T., Plank, N.O.V., Unsworth, C.P., Wang, A.: Anomaly detection for sensor signals utilizing deep learning autoencoder-based neural networks. Bioengineering (2023)
-
Fainekos, G.E., Pappas, G.J.: Robustness of temporal logic specifications for continuous-time signals. Theor. Comput. Sci. 410(42), 4262-4291 (2009). https://doi.org/10.1016/J.TCS.2009.06.021, https://doi.org/10.1016/j.tcs.2009.06.021
-
Ferrère, T., Maler, O., Nickovic, D., Ulus, D.: Measuring with timed patterns. In: Kroening, D., Pasareanu, C.S. (eds.) Computer Aided Verification - 27th International Conference, CAV 2015, San Francisco, CA, USA, July 18-24, 2015, Proceedings, Part II. Lecture Notes in Computer Science, vol. 9207, pp. 322-337. Springer (2015). https://doi.org/10.1007/978-3-319-21668-3_19, https://doi.org/10.1007/978-3-319-21668-3_19
-
Hundman, K., Constantinou, V., Laporte, C., Colwell, I., Söderström, T.: Detecting spacecraft anomalies using lstms and nonparametric dynamic thresholding. In: Guo, Y., Farooq, F. (eds.) Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD 2018, London, UK, August 19-23, 2018. pp. 387-395. ACM (2018). https://doi.org/10.1145/3219819.3219845, https://doi.org/10.1145/3219819.3219845
-
Infineon Technologies AG: InfineonSpice Offline Simulation Tool. https://www.infineon.com/design-resources/simulation-modeling/infineonspice-offline-simulation-tool, accessed: 2026-05-04
-
Kong, Z., Jones, A., Belta, C.: Temporal logics for learning and detection of anomalous behavior. IEEE Trans. Autom. Control. 62(3), 1210-1222 (2017). https://doi.org/10.1109/TAC.2016.2585083, https://doi.org/10.1109/TAC.2016.2585083
-
Lee, B.S.: Understanding the terms and definitions of ldo voltage regulators. Application Report SLVA079, Texas Instruments (Oct 1999)
-
Maler, O., Nickovic, D.: Monitoring temporal properties of continuous signals. In: Lakhnech, Y., Yovine, S. (eds.) Formal Techniques, Modelling and Analysis of Timed and Fault-Tolerant Systems, Joint International Conferences on Formal Modelling and Analysis of Timed Systems, FORMATS 2004 and Formal Techniques in Real-Time and Fault-Tolerant Systems, FTRTFT 2004, Grenoble, France, September 22-24, 2004, Proceedings. pp. 152-166. Lecture Notes in Computer Science, Springer (2004). https://doi.org/10.1007/978-3-540-30206-3_12, https://doi.org/10.1007/978-3-540-30206-3_12
-
Ozay, N.: An exact and efficient algorithm for segmentation of arx models. In: 2016 American Control Conference (ACC). pp. 38–41. IEEE (2016)
-
Sakurada, M., Yairi, T.: Anomaly detection using autoencoders with nonlinear dimensionality reduction. In: Rahman, A., Deng, J.D., Li, J. (eds.) Proceedings of the MLSDA 2014 2nd Workshop on Machine Learning for Sensory Data Analysis, Gold Coast, Australia, QLD, Australia, December 2, 2014. p. 4. ACM (2014). https://doi.org/10.1145/2689746.2689747, https://doi.org/10.1145/2689746.2689747
-
Schölkopf, B., Williamson, R.C., Smola, A.J., Shawe-Taylor, J., Platt, J.C.: Support vector method for novelty detection. In: Solla, S.A., Leen, T.K., Müller, K. (eds.) Advances in Neural Information Processing Systems 12, [NIPS Conference, Denver, Colorado, USA, November 29 - December 4, 1999]. pp. 582–588. The MIT Press (1999), http://papers.nips.cc/paper/1723-support-vector-method-for-novelty-detection
-
Ulus, D., Ferrère, T., Asarin, E., Maler, O.: Timed pattern matching. In: Legay, A., Bozga, M. (eds.) Formal Modeling and Analysis of Timed Systems - 12th International Conference, FORMATS 2014, Florence, Italy, September 8-10, 2014. Proceedings. pp. 222–236. Lecture Notes in Computer Science, Springer (2014). https://doi.org/10.1007/978-3-319-10512-3\16, https://doi.org/10.1007/978-3-319-10512-3_16
-
Yeh, C.M., Zhu, Y., Ulanova, L., Begum, N., Ding, Y., Dau, H.A., Silva, D.F., Mueen, A., Keogh, E.J.: Matrix profile I: all pairs similarity joins for time series: A unifying view that includes motifs, discords and shapelets. In: Bonchi, F., Domingo-Ferrer, J., Baeza-Yates, R., Zhou, Z., Wu, X. (eds.) IEEE 16th International Conference on Data Mining, ICDM 2016, December 12-15, 2016, Barcelona, Spain. pp. 1317–1322. IEEE Computer Society (2016). https://doi.org/10.1109/ICDM.2016.0179, https://doi.org/10.1109/ICDM.2016.0179