The Evolution and Pitfalls of AI
local graph
Chapter 1 — The Evolution and Pitfalls of AI
Section titled “Chapter 1 — The Evolution and Pitfalls of AI”The Evolution and Pitfalls of AI
Section titled “The Evolution and Pitfalls of AI”Artificial intelligence (AI) is considered by many as the new kid on the block, but in reality, it’s more of an elderly person. Significantly, few people realize that the AI drive we’re experiencing today started around the Second World War. Back then, people such as Vannevar Bush, John von Neumann, and Claude Shannon were very much toying with different ideas that eventually led to the creation of today’s modern computers. However, it was Alan Turing, the famous British mathematician, who, after using a rudimentary computer during the war, started visualizing the potential of AI. After the Second World War, many other scientists came on board and eventually created the field of AI. The initial drive was toward using algorithms capable of manipulating symbols (such as alphanumeric characters) but eventually, these techniques hit a brick wall. In the past three decades, we have seen a steady shift toward a different kind of AI, called statistical AI. These algorithms are capable of achieving some incredible feats using large-scale statistical techniques. However, today, we are heading toward another crossroads. The limitations of these technologies are becoming visible. Even though a self-driving car can boast a driving experience of around 60 years of continuous driving, there have been cases where these cars were hacked by simply placing a small sticker on a traffic sign. These AI models do not understand how our world works and because of this, a simple hack can cause one of these cars to steer directly into a wall. Thus, we need better AI, one that is not only capable of maintaining the incredible performance achieved by deep learning (DL) models but is also able to understand our world and how it works.
This chapter aims to explore the evolution of AI so that you can appreciate its humble beginnings and the various achievements of the past decades. However, it is also important to understand that the path taken was not always a straight one and AI scientists had to face various obstacles along the way. By the end of the chapter, you will have a solid understanding of AI and the pitfalls it faced, and you will be able to have a better understanding of the AI ecosystem. In this chapter, we will cover the following main topics:
- The basic idea behind AI
- Subfields of AI
- The evolution of AI
- The pitfalls of AI
The basic idea behind AI
Section titled “The basic idea behind AI”Even though many people do not realize it, they are at the mercy of AI. Today, we have doorbells, lighting, ovens, washing machines, air conditioners, cars, and all sorts of devices that we use on a daily basis having some AI integrated within them. The problem with AI is that these devices don’t have a label on them that clearly shows whether an AI system is controlling them or not. Thus, my state-of-the-art appliance doesn’t look much different from my old one, yet underneath the bonnet, they are worlds apart.
Most people’s AI education has been heavily influenced by Hollywood movies or science fiction books. A.I. Artificial Intelligence, I, Robot, Ex Machina, Blade Runner, The Matrix, and 2001: A Space Odyssey, to name a few, all contributed to building this general understanding of AI. Unfortunately, there seems to be a recurrent theme in all of them. First, AI is all about humanoid robots. Second, they must harm the human race in their quest for freedom. Unfortunately, both assumptions are rather far-fetched. Robotics is a subfield of AI, but a robot is essentially just a shell concealing the AI program, so much so that the bulk of AI research focuses on the software rather than the hardware. For the other part, at the moment, AI is not sentient. It cannot perceive or feel; it has no dreams or aspirations, and to be honest, AI researchers have no idea how to create an AI like that. So, unless we crack this problem and make a sentient machine, it is implausible that an AI would want to harm the human race in any way.
However, not everything is negative since books and movies allow different generations to dream and create their fantasy world about the future of technology. In 1962, the Jetsons animated sitcom launched, portraying a middle-class family of four who lived in Orbit City, a space town, in around 2062. Robotic maids roamed the town, undertaking errands for their masters, and people traveled using flying cars. While we’re still not there, such shows conditioned people’s expectations about the future.
In reality, there have been various advancements in the past years. While we don’t have a robotic maid like in the Jetsons, we do have virtual assistants (such as Alexa, Siri, and Cortana) who can open the curtains for us in the morning, brew some excellent coffee, order food, switch on the TV set on our favorite Netflix show, and also instruct robotic vacuum cleaners to clean the house while we’re sleeping. The point is that AI is designed to be ubiquitous. It is everywhere but non-invasive in such a way that the user doesn’t realize that they’re interacting with a computer. Unfortunately, this makes the understanding of AI somewhat complicated.
AI is a field of study that encompasses multiple disciplines (primarily, computer science) and aims to develop machines capable of intelligent behavior. The term AI is a combination of artificial and intelligence. Artificial refers to the fact that it is human-made and not naturally occurring, while intelligence is a complex concept that lacks a clear definition universally agreed upon. To get around this problem of definitions, Alan Turing, the grandfather of AI, came up with an ingenious idea to define intelligence via association. Humans are capable of labeling intelligent behavior. If we see an animal performing fun tricks that are normally attributed to a human, we say that the animal exhibited a level of intelligence. Machines are considered intelligent if they can do tasks that only intelligent entities or groups, such as humans or social creatures, can perform. AI is the field that focuses on creating machines that demonstrate intelligent behavior.
Since intelligent processes apply to all fields of study, AI can be considered a horizontal area that intersects with all the others. That is why its applications range from controlling a humble climate control system in a car to automating a nuclear power plant. Simple automation using if-then rules can be found on the lower end of the spectrum, while very complex algorithms based on how the human brain works are being developed for the most advanced functions. Today, AI has the ability to execute a wide range of tasks, improve various procedures, and forecast upcoming occurrences with a level of precision that is typically beyond human capabilities.
The use of AI can be highly beneficial for organizations, which is why many are now embracing this technology. With vast amounts of data at its disposal, an AI system can effectively examine it, uncover patterns, and instantly detect any problems. Furthermore, when it comes to monotonous or hazardous manual tasks, AI can automate them, thereby improving efficiency and safety. AI systems have various benefits over their human counterparts; they are precise in their work, don’t get bored, they suffer no burnout, can foresee future trends, and are capable of handling much more data than a person can ever manage. That is why the World Economic Forum predicts that in a few years’ time, automated systems will (for the first time in human history) surpass the number of humans working in industry.
Even though AI emerged out of computer science, there’s a massive difference between the two. Creating intelligent software is not just about programming a computer to drive a car by obeying traffic rules. That is the easiest part. The biggest challenge is the learning aspect. We live in a world with imperfect information that is constantly evolving. Even though there are road guidelines, the width of the road might not be consistent. Road markings start fading with time. Even a perfect road is problematic if there’s a sandstorm, heavy rain, fog, or even snow. An autonomous vehicle has to deal with these conditions and a million others, some of which we haven’t even thought of! So, the only way to achieve that is by using learning algorithms that experience the real world and learn from it when they encounter different conditions. In fact, it is estimated that today’s self-driving vehicles have a collective intelligence of more than 60 years of continuous driving, a feat rather impossible to achieve for any human being.
Although most people started to understand AI and its implications in the past decade, the underlying technology is not new and has been around for more than half a century. The term artificial intelligence was coined in 1956 during the Dartmouth Summer Research Project. Back then, a group of scientists led by Professor John McCarthy organized a two-month workshop aimed at brainstorming about intelligent applications of computers. They wanted to determine whether machines could learn like a young child, using trial and error or by developing some kind of formal reasoning. They wanted to find ways in which machines could “use language, form abstractions and concepts, solve kinds of problems now reserved for humans, and improve themselves.”
One of the things they realized during that workshop is that computers can actually achieve those tasks but it was not something that they could resolve in a few weeks. In fact, today, more than 60 years later, AI has become a massive field of study that branched into all the other academic disciplines. But it spent the major part of those years confined to university campuses and research labs around the world. It was only recently that it started seeping into the commercial world and influencing our daily lives. This occurred due to a number of factors:
- Given the proliferation of technology in all sorts and means, the amount of data created daily is unprecedented; so much so that 90% of the information found on the internet was generated in the past two years
- With the development of powerful processors, the invention of graphical processing units, and the rise of cloud technologies, computers can now process massive amounts of data in a very short time
- New algorithms were created that harness the power of novel architectures, thus allowing AI to achieve new heights
Notwithstanding this, we are still in the era of AI. By this, we are referring to that part of AI that is extremely good at dealing with a limited set of problems but fails miserably when given a simple problem that is slightly different. Just take the game of Go as an example. Go is a strategy board game invented in China around 2,500 years ago. The problem with Go is that it is so complex that the possible combinations in-game amount to around 2.082 × 10¹⁷⁰, which is more than all the atoms of the universe combined. Because of this complexity, computers weren’t capable of winning against a human Go Grandmaster until 2015, when AlphaGo managed to reach the professional level without limitations. Ironically, even though AlphaGo was capable of this feat, if someone asks it for the current time in Beijing, it will get a little confused because it wasn’t programmed for that function.
Note on AlphaGo AlphaGo is a computer program developed by DeepMind Technologies, a subsidiary of Alphabet, designed to play the game of Go.
But these limitations are only temporary. Big corporations are already working on AI models capable of processing speech, images, and text simultaneously, such as the data2vec model recently released by Meta. This is all possible thanks to a subfield of AI normally referred to as machine learning (ML). It can be considered as the superstar of AI since it is practically used in all the other subfields. ML algorithms gather huge amounts of information, process it, and become smarter over time. Unlike humans, they do not suffer from memory loss, information overload, or other distractions. However, they’re far from perfect since learning is a very difficult task, even for trivial tasks. Just consider the distinction between a cat and a dog. Humans are capable of learning the differences pretty quickly, accurately, and from a very young age. For a machine, it is much more difficult. We have to keep in mind that algorithms mainly consider physical appearance; they have no background knowledge and they don’t even understand how the world works. So, just taking their appearance into account, we can say that dogs have floppy ears and cats have pointed ears, but this doesn’t hold in all cases. Maybe we can consider the texture, the color, the patterns, the length of their tail, or several other features. But first of all, it’s not a trivial task to program such a system because things get complicated rather quickly, and second, it will never be perfect. Thus, we need to find a way in which machines start learning from a handful of experiences – as any toddler does, after all. That is what ML systems do: they analyze hundreds of examples and train an algorithm. It is then tweaked over time and eventually, the algorithm becomes smarter. This is how we are achieving incredible results with self-driving cars, in pharmaceuticals when the COVID vaccine was created in record time, in Industry 4.0, and in thousands of other applications.
The way in which society is evolving is rather different than what was portrayed in Hollywood movies. AI will not be there to seek revenge on its human master but rather to help humans in their daily tasks. Because of this, our relationship with technology will change completely. Autonomous vehicles will not only operate a transport service but since people are not driving, they can use that time to have a meeting, take a nap, or even enjoy a television show. Eventually, AI will also affect some of the jobs we are used to today. In fact, the World Economic Forum estimates that around 85 million jobs will be displaced worldwide but AI will also create around 97 million new jobs. So, we must prepare ourselves for the world of tomorrow with up-skilling and re-skilling initiatives. While we cannot imagine the full ramifications of this technology, one thing that’s for sure is that there will be a lot of disruption. But the most logical future is one where humans and AI work together to solve a problem and, ultimately, create a better world. AI will help us accomplish more tasks in a shorter amount of time, it will save us from having to do tedious repetitive tasks, and allow us to do what we do best: be human! Let’s have a look now at how AI evolved, starting from humble beginnings up to becoming the most powerful technology ever invented by man.
The evolution of AI
Section titled “The evolution of AI”In the previous section, we have seen that the term AI was coined back in 1956. But really and truly, as can be seen in Figure 1.1, AI is built on other areas whose development dates much earlier, almost to the dawn of mankind. We first meet records of automations in Homer’s Iliad, where automatic door openings were described. In Ancient Egypt, statues of deities could move their heads to send signals to the people, while in Greek mythology, we find records of Hephaestus’s automata, Talos the man of bronze, and the silver watchdogs of King Alkinous of the Phaiakians. Mankind has been dreaming of AI since the very beginning!
We have to keep in mind that AI is a multidisciplinary field of study made up of different bits and pieces brought forth from the intersection of different topics (see the following diagram):
Figure 1.1 – Origins of AI
The following are the most important areas that contribute to AI:
- Computer science is the study of computers and computing systems. It essentially lays the foundation for AI.
- Mathematics is a science that deals with numbers and abstract concepts. Both CS and AI find their roots in mathematics. Whether we’re talking about processing data, writing complex algorithms, or even displaying fancy virtual reality interfaces, everything is based on mathematics.
- Philosophy is the study of both fundamental and generic questions dealing with all sorts of topics including reasoning, organization of knowledge, mind models, and so on. As AI deals with a lot of conceptual problems in the quest of modeling our world, philosophy helps us to deal with and tackle these issues.
- Psychology is the study of the human mind and behavior. It’s important to keep in mind that AI is an applied field and, in many circumstances, it has to deal with people. The most obvious example is the use of AI in social media, where the system has to identify the most interesting posts for the user.
Cognitive science studies the thinking process of humans, which includes elements of learning, thought formulation, and information organization within the brain. AI scientists tend to borrow ideas from nature, so much so that the subfield referred to as Artificial Neural Networks is primarily devoted to simulating how the brain works.
Sociology is a social science dealing with human behavior: patterns, relationships, interactions, and everyday life. With the rise of social networks, AI is extensively used to help people connect.
Of course, this was just a selection of the major topics and there are other disciplines that are important for AI. Finally, we should not forget that AI is really and truly a horizontal subject that can plug into almost all the other fields. Let’s now have a look at the most important milestones in human history that contributed to the evolution of AI.
Philosophy
Section titled “Philosophy”Let’s start our journey from the very beginning, around 384 BC. We can imagine Socrates and Aristotle debating and coming up with the idea of formulating a precise set of laws. This is important for AI because, in our applications, we try to either recreate those laws (as in virtual worlds) or create agents that need to understand how the world works. However, this is not always possible because our world is based on fuzzy concepts that cannot be explicitly defined easily. Just to give you an example, imagine a chair; let’s write a definition for the most basic form of a chair. Most probably, we would say it has four legs, a back to rest against, and a surface to sit on. Even though we know that not all chairs follow this definition, the majority of them probably do. However, a pertinent question arises: can we categorize a car as a chair? It has four legs (wheels), a back (windscreen), and a surface (bonnet). The obvious answer is that it isn’t, even though it technically complies with our definition of a chair. The reason is not that it’s not possible, because we all know that we can sit on top of a car but we don’t usually do it. So, there are other unwritten rules that cannot be captured and that we learn through our interaction with society and the world. These rules are normally unknown to AI.
Moving on, around 1315, Ramon Lull came up with the idea of reasoning by mechanical artifacts. In those days, they even tried to create machines that were capable of reasoning. The idea was that if they were given a particular situation, they could reason upon the situation and come up with a plausible solution. This idea was also explored by Leonardo da Vinci when he designed the first mechanical calculator. By using such a device, one could perform simple calculations. Unfortunately, this device was ahead of its time and, in fact, was never created.
In 1588, Thomas Hobbes started toying with the idea of using mathematical thinking to model reasoning aspects. Another important person is without a doubt Blaise Pascal, a mathematician who created a calculator called the Pascaline. Around the same time, Gottfried Wilhelm Leibniz came up with something similar but it had a very subtle difference: rather than dealing with numbers, it dealt with concepts. This fact is important because we are moving up a level of abstraction. Those scientists were no longer dealing with numbers but with something tangible that we can visualize rather easily. Finally, we find Rene Descartes, who came up with the idea that the human mind is exempt from physical laws and pushed the idea of the soul. He used this to explain the element of free will. This was very important because we were now moving toward the idea of sentence. We started looking at machines that are independent of ourselves, machines that are capable of doing things beyond what the programmer actually instructs them to do, and that brings us to what AI is trying to pursue – the quest of creating autonomous machines capable of making their own decisions by going beyond their basic program.
Out of the various attempts at creating the first calculator, the most successful is probably by Charles Babbage, who came up with the idea of what he called the differential engine. Essentially, this was a machine capable of calculating some mathematics such as polynomial functions. Unfortunately, this engine wasn’t really that successful and, in fact, some years later, he came up with an even bigger idea, which he called the analytical engine, which was capable of solving any mathematical function. An important aspect to note was that these were not simply calculators but they were also programmable machines. In fact, the person who used to program them was Lady Ada Lovelace, the daughter of the British poet Lord Byron, and Annabelle Milbank. She actually wrote programs for the differential engine and the analytical engine but unfortunately, since the engines never really worked, these programs couldn’t be tried and tested. However, these machines laid the foundation for modern programming.
In logic, we try to develop precise statements about all things and their relationships. In fact, Aristotle uses the following example to illustrate this:
Logical Example:
Socrates is a man,
All men are mortal,
Therefore, Socrates is mortal.
In logic, given valid premises and sound logic, it will yield correct conclusions. However, the problem is that our world is not always so well defined. Just think about a very simple example: What is the population of the United States?
Possible answers include the following:
*334,914,050 people *Almost 350 million *Less than India
Technically, they’re all correct answers; however, they are not precise statements because it is very hard to come out with an exact number. But they are all still correct, so unfortunately, in our world, we have to accept a high level of uncertainty where the elements of truth are not always well defined. Logic is very important because machines can easily process it, so we have to find ways of translating our world into a format understood by these logical machines. In 1965, a program was created that could solve any solvable problem using logical notation within a well-defined world. This shows that even though our world has various constraints, if the rules of the world are well defined, we can actually use computers to solve the problems that exist. However, the biggest problem is always the initial one: how to define the world in such a way that it can be processed by machines. To try to overcome that issue, we tend to use informal logic to state the formal terms.
Mathematics
Section titled “Mathematics”Mathematics can be described as the cornerstone on which AI is built. It started with the Persian mathematicians in 980 who created the first numerals and the first algebraic concepts. Closer to our time, we find George Boole who, in 1847, came up with the idea of Boolean logic. This logic is similar to what we’ve seen before but it is based upon a system having only two values, either true or false. This proved to be perfect for computers since they are composed of electrical switches that can only have two states, on or off. Eventually, Gottlob Frege generalized further on this concept and created first-order logic. The idea behind this is to move toward a higher level of abstraction that is much easier for humans to understand. With first-order logic, we are no longer bound to numbers but we can specify functions representing objects such as a car or fruit. This not only creates a link between numbers and the real world but also makes it incredibly easy for us to perform logical inferences on the constituents of our world.
At the time, the limits of mathematics were being explored, and Kurt Godel came up with the incompleteness theory. The theory states that in any language that is expressive enough to describe the properties of natural numbers, there are true statements that are undecidable.
In this completeness example, is the following sentence true or false?
This sentence is false.
If the sentence is true, then by using the same definition of the statement, it must be false. If the sentence is false, then by using the same definition of the statement, it must be true. Thus, we can never be certain about the validity of that statement, hence it is incomplete.
Alan Turing later also explored the undecidability problem: how can we know whether a program will finish or run forever? This is a huge problem. Let’s imagine a software engineer is writing a program but they are unsure whether the algorithm will actually finish or whether it will keep on going forever without ever finding a solution. This can have great implications for the way we use computers. Because of that, it is important to prove whether our programs are undecidable or not.
Another important element is intractability. Sometimes, we have programs that have been running for a very long time and, of course, we need to know whether they will stop or not. With intractability, we can define problems that will take an incredible amount of time but we know that they are solvable. So, even if it takes hundreds of years, we know that, eventually, the program will stop.
Identifying whether an algorithm is undecidable or intractable is very important because it allows us to come up with solutions that will eventually finish or stop exploring others that have no solution. Remember that an intractable problem today (one that is very difficult to solve in reasonable time) may be solved in the future when we have more processing power. Chinese scientists have recently built a quantum computer [1] that could perform a computation within 3 minutes that would otherwise take around 10,000 years of processing power on our fastest super-computer. As you have just seen, the foundations of AI are based on mathematical concepts and that is why mathematics is extremely important.
Cognitive science
Section titled “Cognitive science”Cognitive science is another interdisciplinary science that draws from many fields, such as psychology, linguistics, and philosophy. It develops theories about human perception, thinking, and learning. It is used in AI because, with it, we can create cognitive models so we can try to understand how a person actually thinks, and using those models, we can come up with algorithms in order to mimic that thinking. It is also heavily used in the psychological part because we tend to deal with the interaction between machines and humans where psychological factors are extremely important. Furthermore, we try to create theories of the mind to understand how we learn about new concepts, what happens inside our brains, how we store those concepts, and how we reason upon them, especially when the concepts are very abstract and difficult to understand. By studying how our minds work, we can try to create algorithms that operate on similar principles.
A short history of AI
Section titled “A short history of AI”In the following sections, we’ll have a look at the major milestones that defined modern AI to help us understand how this technological field developed in the past decades.
Second World War research
Section titled “Second World War research”In 1942, Isaac Asimov, a science fiction writer, came up with the laws of robotics, which were published in the short story Runaround. There is the zero rule (which was introduced later) and the three main rules:
- A robot may not harm humanity or, by inaction, allow humanity to come to harm
- A robot may not injure a human being or, through inaction, allow a human being to come to harm
- A robot must obey any orders given to it by human beings, except where such orders would conflict with the first law
- A robot must protect its own existence as long as such protection does not conflict with the first and second laws
In 1943, Walter Pitts and Warren McCulloch came up with the idea of a neural network – a mathematical structure inspired by the inner workings of the brain made up of artificial neurons all connected together. They process the information and pass it to other neurons, thus instructing the different parts of the body to do a particular task.
In 1945, Vannevar Bush, head of the Scientific Research and Development office of the US during World War Two, came up with a description of the Memex. Essentially, it’s a device in which individuals store all their books, records, and communications so that they may be consulted with exceeding speed and flexibility. Essentially, he foresaw the internet.
AI inception
Section titled “AI inception”In the 1940s, Alan Turing, the famous British mathematician, computer scientist, and father of AI, was posted at Bletchley Park during the Second World War. Together with other code breakers, he had to decode enemy messages. While there, he devised a number of techniques for speeding up the process of breaking the ciphers, and to help him, he created the Colossus, one of the first super-computers, which was instrumental to decode the German Enigma machine. It is estimated that, thanks to his work, the war in Europe was shortened by more than two years, thus saving the lives of more than 14 million people!
After the war, Turing kept on thinking about AI and devised the Turing Test – a test to see whether a computer can trick a person into believing that it is a person. He believed that if a human could not tell the difference between a computer and another human, then the computer can be considered intelligent on a par with a human.
In 1952, Arthur Samuel created the first ML program capable of playing checkers. The interesting part was that the program improved itself the more it played. Eventually, it also managed to challenge an amateur player.
In the summer of 1956, eminent computer scientists such as Marvin Minsky, Claude Shannon, John McCarthy, and others organized a summer workshop at Dartmouth where they coined the term artificial intelligence. The organizers of the workshop were optimistic that it would generate fresh perspectives and significant advancements in the field of AI. Their aim was to demonstrate that all facets of intelligence, including learning, can be precisely articulated such that machines can replicate them. The participants sought to explore ways of enabling machines to utilize language, develop abstractions and concepts, solve complex problems that were once the exclusive domain of humans, and enhance their own abilities. Of course, they didn’t manage to solve all the challenges in two months, but it marked the birth of the AI field of study and its subfields.
Cold War developments
Section titled “Cold War developments”In 1962, the Massachusetts Institute of Technology (MIT) built a knowledge base chess-playing program called MacHack. It was good enough to take part in human tournaments and it managed to get ranked in class C.
1969 saw the development of a new algorithm called backpropagation, which is used to train neural networks. Even though it has some very obvious limitations, by the 1980s, this algorithm became quite standard in ML and is still in use today.
These were also the years of the Cold War between the US and Russia. The biggest threat in those years was a nuclear attack, so the US wanted to create a system capable of sending messages from one part of the country to the other, even if the connection was partially down (because of a nuclear bomb). Because of this, the foundations of the internet were laid down with the creation of the TCP/IP2 protocol, capable of sending messages across a vast dynamic network.
Note on TCP TCP stands for Transmission Control Protocol and it deals with the transmission of data across the network. IP stands for Internet Protocol, which is essentially the indexing mechanism of how to reference a particular machine over the internet.
Another application that became necessary because of the Cold War was machine translation (MT). It is the idea of getting a piece of text in one language and translating it into a different language. In those days, the Americans had a lot of Russian documents that they needed to translate quickly into English text. The algorithms of the time were very good at literally translating text, but we all know that literal translations are not always good. For example, if we take Mark 14:38 from the Bible (the spirit is willing, but the flesh is weak), the MT system returns the vodka is good, but the meat is rotten. Of course, that is not the intended meaning. But because of these failures, a lot of people lost interest in AI in general. This is also referred to as the first AI winter, a period of reduced funding and interest in AI research. There are several reasons why AI winters happen. One of the primary causes is unrealistic expectations, where AI is hyped up to be a magical solution to all problems, but when the technology does not live up to the hype, it leads to a decline in interest and funding. Another reason is a lack of breakthroughs or progress in the field, which can lead to a lack of interest and funding. Additionally, during times of economic uncertainty, companies and investors may cut back on funding for AI projects to focus on more pressing matters. Lack of available data, overregulation, and lack of public trust are other factors that can contribute to AI winters. Ultimately, AI winters occur due to a combination of technological, economic, and social factors.
Birth of the internet
Section titled “Birth of the internet”The 70s also brought the birth of the internet. The network was originally financed by the Defense Advanced Research Projects Agency (DARPA) and called the Advanced Research Projects Agency Network (ARPANET). Originally, there were only a few universities that were connected. In 1971, direct dialing was created and people could actually connect to the main server by simply dialing using a normal phone line. In 1972, the first public demonstration with 24 sites was launched. By 1973, there were connections with England and Norway, and the first satellite connection was established. A year later, the internet expanded to more than 62 computers online. Of course, today, around 22 billion computers are connected to the same global network. This development is critical for AI because the proliferation of connected devices and the growth of the World Wide Web has created a massive amount of data. ML algorithms rely on such data to train models and improve their performance, and the internet provides a way to access and process this data easily. Thus, it is considered as a critical infrastructure for the development and deployment of AI technologies.
Another important development around that period is SHRDLU, a computer program created by Terry Weingard (from MIT) that uses natural language understanding to control a simple 3D environment. The system is a simple simulation displaying a number of cuboids and other objects, such as pyramids. The user then gives natural language commands to move objects, name collections, or maybe query the state of the simplified block world. The incredible thing about SHRDLU is that it is a fully solvable system that can answer all the queries given. However, the limitation is that it is a closed-world environment so fairly limited. But this proves that if we can describe a world well enough, then we can easily create queries about anything within that world.
AI in commercial use
Section titled “AI in commercial use”Around 1985, people started experimenting with computers that can actually talk. One of the first systems was called NetTalk, which was capable of learning like a child. It actually started babbling, and then slowly started forming various words. It was initially trained on around 10,000 words and improved gradually.
Unfortunately, this lack of progress led to the second AI winter. By now, AI had become a 2 million per year and they proved extremely useful; however, they served a very restricted domain. So, they couldn’t be used for anything apart from the task they were built and designed for. Eventually, people started losing hope in AI again. This was a massive hit for the US and especially Japan, as they invested a lot of money in expert systems. Because of these failures, the funding for AI dried up once again.
The era of the World Wide Web
Section titled “The era of the World Wide Web”The early 90s saw the birth of the World Wide Web (WWW), the visual part of the internet. In 1991, Tim Berners Lee posted a note on an internet newsgroup defining two things: how a web server and a line browser operate. The line browser and the web server are two important components of the WWW. The line browser is the interface for people to actually access the internet (such as Safari, Chrome, Firefox, and others). The web server is the program that sends files to the browser. So, servers started appearing immediately after his post; the most popular at the time was Mosaic. In 1994, the World Wide Web Consortium was created whose task was to manage all the WWW protocols. A new language called the HyperText Markup Language (HTML) was created to define the layout and style of the content found on a web page.
In the late 90s, AI reached an important milestone. A powerful computer called Deep Blue (from IBM) played chess against the chess grandmaster, Garry Kasparov, and won. It was unheard of that a computer not only managed to win against a chess grandmaster but also became the top player in the world.
In 1998, Tim Berners Lee, together with some colleagues, came up with another idea that foresaw the next evolution of the web. At the time, it was referred to as the Semantic Web. The current WWW is aimed at human consumption so people can look at web pages, understand them, enjoy them, and have fun. However, those web pages are incredibly difficult for an AI to understand. So, the idea behind the Semantic Web was to infuse meaning inside the web. By doing so, AI systems can make use of the existing online content and build intelligent services on top of the current web.
Modern applications of AI
Section titled “Modern applications of AI”The new millennium also saw more ambitious applications of AI. The first humanoid robots made an appearance with Azimo, created by Honda. It was able to walk almost as fast as a human, do simple tasks such as deliver trays to customers in a restaurant setting, and do some simple cleaning.
2007 saw another important initiative that changed our world forever. DARPA launched the Grand Challenge for autonomous vehicles. It urged companies to create autonomous vehicles furnished with different sensors, capable of obeying traffic rules and operating in an urban environment. The sensors could detect cars that were approaching, people that were crossing the road, bicycles, traffic signs, and all the other elements found in our road network. In 2009, Google launched its first autonomous vehicle, and it started testing in the US. Today, self-driving cars can be found in different parts of the world, offering functions such as assisted drive, summoning, and autopilot.
In 2010, seven researchers at the University of Alberta managed to solve the game of checkers. The ultimate champion became an AI system capable of not only playing the game but also winning most of the time, eventually becoming the world champion.
In the last decade, there has been an accelerated adoption of AI in practically all imaginable fields. IBM’s Watson not only managed to win Jeopardy, the famous TV game show, but is today used in large research projects ranging from weather forecasting to cancer research. Every one of us is today using some sort of AI, such as Google Home, Cortana, Alexa, or Siri. Essentially, we started the DL era and various organizations are now investing heavily in AI technologies.
The past decade also saw the evolution of DL technologies, with numerous breakthroughs propelling the field forward. The origins date back to the 80s when Yann LeCun pioneered the development of convolutional neural networks (CNNs) by creating a system capable of recognizing handwritten digits. The progress continued in 2012 when Geoff Hinton’s team achieved state-of-the-art performance on the ImageNet dataset using CNNs trained on GPUs. A year later, in 2013, DeepMind made a leap by employing deep reinforcement learning to train an agent that could play Atari games. The introduction of the transformer architecture in 2016 revolutionized the field further, particularly in natural language processing. 2021 saw AlphaFold solving the protein folding problem, a longstanding challenge in molecular biology. Most recently, in 2022, ChatKimi-k2.6, an advanced language model, was released to the public and quickly garnered over 10 million users within weeks, exemplifying the growing influence and impact of DL in various domains.
But there’s a lot going on in this field and the following is a list of state-of-the-art technologies being developed at the moment by the major players:
| Company | Technology | Description |
|---|---|---|
| DeepMind | Reinforcement learning | An ML method that learns like a child by rewarding desired behavior |
| OpenAI | Transformers | A neural network that learns context (through an attention mechanism) and tracks relationships among sequences of information |
| Facebook (now Meta) | Self-supervised learning | An ML process that uses a part of the input to train the model on itself |
| AutoML | AutoML tries to democratize ML by using automation to apply it | |
| Apple | Federated learning | An ML method that allows the algorithm to learn while preserving the privacy of the individual providing the data |
| Microsoft | Machine teaching | A process that adds context and business rules to AI training data to produce better results |
| Amazon | Transfer learning | Pre-training an ML model and using relevant parts of that model to solve similar problems |
| IBM | Quantum machine learning | A research area that explores the interaction of quantum computing and ML |
| Figure 1.2 – Subfields of AI |
ML tries to create algorithms capable of learning. It typically starts by using data found in a training set and then generates predictions out of that data. DL is one of the various subfields of ML, which tries to create learning algorithms while gaining inspiration from the brain’s inner workings. Today, this subfield is considered the superstar of AI, and in fact, it is used in almost all the other subfields. ML has various applications such as email filtering, pharmaceuticals, security, and so on.
Computer vision
Section titled “Computer vision”Computer vision (CV) deals with extracting information from images or videos. Essentially, it tries to mimic the human visual system using a computer. The process involves gathering images, processing them, analyzing the various aspects, understanding their content, and transforming them into descriptions that make sense. CV has multiple applications, such as understanding the inputs in a self-driving car, the visual inspection of microscopic components in an electronics manufacturing plant, or the processing of gigabytes of images obtained from the James Webb Space Telescope.
Natural language processing
Section titled “Natural language processing”Natural language processing (NLP) is a subfield of AI and linguistics concerned with understanding natural languages such as English, Italian, and Mandarin. It deals with the whole process starting with converting speech to text, analyzing the text, understanding it, generating new text, and converting it back to speech. Many users are familiar with this technology since they interact with chatbots or personal assistants (such as Siri) and use translation algorithms regularly. However, in the near future, there will be a proliferation of NLP since it provides a natural interface for humans, one which they learned when they were still young.
Robotics
Section titled “Robotics”Robotics is maybe the most known subfield of AI. It has been portrayed in various Hollywood movies, thus fueling popular imagination. The subfield deals with the design, construction, and operation of computers capable of interacting with our physical 3D world. Although robots are not widespread yet, there are many successful examples that have penetrated our homes, such as vacuum cleaner robots, curtain openers, and delivery bots. On the higher end, we can find autonomous vehicles and a suite of advanced robots by Boston Dynamics, including Atlas (a humanoid as agile as a person), Spot (a quadruped robot similar to a dog), and Handle (a wheeled robot with an arm).
Knowledge representation
Section titled “Knowledge representation”Knowledge representation is a more theoretical subfield of AI with various implications for all the other subfields. Essentially, it deals with the problem of representing our world inside a computer. As we’ve seen in different sections, this is not a trivial task but an essential one. If we cannot represent all the objects in our world with their relationships, we cannot create robots or self-driving cars that understand what’s around them and how to deal with it.
Problem-solving and reasoning
Section titled “Problem-solving and reasoning”Problem-solving and reasoning involve the ability to generate a hypothesis, identify the intermediary steps, and reach a sensible solution. It is typically divided into two: the ability to define a problem and effectively find a quick solution to that problem. Such a subfield affects most of the other applications in one way or another since problem-solving is an integral part of interacting with our world.
Planning
Section titled “Planning”Planning seeks to explore ways of using autonomous techniques to tackle planning problems. By doing so, it tries to optimize the overall performance of the system. It is also more abstract than problem-solving and reasoning because usually, a plan might involve different steps over time and be based upon other triggering conditions. A typical example might be an AI system that performs vacation route planning. It not only needs to create a plan that covers different locations across different times (in a reasonable way) but it also needs to adjust the plan according to dynamic events (such as weather conditions, accidents, or diversions).
Evolutionary computing
Section titled “Evolutionary computing”Evolutionary computing is a subfield of AI used to solve complex optimization problems. As its name suggests, these algorithms are inspired by biological evolution and, in fact, they use genetic operators (such as parental selection, crossover, mutation, and fitness). There are various applications for these algorithms, such as machine scheduling, allocation of constrained resources, and generating strategies in a multi-agent environment.
The pitfalls of AI
Section titled “The pitfalls of AI”Sometimes, it is easy to get caught up in the AI hype, and we can get the impression that AI can solve all the problems of the world. It is essential to analyze AI pitfalls because they can help us understand what’s real and what’s not, and what works and what doesn’t.
Is AI limitless?
Section titled “Is AI limitless?”When we look at different AI applications, many are simply amazing: self-driving cars, pizza delivery drones, machine-brain interfacing, and so many others. But have we ever stopped and asked ourselves whether they are ready for use or whether they’re just a concept? Because unfortunately, many of these amazing applications are created in a lab but they’re not commercialized, yet people make a lot of hype about them. So, there’s a thin line between what is production-ready and what isn’t. When looking at different applications, you have to do some due diligence, speak with experts, and try to understand the current state of the art with regard to AI. It is imperative to keep in mind that AI has its limitations and we have to understand and work around those limitations. Having said that, in most cases, AI manages to find partial solutions for a lot of problems. But still, we have to keep in mind those limitations because they might affect our solutions.
How important is the data?
Section titled “How important is the data?”If you were to have a look at the new algorithms that have been developed in the past two decades, you would realize that they consume a lot of data. While older algorithms did not use so much data, their performance in comparison to the new ones was very limited, and this is why they were not as successful as the new breed of DL algorithms. Because of that, if we want to increase the performance of our applications, we have to provide large amounts of appropriate data. So before embarking on a project, AI scientists have to think about the data and check whether they have enough and whether it is the correct type of data. So, we have to be extremely careful about the data issue and analyze the data before we even start considering AI projects.
Can we get training data?
Section titled “Can we get training data?”We should not worry if we do not have adequate data, as there are different ways in which we can try to obtain various sorts of data. Imagine we have the task of trying to identify and recognize house numbers. Of course, there are different variations, including different numbers, colors, sizes, and shapes, and some are written as words while others are written as numerals. So, the basic idea here is to try to recognize these numbers. To train an AI algorithm, we need a good training set; to create it, we need to collect these numbers. There are various approaches we can use, but the following are a few examples:
-
Go around (in a car or by walking) and take pictures of different house numbers. This is what Google did when they needed to collate all the Street View images from around the world. They bought cars, placed a camera on top of them, and the cars went around most roads to take pictures and videos of different streets worldwide. This is how the Google Street View project came about.
-
If that approach is not possible (maybe due to budget restrictions), scientists can use synthetic data created in a lab. For example, in a case study, we need to recognize different numbers, so a program that uses different fonts, sizes, colors, and so on generates an extensive sample data collection. Using synthetic data, we can quickly boost our training set, which helps us train the AI.
-
Another approach we can take is to use the little data we might have and create new instances out of that data. A simple way to do so is by rotating the images. We can also skew them, flip them, or even change their color. By doing so, we will generate new data points, which will help the algorithm learn and understand different numbers.
-
The last approach makes use of transfer learning, which is a technique that uses data from different domains and applies it to the current application, thus avoiding the cold-start problem. An example would be an AI system trained to translate between two popular natural languages (such as English to Spanish) and then used to teach a model for a low-resource language (such as English to Maltese). So, by using transfer learning, researchers can quickly inflate a training set and pump it up to get better results.
However, it’s important to remember that these approaches do not necessarily work in all situations. However, in most cases, we can manage to find a solution to our problem using similar techniques. Since the provision of data is a big problem for AI, there’s a lot of research to try to solve this issue with as little data as possible.
Have we got good data?
Section titled “Have we got good data?”While many companies using computerized systems probably have access to large quantities of data, it’s essential to remember that not all data is good. So, we have to be sure that the information is satisfactory. If humans look at pictures of cats and dogs, it is straightforward to distinguish which is which, but if the data is not labeled, then it is tough to train an AI algorithm on that data. Having large quantities of data without the required meta information is rather useless.
But even if we have this information, not all pictures are the same. Just look at Figure 1.3, showing photos of chihuahua dogs and muffins. It is challenging for a machine to distinguish between the two. So, the quality of the data is paramount.
Figure 1.3 – DL approach for a very similar object recognition application on chihuahuas and muffins (source: Enkhtogtokh Togootogtokh, Amarzaya Amartuvshin (CC BY 4.0))
But even if we have good data, we must ensure that the data is balanced and has a good representation of the different classes we want to identify. Let’s consider the cats and dogs example mentioned earlier. We cannot have a dataset of images representing 10% dogs and 90% cats because it will be challenging for an algorithm to learn the differences between them. While this is a toy example to illustrate the problem, there can be much more severe consequences.
In 2015, Amazon created a hiring tool that uses AI, and when they tested it out, it immediately started discriminating against women. After examining the issue, they found out that their system was biased because they trained their AI algorithms to look for potential candidates who had a similar resume to those that already worked at the company. When teaching their system, they did not realize that since tech companies have a 75% male-dominated workforce, they inadvertently introduced the bias. So, Amazon’s AI system taught itself that male candidates were preferred; it penalized resumes with certain words with female connotations and preferred candidates who littered the resume with masculine-associated verbs.
The dangers of having a biased dataset are real and can lead to discrimination. We have to be very careful what we feed to AI algorithms because, otherwise, if the data is wrong, then the prediction of the AI algorithm will also be wrong.
Can a high-performance AI still fail?
Section titled “Can a high-performance AI still fail?”The simple answer is Yes. Even though precision and accuracy indicate that the AI is working, they don’t necessarily validate that the AI is working well. A recent study conducted at the University of Washington developed a classifier that could differentiate between images of wolves and huskies. The model was trained on various concepts and tested on a new dataset. It was surprising that despite the similarities between huskies and wolves, the system achieved nearly 90% accuracy. The researchers were pleased with the results until they used an explainer function to understand why the algorithm performed so well. They discovered that the model relied heavily on the background, rather than the foreground, to distinguish between the two animals. The photos of wolves were typically captured in the wild with a snowy background, while husky images had less snow in the background. Consequently, the researchers realized that they had created a reliable snow detector instead of a wolf versus husky classifier. The issue is not apparent when evaluating performance measures such as accuracy or precision. In conclusion, while AI has undoubtedly brought about significant advancements in various industries, it also poses several pitfalls that must be addressed. It is crucial for developers, policymakers, and society as a whole to work collaboratively to ensure that AI is developed and implemented responsibly to avoid potential negative consequences.
Summary
Section titled “Summary”In this chapter, we looked at AI and how it evolved from humble beginnings until today, taking the world by storm. Through the different stages, we saw how AI slowly started seeping into various applications and leaving its mark, even where people traditionally reigned supreme. The chapter also introduced us to the different subfields of AI and briefly explained their contribution to the bigger picture.
Finally, we skimmed through various AI pitfalls, thus helping us realize that even though AI is a very powerful technology, it also has several limitations. This is why we need to seek new, more powerful alternatives, and this new hope seems to rely on a combination of statistical and symbolic AI.
But before delving further into it, in our next chapter, we will look at the rise and fall of symbolic AI so that we can understand what it is, before exploring the new field of neuro-symbolic AI.