Downloads · 30 days
0
rul-mgt-zero/BatterySwapAI2026-rul-mgt-zero
BatterySwapAI2026-rul-mgt-zero is a machine learning model from rul-mgt-zero. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Predict when field batteries will wear out, and plan their replacement swaps at the lowest possible operational cost.
Downloads · 30 days
0
Access
Public
Updated Aug 23, 2026
Repo size
1.2 GB
Likes
0
Public
Click a slice to open those files.
.pickle1.5 MB · 92%
From the Hugging Face model README
Predict when field batteries will wear out, and plan their replacement swaps at the lowest possible operational cost.
Battery-powered devices are deployed across many rooms and buildings, and their batteries slowly degrade. Swapping a battery too late risks an outage; swapping it too early throws away useful life and wastes a technician's trip. Getting the timing right across a whole fleet is a hard planning problem.
This project solves it in two stages:
The result is a schedule that replaces the right batteries on the right days while keeping technician workload and travel low.
| Component | Role |
|---|---|
features.py | Turns raw voltage/temperature series into battery-degradation features. |
forecast.py | Survival model that predicts each battery's remaining useful life. |
optimisation.py | Constraint-programming (CP-SAT) planner that schedules the swaps. |
simulate.py | Cost simulator used to refine the schedule. |
batteryswap_example/train.py | Trains the model and saves the planner. |
script.py | Loads the trained planner and produces a swap plan for a dataset. |
The trained planner ships in batteryswap_example/planners/ (stored with Git LFS).
The project runs in Docker, which pins the exact runtime environment.
# Build the image
docker build -t batteryswapai .
# Generate swap plans and score them on the local dataset
docker run --rm -v ./dataset:/tmp/data batteryswapai \
bash -c "/app/env/bin/python3 script.py && /app/env/bin/python3 -m batteryswap_public.metric"
Place your data under dataset/ — a train/ folder containing the device
metadata, end-of-life times, and scenario definitions.
Developed by the rule mgt zero team (solution by Benjamin Kjøpstad Kofoed) for the BatterySwapAI 2026 Challenge.
Released under the MIT License.