Smart Lithium Iron Phosphate Battery