A multiscale differential-algebraic neural network-based method for learning dynamical systems