Smarter Urban EV Charging Infrastructure with Monte Carlo and ESN

Urban EV Charging Infrastructure Gets Smarter—Thanks to Monte Carlo and Echo State Networks

In a rapidly electrifying world, one of the biggest hurdles to mainstream EV adoption isn’t range anxiety or battery costs—it’s where and when you can plug in. Cities across the globe are grappling with a paradox: charging stations sometimes sit idle while drivers circle blocks hunting for an available port. This mismatch isn’t just inconvenient—it’s inefficient, expensive, and threatens the momentum of the EV revolution.

But a fresh wave of academic research is changing the game—not with flashy new hardware, but with sharper software brains behind infrastructure planning. At the intersection of traffic behavior modeling, machine learning, and power systems engineering, a team from Shangyi Electric Power Company (State Grid Jibei Electric Power Company) and Yanshan University has unveiled a novel method to forecast EV charging demand across time and space—and use those insights to optimize where new charging stations should go, how many chargers they need, and how big they ought to be.

The result? Fewer stranded drivers, lower construction costs, reduced grid strain, and a planning framework that finally treats EVs not as isolated vehicles, but as dynamic, mobile loads shaped by human routines, urban geography, and seasonal rhythms.


It’s 6:45 a.m. in a mid-sized Chinese city. A private EV owner leaves her residential neighborhood, battery at 85%, heading downtown for work. Meanwhile, a taxi operator—on his third shift of the day—pulls into a commercial district with just 22% state-of-charge, scanning for a fast charger before peak demand hits. A municipal electric bus, on a fixed route, glides into its depot for an overnight top-up. All three are EVs. All three have wildly different charging behaviors. And none of them fit neatly into yesterday’s static load models.

That’s the core challenge tackled in the study: traditional EV charging forecasts often rely on historical data from existing stations—a method that works well for refining operations where infrastructure already exists, but falls short when you’re trying to plan new stations in undeveloped zones. You can’t predict demand for chargers that don’t yet exist based on usage at chargers that do.

So the researchers took a different route—literally.

They started by slicing the target urban area (40.46 km², with 79 roads and 49 traffic nodes) into 33 grid cells, each between 0.64 and 2.25 km². These weren’t arbitrary blocks—they were classified by real-world function: residential, commercial, and industrial zones. Why? Because where people are shapes what they do. A driver in a shopping district at 3 p.m. is far more likely to plug in for a quick top-off than someone in a factory zone at midnight.

Then came the behavioral engine: Monte Carlo simulation. Instead of assuming average behavior, the team modeled individual EVs—13,000 private cars, 5,000 taxis, and 2,000 buses—each with its own battery capacity (18 kWh, 45 kWh, and 200 kWh, respectively), daily mileage (drawn from log-normal distributions reflecting real-world surveys), and trip patterns.

Crucially, they didn’t just simulate one “typical” day. They accounted for seasonal variation and day-type differences: workdays (dominated by home–work–home loops), weekends (more erratic, home–errand–home or complex multi-stop chains), and holidays (a mix of leisure and travel surges). Each vehicle’s decision to charge—and where—was governed by physics and psychology: remaining battery, next-leg distance, minimum acceptable SOC threshold, and willingness to detour.

For instance, the model calculates whether a private car finishing a lunch errand in a commercial zone still holds enough juice to get home and complete tomorrow’s commute. If not—or if the driver prefers not to risk it—the car becomes a candidate for midday charging. A taxi, by contrast, might charge opportunistically every few hours, optimizing for uptime, not convenience.

Running this simulation 200 times (to smooth statistical noise), the team generated a massive synthetic dataset: hour-by-hour charging power demand in each of the 33 grids, across multiple representative days. This became their “virtual history”—a high-resolution spatiotemporal load map where no real chargers yet stood.

But raw Monte Carlo output is noisy. Real-world planners need clean, actionable trends—not scatter plots of 200 stochastic runs. Enter Echo State Networks (ESN)—a type of recurrent neural network known for fast training, robustness to noisy inputs, and strong time-series forecasting skills.

Unlike traditional backpropagation networks that tweak all weights during training, ESNs keep most of their internal “reservoir” connections fixed and random, only training the output layer. This makes them computationally lean and less prone to overfitting—ideal for fitting complex, nonlinear load curves with limited data.

The researchers trained three separate ESNs—one per zone type (residential, commercial, industrial)—feeding them not just past load data, but also contextual features: grid function type and estimated traffic flow. Input dimension: 10. Reservoir size: 500 neurons. Output: predicted charging load (kW) for the next time step.

The payoff? When benchmarked against classic BP (backpropagation) neural nets on residential zone data, the ESN cut mean absolute percentage error (MAPE) by 22% and root mean square error (RMSE) by over 25%. Translation: it captured real-world charging peaks and troughs—like the evening residential surge post-6 p.m., or the midday commercial bump—far more faithfully. The model didn’t just predict how much power would be drawn; it got when and where it would spike.


Armed with precise spatiotemporal forecasts, the team then flipped the problem: Given this demand pattern, where should we build stations—and how big should they be—to minimize total societal cost?

Here’s where their planning model shines by rejecting oversimplification. Too many past approaches focused only on the utility’s perspective: minimize capital expenditure. Others prioritized driver convenience at all costs. This framework forces a holistic trade-off—balancing four major cost buckets:

  1. Infrastructure CapEx & OpEx – Transformers, chargers, land acquisition, and fixed annual maintenance (scaled as a percentage of build cost).
  2. User Travel Cost – Not just time, but energy wasted driving to chargers. Every kilometer detoured burns precious battery—paid for by the driver, often at premium charging rates.
  3. Grid Losses – Concentrated EV load can overload feeders, increasing resistive (I²R) losses. The model quantifies this in kWh—and converts it to dollars using local energy prices.
  4. Opportunity Cost of Under/Overbuilding – Too few chargers mean queues and detours; too many mean stranded assets and higher tariffs.

The optimization engine? Particle Swarm Optimization (PSO)—a bio-inspired algorithm mimicking bird flocking or fish schooling to explore high-dimensional solution spaces efficiently. PSO iteratively tweaks candidate solutions (i.e., sets of station locations and sizes), guided by a “fitness” score: total annualized system cost.

Constraints kept things realistic:

  • Each station’s capacity capped between 5 and 45 chargers.
  • Minimum spacing enforced (to avoid cannibalization and ensure geographic coverage).
  • Grid connection limits respected (no station pulling more than its feeder can safely deliver).
  • Simultaneous charger usage assumed at 80–100% (based on empirical fleet data).

The outcome? Clear diminishing returns—and a sweet spot.

Testing station counts from 4 to 10, the model showed total cost declining from 4 to 7 stations—drivers saved more in travel time/energy than the extra build cost incurred. But beyond 7? Costs climbed again. An 8th station added ~¥200,000 in hardware and maintenance, but only shaved ~¥20,000 off user travel costs. The marginal gain didn’t justify the spend.

Seven stations emerged as the optimum, with a projected annual societal cost of ¥4.696 million (~$655,000 at current exchange rates). This breaks down to:

  • ¥4.158M in build & maintenance
  • ¥0.248M in user detour costs
  • ¥0.289M in added grid losses

Notice the distribution: infrastructure dominates—but user and grid costs aren’t footnotes. They’re decision-shaping levers.

Even more telling: where the seven stations landed (see Fig. 5 in original paper). None clustered redundantly. Instead, they formed a strategic lattice:

  • One near the southern residential core (7 chargers)
  • A high-capacity hub (24 chargers!) in the dense commercial heart
  • A mid-sized node (15 chargers) serving the northern employment zone
  • Smaller outposts bridging gaps

This isn’t “spray and pray.” It’s demand-aware, cost-conscious deployment.


So why does this matter beyond one Chinese city?

Because the methodology transcends geography. As EV markets mature—from Berlin to Bangalore—municipal planners and utility engineers face the same dilemma: how to avoid yesterday’s mistakes of overbuilding underused stations while preventing today’s crisis of access deserts.

What sets this approach apart is its behavioral realism. It doesn’t treat EVs as static “batteries on wheels.” It models them as agents embedded in urban ecosystems: responding to work schedules, traffic jams, shopping habits, and even seasonal temperature swings (which affect battery efficiency and HVAC load). That granularity is what allows ESN to outperform simpler time-series models—it learns the rhythm of city life, not just statistical trends.

Moreover, the two-stage architecture—Monte Carlo for data generation, ESN for pattern extraction—solves a critical chicken-and-egg problem: you need demand data to plan chargers, but you need chargers to get demand data. Synthetic data generation bypasses that deadlock.

Critically, the model is scalable. While the paper tested a mid-sized city, the grid-partitioning and ESN-training steps can be parallelized. Larger metros could use finer grids or zone-specific ESN ensembles. Fleet operators could plug in proprietary telematics to calibrate mileage and dwell-time distributions. Even ride-hailing platforms could license the framework to pre-emptively site chargers near high-activity zones.

And the future? The authors hint at two frontiers.

First, retrofit integration. As EV adoption accelerates, cities won’t just build new stations—they’ll convert gas stations, parking garages, and commercial lots. This load-forecasting engine could identify which existing sites have the highest latent demand and grid headroom for conversion—turning yesterday’s fossil infrastructure into tomorrow’s EV hubs.

Second—and more transformative—V2G (Vehicle-to-Grid) readiness. Right now, the model treats EVs as pure loads. But as bidirectional chargers become mainstream, parked EVs could supply power back to the grid during peaks, smoothing renewables integration. The same spatiotemporal forecasting backbone—knowing where idle, charged EVs will be, when—is the essential first step toward managing that distributed storage fleet. A charging station plan designed today with tomorrow’s V2G in mind won’t need a total overhaul in 2030.


Of course, no model is perfect. Monte Carlo simulations inherit the biases of their input assumptions—travel surveys can miss niche behaviors; battery degradation over time isn’t modeled; unexpected events (festivals, construction, public transport strikes) can disrupt even the best forecasts. And while PSO found a local optimum, global optimality can’t be guaranteed in such complex landscapes.

Yet the validation speaks volumes. When the team compared predicted load curves against real-world pilot data (not shown in the summary but referenced in methodology), the ESN’s error bands stayed tight—especially during critical ramp-up periods like weekday evenings. That reliability is what gives planners confidence to stake millions on its recommendations.

In an era where infrastructure decisions lock in emissions and equity outcomes for decades, getting the forecast right isn’t academic—it’s existential. This work demonstrates that with the right blend of physics-based simulation, machine learning agility, and cost-aware optimization, cities can move from reactive patchwork to proactive, intelligent EV integration.

The road to 100% electrified transport won’t be paved with chargers alone. It’ll be charted by algorithms that understand why we drive, when we stop, and how to meet us there—juice ready, cost minimized, grid intact.

Wang Yufei¹, Zhang Fei¹, Guo Junchao¹, Sun Xin¹, Huo Wei², Wang Dongsheng², Yang Lijun²
¹Shangyi Electric Power Company, State Grid Jibei Electric Power Company, Zhangjiakou 076750, Hebei Province, China
²School of Electrical Engineering, Yanshan University, Qinhuangdao 066004, Hebei Province, China
Modern Electric Power, Vol. 40, No. 2, Apr. 2023
DOI: 10.19725/j.cnki.1007-2322.2021.0251

Leave a Reply 0

Your email address will not be published. Required fields are marked *