Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jul 4;15(1):23888.
doi: 10.1038/s41598-025-07844-3.

Enhancing smart city sustainability with explainable federated learning for vehicular energy control

Affiliations

Enhancing smart city sustainability with explainable federated learning for vehicular energy control

Khalid Ishaq Abdullah Almaazmi et al. Sci Rep. .

Abstract

The rise of electric and autonomous vehicles in smart cities poses challenges in vehicular energy management due to un-optimized consumption, inefficient grid use, and unpredictable traffic patterns. Traditional centralized machine learning models and cloud-based Energy Management Systems (EMSs) struggle with real-time adaptability, high-dimensional data processing, and data privacy risks. These issues lead to high costs, excessive energy waste, and regulatory concerns. Federated Learning (FL) offers a decentralized approach where multiple edge devices collaboratively train models without sharing raw data. This enhances privacy, reduces communication overhead, and is well-suited for smart city applications. However, FL's black-box nature limits interpretability, reducing trust in AI-driven decisions. Explainable AI (XAI) addresses this by enhancing transparency, interpretability, and regulatory compliance. This research introduces Explainable FL (XFL) for optimizing vehicular energy management in smart cities. The proposed XFL framework integrates distributed learning with explainability techniques for interpretable and accountable decision-making. Using a real-world AEV telemetry dataset of approximately 1,219,567 records with features like speed, energy consumption, and traffic density, it employs a hierarchical FL architecture to ensure secure and decentralized learning. It efficiently analyzes real-time traffic, vehicle energy states, and grid load balancing while preserving privacy. Experimental results show that the proposed Multi-Layer Perceptron (MLP)-based global model achieves superior predictive accuracy, with R² values of 94.73% for energy consumption and 99.83% for traffic density, significantly outperforming previous methods.

Keywords: Energy management systems (EMSs); Explainable federated learning; Smart City; Vehicular energy management; XAI.

PubMed Disclaimer

Conflict of interest statement

Declarations. Competing interests: The authors declare no competing interests.

Figures

Fig. 1
Fig. 1
FL-based smart EMS for Autonomous Electric Vehicles (AEVs).
Fig. 2
Fig. 2
Abstract architecture of the proposed model.
Fig. 3
Fig. 3
Proposed energy management model for AEV model (local server client).
Fig. 4
Fig. 4
Comparative analysis of speed, energy consumption, and traffic density across cities.
Fig. 5
Fig. 5
a Impact of weather conditions on vehicle speed across cities. b Influence of weather conditions on energy consumption patterns in different cities. c Effect of weather conditions on traffic density variations across cities.
Fig. 6
Fig. 6
Diurnal variations in traffic density across weekdays and weekends with peak hour analysis.
Fig. 7
Fig. 7
Relationship between vehicle speed and energy consumption across different vehicle types.
Fig. 8
Fig. 8
Proposed energy management model for AEV (global server-client).
Fig. 9
Fig. 9
LIME explanation of the proposed global energy management model for AEV.

Similar articles

References

    1. Aljohani, T. M., Assolami, Y. O., Alrumayh, O., Mohamed, M. A. & Almutairi, A. Sustainable energy systems in a post-pandemic world: A taxonomy-based analysis of global energy-related markets responses and strategies following COVID-19. Sustainability, 17(5), 2307. (2025).
    1. Siddiqui, S. Y., Khan, M. A., Abbas, S. & Khan, F. Smart occupancy detection for road traffic parking using deep extreme learning machine. J. King Saud Univ.-Comput. Inform. Sci.34 (3), 727–733 (2022).
    1. Atta, A., Abbas, S., Khan, M. A., Ahmed, G. & Farooq, U. An adaptive approach: Amart traffic congestion control system. J. King Saud Univ.-Comput. Inform. Sci.32 (9), 1012–1019 (2020).
    1. Etukudoh, E. A. et al. A review of sustainable transportation solutions: Innovations, challenges, and future directions. World J. Adv. Res. Rev. 21 (1), 1440–1452 (2024).
    1. Sabet, S. & Farooq, B. Exploring the combined effects of major fuel technologies, eco-routing, and eco-driving for sustainable traffic decarbonization in downtown Toronto. Transp. Res. Part A Policy Pract. 192, 104385. (2025).

LinkOut - more resources