Detecting and Mitigating Data Poisoning Attacks in Machine Learning: A Weighted Average Approach | Synapse