This honestly sounds fantastic and would improve treatment for the vast majority of people within disadvantaged populations. People fall back to stereotypes when no other information is available, so providing that information would decrease the use of stereotypes.
(I'm still not a huge fan of the civil liberties and surveillance implications, of course)