Today, artificial intelligence encompasses a wide variety of subfields. These range from areas of general purpose, learning and perception, to more specific ones such as speech recognition, playing chess, proving mathematical theorems, writing poetry and diagnosing diseases. Artificial intelligence synthesizes and automates tasks that are in principle intellectual and is therefore potentially relevant to any field of human intellectual activities. In this sense, it is a genuinely universal field. Artificial intelligence is a new form of problem solving, including expert systems, robot handling and control, and processors, which attempts to integrate knowledge into such systems, in other words, an intelligent system capable of writing its own program. An expert system defined as a programming structure capable of storing and using knowledge about a given area that translates into its ability to learn. Similarly, AI can be considered as the ability of machines to use algorithms, learning from data.