Dynamic swarm class rebalancing for the process mining of rare events