Expert Systems and the Knowledge Bottleneck
هوش مصنوعی برای همه: هوش مصنوعی چطور باهوش شد؟
- The growth of expert systems during the 1970s and 1980s.
- Knowledge bases, inference engines, and explanation traces.
- Forward chaining from observations and backward chaining from a proposed conclusion.
- A rule-based machine-troubleshooting example.
- The effort needed to obtain, maintain, and reconcile specialized rules.
- Brittleness, missing information, and why confidence labels do not repair an incomplete knowledge base.
جداسازی دانش از اجرای قواعد
```mermaid
flowchart LR
O["اطلاعات پرونده<br/>چراغ این چاپگر روشن است"]
subgraph S["expert system — دانش محدود و ثبتشده"]
K["knowledge base<br/>قاعدهٔ کلی: اگر چراغ روشن است، برق میرسد"]
E["inference engine<br/>تطبیق اطلاعات با قواعد"]
R["نتیجهٔ تازه<br/>برق میرسد"]
T["explanation trace<br/>ردِ مشاهده، قاعده و نتیجه"]
K -->|"قواعد"| E
E --> R
E --> T
end
O -->|"مشاهده"| E
```
پنج قاعده در knowledge base
```mermaid
flowchart TD
power["برق<br/>اگر: چراغ روشن است<br/>آنوقت: برق به دستگاه میرسد"]
cooling["خنککاری<br/>اگر: برق به دستگاه میرسد<br/>و فن نمیچرخد<br/>آنوقت: مشکل خنککاری مشکوک است"]
vent["دریچه<br/>اگر: مشکل خنککاری مشکوک است<br/>و دریچه با گردوغبار بسته شده<br/>آنوقت: گرفتگی دریچه، علت احتمالی<br/>مشکل خنککاری است"]
paper["مسیر کاغذ<br/>اگر: برق به دستگاه میرسد<br/>و کاغذ جلو نمیرود<br/>آنوقت: مشکل مسیر کاغذ مشکوک است"]
jam["گیر<br/>اگر: مشکل مسیر کاغذ مشکوک است<br/>و کاغذ گیرکرده دیده شده<br/>آنوقت: گیر کاغذ، علت احتمالی<br/>توقف تغذیه است"]
power --> cooling
power --> paper
cooling --> vent
paper --> jam
```
از مشاهده تا نتیجه با forward chaining
```mermaid
flowchart LR
A["مشاهدهها<br/>چراغ روشن است<br/>فن نمیچرخد<br/>دریچه با گردوغبار بسته است"]
P["برق به دستگاه میرسد"]
C{"قاعدهٔ خنککاری<br/>هر دو شرط لازم است"}
S["مشکل خنککاری مشکوک است"]
V{"قاعدهٔ دریچه<br/>هر دو شرط لازم است"}
G["گرفتگی دریچه؛ علت احتمالی<br/>مشکل خنککاری"]
A -->|"چراغ روشن؛ قاعدهٔ برق"| P
P --> C
A -->|"فن نمیچرخد"| C
C --> S
S --> V
A -->|"دریچه بسته است"| V
V --> G
U["نامعلوم، نه غلط<br/>حرکت کاغذ<br/>دیدن کاغذ گیرکرده"]
H["قاعدهٔ مسیر کاغذ<br/>غیرفعال"]
I["قاعدهٔ گیر<br/>غیرفعال"]
U -.->|"جلو نرفتن کاغذ معلوم نیست"| H
U -.->|"شرطها تأیید نشدهاند"| I
```
از هدف تا شرطهای پشتیبان
```svg
<svg viewBox="0 0 800 460" xmlns="http://www.w3.org/2000/svg"><defs><marker id="arrow" markerWidth="8" markerHeight="8" refX="7" refY="4" orient="auto"><path d="M0 0 L8 4 L0 8 Z" class="tm-arrow"/></marker></defs><text x="400" y="24" text-anchor="middle" class="tm-muted" font-size="16">backward chaining</text><rect x="190" y="40" width="420" height="65" rx="12" class="tm-gold"/><text x="400" y="65" text-anchor="middle" class="tm-text" font-size="16" direction="rtl">هدف: گرفتگی دریچه</text><text x="400" y="89" text-anchor="middle" class="tm-text" font-size="16" direction="rtl">علت احتمالی مشکل خنککاری؛ تأیید نمیشود</text><path d="M340 105 L250 165 M460 105 L630 165" class="tm-line-accent" marker-end="url(#arrow)"/><text x="400" y="135" text-anchor="middle" class="tm-text2" font-size="15" direction="rtl">قاعدهٔ دریچه: هر دو شرط لازماند</text><rect x="100" y="170" width="300" height="60" rx="10" class="tm-green"/><text x="250" y="195" text-anchor="middle" class="tm-text" font-size="17" direction="rtl">مشکل خنککاری مشکوک است</text><text x="250" y="218" text-anchor="middle" class="tm-text" font-size="14" direction="rtl">پشتیبانی شد</text><rect x="520" y="170" width="220" height="60" rx="10" class="tm-gold tm-pulse"/><text x="630" y="195" text-anchor="middle" class="tm-text" font-size="17" direction="rtl">دریچه بسته شده؟</text><text x="630" y="218" text-anchor="middle" class="tm-text" font-size="14" direction="rtl">نامعلوم؛ شرط باز میماند</text><path d="M200 230 L140 280 M300 230 L380 280" class="tm-line-accent" marker-end="url(#arrow)"/><text x="250" y="255" text-anchor="middle" class="tm-text2" font-size="14" direction="rtl">قاعدهٔ خنککاری</text><rect x="40" y="285" width="200" height="50" rx="10" class="tm-green"/><text x="140" y="306" text-anchor="middle" class="tm-text" font-size="16" direction="rtl">برق به دستگاه میرسد</text><text x="140" y="325" text-anchor="middle" class="tm-text" font-size="13" direction="rtl">پشتیبانی شد</text><rect x="280" y="285" width="200" height="50" rx="10" class="tm-green"/><text x="380" y="306" text-anchor="middle" class="tm-text" font-size="16" direction="rtl">فن نمیچرخد</text><text x="380" y="325" text-anchor="middle" class="tm-text" font-size="13" direction="rtl">مشاهده شده</text><path d="M140 335 L140 370" class="tm-line-accent" marker-end="url(#arrow)"/><text x="205" y="357" text-anchor="middle" class="tm-text2" font-size="14" direction="rtl">قاعدهٔ برق</text><rect x="40" y="375" width="200" height="40" rx="10" class="tm-green"/><text x="140" y="401" text-anchor="middle" class="tm-text" font-size="15" direction="rtl">چراغ روشن؛ مشاهده شده</text><text x="630" y="280" text-anchor="middle" class="tm-text-gold" font-size="16" direction="rtl">نیاز به سؤال تکمیلی</text><text x="400" y="445" text-anchor="middle" class="tm-text-gold" font-size="17" direction="rtl">تأییدنشدن هدف، بازبودن دریچه را ثابت نمیکند</text></svg>
```
قاعدهٔ گمشده، مسیرِ بریده
**حذف قاعده، قطع مسیر**
رسیدن برق نتیجه میشود؛ توقف فن معلوم است.
بدون قاعدهٔ خنککاری، شرط قاعدهٔ دریچه کامل نمیشود.
**اطلاعات کم یا دانش کم؟**
وضعیت نامعلوم دریچه: کمبود اطلاعات پرونده
قاعدهٔ حذفشده: کمبود دانشِ وصلکردن اطلاعات
**اطمینان و explanation trace**
برچسب اطمینان: قوت نتیجه، نه تولید قاعده
explanation trace: مسیر اجرا، نه تضمین درستی قواعد
**knowledge acquisition bottleneck**
کسب دانش از متخصص: شرایط، استثناها و نشانههای قابل اعتماد
نگهداری دانش: بهروزرسانی قواعد و حل اختلافنظرها
**شرط حالت کاری**
توقف فن: نشانهٔ مشکل؟
در حالت آمادهبهکار، فن عمداً خاموش است.
شرط حالت کاری باید در قاعده روشن باشد.
**brittleness؛ شکنندگی**
بیرون از پوشش قواعد، عملکرد ممکن است ناگهان خراب شود.
قواعد بیشتر، لزوماً سازگاری بیشتر نیست.
Back to course