How to detect current imbalance?
One simple way is to use a current transformer, Hall effect sensor, or Rogowski coil, and run both leads through the aperture. If the current in one wire is exactly balanced by the current in the other, the sensor should give zero output. Only the imbalanced current will be detected.