If I'm hiking or cycling alone through the woods with high bear populations, I will often play some music to alert them to prevent an unpleasant encounter.