Nowadays sustainable underground geothermal energy resources have received special attention thanks for being characterized as clean, zerocarbon footprint, reliable, and free source of renewable energy that can run all year long and around the clock. Barren desert lands, which make up 33% and contribute to almost 30 Million km² of global land surface area, is increasingly seen as supply of green energy but not yet efficiently and globally utilized although it can save up to 70% compared to traditional HVAC systems bills. This paper presents a novel artificial intelligent machine learning and big data algorithm to analyze and control geothermal heat pump system (GHP). In particular, the main objective of this research is to model, design, analyze, control and optimize the performance of desert underground GTH system based on thermodynamics laws and AI machine learning. As a case study, the analysis and design of desert GHP is performed based on the annual weather data collected for Al Ain city in UAE. By selecting a horizontal layout, the design analysis results show that GHP unit needs a 66 m total trench length with a cooling capacity estimated of 12.4 kW, heat pump COP of 2.8 and 1.6 for the system COP with 30.3 L/min water flow rate. Similar results for the heating system are obtained as well. Furthermore, financial calculations show the GHP system is very economic and competitive comparing with the traditional cooling/heating systems. It