Japan has had so many bear attacks in the past year it’s turning to AI to act as a warning system