The guy I worked for had electric fences around almost all of his apiarys, was running on a car battery and a transformer nothing fancy, idk if it would keep a really determined bear out though, I mean if they are willing to get stung they might not mind getting zaped 