Fault diagnosis is an important technique to ensure chemical processes stability and safety.A fault diagnosis methodology is proposed in this paper for batch chemical processes based on artificial immune system (AIS) and dynamic time warping (DTW) algorithm.Its application to a simulated penicillin fermentation process demonstrated that the proposed AIS could meet the requirement of online dynamic fault diagnosis of batch processes and diagnose new faults through self-learning.