Anomaly detection in X-ray physics