Here in New England we have an abundance of bears. We keep them out of our bee yards with low voltage poultry netting. The trick is to shock the bear, however mildly, on the snout. The snout is the most sensitive area of the bear. If the bear gets its head past the electric fencing, it's "Good Night, Irene". So poultry netting is key. The bears know from a short distance if the fence is live. Keep a flashing red light on the fence, so you know, too.