Parameter estimation of an ecological system by a neural network with residual minimization training