The odds of being attacked are very low. On my home trails we have coyotes and a few bobcats which I don't consider a threat. Black bears are pretty scarce on the trails I use for my daily rides so not much of a concern. More bears on some other trails I ride now and then, but still not much concern. I guess if you were a worry wart you could worry about the wild hogs too.
Other places I have travelled to and ridden have had grizzlies and cougars, but still, not worth losing too much sleep over them. Plenty of other things more likely to kill you to worry about. Or better yet live without worry at least when riding your bike