The ultra-high voltage direct current (UHVDC) transmission system demands highly sophisticated mathematical models and meticulous data monitoring for energy loss measurement, and the standard level of digitization often falls short in supporting advanced loss reduction research. To tackle this challenge, this paper proposes a digital twin based loss reduction system architecture that integrates real-time sensing monitoring technology, cloud collaboration technology, and typical applications. Subsequently, a detailed mathematical model encompassing converter stations and DC transmission lines was developed. Using data collected by measurement equipment, an energy consumption measurement module was implemented in the local computing kernel. This module interfaces with the CloudPSS digital twin platform for batch simulation, facilitating the creation of an equipment energy consumption database. Concurrently, an enhanced Eagle Strategy Particle Swarm (ESPSO) Optimization algorithm was introduced to optimize loss reduction parameters. The optimization results indicated a significant reduction in loss 40.9% in converters and 64.7% in AC filters, with an overall system loss reduction of 28.27%. Therefore, the effectiveness of the optimized loss reduction method and the virtual loss reduction technology was validated, leading to enhanced safety and reliability in the entire UHVDC transmission system.