How AI is helping to prevent three buses turningup