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

第八卷 第三章 对象识别

第三章 对象识别

3.1 对象识别在WSaiOS-SI中的作用

在WSaiOS-SI中,信息经过感知和自主语义理解之后,可以形成Element;多个Element通过Relation形成Structure;当前Structure再与已有Structure和Knowledge进行匹配。

但是,仅仅完成Structure Matching,还不能回答一个更加具体的问题:

当前这些结构信息究竟对应什么Object?

因此,在信息识别、Element形成和Structure Matching之后,需要建立Object Recognition机制。

本章研究:

如何根据Element、Relation、Structure以及Knowledge确定当前信息所对应的Object。

其基本路径为:

感知信息
   ↓
自主语义理解
   ↓
Element
   ↓
Relation
   ↓
Structure
   ↓
Structure Matching
   ↓
Knowledge Matching
   ↓
Object Recognition

因此,对象识别不是单纯从文本中寻找一个名称,而是根据结构意义确定一个具体对象在当前结构空间中的身份、类别、属性、状态和关系。


3.2 Object的基本定义

WSaiOS-SI中的Object理论已经建立:

Object是Class经过实例化形成的具体对象实例。

但是,在对象识别过程中,系统面对的并不一定已经存在一个程序运行意义上的Object实例。

因此必须区分两个过程:

对象识别

回答:

当前信息对应的是哪个Object,或者应该形成什么Object?

对象实例化

回答:

根据Class定义,如何创建这个具体Object实例?

因此:

对象识别
   ↓
确定Object Identity / Class / Structure
   ↓
实例化条件确认
   ↓
Object Instantiation

对象识别先确定“是什么对象”。

实例化再使这个对象进入具体运行状态。


3.3 对象识别不是名称识别

不能把:

“Product A”

直接等同于一个Object。

“Product A”可能只是:

  • 一个名称;
  • 一个文本;
  • 一个产品型号;
  • 一个产品实体;
  • 一个产品类别;
  • 一个引用;
  • 一个历史记录;
  • 一个订单中的产品项目。

因此:

Name≠ObjectName \neq Object

对象识别必须结合:

  • Identity;
  • Semantic;
  • Class;
  • Attribute;
  • Value;
  • Relation;
  • Context;
  • Source;
  • Existing Knowledge;
  • Current Structure。

因此:

Object=f(Identity,Semantic,Structure,Knowledge,Context,Relation)Object = f( Identity, Semantic, Structure, Knowledge, Context, Relation )


3.4 对象识别的基本定义

WSaiOS-SI中的对象识别定义为:

对象识别,是根据当前感知信息形成的Element、Relation和Structure,并结合已有Knowledge、Class定义、对象属性、状态、关系和上下文,对当前结构所对应的具体对象实体进行确定、区分、绑定或创建的过程。

其核心任务不是简单命名,而是:

确定结构所指向的对象实体。

因此:

Element+Structure+Knowledge→Object RecognitionElement + Structure + Knowledge \rightarrow Object\ Recognition


3.5 对象识别的结构基础

对象识别建立在前面已经形成的结构体系之上。

完整路径为:

信息
 ↓
Element
 ↓
Relation
 ↓
Structure
 ↓
Knowledge
 ↓
Object Recognition

其中:

  • Element提供基本语义单位;
  • Relation提供对象之间的联系;
  • Structure提供对象的整体结构;
  • Knowledge提供已有对象类别和对象知识;
  • Context提供当前识别环境;
  • Object Recognition确定对象身份。

因此:

对象不是从孤立信息中直接识别出来的,而是在结构和知识空间中被确定的。


3.6 Object的识别依据

对象识别至少需要以下几个层面的依据。

Object Recognition
│
├── Identity
├── Semantic
├── Class
├── Attribute
├── Value
├── State
├── Relation
├── Context
├── Source
└── Existing Knowledge

这些因素共同形成对象识别依据。

例如:

Product A
Price = 100
Inventory = 5
Supplier = Company X
Category = Electric Toothbrush

如果已有Knowledge中存在:

Product A
Category = Electric Toothbrush
Supplier = Company X

那么当前信息可以被识别为已有Product A Object的更新信息。


3.7 Identity与Object识别

Object必须具有Identity。

Identity不是简单名称。

例如:

Product Name = Product A

只是一个Attribute Value。

真正的Object Identity可能由:

Product ID
+
Manufacturer
+
Model
+
Context

共同确定。

因此:

Identity≠NameIdentity \neq Name

对象识别需要建立:

Information
 ↓
Identity Evidence
 ↓
Identity Matching
 ↓
Object Identity

如果Identity不足,则不能强制认定为某个已有Object。


3.8 对象身份匹配

对象身份匹配用于判断:

当前感知信息是否属于已有Object。

例如已有:

Object A
Identity = P001

当前感知:

Product ID = P001
Inventory = 5

经过Identity Matching:

P001
 ↓
Existing Object A

于是:

Existing Object A
└── Inventory
    └── Current Value = 5

此时系统不是创建一个新Object,而是更新已有Object。


3.9 同名对象的区分

多个Object可能拥有相同名称。

例如:

Product A

可能存在:

Supplier X → Product A
Supplier Y → Product A

如果只使用名称进行识别:

Product A=Product AProduct\ A = Product\ A

就可能错误合并不同Object。

因此对象识别必须使用:

  • Identity;
  • Class;
  • Attributes;
  • Relations;
  • Context;
  • Source。

形成:

ObjectIdentity=f(Name,Attributes,Relations,Context,Source,Identity)ObjectIdentity = f(Name,Attributes,Relations,Context,Source,Identity)

因此:

同名不代表同Object。


3.10 不同名称的同一Object

反过来,同一个Object也可能存在不同名称。

例如:

Product A
A Product
Model P001
P001

如果它们通过:

  • Identity;
  • Model;
  • Manufacturer;
  • Relation;
  • Attribute;
  • Source;

能够建立稳定对应关系,则可以识别为同一个Object。

因此:

名称不同不必然意味着Object不同。

这也是Object Recognition区别于字符串匹配的重要原因。


3.11 Object与Class

对象识别必须确定当前Object属于哪个Class。

前面已经建立:

Class是对一类对象共同结构、属性、方法、关系和规则的定义。

因此:

Class
   ↓
Object

对象识别过程反向使用Class:

Current Structure
      ↓
Class Matching
      ↓
Class
      ↓
Object Recognition
      ↓
Object

例如:

Price
Inventory
Supplier
Category

如果这些Attribute与:

Class Product

的共同结构相匹配,则可以确定:

当前结构属于Product对象类型。


3.12 Class Matching

Class Matching用于判断:

当前Structure是否符合某个Class的结构定义。

基本匹配维度包括:

Current Structure
      ↓
Attribute Matching
      ↓
Relation Matching
      ↓
Method / Rule Compatibility
      ↓
State Compatibility
      ↓
Context Compatibility
      ↓
Class Matching

形式化表示:

ClassMatch=f(StructureFit,AttributeFit,RelationFit,RuleFit,ContextFit)ClassMatch = f( StructureFit, AttributeFit, RelationFit, RuleFit, ContextFit )

如果匹配成立:

Structure→ClassStructure \rightarrow Class

则可以进一步确定Object类型。


3.13 Object识别与Attribute

Attribute是Object内部的结构成员。

因此:

Object
├── Attribute
│   └── Value
├── Attribute
│   └── Value
└── Attribute
    └── Value

对象识别可以通过Attribute组合判断Object。

例如:

Model = P001
Manufacturer = Company X
Category = Product

这三个Attribute共同形成:

Object Identity Evidence

因此:

Object不是由某一个Attribute决定的,而可以由多个Attribute、Relation和Context共同确定。


3.14 Object识别与Value

Value是Attribute当前对应的具体值。

例如:

Object
└── Inventory
    └── Value = 5

这里:

  • Inventory是Attribute;
  • 5是Value;
  • Product A是Object。

不能将:

5

识别为Object。

也不能将:

Inventory

直接识别为Object。

因此必须严格保持:

Object→Attribute→ValueObject \rightarrow Attribute \rightarrow Value


3.15 Object识别与State

对象当前State也是对象识别的重要依据。

例如同一个Object:

Product A

可能处于:

Active
Inactive
OutOfStock
Discontinued

不同状态不会自动产生不同Object。

而是:

Same Object
   ↓
Different State

因此:

Object≠StateObject \neq State

对象识别首先确定:

是哪一个Object。

然后确定:

这个Object当前处于什么State。


3.16 Object识别与Relation

对象不能脱离Relation进行识别。

例如:

Supplier A
   supplies
Product B

如果已有Knowledge:

Supplier A
   supplies
Product B

则当前感知信息可以加强对Product B的身份判断。

因此:

Relation不仅描述对象之间的关系,也可以作为对象身份识别的重要证据。

对象识别可以利用:

Object
+
Attribute
+
Value
+
Relation
+
Context

共同确定Object。


3.17 Object识别与Context

同一个Element在不同Context下可能指向不同Object。

例如:

“Apple”

可能表示:

  • 一个水果Object;
  • 一个公司Object;
  • 一个品牌Object;
  • 一个产品Object。

因此:

Object=f(Element,Context,Structure,Knowledge)Object = f(Element, Context, Structure, Knowledge)

Context可以包括:

  • 行业;
  • 场景;
  • 时间;
  • 地点;
  • 当前需求;
  • 当前问题;
  • 相关Object;
  • 来源;
  • 当前Structure。

因此对象识别必须结合Context。


3.18 Object识别与Knowledge

Knowledge是对象识别的重要依据。

已有Knowledge可能包含:

Class Product
├── Product A
├── Product B
└── Product C

当前感知:

Product A
Inventory = 5

系统首先在已有Knowledge中进行Object Matching:

Product A
     ↓
Existing Knowledge
     ↓
Object A

然后将新的Inventory信息绑定到Object A。

因此:

Perceived Structure+Knowledge→Object RecognitionPerceived\ Structure + Knowledge \rightarrow Object\ Recognition


3.19 Object Recognition的基本匹配过程

完整对象识别过程可以表示为:

当前感知信息
      ↓
Element识别
      ↓
Relation识别
      ↓
Structure形成
      ↓
已有Structure匹配
      ↓
Knowledge Matching
      ↓
Class Matching
      ↓
Identity Matching
      ↓
Attribute Matching
      ↓
Relation Matching
      ↓
Context Matching
      ↓
State Matching
      ↓
Object Recognition

最后可能产生:

├── Existing Object
├── New Object
├── Ambiguous Object
├── Multiple Candidate Objects
├── Object Update
├── Object Merge
├── Object Split
└── Insufficient Evidence

3.20 已有Object识别

如果当前结构与已有Object高度匹配,则:

Current Structure
       ↓
Object Matching
       ↓
Existing Object
       ↓
Update Attributes / Values / State

例如:

Product A
Inventory = 5

匹配已有:

Product A

最终:

Product A
└── Inventory = 5

3.21 新Object识别

如果当前Structure无法匹配已有Object,但满足Object形成条件,则可以形成新Object候选。

例如:

Product ID = P009
Model = X9
Manufacturer = Company A

已有Knowledge中没有P009。

如果Identity、Class和Structure均满足要求:

No Existing Object
       ↓
Object Candidate
       ↓
Validation
       ↓
New Object

此时才可以创建新的Object实例。


3.22 对象候选

对象识别不一定能够一次确定唯一Object。

可能出现:

Current Structure
      ↓
Candidate A
Candidate B
Candidate C

例如:

名称 = Product A

但存在三个同名对象。

此时不能强制选择其中一个。

应该保留:

Candidate Objects
├── Object A
├── Object B
└── Object C

然后继续通过:

  • Identity;
  • Attribute;
  • Relation;
  • Context;
  • Source;
  • State;
  • Time;

进行进一步匹配。

因此:

对象识别允许存在不确定性。


3.23 对象识别的置信结构

对象识别可以形成结构化判断:

Object Candidate
├── Identity Fit
├── Class Fit
├── Attribute Fit
├── Relation Fit
├── Context Fit
├── State Fit
├── Source Fit
└── Overall Match

可以形式化:

ObjectScore=wiI+wcC+waA+wrR+wxX+wsS+wqQObjectScore = w_i I + w_c C + w_a A + w_r R + w_x X + w_s S + w_q Q

其中:

  • II = Identity Fit
  • CC = Class Fit
  • AA = Attribute Fit
  • RR = Relation Fit
  • XX = Context Fit
  • SS = State Fit
  • QQ = Source/Quality Fit

这里的Score不是简单概率,也不是必须依赖统计模型。

它可以是结构匹配结果的综合评价。


3.24 Object识别与对象合并

不同来源可能识别出两个看似不同的Object:

Source A:
Company X

Source B:
X Company Ltd.

如果通过Identity、Attribute、Relation和Context确认二者实际上指向同一实体,则可以进行Object Merge。

Object A
   +
Object B
   ↓
Identity Matching
   ↓
Validation
   ↓
Object Merge
   ↓
Unified Object

因此:

对象合并不是字符串去重,而是实体结构统一。


3.25 Object识别与对象拆分

反过来,一个信息来源可能把多个Object错误地表达为一个整体。

例如:

Company A and Company B

如果自主语义理解和结构分析确认:

Company A
+
Company B

是两个独立实体,则必须进行Object Split。

Original Entity Candidate
       ↓
Structure Analysis
       ↓
Object Split
       ├── Object A
       └── Object B

因此对象识别包括:

识别、绑定、创建、合并和拆分。


3.26 Object识别与Object实例化

必须再次强调:

Object Recognition ≠ Object Instantiation。

对象识别:

“当前信息对应哪个对象?”

对象实例化:

“根据Class定义创建这个对象实例。”

二者关系:

Information
 ↓
Element
 ↓
Structure
 ↓
Object Recognition
 ↓
Class Determination
 ↓
Instantiation
 ↓
Object

如果已有Object:

Object Recognition
       ↓
Existing Object
       ↓
No New Instantiation

如果不存在:

Object Recognition
       ↓
New Object Candidate
       ↓
Class
       ↓
Instantiation
       ↓
New Object

3.27 对象识别与Object状态绑定

确定Object之后,需要将当前感知信息绑定到该Object。

例如:

Object A
├── Price
├── Inventory
├── Supplier
└── State

当前感知:

Inventory = 5

识别结果:

Object A
└── Inventory
    └── Current Value = 5

然后:

Inventory = 5
        ↓
State Evaluation
        ↓
Object State Update

因此:

对象识别之后必须完成当前Attribute、Value和State的对象绑定。


3.28 Object识别与Method

Object确定之后,其Class中定义的Method才能被正确调用。

例如:

Class Product
└── Method
    └── CalculateReorder()

当前识别:

Object Product A

于是:

Product A
   ↓
CalculateReorder()
   ↓
Self Binding
   ↓
Inventory / Sales / SupplyTime
   ↓
Operation

如果Object没有被正确识别,Method就可能绑定到错误对象。

因此:

Object Recognition是Object Method正确运行的重要前提。


3.29 Object识别与Self Reference

在Method调用过程中:

Object
 ↓
Method Call
 ↓
Self Reference

其中:

Self(O)=OSelf(O)=O

也就是说,Method执行时必须知道:

当前Method究竟属于哪个Object实例。

因此:

Object Recognition
       ↓
Object Identity
       ↓
Method Invocation
       ↓
Self Binding
       ↓
Object Attribute / Value

对象识别实际上为后续Self Binding提供了对象身份基础。


3.30 Object识别与结构匹配的关系

本章的核心不是单独建立Object Recognition,而是明确:

Object Recognition是Structure Matching进一步深入到对象层的过程。

整体关系为:

Element
   ↓
Structure
   ↓
Structure Matching
   ↓
Knowledge Structure
   ↓
Object Structure Matching
   ↓
Class Matching
   ↓
Identity Matching
   ↓
Object Recognition

因此:

ObjectRecognition=f(Structure,Knowledge,Class,Identity,Attribute,Relation,Context,State)ObjectRecognition = f( Structure, Knowledge, Class, Identity, Attribute, Relation, Context, State )


3.31 对象识别的多层结构

对象识别可以建立为多层匹配:

第一层:Element Matching
        ↓
第二层:Attribute Matching
        ↓
第三层:Relation Matching
        ↓
第四层:Structure Matching
        ↓
第五层:Class Matching
        ↓
第六层:Identity Matching
        ↓
第七层:Object Matching
        ↓
第八层:State Binding

这说明Object Recognition不是单一步骤,而是多个结构匹配过程共同形成的结果。


3.32 Object识别的形式化表达

设:

  • EE = 当前Element集合;
  • RR = 当前Relation集合;
  • SS = 当前Structure;
  • KK = 已有Knowledge;
  • CC = Context;
  • DD = Demand;
  • ClCl = Class集合;
  • OO = Object集合。

首先形成当前结构:

S=Construct(E,R,C)S = Construct(E,R,C)

然后进行Structure Matching:

Sm=Match(S,K,C,D)S_m = Match(S,K,C,D)

再进行Class Matching:

Clm=MatchClass(S,SClass,K,C)Cl_m = MatchClass(S,S_{Class},K,C)

再进行Object Matching:

Om=MatchObject(S,Clm,K,Identity,Attribute,Relation,Context,State)O_m = MatchObject( S, Cl_m, K, Identity, Attribute, Relation, Context, State )

最终:

O=Recognize(Om)O = Recognize(O_m)

如果不存在已有Object:

Onew=Instantiate(Class,Identity,Attributes,Values,State,Context)O_{new} = Instantiate( Class, Identity, Attributes, Values, State, Context )

因此:

Structure→Knowledge→Class→Identity→Object\boxed{ Structure \rightarrow Knowledge \rightarrow Class \rightarrow Identity \rightarrow Object }

是本章对象识别的核心结构路径。


3.33 Object识别结果

对象识别最终可以产生以下几类结果:

Object Recognition Result
│
├── Existing Object
│
├── Existing Object + Update
│
├── New Object
│
├── Object Candidate
│
├── Multiple Candidates
│
├── Object Merge
│
├── Object Split
│
├── Ambiguous
│
└── Insufficient Information

不同结果对应不同后续处理。

Existing Object

直接绑定当前信息。

Existing Object + Update

更新Attribute、Value、State或Relation。

New Object

经过验证后实例化。

Object Candidate

暂时不能确定唯一Object。

Multiple Candidates

等待更多信息进行区分。

Object Merge

多个Object被确认属于同一实体。

Object Split

一个候选Object被识别为多个独立Object。

Ambiguous

结构证据不足以确定。

Insufficient Information

需要继续感知。


3.34 对象识别与需求驱动感知

对象识别不是封闭的一次性过程。

如果当前信息不足:

Object Candidate
       ↓
Evidence Insufficient
       ↓
Information Gap
       ↓
Perception
       ↓
New Information
       ↓
Element
       ↓
Structure Matching
       ↓
Object Recognition

因此,对象识别可以反向驱动感知。

例如系统无法区分:

Product A - Supplier X
Product A - Supplier Y

此时需要获取:

Manufacturer
Model
Product ID
Supplier

新的信息进入后再次执行对象识别。

因此:

对象识别可以产生新的信息需求,并驱动下一轮感知。


3.35 对象识别与认知

对象识别是认知形成的基础。

如果系统不知道:

当前面对的是哪个Object,

就无法正确读取:

  • Attribute;
  • Value;
  • State;
  • Relation;
  • Method;
  • Rule。

因此:

Information
 ↓
Element
 ↓
Structure
 ↓
Object Recognition
 ↓
Object
 ↓
Attribute / Value / State
 ↓
Method
 ↓
Operation
 ↓
Cognition

所以:

对象识别解决“当前是什么对象”,认知进一步解决“这个对象当前意味着什么”。


3.36 对象识别与总体智能链

将本章放入WSaiOS-SI总体理论:

需求
 ↓
知识
 ↓
结构
 ↓
运算
 ↓
能力
 ↓
认知
 ↓
决策
 ↓
方法
 ↓
执行
 ↓
反馈
 ↓
学习
 ↓
演化

在实际信息进入过程中,对象识别作为其中的内部结构机制展开:

需求
 ↓
感知
 ↓
感知信息
 ↓
自主语义理解
 ↓
Element
 ↓
Relation
 ↓
Structure
 ↓
Structure Matching
 ↓
Object Recognition
 ↓
Object / Attribute / Value / State
 ↓
Knowledge Matching
 ↓
Method
 ↓
Operation
 ↓
Cognition
 ↓
Decision

因此,对象识别不会改变总体理论链,而是解释总体链内部“结构如何确定具体对象”的机制。


3.37 对象识别的核心原则

原则一:对象不是信息名称

名称只能作为对象识别依据之一,不能直接等同于Object。


原则二:对象必须具有Identity

Object必须能够在结构空间中建立可区分的身份。


原则三:对象识别依赖Structure

对象识别必须建立在Element、Relation和Structure形成的结构基础之上。


原则四:对象识别依赖Knowledge

已有Knowledge提供Class、Object、Attribute、Relation和State等对象识别依据。


原则五:Class与Object必须区分

Class定义一类对象的共同结构,Object是具体实例。


原则六:Object与Attribute、Value必须区分

Object≠Attribute≠ValueObject \neq Attribute \neq Value

其基本结构为:

Object→Attribute→ValueObject \rightarrow Attribute \rightarrow Value


原则七:Object与State必须区分

State描述Object当前状态,不决定Object本身是否是另一个对象。


原则八:同名不必然同Object

相同名称可能对应多个不同Object。


原则九:不同名称可以对应同Object

不同名称经过Identity、Relation、Context等验证,可以统一为同一Object。


原则十:对象识别不等于对象实例化

先确定Object,再根据Class和规则决定是否实例化。


原则十一:对象识别允许不确定

证据不足时保留Object Candidate,不强制产生错误对象。


原则十二:对象识别可以演化

随着新信息、Relation、Value、State和Knowledge进入,对象识别结果可以更新、合并、拆分和重新确定。


3.38 本章结论

WSaiOS-SI中的对象识别不是简单的名称识别,也不是从文本中直接寻找一个对象名称。

它建立在:

Element、Relation、Structure、Knowledge、Class、Identity、Attribute、Value、State和Context

共同形成的结构基础之上。

其基本过程为:

感知信息 → 自主语义理解 → Element → Relation → Structure → Structure Matching → Knowledge Matching → Class Matching → Identity Matching → Object Recognition

其中:

  • Element确定基本结构单位;
  • Relation确定结构联系;
  • Structure确定整体结构;
  • Knowledge提供已有对象知识;
  • Class确定对象所属类型;
  • Identity确定对象身份;
  • Attribute与Value提供对象特征和当前具体值;
  • Relation提供对象之间的识别证据;
  • State确定对象当前状态;
  • Context确定对象在当前环境中的意义。

因此,可以将对象识别的核心理论关系概括为:

Element→Structure→Knowledge→Class→Identity→Object\boxed{ Element \rightarrow Structure \rightarrow Knowledge \rightarrow Class \rightarrow Identity \rightarrow Object }

进一步形成对象运行链:

Object→Attribute→Value→State→Method→Operation→Result→Cognition\boxed{ Object \rightarrow Attribute \rightarrow Value \rightarrow State \rightarrow Method \rightarrow Operation \rightarrow Result \rightarrow Cognition }

最终建立:

对象识别负责确定“当前结构对应什么Object”;对象实例化负责使确定的Object进入具体运行状态;对象运行则通过Attribute、Value、State和Method进入Operation;Operation产生Result,并最终参与Cognition形成。

因此,对象识别是WSaiOS-SI从结构理解进入对象理解的关键环节,也是后续属性读取、状态判断、方法调用、结构运算和认知形成的基础。

Leave a Reply

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

客服咨询
● 欢迎咨询与合作
您好!欢迎咨询。 我可以帮助您了解人工智能技术研发、智能软件系统开发、网站建设、搜索优化及项目定制等相关信息。 请问有什么可以帮您?
免费申请
请填写以下信息,方便我们进一步沟通。
欢迎咨询 AI 系统开发、网站建设、搜索优化、项目定制合作
电话:15089196448
邮箱:1602401899@qq.com
地址:陕西省渭南市
服务时间:周一至周五 09:00 - 18:00 | 7×24小时技术值守