A Quantized CNN for Traffic Sign Recognition Deployed on FPGA
DOI:
https://doi.org/10.54097/eadd3g08Keywords:
Convolutional neural networks (CNNs), traffic sign recognition, quantization-aware training (QAT), quantized model, FPGA deployment.Abstract
With the development of intelligent transportation systems, traffic sign recognition plays a key role in autonomous driving and driver assistance systems. The performance of traffic sign recognition algorithms directly impacts the safety of vehicles during operation. Although traditional 32-bit floating-point convolutional neural networks (CNNs) offer the advantage of high recognition accuracy, their substantial number of parameters and computational intensity make them difficult to deploy directly on resource-constrained devices like in-vehicle FPGAs. Based on this, this paper proposes a lightweight CNN model for edge computing. At the algorithmic level, a VGG-like straight-line network structure with 5 convolutional and 4 pooling layers is designed. Employing 4-bit quantization-aware training (QAT), pseudo-quantization nodes are embedded into the forward training process, enabling the network to maintain discriminative capability within the 4-bit discrete space. At the toolchain level, an end-to-end pipeline from PyTorch → QAT → HLS → bitstream is constructed. It supports one-click weight/activation bit-width pruning and RTL generation. The final generated bitstream file can be directly applied in FPGA deployment. Experiments were conducted on the GTSRB dataset. The final quantized model achieved a test accuracy of 87%, with a model size of only 0.15 MB. The hardware was deployed on a Xilinx Zynq-7020 SoC, with resource utilization falling within an acceptable range for the chip. The results indicate that the proposed method achieves an excellent balance among accuracy, resource consumption, and power usage, offering an efficient, automated, and easily deployable hardware-friendly solution for traffic sign recognition at the edge.
References
[1] Kim J, Kang J-K, Kim Y. A low-cost fully integer-based CNN accelerator on FPGA for real-time traffic sign recognition. IEEE Access, 2022, 10: 84626 - 84634.
[2] Capotondi A, Rusci M, Fariselli M, Benini L. CMix-NN: mixed low-precision CNN library for memory-constrained edge devices. IEEE Transactions on Circuits and Systems II: Express Briefs, 2020, 67 (5): 871 - 875.
[3] Yang Yongjie, Zheng Juntai, Ma Li, Yang Hao. Implementation of an Improved LeNet Traffic Sign Multi-Classification Heterogeneous Accelerator. Acta Scientia rum Naturalium Universitatis Pekinensis, 2024, 60 (6): 1001 - 1008.
[4] Zhao Bingrui,Wang Yaonan, Zhang Hui, Zhang Jinzhou ,Chen Yurong, Yang Yimin.4-bit CNN Quantization Method With Compact LUT-Based Multiplier Implementation on FPGA. IEEE Transactions on Instrumentation and Measurement, 2023, 72: 2008110.
[5] Khalifa A, Alayed W M, Elbadawy H M, Sadek R A. Real-Time Navigation Roads: Lightweight and Efficient Convolutional Neural Network (LE-CNN) for Arabic Traffic Sign Recognition in Intelligent Transportation Systems (ITS). Applied Sciences-Basel, 2024, 14 (9): 3903.
[6] An S, Shin J, Kim J H. Quantization-Aware Training with Dynamic and Static Pruning. IEEE Access, 2025, 13: 57476 - 57484.
[7] Hubara I, Courbariaux M, Soudry D, El-Yaniv R, Bengio Y. Quantized neural networks: training neural networks with low precision weights and activations. Journal of Machine Learning Research, 2018, 18: 1 - 30.
[8] Biswal M R, Delwar T S, Siddique A, Behera P, Choi Y, Ryu J-Y. Pattern classification using quantized neural networks for FPGA-based low-power IoT devices. Sensors, 2022, 22 (22): 8694.
[9] Kim J, Kang J-K, Kim Y. A resource efficient integer-arithmetic-only FPGA-based CNN accelerator for real-time facial emotion recognition. IEEE Access, 2021, 9: 104367 - 104381.
[10] Okubo I, Sugiura K, Matsutani H. A costefficient FPGA-based CNN-Transformer using neural ODE. IEEE Access, 2024, 12: 155773 - 155788.
[11] Kumar S, Mahapatra R, Singh A. Automatic modulation recognition: an FPGA implementation. IEEE Communications Letters, 2022, 26 (9): 2062 - 2066.
[12] Liu Z, Liu Q, Yan S, Cheung R C. An efficient FPGA-based depth wise separable convolutional neural network accelerator with hardware pruning. ACM Transactions on Reconfigurable Technology and Systems, 2024, 17 (1): 1 - 20.
[13] Lei Xiaokang, Yin Zhigan, Zhao Ruilian. FPGA-based convolutional neural network fixed-point acceleration. Journal of Computer Applications. 2020, 40 (10): 2811 - 2816.
Downloads
Published
Issue
Section
License

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.







