Abstract:Aiming to address the issue that current grain storage condensation risk prediction mainly relies on simple grain temperature monitoring and empirical judgment, lacking accurate predictive tools, a grain storage condensation risk prediction method was proposed combining a three-dimensional convolutional neural network (3DCNN) and a temporal fusion transformer (TFT). The method utilized 3DCNN to extract spatial features of the internal temperature field of the grain heap and employed TFT to handle time series data. Based on historical meteorological data and future weather forecast data, it achieved high-precision prediction of the grain heap temperature field and used the prediction results along with the weather forecast data for the next seven days to assess condensation risk. The measured data from eight granaries in the Tacheng area of Xinjiang was used for model training and validation, achieving an accurate grain temperature prediction model. The comparative experiment on the test set showed that the 3DCNN-TFT model had a mean absolute error (MAE) of 0.16℃ and a root mean square error (RMSE) of 0.18℃ in grain temperature field prediction, significantly outperforming other predictive models. Finally, the real granary experiment validated the model’s generalization ability, with results showing that the 3DCNN-TFT model had high predictive accuracy, with an average MAE of 0.16℃ and average RMSE of 0.19℃. The model also successfully predicted condensation risk and issued early warnings. The results indicated that the proposed method significantly improved the prediction accuracy of the grain heap temperature field, accurately predicted condensation risk, and provided strong support for the development of grain storage monitoring and prediction systems.