Obey validity limits of data-driven models through topological data analysis and one-class classification