Pu-erh tea, Camellia sinensis is a traditional Chinese tea, one of the black teas, originally produced in China’s Yunnan Province, named after its origin and distribution center in Pu-erh, Yunnan. Yunnan Pu-erh tea is protected by geographical Indication and has unique quality characteristics. It is made from Yunnan large-leaf sun-green tea with specific processing techniques. The quality formation of Pu-erh tea is closely related to the soil’s environmental conditions. In this paper, time-by-time data of the soil environment of tea plantations during the autumn tea harvesting period in Menghai County, Xishuangbanna, Yunnan Province, China, in 2021 were analyzed. Spearman’s correlation analysis was conducted between the inner components of Pu’er tea and the soil environmental factor. The analysis showed that three soil environmental indicators, soil temperature, soil moisture, and soil pH, were highly significantly correlated. The soil environmental quality evaluation method was proposed based on the selected soil environmental characteristics. Meanwhile, a deep learning model of Long Short Term Memory (LSTM) Network for the soil environmental quality of tea plantation was established according to the proposed method, and the soil environmental quality of tea was classified into four classes. In addition, the paper also compares the constructed models based on BP neural network and random forest to evaluate the coefficient of determination (R2), mean absolute error (MAE), mean square error (MSE), mean absolute percentage error (MAPE) and root mean square error (RMSE) of the indicators for comparative analysis. This paper innovatively proposes to introduce the main inclusions of Pu’er tea into the classification and discrimination model of the soil environment in tea plantations, while using machine learning-related algorithms to classify and predict the categories of soil environmental quality, instead of relying solely on statistical data for analysis. This research work makes it possible to quickly and accurately determines the physiological status of tea leaves based on the establishment of a soil environment quality prediction model, which provides effective data for the intelligent management of tea plantations and has the advantage of rapid and low-cost assessment compared with the need to measure the intrinsic quality of Pu-erh tea after harvesting is completed.