Research Article

Multiworking Conditions Anomaly Detection of Mechanical System Based on Conditional Variational Auto-Encoder

Algorithm 2

Anomaly detection algorithm.
Input: samples and corresponding working conditions
Output: anomaly or not
# get anomaly score by equation (7)
 If score < best_threshold ()
   is normally
 else
   is anomaly