A signal and event processing, SEP, engine (SEPE) adapted to be deployed on a target device of an industrial system, said SEP engine comprising: - subscriber nodes (SUBN) adapted to receive signal and/or event, SE, data streams from sources of said industrial system; - processing nodes adapted to perform signal and event processing language, SEPL, functional operations on the received SE data streams according to an SEPL script of said SEP engine, wherein the signal and event processing language, SEPL, functional operations are suitable for numeric and categorical time series processing, and the SEPL script includes predefined stateful operations to generate result SE data streams, wherein said stateful operations comprise event or data pattern matching operations; and - publisher nodes (PUBN) adapted to forward the generated result SE data streams to sinks of said industrial system, wherein each node of the SEP engine deployed on said target device is adapted to perform a functional operation forming part of the SEPL script, wherein the functional operation comprises a stateless functional SEPL operation or a stateful functional SEPL operation, and wherein each processing node of the deployed SEP engine is adapted to apply a predefined SEPL functional operation on SE data streams received by at least one subscriber node (SUBN) or output by at least one preceding processing node and to deliver a resulting SE data stream to a subsequent processing node and/or to a publisher node (PUBN) of the deployed SEP engine, - and wherein the SEPL script of the deployed SEP engine includes one or more predefined stateful functional SEPL window event pattern matching operations each adapted to validate event patterns mined from historic data of recorded and stored SE data streams within an SE data stream received by a subscriber node (SUBN) of the batch processing SEP engine for a sliding time window with a configurable time window length to generate matching results forming a result SE data stream output by a publisher node (PUBN) of the deployed batch processing SEP engine, the one or more predefined stateful functional SEPL window event pattern matching operations comprise deriving characteristic patterns from historic data, formulating the patterns as SEPL scripts and validating the patterns using the batch processing SEP engine. - subscriber nodes (SUBN) adapted to receive signal and/or event, SE, data streams from sources of said industrial system; - processing nodes adapted to perform signal and event processing language, SEPL, functional operations on the received SE data streams according to an SEPL script of said SEP engine, wherein the signal and event processing language, SEPL, functional operations are suitable for numeric and categorical time series processing, and the SEPL script includes predefined stateful operations to generate result SE data streams, wherein said stateful operations comprise event or data pattern matching operations; and - publisher nodes (PUBN) adapted to forward the generated result SE data streams to sinks of said industrial system, - and wherein the SEPL script of the deployed SEP engine includes one or more predefined stateful functional SEPL window event pattern matching operations each adapted to validate event patterns mined from historic data of recorded and stored SE data streams within an SE data stream received by a subscriber node (SUBN) of the batch processing SEP engine for a sliding time window with a configurable time window length to generate matching results forming a result SE data stream output by a publisher node (PUBN) of the deployed batch processing SEP engine, the one or more predefined stateful functional SEPL window event pattern matching operations comprise deriving characteristic patterns from historic data, formulating the patterns as SEPL scripts and validating the patterns using the batch processing SEP engine.