An approach to WLS-SVM based on QPSO algorithm in anomaly detection