IoT-based Battery Management System by Deploying an Machine Learning Model