Leveraging Reinforcement Learning, Genetic Algorithms and Transformers for background determination in particle physics