Understanding the temporal variation in streamflow in the Lancang–Mekong River and its driving mechanism is essential for water resource management of this important international river. In this study, streamflow at the Chiang Saen gauging station was simulated using a long short-term memory (LSTM) model driven by satellite-based Multi-Source Weighted-Ensemble Precipitation (MSWEP) and Multi-Source Weather (MSWX) datasets, with the aim of quantifying the contributions of climate change and human activities to streamflow variations. A key contribution of this work lies in the use of LSTM to reproduce naturalized streamflow conditions—using only climate inputs—thereby providing a data-driven alternative to conventional process-based modeling approaches in this data-scarce basin. The monthly precipitation and temperature data of Chiang Saen station from 1979 to 1991 are used for model training and validation. The natural streamflow of Chiang Saen station from 1992 to 2021 is reconstructed based on the trained model. The results show that the annual average precipitation of the basin from 1979 to 2021 only exhibits a statistically insignificant decreasing trend, while the annual average temperature shows a statistically significant upward trend, and the inter-annual variation in the annual average streamflow shows a non-significant downward trend. Periodic analysis shows that the main periodicity of precipitation, temperature, and streamflow data is 12 months, following annual periodicity in climate. LSTM simulations demonstrate high accuracy in predicting the streamflow in T month based on the MSWEP precipitation and MSWX temperature data in T-2, T-1, and T months. On an annual scale, the streamflow in the changing period (1992–2021) decreases by only 4.6% compared with the reference period (1979–1991). In spring, the streamflow in the changing period is 30.6% higher than that of the reference period, and climate change and human activities contribute 40.8% and 59.2%, respectively. Increases in streamflow (3.4%) are also detected in the winter, with human activity as the dominant contributing factor. For the summer, the streamflow in the changing period is −8.2% lower than that in the reference period, with a greater contribution from human activities (68.7%) than climate change (31.3%). The streamflow in autumn of the changing period is −12.1% lower than that in the reference period, with a greater contribution from human activities (90.2%) than climate change (9.8%). In general, the findings of this study indicate that the driving mechanisms behind streamflow changes at Chiang Saen are complex at different temporal scales, and they provide valuable insights for improving our understanding of hydrological changes within the Lancang–Mekong River Basin.
Accurate and rapid prediction of groundwater levels (GWL) is essential for effective groundwater management. Machine learning models are efficient tools for GWL prediction, but individual models often suffer from limited generalization due to inherent randomness. This study proposed a stacking-based GWL prediction framework suitable for arid regions in Northwest China. Feature variables affecting GWL were selected using variable importance in projection (VIP). Then, three machine learning models—artificial neural networks (ANN), random forests (RF), and Light Gradient Boosting Machine (LightGBM)—were developed, and their outputs were integrated using a support vector regression (SVR)-based stacking method to enhance the accuracy of GWL prediction. The results show that the factors of influencing GWL changes vary significantly across different regions, and selecting the most contributive feature variables is beneficial for model construction. Among the individual models, the RF model demonstrated higher accuracy and more stable performance, outperforming the ANN and LightGBM models. However, individual models exhibited poor generalization during validation. In contrast, the stacking model maintained high performance, demonstrating superior generalization. Compared to the best-performing individual model (RF) in validation period, the Nash–Sutcliffe efficiency ( NSE ) and Kling–Gupta efficiency ( KGE ) of stacking model improved by 0.11–0.66 and 0.05–0.41, the correlation coefficient ( R2 ) increased by 0.05–0.3, and root mean square error ( RMSE ) reduced by 0.01–0.1 m. In the stacking simulation, RF had the highest average contribution (80.2%), followed by ANN (13.9%) and LightGBM (5.9%). This study provides a stacking simulation framework based on machine learning methods for precise groundwater level simulation, which can serve as a reference for groundwater level simulation in other regions.