Automatic fault detection and isolation