第1章 你好,机器人朋友!(Hello, Robot Friend!)
第1章 你好,机器人朋友!(Hello, Robot Friend!)
> 一个圆头圆脑的小机器人正站在你的书桌上,它的眼睛是两个亮闪闪的摄像头,正用好奇的目光打量着你。"你好呀!"它用清脆的声音说,"我叫Peppy,从今天起,我就是你的机器人朋友啦!"你有没有想过,这个会说话、能思考、还能帮你拿东西的小家伙,到底是怎么被制造出来的?它和我们人类有什么相同和不同的地方呢?让我们一起翻开这本奇妙的书,去认识这位新朋友吧!(A round-headed little robot is standing on your desk. Its eyes are two shiny cameras, and it looks at you curiously. "Hello there!" it says in a crisp voice. "My name is Peppy, and from today on, I'm your robot friend!" Have you ever wondered how this little creature that can talk, think, and even help you grab things was made? How is it similar to and different from us humans? Let's open this wonderful book together and get to know our new friend!)
1.1 智能的起源:从猫的大脑到Peppy的大脑 (The Origin of Intelligence: From a Cat's Brain to Peppy's Brain)
1.1.1 什么是"智能"?(What Is "Intelligence"?)
在我们认识Peppy之前,先要弄清楚一个最最基本的问题:什么是智能?(Before we get to know Peppy, let's first answer a very basic question: what is intelligence?)
想象这样一个场景:你家的猫咪在窗台上看见一只小鸟,它会悄悄压低身体,屁股扭来扭去,眼睛紧紧盯着小鸟,随时准备扑过去。这是一种"聪明"的表现吗?(Imagine this scene: your cat sees a little bird on the windowsill. It quietly lowers its body, wiggles its butt, stares intently at the bird, and is ready to pounce at any moment. Is this a "smart" behavior?)
当然是的!猫猫看到了小鸟(小鸟是信息),它记起了以前抓到小鸟的方法(这些方法是经验),然后选择了最有可能成功的姿势(这就是决策)。整个过程——看到 → 思考 → 行动——就是智能的核心秘密。(Of course it is! The cat sees the bird (the bird is information), it remembers how it caught birds before (these are experiences), and then chooses the pose most likely to succeed (this is decision-making). The whole process — seeing → thinking → acting — is the core secret of intelligence.)
我们可以这样给"智能"下一个简单的定义:
> 智能(Intelligence)= 感知信息 + 记忆经验 + 做出决策 + 完成行动 > (Intelligence = Sensing Information + Remembering Experience + Making Decisions + Completing Actions)
请记住这个公式!以后我们每次遇到一个新的"聪明家伙"——不管是人类、小猫,还是Peppy——都可以用这个公式来检查一下它是否真的"智能"。这是一个非常强大的思考工具,叫做智能公式。(Please remember this formula! Every time we encounter a new "smart creature" — whether it's a human, a kitten, or Peppy — we can use this formula to check if it is truly "intelligent." This is a very powerful thinking tool, called the Intelligence Formula.)
1.1.2 自然智能:动物和人类是如何思考的?(Natural Intelligence: How Do Animals and Humans Think?)
猫抓小鸟的智能,是亿万年进化而来的神奇产物。我们把生物与生俱来的这种能力叫做自然智能(Natural Intelligence,简称NI)。(The cat's intelligence in catching a bird is a wonderful product of billions of years of evolution. We call this innate ability of living beings Natural Intelligence, or NI for short.)
让我们一起来看看几个有趣的例子:
🐱 猫咪的智能 (Cat's Intelligence)
- **感知**:用眼睛、耳朵、胡须、鼻子感知周围的世界。
- **记忆**:记住哪里的鱼罐头上次藏在哪里。
- **决策**:判断现在跳上去能不能抓到鸟。
- **行动**:扑!抓!咬!
🐙 章鱼的智能 (Octopus's Intelligence) 章鱼是无脊椎动物里最聪明的之一,它有5亿个神经元(神经元是脑细胞)。章鱼可以打开瓶盖、模仿其他海洋生物、甚至能"记住"曾经伤害过它的人!这种聪明程度已经和很多小型哺乳动物相当了。(Octopuses are among the smartest invertebrates, with 500 million neurons (neurons are brain cells). Octopuses can open bottle caps, mimic other sea creatures, and even "remember" people who have hurt them! This level of intelligence is comparable to many small mammals.)
👧 你的智能 (Your Intelligence)
- 你看到这本书,知道这是一个"问题"——你想知道机器人是什么。
- 你回忆过去见过的小汽车、玩具、动画片。
- 你决定要认真地读下去。
- 你翻开书页,开始学习。
自然智能有三大特点: 1. 来自生物大脑 (From biological brains) 2. 通过进化和经验获得 (Acquired through evolution and experience) 3. 与身体紧密相连 (Closely connected to the body) —— 猫的爪子、章鱼的触手、你的手,都是智能的一部分。
这第三个特点特别重要!科学家们发现,身体本身就是智能的一部分。一只猫如果没有了爪子,它抓鸟的"经验"就完全没有用了。这个观点叫做具身认知(Embodied Cognition),它将是我们这本书后面反复讨论的主题之一。(This third point is especially important! Scientists have discovered that the body itself is part of intelligence. If a cat loses its claws, its "experience" of catching birds becomes completely useless. This view is called Embodied Cognition, and it will be one of the topics we'll discuss repeatedly in this book.)
1.1.3 人工智能:让机器学会"思考" (Artificial Intelligence: Teaching Machines to "Think")
现在,让我们把目光从生物大脑转向另一种"大脑"——机器的大脑。(Now, let's shift our gaze from biological brains to another kind of "brain" — the machine brain.)
人工智能(Artificial Intelligence,简称AI)就是:用人工的方法,让机器具有像人类和动物那样的智能。它不是让机器变成真正的生物,而是让机器模拟(simulate)出智能的行为。(Artificial Intelligence, or AI for short, means: using artificial methods to give machines intelligence like that of humans and animals. It doesn't turn machines into real living things, but rather makes machines simulate intelligent behavior.)
一个最直观的例子:你的手机里那个会说"嘿,Siri"的小助手。当你问它"今天天气怎么样?"时,它做了下面这些事: 1. 感知(Sensing):麦克风把你的声音变成电信号,识别出你说的字。 2. 记忆(Remembering):查找天气数据库,回忆起过去你常问的地点。 3. 决策(Decision-making):判断你想要的是本地实时天气。 4. 行动(Acting):用语音告诉你:"今天多云,气温25度。"
你看,Siri虽然没有真正的脑袋,但它完美地完成了智能公式的所有步骤!这就是人工智能的魔法。(You see, although Siri doesn't have a real brain, it perfectly completes all the steps of the intelligence formula! This is the magic of artificial intelligence.)
1.1.4 一张表看懂NI和AI的区别 (A Table to Understand the Difference Between NI and AI)
| 对比项 (Comparison Item) | 自然智能 NI (Natural Intelligence) | 人工智能 AI (Artificial Intelligence) | |---|---|---| | 大脑 (Brain) | 由神经元组成 (Made of neurons) | 由芯片和电路组成 (Made of chips and circuits) | | 学习方式 (Learning Method) | 通过进化 + 经验 (Evolution + Experience) | 通过数据和算法 (Data and algorithms) | | 是否需要身体 (Does it need a body?) | 必需 (Essential) | 不一定,可以是软件 (Not necessarily, can be software) | | 思考速度 (Thinking Speed) | 比较慢 (Relatively slow) | 非常快 (Very fast) | | 能否 7×24小时工作 (Can work 24/7?) | 不能 (No) | 可以 (Yes) | | 灵感来源 (Source of inspiration) | 来自自然界 (From nature) | 来自人类的工程设计 (From human engineering) | | 例子 (Examples) | 猫、章鱼、人 (Cats, octopuses, humans) | Siri、AlphaGo、ChatGPT (Siri, AlphaGo, ChatGPT) |
> 💡 小思考 (Little Thought) > 试着用我们刚才学的"智能公式"检查一下你身边的一个AI产品(比如扫地机器人)。它能感知信息吗?它能记住经验吗?它能做出决策吗?它能完成行动吗?如果四项都有,它就是具有人工智能的"智能机器"!(Try using the "intelligence formula" we just learned to check an AI product near you (like a robot vacuum). Can it sense information? Can it remember experiences? Can it make decisions? Can it complete actions? If it has all four, it's an "intelligent machine" with artificial intelligence!)
---
1.2 机器人的三大组成:身体、大脑、感官 (Three Components of a Robot: Body, Brain, and Senses)
1.2.1 什么是机器人?(What Is a Robot?)
Peppy眨了眨眼睛,向你自我介绍:"我是一个机器人(Robot)。机器人是一种能够自动执行任务的机器系统。机器人通常具有三个基本部分:硬件(Hardware)——也就是我的身体;软件(Software)——也就是我的大脑;传感器(Sensors)——也就是我的感官。"(Peppy blinks and introduces itself: "I am a Robot. A robot is a machine system that can automatically perform tasks. Robots usually have three basic parts: Hardware — that is my body; Software — that is my brain; Sensors — that are my senses.")
让我们一个一个来认识Peppy的"零件",就像认识一个新朋友的五官一样。(Let's get to know Peppy's "parts" one by one, just like getting to know a new friend's features.)
1.2.2 第一部分:身体——机器人的"骨架和肌肉" (Part 1: Body — The Robot's "Skeleton and Muscles")
Peppy伸出一只手给你看:"这是我的机械手。它由铝合金、塑料和金属关节组成,里面藏着马达(Motor)——它能让我的手指弯曲。"(Peppy extends a hand for you to see: "This is my mechanical hand. It's made of aluminum alloy, plastic, and metal joints, and inside there's a Motor — it can bend my fingers.")
机器人的身体部分,在工程上叫做机械结构或硬件,主要包括:
1. 骨架(Frame) 骨架就是机器人的"骨头"。Peppy的骨架是3D打印的塑料和铝合金。工厂里的大力士机器人,则会用钢铁来做骨架,因为它们要搬动几十公斤的零件。(The frame is the robot's "bones." Peppy's frame is made of 3D-printed plastic and aluminum alloy. Strong industrial robots use steel for their frames because they need to move parts weighing dozens of kilograms.)
2. 关节(Joints) 关节让机器人能活动。最常见的有两种:
- **旋转关节(Revolute Joint)**:像我们人类的肘关节一样,可以弯折。Peppy的手肘就是这种。
- **直线关节(Prismatic Joint)**:像抽屉一样,可以前后滑动。工厂里机械臂伸长缩短的部分就是这种。
为了让机器人能精确地知道每个关节转了多少度,工程师会在关节里安装编码器(Encoder)——一种能测量角度的小零件。(To let robots know exactly how many degrees each joint has turned, engineers install Encoders in the joints — a small part that can measure angles.)
3. 驱动器(Actuator) 驱动器是机器人的"肌肉"。它负责把能量转化为动作。最常见的驱动器就是马达(Motor)。Peppy的马达是小小的伺服电机(Servo Motor),每个只有手指那么粗,但能产生足够的力量让他拿起一个苹果。(Actuators are the robot's "muscles." They are responsible for converting energy int