Abstract
Agricultural data analysis increasingly involves heterogeneous agronomic and environmental measurements whose relevance may vary across crop developmental stages. Conventional machine learning approaches commonly learn a global representation of such variables without explicitly accounting for phenological context, which may limit stage-wise predictive consistency. StageNet-SF, a stage-aware soft-routing attention framework, is proposed for structured agronomic data analysis across crop developmental stages. The framework integrates a Crop-Stage Soft Router (CSSR) for probabilistic stage-conditioned representation learning, a Stage-Conditioned Feature Recalibration Unit (SCFRU) for adaptive feature weighting, a Phenology-Aware Stress Index (PASI), an internally derived environmental stress proxy, and a Multi-Granularity Ensemble Decoder (MGED) for joint crop-type classification and auxiliary PASI-proxy learning. Experiments using the Smart Farming 2024 (SF24) dataset, comprising 4800 observations, 35 crop types, and 28 agronomic and environmental attributes, achieved 99.1% accuracy, 99.1% F1-score, 0.999 AUC, and 0.990 MCC. Stage-wise predictive consistency improved, with the Phenological Sensitivity Index (PhSI) decreasing from 0.071 to 0.012 and the decreasing from 0.891 to 0.987. The PASI-derived environmental stress proxy achieved an MAE of 0.020 and of 0.960. The results demonstrate the potential of phenological conditioning and adaptive feature learning for structured agricultural data analysis.