Deployment and Operation of Battery Swapping Stations for Electric Two-Wheelers Based on Machine Learning

Battery swapping stations effectively address the challenges of long charging times, lack of charging stations, and safety hazards for electric two-wheelers. With the rapid development of shared electric bicycles and takeaways, the scale of electric two-wheeler users is expanding while generating a huge demand for battery swapping. The research on the planning and operation of battery swapping stations (BSSs) for electric two-wheelers has yet to be widely discussed. This study developed a data-driven optimization model based on machine learning algorithms using Beijing’s battery swapping stations and point of interest (POI) dataset. First, through the spatial features of BSS analyzed by ArcGIS, we found that the coverage of BSSs was mainly concentrated within the fifth ring road, and the utilization rate was unbalanced. Then, on a 3000 m grid scale, a prediction model of BSS quantity with random forest, support vector regression, and gradient-boosting decision tree algorithm was built. The final stacking model was constructed by strengthening three single models with an accuracy of 86.21%. Compared with the original BSSs layout, the machine-learning algorithm proposed in this study can cover more factors and avoid the subjectivity of site selection. Finally, the queuing model for BSSs based on the Monte Carlo simulation was proposed. Through two scenarios, we found that the key parameters 
 
 m
 
 (the number of charging slots) and 
 
 λ
 
 (the user arrival rate) were influential to the outputs of service capability.