how to measure ai