← Latest papers
⚡ electrical engineering

StateFormer: A Multivariate Transformer for Learning History-Dependent Battery State Dynamics and Long-Horizon Health Forecasting

This paper introduces StateFormer, a novel multivariate Transformer model that unifies short-term thermal and electrochemical dynamics with long-term aging mechanisms to accurately forecast battery states (SOC, SOH, and temperature) across diverse synthetic and real-world datasets, effectively bridging the gap between laboratory simulations and field operations for optimized maintenance and decision-making.

Original authors: Zhe Bai, Stephen Harris

Published 2026-07-27
📖 4 min read☕ Coffee break read

Original authors: Zhe Bai, Stephen Harris

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine the power grid as a giant, bustling city where electricity is the traffic. In the past, this traffic flowed one way: from big power plants to your home. But today, the city is changing. We are adding millions of "battery cars" that can store energy and send it back when needed. These aren't just tiny AA batteries; they are massive fleets of energy storage systems, like giant warehouses of power, sitting on rooftops and in industrial yards.

However, just like a car engine, these batteries don't last forever. They get tired. They heat up, they cool down, and they slowly lose their ability to hold a charge. This process is called "degradation." The tricky part is that batteries are complicated. They react to how hot it is outside, how fast you are charging them, and even how long they've been sitting idle. It's a messy, tangled web of chemistry and physics that changes over years. Scientists and engineers really need to know: "How much life is left in this battery?" and "When will it break?" If they can predict this, they can keep the lights on, save money, and make sure the grid doesn't crash. But guessing is hard because every battery is a little different, and the data we have is often noisy or incomplete.

This is where a new tool called StateFormer comes in. Think of StateFormer as a super-smart, time-traveling detective for batteries. Instead of just looking at a battery's current temperature or voltage, it reads the battery's entire diary. It looks at the past few hours, days, or even years of how the battery was used, combined with the weather and the electricity it was asked to carry. Using a type of artificial intelligence called a "Transformer" (the same kind of technology that helps computers understand language), StateFormer learns to spot patterns in the chaos. It figures out how fast a battery is aging based on its history, even if the sensors measuring it are a bit fuzzy or if the battery is facing extreme heat it hasn't seen before.

The researchers behind StateFormer tested this detective in two very different ways. First, they built a giant, virtual fleet of 50 batteries in a computer simulation. They made these virtual batteries age over three years, subjecting them to different temperatures (from a cool 25°C to a scorching 45°C) and adding random "noise" to the data to mimic real-world sensor errors. Even when the data was messy and the temperatures were higher than what the AI had ever seen during its training, StateFormer predicted the batteries' health with incredible accuracy. It was so good that the difference between its guess and the "true" answer was tiny—less than 0.03% in many cases.

Then, they took the detective into the real world. They fed it five years of actual data from a residential home battery system that had been running alongside solar panels. The AI had to predict what the battery's voltage and temperature would do in the future, based only on the current and the room temperature. Just like in the simulation, it nailed the long-term trends. It correctly predicted how the battery would behave over a whole year, even capturing sudden changes in how the battery was used.

What makes StateFormer special is that it doesn't just guess; it learns the rules of the game. It understands that a battery's health depends on a mix of fast things (like a sudden spike in heat) and slow things (like the slow, years-long process of aging). It also handles the fact that no two batteries are exactly alike, thanks to tiny differences in how they were made. The authors show that this model can bridge the gap between clean, perfect lab simulations and the messy, unpredictable reality of real-world batteries. By doing this, StateFormer offers a way to keep a close eye on huge fleets of batteries, helping operators know exactly when to replace them, how to run them safely, and how to keep our future energy grid running smoothly for years to come.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →