Event Detection via Probability Density Function Regression

Clark Peng, Tolga Dinçer · OpenReview

Abstract

In the domain of time series analysis, particularly in event detection tasks, current methodologies predominantly rely on segmentation-based approaches, which predict the class label for each individual timestep and use the changepoints of these labels to detect events. However, these approaches may not effectively detect the precise onset and offset of events and suffer from class imbalance problems. This study introduces a generalized regression-based approach to reframe the time-interval-defined event detection problem. Inspired by heatmap regression techniques from computer vision, our approach aims to predict probability densities at event locations rather than class labels across the entire time series. We demonstrate that regression-based approaches outperform segmentation-based methods across various state-of-the-art baseline networks and datasets, offering a more effective solution for specific event detection tasks.

Introduction

Identifying specific events within continuous time series data—such as the onset of a seizure in EEG signals or the transition to sleep in accelerometer data—is a fundamental challenge in signal processing. Traditionally, this has been treated as a segmentation problem, where a model is trained to assign a binary label (0 or 1) to every individual timestep.

While intuitive, this classification-centric approach faces significant hurdles. First, class imbalance is pervasive; events of interest are often rare, leading models to bias toward the majority "non-event" class. Second, boundary blurring occurs because segmentation focuses on the interior of an event rather than its precise edges. Finally, label noise from human annotators can penalize models for being more precise than the ground truth. This paper proposes a shift toward Probability Density Function (PDF) regression, treating event detection as the prediction of continuous "heatmaps" rather than discrete labels.

Methodology: PDF Regression

The core innovation lies in reframing the target. Instead of a step function representing the event duration, the authors convolve a probability density function (typically a Gaussian curve) over the event's onset and offset points.

Comparison of segmentation-based (left) and regression-based (right) targets applied to a time series signal. The regression approach focuses on predicting peaks at event boundaries.

Model Agnostic Framework

A key advantage of this method is its flexibility. Standard architectures like 1D UNets or Gated Recurrent Units (GRUs) can be adapted simply by replacing the final Softmax activation layer with a Linear activation layer. This allows the model to output continuous values representing the probability density.

Target Generation and Normalization

To generate the training targets, Gaussian kernels are centered at the ground-truth onset and offset times. This "softens" the ground truth, providing a gradient of correctness that rewards the model for being close to the event boundary.

Visualization of discrete segmentation labels (top) versus continuous PDF targets (bottom). The bottom plot shows distinct peaks for the start and end of an event.

To ensure training stability, the authors introduced a scaling factor, $\gamma$, to normalize the expected loss across different PDF shapes, preventing gradient issues during early training epochs. Post-processing is then handled via simple peak-finding algorithms to extract precise event timestamps from the predicted PDF.

Experimental Results

The researchers evaluated the approach on several real-world datasets, including the CMI Sleep Detection Dataset and the CHB-MIT Scalp EEG Database.

The results consistently favored the regression-based approach:

  • Performance Gains: On the sleep dataset, a Bidirectional GRU using PDF regression achieved an Event Detection Average Precision (EDAP) of 0.621, significantly higher than the 0.508 achieved by the segmentation-based version of the same model.
  • Precision and Robustness: Regression models maintained superior precision across various temporal tolerances, proving more effective at locating events regardless of the allowed error margin.
  • Architecture Efficiency: Even simpler models saw performance boosts that allowed them to outperform more complex state-of-the-art segmentation models.

Discussion and Future Work

By "softening" the ground truth, PDF regression provides a more informative training signal than hard classification. This approach was a key component in top-performing solutions for the 2023 Child Mind Institute Kaggle competition, validating its practical utility.

Future research directions include developing Adaptive PDFs, where the variance of the target Gaussian narrows as the model's confidence increases, and adapting the post-processing pipeline for online, real-time detection in streaming data environments. While currently optimized for long-duration events, further validation on high-frequency, short-burst signals remains an open area of study.

Summary updated

BibTeX
@misc{peng2024event,
  author = {Clark Peng and Tolga Dinçer},
  title = {{Event Detection via Probability Density Function Regression}},
  year = {2024},
  eprint = {2408.12792},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.12792},
}

Loading related content...

Figure