Optical-Flow Wingbeat Counting in MuJoCo: A Comparison of Convolutional, Spiking, and Attention-Based Temporal Models
Abstract
Visual monitoring of flapping-wing vehicles requires distinguishing individual wingbeats from motion strength and average frequency. This paper presents a controlled MuJoCo evaluation of wingbeat counting from signed optical flow observed by virtual cameras mounted on Crazyflie vehicles. Three flapping-wing models were recorded at optical distances of 1.5 and 3.0 m, producing 1,440 clips from 240 paired scene configurations with a scene-level 3:1 training-test split. A common spatial convolutional encoder was combined with a causal temporal convolutional network, a recurrent leaky integrate-and-fire spiking network, or causal self-attention. Each model predicted phase and activity, followed by the same directed-crossing event counter. The six existing convolutional models were retained, and all twelve new models were frozen before their test predictions were generated. Exact-count accuracies at 1.5 m were 96.67%, 95.00%, and 96.67%, respectively; at 3.0 m they were 94.44%, 92.22%, and 95.00%. All paired scene-bootstrap intervals for differences in exact-count accuracy included zero. Seven far-distance spiking-model clips had correct totals despite event-timing mismatches, demonstrating why total-count and event-level measurements must be reported together. The results support the feasibility of causal optical-flow counting in the tested setting and identify boundary-sensitive errors. They do not establish an architecture ranking across repeated training, real-flight robustness, or hardware efficiency.
Create a lesson
Metadata
- Comments
- 12 pages, 1 figure, 7 tables. Controlled simulation study
Related papers
TIDE-Flow: Fine-Grained Temporal Evidence and Structured Displacement Matching for Spike Optical Flow
Shared title terminologycs.CVHanwen Liang, Wenxuan Liu, Wenxin Huang et al.
CoAtNet-DeepMoE: A Convolution-Attention Hybrid with DeepSeek Mixture-of-Experts for Parameter-Efficient Tomato Disease Classification
Shared title terminologycs.CVMd Nadim Mahamood, Md Arif Shahriar, Md Shafi Ud Doula et al.
Temporal-Attention Head Specialization During Video Diffusion Training
Shared title terminologycs.CVTaewoo Ha, Shafayat Mowla Anik, Dae Yeol Lee et al.
LiveVAE: Causal Window Attention Makes Efficient Streaming Video VAE
Shared title terminologycs.CVJiachen An, Sijie Zhao, Le Li et al.
Beyond Feature Fusion: Sensor-Grounded Semantic-Spiking Learning for Robust Object Detection
Shared title terminologycs.CVHanwen Liang, Wenxuan Liu, Wenxin Huang et al.
Counting Beyond Frames: Codec Motion Tells Frozen Diffusion VLMs How Many
Shared title terminologycs.CVZhuoqin Li, Jiayu Ding, Ge Li