MPCA: A Modified Principal Component Analysis Method for Anomaly Detection