Data-driven based automatic routing planning for MASS