Low-power, intelligent, charge-discharge conversion detection and analysis system for lithium-ion batteries