Deep learning-based forecasting of multi-layer grain temperature dynamics for safe storage monitoring in flat warehouses
Abstract
Accurate forecasting of grain temperature is important for safe storage monitoring and early warning in flat grain warehouses. However, most existing data-driven studies mainly focus on single-warehouse prediction, and the cross-warehouse generalization ability of forecasting models remains insufficiently evaluated. In this study, a multi-layer wheat temperature forecasting framework was developed using five-layer temperature records collected from operating flat warehouse units. Warehouse No. 5 was used for model development and internal testing, while Warehouse No. 1 was used as an independent external validation dataset. Eight forecasting models were systematically compared, including RF, XGBoost, LSTM, GRU, Bi-LSTM, CNN-LSTM, TCN, and a Residual-LSTM model. Different from conventional direct forecasting models, Residual-LSTM uses a residual temperature-increment learning strategy, in which the temperature increment relative to the latest observed temperature is predicted and then added to the latest observation to obtain the final forecast. This design was introduced to better match the slow and continuous thermal variation of stored wheat. The results showed that Residual-LSTM achieved the lowest prediction errors among the tested models on both the internal test set and the external validation dataset. On the internal test set of Warehouse No. 5, it obtained an RMSE of 1.0880°C, an MAE of 0.7722°C, and an R2 of 0.9566. On the external validation dataset from Warehouse No. 1, it achieved an RMSE of 1.8195°C, an MAE of 1.3531°C, and an R2 of 0.9485. Compared with standard LSTM, the external RMSE was reduced by 34.30%. These results suggest that Residual-LSTM can improve multi-layer wheat temperature forecasting and provide evidence of limited cross-warehouse transferability under the experimental conditions of this study.
Supporting Agencies
Anhui Provincial Department of Education Natural Science Major Project (Grant No. 2022AH040238), Anhui Provincial Natural Science Foundation Face Project (Grant No. 2308085ME178), Anhui Highly Efficient Collaborative Innovation Project (Grant No. GXXT-2023-058), Anhui Agricultural Substance Unveiling and Hanging Project (Grant No. 311152350024), Anhui Province Synergy Innovation Program of 2022 (Grant No. GXXT-2022-077), Anhui University Synergy Innovation Program (Grant No. GXXT-2023-022)
Data Availability Statement
The data used to support the findings of this study are available from the corresponding author upon request.
References
- Anukiruthika T, Jayas DS, 2025. AI-driven grain storage solutions: exploring current technologies, applications, and future trends. J Stored Prod Res 111:102588. DOI: https://doi.org/10.1016/j.jspr.2025.102588
- Bhattarai B, Nuttall JG, Li M, Suleria HAR, Wallace AJ, Fitzgerald GJ, et al., 2024. Storage temperature and grain moisture effects on phenolic compounds as a driver of seed coat darkening in red lentil. Agronomy 14:705. DOI: https://doi.org/10.3390/agronomy14040705
- Breiman L, 2001. Random forests. Mach Learn 45:5-32. DOI: https://doi.org/10.1023/A:1010933404324
- Chen T, Guestrin C, 2016. XGBoost: a scalable tree boosting system. pp. 785-94 in Proc. 22nd ACM SIGKDD Int. Conf. on Knowledge Discovery and Data Mining, San Francisco. DOI: https://doi.org/10.1145/2939672.2939785
- Coradi PC, Chaves J, de Lacerda Filho A, Mota T, 2014. Quality of stored grain of corn in different conditions. Científica 42:118-33. DOI: https://doi.org/10.15361/1984-5529.2014v42n2p118-133
- Duan S, Yang W, Wang X, Mao S, Zhang Y, 2021. Temperature forecasting for stored grain: a deep spatiotemporal attention approach. IEEE Internet Things J 8:17147-60. DOI: https://doi.org/10.1109/JIOT.2021.3078332
- Hewamalage H, Ackermann K, Bergmeir C, 2023. Forecast evaluation for data scientists: common pitfalls and best practices. Data Min Knowl Disc 37:788-832. DOI: https://doi.org/10.1007/s10618-022-00894-5
- Hodson TO, 2022. Root-mean-square error (RMSE) or mean absolute error (MAE): when to use them or not. Geosci Model Dev 15:5481-7. DOI: https://doi.org/10.5194/gmd-15-5481-2022
- Jain P, Alam MS, Saini MK, Aslam R, 2026. Recent technological innovations and strategies for reducing post-harvest losses during bulk grain storage: applications of IoT and non-destructive quality evaluation. J Stored Prod Res 116:102893. DOI: https://doi.org/10.1016/j.jspr.2025.102893
- Jin W, Zhang W, Hu J, Weng B, Huang T, Chen J, 2022. Using the residual network module to correct the sub-seasonal high temperature forecast. Front Earth Sci 9:760766. DOI: https://doi.org/10.3389/feart.2021.760766
- Li X, Wu W, Guo H, Qiao X, Lu Y, Wu Y, et al., 2025a. An interpretable temperature prediction method for grain in storage based on improved temporal fusion transformers. Comput Electron Agr 236:110414. DOI: https://doi.org/10.1016/j.compag.2025.110414
- Li X, Wu W, Guo H, Wu Y, Li S, Wang W, et al., 2025b. Smart grain storage solution: integrated deep learning framework for grain storage monitoring and risk alert. Foods 14:1024. DOI: https://doi.org/10.3390/foods14061024
- Liu F, Chen L, Zheng Y, Feng Y, 2022. A prediction method with data leakage suppression for time series. Electronics 11:3701. DOI: https://doi.org/10.3390/electronics11223701
- Melo RD, Carteri CP, Ribeiro TLP, Eduardo TP, Santos MRD, Menezes LM, 2024. Monitoring and predicting corn grain quality on the transport and post-harvest operations in storage units using sensors and machine learning models. Sci Rep 14:6232. DOI: https://doi.org/10.1038/s41598-024-56879-5
- Peng H, Zhu Y, Li Z, 2025. Research on storage grain temperature prediction method based on FTA-CNN-SE-LSTM with dual-domain data augmentation and deep learning. Foods 14:1671. DOI: https://doi.org/10.3390/foods14101671
- Qu Z, Zhang Y, Hong C, Zhang C, Dai Z, Zhao Y, et al., 2023. Temperature forecasting of grain in storage: a multi-output and spatiotemporal approach based on deep learning. Comput Electron Agr 208:107785. DOI: https://doi.org/10.1016/j.compag.2023.107785
- Saenz E, Borrás L, Gerde JA, 2025. Differential impact of storage temperature and endosperm hardness on carotenoid retention in maize whole grain and flour. J Cereal Sci 126:104294. DOI: https://doi.org/10.1016/j.jcs.2025.104294
- Sari Y, Arifin YF, Novitasari N, Handoyo S, Baskara AR, Musatamin NF, et al., 2025. Optimizing the GRU-LSTM hybrid model for air temperature prediction in degraded wetlands and climate change implications. Int J Adv Comput Sc 16:709-23. DOI: https://doi.org/10.14569/IJACSA.2025.0160272
- Sun F, Gong C, Lyu Z, 2024. Grain storage temperature prediction based on chaos and enhanced RBF neural network. Sci Rep 14:24015. DOI: https://doi.org/10.1038/s41598-024-74120-1
- Wu W, Cui H, Han F, Liu Z, Wu X, Wu Z, et al., 2021. Digital monitoring of grain conditions in large-scale bulk storage facilities based on spatiotemporal distributions of grain temperature. Biosyst Eng 210:247-60. DOI: https://doi.org/10.1016/j.biosystemseng.2021.08.028
Metrics
Citations and online attention from Dimensions, Altmetric and PlumX.
License
Copyright (c) 2026 the Author(s)

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
PAGEPress has chosen to apply the Creative Commons Attribution NonCommercial 4.0 International License (CC BY-NC 4.0) to all manuscripts to be published.