How AI could save the stock market