第128章 Object Attribute
对象属性
第127章建立了 Cognitive Object(认知对象)。
对象不再只是:
Egg
而是:
Egg
├── Identity
├── Attributes
├── Relations
├── State
└── Dynamics
其中:
Attributes
承担一个非常重要的任务:
描述一个 Cognitive Object“具有什么性质”。
但是,现实对象的属性并不全部属于同一种性质。
例如:
Fragility
Material
Shape
通常具有相对稳定性。
而:
Position
Velocity
Orientation
Force
Contact
会随着时间、环境和行为不断变化。
因此,本章建立一个重要区分:
Object Attribute
│
├── Relatively Stable Attribute
│
└── Dynamic Attribute
128.1 什么是 Object Attribute
可以定义:
Object Attribute 是 Cognitive Object 所具有的、能够描述其性质、状态条件或物理表现,并可被认知系统独立读取、比较、更新和推理的信息单元。
形式化表示:
Object
↓
Attributes
↓
Attribute = Type + Value
例如:
Egg
├── Material = CalciumCarbonateShell
├── Shape = Oval
├── Fragility = High
├── Position = (120,80,30)
├── Velocity = 0
└── Force = 0.8N
这里虽然所有项目都表现为:
Name = Value
但它们在认知意义上并不相同。
128.2 属性不是对象本身
必须首先建立:
Attribute ≠ Object
例如:
Fragility
不是一个独立的鸡蛋对象。
Position
也不是一个鸡蛋。
它们是:
Property of Object
因此:
Egg
├── Fragility
├── Material
├── Shape
├── Position
└── Velocity
形成:
Object
↓
Attribute Set
128.3 为什么必须区分稳定属性与动态属性
如果所有 Attribute 都按照同一种方式处理:
Material = Ceramic
Position = (100,50)
Velocity = 2m/s
Force = 0.8N
机器会产生一个严重问题:
哪些变化意味着对象本身发生了改变?哪些变化只是对象当前状态发生了改变?
例如:
Position:
(100,50)
↓
(105,50)
这通常并不意味着:
Object A
变成了:
Object B
而只是:
Object A moved
但是:
Material:
Glass
↓
Metal
则可能意味着认知信息发生了根本变化。
因此必须建立:
Attribute
↓
Stability Classification
128.4 相对稳定属性
第一类是:
Relatively Stable Attributes
即:
在正常时间尺度和正常环境条件下,不会频繁变化的对象属性。
例如:
Material
Shape
Fragility
Structure
Category
ManufacturingType
对于一个普通鸡蛋:
Material = Shell
Shape = Oval
Fragility = High
这些属性通常不会每秒发生变化。
因此:
Stable Attribute
主要用于回答:
这个对象本质上具有什么性质?
128.5 “稳定”不是“永远不变”
这里必须特别强调:
Stable ≠ Immutable
所谓稳定属性,只表示:
Change Frequency
较低。
例如:
Shape = Oval
在正常情况下稳定。
但如果鸡蛋破碎:
Oval
↓
BrokenShape
它仍然可能变化。
同样:
Material
也可能因为:
Burning
Melting
Cutting
Processing
Transformation
而发生变化。
因此更准确的概念是:
Relatively Stable
而不是:
Absolutely Fixed
128.6 Dynamic Attribute
第二类是:
Dynamic Attributes
即:
会随着时间、环境、交互或对象自身行为持续变化的属性。
例如:
Position
Velocity
Orientation
Force
Contact
Temperature
Pressure
例如:
Position
100
↓
105
↓
110
或者:
Force
0
↓
0.5N
↓
1.2N
↓
0.2N
这些属性本质上描述:
对象现在正在发生什么。
128.7 Stable Attribute 与 Dynamic Attribute 的核心区别
可以用一个简单结构表示:
Object
│
├── Stable Attributes
│ ├── Material
│ ├── Shape
│ └── Fragility
│
└── Dynamic Attributes
├── Position
├── Velocity
├── Orientation
├── Force
└── Contact
两者的认知功能不同。
Stable Attribute
主要描述:
What is it like?
Dynamic Attribute
主要描述:
What is happening to it now?
因此:
Stable
↓
Identity / Nature / Capability
Dynamic
↓
Current State / Motion / Interaction
128.8 Material
例如:
Material = Glass
Material 通常属于:
Relatively Stable Attribute
因为它决定对象的:
Physical Characteristics
例如:
Glass
Metal
Plastic
Wood
Ceramic
Rubber
Material 可以进一步影响:
Fragility
Weight
Elasticity
ThermalBehavior
Conductivity
因此:
Material
不是孤立的信息。
它可以参与后续推理:
Material
↓
Physical Properties
↓
Behavior Prediction
128.9 Shape
Shape = Oval
通常也是相对稳定属性。
例如:
Oval
Circle
Rectangle
Cylinder
Sphere
Shape 可以参与:
Object Recognition
Collision Detection
Manipulation
Spatial Reasoning
例如:
Shape = Sphere
结合:
Position
Velocity
可以帮助系统预测对象运动。
因此:
Shape
虽然相对稳定,但并不意味着它不参与动态认知。
128.10 Fragility
Fragility = High
这是一个很有代表性的属性。
它通常不会像 Position 一样快速变化:
Position:
每秒变化
而:
Fragility:
长期保持
所以属于:
Relatively Stable Attribute
但是:
Fragility
可能受到对象结构变化影响。
例如:
Egg
Fragility = High
破碎后:
BrokenShell
其结构已经发生改变。
因此:
Fragility
仍然需要允许:
Attribute Update
128.11 Position
Position 是典型的:
Dynamic Attribute
例如:
Position(t1) = (100,50,20)
Position(t2) = (102,50,20)
Position(t3) = (105,50,20)
Position 的主要特点是:
High Update Frequency
因此它不应该被当成:
Static Property
而应该被当成:
Time-Varying Attribute
即:
Position(t)
128.12 Velocity
Velocity 同样属于:
Dynamic Attribute
例如:
Velocity(t1) = 0
Velocity(t2) = 1m/s
Velocity(t3) = 2m/s
它不仅描述当前状态,还可以参与:
Motion Prediction
例如:
Position
+
Velocity
+
Time
可以形成:
Expected Position
因此:
Dynamic Attribute
是预测系统的重要输入。
128.13 Orientation
Orientation:
Orientation
描述对象在空间中的方向。
例如:
Orientation = 0°
随后:
Orientation = 15°
再随后:
Orientation = 45°
因此它与 Position 一样属于:
Dynamic Attribute
但在对象没有发生旋转时:
Orientation
可以保持长期稳定。
所以这里再次说明:
Dynamic 并不意味着“永远在变化”,而意味着“具有时间变化能力”。
128.14 Force
Force 是典型的环境交互属性:
Force = 0
可能变成:
Force = 0.5N
再变成:
Force = 1.2N
然后:
Force = 0
它通常高度依赖:
Contact
Environment
Action
Object Interaction
因此:
Force
是:
Dynamic Attribute
的重要实例。
128.15 Contact
Contact 更具有特殊性。
例如:
Contact = FALSE
然后:
Contact = TRUE
再:
Contact = FALSE
因此它具有非常明显的:
State Transition
特征。
所以:
Contact
虽然可以作为 Object Attribute 存储:
Egg.Contact = TRUE
但在更高层认知中,它也可以产生:
Contact Event
因此:
Dynamic Attribute
↓
State Change
↓
Event
是一个非常重要的转换路径。
128.16 Attribute 的时间维度
稳定属性和动态属性真正的差异,可以通过时间表示。
稳定属性:
A(t1) ≈ A(t2) ≈ A(t3)
例如:
Material(t)
在较长时间内近似不变。
动态属性:
A(t1) ≠ A(t2) ≠ A(t3)
例如:
Position(t)
Velocity(t)
Force(t)
因此可以定义:
Attribute Stability
=
Rate of Change
+
Expected Change Frequency
这比简单地把属性划分为:
Static
Dynamic
更加准确。
128.17 Attribute 的变化率
对于动态属性,可以进一步建立:
Change Rate
例如 Position:
ΔPosition / ΔTime
得到:
Velocity
Velocity 的变化:
ΔVelocity / ΔTime
得到:
Acceleration
因此:
Position
↓
Velocity
↓
Acceleration
实际上形成了属性之间的派生关系。
这意味着:
Dynamic Attribute 不只是记录当前值,还可以形成时间上的数学关系。
128.18 Attribute 与 State 的区别
这里需要建立另一个重要边界:
Attribute ≠ State
例如:
Position = (100,50)
是:
Attribute
而:
Moving
是:
State
但是:
Velocity > 0
可以成为:
Moving
状态的判断依据。
因此:
Dynamic Attributes
↓
State Evaluation
↓
Object State
例如:
Velocity = 0
可能得到:
State = Stationary
而:
Velocity > 0
可能得到:
State = Moving
128.19 Attribute 与 Relation 的区别
同样:
Attribute ≠ Relation
例如:
Weight = 60g
是属性。
而:
Egg
↓ on
Table
是关系。
因此:
Object
├── Attributes
│ ├── Weight
│ └── Shape
│
└── Relations
└── on → Table
两者必须保持架构上的分离。
128.20 Attribute 可以来自不同来源
Object Attribute 并不一定全部来自同一个传感器。
例如:
Camera
↓
Shape
Color
Depth Sensor
↓
Position
Distance
Force Sensor
↓
Force
Contact
Memory
↓
Material
Fragility
于是:
Object
├── Visual Attributes
├── Spatial Attributes
├── Physical Attributes
└── Learned Attributes
这使 Cognitive Object 成为多源信息融合的载体。
128.21 Attribute Fusion
多个传感器可能产生同一种属性。
例如:
Camera → Position A
Lidar → Position B
系统不能简单地选择其中一个。
而可以建立:
Position Evidence
├── Camera
├── Lidar
└── Previous State
然后形成:
Current Position
因此:
Multiple Evidence
↓
Attribute Fusion
↓
Object Attribute
这与第125章建立的:
Multivariate Perception
形成直接连接。
128.22 Attribute Confidence
每个属性都可能具有:
Confidence
例如:
Shape = Oval
Confidence = 0.98
而:
Material = Glass
Confidence = 0.61
因此对象内部可以保存:
Egg
├── Shape
│ ├── Value = Oval
│ └── Confidence = 0.98
│
└── Material
├── Value = Glass
└── Confidence = 0.61
这允许机器区分:
Known Attribute
和:
Uncertain Attribute
128.23 Attribute History
动态属性不能只保存当前值。
例如:
Position = 105
还应该能够追踪:
Position
100
↓
102
↓
105
因此:
Attribute
├── Current Value
└── History
形成:
Attribute History
进一步:
Attribute History
↓
Change Detection
↓
Event
↓
Learning
128.24 Attribute Change
对象属性变化可以表示为:
AttributeChange
{
attribute,
old_value,
new_value,
timestamp
}
例如:
PositionChange
{
old: (100,50),
new: (105,50),
timestamp: T100
}
系统因此能够明确知道:
What changed?
When changed?
How changed?
这比单纯覆盖:
Position = (105,50)
具有更强的认知能力。
128.25 Stable Attribute 与 Dynamic Attribute 的交互
两类属性并不是完全独立的。
例如:
Material = Glass
是稳定属性。
但是:
Force = Increasing
是动态属性。
两者组合:
Material
+
Force
可以产生:
Break Risk
例如:
Glass
+
High Force
+
Impact
可能形成:
High Damage Probability
因此:
Stable Attributes
+
Dynamic Attributes
↓
Behavior Evaluation
这是认知推理的重要基础。
128.26 Attribute → State
动态属性可以产生对象状态。
例如:
Velocity = 0
得到:
Stationary
而:
Velocity > 0
得到:
Moving
再例如:
Force = 0
Contact = FALSE
可能得到:
Free
而:
Contact = TRUE
Force > 0
可能得到:
Interacting
因此:
Attributes
↓
State Rules
↓
Object State
这是一个非常重要的认知转换。
128.27 Attribute → Event
属性变化还可以产生事件。
例如:
Contact:
FALSE
↓
TRUE
产生:
ContactStarted
或者:
Velocity:
0
↓
2m/s
产生:
MovementStarted
或者:
Shape:
Intact
↓
Broken
产生:
ObjectBroken
因此:
Attribute Change
↓
Event Detection
↓
Cognitive Event
这为后续建立事件认知系统提供基础。
128.28 Attribute → Prediction
Dynamic Attribute 还可以用于预测。
例如:
Position = 100
Velocity = 2m/s
Direction = Right
系统可以形成:
Predicted Position
即:
Current Attributes
↓
Temporal Model
↓
Future Attribute
因此:
Dynamic Attribute
不仅描述过去和现在。
还可以成为:
Prediction
的基础。
128.29 Attribute 的统一结构
工程上可以建立统一模型:
ObjectAttribute
{
name,
value,
type,
stability,
source,
timestamp,
confidence,
history
}
例如:
{
name: "position",
value: [120,80,30],
type: "spatial",
stability: "dynamic",
source: "depth_sensor",
timestamp: T1001,
confidence: 0.96
}
而稳定属性:
{
name: "material",
value: "glass",
type: "physical",
stability: "relatively_stable",
source: "memory",
timestamp: T950,
confidence: 0.88
}
128.30 两类属性的统一模型
因此:
Object
│
├── Relatively Stable Attributes
│ │
│ ├── Material
│ ├── Shape
│ ├── Fragility
│ └── Structure
│
└── Dynamic Attributes
│
├── Position
├── Velocity
├── Orientation
├── Force
└── Contact
可以进一步形成:
Object
↓
Attribute System
│
├── Stable Layer
│
└── Dynamic Layer
其中:
Stable Layer
描述:
What the object is like
而:
Dynamic Layer
描述:
What the object is doing
128.31 一个完整实例
以鸡蛋为例:
O001
相对稳定属性
Material = OrganicShell
Shape = Oval
Fragility = High
动态属性
Position = (120,80,30)
Velocity = 0
Orientation = 15°
Force = 0.8N
Contact = TRUE
形成:
O001
├── Stable Attributes
│ ├── Material = OrganicShell
│ ├── Shape = Oval
│ └── Fragility = High
│
└── Dynamic Attributes
├── Position = (120,80,30)
├── Velocity = 0
├── Orientation = 15°
├── Force = 0.8N
└── Contact = TRUE
如果手开始移动鸡蛋:
Velocity
0
↓
0.5
↓
1.2
稳定属性没有改变。
但:
Dynamic Attribute
持续变化。
如果鸡蛋掉落:
Position ↓
Velocity ↑
Force ↑
Contact ↓
系统就可以进一步形成:
State = Falling
如果发生撞击:
Force ↑↑
然后:
Shape
Oval
↓
Broken
此时稳定属性:
Shape
也发生了结构性变化。
于是对象进入新的认知状态。
128.32 属性稳定性是连续的
最终还需要避免一个过度简单的二元模型:
Stable
Dynamic
现实中更合理的是一个连续尺度:
Very Stable
↓
Stable
↓
Relatively Stable
↓
Slowly Changing
↓
Dynamic
↓
Highly Dynamic
例如:
Material
→ Very Stable
Shape
→ Stable
Fragility
→ Relatively Stable
Temperature
→ Slowly Changing
Position
→ Dynamic
Force
→ Highly Dynamic
因此可以建立:
Stability Score
例如:
0.0 = Highly Dynamic
1.0 = Highly Stable
这将使认知系统能够根据实际变化频率进行处理,而不是依赖绝对分类。
128.33 Object Attribute 的认知价值
通过 Attribute,机器开始能够回答:
What properties does the object have?
但是更重要的是:
Which properties are stable?
Which properties are changing?
Which properties changed?
Why did they change?
What state does the change indicate?
What may happen next?
于是:
Attribute
↓
Change
↓
State
↓
Event
↓
Prediction
成为一条完整的认知链。
128.34 本章核心架构
本章可以最终建立:
Cognitive Object
│
├── Identity
│
├── Attributes
│ │
│ ├── Relatively Stable
│ │ ├── Material
│ │ ├── Shape
│ │ └── Fragility
│ │
│ └── Dynamic
│ ├── Position
│ ├── Velocity
│ ├── Orientation
│ ├── Force
│ └── Contact
│
├── Relations
│
├── State
│
└── Dynamics
并建立:
Stable Attribute
↓
Object Nature
以及:
Dynamic Attribute
↓
Object Behavior
最终:
Object Nature
+
Object Behavior
↓
Cognitive Object Model
128.35 本章核心定义
Object Attribute 是 Cognitive Object 中用于描述对象性质、条件和行为表现的结构化认知信息。
其中:
Relatively Stable Attribute
主要描述:
Material
Shape
Fragility
Structure
而:
Dynamic Attribute
主要描述:
Position
Velocity
Orientation
Force
Contact
Temperature
Pressure
二者的根本区别不是:
永远不变
与:
一定变化
而是:
Change Frequency
+
Change Rate
+
Expected Stability
因此最终形成:
Object
↓
Attributes
│
├── Relatively Stable
│ ↓
│ Nature / Capability
│
└── Dynamic
↓
Behavior / State
而动态属性进一步形成:
Dynamic Attribute
↓
Attribute Change
↓
State Change
↓
Event
↓
Prediction
至此,Cognitive Object 已经不再只是:
Object = Name + Attributes
而成为:
Object
=
Identity
+
Stable Attributes
+
Dynamic Attributes
+
Relations
+
State
+
History
这一步非常关键:机器开始能够把“对象是什么”与“对象现在正在怎样”分离开来。
下一层自然进入:
Object
↓
Attribute
↓
Relation
即研究一个对象的属性与另一个对象的属性、对象本身之间如何形成:
第129章:Cognitive Relation——认知关系。