How have classical conditioning procedures been used to develop humane ways of discouraging predators from preying on livestock?

How have classical conditioning procedures been used to develop humane ways of discouraging predators from preying on livestock?