Event detection is the foundational signal processing step in Non-Intrusive Load Monitoring (NILM) that scans an aggregate power time series for abrupt, sustained changes in magnitude. By applying edge-detection algorithms, such as the generalized likelihood ratio test or matched filters, to active and reactive power measurements, the system precisely timestamps the moment a load transitions between steady states. This segmentation isolates transient signatures from background noise, providing the temporal boundaries required for subsequent appliance signature extraction.
Glossary
Event Detection

What is Event Detection?
Event detection is the algorithmic process of identifying significant state transitions, such as an appliance turning on or off, within an aggregate electrical power signal to trigger load disaggregation pipelines.
Robust event detectors must discriminate between genuine appliance switching and spurious fluctuations caused by noisy sensors or continuous loads. Advanced implementations utilize cumulative sum (CUSUM) control charts and adaptive thresholding to maintain high recall on low-power devices while minimizing false positives. The detected event's delta power and transient shape serve as the primary input for factorial hidden Markov models and sequence-to-sequence disaggregation architectures, making accurate event detection the critical gating factor for overall energy disaggregation accuracy.
Key Characteristics of Event Detection Algorithms
Event detection algorithms form the critical first stage in most Non-Intrusive Load Monitoring (NILM) pipelines. These algorithms must balance sensitivity to genuine appliance state changes against robustness to noise, identifying the precise moment a load switches on or off within a noisy aggregate power signal.
Edge-Based Step Detection
The foundational mechanism that identifies significant magnitude changes in the aggregate power signal. The algorithm monitors the difference between consecutive steady-state windows.
- Primary metric: Change in mean active power (ΔP) exceeding a predefined threshold
- Dual-edge logic: Detects both positive edges (appliance ON) and negative edges (appliance OFF)
- Typical threshold: 10-50 watts for residential loads, tuned to balance sensitivity against false triggers from noise
- Example: A refrigerator compressor activating creates a distinct 150W positive step, while its defrost cycle ending produces a corresponding negative step
Transient Signature Analysis
Captures the high-frequency burst of electrical noise and harmonic distortion that occurs during the brief moment an appliance switches state, typically lasting only milliseconds to a few AC cycles.
- Sampling requirement: High-frequency data at 1–100 kHz to capture transient morphology
- Key features: Turn-on current spike amplitude, transient duration, and spectral content
- Discriminative power: Transient shapes are often unique to specific appliance types, enabling identification without steady-state analysis
- Example: A vacuum cleaner motor exhibits a distinctive high-amplitude inrush current transient lasting 100–200ms, clearly distinguishable from an incandescent light bulb's instantaneous step
Goodness-of-Fit Hypothesis Testing
A statistical framework that evaluates whether an observed signal segment is better explained by a single steady state or by a state transition occurring within the window.
- Method: Generalized Likelihood Ratio (GLR) test comparing a null hypothesis (no event) against an alternative hypothesis (event at time t)
- Output: A detection statistic that peaks at the most likely change point
- Advantage: Provides a mathematically principled threshold based on desired false-alarm probability
- Example: A GLR detector can reliably identify a 60W load change even when superimposed on a slowly varying aggregate baseline with ±20W fluctuations
Cumulative Sum Control Chart
An iterative algorithm that accumulates deviations from a reference mean to detect subtle but sustained shifts that individual samples might miss.
- Mechanism: Maintains a running cumulative sum of residuals; triggers an event when the accumulated value exceeds a control limit
- Sensitivity tuning: The decision interval parameter (h) and reference value (k) control the trade-off between detection delay and false alarm rate
- Best for: Detecting small-magnitude events (5–20W) that would be lost in noise with simple thresholding
- Example: A CUSUM detector can identify a 15W LED lighting circuit activating even when the aggregate load fluctuates by ±30W due to other appliances
Matched Filter Correlation
A signal processing technique that cross-correlates the aggregate signal with a known template of an appliance's characteristic turn-on or turn-off signature.
- Template library: Pre-extracted transient or steady-state step profiles for each known appliance
- Peak detection: Events are declared at time indices where the correlation coefficient exceeds a threshold
- Noise immunity: Optimal detection in additive white Gaussian noise when the template matches the true signature
- Example: Correlating the aggregate signal with a template of a washing machine motor start (gradual ramp over 2–3 seconds) distinguishes it from an instantaneous resistive load step
Dual-Window Sliding Variance
A non-parametric method that detects events by comparing the statistical dispersion of two adjacent sliding windows moving through the signal.
- Algorithm: Computes variance in a left window and right window; a significant ratio change indicates a transition
- Window size: Typically 5–30 seconds for low-frequency data, balancing responsiveness against noise suppression
- Advantage: Detects events even when the absolute power change is ambiguous, by identifying shifts in signal stability
- Example: A heat pump cycling on introduces not just a power increase but a change in variance due to compressor modulation, triggering detection even if the mean shift is gradual
Frequently Asked Questions
Clarifying the algorithmic mechanisms that identify state transitions in aggregate power signals to trigger appliance-level energy analysis.
Event detection is the algorithmic process of identifying significant, timestamped state changes—such as an appliance turning on or off—within a building's aggregate electrical signal. It serves as the primary trigger for event-based Non-Intrusive Load Monitoring (NILM) pipelines. Rather than continuously analyzing the entire waveform, the system monitors for edge events (step changes in steady-state power) or transient events (high-frequency noise bursts). When the change in a monitored parameter, typically active power (P) or reactive power (Q), exceeds a predefined threshold, the detector marks a candidate event. This segmentation drastically reduces computational load by isolating short windows of interest for subsequent appliance signature extraction and classification, making real-time analysis feasible on resource-constrained hardware.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Event detection serves as the primary trigger for energy disaggregation pipelines. Explore the foundational algorithms and feature extraction methods that enable the identification of appliance state transitions.
Non-Intrusive Load Monitoring (NILM)
The overarching computational framework that relies on event detection to analyze a single aggregate electrical signal. NILM deduces the energy consumption and operational state of individual appliances without requiring per-device sensors, using state changes as its primary data source.
Appliance Signature Extraction
The process of isolating unique electrical characteristics that distinguish one appliance type from another. Event detectors trigger the capture of these signatures, which include:
- Transient spikes: High-frequency noise during startup
- Steady-state harmonics: Distortions in the sinusoidal waveform
- Reactive power shifts: Changes in the phase angle between voltage and current
Appliance State Transition Modeling
The algorithmic representation of an appliance's operational cycle as a series of discrete states. Event detection identifies the exact moment of transition between states such as OFF, START-UP, STEADY-STATE, and COOL-DOWN, enabling precise energy accounting.
Factorial Hidden Markov Model (FHMM)
A generative statistical model representing an aggregate load as the sum of multiple independent hidden Markov chains. Each chain models the state transitions of a single appliance, with event detection providing the observation sequence that drives inference.
Voltage-Current (V-I) Trajectory Clustering
A high-frequency feature extraction method that plots normalized voltage against current waveform over one AC cycle. When an event is detected, the resulting V-I trajectory shape serves as a unique fingerprint for appliance identification, distinguishing resistive loads from inductive or capacitive ones.
Real-Time Disaggregation Engine
A software system optimized for low-latency inference that processes streaming aggregate power data. The engine's event detection module acts as the front-end trigger, activating downstream neural networks only when a significant state change is identified, conserving computational resources.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us