A Study On the Effects of Pre-processing On Spatio-temporal Action Recognition Using Spiking Neural Networks Trained with STDP

Mireille el Assal, Pierre Tirilly, Ioan Marius Bilasco · DOI

TL;DR

This paper explores how different ways of preparing video data (pre-processing) affect the performance of Spiking Neural Networks (SNNs) trained with unsupervised STDP learning for action recognition. They found that representing motion effectively, especially by capturing full action cycles, significantly boosts SNN performance, bridging some of the gap with traditional neural networks.

What Problem Does This Paper Address?

Spiking Neural Networks (SNNs) are biologically inspired and promise greater energy efficiency and faster processing than traditional Artificial Neural Networks (ANNs), especially on specialized hardware. However, current methods for training SNNs, like converting ANNs or using backpropagation, don't fully leverage SNNs' unique capabilities. Unsupervised learning methods, particularly Spike-Timing Dependent Plasticity (STDP), are promising for SNNs as they allow for local learning and potentially greater energy savings. Yet, SNNs trained this way still lag behind ANNs in performance, especially for complex tasks like recognizing actions in videos. This gap is partly due to the challenge of effectively encoding spatio-temporal information (motion and appearance over time) into the spike-based communication of SNNs. This paper aims to bridge this gap by investigating how various pre-processing techniques can better represent motion and temporal information for STDP-trained SNNs.

Methods

The core of this work involves preparing video data in several ways before feeding it into a convolutional SNN trained with STDP. The process starts with Sequence Preparation (SP), which includes background subtraction and motion detection to filter out irrelevant information and speed up processing.

The key innovation lies in the pre-processing methods used to represent spatio-temporal information:

  • DXDY: Captures horizontal and vertical displacement from optical flow.
  • OA (Orientation and Amplitude): Separates optical flow vectors into direction and magnitude, encoded in HSV color space.
  • CC (Composite Channel): Combines DXDY with the original grayscale image information of moving parts.
  • EG (Edges Grid): Extracts motion edges from optical flow and groups them into a grid.
  • MG (Motion Grid): Groups movement information into a composite grid, representing different directions of displacement.

These representations are then fed into a convolutional SNN trained using the STDP learning rule. The paper also explores two temporal fusion techniques:

  • Early Fusion: Frames are fused together before being processed by the SNN.
  • Late Fusion: Features extracted by the SNN from individual frames are fused after processing.

The SNN architecture itself is a simplified, single-stage convolutional network with IF neurons, using on-center/off-center filters and threshold adaptation for homeostasis, as described in prior work.

Datasets

The paper evaluates its methods on two standard action recognition datasets:

  • KTH dataset: Contains 600 videos of 25 subjects performing 6 actions.
  • Weizmann dataset: Contains 90 videos of 9 subjects performing 10 actions.

Experiments are conducted using standard train/test splits for KTH and a leave-one-out strategy for Weizmann.

Key Insights and Ideas

  • Motion is Key: Representing motion effectively is crucial for SNNs to recognize actions. Simply using displacement (DXDY) is insufficient, especially when actions have similar movement patterns.
  • Full Action Cycles Matter: The Motion Grid (MG) representation, which captures a more complete cycle of movement, significantly outperforms other methods on the KTH dataset. This suggests SNNs benefit from seeing a holistic representation of an action.
  • Data Representation Bridges the Gap: A well-chosen pre-processing method can help SNNs achieve performance comparable to traditional CNNs on certain tasks, even with unsupervised STDP training.
  • Dataset Size Impacts Performance: The effectiveness of certain representations (like MG) is highly dependent on the availability of sufficient training data. Smaller datasets can lead to poor performance for methods requiring many frames per sample.
  • Sequence Preparation Helps: Applying background subtraction and motion detection before other pre-processing steps consistently improves classification rates.

Key Results

  • The Motion Grid (MG) representation achieved the highest classification rates on the KTH dataset (up to 77.69% with late fusion), outperforming other pre-processing methods.
  • Sequence Preparation (SP) generally led to higher classification rates across various methods compared to not using SP.
  • Late Fusion generally performed better than Early Fusion for most pre-processing methods, especially when dealing with complex representations.
  • When tested with a regular CNN, the MG representation achieved a similar classification rate (77%) as the SNN, highlighting the importance of the pre-processing itself.
  • The paper notes that while their results are not state-of-the-art compared to highly optimized ANN approaches, they represent a significant step towards understanding how SNNs can handle spatio-temporal information effectively.

Limitations and Future Work

  • Dataset Size Dependency: The performance of methods like MG is heavily influenced by the size and duration of training samples. The Weizmann dataset's limited samples hindered MG's performance.
  • Multi-layer SNNs: The current study uses a single-layer SNN, as training multi-layer SNNs with STDP is still an open research problem.
  • Future Directions: The authors suggest exploring more complex SNN architectures, potentially inspired by two-stream methods used in ANNs, where spatial and temporal information are processed in parallel. They also propose investigating how to integrate spatial information more directly into the SNN's processing, similar to how it's done in the CC representation or two-stream models.

Summary updated

BibTeX
@inproceedings{assal2021study,
  author = {Mireille el Assal and Pierre Tirilly and Ioan Marius Bilasco},
  title = {{A Study On the Effects of Pre-processing On Spatio-temporal Action Recognition Using Spiking Neural Networks Trained with STDP}},
  booktitle = {CBMI},
  year = {2021},
  doi = {10.1109/cbmi50038.2021.9461922},
}
Figure