Machine learning helps pick out stars in a crowd