Implement debouncing to improve pose detection reliability