Probably a collie. They also tend to chase cars passing the farm as they get a bit bored as they are so intelligent.
It’s a dog who’s instinct is to protect the livestock and the farm. Someone coming up at high speed wearing odd clothing on an odd contraption are going to make it think you are a threat.
Slow down, talk to it as you approach, be assertive and don’t approach it. If you kick it or squirt it you are just reinforcing it’s assumption that people like that are threats. If you ride away you are giving it the idea that what it is doing is correct and it can chase off the threat.
Same with livestock, sneaking up at high speed nearly silent on a bike looking like something from outer space is not the best idea.