Raspberry Pi Lightweight Deep Learning Models Deployed for Corn Growth Stage Classification Using PhenoCam Images
Astina Joice, Humeera Tazeen, Talha Tufaique, Mathala Juliet Gupta, C. Igathinathane, Nitin Rai, Craig W. Whippo, David W. ArcherIdentifying crop growth stages is essential for comprehensive assessment that facilitates timely and precise agronomic management. However, conventional field-based manual scouting is labor-intensive, time-consuming, and lacks scalability. Digital field images with advanced models deployed on portable edge-computing devices offer an alternative solution for real-time crop monitoring and decision support. Therefore, in this study, the standard 8 corn growth stages were defined as 8 classes based on distinct visual canopy appearance patterns observed in PhenoCam (near-surface [proximal] remote sensing network camera) imagery collected from 10 PhenoCam sites. These classes do not correspond directly to standard agronomic vegetation and reproductive growth stages. For modeling, four lightweight deep learning (DL) models, ELiteCrop0, ELiteCrop1, ELiteCrop4, and MobNetCropV2, were developed and evaluated across five image vertical clipping levels (0–40%) using a supercomputer (NDSU CCAST). The optimized model was subsequently deployed on a single-board Raspberry Pi 5 computer for edge inference. Model training accounted for the majority of the total CPU time, exceeding 97%, while the testing times ranged from 0.01–0.12 min, enabling real-time applications. Among the models, ELiteCrop0 achieved the most balanced performance with a confusion-matrix diagonal ratio (CMDR) of 0.93, followed by ELiteCrop1 (CMDR = 0.92). Overall, model performance decreased with increasing vertical clipping; therefore, a moderate image clipping (0–10%) was recommended for improved computational efficiency. Analysis with a supercomputer produced an intrasite (same training sites) accuracy of 0.90–0.93 (Raspberry Pi: 0.78–0.81) and an intersite (unseen test sites) accuracy of 0.48–0.50 (Raspberry Pi: 0.41–0.43), indicating challenges with model generalization. Raspberry Pi processed ≈ 1000 images/min at 68 °C, with a PhenoCam:Raspberry Pi processing ratio of 1:2500 at 50% capacity over an 8 h day. Overall, this study presents a scalable and cost-effective solution for real-time corn growth stage monitoring in precision agriculture, which could be extended to other crops.