A ventilator is a machine designed to assist or replace spontaneous breathing in infants who are unable to breathe adequately on their own. This is particularly crucial in the context of neonatal disorders, where immature lungs or other complications can impede effective respiration.