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

第147章 Cognitive Method 认知方法

第147章 Cognitive Method

认知方法

前面的动态认知体系已经逐渐形成:

Perception
 ↓
Scene
 ↓
Structure
 ↓
Interpretation
 ↓
Current Cognitive State
 ↓
Prediction
 ↓
Risk

第146章解决的是:

哪些可能未来会对当前目标造成风险?

但风险本身还不能产生行动。

机器还必须解决一个更加基础的问题:

在当前状态下,面对当前对象、关系和目标,机器“能够采用什么方法”?

因此第147章重新定义:

State
+
Goal
+
Object
+
Relation
+
Capability
 ↓
Method

这里的 Method 不是传统程序意义上的一个固定函数,而是:

在特定认知状态下,针对特定对象与关系,利用已有能力,实现某个目标的一种可执行认知方式。


147.1 为什么需要重新定义 Method

在传统软件中:

Method
=
Function

例如:

openDoor()
moveObject()
calculateDistance()

这种定义把 Method 看成:

Input
 ↓
Function
 ↓
Output

但 ICAI 中的 Method 不应该只是代码函数。

因为现实中的方法具有:

Context
+
State
+
Goal
+
Object
+
Relation
+
Capability

例如:

Goal:
Protect Egg

Object:
Egg

State:
Egg near edge

Relation:
Egg supported by table

Capability:
Hand movement

此时可能形成:

Method:
Move hand toward Egg

如果状态改变:

Egg already falling

方法就可能变成:

Method:
Intercept Egg

因此:

Method 不是固定动作,而是由当前认知条件生成的行动结构。


147.2 Method 的核心定义

可以定义:

Method
=
Goal-directed transformation
of a Current State
through available Capabilities

中文:

方法,是利用当前可用能力,使当前状态向目标状态发生有目的转变的认知结构。

形式化:

M
=
F(
    State,
    Goal,
    Object,
    Relation,
    Capability
)

输出:

Method

进一步:

Method
→
Expected State Transition

因此:

Current State
+
Method
 ↓
Expected Future State

147.3 Method 与 Action 的区别

这是本章必须建立的第一个重要区别:

Method
≠
Action

例如目标:

Protect Egg

方法可能是:

Prevent Egg From Falling

而具体 Action:

Move Hand

或者:

Place Support

或者:

Block Edge

因此:

Goal
 ↓
Method
 ↓
Action

Method 是:

“怎么解决这个问题”

Action 是:

“具体执行什么动作”

147.4 Method 与 Decision 的区别

同样:

Method
≠
Decision

例如当前:

Egg near edge

可用方法:

Method A:
Move Egg

Method B:
Catch Egg

Method C:
Add Support

Decision 才是:

Choose Method B

所以:

Method
=
Candidate Solution Structure

而:

Decision
=
Selection of Candidate

形成:

Goal
 ↓
Method Generation
 ↓
Method Evaluation
 ↓
Decision
 ↓
Action

147.5 Method 与 Capability 的关系

没有 Capability,就不存在可执行 Method。

例如:

Goal:
Move Object

如果系统拥有:

Capability:
Arm Movement

可以生成:

Method:
Grasp → Lift → Move → Release

如果系统没有:

Grasp Capability

那么这个 Method 就不可执行。

因此:

Capability
 ↓
Method Space

能力决定:

机器有哪些方法可以被构造出来。


147.6 Capability 不是 Action

Capability 也不能简单等于动作。

例如:

Capability:
Vision

并不是:

Action:
See

它代表机器能够执行:

Detect Object
Estimate Position
Identify Motion
Detect Relation

又例如:

Capability:
Manipulation

可以支持:

Grasp
Move
Rotate
Place
Release

所以:

Capability
=
可执行能力集合

而:

Method
=
利用能力解决目标问题的结构

147.7 Object 是 Method 的作用对象

方法必须知道:

Object

例如:

Goal:
Move Object

如果对象是:

Egg

方法必须考虑:

Fragility
Weight
Shape
Support

如果对象是:

Metal Box

方法可能完全不同。

因此:

Same Goal
+
Different Object
=
Different Method

例如:

Move Egg

可能:

Grasp Carefully

而:

Move Box

可能:

Push

因此 Object 是 Method Generation 的核心约束。


147.8 Relation 决定方法空间

仅知道:

Object = Egg

还不够。

必须知道 Egg 与环境之间的关系:

Egg
+
Table
+
Supported-by

或者:

Egg
+
Hand
+
Held-by

或者:

Egg
+
Edge
+
Near

关系不同:

Relation

就不同。

于是:

Object
+
Relation
 ↓
Method Constraints

例如:

Egg
near
Edge

可能需要:

Prevent Fall

而:

Egg
inside
Container

可能需要:

Remove Carefully

所以:

Method 不仅作用于对象,还作用于对象所处的关系结构。


147.9 State 决定当前方法是否适用

同一个 Method 不一定适用于所有状态。

例如:

Method:
Move Egg

当:

Egg
=
Stable

可以执行。

但如果:

Egg
=
Falling

那么:

Move Egg

可能已经太晚。

此时需要:

Catch Egg

因此:

Method Applicability
=
F(State, Object, Relation)

所以方法必须具有:

Preconditions

例如:

Method:
Grasp Egg

Preconditions:
Egg reachable
Hand available
Egg identifiable
No blocking obstacle

147.10 Method 是状态转换结构

这是 ICAI Method 理论的核心。

方法不是简单:

Do X

而是:

State A
 ↓
Method
 ↓
State B

例如:

Current State:
Egg near edge

方法:

Move Egg to center

预期:

Future State:
Egg stable at center

所以:

Method
=
State Transformation Strategy

可以形式化:

M:
S_current
→
S_target

147.11 Method 的基本组成

一个完整 Method 可以表示为:

CognitiveMethod
{
    goal

    applicable_state

    target_state

    objects

    relations

    required_capabilities

    preconditions

    steps

    expected_effects

    risks

    alternatives
}

例如:

Goal:
Protect Egg

Applicable State:
Egg near edge

Object:
Egg

Relation:
Egg near Edge

Capability:
Manipulation

Preconditions:
Egg reachable

Method:
Grasp → Move → Place

Expected Effect:
Egg becomes stable

Risk:
Egg damage during handling

这样 Method 就成为:

Structured Cognitive Object

147.12 Method 不一定只有一个 Action

一个方法可能包含多个动作:

Method
 ↓
Action₁
 ↓
Action₂
 ↓
Action₃

例如:

Move Egg Safely

可能是:

Observe
 ↓
Approach
 ↓
Grasp
 ↓
Lift
 ↓
Move
 ↓
Place
 ↓
Release
 ↓
Verify

因此:

Method

实际上是:

Action Sequence
+
State Constraints
+
Goal

147.13 Method 与 Procedure 的区别

传统 Procedure:

Step 1
Step 2
Step 3
Step 4

通常是预先固定的。

而 Cognitive Method:

Goal
+
Current State
+
Context
+
Capability

动态生成或选择。

例如:

Move Egg

正常情况:

Grasp
→
Lift
→
Move

如果检测到:

Obstacle

方法可能动态变成:

Grasp
→
Lift
→
Avoid Obstacle
→
Move

因此:

Procedure 是预定义步骤;Cognitive Method 是面向目标、受状态约束的动态行动结构。


147.14 Method 与 Context

第143章已经建立:

Object
+
Environment
+
Relations
+
History
+
Goal
 ↓
Cognitive Context

Method 必须在 Context 中生成。

例如:

Object:
Egg

Environment:
Kitchen

Relation:
Near Edge

History:
Previously slipped

Goal:
Protect Egg

方法可能变成:

Move Egg Slowly

如果环境变成:

Industrial Robot Area

方法可能不同。

因此:

Method
=
Context-dependent

147.15 History 影响 Method

历史经验可以改变方法选择。

例如机器以前尝试:

Method A:
Push Egg

结果:

Egg damaged

系统记录:

Method A
→
High Damage

以后遇到类似场景:

Egg
+
Fragile

系统降低:

Method A

的优先级。

而提高:

Method B:
Careful Grasp

因此:

History
 ↓
Method Evaluation
 ↓
Method Preference

历史不仅用于预测。

它也直接影响:

Method Generation

147.16 Method 与 Prediction

第145章建立:

Current State
+
Trend
+
Experience
 ↓
Possible Future State

现在可以反过来使用:

Method
 ↓
Expected Future State

例如:

Current:
Egg near edge

方法 A:

Do Nothing

预测:

Egg may fall

方法 B:

Move Egg

预测:

Egg becomes stable

方法 C:

Block Edge

预测:

Fall probability decreases

于是:

Method
+
Prediction
 ↓
Expected Outcome

这就是方法评估的基础。


147.17 Method 与 Risk

第146章建立:

Current State
+
Possible Future State
+
Goal
 ↓
Risk

现在每一个 Method 都可以产生不同的未来:

Method A
 ↓
Future A
 ↓
Risk A

Method B
 ↓
Future B
 ↓
Risk B

Method C
 ↓
Future C
 ↓
Risk C

例如:

Method A:
Push Egg

预测:

Possible Damage

风险:

High

而:

Method B:
Careful Grasp

预测:

Stable Egg

风险:

Low

因此:

Method
 ↓
Predicted Outcome
 ↓
Risk
 ↓
Method Evaluation

147.18 Method Space

一个目标通常对应多个可能方法。

因此:

Goal
 ↓
Method Space

例如:

Goal:
Protect Egg

可能生成:

Method A:
Move Egg

Method B:
Catch Egg

Method C:
Block Edge

Method D:
Move Supporting Surface

形成:

              ┌→ Method A
              │
Goal ─────────┼→ Method B
              │
              ├→ Method C
              │
              └→ Method D

这就是:

Cognitive Method Space


147.19 Capability 决定 Method Space

如果系统没有:

Capability:
Object Manipulation

那么:

Move Egg

可能无法进入 Method Space。

如果系统拥有:

Vision
+
Manipulation
+
Navigation

那么可生成的方法数量增加。

因此:

Capability
 ↓
Method Space

可以定义:

M_possible
=
Generate(
    Goal,
    State,
    Objects,
    Relations,
    Capabilities
)

147.20 Method 的可行性

并非所有生成的方法都可以执行。

因此:

Method Candidate
 ↓
Feasibility Check
 ↓
Executable Method

检查:

Capability Available?
Object Reachable?
Preconditions Satisfied?
Environment Permits?
Risk Acceptable?
Resources Available?

例如:

Method:
Lift Egg

如果:

Hand unavailable

则:

Method = Not Executable

因此:

生成 Method 与确认 Method 可执行,是两个不同过程。


147.21 Method 的资源约束

方法还需要资源。

例如:

Method:
Move Object

可能需要:

Energy
Time
Space
Tool
Attention
Manipulation Capability

因此:

Method Feasibility
=
Capability
+
Resource
+
Environment

例如:

Method A:
Fast Movement

需要:

High Energy

而:

Method B:
Slow Movement

需要:

More Time

所以 Method 选择最终可能是:

Goal
+
State
+
Capability
+
Resources
+
Risk
 ↓
Best Method

147.22 Method 可以被组合

复杂任务不一定只有一个 Method。

可以:

Method A
+
Method B
+
Method C

组成:

Composite Method

例如:

Goal:
Move Egg Safely

可以:

Method 1:
Detect Egg

+
Method 2:
Approach Egg

+
Method 3:
Grasp Egg

+
Method 4:
Move Egg

+
Method 5:
Verify Stability

形成:

Composite Method

147.23 Method Hierarchy

因此 Method 可以形成层级:

High-Level Method
        ↓
Sub-Method
        ↓
Action

例如:

Protect Object
 ↓
Stabilize Object
 ↓
Move Object
 ↓
Grasp
 ↓
Move Hand

这意味着 ICAI 中的 Method 不仅是:

Single Operation

也可以是:

Hierarchical Cognitive Structure

147.24 Method 与 Generalization

第141章的 Cognitive Generalization 同样适用于 Method。

机器不应该只记:

For Egg:
Grasp Carefully

而应该泛化:

Fragile Object
+
Need Movement
+
Manipulation Capability
 ↓
Careful Grasp-and-Move Method

于是:

Egg
Glass
Ceramic
Sensitive Device

都可能调用:

Fragile-Object Handling Method

因此:

Experience
 ↓
Method Pattern
 ↓
General Method

这是 ICAI 从:

Specific Procedure

走向:

General Cognitive Method

的重要一步。


147.25 Method 与 Learning

方法本身也可以学习。

例如:

Method A
Success = 40%
Risk = High

长期经验:

Method B
Success = 85%
Risk = Low

系统就可以形成:

Method Preference

甚至:

Method Improvement

例如:

Original Method:
Grasp → Move → Place

经过经验发现:

Check Stability

可以降低失败。

于是形成:

Improved Method:
Check Stability
→
Grasp
→
Move
→
Place
→
Verify

所以:

Method
 ↓
Execution
 ↓
Outcome
 ↓
Evaluation
 ↓
Learning
 ↓
Improved Method

147.26 Method 的成功标准

一个 Method 不能只定义:

Action Completed

还必须定义:

Goal Achieved?

例如:

Method:
Move Egg

动作确实完成:

Egg moved

但如果:

Egg broken

那么:

Method Success = False

所以:

Method Success
=
Goal Achievement

而不是:

Action Completion

这一区别非常重要。


147.27 Method Outcome

每次方法执行之后,可以得到:

Actual Outcome

与预测进行比较:

Expected Outcome
        ↓
Actual Outcome
        ↓
Difference

形成:

Method Error

例如:

Expected:
Egg stable

实际:

Egg still unstable

系统发现:

Method insufficient

于是更新:

Method Model

因此:

Prediction Error
+
Method Outcome
 ↓
Method Learning

147.28 Method 的动态性

最重要的一点:

ICAI 的 Method 不是固定的。

当前状态变化:

State₁

可能使用:

Method A

状态变成:

State₂

则:

Method A

可能不再适用。

系统重新计算:

Method Space

得到:

Method B

因此:

State Change
 ↓
Method Re-evaluation
 ↓
Method Update

这使 Method 成为动态认知系统中的:

Adaptive Structure

147.29 Cognitive Method 的完整流程

可以建立:

Current Cognitive State
        ↓
Identify Goal
        ↓
Identify Relevant Objects
        ↓
Identify Relations
        ↓
Check Available Capabilities
        ↓
Generate Candidate Methods
        ↓
Check Preconditions
        ↓
Predict Outcomes
        ↓
Evaluate Risk
        ↓
Evaluate Goal Achievement
        ↓
Rank Methods
        ↓
Select Method
        ↓
Execute Actions
        ↓
Observe Outcome
        ↓
Learn / Update Method

因此:

State
+
Goal
+
Object
+
Relation
+
Capability
 ↓
Method
 ↓
Prediction
 ↓
Risk
 ↓
Evaluation
 ↓
Decision
 ↓
Action

147.30 Method 与 EOM 理论

这一章对于 ICAI 的 Element–Object–Method 体系尤其重要。

可以重新理解:

Element
 ↓
Object
 ↓
Relation
 ↓
State
 ↓
Goal
 ↓
Method

其中:

Element

提供认知构成单位。

Object

提供认知对象。

Relation

提供对象之间的结构。

State

描述当前状态。

Goal

规定希望达到什么。

最终:

Method

规定:

如何利用已有能力,使当前对象及其关系从当前状态向目标状态转变。

因此 Method 不再是附属于 Object 的简单程序,而成为:

State → Goal

之间的认知转换机制


147.31 Method 的核心公式

本章的核心公式可以正式定义为:

Method
=
F(
    State,
    Goal,
    Object,
    Relation,
    Capability
)

进一步:

Method
+
Current State
 ↓
Expected State Transition

再进一步:

Method
+
Prediction
+
Risk
 ↓
Method Evaluation

最终:

Method Candidates
 ↓
Evaluation
 ↓
Decision
 ↓
Action

147.32 与前面章节形成完整连接

现在第142~147章已经形成一条非常完整的动态认知链:

142 Current Cognitive State
        ↓
143 Cognitive Context
        ↓
144 Cognitive Interpretation
        ↓
145 Cognitive Prediction
        ↓
146 Cognitive Risk
        ↓
147 Cognitive Method

其内部逻辑可以展开为:

Current State
      ↓
Context
      ↓
Interpretation
      ↓
Meaning
      ↓
Prediction
      ↓
Possible Futures
      ↓
Risk
      ↓
Goal
      ↓
Method Space
      ↓
Method

这里出现一个非常重要的变化:

ICAI 不再只是理解现实,而开始建立“改变现实”的认知机制。


147.33 从 Understanding 到 Transformation

前面的认知主要是:

Perceive
 ↓
Understand
 ↓
Predict
 ↓
Evaluate

第147章开始:

Understand
 ↓
How can I change the state?

于是:

State
 ↓
Goal
 ↓
Method
 ↓
Transformation

这意味着认知系统开始从:

World Modeling

进入:

Goal-directed State Transformation

147.34 Method 的最终定义

因此,可以把 Cognitive Method 定义为:

Cognitive Method 是 ICAI 在特定当前状态下,根据目标、对象、关系以及可用能力,构造出来的、能够使系统向目标状态转变的结构化行动方法。

其核心结构:

State
+
Goal
+
Object
+
Relation
+
Capability
        ↓
Cognitive Method
        ↓
Expected State Transition

再加入动态认知:

Cognitive State
        ↓
Goal
        ↓
Method Candidates
        ↓
Predicted Outcomes
        ↓
Risk Evaluation
        ↓
Method Selection
        ↓
Action
        ↓
New State

最终形成:

      ┌───────────────┐
      ↓               │
Current State         │
      ↓               │
Interpretation        │
      ↓               │
Prediction            │
      ↓               │
Risk                  │
      ↓               │
Goal                  │
      ↓               │
Method                │
      ↓               │
Action                │
      ↓               │
New State ────────────┘

这使第147章成为第十五部分非常关键的转折点:

第144章回答“当前意味着什么”;第145章回答“未来可能是什么”;第146章回答“哪些未来会威胁目标”;第147章进一步回答“利用什么方法可以改变当前状态,使其向目标状态转变”。

因此,ICAI 的 Method 最终不是一个简单的函数,而是:

Goal-directed
+
State-dependent
+
Object-aware
+
Relation-aware
+
Capability-constrained
+
Predictive
+
Risk-aware

动态认知转换结构

Leave a Reply

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