Object Tracking Using Meanshift Algorithm Combined with Kalman Filter on Robotic Fish

Xin Li, Wei XiangAdvances 2015

Abstract

This paper investigates and proposes an improved Meanshift algorithm combined with a Kalman Filter to address the shortcomings of traditional Meanshift tracking in dynamic underwater environments. Specifically, it targets the limitations faced by independent visual robotic fish tracking objects amidst water wave fluctuations. The proposed algorithm utilizes a Kalman Filter to predict the initial position for the Meanshift search and adaptively adjusts the kernel function bandwidth to handle scale changes. Experimental results on a moving ball tracking task demonstrate that the hybrid approach provides more accurate and continuous trajectories, reduces the number of iterations, and improves real-time performance by approximately 21% compared to the traditional Meanshift algorithm.

Introduction

Object tracking in underwater environments presents unique challenges due to dynamic factors such as water ripples, lighting changes, and the movement of the tracking platform itself. For a robotic fish, maintaining a stable lock on a target is critical for navigation and interaction.

The traditional Meanshift algorithm, while popular for its simplicity and efficiency, suffers from two primary weaknesses:

  1. Lack of Predictive Capability: As a "hill-climbing" optimization method, Meanshift relies on the overlap between the target's position in consecutive frames. If a target moves rapidly, it may fall outside the search window, causing the tracker to fail.
  2. Fixed Kernel Bandwidth: Standard implementations often use a static window size, which fails to account for targets moving closer to or further from the camera, thereby changing in apparent scale.

Proposed Methodology

To overcome these issues, the researchers developed a hybrid tracking framework that integrates a Kalman Filter with an adaptive Meanshift algorithm.

Kalman-Meanshift Integration

The core of the improvement lies in using the Kalman Filter to provide a "head start" for the Meanshift search. Instead of initializing the search at the target's last known coordinates, the Kalman Filter predicts the most likely position in the current frame based on previous velocity and position data.

Flowchart of the proposed Kalman-Meanshift hybrid algorithm.

The process follows a cyclic update pattern:

  • Prediction: The Kalman Filter estimates the target's new state.
  • Refinement: This estimate serves as the starting point for the Meanshift algorithm, which performs a local search to find the precise color distribution match.
  • Correction: The final position determined by Meanshift is fed back into the Kalman Filter to update its motion model for the next frame.

Adaptive Scaling

The algorithm also incorporates an adaptive kernel bandwidth. By dynamically adjusting the size of the tracking window, the system can maintain an accurate fit on the target even as its scale changes during movement.

Experimental Results and Analysis

The algorithm was evaluated using a custom video sequence of a ball moving at varying speeds in a water tank, captured from the perspective of a robotic fish. The tracking performance was compared against the traditional Meanshift algorithm using MATLAB simulations.

Tracking Accuracy and Continuity

Experimental observations revealed that the traditional Meanshift algorithm frequently lost the target as its velocity increased, resulting in fragmented trajectories. In contrast, the hybrid Kalman-Meanshift algorithm maintained a continuous and stable track. Visual comparisons demonstrate that the hybrid approach remains centered on the target while the traditional method begins to drift or lose the target entirely.

Visual tracking results comparing the traditional and improved algorithms.

Computational Efficiency

A significant finding was that the addition of the Kalman Filter actually improved the overall speed of the system. By providing a more accurate initial guess, the number of iterations required for the Meanshift algorithm to converge was significantly reduced.

  • Traditional Meanshift Run-time: 41.5586s
  • Improved Hybrid Run-time: 32.6691s

This ~21% reduction in processing time is crucial for achieving real-time performance on the limited hardware typically found in robotic fish.

Conclusion

The integration of a Kalman Filter with the Meanshift algorithm significantly enhances the robustness and efficiency of object tracking for robotic fish. By addressing the issues of target loss during high-speed motion and scale variation, this hybrid approach provides a more reliable solution for underwater visual navigation. Future research will focus on implementing non-linear motion models and testing the system on physical embedded hardware in more complex, real-world aquatic environments.

Summary updated

BibTeX
@inproceedings{li2015object,
  author = {Xin Li and Wei Xiang},
  title = {{Object Tracking Using Meanshift Algorithm Combined with Kalman Filter on Robotic Fish}},
  booktitle = {Advances},
  year = {2015},
  doi = {10.2991/kam-15.2015.46},
}
Figure