We used artificial intelligence to assess the road quality in a West Midlands borough after top ranking issued by government