Abstract
Mechanical ventilation is indispensable for patients with severe respiratory conditions, and high-fidelity lung simulators play a pivotal role in ventilator testing, clinical training, and respiratory research. However, most existing simulators are passive, single-lung models with limited and discrete control over respiratory mechanics, which constrains their ability to reproduce realistic breathing dynamics. To overcome these limitations, this study presents a dual-chamber lung simulator that can operate in both active and passive modes. The system integrates a sliding mode controller enhanced by a linear extended state observer, enabling the accurate replication of complex respiratory patterns. In active mode, the simulator allows for the precise tuning of respiratory muscle force profiles, lung compliance, and airway resistance to generate physiologically accurate flow and pressure waveforms. Notably, it can effectively simulate pathological conditions such as acute respiratory distress syndrome (ARDS) and chronic obstructive pulmonary disease (COPD) by adjusting key parameters to mimic the characteristic respiratory mechanics of these disorders. Experimental results show that the absolute flow error remains within ±3 L/min, and the response time is under 200 ms, ensuring rapid and reliable performance. In passive mode, the simulator emulates ventilator-dependent conditions, providing continuous adjustability of lung compliance from 30 to 100 mL/cmH2O and airway resistance from 2.01 to 14.67cmH2O/(L/s), with compliance deviations limited to ±5%. This design facilitates fine, continuous modulation of key respiratory parameters, making the system well-suited for evaluating ventilator performance, conducting human-machine interaction studies, and simulating pathological respiratory states.