Using Semantic Information for Defining and Detecting OOD Inputs