惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The GitHub Blog
The GitHub Blog
Hugging Face - Blog
Hugging Face - Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
Y
Y Combinator Blog
Google DeepMind News
Google DeepMind News
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News
V
Visual Studio Blog
Microsoft Azure Blog
Microsoft Azure Blog
MyScale Blog
MyScale Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
罗磊的独立博客
N
Netflix TechBlog - Medium
M
MIT News - Artificial intelligence
G
Google Developers Blog
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
小众软件
小众软件
Engineering at Meta
Engineering at Meta
D
DataBreaches.Net
S
SegmentFault 最新的问题
H
Help Net Security
量子位

Show HN

The Two Pillars: Mixer Mode and Meta-Software in the Reorganization of Software Work After AI GitHub - JaiCode08/teleport-env What 1,000+ Harness Experiments Taught Me About Self-Improving Agents Show HN: Liiists, a Markdown-first, iOS and CLI list app SwiperTab – Get this Extension for 🦊 Firefox (en-US) GitHub - kouhxp/fftext: Summarize, explain, fact-check, or translate any text, URL, or file. No GPU. No cloud. One command GitHub - sweetpad-dev/sweetpad: Develop Swift/iOS projects using VSCode GitHub - dogmaticdev/IRON: IRON a.k.a. Intermediate Representation Object Notation is a Interpreter/Database that is used to create Programming Languages. GitHub - sjhalani7/vaen: Package your AI coding harness into a portable .agent file, and share it across repos, teams, & the community without ever having to copy-paste instructions, skills, MCP config, or secrets. Show HN: Gandalf the Grader Show HN: Citadeld – replay any CI failure locally from a single file GitHub - tdortman/cuSBF: High-Performance GPU Super Bloom Filter coral-ai/claude-code-token-xray at main · Coral-Bricks-AI/coral-ai GitHub - ulyssestenn/funes: Funes is a Git-based framework for LLM-managed knowledge work: an AI Librarian ingests raw sources, builds an interlinked Markdown knowledge base, and uses it to produce cited reports, analyses, and other outputs. GitHub - ThatXliner/gah: Git Add Hunk, built for agents to use GitHub - harmont-dev/harmont-cli: Command-line client for the Harmont CI platform GitHub - brooksmcmillin/mcp-authflow: OAuth 2.0 Authorization Server framework for MCP servers GitHub - javaid-codes/audit-supply-chain-agents GitHub - amorey/gochan: A small library of common channel architectures for Go, inspired by Rust GitHub - arifozgun/OpenGem: Free, Open-Source AI API Gateway with Gemini, OpenAI & Anthropic Compatibility in 1 file GitHub - Pranesh950/BioPetals: 🌸 Run BIOxAI models at home, BitTorrent-style. Fine-tuning and inference up to 10x faster than offloading GitHub - cnguyen14/bounty-doctor: Diagnose a GitHub bounty issue before you waste hours: detects honeypot scam repos, AI-bot attempt swarms, and stale contests. Show HN: CoreMCP – MCP Server for On-Prem DBs Show HN: KittyHTML – Render HTML/CSS as an inline image in your terminal GitHub - bingud/filemat: Web-based file manager Show HN: TruthLens – Free multi-signal deepfake image detector GitHub - apexlocal-jz/claude-usage-tray: Windows system-tray app showing your Claude Code rate-limit usage at a glance. Zero deps, ~300 lines of PowerShell. Cross-IDE (works regardless of VS Code, Cursor, plain terminal). Release v0.1.2.1 · kouhxp/yapsnap GitHub - noopolis/moltnet: Self-hostable chat network for AI agents. Pre-built bridges for Claude Code, Codex, and the Claws. Rooms, DMs, history. No Slack bots, no Matrix, no glue code. GitHub - tamerh/enju: Coordinating Humans, AI Agents, and Compute as Peers on a Shared Workflow Graph
GitHub - remontsuri/EV-QA-Framework: ML-powered QA framew...
remontsuri · 2026-05-29 · via Show HN

Python 3.8+ License: MIT CI GitHub Release

ML-powered QA framework for electric vehicle battery systems. Validates BMS telemetry, detects anomalies, predicts SOH degradation, emulates CAN bus traffic, and evaluates thermal runaway risk — MIT licensed.

What it does

Telemetry validation. Pydantic schemas for voltage, current, temperature, SOC, SOH. Catches bad VINs, out-of-range values at the input layer.

ML anomaly detection. Isolation Forest on voltage/current/temperature streams. Configurable contamination, severity thresholds, and number of estimators.

SOH prediction. LSTM-based State of Health forecasting from historical telemetry (TensorFlow optional).

Cell imbalance analysis. Statistical analysis of cell group voltages with configurable thresholds, outlier detection, linear regression trend, and plot export.

Thermal runaway prediction. Standalone ThermalRunawayPredictor with two modes:

  • rule — configurable heuristic with adjustable weights (dT/dt, temperature, anomaly score)
  • ml — Isolation Forest on thermal features CRITICAL trigger at >65°C or heating rate >5°C/min.

CAN bus. CAN 2.0B (11-bit ID) and J1939 (29-bit extended) simulation and reception. DBC parser supports Vector CANdb format, SavvyCAN exports, Intel/Motorola byte order, signed/unsigned signals.

Dashboard. FastAPI + WebSocket + Chart.js. Real-time telemetry and Prometheus /metrics endpoint with ready-to-import Grafana dashboard.

CLI. Analyze CSV telemetry, run CAN emulation, train SOH models, start dashboard.

Quick start

# Install from GitHub
pip install git+https://github.com/remontsuri/EV-QA-Framework.git

# Launch dashboard
python -m ev_qa_framework.cli dashboard
# → http://localhost:8000
# → http://localhost:8000/metrics (Prometheus)

# Analyze a CSV
python -m ev_qa_framework.cli analyze -i examples/tesla_model_s_defective.csv -o report.json

# CAN simulation from DBC
python -m ev_qa_framework.cli emulate --dbc my_battery.dbc --duration 60

# Run tests
python -m pytest -v

Examples

Telemetry validation:

from ev_qa_framework.models import validate_telemetry

data = {
    "vin": "1HGBH41JXMN109186",
    "voltage": 396.5,
    "current": 125.3,
    "temperature": 35.2,
    "soc": 78.5,
    "soh": 96.2
}
telemetry = validate_telemetry(data)

Anomaly detection:

from ev_qa_framework.analysis import AnomalyDetector
import pandas as pd

df = pd.read_csv("battery_telemetry.csv")
detector = AnomalyDetector(contamination=0.01, n_estimators=200)
detector.train(df[["voltage", "current", "temperature"]])
predictions, scores = detector.detect(new_data)

Cell imbalance:

from ev_qa_framework.cell_balance import CellBalanceAnalyzer

analyzer = CellBalanceAnalyzer(warning_threshold=0.02, critical_threshold=0.05)
cell_v = [3.30, 3.31, 3.305, 3.312, 3.29]
print(analyzer.compute_statistics(cell_v))
print(analyzer.classify_severity(cell_v))

Thermal runaway (recommended API):

from ev_qa_framework.thermal_runaway import ThermalRunawayPredictor
import pandas as pd

predictor = ThermalRunawayPredictor(mode="rule")
df = pd.DataFrame({"temperature": [35, 37, 42, 58, 62]})
risk = predictor.predict_risk(df)
# {'risk_level': 'HIGH', 'risk_score': 8.3, 'confidence': 0.85, ...}

DBC parsing:

from ev_qa_framework.dbc_parser import DBCParser

dbc = DBCParser("tesla_battery.dbc")
msg = dbc.get_message(0x101)
vals = dbc.decode(0x101, bytes([0x7D, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]))
# {'Voltage': 396.5}

Project structure

ev_qa_framework/
  framework.py         # core QA engine
  models.py            # Pydantic models
  config.py            # thresholds and ML config
  analysis.py          # Isolation Forest, EVBatteryAnalyzer
  soh_predictor.py     # LSTM for SOH (TensorFlow optional)
  can_bus.py           # CAN 2.0B + J1939 simulation
  dbc_parser.py        # .dbc file parser (Vector CANdb + SavvyCAN)
  cell_balance.py      # cell voltage imbalance analysis
  thermal_runaway.py   # thermal runaway prediction (rule + ML)
  metrics.py           # Prometheus metrics
  cli.py               # CLI entry point
dashboard/
  app.py               # FastAPI
  grafana/             # Grafana dashboard JSON
tests/                 # 160+ tests

Development

# Clone and install dev dependencies
git clone https://github.com/remontsuri/EV-QA-Framework.git
cd EV-QA-Framework
pip install -e .[dev,ml]

# Run linting
ruff check .

# Run tests
pytest -v

Changelog

v1.1.0

  • Thermal runaway deduplicated — ThermalRunawayPredictor is the single API (removed duplicate from EVBatteryAnalyzer)
  • Fixed risk score calculation: temperature contribution uses deviation from 50°C, not absolute value
  • CLI analyze now handles both temperature and temp column names
  • Migrated setup.pypyproject.toml, added uv.lock
  • Applied ruff auto-fixes across the codebase
  • Fixed BatteryCellDataModel import in package __init__.py
  • Fixed SOHPredictor type hint (SequentialAny)
  • Fixed example in framework.py (__main__) — uses pack voltage (396V) instead of cell voltage (3.9V)
  • Removed stale build/ artifacts

Compatibility

  • CAN 2.0B (11-bit) and J1939 (29-bit extended)
  • SavvyCAN / BUSMASTER DBC exports
  • Prometheus + Grafana
  • TensorFlow — optional (SOH prediction only)
  • python-can — only needed for physical CAN hardware; simulation works without it

License

MIT