The frequency and severity of droughts are increasing due to climate change, which poses significant challenges for plant communities to adapt to different climate changes. To predict the effects of unpredictable weather on these communities, this study collected data on temperature, precipitation, evapotranspiration, soil water storage, species number, different species and their types, pollution level, and plant habitat area in Inner Mongolia's Baotou region. A regression model was developed to accurately predict the survival time of plant communities during the dry and rainy seasons, taking into account the interactions between different species, thus accurately reflecting the real ecosystem.This study provides a model to predict the survival time of plant communities, offering new insights into the stability and viability of ecosystems.