Artificial intelligence for maximizing content based image retrieval