Private Detective, Undercover Investigator
A detective refers to an undercover investigator who wears a hat and uses a "magnifying glass" to carefully search for evidence. It should be noted that this expression does not distinguish between genders, but refers to occupations such as detectives, private investigators, and undercover investigators in general.