This study aims to evaluate the implementation of artificial intelligence, specifically fuzzy logic, in the flow control system of a mechanical pulmonary ventilator. The research compares the performance of the fuzzy logic control system with the conventional PID control system. A test bench was constructed to test and analyze the control algorithms on an electro-pneumatic ventilator, with the PID control algorithm initially applied and the test lung parameters adjusted under various conditions. The results demonstrated that the PID controller algorithm is effective and precise within the target flow range set by the user. However, the fuzzy logic algorithm is anticipated to significantly enhance these results due to its sensitivity to small changes, reliability, and improved accuracy. This research contributes to the understanding and improvement of flow control systems in electro-pneumatic lung ventilators, paving the way for enhanced patient care and treatment outcomes.