{"id":19231,"date":"2026-04-06T09:55:44","date_gmt":"2026-04-06T13:55:44","guid":{"rendered":"https:\/\/blogs.mathworks.com\/deep-learning\/?p=19231"},"modified":"2026-04-06T09:55:44","modified_gmt":"2026-04-06T13:55:44","slug":"advanced-battery-state-of-charge-estimation-with-ai","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/deep-learning\/2026\/04\/06\/advanced-battery-state-of-charge-estimation-with-ai\/","title":{"rendered":"Advanced Battery State of Charge Estimation with AI"},"content":{"rendered":"<div class=\"rtcContent\">\r\n<div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><\/div>\r\n<div>\r\n<h6><\/h6>\r\n<table style=\"background-color: #e2f0ff;\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 120px; padding: 3px; vertical-align: middle;\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-19233\" src=\"https:\/\/blogs.mathworks.com\/deep-learning\/files\/2026\/04\/riccardo-150x150.jpg\" alt=\"\" width=\"100\" height=\"100\" \/><\/td>\r\n<td style=\"vertical-align: middle; padding: 3px;\"><strong>Guest writer: <a href=\"https:\/\/www.linkedin.com\/in\/ricc-di-dio\/\" target=\"_blank\" rel=\"noopener\">Riccardo Di Dio<\/a><\/strong>\r\n<h6><\/h6>\r\n<span style=\"font-weight: bold;\">Riccardo Di Dio <\/span>is an Industrial PhD Candidate sharing his time between the University of Pisa and Marelli, working on artificial intelligence methods for Battery Management Systems. His research focuses on deep learning algorithms for estimating battery internal states such as State of Charge (SOC) and State of Health (SOH), developed using MATLAB and Deep Learning Toolbox.<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<h6><\/h6>\r\n<\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><\/div>\r\n<\/div>\r\n<div><\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">As a global leader in automotive technology, Marelli is driven by innovation supporting the electrification revolution. This article's aim is to show a cutting-edge solution developed for Battery State of Charge (SOC) estimation using artificial intelligence. Accurate SOC estimation is essential for Battery Management System, directly impacting vehicle performance safety and battery lifespan. Since SOC cannot be measured directly, it must be estimated using available sensor data and advanced modelling techniques. Marelli saw an opportunity to use a data driven approach powered by AI to overcome the limitations of the traditional physical models.<\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The article describes how the Marelli company developed the AI algorithm using synthetic dataset generated through a Virtual Environment developed using model-based design techniques in MATLAB.<\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The entire workflow executed using the MathWorks toolchain spans from data generation to embedded device deployment.<\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><img decoding=\"async\" loading=\"lazy\" class=\"imageNode\" style=\"vertical-align: baseline; width: 567px; height: 232px;\" src=\"https:\/\/blogs.mathworks.com\/deep-learning\/files\/2026\/04\/Draft_Articolo_Mathworks_version_1_1.png\" alt=\"\" width=\"567\" height=\"232\" \/><\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The MathWorks toolchain was selected due to the following reasons: visual development environment enabled intuitive graphical modeling with blocks, facilitating easy connection between the controls system and the plant model; compatibility with the Hardware in the Loop design for testing the interaction between the software and the embedded device; automatic code generation; possibility of training the algorithm in MATLAB and exporting the trained network to a real-time system.<\/div>\r\n<h2 style=\"margin: 3px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\">Data Preparation<\/h2>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The dataset for training and validation was generated using a virtual environment repeating several times the homologation driving cycle.<\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><img decoding=\"async\" loading=\"lazy\" class=\"imageNode\" style=\"vertical-align: baseline; width: 628px; height: 199px;\" src=\"https:\/\/blogs.mathworks.com\/deep-learning\/files\/2026\/04\/Draft_Articolo_Mathworks_version_1_2.png\" alt=\"\" width=\"628\" height=\"199\" \/><\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The Operating Domain Definition (ODD) conditions are:<\/div>\r\n<ul style=\"margin: 10px 0px 20px; padding-left: 0px; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-size: 14px;\">\r\n \t<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\">new electrochemical cell (cell with a State of Health equal to 100%)<\/li>\r\n \t<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\">constant temperature of 25 C and 35 C<\/li>\r\n \t<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\">ideality of the current sensor and the voltage sensor %[text] The inputs chosen for estimating the state of charge are the cell voltage, the cell current and the temperature. The reference state of charge is calculated using the Coulomb counting equation. All the inputs were normalized considering the operating limits of the cell (cut-off voltage, maximum or minimum current and temperature).<\/li>\r\n<\/ul>\r\n<h2 style=\"margin: 3px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\">AI Modeling<\/h2>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">Due to the time-related evolution of a battery's SOC, the Long Short Term Memory (LSTM) architecture was selected as the neural network. LSTM networks are particularly well-suited for capturing time-dependent patterns and sequential relationships, making them ideal for accurately estimating SOC based on historical sensor readings. The data samples were not fed to the networks individually; instead, a temporal observation window was considered.<\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The network was designed and trained using the Deep Learning Toolbox, provided by MathWorks, due to its powerful features for building, training and evaluating neural network models within the MATLAB environment.<\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">A grid search technique was used to find the best performance and in particular to select the best number of neurons, the learning rate and the window size.<\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><img decoding=\"async\" loading=\"lazy\" class=\"imageNode\" style=\"vertical-align: baseline; width: 602px; height: 232px;\" src=\"https:\/\/blogs.mathworks.com\/deep-learning\/files\/2026\/04\/Draft_Articolo_Mathworks_version_1_3.png\" alt=\"\" width=\"602\" height=\"232\" \/><\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The Deep Learning Toolbox facilitates advanced hyperparameter tuning, making it efficient to develop and optimize complex deep learning architectures.<\/div>\r\n<h2 style=\"margin: 3px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\">Real-Time Simulation<\/h2>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The trained network was exported to the Simulink environment to run Real-Time Testing based on different driving cycles for testing and validation, both inside and outside the ODD conditions.<\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><img decoding=\"async\" loading=\"lazy\" class=\"imageNode\" style=\"vertical-align: baseline; width: 692px; height: 139px;\" src=\"https:\/\/blogs.mathworks.com\/deep-learning\/files\/2026\/04\/Draft_Articolo_Mathworks_version_1_4.png\" alt=\"\" width=\"692\" height=\"139\" \/><\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The performance of the developed networks were evaluated considering the following metrics: Root Mean Square Error (RMSE), Mean Absolute Percentage Error (MAPE) and Mean Absolute Error (MAE), defined as:<\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><span style=\"vertical-align: -72px;\">$ \\begin{array}{ll} \\mathrm{RMSE} &amp;= \\sqrt{\\frac{1}{N} \\sum_{k=1}^{N} \\left( Y_{\\mathrm{predicted},k} - Y_{\\mathrm{true},k} \\right)^2} \\\\ \\mathrm{MAE} &amp;= \\frac{1}{N} \\sum_{k=1}^{N} \\left| Y_{\\mathrm{predicted},k} - Y_{\\mathrm{true},k} \\right| \\\\ \\mathrm{MAPE} &amp;= \\frac{100}{N} \\sum_{k=1}^{N} \\left| \\frac{Y_{\\mathrm{predicted},k} - Y_{\\mathrm{true},k}}{Y_{\\mathrm{true},k}} \\right| \\end{array} $<\/span><\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The algorithm was validated using a drive cycle different from the WLTP employed for training and validation, in order to assess its robustness and generalization across varied and realistic operating scenarios. The performance achieved is reported in the table below.<\/div>\r\n<table style=\"margin: 3px; border: 0.666667px solid #bfbfbf; border-collapse: collapse;\">\r\n<tbody>\r\n<tr style=\"background-color: #f5f5f5;\">\r\n<td style=\"border: 0.666667px solid #bfbfbf; vertical-align: top;\">\r\n<div style=\"margin: 2px 10px 2px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: break-spaces; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><\/div><\/td>\r\n<td style=\"border: 0.666667px solid #bfbfbf; vertical-align: top;\">\r\n<div style=\"margin: 2px 10px 2px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: break-spaces; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">RMSE <span class=\"comment\"><\/span><\/div><\/td>\r\n<td style=\"border: 0.666667px solid #bfbfbf; vertical-align: top;\">\r\n<div style=\"margin: 2px 10px 2px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: break-spaces; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">MAPE <span class=\"comment\"><\/span><\/div><\/td>\r\n<td style=\"border: 0.666667px solid #bfbfbf; vertical-align: top;\">\r\n<div style=\"margin: 2px 10px 2px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: break-spaces; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">MAE <span class=\"comment\"><\/span><\/div><\/td>\r\n<\/tr>\r\n<tr style=\"background-color: rgba(0, 0, 0, 0);\">\r\n<td style=\"border: 0.666667px solid #bfbfbf; vertical-align: top;\">\r\n<div style=\"margin: 2px 10px 2px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: break-spaces; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">1 Simulation WLTP, no aging, ideal current and voltage sensors, 25 C<\/div><\/td>\r\n<td style=\"border: 0.666667px solid #bfbfbf; vertical-align: top;\">\r\n<div style=\"margin: 2px 10px 2px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: break-spaces; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">0.29<\/div><\/td>\r\n<td style=\"border: 0.666667px solid #bfbfbf; vertical-align: top;\">\r\n<div style=\"margin: 2px 10px 2px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: break-spaces; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">0.44<\/div><\/td>\r\n<td style=\"border: 0.666667px solid #bfbfbf; vertical-align: top;\">\r\n<div style=\"margin: 2px 10px 2px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: break-spaces; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">0.22<\/div><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<h2 style=\"margin: 3px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\">Compression<\/h2>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">At this stage, the network contained over 10,000 parameters. To address this, a compression technique based on network projection was applied, reducing the number of parameters by 70% while ensuring that the performance of the algorithm remained uncompromised for real-world deployment.<\/div>\r\n<h2 style=\"margin: 3px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\">Deployment<\/h2>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The last step is the C code generation of the network using Embedded Coder and the integration of the AI algorithm into Marelli's BMS architecture.<\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The AI algorithm embedded on a real Battery Management System hardware was tested in a Hardware-in-the-Loop (HIL) environment, which enables realistic integration between simulation and physical hardware. In this setup, the virtual environment representing the battery system dynamics was deployed directly onto the processor board of the simulator. The simulator was responsible for generating representative signals for key parameters such as voltage, current, and temperature. These signals were converted from digital to analog format using dedicated DACs and sent to the embedded device, which hosts the AI algorithm. The internal software variables of the AI algorithm were continuously monitored using ETAS INCA, allowing direct access to algorithm outputs and internal states.<\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><img decoding=\"async\" loading=\"lazy\" class=\"imageNode\" style=\"vertical-align: baseline; width: 752px; height: 473px;\" src=\"https:\/\/blogs.mathworks.com\/deep-learning\/files\/2026\/04\/Draft_Articolo_Mathworks_version_1_5.png\" alt=\"\" width=\"752\" height=\"473\" \/><\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The results recorded by INCA are reported in the figure below.<\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><img decoding=\"async\" loading=\"lazy\" class=\"imageNode\" style=\"vertical-align: baseline; width: 594px; height: 283px;\" src=\"https:\/\/blogs.mathworks.com\/deep-learning\/files\/2026\/04\/Draft_Articolo_Mathworks_version_1_6.png\" alt=\"\" width=\"594\" height=\"283\" \/><\/div>\r\n<h2 style=\"margin: 3px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\">Conclusion<\/h2>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The application of AI techniques to the estimation of highly nonlinear parameters such as battery SOC has proved a powerful alternative to more classic approaches. The compression of the model enables its implementation in a real production use case. The MATLAB toolchain has provided a single workflow which has enabled accelerated design and implementation of this program - from concept to on-target implementation.<\/div>\r\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><\/div>\r\n<\/div>\r\n<script type=\"text\/javascript\">var css = ''; var head = document.head || document.getElementsByTagName('head')[0], style = document.createElement('style'); head.appendChild(style); style.type = 'text\/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); }<\/script>","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img src=\"https:\/\/blogs.mathworks.com\/deep-learning\/files\/2026\/04\/Draft_Articolo_Mathworks_version_1_6.png\" class=\"img-responsive attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/div><p>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nGuest writer: Riccardo Di Dio\r\n\r\nRiccardo Di Dio is an Industrial PhD Candidate sharing his time between the University of Pisa and Marelli, working on artificial intelligence... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/deep-learning\/2026\/04\/06\/advanced-battery-state-of-charge-estimation-with-ai\/\">read more >><\/a><\/p>","protected":false},"author":230,"featured_media":19229,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9,68],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/posts\/19231"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/users\/230"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/comments?post=19231"}],"version-history":[{"count":3,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/posts\/19231\/revisions"}],"predecessor-version":[{"id":19235,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/posts\/19231\/revisions\/19235"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/media\/19229"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/media?parent=19231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/categories?post=19231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/tags?post=19231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}