Real-time detection of anomalies in large-scale transient surveys