Data Analysis and the Use of Machine Learning for Data Cleaning in the NEWS-G Dark Matter Experiment