IDDE. illicit discharge detection and elimination