Research Article

Detection of New Energy Electric Vehicle Charging Ports Based on Image Recognition

Chengyun Li*
Jiangsu Tianyi High School

* Corresponding author: [email protected]

Abstract

Charging port recognition and pose estimation are key issues in enabling automatic charging of new energy electric vehicles. Complex lighting, significant vehicle model variations, and varying charging port locations in real-world environments pose challenges to detection. This paper first constructed a charging port dataset encompassing vehicles of varying vehicle models, angles, lighting, and occlusion conditions. Rotation, scaling, brightness adjustment, and local occlusion enhancement are then performed to improve the model's adaptability in complex environments. Secondly, an improved object detection network is designed: a lightweight attention module is introduced in the feature extraction layer, combined with multi-scale feature fusion to enhance the detection of small and occluded targets. Adaptive anchor boxes and an improved loss function are employed in the detection head to improve localization accuracy. Experimental results demonstrated that this method significantly outperforms baseline models in both mAP and recall. The proposed charging port detection scheme based on image recognition has high engineering application value.

Keywords: New Energy; Image Recognition; Electric Vehicle; Charging Port
Published: December 3, 2025
DOI: 10.54254/2755-2721/2026.KA30173
Volume: ACE Vol.209
pp. 196-201
Download PDF

References

  1. Redmon, J., Divvala, S., Girshick, R. and Farhadi, A. (2016) You Only Look Once: Unified, Real-Time Object Detection. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 17, 779-788.
  2. Tadic, V., Odry, A., Vizvari, Z., Kiraly, Z., Felde, I. and Odry, P. (2024) Electric Vehicle Charging Socket Detection Using YOLOv8s Model. Acta Polytechnica Hungarica, 21, 150-165.
  3. Wang, C.Y., Bochkovskiy, A. and Liao, H.Y.M. (2023) YOLOv7: Trainable Bag-of-Freebies Sets New State-of-the-Art for Real-Time Object Detection. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 23, 7464-7475.
  4. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, Ł. and Polosukhin, I. (2017) Attention Is All You Need. Advances in Neural Information Processing Systems, 30, 61-73.
  5. Lin, T.Y., Dollár, P., Girshick, R., He, K., Hariharan, B. and Belongie, S. (2017) Feature Pyramid Networks for Object Detection. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 10, 2117-2126.
  6. Hu, J., Shen, L. and Sun, G. (2018) Squeeze-and-Excitation Networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 13, 7132-7141.
  7. Sun, S., Mo, B., Xu, J., Li, D., Zhao, J. and Han, S. (2024) Multi-YOLOv8: An Infrared Moving Small Object Detection Model Based on YOLOv8 for Air Vehicle. Neurocomputing, 588, 127685.
  8. He, K., Zhang, X., Ren, S. and Sun, J. (2016) Deep Residual Learning for Image Recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 18, 770-778.
  9. Eigen, D., Puhrsch, C. and Fergus, R. (2014) Depth Map Prediction from a Single Image Using a Multi-Scale Deep Network. Advances in Neural Information Processing Systems, 27, 170-179.
  10. Godard, C., Mac Aodha, O. and Brostow, G.J. (2017) Unsupervised Monocular Depth Estimation with Left-Right Consistency. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 17, 270-279.
  11. Kershenbaum, A., Akçay, Ç., Babu-Saheer, L., Barnhill, A., Best, P., Cauzinille, J. and Dunn, J.C. (2025) Automatic Detection for Bioacoustic Research: A Practical Guide from and for Biologists and Computer Scientists. Biological Reviews, 100, 620-646.
  12. Scharstein, D. and Szeliski, R. (2002) A Taxonomy and Evaluation of Dense Two-Frame Stereo Correspondence Algorithms. International Journal of Computer Vision, 47, 7-42.
  13. Li, X., Wang, W., Wu, L., Chen, S., Hu, X., Li, J., Tang, J. and Yang, J. (2020) Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense Object Detection. Advances in Neural Information Processing Systems, 33, 21002-21012.
  14. Zheng, Z., Wang, P., Liu, W., Li, J., Ye, R. and Ren, D. (2020) Distance-IoU Loss: Faster and Better Learning for Bounding Box Regression. Proceedings of the AAAI Conference on Artificial Intelligence, 34, 12993-13000.
  15. Chen, L., Zhang, H., Xiao, J., Nie, L., Shao, J., Liu, W. and Chua, T.S. (2017) SCA-CNN: Spatial and Channel-Wise Attention in Convolutional Networks for Image Captioning. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 13, 5659-5667.