π Building an ML-Powered Battery Testing Framework for Electric Vehicles
Battery failures cost the EV industry $5 billion annually in warranty claims, recalls, and safety incidents. A single thermal runaway event can destroy an entire vehicle and endanger lives.
The problem? Millions of telemetry data points (voltage, temperature, State of Charge) go unmonitored until it's too late. Manual QA can't scale.
I built EV-QA-Framework β an open-source Python testing framework with AI-powered anomaly detection for Battery Management Systems (BMS).
GitHub: https://github.com/remontsuri/EV-QA-Framework
π Why I built this
Mainstream testing tools are great for web apps, but they lack native support for hardware-specific edge cases like:
- Voltage Drop Anomaly: Detecting subtle dips that indicate cell degradation.
- Rapid Discharge Spikes: Identifying patterns before they lead to short circuits.
- State-of-Charge (SoC) Drift: Ensuring the reported battery percentage is actually accurate.
π Key Features
- 64+ Automated Tests: Covers voltage, current, temperature, and charging cycles.
-
ML Anomaly Detection: Uses scikit-learn's
IsolationForestto spot outliers in telemetry data that rule-based systems miss. - High Performance: Built with Python 3.12, Pydantic (v2) for ultra-fast validation, and Pytest.
- Interactive Reports: Generates Jupyter Notebook visualizations for engineers to "see" the failure.
π Quick Demo
Here is how it looks in action (Full demo in the repo):
from ev_qa_framework.ml.anomaly_detector import BatteryAnomalyDetector
# Load telemetry data
detector = BatteryAnomalyDetector()
anomalies = detector.detect_anomalies(telemetry_df)
# Visualize findings
detector.plot_results(telemetry_df, anomalies)
π Open Source & Community
This project is open-source because EV safety should be accessible. Whether you are a QA engineer at Tesla or a hobbyist building a DIY e-bike, I hope this helps you build safer products.
I'm currently looking for new opportunities in the EV/Green-Tech industry as a QA or ML Engineer. If your team is hiring, let's connect!
Check it out here: https://github.com/remontsuri/EV-QA-Framework
Top comments (0)