AIs are racist too

How long before “race” gets assigned to each artificial intelligence based on the average of the color of each person that developed its skin?