Cerenkov Differential counters with Achromatic Ring focus (CEDARs) in the COMPASS experiment beamline were designed to identify particles in limited intensity beams with divergence below 65𝜇rad. However, in the 2018 data taking, a beam with a 15 times higher intensity and a beam divergence of up to 300𝜇rad was used, hence the standard data analysis method could not be used. A machine learning approach using neural networks was developed and examined on ultiple Monte Carlo simulations. Different types of network were tested and their configurations optimized using a genetic algorithm with the best performing model being integrated into the current data analysis software written in C++.