Bio-inspired battery management system for enhanced performance in electric vehicles