Traditional thermal analysis methods have limitations in complex environments, and innovative technologies are urgently needed to improve the accuracy of indoor thermal monitoring and optimization. In this paper, machine vision and optical image enhancement technology are combined to simulate the indoor heat energy cycle process to achieve more efficient heat management and visual communication, so as to improve the energy utilization efficiency and residential comfort of buildings. In this paper, a high-resolution camera is used to capture real-time images of indoor environment, image quality is enhanced by image processing algorithm, and heat distribution characteristics are extracted. The machine learning model is used to analyze the dynamic changes of the thermal energy cycle, and the visual model of the indoor thermal energy cycle is constructed by combining the fluid dynamics theory. The experimental results show that the proposed method can effectively identify and display the key areas of indoor heat circulation and their changing trends. The simulation results show that the optical enhanced images can show different temperature regions more clearly, directly reflect the heat flow situation, and have a high agreement with the actual measurement data. Therefore, the indoor thermal energy cycle simulation method based on machine vision and optical image enhancement not only improves the accuracy and real-time performance of thermal energy analysis, but also provides visual support for indoor environmental management.