Design principle of intelligent detection battery system