Modeling and Identification for Anomaly detection in Mechanical System