A two-layer switching based trajectory prediction method. (November 2021)