Optimising Embedded Neural Network Inference in Smart Traps for Fruit Pest Detection via Quantization-Aware Training and FPGA Acceleration
Resumo
Deploying deep learning models in embedded agricultural systems requires balancing predictive performance with strict hardware constraints such as memory, power, and latency. This work uses quantization techniques, specifically post-training quantization (PTQ) and quantization-aware training (QAT), to optimize convolutional neural networks for real-time pest detection in smart traps. Using the Brevitas framework for quantization and FINN for hardware generation targeting FPGAs, we evaluate a range of weight and activation bit-width configurations. Our results show that QAT significantly outperforms PTQ, particularly in aggressive low-bit scenarios, achieving high accuracy while drastically reducing hardware resource utilization. Among the proposed solutions, one achieves 87.47% accuracy while using less than 10% of the LUTs required by its full-precision counterpart. Comparative analysis with standard models such as ResNet18 and MobileNet further validates the effectiveness of our approach. This study highlights the practicality of QAT-driven quantization for edge Artificial Intelligence applications in agriculture. It paves the way for future work, including power, latency, and throughput profiling, to support large-scale deployment.
Palavras-chave:
Training, Deep learning, Analytical models, Quantization (signal), Accuracy, Throughput, Real-time systems, Table lookup, Field programmable gate arrays, Standards, image processing, deep learning, quantization, design space exploration, hardware accelerators
Publicado
24/11/2025
Como Citar
FREITAS, Lucas C.; DIAS, Isadora V.; SANTOS, Victor R. S.; FERREIRA, Paulo R.; MATTOS, Julio C. B. De; BRISOLARA, Lisane B. De.
Optimising Embedded Neural Network Inference in Smart Traps for Fruit Pest Detection via Quantization-Aware Training and FPGA Acceleration. In: SIMPÓSIO BRASILEIRO DE ENGENHARIA DE SISTEMAS COMPUTACIONAIS (SBESC), 15. , 2025, Campinas/SP.
Anais [...].
Porto Alegre: Sociedade Brasileira de Computação,
2025
.
p. 49-54.
ISSN 2237-5430.
