Neural Network-Assisted Prediction of Swelling Dynamics in Magnetic Hydrogels