A computer science degree is a common choice for students who want to work in artificial intelligence. Many schools offer computer science programs with a track in AI or machine learning. This specialization allows students to take various classes in AI to help prepare them for careers in this field .