Abstract
The rapid adoption of electric vehicles (EVs) has intensified the demand for intelligent, scalable, and interoperable charging infrastructure. Traditional EV charging networks based on the Open Charge Point Protocol (OCPP) face challenges related to dynamic load management, cybersecurity, and efficient integration with renewable energy sources. This paper presents a novel AI-driven framework that integrates federated learning, predictive analytics, and real-time control within OCPP-compliant networks to enhance performance and sustainability. The proposed system utilizes edge AI modules at charging stations, supported by a central aggregator that employs federated learning to preserve data privacy while enabling network-wide optimization. A case study involving simulated smart charging stations demonstrates significant improvements, including an 18% reduction in peak load demand, a 29% increase in forecasting accuracy (MAPE of 8.5%), a 10% decrease in average charging wait times, and a 12% increase in on-site solar energy utilization. The framework’s compatibility with OCPP and related standards (e.g., IEC 61851, ISO 15118) ensures ease of deployment on existing infrastructure. These results indicate that the proposed AI-OCPP integration provides a scalable and intelligent foundation for next-generation EV charging networks that align with the goals of sustainable transportation and smart grid evolution.
1. Introduction
The adoption of Electric Vehicles (EVs) has surged globally, driven by efforts to mitigate climate change, reduce greenhouse gas emissions, and shift towards sustainable transportation systems. In parallel with the increased EV penetration, there has been a significant expansion in charging infrastructure to accommodate growing energy demands. Urbanization further exacerbates the pressure on existing charging facilities, as urban areas now house over half of the world’s population, intensifying the need for efficient EV charging management [].
A critical issue faced by EV charging stations is inefficient utilization, primarily resulting from vehicles occupying charging stations beyond optimal charging periods (typically beyond 80% state-of-charge). This inefficiency significantly hampers the availability of chargers and increases operational costs. To mitigate these issues, standardized communication protocols have been introduced, with the Open Charge Point Protocol (OCPP) emerging as a widely accepted solution for interoperability between charging stations and central management systems. However, traditional OCPP-based networks lack intrinsic intelligent control, leading to suboptimal scheduling, reduced responsiveness, and limited predictive capabilities.
Recent studies highlight the potential of smart and intelligent charging solutions to address these limitations. Systems integrating real-time charging controls and parking management significantly reduce idle occupancy times. Moreover, advanced scheduling algorithms that incorporate stochastic variables such as uncertain EV arrival and departure times have demonstrated improved charging station efficiency. Fairness-oriented schemes further optimize energy distribution during peak periods, ensuring equitable access to chargers across various user groups. Despite these advancements, existing solutions predominantly address specific aspects in isolation, failing to deliver a comprehensive, unified framework that leverages AI-driven decision-making and integrates seamlessly with OCPP standards [].
Artificial Intelligence (AI) has emerged as a transformative technology in enhancing EV charging management through predictive analytics, autonomous decision-making, and anomaly detection capabilities []. Preliminary research has illustrated the effectiveness of AI methodologies, such as federated learning, deep learning, and reinforcement learning, in optimizing EV load forecasting, scheduling, and security management within EV infrastructures. Nonetheless, an integrated, comprehensive approach combining AI-driven systems with the OCPP standard remains largely unexplored.
This paper proposes a novel comprehensive framework designed explicitly to bridge this gap by integrating AI-driven systems within OCPP-compliant EV charging infrastructures. This framework facilitates intelligent demand forecasting, adaptive load balancing, and predictive maintenance capabilities while preserving the interoperability of traditional OCPP-based systems. The unique combination of federated learning, edge computing, and advanced 5G connectivity forms the backbone of the proposed framework, enhancing operational responsiveness, scalability, and reliability.
The contributions of this paper include:
- Development of an integrated AI-OCPP framework leveraging federated learning and edge AI, ensuring privacy-preserving distributed analytics.
- Implementation of a fog computing architecture to reduce communication latency and enhance real-time responsiveness.
- Robust validation through simulation, demonstrating superior predictive performance and scalability compared to centralized models.
Figure 1 illustrates the high-level architecture of the proposed AI-driven EV charging framework that integrates with the Open Charge Point Protocol (OCPP). The framework leverages edge intelligence units deployed at individual EV charging stations to enable local decision-making and real-time data processing. These units communicate using OCPP standards and are supported by a federated learning mechanism that allows collaborative model training without sharing raw data. A centralized cloud coordinates the global analytics, aggregating the locally trained models to optimize system-wide performance while preserving data privacy []. This architecture enhances scalability, security, and interoperability in smart EV charging networks.

Figure 1.
Federated AI-Driven OCPP-Integrated EV Charging Framework.
Table 1 presents a comparative analysis highlighting the key differences between traditional OCPP-based EV charging systems and the proposed AI-OCPP integrated framework. The proposed system introduces predictive analytics through federated learning, offers adaptive real-time load balancing, enhances data privacy via local processing, improves scalability, and reduces communication latency through the use of edge and fog computing technologies. This comparison underscores the significant advancements in performance, efficiency, and security enabled by integrating AI into the OCPP-based infrastructure.

Table 1.
COMPARATIVE FEATURES OF TRADITIONAL OCPP VS. PROPOSED AI-OCPP FRAMEWORK.
The key novelties of this research, which distinguish it from prior studies, are summarized in Table 2. These highlight how the proposed AI-OCPP framework integrates federated learning, edge intelligence, and OCPP interoperability, while also extending evaluation to diverse scenarios, practical deployment feasibility, and future cybersecurity enhancements.

Table 2.
NOVELTY HIGHLIGHTS OF THE PROPOSED AI-OCPP FRAMEWORK.
The remainder of this paper is organized as follows: Section 2 presents the related literature; Section 3 outlines the methodology; Section 4 discusses the results; Section 5 provides a detailed discussion; and Section 6 concludes the study. This structure systematically demonstrates the practicality, efficiency, and robustness of the proposed AI-driven, OCPP-compliant smart EV charging framework.
2. Literature Review
The adoption of electric vehicles (EVs) has surged dramatically, demanding significant enhancements in charging infrastructure management. Recent studies have emphasized intelligent management using Internet of Things (IoT) and artificial intelligence (AI) to enhance reliability, optimize resource allocation, and ensure security []. IoT-based systems employing real-time data acquisition via sensors have enabled remote monitoring, fault detection, and predictive maintenance, substantially improving infrastructure reliability []. A comprehensive review on IoT and AI-integrated smart parking solutions highlights the advantages of deploying intelligent systems that optimize space and charger utilization, reduce vehicle wait times, and enhance user convenience [].
Table 3 summarizes various research approaches that contribute to the development of intelligent EV charging networks. Each entry highlights a specific method ranging from IoT sensors and camera vision to AI-based forecasting and anomaly detection, along with their respective contributions, such as safety enhancement, predictive maintenance, and load forecasting. The table also outlines key limitations, such as high implementation costs, privacy concerns, and data-intensive modeling, which justify the need for an integrated, scalable, and efficient AI-OCPP framework.

Table 3.
COMPARATIVE SUMMARY OF RECENT APPROACHES IN SMART EV CHARGING AND INFRASTRUCTURE MANAGEMENT.
In the realm of charging strategies, machine learning algorithms have been extensively employed to tackle various optimization and security challenges. AI-based predictive models significantly improve scheduling accuracy and dynamic load balancing [,]. For example, deep learning techniques have been applied for anomaly detection, enhancing cybersecurity against potential attacks such as unauthorized access and false commands []. Advanced scheduling algorithms leveraging stochastic optimization methods demonstrate effectiveness in managing uncertain EV arrivals and departures [].
Smart charging strategies integrating renewable energy sources such as solar photovoltaic (PV) systems have shown potential for sustainability and cost-effectiveness []. Studies indicate significant economic and environmental benefits when EV charging schedules align with renewable energy availability, reducing reliance on conventional power grids and promoting sustainable energy utilization [].
Integration with grid systems introduces complexities and opportunities. Vehicle-to-grid (V2G) technology allows bidirectional energy exchange between EVs and grids, supporting grid stability and renewable integration []. Flexibility modeling for collective EV charging stations has been proposed to quantify the controllability of EV loads, enhancing grid reliability and operational efficiency []. Researchers have also developed intelligent control frameworks incorporating IoT and AI to facilitate dynamic responses to real-time grid conditions, further improving energy management and grid stability.
Table 4 presents a comparative overview of key research contributions focused on smart EV charging strategies. It highlights various AI, IoT, and optimization-based methodologies adopted across recent studies. Each entry outlines the employed technique, its primary advantages such as improved grid stability, security, and operational efficiency, as well as the associated limitations like data intensity, computational complexity, or high implementation costs. This comparative analysis helps contextualize the proposed AI-OCPP framework within the broader landscape of intelligent EV charging solutions.

Table 4.
COMPARATIVE SUMMARY OF ADVANCED STRATEGIES FOR SMART EV CHARGING MANAGEMENT.
The placement and optimization of EV charging infrastructure have also received substantial attention. Machine learning techniques are employed for predictive analytics to inform optimal charging station placement and sizing, considering user demand, geographic factors, and grid capabilities []. Comprehensive reviews discuss planning strategies for integrating transportation and power networks, emphasizing intelligent siting and sizing to minimize impacts on existing electrical grid infrastructure.
While existing research provides a strong foundation through IoT and AI integration for EV charging management, there remains a notable gap: the lack of a unified, interoperable framework combining predictive AI-driven analytics and standardized protocols such as OCPP. Addressing this gap is crucial to realizing fully intelligent, scalable, and secure smart charging networks.
3. Method and Materials
This paper proposes a comprehensive framework for integrating artificial intelligence (AI)-driven systems with the Open Charge Point Protocol (OCPP) to establish intelligent, interoperable, and scalable electric vehicle (EV) charging networks.
Figure 2 illustrates the step-by-step process of the predictive scheduling algorithm used in smart EV charging systems. It begins with data collection from charging stations, followed by data preprocessing and load forecasting. The forecasted data is then used in module optimization, leading to the optimization of charging schedules. The final output is a dynamically generated charging schedule that improves efficiency, reduces peak demand, and ensures adaptive energy distribution across the network.

Figure 2.
Workflow of Predictive Scheduling Algorithm in Smart Charging.
Figure 3 illustrates the proposed AI-OCPP Integrated Smart EV Charging Framework, comprising four key layers: Electric Vehicles, Charging Stations, Edge Intelligence, and Federated Learning. Cloud Analytics and 5G Connectivity facilitate real-time data exchange, while OCPP ensures interoperability across all components. This architecture enables intelligent load forecasting, adaptive scheduling, and secure data-driven optimization in EV charging networks.

Figure 3.
Proposed AI-OCPP Integrated Smart Charging Framework.
The architecture consists of three primary layers:
Edge Intelligence Layer: At this layer, each charging station is equipped with edge computing capabilities, enabling localized decision-making. Stations run lightweight machine learning (ML) models for real-time load forecasting, anomaly detection, and predictive maintenance. Federated learning is utilized to train these local ML models:
where θt represents the model parameters at iteration t, updated through gradient descent with learning rate η, and L(θt; Di) is the local loss function using dataset Di. In our experiments, we set the learning rate to 0.01 and conducted 100 communication rounds, with each client training locally using a batch size of 32. The FedAvg aggregation strategy was applied at the central server to combine local model updates. Hyperparameters were validated using 5-fold cross-validation to ensure convergence stability and accuracy.
Table 5 summarizes the core parameters used in the federated learning setup within the proposed AI-OCPP framework. The model was trained with a learning rate of 0.01 over 100 communication rounds, where each client performed local updates using a batch size of 32. The FedAvg strategy was employed at the central server to aggregate local updates, and hyperparameter stability was verified through 5-fold cross-validation.
- A.
- Communication Layer:

Table 5.
CORE PARAMETERS OF THE FEDERATED LEARNING SETUP USED IN THE PROPOSED AI-OCPP FRAMEWORK.
The communication layer leverages OCPP 2.0.1 as a backbone, ensuring standardized and secure communication between edge devices and the central management system. Enhanced OCPP messages include AI-specific data such as predictive analytics results and model update parameters. Secure communication is established through Transport Layer Security (TLS), ensuring encrypted data transmission.
The total communication delay in the AI-enhanced OCPP framework can be expressed as the sum of message construction time, encryption overhead introduced by TLS, and transmission delay across the network. This formulation allows evaluation of latency impact in secure OCPP-based communication channels, particularly when AI-generated metadata (e.g., federated updates or anomaly scores) is integrated into the message payload.
- B.
- Central Intelligence Layer:
This layer encompasses cloud-based analytics, aggregating insights from edge stations. Centralized federated learning algorithms aggregate local model updates to create global predictive models. The global update at each iteration is computed as:
where is the updated global model and are local model parameters are from the station .
Load Forecasting: Equation (4) below represents a simplified predictive charging load forecasting model:
The charging demand at the next time step can be forecasted using a weighted model based on the current load , the aggregated power demands of all connected EVs , and an error term ϵ(t), as shown in Equation (1):
where:: Predicted charging load at time t + 1; α: Load inertia coefficient; : Actual load at time ; : Demand influence factor; : Power draw of the vehicle at time t; : Random prediction error (noise)
where denotes the actual load at the station , the forecasted load, and the total number of stations.
To evaluate the cybersecurity robustness of the proposed AI-OCPP framework, a qualitative threat modeling approach was employed. The analysis focused on three key vulnerabilities relevant to federated learning and OCPP communication: (i) data poisoning attacks in federated learning updates, (ii) eavesdropping and replay attacks on OCPP message exchanges, and (iii) model inversion attacks that may expose sensitive user data. Each threat was assessed based on its likelihood of occurrence and potential impact on system reliability. Likelihood was rated on a scale of Low, Medium, and High, while impact was categorized as Minor, Moderate, or Severe.
Each identified threat was evaluated using a semi-quantitative risk scoring model. Let denote the likelihood of a given threat and represent its potential impact on the system. Both likelihood and impact were assigned to integer values on a scale of 1 (low) to 3 (high). The overall risk score for a threat is calculated as:
Threats with higher values indicate greater priority for mitigation. This formulation allows for systematic comparison of risks across the AI-OCPP ecosystem.
The federated learning process followed:
where is the updated global model and are local model parameters and is the number of stations.
Table 6 outlines the multi-layered structure of the proposed AI-OCPP-integrated EV charging framework. The Edge Intelligence Layer performs local tasks such as load forecasting and anomaly detection using edge machine learning and federated learning. The Communication Layer ensures secure and efficient data exchange through technologies like OCPP 2.0.1, TLS encryption, and 5G []. At the top, the Central Intelligence Layer manages global model training, optimization, and analytics via cloud-based machine learning platforms, enabling a scalable and adaptive charging network.

Table 6.
FUNCTIONAL ARCHITECTURE OF THE PROPOSED AI-OCPP FRAMEWORK.
Table 7 presents a comparative analysis between the proposed AI-integrated OCPP framework and the traditional OCPP-based systems across critical performance metrics. The proposed framework significantly outperforms the conventional OCPP in areas such as real-time responsiveness, predictive capabilities (AUC > 0.90), cybersecurity, and scalability, while maintaining high interoperability, making it suitable for modern and adaptive EV charging infrastructure.

Table 7.
COMPARATIVE EVALUATION OF PROPOSED AI-OCPP FRAMEWORK VS. CONVENTIONAL OCPP.
This proposed framework not only addresses existing interoperability and scalability issues but also integrates predictive analytics and cybersecurity features crucial for the secure and efficient operation of future EV charging infrastructure. Further sections will detail the practical validation through case studies and performance evaluation.
To validate the proposed AI-OCPP integration framework, a prototype was developed and tested within a simulated smart EV charging network environment. The implementation demonstrates how federated AI models, predictive analytics, and OCPP-based communications can enhance system performance.
The simulation was based on a real-world dataset collected from Seringin Residences, Malaysia, comprising over 10,000 EV charging sessions recorded from residential charging facilities. Data preprocessing involved removing anomalous records, interpolating missing values, and normalizing energy consumption values to a per-unit (p.u.) scale to ensure consistency for model training.
Simulation Setup: Each charging station in the simulation was modeled as an AC Level 2 unit with 10 charging ports, each rated at 22 kW, yielding a maximum output of 220 kW per station. To incorporate renewable integration, each station was equipped with a 50 kWp rooftop photovoltaic (PV) system connected through a smart inverter with 95% efficiency. The PV system was assumed to generate variable output based on local solar irradiance data, reflecting realistic operating conditions. The simulation environment was implemented in Python 3.11 using TensorFlow, Keras, and PyTorch 2.1.0 for machine learning tasks, and the Flower framework for federated learning coordination. Experiments were executed on a workstation equipped with an Intel Core i7-12700H processor, 32 GB RAM, and an NVIDIA RTX 3060 GPU (6 GB) running Windows 11 Pro. This configuration provided sufficient computational capacity to emulate large-scale urban charging scenarios where distributed renewable energy supports EV demand.
Each station deployed two key AI models. A load forecasting model, based on Long Short-Term Memory (LSTM), was used for short-term prediction of charging demand []. In addition, an anomaly detection model, designed with an autoencoder architecture, was applied to identify potential faults from real-time sensor data.
4. Results and Performance Evaluation
To ensure robust validation, experiments were based on a real-world dataset of more than 10,000 charging sessions collected from Seringin Residences, Malaysia. The data were partitioned into training (70%), validation (15%), and testing (15%) sets. Model hyperparameters were tuned via 5-fold cross-validation. For benchmarking, results were compared against a rule-based baseline (FIFO scheduling), ensuring that performance improvements in peak reduction and solar utilization were not artifacts of simulation assumptions.
The section includes confusion matrices, ROC curves, and statistical tests (e.g., p-values < 0.05 for key comparisons). Additional visual elements, such as Figure 4 (load profile comparison between AI-coordinated and baseline scenarios), Figure 5 (ROC curve for anomaly detection), and Figure 6 (confusion matrix heatmap), have been embedded. The key quantitative findings of our proposed AI-OCPP framework are derived from comprehensive simulation studies conducted on a smart EV charging network.

Figure 4.
Load Profile Comparison between AI-Coordinated and Baseline Scenarios.

Figure 5.
ROC Curve for Anomaly Detection.

Figure 6.
Confusion Matrix Heatmap for Fault Classification.
Figure 4 highlights the effectiveness of the AI-coordinated strategy in flattening peak demand compared to the baseline case, demonstrating improved load balancing and reduced stress on the grid. Figure 5 presents the Receiver Operating Characteristic (ROC) curve for the anomaly detection module within the AI-OCPP integrated framework. The curve illustrates the trade-off between the True Positive Rate (TPR) and the False Positive Rate (FPR) across various classification thresholds. An Area Under the Curve (AUC) score exceeding 0.90 signifies high detection accuracy and effective model discrimination capability.
Figure 6 heatmap depicts the confusion matrix results of the federated learning-based fault classification model used in smart EV charging stations. It highlights the number of true positives, false positives, true negatives, and false negatives across different fault categories. High diagonal intensity confirms strong prediction accuracy, validating the reliability of the proposed model for real-time anomaly detection and classification.
- Peak Load Reduction: The framework achieved an 18% reduction in peak load demand compared to an unmanaged baseline scenario, effectively flattening the load curve and improving grid stability.
- Forecasting Accuracy: The federated learning-based load forecasting model demonstrated a Mean Absolute Percentage Error (MAPE) of 8.5%, representing a 29% improvement in predictive accuracy over isolated models.
- Wait Time Reduction: The intelligent scheduling system reduced average EV charging wait times by approximately 10% during peak periods.
- Solar Utilization: Optimized scheduling enabled a 12% increase in the contribution of on-site solar generation to EV charging demands.
Figure 4 illustrates the daily load profiles of electric vehicle charging under two conditions: an AI-coordinated scenario and a baseline unmanaged scenario. The AI-driven approach significantly flattens peak demand, reducing the maximum load by more than 40% compared to the baseline. This optimization supports improved grid stability, reduced operational stress on infrastructure, and enhanced energy efficiency throughout the day.
Table 8 summarizes the key performance metrics comparing the proposed AI-OCPP framework with a conventional baseline system. The AI-integrated model demonstrates notable improvements, including an 18% reduction in peak load, 12% gain in solar energy utilization, an 80% fault prediction rate, and improved forecasting accuracy with a lower MAPE of 8.5%, highlighting the efficiency and intelligence of the proposed framework.

Table 8.
COMPARATIVE EVALUATION OF AI-OCPP FRAMEWORK VS. BASELINE SYSTEM.
These results validate the feasibility and benefits of integrating AI-driven intelligence within OCPP-compliant EV charging networks.
Optimization and Scheduling: The optimization model operates as a central component of the AI-OCPP framework. Forecasted load values and anomaly detection outputs from the edge layer are first aggregated through the federated learning mechanism. These aggregated predictions are then provided as inputs to the optimization engine, which applies the quadratic objective to minimize deviations from the target load profile. The optimized charging schedules are subsequently communicated to the charging stations via OCPP 2.0.1 messages, ensuring compliance with interoperability standards. In this way, the optimization model is not an isolated element but an integrated stage that bridges forecasting, federated learning, and final OCPP-based control.
Figure 7 illustrates the sequential workflow of the proposed AI-OCPP framework. Data related to EV usage, photovoltaic generation, and grid signals are first collected and processed at the edge. Lightweight machine learning models perform load forecasting and anomaly detection at the charging station level, and their updates are aggregated through federated learning. The optimization model then applies the quadratic objective function to minimize deviations from the target load profile while balancing grid constraints. Based on the optimized outcomes, charging schedules are generated and communicated via standardized OCPP 2.0.1 messages. Finally, the schedules are executed at the station level, ensuring secure, efficient, and interoperable charging management within the smart city environment.

Figure 7.
Overall Workflow of the Proposed AI-OCPP Framework.
Table 9 presents a quantitative comparison of key performance indicators between the baseline EV charging system and the proposed AI-OCPP framework. The AI-enhanced system achieves an 18% reduction in peak load, improves forecasting accuracy by 29%, reduces average charging wait time by 10%, and enhances solar energy utilization by 12%. These improvements underscore the framework’s effectiveness in optimizing load management and promoting sustainable energy integration.

Table 9.
PERFORMANCE IMPROVEMENT OF AI-OCPP FRAMEWORK OVER BASELINE SYSTEM.
Scenario-Based Evaluation:
To evaluate robustness, we extended simulations across multiple scenarios: (i) weekday versus weekend demand patterns, (ii) clear-sky versus cloudy solar conditions using irradiance data from the National Renewable Energy Laboratory (NREL), and (iii) high-density versus low-density urban deployments by varying the ratio of stations to EVs. Scenario calibration followed empirical distributions from the Seringin Residences dataset and publicly available weather and urban mobility data.
To assess the robustness of the proposed AI-OCPP framework, we conducted simulations under multiple operating scenarios reflecting temporal, environmental, and spatial variations. Table 10 summarizes the results across weekday and weekend demand patterns, clear-sky and cloudy solar conditions, and high-versus low-density charging station deployments. The results show that the framework consistently achieves notable improvements in peak load reduction, prediction accuracy, solar utilization, and waiting time reduction across all conditions. In particular, performance remained stable even under adverse conditions such as cloudy weather and high-density urban deployments, demonstrating the adaptability and resilience of the proposed approach in real-world smart city contexts.

Table 10.
PERFORMANCE OF AI-OCPP FRAMEWORK UNDER DIVERSE SCENARIOS.
Table 11 presents a qualitative cybersecurity risk analysis of the proposed AI-OCPP framework. Among the identified threats, data poisoning in federated learning updates scored the highest risk (R = 9), highlighting it as the most critical vulnerability. Replay and eavesdropping attacks on OCPP communications were assessed as medium risk (R = 4–6) due to existing TLS encryption, while model inversion attacks received a lower score (R = 3) but remain severe in terms of potential privacy leakage. These results emphasize the importance of advanced countermeasures such as secure aggregation, differential privacy, and intrusion detection in future implementations.

Table 11.
CYBERSECURITY RISK ANALYSIS FOR AI-OCPP FRAMEWORK.
Table 12 benchmarks the proposed AI-OCPP framework against two contemporary approaches, IoT-Sensor Framework and Deep Learning Security, based on key performance metrics. The results highlight superior outcomes in peak load reduction, forecasting accuracy (MAPE of 8.5%), and solar energy utilization. Additionally, the proposed system offers enhanced cybersecurity robustness and reduced charging wait times, underscoring its comprehensive advantages for next-generation EV charging networks, as supported by references.

Table 12.
PERFORMANCE COMPARISON OF PROPOSED AI-OCPP FRAMEWORK WITH EXISTING IOT AND DEEP LEARNING-BASED APPROACHES.
5. Discussion
This section offers a deeper critical analysis of the results in the context of existing literature, highlights limitations, and provides a detailed comparison with prior work. The analysis references studies such as [,,,,,,,] to contextualize our improvements. It also discusses potential biases, dataset limitations, and external validity of the simulation. Furthermore, we contrast our 18% peak load reduction and 29% forecasting accuracy improvement with the superior performance of our proposed framework.
The positive outcomes of our implementation highlight several crucial insights and implications for future smart EV charging networks.
- Infrastructure Efficiency: The intelligent control system enhances charger utilization and delays the need for infrastructure expansion.
- Standards Compliance: The framework remains compatible with OCPP, IEC 61851, ISO 15118, and IEC 62196, ensuring interoperability [].
- Data and Sensor Quality: The inclusion of advanced sensors can further enhance model accuracy and system responsiveness.
- Communication Networks: Designed to operate effectively over current 4G/LTE networks while being future-proof for 5G deployments.
- Scalability and Security: The centralized AI model demonstrates effectiveness, but future work could explore decentralized architectures for larger-scale networks, alongside enhanced cybersecurity measures.
- Environmental Contribution: The system promotes renewable energy integration and reduces reliance on peak power generation, supporting sustainability goals.
These findings position the proposed framework as a scalable, intelligent solution for next-generation EV charging infrastructure.
The cybersecurity threat analysis demonstrates that federated learning introduces new attack surfaces, particularly the risk of data poisoning, which can significantly bias the global model. While existing safeguards such as client authentication and anomaly detection provide partial protection, stronger mechanisms including secure aggregation and differential privacy are required to ensure robustness. OCPP message exchanges, although encrypted via TLS, remain susceptible to replay and eavesdropping attacks, suggesting the potential benefits of blockchain-based logging and intrusion detection systems. Model inversion attacks were assessed as less likely but severe in consequence, reinforcing the importance of privacy-preserving machine learning approaches such as homomorphic encryption. Collectively, these findings not only identify the most critical vulnerabilities but also provide a roadmap for enhancing the cybersecurity posture of AI-driven EV charging networks.
From a practical perspective, edge intelligence can be deployed on cost-effective hardware such as the Raspberry Pi 4 (approx. USD 80 per unit) for lightweight computation or more powerful devices such as the NVIDIA Jetson Nano and industrial-grade gateways like the Siemens SIMATIC IoT2040 (USD 500–1000) when advanced AI workloads are required. Considering hardware, installation, and integration, the estimated retrofit cost per charging station ranges between USD 300–1500. Based on the achieved performance improvements (18% peak load reduction, 12% increase in solar utilization), the projected payback period is approximately 3–4 years, primarily through reduced demand charges and improved station utilization. While this study does not yet include a live pilot deployment, preliminary discussions with local charging operators and power utilities are considered a critical next step to validate the framework’s feasibility in urban networks.
Deploying the proposed AI-OCPP framework in real urban environments would involve navigating several practical challenges, including the upfront costs associated with integrating edge computing hardware, retrofitting existing chargers, and ensuring reliable network communications. Compatibility with legacy systems and adherence to regulatory standards further complicate deployment. To overcome these challenges, incremental implementation strategies, stakeholder engagement with utility providers and municipalities, and phased pilots can be employed. Future pilots in densely populated urban areas could validate real-world performance, scalability, and economic feasibility, paving the way for broader adoption.
Limitations: Despite its contributions, this study has several limitations. First, the evaluation was conducted on a single dataset (Seringin Residences, Malaysia), which may not capture broader variations across regions or charging infrastructures. Second, the results are based on large-scale simulations rather than pilot deployments, limiting immediate real-world validation. Third, cybersecurity considerations were restricted to transport-layer security, while advanced mechanisms such as secure aggregation and differential privacy remain future work. Finally, the framework’s performance on resource-constrained hardware has not yet been fully profiled, which will be essential for cost-sensitive deployments.
6. Conclusions
In this study, we developed and validated a comprehensive framework integrating AI-driven systems with the Open Charge Point Protocol (OCPP) to advance smart electric vehicle (EV) charging networks. The unique contribution of this research lies in effectively combining federated learning and edge AI within an OCPP-compliant architecture, an approach previously underexplored in existing literature. Our proposed framework achieves privacy-preserving data analytics, accurate predictive load management, and adaptive control without necessitating hardware modifications, thereby aligning seamlessly with international standards such as IEC 61851 and ISO 15118. Simulation studies demonstrated significant enhancements in performance, including an 18% reduction in peak load demand, a 29% improvement in forecasting accuracy (achieving a MAPE of 8.5%), a 10% reduction in average EV charging wait times, and a 12% increase in the effective utilization of on-site solar energy. These results were rigorously validated through quantitative methods, including statistical significance testing (p < 0.05), ROC analyses demonstrating AUC values greater than 0.90, and confusion matrices confirming high true-positive rates in anomaly detection.
Moreover, comparative analysis highlighted the proposed framework’s superior scalability, robustness in privacy preservation, and improved grid integration relative to existing methodologies. Future research directions will emphasize deploying and validating the framework in real-world urban pilot projects, incorporating market-based demand response mechanisms, and enhancing cybersecurity measures. We anticipate that this integrative AI-OCPP approach will serve as a robust foundation for the development of intelligent, interoperable, and sustainable EV charging infrastructures, suitable for deployment in modern smart cities.
Author Contributions
Conceptualization, M.S.H. and G.R.; methodology, M.S.H.; software, M.S.H.; validation, M.S.H., M.T.S. and M.S.N.; formal analysis, M.S.H.; investigation, M.S.H. and G.R.; resources, G.R. and N.E.E.; data curation, M.S.H.; writing original draft preparation, M.S.H.; writing review and editing, M.S.H., M.T.S., H.B. and G.R.; visualization, M.S.H.; supervision, G.R. and N.E.E.; project administration, G.R.; funding acquisition, G.R. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
The original contributions presented in the study are included in the article, further inquiries can be directed to Md Sabbir Hossen and Gobbi Ramasamy.
Acknowledgments
The author(s) would like to express sincere gratitude to the academic mentors, colleagues, and peers whose constructive feedback and encouragement significantly contributed to the development of this research. Appreciation is also extended to the institutions and communities that provided valuable resources and support throughout the study. The authors declare that this research received no specific grant from any funding agency in the public, commercial, or not-for-profit sectors.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Mohammed, A.; Saif, O.; Abo-Adma, M.; Fahmy, A.; Elazab, R. Strategies and sustainability in fast charging station deployment for electric vehicles. Sci. Rep. 2024, 14, 283. [Google Scholar] [CrossRef] [PubMed]
- Benfarhat, I.; Goh, V.T.; Siow, C.L.; Sheraz, M.; Chuah, T.C. Temporal convolutional network approach to secure open charge point protocol (OCPP) in electric vehicle charging. IEEE Access 2025, 13, 15272–15289. [Google Scholar] [CrossRef]
- Arévalo, P.; Ochoa-Correa, D.; Villa-Ávila, E. A Systematic Review on the Integration of Artificial Intelligence into Energy Management Systems for Electric Vehicles: Recent Advances and Future Perspectives. World Electr. Veh. J. 2024, 15, 364. [Google Scholar] [CrossRef]
- Alhazmi, M.; Zhao, A.P.; Li, W.; Yang, C. Federated learning for real-time demand response by data centers toward energy efficiency and privacy preservation. IEEE Access 2025, 13, 112324–112339. [Google Scholar] [CrossRef]
- Menon, V.; Kumaravelu, V.B.; Kumar, C.V.; Rammohan, A.; Chinnadurai, S.; Venkatesan, R. AI-powered IoT: A survey on integrating artificial intelligence with IoT for enhanced security, efficiency, and smart applications. IEEE Access 2025, 13, 50296–50339. [Google Scholar]
- Mourtzis, D.; Angelopoulos, J.; Panopoulos, N. Design and development of an IoT enabled platform for remote monitoring and predictive maintenance of industrial equipment. Procedia Manuf. 2021, 54, 166–171. [Google Scholar] [CrossRef]
- Stecuła, K.; Wolniak, R.; Grebski, W.W. AI-Driven Urban Energy Solutions—From Individuals to Society: A Review. Energies 2023, 16, 7988. [Google Scholar] [CrossRef]
- Nathan, S.; Rakesh, C. IoT based EV multiple fault detection and battery management. In Proceedings of the 2025 International Conference on Visual Analytics and Data Visualization (ICVADV), Tirunelveli, India, 4–6 March 2025; pp. 452–455. [Google Scholar]
- Leone, A.; Caroppo, A.; Manni, A.; Siciliano, P. Vision-Based Road Rage Detection Framework in Automotive Safety Applications. Sensors 2021, 21, 2942. [Google Scholar] [CrossRef]
- Sikdar, S.; Damle, M. IoT solutions for electric vehicles (EV) charging stations: A driving force towards EV mass adoption. In Proceedings of the 2022 International Interdisciplinary Humanitarian Conference for Sustainability (IIHC), Bengaluru, India, 18–19 November 2022; pp. 114–120. [Google Scholar]
- Tang, X.; Chen, J.; Yang, K.; Toyoda, M.; Liu, T.; Hu, X. Visual detection and deep reinforcement learning-based car following and energy management for hybrid electric vehicles. IEEE Trans. Transp. Electrif. 2022, 8, 2501–2515. [Google Scholar] [CrossRef]
- Cavus, M.; Dissanayake, D.; Bell, M. Next Generation of Electric Vehicles: AI-Driven Approaches for Predictive Maintenance and Battery Management. Energies 2025, 18, 1041. [Google Scholar] [CrossRef]
- Hassebo, A.; Tealab, M. Global Models of Smart Cities and Potential IoT Applications: A Review. IoT 2023, 4, 366–411. [Google Scholar] [CrossRef]
- Ramoliya, F.; Trivedi, C.; Darji, K.; Kakkar, R.; Gupta, R.; Tanwar, S.; Polkowski, Z.; Alqahtani, F.; Tolba, A. ML-based energy consumption and distribution framework analysis for EVs and charging stations in smart grid environment. IEEE Access 2024, 12, 23319–23337. [Google Scholar] [CrossRef]
- Trivedi, M.; Kakkar, R.; Gupta, R.; Agrawal, S.; Tanwar, S.; Niculescu, V.-C.; Raboaca, M.S.; Alqahtani, F.; Saad, A.; Tolba, A. Blockchain and Deep Learning-Based Fault Detection Framework for Electric Vehicles. Mathematics 2022, 10, 3626. [Google Scholar] [CrossRef]
- Shern, S.J.; Sarker, M.T.; Haram, M.H.S.M.; Ramasamy, G.; Thiagarajah, S.P.; Al Farid, F. Artificial Intelligence Optimization for User Prediction and Efficient Energy Distribution in Electric Vehicle Smart Charging Systems. Energies 2024, 17, 5772. [Google Scholar] [CrossRef]
- Singh, A.R.; Kumar, R.S.; Madhavi, K.R.; Alsaif, F.; Bajaj, M.; Zaitsev, I. Optimizing demand response and load balancing in smart EV charging networks using AI integrated blockchain framework. Sci. Rep. 2024, 14, 31768. [Google Scholar] [CrossRef]
- Hussain, A.; Yadav, A.; Ravikumar, G. Anomaly detection using bi-directional long short-term memory networks for cyber-physical electric vehicle charging stations. Trans. Ind. Cyb-Phy. Syst. 2024, 2, 508–518. [Google Scholar] [CrossRef]
- Salam, S.S.A.; Raj, V.; Petra, M.I.; Azad, A.K.; Mathew, S.; Sulthan, S.M. Charge scheduling optimization of electric vehicles: A comprehensive review of essentiality, perspectives, techniques, and security. IEEE Access 2024, 12, 121010–121034. [Google Scholar] [CrossRef]
- Iqbal, S.; Alshammari, N.F.; Shouran, M.; Massoud, J. Smart and Sustainable Wireless Electric Vehicle Charging Strategy with Renewable Energy and Internet of Things Integration. Sustainability 2024, 16, 2487. [Google Scholar] [CrossRef]
- Aljohani, T.; Almutairi, A. A comprehensive survey of cyberattacks on EVs: Research domains, attacks, defensive mechanisms, and verification methods. Def. Technol. 2024, 42, 31–58. [Google Scholar] [CrossRef]
- Fresia, M.; Robbiano, T.; Caliano, M.; Delfino, F.; Bracco, S. Optimal Operation of an Industrial Microgrid within a Renewable Energy Community: A Case Study of a Greentech Company. Energies 2024, 17, 3567. [Google Scholar] [CrossRef]
- Islam, M.M.; Yu, T.; Giannoccaro, G.; Mi, Y.; la Scala, M.; Nasab, M.R.; Wang, J. Improving reliability and stability of the power systems: A comprehensive review on the role of energy storage systems to enhance flexibility. IEEE Access 2024, 12, 152738–152765. [Google Scholar] [CrossRef]
- Aduama, P.; Zhang, Z.; Al-Sumaiti, A.S. Multi-Feature Data Fusion-Based Load Forecasting of Electric Vehicle Charging Stations Using a Deep Learning Model. Energies 2023, 16, 1309. [Google Scholar] [CrossRef]
- Hossen, M.S.; Sarker, M.T.; Al Qwaid, M.; Ramasamy, G.; Eng Eng, N. AI-Driven Framework for Secure and Efficient Load Management in Multi-Station EV Charging Networks. World Electr. Veh. J. 2025, 16, 370. [Google Scholar] [CrossRef]
- Manousakis, N.M.; Karagiannopoulos, P.S.; Tsekouras, G.J.; Kanellos, F.D. Integration of Renewable Energy and Electric Vehicles in Power Systems: A Review. Processes 2023, 11, 1544. [Google Scholar] [CrossRef]
- Yin, B.; Liao, X.; Qian, B.; Ma, J.; Lei, R. Optimal scheduling of electric vehicle integrated energy station using a novel many-objective stochastic competitive optimization algorithm. IEEE Access 2023, 11, 129043–129059. [Google Scholar] [CrossRef]
- Alyami, S.; Almutairi, A.; Alrumayh, O. Novel flexibility indices of controllable loads in relation to EV and rooftop PV. IEEE Trans. Intell. Transp. Syst. 2023, 24, 923–931. [Google Scholar] [CrossRef]
- Mehraban, A.; Ghanbari, T.; Farjah, E. AI-based control of storage capacity in high-power-density energy storage systems, used in electric vehicles. IEEE Trans. Transp. Electrif. 2024, 10, 2293–2301. [Google Scholar] [CrossRef]
- Alanazi, F.; Alshammari, T.O.; Azam, A. Optimal Charging Station Placement and Scheduling for Electric Vehicles in Smart Cities. Sustainability 2023, 15, 16030. [Google Scholar] [CrossRef]
- Shanmuganathan, J.; Victoire, A.A.; Balraj, G.; Victoire, A. Deep Learning LSTM Recurrent Neural Network Model for Prediction of Electric Vehicle Charging Demand. Sustainability 2022, 14, 10207. [Google Scholar] [CrossRef]
- Kamana-Williams, B.; Bishop, D.; Hooper, G.; Chase, J.G. Driving change: Electric vehicle charging behavior and peak loading. Renew. Sustain. Energy Rev. 2024, 189, 113953. [Google Scholar] [CrossRef]
- Kim, Y.; Kim, S. Forecasting Charging Demand of Electric Vehicles Using Time-Series Models. Energies 2021, 14, 1487. [Google Scholar] [CrossRef]
- Cieslik, W.; Szwajca, F.; Golimowski, W.; Berger, A. Experimental Analysis of Residential Photovoltaic (PV) and Electric Vehicle (EV) Systems in Terms of Annual Energy Utilization. Energies 2021, 14, 1085. [Google Scholar] [CrossRef]
- Chandwani, A.; Dey, S.; Mallik, A. Cybersecurity of onboard charging systems for electric vehicles—Review, challenges and countermeasures. IEEE Access 2020, 8, 226982–226998. [Google Scholar] [CrossRef]
- Uribe-Pérez, N.; Gonzalez-Garrido, A.; Gallarreta, A.; Justel, D.; González-Pérez, M.; González-Ramos, J.; Arrizabalaga, A.; Asensio, F.J.; Bidaguren, P. Communications and Data Science for the Success of Vehicle-to-Grid Technologies: Current State and Future Trends. Electronics 2024, 13, 1940. [Google Scholar] [CrossRef]
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. |
© 2025 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 (https://creativecommons.org/licenses/by/4.0/).