Abstract
Gated recurrent unit (GRU) is a variant of recurrent neural network (RNN), which is widely used in applications and tasks related to sequence data processing. However, traditional GRU networks based on von Neumann computing construction, have been facing challenges such as big data dimension and high real-time requirements. Meanwhile, limited internal storage resources and external storage bandwidth have jointly limited the overall performance of hardware implementation of GRU networks. Based on these, a compact scheme for the hardware circuit design of memristor-based GRU network is presented, along with the concrete circuit design of nonlinear activation and the linear matrix operation. The entire scheme is validated by the application of the Lithium ion battery state of charge (SOC) estimation. This work is expected to integrate the neuromorphic electronics and battery management systems, and further promote the development of electric vehicles in smart cities.
Introduction: Overcoming the von Neumann Bottleneck
Recurrent Neural Networks (RNNs), particularly Gated Recurrent Units (GRUs), are indispensable for processing sequential data, such as the telemetry required for battery management. However, deploying these models on conventional von Neumann architectures (CPUs/GPUs) introduces a significant efficiency bottleneck: the energy-intensive and time-consuming transfer of data between the processor and memory.
While specialized hardware like FPGAs and ASICs offers improvements, they remain constrained by internal storage bandwidth and high deployment costs. This research addresses the need for a compact, low-power hardware solution capable of parallel matrix-vector multiplications—the fundamental operation of GRUs—suitable for edge applications like Battery Management Systems (BMS) in electric vehicles.
Proposed Hardware Architecture
The proposed framework utilizes the memristor, the fourth basic circuit element, to enable in-memory computing. By representing weights as memristor conductance, the circuit performs multiplication and addition simultaneously through Ohm’s Law and Kirchhoff’s Current Law, effectively eliminating data fetch latency.
1T1M Crossbar Array
To implement matrix-vector multiplication, the researchers organized memristors into a one-transistor-one-memristor (1T1M) crossbar structure. The transistor serves as a switch to isolate specific rows, solving the "sneak-path" current problem that typically degrades accuracy in simple memristor arrays.
Analog Circuit Modules
Beyond the weight arrays, specialized analog circuits were designed to handle the GRU’s non-linear operations:
- Activation Function Circuits: A compact circuit utilizing a single memristor approximates both the logistic sigmoid ($\sigma$) and hyperbolic tangent ($\tanh$) functions.
- Peripheral Modules: Dedicated circuits for addition, subtraction, and Voltage-to-Current (V-I) transfer complete the GRU cell.
Experimental Setup and Dataset
The system was validated using a public Lithium-ion battery dataset from the University of Maryland, focusing on Samsung 18650 cells. The model was trained using a hybrid approach: error backpropagation on a workstation for weight determination, followed by inference simulation using the proposed memristive circuit design.
The dataset included various drive cycles (BJDST, DST, US06) for training and the Federal Urban Driving Schedule (FUDS) for testing. Crucially, tests were conducted at three ambient temperatures: 0°C, 25°C, and 45°C, to assess environmental robustness.
Performance Evaluation
The memristor-based GRU was evaluated using Root Mean Square Error (RMSE) for SOC estimation. The results demonstrate that the hardware-based implementation is highly competitive with software-based Bi-GRU models and significantly outperforms traditional filtering methods like the Extended Kalman Filter (EKF).
| Temperature | Proposed Method (RMSE %) | Bi-GRU (RMSE %) | EKF (RMSE %) |
|---|---|---|---|
| 0°C | 2.18 | 2.15 | / |
| 25°C | 1.36 | 1.30 | 4.31 |
| 45°C | 1.23 | 1.34 | 5.70 |
The system exhibits exceptional stability at higher temperatures. However, accuracy is sensitive to low-temperature environments (0°C), a common challenge in battery chemistry. This suggests that future iterations may benefit from integrated temperature-compensation circuits.
Conclusion
This work presents a novel, compact hardware implementation of a GRU using memristor-based crossbars. By achieving high-accuracy SOC estimation with in-memory parallelism, this architecture offers a promising path toward energy-efficient, real-time battery monitoring in electric vehicles. Future research will focus on physical fabrication and direct integration into neuromorphic battery management hardware.
Summary updated