Electric vehicle charging infrastructure (EVCI) has become essential. However, these infrastructures are increasingly vulnerable to cyber threats, particularly through spoofing and adversarial attacks on charging ports. This paper introduces a robust anomaly detection framework leveraging long short-term memory (LSTM) based autoencoders to identify anomalies in electric vehicle (EV) charging port current magnitudes. A simulated EVCI setup is developed in MATLAB/Simulink to capture charging behaviors under normal and adversarial scenarios. To generate adversarial data, the fast gradient sign method (FGSM) is employed. The reconstructed outputs from the LSTM-autoencoder (LSTM-AE) are statistically compared to real-time observations using the Kolmogorov–Smirnov (KS) test to detect anomalies. The framework achieves a high detection accuracy of 98.5%, demonstrating strong resilience against cyber-injected data anomalies and setting a foundation for enhanced EVCI cybersecurity.
Copyrights © 2026