arXiv:2608.21167cs.SEAug 2026

Manuscript Offprint

arXiv:2608.21167

On the Time and Frequency Domain Representations of Signals for CPS Specification

Claudio Mandrioli, Drishti Yadav, Domenico Bianculli

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

CLAUDIO MANDRIOLI, University of Luxembourg, Luxembourg

DRISHTI YADAV, University of Luxembourg, Luxembourg

DOMENICO BIANCULLI, University of Luxembourg, Luxembourg

Specification languages are instrumental to the Verification & Validation of Cyber-Physical Systems (CPSs). Most state-of-the-art specification languages use the time-domain representation of signals, which is not always suitable for describing signal shapes and dynamic behaviours. Instead, fields like control and robotics use the frequency-domain representation to characterise these behaviours. Time-frequency representations combine the capabilities of both domains. We investigate the use of time-frequency representations to specify CPS requirements. We analyse existing taxonomies of CPS requirements to identify which requirement classes can benefit from time-frequency representations. We derive the desiderata for a specification language that uses time-frequency representations and propose Signal-Spectrum Temporal Logic (S2TL), a language enabling assertions over frequency intervals and relations between frequency components. We operationalise the S2TL semantics for monitoring CPS traces, and implement a monitor. We define specification templates for the identified requirement classes and compare time- and time-frequency-domain formulations in terms of applicability, expression fidelity, and noise tolerance of monitoring. We observe that, while time-domain specifications are applicable only to input traces containing step-like changes or using constant interpolation, time-frequency specifications extend their evaluation to traces generated through linear interpolation, and improve tolerance to offset and high-frequency noise, while achieving comparable fidelity to the intended system properties.

CCS Concepts: • Software and its engineering → Software verification and validation; • Computer systems organization → Embedded and cyber-physical systems.

Additional Key Words and Phrases: Cyber-physical Systems, Specification Languages, Frequency Domain.

1 INTRODUCTION

Cyber-Physical Systems (CPSs) are characterised by the tight interaction of software and physical components and are pervasive in our daily lives [45]; common examples of CPSs include robots, aircraft, drones, electric grids, smart medical devices, and satellites. Like these examples, many CPSs are safety-critical; therefore, their rigorous Verification & Validation (V&V) is of paramount importance. However, the V&V of CPSs is a time-consuming and resource-intensive process [26]. Formal specification languages support the V&V process by enabling the precise formalisation of requirements. Then, using monitors, the specified requirements can be automatically evaluated on execution traces to assess whether the traces satisfy the requirements. In this way, specification languages and the associated monitor can improve both the rigour and efficiency of various V&V activities such as runtime verification, testing, and falsification [4]. Their effectiveness, however, depends on their ability to capture the properties of interest while abstracting away contingent variations of individual executions. Intuitively, making strong assumptions on the execution traces limits the applicability of a specification to diverse scenarios. Analogously, if the monitoring is easily perturbed by small variations in the signals, it provides limited support for systematic and automated V&V.

At a high level, the objective of a CPS is to steer the physical component towards a desired state. For example, in a drone, the software uses accelerometer and GPS measurements to compute

Authors' addresses: Claudio Mandrioli, claudio.mandrioli@uni.lu, University of Luxembourg, Luxembourg, Luxembourg; Drishti Yadav, drishti.yadav@uni.lu, University of Luxembourg, Luxembourg, Luxembourg; Domenico Bianculli, domenico.bianculli@uni.lu, University of Luxembourg, Luxembourg, Luxembourg.

Claudio Mandrioli, Drishti Yadav, and Domenico Bianculli

the propellers commands and fly the drone towards a target position, i.e., the desired state. The evolution of both the actual and desired physical states can be represented as time-varying signals. Accordingly, CPS requirements describe how the actual-state signal should evolve with respect to the desired-state (reference) signal. This concerns not only the difference in value between the two signals, but also their shape and relation over time. For example, requirements specify how close the drone should get to a target position, but also how fast it should reach it and whether it may overshoot while doing so. Common examples of specified behaviours include oscillations, overshoots, settling time, or steady-state tracking [11, 28].

Formal specification languages are languages with a formal syntax and semantics that allow for the rigorous specification of requirements. Once a requirement is specified, it can then be checked using runtime verification techniques [5] on system traces (e.g., signals recording in the case of CPSs), providing a verdict of whether the requirement specification is satisfied or not. State-of-the-art specification languages for CPSs, including Signal Temporal Logic [30] (STL) and its variants [15, 35], are based on the time-domain representation of signals. That is, they define assertions on the sequence of values that signals take over time. This representation is well suited for expressing requirements that directly constrain signal values, such as an upper bound on a signal value. However, it is less natural for expressing requirements that concern signal shapes, such as an oscillation, or the dynamic relation between multiple signals, such as an overshoot. In fact, capturing such shape-related properties in the time domain requires explicitly constraining signal values at multiple time instants, and encoding assumptions about specific signal patterns and expected signal evolution. For example, describing a sinusoidal oscillation requires constraining the signal values within one oscillation period so that they are sufficiently close to shape of the sinusoid of interest; describing an overshoot requires first encoding the shape of the reference value change (e.g., a step-like change) and then constraining the value of the actual-state signal within a time window around the reference change. In such time-domain descriptions, the resulting specifications are often tightly coupled to particular signal realisations which makes them sensitive to contingent variations.

The frequency-domain representation of signals, already used in related fields such as control theory and robotics [2], can help mitigate these limitations. In the frequency domain, a signal is represented as a combination of sinusoidal components with different frequencies, amplitudes, and phases, called spectrum. Rather than describing the values assumed by the signal at individual time instants, this representation captures the rates at which the signal varies. Intuitively, slowly varying signals are dominated by low-frequency components, whereas rapidly varying signals contain more pronounced high-frequency components. As a result, the frequency domain is particularly well suited to expressing shape-related properties. For example, a sinusoidal oscillation appears as a isolated frequency component (a spike in the spectrum), or an overshoot appears as the amplitude amplification of a frequency component from the input to the output.

However, in a purely frequency-domain representation, the temporal information is implicitly encoded and thus “hidden” in the sinusoids. As a result, it becomes difficult to locate signal features in time and assert whether a particular property holds within the signal at a certain point in time. To address this limitation and combine the benefits of both the time and frequency domains, several hybrid time-frequency representations have been proposed [10]. In a time-frequency representation, a signal is represented as a sequence of frequency components whose amplitudes and phases evolve over time. This representation enables reasoning jointly about the frequency-based shape-oriented features and their appearance at different points in time.

The central hypothesis of this paper is that time-frequency representations provide a more suitable foundation for specifying CPS requirements on signal shapes. Using the time-frequency domain offers two potential benefits. First, it enables specifications to abstract from individual signal values and capture shape-related features more directly while preserving their location in time, thereby increasing their applicability across different signal shapes. Second, it improves the tolerance of monitoring algorithms to signal noise by enabling the isolation of the frequency components that encode the relevant system behaviour.

Despite the widespread use of the frequency domain in control and robotics, its potential use in CPS specification languages remains under-explored. Existing specification languages are almost exclusively formulated over time-domain signals and therefore provide limited support for reasoning about signal shape independently of specific signal values. The only exception is Time-Frequency Logic (TFL) [23], which introduces assertions over time-frequency representations of signals. However, as the authors themselves acknowledge in their conclusions, TFL is largely time-oriented, and, to the best of our knowledge, it has been applied (through an extension called PTFL) to CPSs in only two subsequent works [9, 38] to perform anomaly detection. Consequently, there is currently little understanding of (i) which CPS requirements actually benefit from time-frequency representations, (ii) which language constructs are needed to express them, and (iii) whether such representations provide practical advantages for specification assessment.

To address these questions, in this work, we first analyse existing taxonomies of signal-based CPS requirements [11, 28] to identify which CPS requirement classes can benefit from the use of the time-frequency representation. We observe that requirements concerning signal features and step-response behaviours can be naturally reformulated in terms of frequency-domain properties. Based on this observation, we then derive a set of desiderata for a specification language using time-frequency representations of signals. Notably, we contend that such a language shall support predicates over frequency intervals and express logical relations between frequency components of different signals.

We observe that TFL does not satisfy these desiderata. Specifically, TFL predicates on individual frequency components, and lacks constructs for expressing logical relations over frequency intervals and between frequency components of different signals. To address this limitation, we propose Signal-Spectrum Temporal Logic (S2TL, read as “S-square TL”). S2TL enables predicates over frequency intervals and the formulation of logical relations between frequency components of multiple signals. Using S2TL, we propose templates for the classes of CPS requirements that can benefit from time-frequency reasoning and compare them against corresponding STL formulations. We then operationalise the proposed semantics and implement a discrete-time offline monitoring algorithm for S2TL as an extension of the RTAMT monitoring tool [47].

We use our S2TL templates and STL templates from the literature [28] to formulate requirements for a drone and an aircraft. We then evaluate the resulting specifications on both realistic CPS traces and synthetic traces for which the ground-truth satisfaction of the requirements is known. We evaluate the resulting specifications along three complementary dimensions. First, we investigate their applicability, namely the set of traces for which the requirements can be meaningfully assessed. Second, we assess expression fidelity, that is, how well the specifications capture the intended property. To enable this assessment of the expression fidelity, we use control theory to generate traces that intrinsically satisfy or violate the intended property. Third, we assess the noise tolerance of the specification monitoring.

Our results show that, while time-domain specifications are applicable only to traces that contain step-like input changes or use constant interpolation between control points, time-frequency-based specifications can be applied also to traces generated through linear interpolation. This applicability extension is particularly important because linear interpolation is the standard choice in most CPS applications. For traces to which both representations are applicable, we observe comparable ability to capture the intended requirements, although with different trade-offs between soundness and

Claudio Mandrioli, Drishti Yadav, and Domenico Bianculli

Table 1. Classes of signal-based CPS requirements proposed in the literature (left and centre columns), and their harmonization proposed in this paper (right column).

Boufaied et al. [11]Kapinski et al. [28]Harmonised
UAData Assertion (Untimed)Untimed Data Assertion
TAData Assertion (Timed)Timed Data Assertion
FRFunctional RelationFunctional Relation
TROrder RelationTimed RelationTimed Relation
SPSpikesSpikes (and glitches)Spikes
OSOscillation (damped/driven)RingingOscillation
SSSteady-State ErrorSteady-State Error
RTRise/Fall TimeRise/Fall TimeRise/Fall Time
OVOver/Under-shootOver/Under-shootOver/Under-shoot
STSettling TimeSettling Time

precision. Finally, time-frequency-based specifications exhibit substantially greater tolerance to offset and high-frequency noise, while achieving comparable tolerance to white noise.

To summarise, our contributions are the following:

  • An analysis of signal-based CPS requirement classes, identifying those that benefit from the time-frequency representation of signals. Based on this, we derive the desiderata for a specification language able to express them.

  • The formal definition of S2TL language in terms of its syntax and semantics, which enables time-frequency specifications with predicates over frequency intervals and logical relationships between frequency components.

  • A set of specification templates for expressing signal-based CPS requirement classes.

  • An empirical comparison—in terms of applicability, expression fidelity, and noise tolerance of monitoring—of time-frequency specifications expressed in S2TL and time-domain specifications expressed using STL templates from Kapinski et al. [28].

The rest of the paper is structured as follows. Section 2 introduces the relevant background on signal-based CPS requirements, as well as time-, frequency-, and time-frequency-domain signal representations. Section 3 discusses which CPS requirement classes can benefit from the use of the time-frequency domain and qualitatively explains how these requirements can be captured in this domain. Section 4 introduces the formal syntax and semantics of the S2TL language. Section 5 presents our S2TL templates for formulating the different requirement classes. Section 6 reports on our empirical comparison between time-domain and time-frequency-domain specifications. Section 7 discusses the implications of this work for software engineering researchers and practitioners. Section 8 discusses the related work. Finally, Section 9 concludes the paper.

References (42)