Next Article in Journal
Mathematical Justification for Optimizing Operating Conditions of Gas and Gas Condensate Producing Wells
Previous Article in Journal
Prediction of Node Importance of Power System Based on ConvLSTM
Previous Article in Special Issue
Minimum-Cost Fast-Charging Infrastructure Planning for Electric Vehicles along the Austrian High-Level Road Network
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Prediction of Charging Demand of Electric City Buses of Helsinki, Finland by Random Forest

1
School of Engineering, University of Warwick, Coventry CV4 7AL, UK
2
School of Computing, University of Eastern Finland, 70211 Kuopio, Finland
*
Author to whom correspondence should be addressed.
Submission received: 14 January 2022 / Revised: 12 February 2022 / Accepted: 25 February 2022 / Published: 17 May 2022
(This article belongs to the Special Issue Developments in Electric Vehicle Charging Station Infrastructure)

Abstract

:
Climate change, global warming, pollution, and energy crisis are the major growing concerns of this era, which have initiated the electrification of transport. The electrification of roadway transport has the potential to drastically reduce pollution and the growing demand for energy and to increase the load demand of the power grid, thereby giving a rise to technological and commercial challenges. Thus, charging load prediction is a crucial and demanding issue for maintaining the security and stability of power systems. During recent years, random forest has gained a lot of popularity as a powerful machine learning technique for classification as well as regression analysis. This work develops a random forest (RF)-based approach for predicting charging demand. The proposed method is validated for the prediction of public e-bus charging demand in the city of Helsinki, Finland. The simulation results demonstrate the effectiveness of our scheme.

1. Introduction

Climate change, global warming, pollution, and energy crisis are the major growing concerns of this era that have initiated the electrification of transport. Vehicles act as the major emitters of air pollutants ranging from nitrogen oxides (NOx) to the particulate matters (PM) affecting human health as well as the environment [1,2,3,4]. It is estimated by European Environmental Agency that road transport contributes about 70% of NO2 and 30% of PM [1]. The electrification of transport has received much attention in recent years as a means to control the global concerns regarding pollution and growing energy demand, as well as climate change. It is obvious that the electrification of transport will increase the load demand drastically. The electrification of transport in an unplanned and uncoordinated manner may have a serious impact on the power grid, such as voltage profile deterioration, harmonics, degraded reliability indices, and transformer overloading [5,6,7,8,9,10,11,12]. However, the negative impacts of electric vehicle (EV) charging can be drastically reduced by a suitable energy management strategy. Thus, EV charging load prediction is an important issue for maintaining the smooth and hassle-free operation of the power distribution network.
In recent years, the accurate prediction and forecasting of the EV charging load has received a lot of research focus. Table 1 presents a systematic review of the existing research work on this arena. In [13], a wavelet-decomposition-based approach was used for charging demand prediction of central road, which is an urban area of Sri Lanka. In [14], a Markov chain and graph-theory-based approach was applied for predicting the charging demand of the private EVs operating in Seoul, South Korea. In [15], the authors used different machine learning techniques, e.g., gradient boosting and support vector machine (SVM), for the charging demand prediction of Nebraska, USA. Furthermore, the performances of gradient boosting and SVM on the charging demand prediction were compared based on the mean square error (MSE) and root mean square error (RMSE). In [16], a probabilistic approach based on the normal distribution was employed for the charging demand prediction of Copenhagen, Denmark. In [17], a two-layer data-driven approach and neural network were used for predicting the charging demand of Guangzhou, China. In [18], the authors applied the Monte Carlo method for predicting the charging demand of taxis, buses, and official EVs of Shenzhen, China. In [19], authors used the Monte Carlo technique for simulating the EV arrival rate and hidden Markov model (HMM) for predicting the charging demand of a standard IEEE 53 bus network in the dumb and smart charging scenario. In [20], the authors proposed a queuing theory and Monte-Carlo-based model for charging demand prediction. The model was validated on a 33 node road network. In [21], the authors developed an adaptive neuro fuzzy inference system (ANFIS) and teaching-learning-based optimization (TLBO) model for predicting the state of charge (SOC) of private EVs. The proposed scheme was validated on experimental datasets from the Prognostics Center of Excellence at NASA. In [22], a support vector machine (SVM)- and wolf pack algorithm (WPA)-based approach was used for the short-term load forecasting of e-bus charging stations. In [23], the authors proposed a hybrid fuzzy inference and Monte-Carlo-based approach for private EV charging demand prediction. In [24], the authors developed a Q-learning-based model for EV charging demand prediction considering different scenarios, such as uncoordinated charging, coordinated charging, and smart charging. In [25], the authors studied a Markov-model-based tool named bCharge for charging demand prediction and the scheduling of e-buses. The model was validated for the real time e-bus fleet of Shenzhen, China. In [26], the authors modelled an ideal city that had e-taxis for public transport and proposed a Monte-Carlo-based approach for the prediction of the e-taxi charging demand. In [27] a velocity and state of charge (SOC) prediction model for e-buses was proposed by using a genetic algorithm (GA)- and dynamic programming (DP)-based approach. In [28], the authors used the elastic coefficient method to predict private EV charging demand in Chengdu, China. In [29], a reinforcement-learning-based approach was applied for predicting the charging demand of e-buses in a smart grid environment. In [30], a moving horizon optimization (MHO)-based scheme was proposed for energy consumption estimation in the case of e-buses.
Figure 1 presents a quantitative analysis of the reported research work. From Figure 1, it is observed that there is relatively less work that investigates the charging demand prediction for buses as compared to private EVs. However, during recent years, many countries, such as China, USA, Norway, Finland, Germany, India, Russia, and Sweden [31,32,33,34,35,36], have placed emphasis on electrifying bus routes. The electrification of bus routes will drastically increase the load demand of the power grid, thereby giving rise to technological and commercial challenges. Driven by the aforementioned factors, the present work focuses on the prediction of e-bus charging demand. This work proposes a novel random-forest-based approach for the prediction of e-bus charging demand. Random forest is a flexible supervised machine learning algorithm that can be used for both classification and regression problems [37,38]. Moreover, random forest reduces overfitting and can be used for both categorical and continuous values, which automates missing data. The applications of random forest algorithm are found in diverse areas, e.g., feature selection [39], remote sensing [40], forest carbon mapping [41], hail forecasting [42], android malware detection [43], image classification [44], and air quality classification [45]. Hence, inspired by the superior performances of the random forest algorithm in dealing with such a wide range of real-life problems, our work uses a random-forest-based approach for charging demand prediction. The model was validated for Helsinki, Finland. Helsinki Regional Transport (HSL) has plans to make one in every three buses operating in Helsinki electric by 2025 [46]. Moreover, the EV developer Linkker has loaned several e-buses to HSL for pilot projects [46]. Therefore, it is expected that Helsinki is a good test case for the validation of the proposed approach. In comparison to the existing results, the key contributions of our research work are:
  • A novel random-forest-based approach for the prediction of e-bus charging demand;
  • Comparison of the random forest algorithm with other state-of-the-art methods of coping with the charging demand prediction problem;
  • Guide for bus electrification of Helsinki, Finland.

2. Random Forest Algorithm

As previously mentioned, random forest is a supervised machine learning technique that can be used for handling both classification and regression problems [38]. The random forest is based on ensemble learning, combining multiple classifiers for solving an intricate problem. Random forest contains a number of decision trees on different subsets of the datasets. It takes the mean to improve the overall prediction accuracy of the given datasets [38,39]. Random forest takes the prediction from each tree, and based on the majority votes of predictions, it can predict the final output [38]. The accuracy of the random forest is directly proportional to the number of trees used. The working principle of random forest is shown in Figure 2.
Some of the advantages of random forest are as follows:
  • It reduces overfitting and helps to improve accuracy;
  • It is flexible and can be used for classification as well as regression problems;
  • It works well with both categorical and continuous values;
  • It automates missing values present in the data;
  • Normalizing the data is not required, as it uses a rule-based approach.

3. Methodology

3.1. Dataset Generation

A dataset needs to be fed to the random forest model for training and testing. In this work, a historical dataset is built for a one-year period. The transition from conventional vehicles to EVs is still in a nascent stage. Therefore, real time data for charging demand prediction is not always available. However, the authors would like to state that the synthetic data was generated based on the real-world data of bus timetables.
The algorithm used for generating the historical dataset is given in Figure 3. In our approach, the charging datasets were created separately for all the charging centers (only depot charging was considered). The energy consumed and charging time of the e-buses depended on the arrival time and the state of charge (SOC) of the buses. The SOC was dependent on the distances travelled by the buses [47].

3.2. Charging Demand Prediction

The charging demand prediction made by the random forest model is elaborated in Section 2. The random forest is based on ensemble learning, which combines multiple classifiers for dealing with an intricate problem. A random forest contains a number of decision trees on different subsets of the datasets. It takes the mean to improve overall prediction accuracy of the given dataset [38,39]. A random forest takes the prediction from each tree and, based on the majority votes of the predictions, it can predict the final output [38]. The prediction accuracy of the random forest is directly proportional to the number of trees. Our step-by-step approach for the charging demand prediction is shown in Figure 4.

4. Numerical Analysis

4.1. Bus Network and Charging Dataset

The proposed prediction model was validated for a selected bus line of Helsinki, Finland. The line 11 operating from Tapiola to Friisilä in Espoo was chosen for validation of the model [48]. The details of the buses operating in that route are given in Table 2. The specifications of the e-buses considered in the analysis are in Table 3. The trip details computed based on the bus timetable and e-bus specifications are presented in Table 4. This work considers that only depot charging is sufficient for the e-buses. Thus, the charging prediction is performed for the following locations:
  • Matinkylä (M);
  • Teekkarikylä;
  • Hyljeveneentie;
  • Munkkiranta;
  • Tuomarilankallio;
  • Alakaupunki;
  • Leppävaaran asema.
Table 2. Timetable of buses in Route 11 [49].
Table 2. Timetable of buses in Route 11 [49].
Bus No.Start PointEnd PointNo. of StopsTrip Duration Trip DistanceOperating TimeFrequency
111 upTeekkarikyläHyljeveneentie4542 min16 km5:53 a.m.–11:24 p.m.Every 20 min
111 downHyljeveneentieTeekkarikylä4342 min16.34 km5:53 a.m.–11:24 p.m.Every 20 min
143 upMatinkylä (M) Munkkiranta2218 min8.03 km4:55 a.m.–11:06 p.m.Every 35 min
143 downMunkkirantaMatinkylä (M) 2318 min7.96 km4:55 a.m.–11:06 p.m.Every 35 min
134 upMatinkylä (M)Tuomarilankallio2227 min12.36 km4:48 a.m.–11:07 p.m.Every 10 min
134 downTuomarilankallioMatinkylä (M)2327 min12.29 km4:48 a.m.–11:07 p.m.Every 10 min
146 upMatinkylä (M) Alakaupunki1317 min8.6 km6:11 a.m.–11:51 p.m.Every 30 min
146 downAlakaupunkiMatinkylä (M) 1317 min7.48 km6:11 a.m.–11:51 p.m.Every 30 min
544 upLeppävaaran asemaAlakaupunki2650 min19.04 km5:25 a.m.–10:10 p.m.Every 20 min
544 downAlakaupunkiLeppävaaran asema2650 min19.25 km5:25 a.m.–10:10 p.m.Every 20 min
Table 3. e-bus specifications [50].
Table 3. e-bus specifications [50].
Driving range150 km
Charging typePantograph charging at depot
Charging time3 min–6 min
Charging load150 kW
Table 4. Trip Details.
Table 4. Trip Details.
Bus No.No. of Round Trips before Charging DemandNo. of Round Trips on WeekdaysNo. of Round Trips on Weekends
1114108
1439108
1346108
146986
5443108
The charging dataset was prepared based on the methodology shown in Figure 2.

4.2. Charging Demand Prediction

The charging demand prediction was performed for the seven charging locations of the e-buses by the methodology in Section 3. The actual and predicted charging demands for the seven charging locations for weekdays, as well as weekends, are shown graphically in Figure 5, Figure 6, Figure 7, Figure 8, Figure 9, Figure 10, Figure 11, Figure 12, Figure 13, Figure 14, Figure 15, Figure 16, Figure 17 and Figure 18, respectively. It was observed that the charging load of weekdays was more than weekends for all the charging locations. This was due to the fact that buses are less frequent on weekends. The figures also indicate the effectiveness of the random forest in predicting the charging load.

4.3. Sensitivity Analysis

The impact of different parameters of the random forest model on its performance is explored in this section. The performance comparison was conducted by comparing performance indices, such as the accuracy, r score, MSE, MAE, and RMSE. The impacts of n_estimators and random_state, which are hyperparameters of the model, on the performance of the random forest were investigated. Table 5 reports the impact of n_estimators on the performance of random forest with random_state = 0 for the seven charging datasets. It was observed for dataset 1, dataset 4, and dataset 7 that the model performed best when n_estimators = 100. In addition, for dataset 2, dataset 3, dataset 5, and dataset 6, the model performed the best when n_estimators = 150. Table 6 gives the impact of random_state on the performance of random forest with n_estimators = 100 for the seven charging datasets. It can be discovered that the model performed the best when random_state = 0 for all the datasets except for dataset 6. For dataset 6, the model performed the best when random_state = 5.

4.4. Performance Comparison

The performance of the random forest model in coping with the charging demand prediction problem is compared with the SVM. Table 7 reports the MSE, MAE, and RMSE values computed by the SVM, as well as RF, for the seven charging datasets. It is apparent that the values of MSE, MAE, and RMSE are much less by the RF for all the datasets as compared to the SVM, thereby indicating the superior performances of the RF.

5. Conclusions

Global warming, crisis of energy, and a degraded air quality index have compelled electrification of the transport sector. Public e-buses are the first candidates for electrification since the majority of public transport is dependent on them. Electrification of the public e-buses will increase the load demand of the power grid, thus creating technological and commercial challenges. Indeed, prediction of the e-bus charging load is a crucial issue for maintaining the smooth and hassle-free operation of the power system. The present work proposes a random-forest-based model for the prediction of e-bus charging demand for the city of Helsinki, Finland. The model was validated for seven charging datasets for route 11 of Helsinki city. The simulation results show that the proposed approach is very capable of predicting the charging demand accurately for all the datasets. Furthermore, the effect of different parameters of random forest on its performance were tested for all the datasets, and the optimal values of n_estimators and random_state were obtained. The performance of the random forest was also compared with that of SVM for all seven charging datasets. The computed values of MSE, RMSE, and MAE indicate the superiority of random forest over SVM. Our approach can be used by charging station operators to effectively predict the charging demand and to manage the charging load. The EV load was predicted in this work for the public e-buses of Helsinki, which can be called categorical to some extent. The EV load demand prediction for the non-categorical EV (both buses and private EVs) will be considered in our future work, which mainly focuses on the following issues:
  • The use of more sophisticated machine learning techniques for charging demand prediction;
  • Charging demand prediction for private electric vehicles;
  • Use of the gene expression programming method for charging demand prediction.

Author Contributions

S.D.: conceptualization, numerical analysis, and writing; X.-Z.G.: Review and Editing. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Acknowledgments

The first author would like to thank ERCIM and EUTOPIA.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Transport & Environment. Road Vehicles and Air Quality. Available online: Transportenvironment.org (accessed on 29 April 2021).
  2. US EPA. Carbon Pollution from Transportation. Available online: https://www.epa.gov/transportation-air-pollution-and-climate-change/carbon-pollution-transportation (accessed on 5 May 2021).
  3. Xue, Y.; Cao, X.; Ai, Y.; Xu, K.; Zhang, Y. Primary air pollutants emissions variation characteristics and future control strategies for transportation sector in Beijing, China. Sustainability 2020, 12, 4111. [Google Scholar] [CrossRef]
  4. Askariyeh, M.H.; Venugopal, M.; Khreis, H.; Birt, A.; Zietsman, J. Near-road traffic-related air pollution: Resuspended PM 2. 5 from highways and arterials. Int. J. Environ. Res. Public Health 2020, 17, 2851. [Google Scholar] [CrossRef] [PubMed]
  5. Deb, S.; Tammi, K.; Kalita, K.; Mahanta, P. Impact of electric vehicle charging station load on distribution network. Energies 2018, 11, 178. [Google Scholar] [CrossRef] [Green Version]
  6. Deb, S.; Kalita, K.; Mahanta, P. Review of impact of electric vehicle charging station on the power grid. In Proceedings of the 2017 International Conference on Technological Advancements in Power and Energy (TAP Energy), Kollam, India, 21–23 December 2017. [Google Scholar]
  7. Nour, M.; Chaves-Ávila, J.P.; Magdy, G.; Sánchez-Miralles, Á. Review of positive and negative impacts of electric vehicles charging on electric power systems. Energies 2020, 13, 4675. [Google Scholar] [CrossRef]
  8. Zagrajek, K.; Paska, J.; Kłos, M.; Pawlak, K.; Marchel, P.; Bartecka, M.; Michalski, L.; Terlikowski, P. Impact of electric bus charging on distribution substation and local grid in Warsaw. Energies 2020, 13, 1210. [Google Scholar] [CrossRef] [Green Version]
  9. Skok, S.; Havaš, L.; Radosevic, V.; Cvitanovic, M. Impact of Electromobility to the Power Distribution System. In Proceedings of the 2020 IEEE PES/IAS PowerAfrica, Nairobi, Kenya, 25–28 August 2020. [Google Scholar]
  10. Deb, S.; Sachan, S. Proposed Power Systems Planning in Indian Scenario for Integrating EV Charging Infrastructure. In Developing Charging Infrastructure and Technologies for Electric Vehicles; IGI Global: Hershey, PA, USA, 2022; pp. 25–37. [Google Scholar]
  11. Deb, S.; Kalita, K.; Mahanta, P. Distribution network planning considering the impact of electric vehicle charging station load. In Smart Power Distribution Systems; Academic Press: Cambridge, MA, USA, 2020; pp. 529–553. [Google Scholar]
  12. Ashfaq, M.; Butt, O.; Selvaraj, J.; Rahim, N. Assessment of electric vehicle charging infrastructure and its impact on the electric grid: A review. Int. J. Green Energy 2021, 18, 657–686. [Google Scholar] [CrossRef]
  13. Imara, M.N.F.; Liyanage, K.M. Electrical vehicle charging demand prediction using wavelet based analysis. In Proceedings of the 2017 IEEE International Conference on Industrial and Information Systems (ICIIS), Peradeniya, Sri Lanka, 15–16 December 2017. [Google Scholar]
  14. Arias, M.B.; Kim, M.; Bae, S. Prediction of electric vehicle charging-power demand in realistic urban traffic networks. Appl. Energy 2021, 195, 738–753. [Google Scholar] [CrossRef]
  15. Almaghrebi, A.; Aljuheshi, F.; Rafaie, M.; James, K.; Alahmad, M. Data-Driven Charging Demand Prediction at Public Charging Stations Using Supervised Machine Learning Regression Methods. Energies 2020, 13, 4231. [Google Scholar] [CrossRef]
  16. Gjelaj, M.; Hashemi, S.; Andersen, P.B.; Traeholt, C. Optimal infrastructure planning for EV fast-charging stations based on prediction of user behaviour. IET Electr. Syst. Transp. 2019, 10, 1–12. [Google Scholar] [CrossRef] [Green Version]
  17. Zhao, Y.; Wang, Z.; Shen, Z.J.M.; Sun, F. Data-driven framework for large-scale prediction of charging energy in electric vehicles. Appl. Energy 2021, 282, 116175. [Google Scholar] [CrossRef]
  18. Zheng, Y.; Shao, Z.; Zhang, Y.; Jian, L. A systematic methodology for mid-and-long term electric vehicle charging load forecasting: The case study of Shenzhen, China. Sustain. Cities Soc. 2020, 56, 102084. [Google Scholar] [CrossRef]
  19. Sun, S.; Yang, Q.; Yan, W. A novel Markov-based temporal-SoC analysis for characterizing PEV charging demand. IEEE Trans. Ind. Inform. 2017, 14, 156–166. [Google Scholar] [CrossRef]
  20. Su, S.; Zhao, H.; Zhang, H.; Lin, X.; Yang, F.; Li, Z. Forecast of electric vehicle charging demand based on traffic flow model and optimal path planning. In Proceedings of the 2017 19th International Conference on Intelligent System Application to Power Systems (ISAP), San Antonio, TX, USA, 17–20 September 2017. [Google Scholar]
  21. Rahbari, O.; Omar, N.; Firouz, Y.; Rosen, M.A.; Goutam, S.; Van Den Bossche, P.; Van Mierlo, J. A novel state of charge and capacity estimation technique for electric vehicles connected to a smart grid based on inverse theory and a metaheuristic algorithm. Energy 2018, 155, 1047–1058. [Google Scholar] [CrossRef]
  22. Zhang, X. Short-term load forecasting for electric bus charging stations based on fuzzy clustering and least squares support vector machine optimized by Wolf pack algorithm. Energies 2018, 11, 1449. [Google Scholar] [CrossRef] [Green Version]
  23. Wan, Y.; Cao, W.; Wang, L. A Prediction Method for EV Charging Load Based on Fuzzy Inference Algorithm. In Proceedings of the 2019 Chinese Control Conference (CCC), Guangzhou, China, 17 October 2019; pp. 2803–2808. [Google Scholar]
  24. Dabbaghjamanesh, M.; Moeini, A.; Kavousi-Fard, A. Reinforcement learning-based load forecasting of electric vehicle charging station using q-learningtechnique. IEEE Trans. Ind. Inform. 2020, 17, 4229–4237. [Google Scholar] [CrossRef]
  25. Wang, G.; Xie, X.; Zhang, F.; Liu, Y.; Zhang, D. bCharge: Data-driven real-time charging scheduling for large-scale electric bus fleets. In Proceedings of the 2018 IEEE Real-Time Systems Symposium (RTSS), Nashville, TN, USA, 11–14 December 2018. [Google Scholar]
  26. He, Z.; Cheng, Y.; Hu, Z. Multi-time simulation of electric taxicabs’ charging demand based on residents’ travel characteristics. In Proceedings of the 2017 IEEE Conference on Energy Internet and Energy System Integration (EI2), Beijing, China, 26–28 November 2017. [Google Scholar]
  27. Zhang, Z.; He, H.; Guo, J.; Han, R. Velocity prediction and profile optimization based real-time energy management strategy for Plug-in hybrid electric buses. Appl. Energy 2020, 280, 116001. [Google Scholar] [CrossRef]
  28. Yun, C.; Wanquan, Z.; Wei, Y.; Pan, M. Prediction on the charging demand for electric vehicles in Chengdu. IOP Conf. Ser. Mater. Sci. Eng. 2018, 324, 012080. [Google Scholar] [CrossRef]
  29. Chen, W.; Zhuang, P.; Liang, H. Reinforcement learning for smart charging of electric buses in smart grid. In Proceedings of the 2019 IEEE Global Communications Conference (GLOBECOM), Waikoloa, HI, USA, 9–13 December 2019. [Google Scholar]
  30. Liu, Y.; Liang, H. An MHO approach for electric bus charging scheme optimization based on energy consumption estimation. In Proceedings of the 2018 IEEE Power & Energy Society General Meeting (PESGM), Portland, OR, USA, 5–10 August 2018. [Google Scholar]
  31. Pagliaro, M.; Meneguzzo, F. Electric bus: A critical overview on the dawn of its widespread uptake. Adv. Sustain. Syst. 2019, 3, 1800151. [Google Scholar] [CrossRef]
  32. Zhang, R.; Fujimori, S. The role of transport electrification in global climate change mitigation scenarios. Environ. Res. Lett. 2020, 15, 034019. [Google Scholar] [CrossRef]
  33. Xylia, M.; Leduc, S.; Laurent, A.B.; Patrizio, P.; Van Der Meer, Y.; Kraxner, F.; Silveira, S. Impact of bus electrification on carbon emissions: The case of Stockholm. J. Clean. Prod. 2019, 209, 74–87. [Google Scholar] [CrossRef] [Green Version]
  34. Lie, K.W.; Synnevåg, T.A.; Lamb, J.J.; Lien, K.M. The Carbon Footprint of Electrified City Buses: A Case Study in Trondheim, Norway. Energies 2021, 14, 770. [Google Scholar] [CrossRef]
  35. Sasidharan, C.; Ray, A.; Das, S. Selection of Charging Technology for Electric Bus Fleets in Intra-city Public Transport in India. In Proceedings of the 2019 Global Conference for Advancement in Technology (GCAT), Bangalore, India, 18–20 October 2019. [Google Scholar]
  36. Roskilde is 1st City in Denmark to Convert Bus Fleet to Electric. Available online: https://www.cleantechnica.com (accessed on 30 April 2021).
  37. Liu, Y.; Wang, Y.; Zhang, J. New machine learning algorithm: Random forest. In International Conference on Information Computing and Applications; Springer: Berlin/Heidelberg, Germany, 2012; pp. 246–252. [Google Scholar]
  38. Built In. The Random Forest Algorithm: A Complete Guide. Available online: https://builtin.com/data-science/random-forest-algorithm (accessed on 10 May 2021).
  39. Jaiswal, J.K.; Samikannu, R. Application of random forest algorithm on feature subset selection and classification and regression. In Proceedings of the 2017 World Congress on Computing and Communication Technologies (WCCCT), Tiruchirappalli, India, 2–4 February 2017. [Google Scholar]
  40. Belgiu, M.; Drăguţ, L. Random forest in remote sensing: A review of applications and future directions. ISPRS J. Photogramm. Remote Sens. 2016, 114, 24–31. [Google Scholar] [CrossRef]
  41. Mascaro, J.; Asner, G.P.; Knapp, D.E.; Kennedy-Bowdoin, T.; Martin, R.E.; Anderson, C.; Higgins, M.; Chadwick, K.D. A tale of two “forests”: Random Forest machine learning aids tropical forest carbon mapping. PLoS ONE 2014, 9, e85993. [Google Scholar] [CrossRef] [PubMed]
  42. Yao, H.; Li, X.; Pang, H.; Sheng, L.; Wang, W. Application of random forest algorithm in hail forecasting over Shandong Peninsula. Atmos. Res. 2020, 244, 105093. [Google Scholar] [CrossRef]
  43. Alam, M.S.; Vuong, S.T. Random forest classification for detecting android malware. In Proceedings of the 2013 IEEE International Conference on Green Computing and Communications and IEEE Internet of Things and IEEE Cyber, Physical and Social Computing, Beijing, China, 20–23 August 2013; pp. 663–669. [Google Scholar]
  44. Horning, N. Random Forests: An algorithm for image classification and generation of continuous fields data sets. In Proceedings of the International Conference on Geoinformatics for Spatial Infrastructure Development in Earth and Allied Sciences, Osaka, Japan, 9 December 2010; Volume 911. [Google Scholar]
  45. Yi, H.; Xiong, Q.; Zou, Q.; Xu, R.; Wang, K.; Gao, M. A Novel Random Forest and its Application on Classification of Air Quality. In Proceedings of the 2019 8th International Congress on Advanced Applied Informatics (IIAI-AAI), Toyama, Japan, 7–11 July 2019; pp. 35–38. [Google Scholar]
  46. The Mayor.eu. Helsinki Goes all in on Electric. Available online: https://www.themayor.eu/fr/a/view/helsinki-goes-all-in-on-electric-3182?trans=en-US (accessed on 30 April 2021).
  47. Sachan, S.; Deb, S.; Singh, S.N. Different charging infrastructures along with smart charging strategies for electric vehicles. Sustain. Cities Soc. 2020, 60, 102238. [Google Scholar] [CrossRef]
  48. Ranta, M.; Karvonen, V.; Potter, J.J.; Pasonen, R.; Pursiheimo, E.; Halmeaho, T.; Ponomarev, P.; Pihlatie, M. Method including power grid model and route simulation to aid planning and operation of an electric bus fleet. In Proceedings of the 2016 IEEE Vehicle Power and Propulsion Conference (VPPC), Hangzhou, China, 17–20 October 2016. [Google Scholar]
  49. HSL. Open Data Platform of HSL. Available online: http://dev.hsl.fi/ (accessed on 12 April 2021).
  50. Available online: https://movelatam.org/wp-content/uploads/2017/12/ABB_Complete-offer-ebus_FINAL_X3.pdf (accessed on 15 April 2021).
Figure 1. Quantitative analysis of reported research works on charging demand prediction.
Figure 1. Quantitative analysis of reported research works on charging demand prediction.
Energies 15 03679 g001
Figure 2. Working principle of random forest.
Figure 2. Working principle of random forest.
Energies 15 03679 g002
Figure 3. Flowchart of charging dataset generation for e-buses.
Figure 3. Flowchart of charging dataset generation for e-buses.
Energies 15 03679 g003
Figure 4. Charging demand prediction by random forest.
Figure 4. Charging demand prediction by random forest.
Energies 15 03679 g004
Figure 5. Charging demand prediction of a weekday for Matinkylä (M).
Figure 5. Charging demand prediction of a weekday for Matinkylä (M).
Energies 15 03679 g005
Figure 6. Charging demand prediction of a weekend for Matinkylä (M).
Figure 6. Charging demand prediction of a weekend for Matinkylä (M).
Energies 15 03679 g006
Figure 7. Charging demand prediction of a weekday for Teekkarikylä.
Figure 7. Charging demand prediction of a weekday for Teekkarikylä.
Energies 15 03679 g007
Figure 8. Charging demand prediction of a weekend for Teekkarikylä.
Figure 8. Charging demand prediction of a weekend for Teekkarikylä.
Energies 15 03679 g008
Figure 9. Charging demand prediction of a weekday for Hyljeveneentie.
Figure 9. Charging demand prediction of a weekday for Hyljeveneentie.
Energies 15 03679 g009
Figure 10. Charging demand prediction of a weekend for Hyljeveneentie.
Figure 10. Charging demand prediction of a weekend for Hyljeveneentie.
Energies 15 03679 g010
Figure 11. Charging demand prediction of a weekday for Munkkiranta.
Figure 11. Charging demand prediction of a weekday for Munkkiranta.
Energies 15 03679 g011
Figure 12. Charging demand prediction of a weekend for Munkkiranta.
Figure 12. Charging demand prediction of a weekend for Munkkiranta.
Energies 15 03679 g012
Figure 13. Charging demand prediction of a weekday for Tuomarilankallio.
Figure 13. Charging demand prediction of a weekday for Tuomarilankallio.
Energies 15 03679 g013
Figure 14. Charging demand prediction of a weekend for Tuomarilankallio.
Figure 14. Charging demand prediction of a weekend for Tuomarilankallio.
Energies 15 03679 g014
Figure 15. Charging demand prediction of a weekday for Alakaupunki.
Figure 15. Charging demand prediction of a weekday for Alakaupunki.
Energies 15 03679 g015
Figure 16. Charging demand prediction of a weekend for Alakaupunki.
Figure 16. Charging demand prediction of a weekend for Alakaupunki.
Energies 15 03679 g016
Figure 17. Charging demand prediction of a weekday for Leppävaaran asema.
Figure 17. Charging demand prediction of a weekday for Leppävaaran asema.
Energies 15 03679 g017
Figure 18. Charging demand prediction of a weekend for Leppävaaran asema.
Figure 18. Charging demand prediction of a weekend for Leppävaaran asema.
Energies 15 03679 g018
Table 1. Review of research works on the prediction of charging demand.
Table 1. Review of research works on the prediction of charging demand.
RefYearVehicle CategoryMethodologyTest Network
[13]2017Private EVWavelet decompositionUrban area of Sri Lanka
[14]2017Private EVMarkov chain and graph theorySeoul, South Korea
[15]2021Private EVGradient Boosting and SVMNebraska, USA
[16]2019Private EVProbabilistic approach based on normal distributionCopenhagen, Denmark
[17]2021Private EVData-driven two-layer approach and neural networkGuangzhou, China
[18]2020Taxi, E bus, and official EVMonte CarloShenzhen, China
[19]2017Private EVMonte Carlo and HMMIEEE 53 bus system
[20]2017Private EVQueuing theory and Monte Carlo33 node road network
[21]2018Private EVTLBO and ANFISExperimental data from the Prognostics Center of Excellence at NASA
[22]2018E busSVM and WPABaoding, China
[23]2019Private EVFuzzy logic and Monte CarloNHTS dataset
[24]2020Private EVReinforcement learningGenerated dataset considering different EV penetration rate
[25]2018E busMarkov modelShenzhen, China
[26]2017E taxiMonte CarloIdeal city with E taxi
[27]2020E busGA and DPIdeal city with E bus
[28]2018Private EVElastic coefficient methodChengdu, China
[29]2019E busReinforcement learningSt. Albert Transit, AB, Canada
[30]2018E busMHOEdmonton Transit Service (ETS)
Table 5. Impact of n_estimators on the performance of the random forest with random_state = 0.
Table 5. Impact of n_estimators on the performance of the random forest with random_state = 0.
Datasetn_EstimatorsAccuracy (%)r2_ScoreMSEMAERMSE
11095.80.79044843860385070.085154826958105650.0557832422586520970.29181299998
5097.650.88009616540434240.0487249544626593840.0318761384335154860.22073729739
10097.680.88429840259811540.047017304189435340.0310792349726775950.21683473935
15097.600.88233735857435470.047814207650273220.0318761384335154860.21866460081
21099.700.98712914170513320.00364298724954462660.00318761384335154850.06035716402
5099.950.99839114271314170.00045537340619307830.00045537340619307830.02133947998
10099.860.9951734281394250.0013661202185792350.0013661202185792350.03696106354
15099.930.99758671406971240.00068306010928961750.00068306010928961750.02613541867
31099.620.96998922512736170.008196721311475410.0052367941712204010.09053574604
5099.970.99916636736464890.000227686703096539160.000227686703096539160.015089291
10099.900.99541502050556920.00125227686703096530.00102459016393442630.03538752417
15099.950.99833273472929780.00045537340619307830.00045537340619307830.02133947998
41099.960.99443429598976580.000341530054644808740.000341530054644808740.01848053177
501001000
1001001000
1501001000
51099.320.9456174114850140.013547358834244080.0089936247723132970.11639312193
5099.880.99268805532571610.00182149362477231330.0013661202185792350.04267895997
10099.940.99771501728928640.0005692167577413480.0005692167577413480.02385826392
15099.950.99817201383142910.00045537340619307830.00045537340619307830.02133947998
61098.130.92204821760288510.0339253187613843330.0234517304189435330.18418826988
5099.280.96390152358791330.0157103825136612020.0095628415300546450.12534106475
10099.060.95186869811721760.0209471766848816040.0125227686703096530.14473139495
15099.550.97776543119545380.0096766848816029140.0058060109289617490.09837014222
71099.540.97410180046146540.0079690346083788710.0056921675774134790.08926944946
5099.780.98631095167248880.00421220400728597450.00284608378870673940.06490149464
10099.850.98964072018458620.00318761384335154850.00204918032786885260.05645895715
15099.800.98816082306809850.00364298724954462660.00250455373406193070.06035716402
Table 6. Impact of random_state on the performance of the random forest with n_estimators = 100.
Table 6. Impact of random_state on the performance of the random forest with n_estimators = 100.
DatasetRandom_StateAccuracy (%)r2_ScoreMSEMAERMSE
1097.680.88429840259811540.047017304189435340.0310792349726775950.21683473935
597.300.85740621769550740.058743169398907110.037568306010928960.242369902
1097.020.84528926180280560.063866120218579240.041097449908925320.25271747113
2099.860.9951734281394250.0013661202185792350.0013661202185792350.03696106354
599.880.99563868079031040.0011384335154826960.0011384335154826960.03374068042
1099.920.99702071183803340.00079690346083788710.00079690346083788710.02822947857
3099.900.99541502050556920.00125227686703096530.00102459016393442630.03538752417
599.790.99180735427161460.00204918032786885260.00204918032786885260.04526787302
1099.890.99602590021609320.00102459016393442630.00102459016393442630.03200921998
401001000
51001000
101001000
5099.940.99771501728928640.0005692167577413480.0005692167577413480.02385826392
599.850.99172250226471110.0021630236794171220.00170765027322404370.04650831838
1099.270.99275595233063660.00182149362477231330.0011384335154826960.04267895997
6099.060.95186869811721760.0209471766848816040.0125227686703096530.14473139495
599.600.98628472664793840.0055783242258652090.0044398907103825130.07468817996
1099.180.96254487914891430.016165755919854280.0102459016393442620.12714462599
7099.850.98964072018458620.00318761384335154850.00204918032786885260.05645895715
599.760.98202088889637480.005464480874316940.00341530054644808730.07392212709
1099.810.98752944395089340.0038706739526411660.00250455373406193070.06221474063
Table 7. Comparison of the RF model with the SVM model.
Table 7. Comparison of the RF model with the SVM model.
DatasetAlgorithmMSEMAERMSE
1SVM0.268556466302367960.21140710382513660.51822433974
RF0.047017304189435340.0310792349726775950.21683473935
2SVM0.166666666666666660.133879781420765040.40824829046
RF0.0013661202185792350.0013661202185792350.03696106354
3SVM0.200819672131147540.146857923497267760.44812907976
RF0.00125227686703096530.00102459016393442630.03538752417
4SVM0.071721311475409830.05988160291438980.2678083484
RF000
5SVM0.157103825136612030.139799635701275040.39636324897
RF0.0005692167577413480.0005692167577413480.02385826392
6SVM0.180555555555555550.151867030965391610.42491829279
RF0.0209471766848816040.0125227686703096530.14473139495
7SVM0.149931693989071050.137181238615664840.38721014189
RF0.00318761384335154850.00204918032786885260.05645895715
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Deb, S.; Gao, X.-Z. Prediction of Charging Demand of Electric City Buses of Helsinki, Finland by Random Forest. Energies 2022, 15, 3679. https://0-doi-org.brum.beds.ac.uk/10.3390/en15103679

AMA Style

Deb S, Gao X-Z. Prediction of Charging Demand of Electric City Buses of Helsinki, Finland by Random Forest. Energies. 2022; 15(10):3679. https://0-doi-org.brum.beds.ac.uk/10.3390/en15103679

Chicago/Turabian Style

Deb, Sanchari, and Xiao-Zhi Gao. 2022. "Prediction of Charging Demand of Electric City Buses of Helsinki, Finland by Random Forest" Energies 15, no. 10: 3679. https://0-doi-org.brum.beds.ac.uk/10.3390/en15103679

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop