For the Ningxia area, located in the arid and semi-arid regions of China, groundwater is one of the most important sources of drinking water. However, there has been little research on the application of machine learning models in predicting groundwater in this area.