Conclusions and Reflections
local graph
Chapter 10 — Conclusions and Reflections
Section titled “Chapter 10 — Conclusions and Reflections”We have been on quite a journey throughout this book. I’ve learned a lot, and I hope you have as well. I’ve had the chance to revisit my love of robotics and spend a lot of time examining the state of the art of artificial intelligence (AI) and robot design to try and find a way to explain the concepts to you in an easily digestible form.
In this chapter, we will discuss finishing our robot. I’ll provide you with some advice on careers in AI and robotics. We will also talk a little about the future of AI, at least as I see it, and finish with a discussion about risk.
The following main topics will be covered in this chapter:
- Learning when to stop
- Careers in robotics
- Exploring the current state of AI
- Understanding risk in AI
Learning when to stop
Section titled “Learning when to stop”Over the last nine chapters, we’ve worked on designing a specific robot to perform a specific task. We designed Albert the robot to pick up toys in an unstructured environment, namely a family home. To do this, it needed to be able to recognize toys with a camera, pick up toys with a robot arm and hand, navigate inside a house, and deposit toys in a toy box. We also added interaction, teaching the robot to listen and react to commands. Finally, it received an artificial personality and simulated emotions.
So, the next question is, are we finished with designing, building, and testing our robot? Sometimes, the most difficult part of designing, building, and testing a robot is determining when it is finished. Quite often, I see that some little thing might be improved, or some detail added, or some feature enhanced. Oh, the robot needs a spotlight. It would be nice if it could remember what toys are in the toy box. What if it had two arms? And so on. You can continue in this vein forever, tinkering and adding, never quite finishing anything.
The solution to this is to set specific goals and measure against them. For example, we want the robot to pick up toys. How many toys? All of the ones that are on the floor. So, we can run several trials and, if at the end of each test, all of the toys have been picked up, that is finished. But what if not all of the toys have been picked up? What is good enough? How about we say if we can pick up any remaining toys in one pass by holding them all in our hands, then that is acceptable. What level would not be acceptable? Well, picking up no toys at all is not acceptable. What about half? Would we consider that OK? I’d say probably not. You can continue this self-conversation until you say with some clarity where the finish line is. Then, once you’ve crossed it, you’re done.
Sometimes, we have to temper expectations when we’re trying something new or innovative. Expect to spend some time ironing the bugs out. I’ve had the experience of creating something and having the robot do something new and unexpected that ended up being far better than what I started with. For example, I created a robot that had a fairly sophisticated follow me function. It used body recognition to identify humans, and then, when commanded, followed behind one person, even through a crowd – so long as it could always keep the person it was following in its field of view. The robot was programmed to keep a six-foot distance from the person. This means if you walked toward it, instead of away, it backed up. You could then steer the robot backward in any direction simply by walking toward it – my follow me function became a walk ahead function.
Other times, an innovation just does not work, and at some point, it must be abandoned. Generally, you can tell this when you have to keep adding crutches or workarounds over and over again. The software becomes more complex and fragile with each workaround. I had this problem with a sonar-based obstacle avoidance system – the sonar sensor I used was just too unreliable and was very sensitive to the surface involved – for example, it could not see (get any echoes) from polished wooden doors. After a few weeks of testing, we abandoned that sensor and went with another light-based sensor called an Infrared Proximity Detector (IRPD) that worked much more reliably.
In the next section, we’ll take a look at some career paths that you could take if you are interested in robotics and/or AI.
Careers in robotics
Section titled “Careers in robotics”I am often asked what sorts of skills or degrees robot designers need to have, or what courses they should take. I meet a lot of young people at robot competitions, student events, conferences, and recruiting trips. A lot of the advice I give people I have put into this book already – especially now that AI, neural networks, graphics processing units (GPUs), expert systems, chatbots, navigation, and image processing are all important. You need to understand that robotics is an umbrella term that covers a lot of industries and a lot of skill sets.
Who uses robotics? The range of applications is continuing to grow every day. These include the following:
- In the medical field, there is robot-assisted surgery, robotic prosthetic limbs, exoskeletons helping paraplegics to walk, and implantable devices to help people hear and see.
- We have self-driving cars and self-flying airplanes and helicopters in transportation (which is what I do).
- We have robots delivering packages on the sidewalks in San Francisco, and a few companies testing parcel delivery by aerial drone in Africa, Switzerland, Texas, and other places.
- We have self-driving cars being tested in several countries. Safety features that debuted in the DARPA Grand Challenge robot car race in the United States and were developed for autonomous cars – lane keeping, adaptive cruise control, driver assistance, and self-parking – are now common features on even base-level automobiles. There are over 80 companies currently developing some sort of electric vertical takeoff and landing (VTOL) manned vehicle, every one of which uses advanced automation and autonomy as part of its control system. In far western Australia, Rio Tinto Mining has developed the Mine of the Future in Pilbara, where 80 autonomous trucks are remotely operated from Perth, 1,500 kilometers away.
The future of robotics is just being written, and you, reading this book, may play a part in determining the path it takes.
So, what skills are required to design and make robots like the ones I just described? The truth is that a modern robot company would employ just about every skill imaginable. Let’s look more closely at some of these skills:
- Even the simplest robot takes mechanical designers to develop the parts, gears, and levers to make robots move and help package the electronics.
- Electrical engineers work with batteries and motors.
- Radiofrequency (RF) engineers and technicians work with radios and datalinks that are used to connect mobile robots to their control stations (such as an unmanned aerial vehicle (UAV)).
- Cognitive specialists design AI routines, develop robot emotions, and harness machine learning techniques, as well as design user interfaces.
- Writers and artists craft voice routines, write dialogue, design user interfaces, write manuals and documentation, and add creative touches to the inside and outside of the robot.
- Managers and supervisors track budgets and schedules.
- Supply specialists work with suppliers, parts, build-to-print shops, electronics warehouses, and salesmen to get the parts to put together the assembly line.
- Industrial robots are managed by special types of programmers who use programmable logic arrays (PLAs) and ladder logic to control robot arms that paint and assemble components. This type of programming emulates how robots were originally designed using relays and switches.
- Bookkeepers and accountants make sure the bills, as well as the employees, are paid.
- Salespeople, marketing, and customer relations teams get the product sold and keep the customers happy.
All of these skills have to be present in some form in a professional roboticist, particularly if you think you will run your own company. I’ve been part of every size of robot project, from one person to thousands. Each has its strengths and weaknesses, but as a robot designer, you can be sure that you will be the center of the storm, making the magic happen, solving problems, and turning ideas into physical form. To me, there is no more satisfying moment than seeing my creation driving or flying around, doing its job, and knowing that all the hard work, research, coding, mechanics, sleepless nights, smashed fingers and toes, and skipped meals were worth this result.
Now, let’s talk a bit about the hype surrounding robotics and AI that you have probably seen in the news.
Exploring the current state of AI
Section titled “Exploring the current state of AI”There is a lot of hype going on right now in the intersecting worlds of AI and robotics. And a lot of it is just exaggeration.
One common myth is that robots are taking jobs away from people. In truth, robots and automation free up workers to do more productive tasks. The truth of this can be seen in job statistics – unemployment in the US is at a 50-year low (https://www.wsj.com/articles/january-jobs-report-unemployment-rate-economy-growth-2023-11675374490), despite massive improvements in factory automation. However, according to The Harvard Business Review, the improved productivity of robotics creates more jobs than it removes (https://hbr.org/2021/03/why-robots-wont-steal-your-job). The overall level of employment has increased, not gone down because of automation and increased productivity.
I do recognize that the modern worker, even someone like myself, who works in technology, must be ready and willing – at any age – to retrain themselves and to learn and adapt to new ways of working, new economies, and new opportunities. I’ve had to completely retrain myself at least six times as new markets were invented and new technologies emerged. Sometimes, there is a second wave where some technology was invented but then disappeared when it was too expensive for the benefits it provided, or the proper hardware had not been invented yet. Neural networks fit into that category, as does virtual reality, which was a big deal in 1999, and has now re-emerged with very small high-resolution screens that were developed for cell phones.
Looking ahead in AI and robotics
Section titled “Looking ahead in AI and robotics”I’m quite interested in the long-term impact of what has been called the sharing economy, where companies such as Uber, Lyft, and Airbnb create value by connecting suppliers and consumers on a massive scale without owning any of the capital or resources to provide any services. All of this is enabled and made possible by the ubiquitous internet, which continues to grow and evolve at a rapid pace. The availability of the internet has allowed the general public or an individual student to have access to supercomputer-level capabilities to run AI programs such as ChatGPT online, which are too large to fit in a home computer, smartphone, or tablet. I often use the term, “ but that’s a decade in internet years ” while referring to some idea that is maybe 24 months old to indicate the rapid turnover in internet tech. This trend will continue. It will be interesting to see if anyone owns a car in 20 years, or only a subscription to a car service.
Another trend that has become very interesting is the lowering of barriers to entry in a lot of businesses. You used to have to have an enormous machine shop and giant machines to make precision machine parts – before 3D printers came and put that capability on your desktop. Generative AI is AI that can synthesize writing and drawing and can also directly create music, write programs and software, provide advice, and assist users in writing scripts, drawing pictures, and making animations powered by only a text prompt. Do you want to make movies? You can do so on an iPhone. Do you want to start a recording studio? The parts for professional results (with a large amount of effort) are available for less than $200 and you can use AI to generate lyrics, chord progressions, arpeggios, or even song ideas.
One item that fits into that category of lowering barriers to entry is drones or small UAVs. When I started making UAVs, a decent global positioning system (GPS) and inertial measurement unit (IMU) – the things that make unstable quadcopters possible to control – cost tens of thousands to hundreds of thousands of dollars. The real breakthrough in drone technology did not come from aviation, but rather from our cell phones. The developments in cell phones enabled companies to invest billions of dollars in making the next cell phone, smartphone, hand-held computer pacifier, or whatever you would want to call it. The convergence of very small radios, very small GPSs, and very, very small accelerometers enabled an entire world of unmanned flying objects – quadcopters, gliders, airships, airplanes, and hybrid VTOL craft – to emerge. That, along with higher density batteries that came from (you guessed it) cell phones and laptops, allowed people to discover that if you put enough power on it, you can make almost anything fly, including you.
The secret to the flying quadcopter’s amazing success is that the tiny accelerometers (which measure changes in movement) and tiny gyroscopes (which measure orientation changes) became cheap and readily available. Without these sensors, and the robotics algorithms that control them, quadcopters are unstable and impossible to control. Another reason for the quadcopter’s success is that it uses only the throttle setting – the speed of the motors – to control all its aspects of flight, including stability. This compares with the very complicated collective controls and cyclic pitch controls that make a helicopter work. You can see the difference between a radio-controlled helicopter, which is very expensive and only a few people can fly, and a quadcopter, which is quite cheap and can be flown by anyone, with the help of a computer and some sensors. You can add a drone autopilot to a collective/cyclic radio-controlled helicopter and end up with a very controllable drone helicopter. Quadcopters and more complex flying machines use AI for stabilization, adaptive flight control, object recognition, and obstacle avoidance.
The other side of these advances in AI and robotics has also resulted in a backlash from some people and can be described as robot phobia.
Is AI phobia reasonable?
Section titled “Is AI phobia reasonable?”You have probably seen some blazing headlines on the internet from various very credible sources saying some incredible things.
About a decade ago, Stephen Hawking, a leading scientist, stated that “ The development of full artificial intelligence could spell the end of the human race… It will take off on its own and re-design itself at an ever-increasing rate… Humans, who are limited by slow biological evolution, can’t compete, and will be superseded ” (https://www.bbc.com/news/technology-30290540). This quote is frequently used even today by critics of AI.
More recently, Elon Musk suggested that AI could lead to civilization destruction, although he has invested significantly in the growth of AI (https://edition.cnn.com/2023/04/17/tech/elon-musk-ai-warning-tucker-carlson/index.html).
Bill Gates, former chairman of Microsoft, takes a more middle ground, stating that AI presents both promise and concerns. In an open letter, he elaborated on AI’s potential but also discussed the risks of developing this tech. He wrote, “ The world needs to establish the rules of the road so that any downsides of artificial intelligence are far outweighed by its benefits ” (https://www.forbes.com/sites/qai/2023/03/24/bill-gatess-open-letter-suggests-ais-potential-is-both-exciting-and-terrifying/).
First, let me clarify that I do not think I’m in the same league as these gentlemen. But what I am is someone who works every day at the leading edge of AI and unmanned vehicles and robotics, and who attends and speaks at a lot of AI conferences. The source of this fear of AI can be found in any bathroom, hanging on the wall – we are using our mirrors to reflect our motivations and desires onto our creations.
I would liken the state of the art of AI today to a teenager who has managed to strap a V-8 engine to a skateboard – an enormous amount of power with no way to use it. While computers, hardware, and networks have advanced and scaled at an amazing rate, we are still building software the same way today as we did 20 years ago, and many of the advances of AI were invented 40 or 50 years ago. For instance, neural networks were invented in the 1940s (https://link.springer.com/article/10.1007/BF02478259). Genetic algorithms were suggested by Alan Turing in the 1950s. We have been able to make some advancements in applying learning theory now that we have lots of data (thank you, internet) and lots of bandwidth, but we have not created any startling new concepts or capabilities that show any sort of breakthrough in AI. Recent work in generative AI –such as ChatGPT and Dall-E image generation – has created what might be described as a computer version of an imagination (creating data stepwise out of noise), which indeed is a step forward, but still, a generative AI such as ChatGPT is doing what neural networks did before: predict the next word in a sentence.
What is generative AI? In this case, we can ask the AI itself for a definition. The following text was written by an AI program called ChatGPT4 in response to the prompt, “ Can you provide me with a definition of generative AI?”:
“Generative AI refers to a subset of artificial intelligence technologies that can generate new content, such as text, images, music, or code, based on the patterns and information it has learned from its training data. This type of AI uses machine learning algorithms, particularly generative models such as generative adversarial networks (GANs) or transformers, to understand and replicate the complexities of human-generated content.
“The “generative” aspect implies that the AI isn’t just analyzing or processing existing information but actually creating something new and previously unseen. For instance, in the case of text, generative AI can write essays, poems, or code; for images, it can create artworks or realistic photos of things that don’t exist; in music, it can compose new pieces in various styles.”
But is this what is referred to as general AI (software with human intelligence)? I don’t think so. While the hardware and software are advancing, I simply don’t see any path forward that leads to the type of problems that the esteemed Mr Gates, Mr Musk, or Dr Hawking suggested. Why not? We’ll focus on this in the next section.
Comparing the needs of humans and AI
Section titled “Comparing the needs of humans and AI”The reason why I don’t see significant problems is because robots don’t have needs. Humans have needs and ambitions to exist. We are encased in a frail flesh cell, what William Burroughs called the Soft Machine. We must provide air, food, water, shelter, and clothing to protect our fragile shells and interact with other soft machines (people) to reproduce and make more of ourselves. You can argue, as Richard Dawkins did in his book The Selfish Gene, that all of this is simply an evolved way for our DNA to perpetuate itself, and that we are simply the product of our biological programming. It is impossible to separate a human from their needs – if we don’t, we die in a matter of minutes. It is our needs that drive us forward, to come out of the trees, to learn to farm, to build cities, and to make civilizations.
Robots, on the other hand, do not have needs as a condition of their existence. They are just sets of instructions we have set down in electronics – golems with words in their heads that make them move (as described in the book Feet of Clay, by Terry Pratchett). If we don’t provide food to them – nothing happens. If we don’t use them – nothing happens. If we forget them for a week and check on them later, they are still the same.
First, let’s discuss what humans’ needs are. Maslow came up with the hierarchy of needs back in 1943, and he has been quoted ever since. Maslow says that we not just have needs, but they form a hierarchy – the more important needs are at the bottom while the more abstract needs are at the top. We only worry about the need at any given level when all of the needs below it are satisfied, as shown in the following diagram:

Figure 10.1 – Hierarchy of needs for humans
Let’s look at this pyramid of needs in detail:
- At the bottom are the physical needs – air, food, water, and clothing.
- The next level is security – we need to feel secure from predators or from other humans wanting to harm us.
- Above the security needs are social needs – to be in a group or part of society. Humans want to belong to a family, a community, a nation. This drive is very strong, as our invention of war to protect our society attests.
- Next, we have ego needs – the need to be recognized, to be special, to stand out from the crowd we fought so hard to be part of. Remember, we only get to express this once all the other needs are taken care of, so you only worry about recognition once you are part of a group.
- Our final need is called self-actualization, as described by Maslow – we would call it self-improvement, or the drive to improve one’s self. This is where we get athletes, artists, musicians, and people who write books.
Note
It has been a running joke between my wife and me that every textbook we ever read in college contained some reference to Maslow and his hierarchy of needs. This was quite unusual since I studied math and engineering, and my wife’s degree is in human resources. I appreciate the irony that this book now adds to that list of books that reference Maslow.
Now, let’s look at machine intelligence and imagine for a moment what a set of robot needs might look like. I found this an interesting thought experiment – we make a baby robot that is fully capable of learning anything a baby human (or baby mouse, or baby cricket) can. What needs would it have? Let’s look at a modified version of Maslow’s hierarchy of needs:

Figure 10.2 – Hierarchy of needs for robots
We can break this down as follows:
- In contrast to a robot’s needs, hunger is built into humans’ biology. However, in the case of an AI system, we, the creators, would need to build it in. That would equate, as we did in our artificial personality, to electrical power or battery life.
- The next level of needs would be the goals and tasks for which the AI was created.
- The next level up could potentially be curiosity and the need to explore – our AI system would have a drive to acquire more data, or to get access to more resources. Once a robot has data, this gives it the basis to get more data, and so on.
- The next level of needs we would endow to our AI would be the need for friendship or communication, either with other robots or with people.
- Finally, we could give our robot the need for learning, or to acquire and learn new skills and techniques – to grow as a robot.
You may have noticed that we did not cover these subjects in this book, nor any other. We did not talk about giving the robot needs, only how to simulate emotions and some rules for conversation that make no sense to the robot at all. It gets no joy from telling a terrible joke to a 7-year-old because it does not know what any of those concepts are. It just sends electrons down one path or another because we tell it to. The only intelligence here is the reflection and imagination of us, the robot designers. Everything else is an illusion – a magician’s trick.
I get this sort of question quite a lot and felt that I could give you some of my answers if that helps arm you against the critics of AI. The bottom line is that I simply do not worry about AI taking over the world. I don’t mean to say that there will never be a general AI, just I don’t see one coming about in the foreseeable future.
With this context under our belt, let’s discuss how to understand and manage risk in AI.
Understanding risk in AI
Section titled “Understanding risk in AI”One subject I talk about frequently at conferences and in print is the risk of AI in terms of trust and control. I’m not talking about AI running amok here, but rather how to make AI dependable. It is quite interesting that the sort of AI we have been considering – specifically, ANNs – does something very few other computer software do. Given the same inputs and conditions, the output of an AI system is not always the same. Given the same inputs, the AI system will sometimes come up with a different answer. The formal name for this behavior is non-determinism.
There is a second corollary to this. Given the same inputs, the AI process will sometimes take a different amount of time to complete its task. This is simply not normal behavior for a computer.
Admittedly, we are not using AI to get answers to math questions such as 2+2, but rather how to do things such as diagnose a cancer tumor or recognize a pedestrian in a crosswalk for a self-driving car. How do we deal with a computer output that may be wrong? You can verify this for yourself – look at the examples we covered when we performed training on neural networks. Did we ever achieve 100% success from a training run, where we got all of the answers right? No, not once. This is because ANNs are universal approximation functions that map inputs – which can be quite complex – to outputs. They do this by dealing with probabilities and averages, which were developed over time. You can think of an artificial neuron as a probability engine that says, 45 out of the last 50 times I got this set of inputs, the output was supposed to be true. The odds are it will be true this time. And it sets itself to true. We may have millions of little artificial neurons in our network, each of them making the same sort of calculation. The net result is making a very educated guess about the answer.
For most applications of our neural networks, this is acceptable behavior. We are classifying pictures, and it is acceptable if a few are wrong. We do a Google search for platypus, and we get one picture out of 100 Platypus brand tennis shoes. That is OK for a Google search, but what if we were doing something more serious, such as recognizing pedestrians in a self-driving car? Is it OK if we misidentify one pedestrian out of 100 and don’t avoid them? Of course not. That’s why, right now, we don’t allow AI systems in such critical functions. But people want to use AI in this way – in fact, quite a lot. It would be great to have an AI system that recognizes geese in flight and tells your airliner how to avoid them. It would be great to have an AI system recognize that a patient was misdiagnosed in the hospital and needed immediate attention. But we can’t do that until we come up with processes for dealing with the non-deterministic and thus non-reliable nature of AI.
Currently, we deal with non-deterministic elements in automobiles all of the time. They are called drivers. It is widely believed that the vast majority of car crashes are caused by the human element, which is why we need self-driving cars with a better percentage. How do we deal with human drivers? Let’s look at the necessary criteria for a driver:
- We require them to be a certain age, which means they have gained experience
- They have to pass a test, demonstrating competency in accomplishing tasks
- They have to demonstrate compliance with rules and regulations by passing a knowledge test
- They have to get periodically re-certified by renewing their license
- We also require seat belts and airbags to partially mitigate the risk of the human driver making mistakes by reducing some of the resulting injuries
We can apply these types of criteria to AI. We can require a certain amount of training cases. We can test and demonstrate a level of competency. We can predict the level of errors or mistakes in advance and put measures in place to mitigate that risk. Perhaps we can have two AI systems – one that detects obstacles and another that has been trained to recognize that the first AI has made a mistake. If we have a 90% chance of the first AI being right, and another 90% chance of the second AI being right, then we have a 90% + (90% of 10%) = 99% chance of avoidance.
I think the key to using AI in safety-critical applications is being able to predict risk in advance, and designing in advance to mitigate either the cause of the risk or the effect.
Summary
Section titled “Summary”In this final chapter of this book, we summarized our journey through robotics and AI. We talked about robotics as a career and discussed AI robotics as a profession. I brought up some issues regarding the future of AI, both real and imaginary. Drones and self-driving cars are real; robots taking jobs from humans or taking over the world is imaginary, at least in my opinion. I talked about robots and AI not having needs, and thus lacking the motivation, pressure, or even capability to evolve. Finally, we talked about risk in AI and how to recognize it. I hope that this information gives you some guidance in your interest in robotics and AI and provides some insider information from a practitioner in this area.
Now that we’re almost at the end of this book, I want to thank you for coming on this journey with me. I hope you have learned something along the way, even if it is just to know more questions to ask. I encourage you to dive in and build your own robot, learn about AI, and become part of the community of people who contribute to robotics as a hobby or a profession.
I have to acknowledge a debt of gratitude to all of the robotics and AI open source communities for making all of this material, knowledge, and expertise available, and continuing to make AI the poster child for why open source, as a model for the advancement of human knowledge, works and works well. ROS, which is entirely run by volunteers, is a case in point as it makes building robots so much easier.
Questions
Section titled “Questions”- Given that we started the chapter on a light note and ended up talking about robot phobia and philosophical questions about existence, do you feel that AI is a threat? Why or why not?
- List five professions that would be necessary to turn our Albert robot into a product company.
- If we imagine a company that was going to put Albert the robot into production, would it need a psychologist? For the robot, or for the humans?
- What components found in cell phones or smartphones are also found in quadcopters?
- Why are AI systems, specifically ANNs, naturally non-deterministic in terms of results and time?
- What might be a practical application of an AI system that predictably makes mistakes?
- If an AI system was picking stocks for you and predicted a winning stock 43% of the time, and then you had a second AI that was 80% accurate at determining when the first AI had not picked a good stock, what percent of the time would the AI combination pick a profitable stock?
Further reading
Section titled “Further reading”- The Organization of Behavior, by Donald Hebb, Wiley.
- Computing Machinery and Intelligence, by Alan M. Turing in the journal Mind. Vol. LIX (238).
- Feet of Clay, by Terry Pratchett, published by HarperCollins, London 2009. This book discusses the fictional concept of golems, which are clay creatures that are programmed by a set of instructions written on paper and put into their heads, an interesting analog to robots.
- A Theory of Human Motivation, by A.H. Maslow in the journal Psychological Review, vol. 50 (4).
- US Dept. of Transportation. National Motor Vehicle Crash Causation Survey. https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/811059.
- Attacking Faulty Reasoning: A Practical Guide to Fallacy- Free Arguments, by T. Edward Damer, Cengage Learning.
- Modern Generative AI with ChatGPT and OpenAI Models, by Valentina Alito, Packt Publishing.