首页 理论 架构 工程 文档 白皮书 著作 研究 案例 下载 博客 关于 开始使用 →

第40章 Understanding

第40章 Understanding

第40章承接第39章 Matching

第39章解决的是:

哪些元素、对象、属性、关系、状态和条件可以匹配?

第40章进一步解决:

匹配以后,ICAI 如何把这些匹配结果组织成具有明确意义的理解?

因此:

感知 → 认知 → 匹配 → 理解

对应:

Perception
    ↓
Cognition
    ↓
Matching
    ↓
Understanding

Matching 是“对应判断”,Understanding 是“意义形成”。


40.1 Understanding 定义

Understanding(理解)是 ICAI 根据已经获得的对象、属性、关系、状态、条件以及匹配结果,对当前信息形成结构化意义表示的过程。

可以定义:

Understanding
=
Object
+
Property
+
Relation
+
State
+
Condition
+
Context
+
Matching

也就是说,理解不是重新获取信息,而是对已经认知和匹配的信息进行组织。

例如输入:

“深圳到香港家具送货上门”

感知得到:

深圳
香港
家具
送货
上门

认知得到:

深圳 = 起点
香港 = 终点
家具 = 运输对象
送货 = 行为
上门 = 服务方式

匹配得到:

深圳 → 起点       匹配
香港 → 终点       匹配
家具 → 运输对象   匹配

理解最终形成:

一个从深圳到香港的家具运输需求,
运输方式为送货上门。

但 ICAI 内部不一定首先保存成这句话,而应该保存为结构:

Object:
Furniture

Action:
Delivery

Origin:
Shenzhen

Destination:
Hong Kong

Service:
Door-to-door

因此:

理解的核心不是生成语言,而是形成结构化意义。


40.2 对象理解

对象理解是确定:

当前信息中的对象是什么,以及这个对象在当前认知结构中扮演什么角色。

例如:

“电动牙刷适合旅行使用”

感知元素:

电动牙刷
旅行
适合
使用

对象识别:

Object A:
Electric Toothbrush

Object B:
Travel

对象属性:

Electric Toothbrush
├── type = product
├── power = electric
└── function = cleaning

对象理解:

Electric Toothbrush
=
一种用于口腔清洁的产品对象

同时:

Travel
=
一种使用场景对象

所以对象理解不是只识别名称:

“电动牙刷” = 字符串

而是:

“电动牙刷”
      ↓
对象
      ↓
对象类型
      ↓
对象属性
      ↓
对象功能
      ↓
对象关系

最终形成:

Object Understanding
{
    id,
    type,
    identity,
    properties,
    relations,
    state
}

40.3 属性理解

属性理解解决:

对象具有什么特征,这些特征代表什么。

例如:

电动牙刷
├── rechargeable = true
├── waterproof = true
├── battery = lithium

不能只理解为:

rechargeable
waterproof
battery

而要形成:

对象:
ElectricToothbrush

属性:
Rechargeable
值:
true

以及:

属性:
Waterproof
值:
true

因此:

Property
=
Name + Value + Type + Unit + State

例如:

price = 99 USD

可以理解为:

property:
price

value:
99

unit:
USD

如果:

weight = 250 g

则:

Property:
Weight

Value:
250

Unit:
g

属性理解让 ICAI 能够区分:

对象是什么

和:

对象有什么特征

40.4 关系理解

关系理解是 Understanding 的核心部分之一。

因为对象本身往往不能完整表达信息。

例如:

深圳
香港
搬家

三个对象并不能说明完整意义。

必须建立:

深圳
  ↓
起点
  ↓
搬家
  ↓
终点
  ↓
香港

或者:

搬家
├── origin → 深圳
├── destination → 香港
└── service → Door-to-door

关系理解需要确定:

Source
Relation
Target

即:

A → R → B

例如:

Shenzhen
    ↓
origin_of
    ↓
MovingService

以及:

MovingService
    ↓
destination
    ↓
Hong Kong

关系理解之后,ICAI 才能知道:

“深圳”不是普通地点,

而是当前运输任务的起点。

因此:

对象识别回答“是什么”,关系理解回答“它和什么发生了什么关系”。


40.5 状态理解

状态理解解决:

对象当前处于什么状态。

例如:

订单

可能具有:

pending
paid
shipping
completed
cancelled

假设系统获得:

订单:
payment = true
delivery = false

经过规则判断:

payment = true
AND
delivery = false

可以形成:

state = paid

如果:

payment = true
delivery = true

则:

state = shipping

状态理解因此是:

Object
+
Current Properties
+
Facts
+
Rules
=
State

状态理解还需要区分:

事实

与:

状态

例如:

battery = 20%

是一个事实/属性值。

而:

low_battery

是根据规则形成的状态。

例如:

IF battery < 30%
THEN state = low_battery

这就是 ICAI 的规则式状态理解。


40.6 条件理解

条件理解解决:

当前认知成立需要哪些条件,以及这些条件是否已经满足。

例如:

订单配送

要求:

付款 = true
库存 > 0
地址 = valid

系统可以形成:

Condition
├── payment = true
├── stock > 0
└── address = valid

然后逐项匹配:

payment:
TRUE

stock:
TRUE

address:
TRUE

形成:

ConditionState = SATISFIED

如果:

stock = 0

则:

ConditionState = FAILED

如果:

address = unknown

则:

ConditionState = UNKNOWN

所以条件理解不是简单判断:

true / false

而可以具有:

SATISFIED
FAILED
PARTIAL
UNKNOWN
CONFLICT

40.7 场景理解

单独理解对象还不够。

ICAI 还需要理解对象出现的场景

场景可以由:

对象
+
对象之间关系
+
状态
+
时间
+
地点
+
条件
+
行为

共同组成。

例如:

用户:
“我想找深圳到香港的家具送货上门服务。”

对象:

用户
家具
深圳
香港
送货服务

关系:

深圳 → origin
香港 → destination
家具 → transport_object
送货 → service

场景:

Scenario
├── origin = Shenzhen
├── destination = Hong Kong
├── object = Furniture
├── service = Delivery
└── mode = Door-to-door

于是 ICAI 理解的就不再是几个孤立词,而是一个完整场景:

“深圳到香港的家具门到门运输需求”

场景理解可以进一步形成:

Scene
{
    objects,
    relations,
    states,
    conditions,
    time,
    location,
    actions
}

这也是后续 Reasoning 的重要输入。


40.8 理解结果

Understanding 最终应该产生结构化的:

UnderstandingResult

例如:

{
    "object": {
        "type": "moving_service",
        "object": "furniture"
    },
    "relations": [
        {
            "relation": "origin",
            "value": "shenzhen"
        },
        {
            "relation": "destination",
            "value": "hong_kong"
        }
    ],
    "service": {
        "type": "door_to_door_delivery"
    },
    "state": "identified",
    "condition": "valid",
    "scene": "cross_border_furniture_delivery",
    "confidence": 0.91
}

这里的 confidence 可以来自第39章的匹配计算。

因此:

Matching
      ↓
MatchScore
      ↓
Understanding
      ↓
UnderstandingResult

理解结果可以进入:

Memory
Reasoning
Decision
Action

形成:

Understanding
       ↓
   ┌───┼────┐
   ↓   ↓    ↓
Memory Reasoning Decision

40.9 完整认知案例

下面使用一个完整案例,把第36章到第40章串起来。

输入信息

“深圳到香港家具送货上门。”

第一步:Information

原始信息:

深圳到香港家具送货上门

第二步:Perception

感知提取元素:

深圳
香港
家具
送货
上门

第三步:Cognition

建立认知对象:

Object 1:
Shenzhen

Object 2:
Hong Kong

Object 3:
Furniture

Object 4:
Delivery

建立属性:

Delivery
└── mode = door-to-door

第四步:Matching

进行匹配:

深圳 → 地点
香港 → 地点
家具 → 运输对象
送货 → 服务
上门 → 服务方式

建立关系:

Shenzhen
    ↓ origin
Delivery
    ↓ destination
Hong Kong

以及:

Delivery
    ↓ transport_object
Furniture

最终:

Object Match      = 1.00
Property Match    = 1.00
Relation Match    = 0.95
State Match       = 1.00
Location Match    = 1.00

综合:

MatchScore = 0.97

第五步:Understanding

系统形成场景:

Scene:
Cross-border Furniture Delivery

结构:

Delivery
├── origin
│   └── Shenzhen
│
├── destination
│   └── Hong Kong
│
├── object
│   └── Furniture
│
└── service_mode
    └── Door-to-door

第六步:Understanding Result

最终认知结果:

{
    object: Furniture,
    action: Delivery,
    origin: Shenzhen,
    destination: Hong Kong,
    mode: Door-to-door,
    scene: Cross-border Delivery,
    state: understood
}

整个过程:

原始信息
    ↓
Perception
    ↓
Elements
    ↓
Cognition
    ↓
Objects
    ↓
Matching
    ↓
Relations
    ↓
Conditions
    ↓
Understanding
    ↓
Scene
    ↓
Understanding Result
    ↓
Memory / Reasoning

第40章核心模型

第40章可以最终归纳为:

Understanding
│
├── Object Understanding
│
├── Property Understanding
│
├── Relation Understanding
│
├── State Understanding
│
├── Condition Understanding
│
├── Scene Understanding
│
└── Understanding Result

其核心转换关系是:

元素
 ↓
对象
 ↓
属性
 ↓
关系
 ↓
状态
 ↓
条件
 ↓
场景
 ↓
理解

进一步与前面的章节连接:

Information
    ↓
Perception
    ↓
Elements
    ↓
Cognition
    ↓
Matching
    ↓
Understanding
    ↓
Memory
    ↓
Reasoning
    ↓
Decision
    ↓
Action

其中:

Perception 是“获取”,Cognition 是“认知”,Matching 是“对应”,Understanding 是“形成意义”。

这四层不能混为一层。尤其是 Matching ≠ Understanding:匹配只说明两个结构之间存在某种对应关系,而理解则把这些对应关系组织成对象、属性、关系、状态、条件和场景的完整意义结构

Leave a Reply

Your email address will not be published. Required fields are marked *