Designing smart electrochemical devices using multifunctional components and data-driven analysis