A new AI-assisted system to measure diversity