Defending Against Beta Poisoning Attacks in Machine Learning Models