Adaptive Strategies For Oscillatory Systems:Integrating Machine Learning And Controltechniques With Applications In Neuroscience