Research on a Temperature and Humidity Prediction Model for Greenhouse Tomato Based on iT-LSTM-CA
Abstract
1. Introduction
2. Materials and Methods
2.1. Experimental Site
2.2. IoT-Based Data Acquisition System
2.3. Data Processing
2.3.1. Data Preprocessing
2.3.2. Time Characterization Processing
2.3.3. Data Normalization
2.4. Model Construction
2.4.1. iTransformer Model
- (i)
- Embedding Layer. The temporal sequences of each environmental factor within the input window (L = 48) are mapped into continuous high-dimensional dense vectors. In this study, sequences such as indoor temperature and light intensity are independently encoded as feature tokens. This approach preserves the unique evolutionary information of each factor and provides fine-grained feature representations for subsequent modeling of interactions among variables.
- (ii)
- Transformer Module. It consists of three components: multivariate attention mechanism, feedforward neural network (FFN), and layer normalization.
- (iii)
- Projector Layer. A multilayer perceptron maps the learned high-dimensional feature tokens to the length of the prediction target sequence (). This layer realizes a direct mapping from the global feature space to future time steps. The resulting global representations capture environmental evolution trends under the coordinated influence of multiple factors, providing support for subsequent integration with local features.
2.4.2. LSTM Neural Network Model
2.4.3. Cross-Attention Mechanism
2.4.4. iT-LSTM-CA Prediction Model
- (i)
- Model input: The input tensor is , where the batch size , input window length , and feature dimension . All input data are normalized using Min-Max scaling to eliminate differences in measurement units.
- (ii)
- Global and local paths:
- (iii)
- Cross-attention: The local dynamic representations serve as the Query (Q), while the global trend representations serve as the Key (K) and Value (V). By computing the attention weight distribution between Q and K, the model adaptively selects and fuses local dynamic features with global trend features.
- (iv)
- Projection and output: The fused feature vectors are linearly transformed through the Projector layer, mapping the high-dimensional features to the prediction target length. The model ultimately outputs the prediction tensor , where corresponds to predicted values of indoor air temperature and humidity for the next 3 h, 6 h, 12 h, and 24 h, respectively.
2.5. Evaluation Metrics
3. Results
3.1. Experimental Environment and Parameter Configuration
3.2. Analysis of Data Preprocessing Strategies
3.3. Analysis of iTransformer Hyperparameters
3.4. Ablation Study
3.5. Comparative Analysis
3.6. Analysis of Model Prediction Results Under Different Seasons and Weather Conditions
4. Discussion and Conclusions
4.1. Discussion
4.2. Conclusions
- (1)
- Compared with GRU, TCN, RNN, LSTM, and Bi-LSTM models, iT-LSTM-CA demonstrates lower RMSE and MAE as well as higher R2 in multi-step predictions of temperature and humidity, achieving superior predictive performance, providing a reliable data foundation for proactive greenhouse environmental control and stable system operation.
- (2)
- The prediction curves of the iT-LSTM-CA model closely align with the observed values, accurately reflecting the variation trends of temperature and humidity. Specifically, for temperature prediction over 3 h, 6 h, 12 h, and 24 h multi-step forecasts, R2 ranges from 0.96 to 0.98, with a maximum mean absolute error (MAE) of 0.79 °C and a maximum root mean square error (RMSE) of 1.06 °C. For humidity prediction, R2 ranges from 0.95 to 0.97, with a maximum MAE of 2.49% and a maximum RMSE of 3.42%. Furthermore, the model’s predictions can provide a scientific basis for the management of facility tomato greenhouse environments, supporting the optimization of ventilation, heating, and humidification strategies, while ensuring crop yield and quality, reducing energy consumption, minimizing resource waste, and promoting facility tomato production toward high efficiency, low consumption, and sustainable development.
4.3. Limitations and Future Work
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Li, Y.; Henke, M.; Zhang, D.; Wang, C.; Wei, M. Optimized Tomato Production in Chinese Solar Greenhouses: The Impact of an East–West Orientation and Wide Row Spacing. Agronomy 2024, 14, 314. [Google Scholar] [CrossRef] [Scilit]
- Sun, Y.; He, J.; Wei, F.; Yang, W. Development of China’s Tomato Industry during the 13th Five-Year Plan Period and Evaluation of Its International Competitiveness. China Cucurbits Veg. 2023, 36, 112–116. [Google Scholar] [CrossRef]
- Harel, D.; Fadida, H.; Slepoy, A.; Gantz, S.; Shilo, K. The Effect of Mean Daily Temperature and Relative Humidity on Pollen, Fruit Set and Yield of Tomato Grown in Commercial Protected Cultivation. Agronomy 2014, 4, 167–177. [Google Scholar] [CrossRef] [Scilit]
- Zheng, Y.; Yang, Z.; Xu, C.; Wang, L.; Huang, H.; Yang, S. The Interactive Effects of Daytime High Temperature and Humidity on Growth and Endogenous Hormone Concentration of Tomato Seedlings. HortScience 2020, 55, 1575–1583. [Google Scholar] [CrossRef] [Scilit]
- Zero, E.; Sallak, M.; Sacile, R. Predictive Maintenance in IoT-Monitored Systems for Fault Prevention. J. Sens. Actuator Netw. 2024, 13, 57. [Google Scholar] [CrossRef] [Scilit]
- Varela-Aldás, J.; Gavilanes, A.; Velasco, N.; Del-Valle-Soto, C.; Bran, C. Acceptance of an IoT System for Strawberry Cultivation: A Case Study of Different Users. Sustainability 2024, 16, 7221. [Google Scholar] [CrossRef] [Scilit]
- Malabadi, R.B.; Kolkar, K.P.; Chalannavar, R.K.; Coronado, K.V.C.; Mammadova, S.S.; Baijnath, H.; Munhoz, A.N.R.; Abdi, G. Greenhouse Farming: Hydroponic Vertical Farming-Internet of Things (IOT) Technologies: An Updated Review. World J. Adv. Res. Rev. 2024, 23, 2634–2686. [Google Scholar] [CrossRef] [Scilit]
- Ren, S.; Liu, X.; Gu, X.; Wang, H.; Yuan, P.; Xu, H. Multi-Step Rolling Prediction Model of Greenhouse Microclimate Based on R-BP Neural Network. Chin. Agric. Meteorol. 2018, 39, 314–324. [Google Scholar]
- Francik, S.; Kurpaska, S. The Use of Artificial Neural Networks for Forecasting of Air Temperature inside a Heated Foil Tunnel. Sensors 2020, 20, 652. [Google Scholar] [CrossRef] [Scilit]
- Liu, Y.; Li, D.; Wan, S.; Wang, F.; Dou, W.; Xu, X.; Li, S.; Ma, R.; Qi, L. A Long Short-term Memory-based Model for Greenhouse Climate Prediction. Int. J. Intell. Syst. 2022, 37, 135–151. [Google Scholar] [CrossRef] [Scilit]
- Yang, Y.; Gao, P.; Sun, Z.; Wang, H.; Lu, M.; Liu, Y.; Hu, J. Multistep Ahead Prediction of Temperature and Humidity in Solar Greenhouse Based on FAM-LSTM Model. Comput. Electron. Agric. 2023, 213, 108261. [Google Scholar] [CrossRef] [Scilit]
- Guo, Z.; Feng, L. Multi-Step Prediction of Greenhouse Temperature and Humidity Based on Temporal Position Attention LSTM. Stoch. Environ. Res. Risk Assess. 2024, 38, 4907–4934. [Google Scholar] [CrossRef] [Scilit]
- Huang, S.; Liu, Q.; Wu, Y.; Chen, M.; Yin, H.; Zhao, J. Edible Mushroom Greenhouse Environment Prediction Model Based on Attention CNN-LSTM. Agronomy 2024, 14, 473. [Google Scholar] [CrossRef] [Scilit]
- Shi, D.; Yuan, P.; Liang, L.; Gao, L.; Li, M.; Diao, M. Integration of Deep Learning and Sparrow Search Algorithms to Optimize Greenhouse Microclimate Prediction for Seedling Environment Suitability. Agronomy 2024, 14, 254. [Google Scholar] [CrossRef] [Scilit]
- Zhang, W.; Ren, L.; Wang, F. Research on a Greenhouse Environment Prediction Model Based on an SO-BP Neural Network. J. Chin. Agric. Mech. 2024, 45, 94–99, 106. [Google Scholar] [CrossRef]
- Liang, Z.; Qi, S.; Chang, Q.; Zhang, P.; Zhang, G.; Niu, L. Greenhouse Environment Prediction Model Based on LSTM–SVM. Trans. Chin. Soc. Agric. Mach. 2025, 56, 279–287. [Google Scholar]
- Zu, L.; Liu, P.; Zhao, Y.; Li, T.; Li, H. Study on a Greenhouse Environment Prediction Model Based on SSA–LSTM. Trans. Chin. Soc. Agric. Mach. 2023, 54, 351–358. [Google Scholar]
- Meng, F.; Xu, R.; Zhao, W.; Song, W.; Gao, Y.; Li, L. Sunlight Greenhouse Environment Prediction Model Based on SSA–LSTM–Attention. Trans. Chin. Soc. Agric. Eng. 2025, 41, 256–263. [Google Scholar]
- Li, X.; Zhang, L.; Wang, X.; Liang, B. Forecasting Greenhouse Air and Soil Temperatures: A Multi-Step Time Series Approach Employing Attention-Based LSTM Network. Comput. Electron. Agric. 2024, 217, 108602. [Google Scholar] [CrossRef] [Scilit]
- Liu, Y.; Hu, T.; Zhang, H.; Wu, H.; Wang, S.; Ma, L.; Long, M. iTransformer: Inverted Transformers Are Effective for Time Series Forecasting. arXiv 2024, arXiv:2310.06625. [Google Scholar] [CrossRef] [Scilit]
- Wang, F.; Wang, Y.; Chen, W.; Zhao, C. An Improved iTransformer with RevIN and SSA for Greenhouse Soil Temperature Prediction. Agronomy 2025, 15, 223. [Google Scholar] [CrossRef] [Scilit]
- Song, C.; Liu, P.; Liu, X.; Yu, Y. Optimization Strategy for Temperature Sensor Deployment in Sunlight Greenhouses Based on HSIC. Trans. Chin. Soc. Agric. Eng. 2022, 38, 200–208. [Google Scholar]
- Li, Y.; Wang, S.; Chen, Q.; Wang, X. Comparative Study of Several Novel Swarm Intelligence Optimization Algorithms. Comput. Eng. Appl. 2020, 56, 1–12. [Google Scholar] [CrossRef] [Scilit]
- Xu, Y.; Chen, Z.; Li, T.; Li, C. Time Series Forecasting Based on Seasonally Decomposed Hybrid Neural Networks. Comput. Sci. 2024, 51, 553–559. [Google Scholar]
- Liu, J.; Zhao, H.; Luo, X.; Xu, Y. Research Progress on Deep Learning Batch Normalization and Related Algorithms. Acta Autom. Sin. 2020, 46, 1090–1120. [Google Scholar] [CrossRef]
- Hua, Y.; Zhao, Z.; Li, R.; Chen, X.; Liu, Z.; Zhang, H. Deep Learning with Long Short-Term Memory for Time Series Prediction. IEEE Commun. Mag. 2019, 57, 114–119. [Google Scholar] [CrossRef] [Scilit]
- Liu, J.; Song, Z. A Review of Recurrent Neural Networks. Control Decis. 2022, 37, 2753–2768. [Google Scholar] [CrossRef]
- Zhong, C.; Zheng, Z. MGGTSP-CAT: Integrating Temporal Convolution and LSTM for Multi-Scale Greenhouse Gas Time Series Prediction via Cross-Attention Mechanism. Adv. Theory Simul. 2024, 7, 2400527. [Google Scholar] [CrossRef] [Scilit]









| Sensor Name | Measurement Content | Model | Measuring Range | Accuracy |
|---|---|---|---|---|
| Air Temperature and Humidity Sensor | Air temperature and humidity | DB-171-30 (Dalian Beifang Measurement and Control Engineering Co., Ltd., Dalian, China) | Temperature: −40–120 °C | ±0.1 °C |
| Humidity: 0–100% | ±1.0% | |||
| Soil Temperature and Moisture Sensor | Soil temperature and moisture | TEROS-12 (METER Group, Inc., Pullman, WA, USA) | Temperature: −40–120 °C | ±0.1 °C |
| Humidity: 0–100% | ±0.08% | |||
| Light Intensity Sensor | Light intensity | TBQ-6 (Jinzhou Sunshine Meteorological Technology Co., Ltd., Jinzhou, China) | 0~200 klux | ±0.02 klux |
| Configuration | Parameter |
|---|---|
| Operating System | Windows 11 |
| CPU | Intel Core i7-13700F |
| GPU | GeForce RTX 4070 |
| Framework | Pytorch 1.13.0 + cu117 |
| Programming Language | Python 3.8 |
| Missing Ratio | Imputation Method | Temperature MSE (°C) | Humidity MSE (%) |
|---|---|---|---|
| 5% | Linear Interpolation | 0.06 | 0.51 |
| Forward Filling | 0.42 | 3.66 | |
| Sliding-Window Median | 0.01 | 0.18 | |
| 10% | Linear Interpolation | 0.08 | 0.79 |
| Forward Filling | 0.34 | 3.18 | |
| Sliding-Window Median | 0.02 | 0.34 | |
| 20% | Linear Interpolation | 1.59 | 12.31 |
| Forward Filling | 1.56 | 11.91 | |
| Sliding-Window Median | 0.31 | 2.29 |
| Layers | Attention Heads | 3 h | 6 h | 12 h | 24 h | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MAE/°C | RMSE/°C | R2 | MAE/°C | RMSE/°C | R2 | MAE/°C | RMSE/°C | R2 | MAE/°C | RMSE/°C | R2 | ||
| 1 | 1 | 0.51 | 0.67 | 0.58 | 0.75 | 0.74 | 0.95 | 0.85 | 1.15 | 13.24 | 0.51 | 0.67 | 0.58 |
| 1 | 4 | 0.46 | 0.62 | 0.52 | 0.68 | 0.70 | 0.88 | 0.81 | 1.10 | 15.42 | 0.46 | 0.62 | 0.52 |
| 1 | 8 | 0.42 | 0.58 | 0.48 | 0.64 | 0.67 | 0.84 | 0.79 | 1.06 | 17.15 | 0.42 | 0.58 | 0.48 |
| 2 | 8 | 0.42 | 0.58 | 0.48 | 0.64 | 0.67 | 0.83 | 0.79 | 1.05 | 32.48 | 0.42 | 0.58 | 0.48 |
| 3 | 8 | 0.42 | 0.58 | 0.48 | 0.64 | 0.66 | 0.83 | 0.78 | 1.05 | 63.92 | 0.42 | 0.58 | 0.48 |
| Model | Indicator | 3 h | 6 h | 12 h | 24 h | Params (M) | FLOPs (G) |
|---|---|---|---|---|---|---|---|
| LSTM | MAE/°C | 0.71 ± 0.04 | 0.85 ± 0.05 | 0.92 ± 0.07 | 1.18 ± 0.09 | 0.42 | 0.85 |
| RMSE/°C | 0.91 ± 0.05 | 1.07 ± 0.07 | 1.24 ± 0.09 | 1.56 ± 0.13 | |||
| R2 | 0.96 | 0.96 | 0.95 | 0.94 | |||
| iTransformer | MAE/°C | 0.75 ± 0.04 | 0.89 ± 0.05 | 0.90 ± 0.06 | 0.95 ± 0.08 | 0.36 | 0.62 |
| RMSE/°C | 0.95 ± 0.06 | 1.12 ± 0.08 | 1.20 ± 0.09 | 1.38 ± 0.11 | |||
| R2 | 0.95 | 0.94 | 0.94 | 0.94 | |||
| LSTM + iTransformer | MAE/°C | 0.51 ± 0.03 | 0.66 ± 0.04 | 0.79 ± 0.06 | 0.90 ± 0.07 | 0.78 | 1.47 |
| RMSE/°C | 0.67 ± 0.04 | 0.87 ± 0.05 | 1.15 ± 0.08 | 1.25 ± 0.11 | |||
| R2 | 0.97 | 0.97 | 0.96 | 0.95 | |||
| LSTM + iTransformer + Cross-Attention (Q = Global, K/V = Local) | MAE/°C | 0.49 ± 0.03 | 0.58 ± 0.04 | 0.76 ± 0.05 | 0.88 ± 0.08 | 0.84 | 1.65 |
| RMSE/°C | 0.66 ± 0.04 | 0.76 ± 0.05 | 1.02 ± 0.08 | 1.21 ± 0.11 | |||
| R2 | 0.97 | 0.96 | 0.96 | 0.95 | |||
| LSTM + iTransformer + Cross-Attention (Q = Local, K/V = Global) | MAE/°C | 0.42 ± 0.01 * | 0.48 ± 0.02 * | 0.67 ± 0.03 * | 0.79 ± 0.05 * | 0.84 | 1.65 |
| RMSE/°C | 0.58 ± 0.02 * | 0.64 ± 0.02 * | 0.84 ± 0.04 * | 1.06 ± 0.07 * | |||
| R2 | 0.98 | 0.98 | 0.97 | 0.96 |
| Model | Indicator | 3 h | 6 h | 12 h | 24 h | Params (M) | FLOPs (G) |
|---|---|---|---|---|---|---|---|
| LSTM | MAE/% | 2.25 ± 0.09 | 2.76 ± 0.12 | 3.21 ± 0.15 | 3.87 ± 0.22 | 0.42 | 0.85 |
| RMSE/% | 3.15 ± 0.12 | 3.62 ± 0.15 | 4.85 ± 0.22 | 5.24 ± 0.32 | |||
| R2 | 0.94 | 0.93 | 0.92 | 0.91 | |||
| iTransformer | MAE/% | 2.45 ± 0.11 | 2.95 ± 0.13 | 3.07 ± 0.14 | 3.65 ± 0.18 | 0.36 | 0.62 |
| RMSE/% | 3.40 ± 0.14 | 3.85 ± 0.17 | 4.61 ± 0.22 | 4.92 ± 0.28 | |||
| R2 | 0.93 | 0.93 | 0.93 | 0.92 | |||
| LSTM + iTransformer | MAE/% | 1.59 ± 0.07 | 2.13 ± 0.11 | 2.41 ± 0.12 | 2.84 ± 0.14 | 0.78 | 1.47 |
| RMSE/% | 2.26 ± 0.12 | 3.19 ± 0.15 | 3.95 ± 0.18 | 4.12 ± 0.22 | |||
| R2 | 0.95 | 0.94 | 0.94 | 0.93 | |||
| LSTM + iTransformer + Cross-Attention (Q = Global, K/V = Local) | MAE/% | 1.48 ± 0.08 | 1.98 ± 0.10 | 2.35 ± 0.11 | 2.78 ± 0.14 | 0.84 | 1.65 |
| RMSE/% | 2.15 ± 0.11 | 2.88 ± 0.15 | 3.72 ± 0.21 | 4.01 ± 0.25 | |||
| R2 | 0.96 | 0.95 | 0.94 | 0.94 | |||
| LSTM + iTransformer + Cross-Attention (Q = Local, K/V = Global) | MAE/% | 1.21 ± 0.04 * | 1.64 ± 0.05 * | 2.04 ± 0.07 * | 2.49 ± 0.09 * | 0.84 | 1.65 |
| RMSE/% | 1.78 ± 0.06 * | 2.31 ± 0.08 * | 3.11 ± 0.12 * | 3.42 ± 0.15 * | |||
| R2 | 0.97 | 0.96 | 0.95 | 0.95 |
| Model | 3 h | 6 h | 12 h | 24 h | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MAE/°C | RMSE/°C | R2 | MAE/°C | RMSE/°C | R2 | MAE/°C | RMSE/°C | R2 | MAE/°C | RMSE/°C | R2 | |
| iT-LSTM-CA (w/o weather) | 0.46 ± 0.02 | 0.63 ± 0.03 | 0.97 | 0.53 ± 0.03 | 0.71 ± 0.04 | 0.97 | 0.73 ± 0.03 | 0.89 ± 0.04 | 0.96 | 0.87 ± 0.06 | 1.12 ± 0.09 | 0.95 |
| iT-LSTM-CA (with weather) | 0.42 ± 0.01 | 0.58 ± 0.02 | 0.98 | 0.48 ± 0.02 | 0.64 ± 0.02 | 0.98 | 0.67 ± 0.03 | 0.84 ± 0.04 | 0.97 | 0.79 ± 0.05 | 1.06 ± 0.07 | 0.96 |
| Model | 3 h | 6 h | 12 h | 24 h | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MAE/% | RMSE/% | R2 | MAE/% | RMSE/% | R2 | MAE/% | RMSE/% | R2 | MAE/% | RMSE/% | R2 | |
| iT-LSTM-CA (w/o weather) | 1.28 ± 0.05 | 1.87 ± 0.06 | 0.96 | 1.72 ± 0.06 | 2.39 ± 0.08 | 0.95 | 2.13 ± 0.07 | 3.18 ± 0.11 | 0.94 | 2.61 ± 0.09 | 3.54 ± 0.14 | 0.94 |
| iT-LSTM-CA (with weather) | 1.21 ± 0.04 | 1.78 ± 0.06 | 0.97 | 1.64 ± 0.05 | 2.31 ± 0.08 | 0.96 | 2.04 ± 0.07 | 3.11 ± 0.12 | 0.95 | 2.49 ± 0.09 | 3.42 ± 0.15 | 0.95 |
| Model | 3 h | 6 h | 12 h | 24 h | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MAE/°C | RMSE/°C | R2 | MAE/°C | RMSE/°C | R2 | MAE/°C | RMSE/°C | R2 | MAE/°C | RMSE/°C | R2 | |
| GRU | 0.73 | 0.94 | 0.95 | 0.88 | 1.10 | 0.95 | 0.96 | 1.28 | 0.94 | 1.22 | 1.61 | 0.93 |
| TCN | 0.69 | 0.89 | 0.96 | 0.83 | 1.05 | 0.95 | 0.91 | 1.22 | 0.95 | 1.15 | 1.52 | 0.94 |
| RNN | 0.82 | 1.05 | 0.93 | 0.97 | 1.23 | 0.92 | 1.08 | 1.42 | 0.91 | 1.35 | 1.78 | 0.89 |
| LSTM | 0.71 | 0.91 | 0.96 | 0.85 | 1.07 | 0.96 | 0.92 | 1.24 | 0.95 | 1.18 | 1.56 | 0.94 |
| Bi-LSTM | 0.68 | 0.87 | 0.96 | 0.81 | 1.03 | 0.96 | 0.89 | 1.19 | 0.95 | 1.12 | 1.48 | 0.94 |
| iTransformer | 0.75 | 0.95 | 0.95 | 0.89 | 1.12 | 0.94 | 0.90 | 1.20 | 0.94 | 0.95 | 1.38 | 0.94 |
| DLinear | 0.68 | 0.86 | 0.96 | 0.82 | 1.06 | 0.95 | 0.93 | 1.25 | 0.94 | 1.18 | 1.58 | 0.93 |
| PatchTST | 0.61 | 0.83 | 0.97 | 0.72 | 0.93 | 0.97 | 0.78 | 1.04 | 0.96 | 0.87 | 1.25 | 0.95 |
| iT-LSTM-CA | 0.42 | 0.58 | 0.98 | 0.48 | 0.64 | 0.98 | 0.67 | 0.84 | 0.97 | 0.79 | 1.06 | 0.96 |
| Model | 3 h | 6 h | 12 h | 24 h | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MAE/% | RMSE/% | R2 | MAE/% | RMSE/% | R2 | MAE/% | RMSE/% | R2 | MAE/% | RMSE/% | R2 | |
| GRU | 2.42 | 3.38 | 0.92 | 2.95 | 3.85 | 0.92 | 3.28 | 4.92 | 0.91 | 3.92 | 5.31 | 0.90 |
| TCN | 2.28 | 3.19 | 0.93 | 2.79 | 3.65 | 0.93 | 3.12 | 4.72 | 0.92 | 3.74 | 5.08 | 0.91 |
| RNN | 2.65 | 3.62 | 0.90 | 3.18 | 4.15 | 0.89 | 3.52 | 5.24 | 0.88 | 4.21 | 5.68 | 0.87 |
| LSTM | 2.25 | 3.15 | 0.94 | 2.76 | 3.62 | 0.93 | 3.21 | 4.85 | 0.92 | 3.87 | 5.24 | 0.91 |
| Bi-LSTM | 2.18 | 3.08 | 0.94 | 2.68 | 3.55 | 0.93 | 3.08 | 4.68 | 0.92 | 3.72 | 5.05 | 0.91 |
| iTransformer | 2.45 | 3.40 | 0.93 | 2.95 | 3.85 | 0.93 | 3.07 | 4.61 | 0.93 | 3.65 | 4.92 | 0.92 |
| DLinear | 2.16 | 3.05 | 0.94 | 2.57 | 3.38 | 0.93 | 3.02 | 4.64 | 0.92 | 3.71 | 5.14 | 0.91 |
| PatchTST | 1.86 | 2.72 | 0.95 | 2.13 | 3.08 | 0.95 | 2.67 | 4.03 | 0.94 | 3.06 | 4.38 | 0.94 |
| iT-LSTM-CA | 1.21 | 1.78 | 0.97 | 1.64 | 2.31 | 0.96 | 2.04 | 3.11 | 0.95 | 2.49 | 3.42 | 0.95 |
| Season | Temperature | Humidity | ||||
|---|---|---|---|---|---|---|
| MAE/°C | RMSE/°C | R2 | MAE/% | RMSE/% | R2 | |
| Autumn | 0.57 ± 0.02 | 0.78 ± 0.04 | 0.97 | 1.82 ± 0.05 | 2.63 ± 0.09 | 0.95 |
| Winter | 0.63 ± 0.05 | 0.85 ± 0.08 | 0.96 | 1.94 ± 0.08 | 2.84 ± 0.12 | 0.95 |
| Weather Condition | Temperature | Humidity | ||||
|---|---|---|---|---|---|---|
| MAE/°C | RMSE/°C | R2 | MAE/% | RMSE/% | R2 | |
| Sunny | 0.56 ± 0.02 | 0.74 ± 0.03 | 0.97 | 1.78 ± 0.05 | 2.59 ± 0.08 | 0.96 |
| Overcast | 0.61 ± 0.03 | 0.82 ± 0.04 | 0.96 | 1.92 ± 0.07 | 2.71 ± 0.10 | 0.95 |
| Rainy | 0.65 ± 0.04 | 0.86 ± 0.06 | 0.96 | 2.11 ± 0.11 | 2.87 ± 0.14 | 0.94 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Gao, Y.; Liu, P.; Zhang, Y.; Li, F.; Zhu, K.; Zhang, Y.; Xu, S. Research on a Temperature and Humidity Prediction Model for Greenhouse Tomato Based on iT-LSTM-CA. Sustainability 2026, 18, 930. https://doi.org/10.3390/su18020930
Gao Y, Liu P, Zhang Y, Li F, Zhu K, Zhang Y, Xu S. Research on a Temperature and Humidity Prediction Model for Greenhouse Tomato Based on iT-LSTM-CA. Sustainability. 2026; 18(2):930. https://doi.org/10.3390/su18020930
Chicago/Turabian StyleGao, Yanan, Pingzeng Liu, Yuxuan Zhang, Fengyu Li, Ke Zhu, Yan Zhang, and Shiwei Xu. 2026. "Research on a Temperature and Humidity Prediction Model for Greenhouse Tomato Based on iT-LSTM-CA" Sustainability 18, no. 2: 930. https://doi.org/10.3390/su18020930
APA StyleGao, Y., Liu, P., Zhang, Y., Li, F., Zhu, K., Zhang, Y., & Xu, S. (2026). Research on a Temperature and Humidity Prediction Model for Greenhouse Tomato Based on iT-LSTM-CA. Sustainability, 18(2), 930. https://doi.org/10.3390/su18020930

