Any reasonable way to get a computer to determine race will yield a fuzzy answer: based on your family tree you are 36% European, based on facial recognition the algorithm is 60% certain you are white, based on genetic sequencing you are 4% of African descent. All those are perfectly valid fuzzy answers.
If you then try to match those to ridiculous categories like "Black, not of Hispanic origin" it obviously goes wrong quickly. What exactly is "Black"? Does one Spanish great-grandfather disqualify you from that category? Or only if that great-grandfather was from Brazil instead of Spain?