Koopman-inspired approach for identification of exogenous anomalies in nonstationary time-series data