Semi-Automatic Anomaly Machine and related code