A system for detecting and alleviating pilot hypoxia is provided. The system includes an oxygen generator adapted to be powered by a power supply. The oxygen generator is in communication an oxygen delivery device where the oxygen delivery device is adapted to deliver supplemental oxygen to a pilot. A control module is in communication with the oxygen generator and the power supply. A hypoxia detection device is in communication with the control module wherein the control module causes one or both of the oxygen generator and the oxygen delivery device to increase an amount of oxygen being delivered to the pilot upon detection of pilot hypoxia. The hypoxia detection device may include a pupillometer and a luminometer and/or a flash generator.