ML-based identification of the interface regions for coupling local and nonlocal models