Food security is always a pressing agenda worldwide. The grain production in many areas has decreased due to the reduction in agricultural research funding and infrastructure investment. In this paper, we employed the Extreme-Tree algorithm to determine the main effectors in grain production in Hexi Corridor, Gansu, China, during 2002–2018. First, we applied the three-stage super-SBM DEA to precisely assess agricultural production. Then, we used the Extremely randomized trees algorithm to quantify the importance of each factor. Our results show that the variant of average efficiency score at the first stage was minimal. After removing the influence of environmental factors on production efficiency, the more accurate efficiency score was decreasing from 2002 to 2018. The R2 value of the Extra-Tree model was 0.989 in the grain production analysis. Our research shows that grain production in the Hexi Corridor was controlled by human-driven but not nature-driven during our research period. Based on the importance attribution analysis of each model, it showed that the importance of human-driven investment occupied 93.7% of grain production. The importance of nature-driving was about 6.3%. Accordingly, we proposed corresponding opinions and suggestions to government and growers.
Controlling groundwater table decline could mitigate land subsidence and induced environmental hazards in over-explored areas. Nevertheless, this becomes a challenge in the multi-layered porous system as (in)elastic deformation simultaneously occurs due to vast spatiotemporal variability in the groundwater table. In this study, SBAS-InSAR was used to estimate annual land deformation during 2017–2022 in a specific region of North China Plain, in which aquifers are composed of many layers of fine-grained compressible sediments and the groundwater table has experienced a prolonged decline. The random forest (RF) was applied to establish the nonlinear relationship between accumulated deformation and its potential driving factors, including the depth to the groundwater table (GWD) and its change rate, and the compressible sediment thickness. Results show that the marked subsidence and uplift co-exist in the region even though the groundwater table has risen widely since the South–North Water Diversion Project. The land subsidence is attributed to inelastic compaction of the thick compressible deposits in depression cone centers, where the GWD is over 40 m and 90 m in the shallow and deep aquifers, respectively. In contrast, the marked uplift is primarily attributed to fast rising of the groundwater table (e.g., −2.44 m/a). The RF predictions suggest that, to control the subsidence, the GWD should be less than 20 and 70 m in the shallow and deep aquifers, respectively, and the rising rate of the GWD should increase to 2–5 times of current rates in the depression cones. To mitigate the marked uplift, the rising rate of the GWD should reduce to 1/2–1/5 of the current rates in the shallow aquifers. The uneven deformations of sediments in the depression cone centers and uplift in their boundaries may exacerbate geohazards. Therefore, it is vital to implement appropriate governance of groundwater recovery in the multi-layered porous system.