This beaten-down artificial intelligence stock is starting to look like an attractive long-term investment.