Physics-Guided Machine Learning for Predicting the Internal Temperature of Mushroom Bags

Accurate prediction of the internal temperature of mushroom bags is essential but remains challenging owing to the complex nonlinear coupling between ambient conditions and the bag’s thermal state. This study proposes a physics-guided machine learning framework that translates thermodynamic prior knowledge into a set of interpretable engineered features. Specifically, we construct features that capture temporal thermal lags via cross-correlation optimal lag analysis, represent integrative thermal memory through cumulative moving averages and exponentially weighted moving averages (EWMAs) with a physically calibrated half-life, and quantify the interaction between evaporative cooling and ventilation using a vapor pressure deficit-gated temperature gradient. The engineered features are combined with standard environmental variables and supplied to several machine learning algorithms. Four paradigms—a physics model, a one-step physics model, a purely data-driven model, and the proposed physics-guided model—are systematically compared across four representative cultivation scenarios. The physics-guided XGBoost achieves the highest predictive accuracy, with R2 values of 0.996, 0.993, 0.997, and 0.973 for the four datasets, significantly outperforming all baselines. SHAP and Accumulated Local Effects analyses reveal that EWMA dominates predictions and that the learned feature–response relationships align with established thermodynamic principles, confirming physical consistency. The framework provides a practical, interpretable solution for feedforward environmental control in edible mushroom cultivation.

Authors

Institutions

Publication Details

Journal
Agriculture
Published
2026-07-02
DOI
https://doi.org/10.3390/agriculture16131454
Primary Topic
Greenhouse Technology and Climate Control
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Physics-Guided Machine Learning for Predicting the Internal Temperature of Mushroom Bags

Li Xuelong, Xiaoying Ma, Mingwen Shi, Cao Jun et al.
Agriculture
Greenhouse Technology and Climate Control
article

Physics-Guided Machine Learning for Predicting the Internal Temperature of Mushroom Bags

Li Xuelong, Xiaoying Ma, Mingwen Shi, Cao Jun, Hong Wang, Wei Qi, Xianpeng Sun
article en

Abstract

Accurate prediction of the internal temperature of mushroom bags is essential but remains challenging owing to the complex nonlinear coupling between ambient conditions and the bag’s thermal state. This study proposes a physics-guided machine learning framework that translates thermodynamic prior knowledge into a set of interpretable engineered features. Specifically, we construct features that capture temporal thermal lags via cross-correlation optimal lag analysis, represent integrative thermal memory through cumulative moving averages and exponentially weighted moving averages (EWMAs) with a physically calibrated half-life, and quantify the interaction between evaporative cooling and ventilation using a vapor pressure deficit-gated temperature gradient. The engineered features are combined with standard environmental variables and supplied to several machine learning algorithms. Four paradigms—a physics model, a one-step physics model, a purely data-driven model, and the proposed physics-guided model—are systematically compared across four representative cultivation scenarios. The physics-guided XGBoost achieves the highest predictive accuracy, with R2 values of 0.996, 0.993, 0.997, and 0.973 for the four datasets, significantly outperforming all baselines. SHAP and Accumulated Local Effects analyses reveal that EWMA dominates predictions and that the learned feature–response relationships align with established thermodynamic principles, confirming physical consistency. The framework provides a practical, interpretable solution for feedforward environmental control in edible mushroom cultivation.

AgricultureVol. 16(13)
Liaoning Academy of Agricultural Sciences (CN), Northwest A&F University (CN)
Liaoning Academy of Agricultural Sciences
Openalex Percentile: Top 10%
Greenhouse Technology and Climate Control
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.