leverages ai for smarter detection