A medical ventilator capable of early detecting and recognizing types of pneumonia, a gas recognition chip, and a method for recognizing gas thereof are disclosed. The gas recognition chip of the medical ventilator comprises a sensor array, a sensor interface circuit, a stochastic neural network chip, a memory and a microcontroller. The sensor array receives a plurality of multiple types of gases to produce odor signals corresponding to each type of gas. The sensor interface circuit analyzes the odor signals to produce gas pattern signals corresponding to each type of gas. The stochastic neural network chip amplifies the differences between the gas pattern signals and performs dimensional reduction on the gas pattern signals to aid the analysis. The memory stores training data. The microcontroller performs a mixed gas recognizing algorithm to early detect and recognize the type of the pneumonia according to the gas training data. |