Detect when cast fishing rod is bobbing

I want to know if its possible to detect right before you catch a fish and your rod is bobbing?

Continue to help post