The heat circulation of interior space plays a crucial role in the design of the built environment, affecting energy efficiency and residential comfort. With the development of science and technology, visual target tracking algorithm provides a new possibility for optimizing thermal energy cycle. The purpose of this paper is to study the simulation method of indoor space thermal energy cycle based on visual target tracking algorithm to improve the efficiency of thermal energy management in building environment design and ensure indoor comfort. The research uses laboratory Settings, combined with high-performance cameras and advanced visual target tracking algorithms, to monitor indoor heat source distribution and personnel movement in real time. Through data acquisition and analysis, the indoor heat cycle model was constructed and simulated by computational fluid dynamics (CFD) software to evaluate the influence of different design parameters on the heat cycle. Through the optimization of the design scheme, the efficiency of indoor heat use is significantly improved, and the comfort score of residents is significantly improved. Therefore, the simulation of indoor space thermal energy cycle based on visual target tracking algorithm provides an effective tool for building environment design, which can realize efficient energy management and improve living comfort.