Submitted:
23 July 2024
Posted:
25 July 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Methods
| Algorithm 1. Fragment of the DNN model code used to create the energy model of electric vehicles. |
| import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Dropout from tensorflow.keras.callbacks import EarlyStopping # Model creation DNN model = Sequential([ Dense(64, input_dim=2, activation=‘relu’), Dropout(0.2), Dense(32, activation=‘relu’), Dropout(0.2), Dense(16, activation=‘relu’), Dense(1) ]) # Model compilation model.compile(optimizer=‘adam’, loss=‘mean_squared_error’) # Early stopping early_stopping = EarlyStopping(monitor=‘val_loss’, patience=10, restore_best_weights=True) # Model training history = model.fit(X_train_scaled, y_train, validation_split=0.2, epochs=100, batch_size=32, callbacks=[early_stopping]) |
| Algorithm 2. Application code to convert the gpx file format to csv to collect input data for further energy analysis. |
| import xml.etree.ElementTree as ET import csv def convert_gpx_to_csv(input_file, output_file): tree = ET.parse(input_file) root = tree.getroot() # Define the namespaces ns = { ‘default’: ‘http://www.topografix.com/GPX/1/0’ } # Prepare the CSV file with open(output_file, ‘w’, newline=‘‘) as csvfile: fieldnames = [‘lat’, ‘lon’, ‘speed’] writer = csv.DictWriter(csvfile, fieldnames=fieldnames) writer.writeheader() # Iterate over all track points for trkpt in root.findall(‘.//default:trkpt’, ns): lat = trkpt.get(‘lat’) lon = trkpt.get(‘lon’) speed_elem = trkpt.find(‘default:speed’, ns) speed = speed_elem.text if speed_elem is not None else ‘N/A’ writer.writerow({ ‘lat’: lat, ‘lon’: lon, ‘speed’: speed }) # Example usage convert_gpx_to_csv(input_file=“name of the file.gpx”, output_file=“output.csv”) |
3. Results
3.1. Exploratory Data Analysis
| Algorithm 3. Codesnippet on splitting the input data set to create an EV energy model. |
| from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler # Breakdown of data into features (X) and target variable (y) X = data[[‘Velocity (km/h)’, ‘Acceleration (m/s2)’]] y = data[‘Energy (kWh)’] # Division into training and test sets X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42) |
| Algorithm 4. Codesnippet on feature scaling. |
| # Feature scaling scaler = StandardScaler() X_train_scaled = scaler.fit_transform(X_train) X_test_scaled = scaler.transform(X_test) |
3.2. Energy Modeling – Validation
3.3. Using the Model for New Input Data - Case Study of Enna
3.4. Recommendations for Modeling EV Energy
- It is important to collect road data for different road conditions and prevailing speeds, especially for urban and nonurban parts, where higher driving speeds occur,
- The DNN technique makes it possible to obtain very good validation indications both in terms of vehicle acceleration, where there is high energy consumption, and in moments of recuperative braking, where energy is recovered for vehicle batteries, and
- For the creation of universal models, it is necessary to reduce the input data for their creation as much as possible, for the movement of the vehicle it is best to be limited to the speed and acceleration of the vehicle, possibly taking into account the gradient of the terrain; such parameters are sufficient for the creation of predictive models of the energy of EVs and allows one to achieve good accurate models with high validation rates,
- It is also important for the generation of new results to have GPS post arrival coordinates, which will allow the subsequent use of these coordinates for map generation, which can be very useful, for example, for transport decision-makers, or even for ordinary road users.
4. Discussion
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Barbieri, N. (2016). Fuel prices and the invention crowding out effect: Releasing the automotive industry from its dependence on fossil fuel. Technological Forecasting and Social Change, 111, 222-234.
- Olabi, A. G., Wilberforce, T., & Abdelkareem, M. A. (2021). Fuel cell application in the automotive industry and future perspective. Energy, 214, 118955.
- Mądziel, M. Future Cities Carbon Emission Models: Hybrid Vehicle Emission Modelling for Low-Emission Zones. Energies 2023, 16, 6928. [CrossRef]
- Coignard, J., Saxena, S., Greenblatt, J., & Wang, D. (2018). Clean vehicles as an enabler for a clean electricity grid. Environmental Research Letters, 13(5), 054031.
- Mądziel, M.; Campisi, T. Investigation of Vehicular Pollutant Emissions at 4-Arm Intersections for the Improvement of Integrated Actions in the Sustainable Urban Mobility Plans (SUMPs). Sustainability 2023, 15, 1860. [CrossRef]
- Fang, T., Vairin, C., von Jouanne, A., Agamloh, E., & Yokochi, A. (2024). Review of Fuel-Cell Electric Vehicles. Energies, 17(9), 2160.
- Sumitkumar, R., & Al-Sumaiti, A. S. (2024). Shared autonomous electric vehicle: Towards social economy of energy and mobility from power-transportation nexus perspective. Renewable and Sustainable Energy Reviews, 197, 114381.
- Zhong, Z., Zeng, Y., Zhao, X., & Zhang, S. (2024). The social benefits resulting from electric vehicle smart charging balancing economy and decarbonization. Transport Policy, 147, 113-124.
- Ala, G., Di Filippo, G., Viola, F., Giglia, G., Imburgia, A., Romano, P., ... & Miceli, R. (2020). Different scenarios of electric mobility: Current situation and possible future developments of fuel cell vehicles in Italy. Sustainability, 12(2), 564.
- Torta, G., Ciacci, L., Vassura, I., & Passarini, F. (2024). Exploring mass and economic potentials of rare earth elements recycling from electric vehicles at end-of-life. Mineral Economics, 1-15.
- Martini, D., Aimar, M., Borghetti, F., Longo, M., & Foiadelli, F. (2024). Innovative Energy Approach for Design and Sizing of Electric Vehicle Charging Infrastructure. Infrastructures, 9(1), 15.
- Marchetti, D. J., & Parigi, G. (2000). Energy consumption, survey data and the prediction of industrial production in Italy: A comparison and combination of different models. Journal of Forecasting, 19(5), 419-440.
- Yuan, H., Ma, M., Zhou, N., Xie, H., Ma, Z., Xiang, X., & Ma, X. (2024). Battery electric vehicle charging in China: Energy demand and emissions trends in the 2020s. Applied Energy, 365, 123153.
- Alhanouti, M., & Gauterin, F. (2024). A Generic Model for Accurate Energy Estimation of Electric Vehicles. Energies, 17(2), 434.
- Hamdan, A., Ibekwe, K. I., Ilojianya, V. I., Sonko, S., & Etukudoh, E. A. (2024). AI in renewable energy: A review of predictive maintenance and energy optimization. International Journal of Science and Research Archive, 11(1), 718-729.
- Bouquet, P., Jackson, I., Nick, M., & Kaboli, A. (2024). AI-based forecasting for optimised solar energy management and smart grid efficiency. International Journal of Production Research, 62(13), 4623-4644.
- Mądziel, M. Liquified Petroleum Gas-Fuelled Vehicle CO2 Emission Modelling Based on Portable Emission Measurement System, On-Board Diagnostics Data, and Gradient-Boosting Machine Learning. Energies 2023, 16, 2754. [CrossRef]
- Meng, Y., & Noman, H. (2022). Predicting co2 emission footprint using ai through machine learning. Atmosphere, 13(11), 1871.
- Khan, M. R., Haider, Z. M., Malik, F. H., Almasoudi, F. M., Alatawi, K. S. S., & Bhutta, M. S. (2024). A comprehensive review of microgrid energy management strategies considering electric vehicles, energy storage systems, and AI techniques. Processes, 12(2), 270.
- Hu, J., Lin, Y., Li, J., Hou, Z., Chu, L., Zhao, D., ... & Zhang, Y. (2024). Performance analysis of AI-based energy management in electric vehicles: A case study on classic reinforcement learning. Energy Conversion and Management, 300, 117964.
- Xiao, Y., Zhang, Y., Kaku, I., Kang, R., & Pan, X. (2021). Electric vehicle routing problem: A systematic review and a new comprehensive model with nonlinear energy recharging and consumption. Renewable and Sustainable Energy Reviews, 151, 111567.
- Ibrahim, A., & Jiang, F. (2021). The electric vehicle energy management: An overview of the energy system and related modeling and simulation. Renewable and Sustainable Energy Reviews, 144, 111049.
- Ristiana, R., Rohman, A. S., Machbub, C., Purwadi, A., & Rijanto, E. (2019). A new approach of EV modeling and its control applications to reduce energy consumption. IEEE Access, 7, 141209-141225.
- Singh, S. P., Padmanaban, S., Leonowicz, Z., & Holm-Nielsen, J. B. (2021). Prosumer energy management for optimal utilization of bid fulfillment with EV uncertainty modeling. IEEE Transactions on Industry Applications, 58(1), 599-611.
- Mądziel, M. (2024). Instantaneous CO2 emission modelling for a Euro 6 start-stop vehicle based on portable emission measurement system data and artificial intelligence methods. Environmental Science and Pollution Research, 31(5), 6944-6959.
- Li, H., Li, X., Fan, Q., He, Q., Wang, X., & Leung, V. C. (2024). Distributed DNN inference with fine-grained model partitioning in mobile edge computing networks. IEEE Transactions on Mobile Computing.
- Noh, J. H., & Lee, J. H. (2024). Development of a DNN model using calibrated simulation for the optimal control of HVAC systems. Energy and Buildings, 114516.
- Ravindran, R., Santora, M. J., & Jamali, M. M. (2020). Multi-object detection and tracking, based on DNN, for autonomous vehicles: A review. IEEE Sensors Journal, 21(5), 5668-5677.
- Munawar, S., Ali, Z., Waqas, M., Tu, S., Hassan, S. A., & Abbas, G. (2022). Cooperative computational offloading in mobile edge computing for vehicles: A model-based dnn approach. IEEE Transactions on Vehicular Technology, 72(3), 3376-3391.
- Sung, J., & Han, S. J. (2024). Use of edge resources for DNN model maintenance in 5G IoT networks. Cluster Computing, 1-13.
- Ferreira, R., Canesche, M., Jamieson, P., Neto, O. P. V., & Nacif, J. A. (2024). Examples and tutorials on using Google Colab and Gradio to create online interactive student-learning modules. Computer Applications in Engineering Education, e22729.
- Edwards, K., Scalisi, C., DeMars-Smith, J., & Lee, K. (2024, March). Google Colab for Teaching CS and ML. In Proceedings of the 55th ACM Technical Symposium on Computer Science Education V. 2 (pp. 1925-1925).
- Ray, S., Alshouiliy, K., & Agrawal, D. P. (2020). Dimensionality reduction for human activity recognition using google colab. Information, 12(1), 6.
- Mishra, D. P., Kumar, P., Rai, P., Kumar, A., & Salkuti, S. R. (2024). Exploratory data analysis for electric vehicle driving range prediction: insights and evaluation. International Journal of Applied, 13(2), 474-482.
- Dörre, E., Klein, T., & von Bonin, M. (2024). Finding Attractive Electric-Vehicle-Charging Locations with Photovoltaic System Integration. World Electric Vehicle Journal, 15(3), 97.
- Golui, S., Mahapatra, B. S., & Mahapatra, G. S. (2024). A new correlation-based measure on Fermatean fuzzy applied on multi-criteria decision making for electric vehicle selection. Expert systems with applications, 237, 121605.
- Huang, Z., Xie, Z., Zhang, C., Chan, S. H., Milewski, J., Xie, Y., ... & Hu, X. (2019). Modeling and multi-objective optimization of a stand-alone PV-hydrogen-retired EV battery hybrid energy system. Energy conversion and management, 181, 80-92.
- Bauer, P., Stembridge, N., Doppler, J., & Kumar, P. (2010, September). Battery modeling and fast charging of EV. In Proceedings of 14th International Power Electronics and Motion Control Conference EPE-PEMC 2010 (pp. S11-39). IEEE.
- El Amrani, R., Yahyaouy, A., & Tairi, H. (2020, June). Modeling and simulation of an evolutionary approach based on MAS strategy: For intelligent energy management in EV. In 2020 International Conference on Intelligent Systems and Computer Vision (ISCV) (pp. 1-8). IEEE.
- Park, M., Wang, Z., Li, L., & Wang, X. (2023). Multi-objective building energy system optimization considering EV infrastructure. Applied Energy, 332, 120504.
- Mao, T., Zhang, X., & Zhou, B. (2018). Modeling and solving method for supporting ‘vehicle-to-anything’EV charging mode. Applied Sciences, 8(7), 1048.
- Mądziel, M. Energy Modeling for Electric Vehicles Based on Real Driving Cycles: An Artificial Intelligence Approach for Microscale Analyses. Energies 2024, 17, 1148. [CrossRef]
- Mądziel, M. Modelling CO2 Emissions from Vehicles Fuelled with Compressed Natural Gas Based on On-Road and Chassis Dynamometer Tests. Energies 2024, 17, 1850. [CrossRef]
- Mądziel, M. Quantifying Emissions in Vehicles Equipped with Energy-Saving Start–Stop Technology: THC and NOx Modeling Insights. Energies 2024, 17, 2815.
- Chen, J., Dobbie, G., Koh, Y. S., Somervell, E., & Olivares, G. (2018, April). Vehicle emission prediction using remote sensing data and machine learning techniques. In Proceedings of the 33rd Annual ACM Symposium on Applied Computing (pp. 444-451).









Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).