我需要使用模糊逻辑对物体进行分类。每个物体由4个特征描述 - {大小,形状,颜色,纹理}。每个特征都通过语言术语和一些隶属函数进行模糊化。问题在于我不知道如何进行去模糊化以便知道未知物体属于哪个类别。使用Mamdani Max-Min推理,有人能帮助解决这个问题吗?
物体 = {垃圾桶,罐子,瓶子,杯子} 或表示为{1,2,3,4}。每个特征的模糊集如下:
特征:大小
形状:
物体 = {垃圾桶,罐子,瓶子,杯子} 或表示为{1,2,3,4}。每个特征的模糊集如下:
特征:大小
$\tilde{Size_{Large}}$ = {1//1,1/2,0/3,0.6/4} for crisp values in range 10cm - 20 cm
$\tilde{Size_{Small}}$ = {0/1,0/2,1/3,0.4/4} (4cm - 10cm)
形状:
$\tilde{Shape_{Square}}$ = {0.9/1, 0/2,0/3,0/4} for crisp values in range 50-100
$\tilde{Shape_{Cylindrical}}$ = {0.1/1, 1/2,1/3,1/4} (10-40)
功能:颜色
$\tilde{Color_{Reddish}}$ = {0/1, 0.8/2, 0.6/3,0.3/4} say red values in between 10-50 (not sure, assuming)
$\tilde{Color_{Greenish}}$ = {1/1, 0.2/2, 0.4/3, 0.7/4} say color values in 100-200
特性:纹理
$\tilde{Tex_{Coarse}}$ = {0.2/1, 0.2/2,0/3,0.5/4} if texture crisp values 10-20
$\tilde{Tex_{Shiny}}$ = {0.8/1, 0.8/2, 1/3, 0.5/4} 30-40
分类的 If-Then-Else 规则如下:
R1:如果物体的大小大而圆柱形,颜色呈绿色且质地粗糙,则该物体是垃圾桶。
或者为了节省空间,以表格形式呈现:
Object type Size Shape Color Texture
Dustbin : Large cylindrical greenish coarse
Can : small cylindrical reddish shiny
Bottle: small cylindrical reddish shiny
Cup : small cylindrical greenish shiny
接下来,有一个带有清晰值X = {12cm, 52,120,11}的未知特征。我该如何对其进行分类?或者我的理解是否不正确,需要重新表述整个问题?