How they’ve done it in the past is by tracking the criminal history of people caught with csam, arrested for abuse, or some combination thereof, or by tracking the outcomes of people seeking therapy for pedophilia.
It’s not perfect due to the sample biases, but the results are also quite inconsistent, even amongst similar populations.