Modelling Infectious Disease Spreading Dynamic via Magnetic Spin Distribution: The Stochastic Monte Carlo and Neural Network Analysis