Battery automatic recovery technology