Scientific machine learning in ecological systems: A study on the predator-prey dynamics