Development and applications of technologies of cognitive radio, software-defined network, cognitive network as well as anti-jamming and low intercept probability in radar and other communication systems have led to an exponential increase in the complexity of the electromagnetic environment. When confronted with the challenges in the future complicated battlefield environment, how to speed up the loop of “observe-orient-decide-act (OODA)” and realize electromagnetic agility is the key problem for electronic warfare system. To make the system more cognitive, we combine the theory of artificial intelligence with electronic warfare, which can significantly enhance the ability to sense a threat signal, make a jamming decision, and evaluate the jamming effect. Moreover, this will shorten the reaction time to unknown threats, speed up the OODA loop, and strengthen the operational capability of the system.