how to use ai for market trend analysis