Unlocking Imbalanced Data: Techniques for Effective Machine Learning