The Evolution of AI in Stock Market Analysis