Artificial intelligence for inventory