Trustworthy intrusion detection: Confidence estimation using latent space