Introducing BBB SmartStaff: A Data-Driven Staffing Prototype
04 Dec 2026
I’m sharing an early prototype exploring how data and optimization can support staffing decisions across Berlin’s public swimming pools.
BBB SmartStaff connects visitor-demand forecasts with staffing requirements, shift planning, and operational simulations. The aim is to make the reasoning behind a plan easier to inspect: what demand is expected, which rules drive coverage, and how a disruption could change the schedule.
What’s in the prototype
- Demand forecasting: LightGBM quantile models estimate visitor demand at P50, P80, and P95 planning levels. Calendar and weather features include Berlin holidays and school breaks. A SimPy network simulation explores how visitors might be rerouted when pools close or reach capacity.
- Staffing requirements: A versioned rules engine translates demand into role and shift requirements, including minimum coverage and break reserves.
- Shift planning: Google OR-Tools CP-SAT generates schedules while accounting for qualifications, working-time constraints, rest periods, preferences, and staffing costs. Explanations help show why an assignment was made—or why a candidate could not be assigned.
- Operational scenarios: What-if runs explore situations such as pool closures, heat, staff absences, and shift changes, and compare resulting costs, coverage gaps, and lead-time warnings.
The prototype combines a FastAPI interface with a Streamlit dashboard. Its documented setup supports local SQLite scenarios and PostgreSQL for container deployments.
Explore it
This is a prototype, not an operational staffing system. Its standard scenarios use synthetic visitor and workforce data; model behavior and tests do not establish forecasting accuracy on real-world data. The documentation explains the modules, assumptions, and limitations in more detail.