第259章 Real-Time Cognitive Dashboard|实时认知控制台
259.1 提出背景
第258章建立了 Cognitive Interface|认知界面,解决了机器认知系统与外部主体之间的信息交互问题。
但是,认知界面主要解决的是:
如何进入和观察认知系统。
当ICAI进入实际运行阶段以后,还需要一个更加集中、动态和连续的运行观察中心,使操作者能够在同一个控制台中看到机器当前的:
目标、对象、属性、关系、状态、场景、认知、行为、动作、设备和反馈。
因此,本章建立:
Real-Time Cognitive Dashboard|实时认知控制台
实时认知控制台不是普通后台管理系统,也不是简单的数据统计Dashboard。
它是ICAI机器认知运行过程的实时状态观察与控制中心。
其核心结构为:
Real World
↓
Real-Time Data
↓
Object Model
↓
Scene Model
↓
Cognitive Model
↓
Behavior Model
↓
Action
↓
Device Model
↓
Device Engine
↓
Feedback
↓
Re-Cognition
↓
Real-Time Cognitive Dashboard
因此,实时认知控制台的核心任务是:
把ICAI当前运行中的认知结构和执行状态集中表现出来。
259.2 Real-Time Cognitive Dashboard 的定义
Real-Time Cognitive Dashboard|实时认知控制台是对ICAI机器认知系统运行过程中的目标、对象、场景、认知、行为、动作、设备、状态和反馈进行实时汇总、监控、表现和控制的系统界面。
可以定义:
RCDt=F(Gt,Ot,Sct,CMt,BMt,At,DMt,Ft)RCD_t=F(G_t,O_t,Sc_t,CM_t,BM_t,A_t,DM_t,F_t)
其中:
- RCDtRCD_t:时间 tt 的实时认知控制台状态;
- GtG_t:当前目标;
- OtO_t:当前对象;
- SctSc_t:当前场景;
- CMtCM_t:当前认知模型;
- BMtBM_t:当前行为模型;
- AtA_t:当前动作;
- DMtDM_t:当前设备模型;
- FtF_t:当前反馈。
因此:
RCDt→SystemStatetRCD_t \rightarrow SystemState_t
实时认知控制台本质上是:
机器认知运行状态的集中表现模型。
259.3 Dashboard 与普通管理后台的区别
普通管理后台通常围绕:
用户
订单
商品
客户
数据
统计
日志
建立。
而ICAI实时认知控制台围绕:
Goal
Object
Attribute
Relation
State
Scene
Cognition
Behavior
Action
Device
Feedback
建立。
因此:
Dashboard≠CognitiveDashboardDashboard\neq CognitiveDashboard
普通Dashboard主要关注:
数据是什么。
实时认知控制台主要关注:
机器现在认知什么、正在做什么、为什么处于当前状态,以及执行以后发生了什么变化。
259.4 实时认知控制台的总体结构
可以建立:
Real-Time Cognitive Dashboard
│
├── System Status
│
├── Goal Monitor
│
├── Object Monitor
│
├── Scene Monitor
│
├── Cognitive Monitor
│
├── Behavior Monitor
│
├── Action Monitor
│
├── Device Monitor
│
├── Feedback Monitor
│
└── Event / State Timeline
形成一个完整的认知运行观察结构。
259.5 System Status|系统状态
控制台首先需要表现ICAI系统当前处于什么状态。
例如:
System Status
System:
RUNNING
Cognitive:
ACTIVE
Behavior:
EXECUTING
Action:
RUNNING
Device:
READY
Feedback:
RECEIVING
也可以建立统一状态:
IDLE
↓
PERCEPTION
↓
OBJECT_UPDATE
↓
SCENE_UPDATE
↓
COGNITION
↓
BEHAVIOR
↓
ACTION
↓
EXECUTION
↓
FEEDBACK
↓
RECOGNITION
控制台实时显示当前系统所处阶段。
259.6 Goal Monitor|目标监控
目标是认知和行为运行的重要起点。
因此控制台应该首先显示:
Current Goal
Goal ID
Goal Type
Target
Condition
Priority
State
Progress
例如:
Goal:
Move Object
Target:
Object_001
Destination:
Position_002
State:
Executing
目标状态变化:
G(t0)→G(t1)→G(t2)G(t_0)\rightarrow G(t_1)\rightarrow G(t_2)
控制台可以持续表现目标当前状态。
259.7 Object Monitor|对象监控
Object Monitor负责观察当前机器认知系统中的对象。
例如:
Object Monitor
Object ID
Class
Type
Position
Attributes
Relations
State
Timestamp
如果场景中存在多个对象:
Object_001
Object_002
Object_003
Object_004
控制台可以实时观察每个对象的状态变化。
例如:
Object_001
State:
Stable
↓
Contacting
↓
Moving
↓
Holding
这直接对应Object Model的动态更新。
259.8 Attribute Monitor|属性监控
对象状态变化往往来源于属性变化。
因此可以进一步显示动态属性:
Position
Velocity
Distance
Force
Pressure
Orientation
Stability
形成属性向量:
Xt=[x1(t),x2(t),…,xn(t)]TX_t= [x_1(t),x_2(t),…,x_n(t)]^T
例如:
Xt=[Position,Velocity,Force,Pressure,Stability]TX_t= [Position,Velocity,Force,Pressure,Stability]^T
控制台可以显示:
Position:
(x,y,z)
Velocity:
v
Force:
f
Pressure:
p
Stability:
s
这样操作者看到的不只是“对象状态”,还可以看到状态背后的动态参数。
259.9 Scene Monitor|场景监控
Scene Monitor负责显示当前Scene Model。
其基本结构:
Scene
├── Environment
├── Space
├── Objects
├── Relations
├── States
├── Time
└── Goal
例如:
Current Scene
Objects:
Robot_001
Object_001
Table_001
Relations:
Robot Near Object
Object On Table
States:
Robot Ready
Object Stable
Table Stable
因此控制台可以把机器当前认知的场景结构集中显示出来。
259.10 Cognitive Monitor|认知监控
这是实时认知控制台的核心区域。
它显示:
Current Cognition
Goal
Scene
Objects
Relations
States
Cognition Result
Method
Confidence / Evaluation
例如:
Goal:
Grasp Object
Scene:
Object_001 near Robot_001
Object State:
Stable
Relation:
Reachable
Cognition:
Object can be grasped
Method:
GraspMethod
这里的核心是:
让操作者能够直接观察机器当前形成的认知结果。
259.11 Behavior Monitor|行为监控
行为监控显示当前Behavior Model。
例如:
Behavior:
Grasp Object
State:
Executing
Current Method:
GraspMethod
Current Action:
Move Gripper
Next Action:
Close Gripper
行为动态过程:
Bt→Bt+1→Bt+2B_t\rightarrow B_{t+1}\rightarrow B_{t+2}
控制台可以用状态时间轴表现:
Approaching
↓
Contacting
↓
Grasping
↓
Holding
这样用户能够看到行为过程,而不是只看到最终结果。
259.12 Action Monitor|动作监控
Action Monitor负责显示当前执行动作。
例如:
Action:
Move
Target:
Object_001
Position:
(x,y,z)
Velocity:
v
State:
Running
Start:
t0
Current:
t1
当动作完成:
Running
↓
Completed
或者:
Running
↓
Error
动作状态直接反馈给Behavior Engine。
259.13 Device Monitor|设备监控
Device Monitor连接Device Model和Device Engine。
可以显示:
Device
├── Identity
├── Capability
├── State
├── Parameters
├── Constraints
├── Current Action
└── Feedback
例如:
Device:
Robot_001
State:
Running
Capability:
Position Control
Force Control
Gripper Control
Current Action:
Grasp
Execution:
72%
这里的“72%”只是一个执行进度示例,实际系统应该由具体执行模型产生,而不是由界面自行计算。
259.14 Feedback Monitor|反馈监控
反馈是机器重新形成认知的重要数据来源。
因此控制台需要显示:
Feedback
↓
Object Update
↓
State Update
↓
Scene Update
↓
Cognition Update
例如:
Feedback:
Contact Detected
Object State:
Contacting
Device State:
Running
Cognition:
Contact established
这可以直接表现认知闭环中的变化。
259.15 Event Timeline|事件时间轴
由于ICAI是动态系统,仅仅显示“当前状态”还不够。
还需要记录:
状态是怎样变化到当前状态的。
因此建立:
Event Timeline|事件时间轴
例如:
10:01:01
Object Detected
↓
10:01:02
Object Model Created
↓
10:01:03
Scene Updated
↓
10:01:04
Cognition Completed
↓
10:01:05
Behavior Started
↓
10:01:06
Action Started
↓
10:01:07
Device Executing
↓
10:01:08
Feedback Received
时间轴可以表达:
E0→E1→E2→…→EnE_0\rightarrow E_1\rightarrow E_2\rightarrow…\rightarrow E_n
这使认知运行过程具有可追踪性。
259.16 Real-Time Cognitive Dashboard 的动态刷新
实时认知控制台不能依赖固定页面数据。
其数据应该来自当前系统状态:
Current System State
↓
Controller
↓
Cognitive Dashboard Data
↓
Smarty Template
↓
Browser
当系统状态发生变化:
Dt→Dt+1D_t\rightarrow D_{t+1}
控制台数据也应该更新:
Dashboardt→Dashboardt+1Dashboard_t\rightarrow Dashboard_{t+1}
因此可以形成:
Real-Time Data
↓
Model Update
↓
Dashboard Data
↓
View Update
259.17 Dashboard Data Model|控制台数据模型
为了避免Smarty直接读取大量不同Engine,可以建立独立的数据结构:
DashboardData|控制台数据
例如:
class DashboardData
{
protected $system;
protected $goal;
protected $objects;
protected $scene;
protected $cognition;
protected $behavior;
protected $action;
protected $devices;
protected $feedback;
protected $events;
}
其作用是:
将当前ICAI运行状态组织成适合控制台表现的统一数据结构。
因此:
Object Model
Scene Model
Cognitive Model
Behavior Model
Device Model
Feedback
↓
DashboardData
↓
Smarty
这可以避免表现层直接耦合大量底层对象。
259.18 Cognitive Dashboard Controller
在MVC中可以建立:
class CognitiveDashboardController
{
public function index()
{
$data = $this->dashboardService
->getCurrentState();
$this->smarty->assign(
'dashboard',
$data
);
$this->smarty->display(
'dashboard/index.tpl'
);
}
}
这里:
DashboardController
↓
DashboardService
↓
Object / Scene / Cognition / Behavior / Device
↓
DashboardData
↓
Smarty
控制器负责组织数据。
并不负责重新进行认知计算。
259.19 Dashboard Service|控制台服务
可以进一步建立:
DashboardService|控制台服务
其作用是从不同ICAI模块读取当前状态。
DashboardService
├── getSystemState()
├── getGoal()
├── getObjects()
├── getScene()
├── getCognition()
├── getBehavior()
├── getAction()
├── getDevices()
├── getFeedback()
└── getEvents()
这样形成:
ICAI Models→DashboardService→DashboardDataICAI\ Models\rightarrow DashboardService\rightarrow DashboardData
而不是让模板分别访问各种Model。
259.20 实时认知控制台的控制功能
实时认知控制台不仅可以观察,还可以产生结构化控制请求。
例如:
Start
Pause
Resume
Stop
Reset
Change Goal
Select Object
Inspect Scene
Inspect Cognition
但这些控制请求仍然必须经过Controller。
例如:
User
↓
Dashboard
↓
Controller
↓
Behavior Engine
↓
Action
而不能:
Dashboard
↓
Physical Device
这样才能保持系统安全和架构完整性。
259.21 Dashboard 与认知闭环
实时认知控制台最重要的价值之一,是让整个闭环能够被观察:
World
↓
Real-Time Data
↓
Object
↓
Scene
↓
Cognition
↓
Behavior
↓
Action
↓
Device
↓
World Change
↓
Feedback
↓
Re-Cognition
控制台从侧面观察这条链:
┌─────────────────────┐
│ Cognitive Dashboard │
└──────────┬──────────┘
│
World → Object → Scene → Cognition → Behavior
↑ ↓
└──── Feedback ← Device ← Action ←────┘
因此它成为整个ICAI动态运行过程的可观察窗口。
259.22 Dashboard 不是认知引擎
必须再次明确:
Dashboard≠CognitiveEngineDashboard\neq CognitiveEngine
Dashboard负责:
Observe
Display
Monitor
Control Request
Cognitive Engine负责:
Cognition
Matching
Evaluation
Decision
Behavior Engine负责:
Behavior Execution Logic
Device Engine负责:
Device Execution
因此四者边界为:
Dashboard
↓
Controller
↓
Cognitive / Behavior / Device Engine
↓
Physical System
259.23 实时认知控制台的PHP MVC结构
最终可以形成:
app/
│
├── Controllers/
│ └── CognitiveDashboardController.php
│
├── Services/
│ └── DashboardService.php
│
├── Models/
│ └── DashboardData.php
│
└── Views/
└── dashboard/
└── index.tpl
运行关系:
CognitiveDashboardController
↓
DashboardService
↓
DashboardData
↓
Smarty Template
↓
HTML
而DashboardService的数据来源:
Object Model
Scene Model
Cognitive Model
Behavior Model
Action
Device Model
Feedback
259.24 实时认知控制台的完整架构
至此,第257—259章形成连续的表现层结构:
Cognitive System
↓
Controller
↓
Cognitive Interface
↓
Real-Time Cognitive Dashboard
↓
Smarty Template
↓
HTML
↓
Human
其中:
Cognitive Interface解决交互边界。
Real-Time Cognitive Dashboard解决运行状态集中观察。
Smarty Template解决具体页面表现。
三者不是同一个概念。
可以表示为:
CognitiveInterface⊃CognitiveDashboard⊃SmartyViewCognitiveInterface \supset CognitiveDashboard \supset SmartyView
这里的“包含”表示工程职责层级,而不是类继承关系。
259.25 本章核心模型
实时认知控制台的核心模型可以表示为:
RCDt=F(Gt,Ot,Sct,CMt,BMt,At,DMt,Ft,Et)RCD_t= F( G_t, O_t, Sc_t, CM_t, BM_t, A_t, DM_t, F_t, E_t )
其中:
- GtG_t:目标;
- OtO_t:对象;
- SctSc_t:场景;
- CMtCM_t:认知模型;
- BMtBM_t:行为模型;
- AtA_t:动作;
- DMtDM_t:设备模型;
- FtF_t:反馈;
- EtE_t:事件时间序列。
完整数据流:
Real-Time Data
↓
Object Model
↓
Scene Model
↓
Cognitive Model
↓
Behavior Model
↓
Action
↓
Device Model
↓
Feedback
↓
Dashboard Service
↓
Dashboard Data
↓
Controller
↓
Cognitive Interface
↓
Smarty
↓
Real-Time Cognitive Dashboard
259.26 本章总结
Real-Time Cognitive Dashboard|实时认知控制台是ICAI MVC认知系统中的运行监控中心。
它不是普通的后台管理页面,而是围绕机器认知运行链建立的实时观察系统。
它集中表现:
Goal → Object → Attribute → Relation → State → Scene → Cognition → Behavior → Action → Device → Feedback
并通过事件时间轴进一步表现:
State(t0)→State(t1)→State(t2)→…State(t_0)\rightarrow State(t_1)\rightarrow State(t_2)\rightarrow…
因此,操作者看到的不再只是机器“最后做出了什么”,而可以观察:
机器当前处于什么认知状态、当前正在执行什么行为、正在调用什么动作和设备,以及执行后的反馈如何导致下一次认知更新。
最终形成:
World
↓
Object
↓
Scene
↓
Cognition
↓
Behavior
↓
Action
↓
Device
↓
Feedback
↓
Re-Cognition
↕
Real-Time Cognitive Dashboard
↕
Human
至此,ICAI的MVC表现层进一步形成完整结构:
Cognitive Interface → Real-Time Cognitive Dashboard → Smarty Template
而机器内部仍然保持独立的认知运行链:
Object → Scene → Cognition → Behavior → Action → Device → Feedback → Re-Cognition
这意味着ICAI已经不仅能够进行认知和执行,还能够把整个动态认知过程以结构化方式实时呈现出来,从而为后续的认知系统运行控制、状态管理和独立API通信建立完整的软件工程基础。