Analyzing dynamic resistance in high-temperature superconducting tapes by combining finite element method with machine learning