26
รรรรรรรรรรรรรรรรรรรรรรรรรรรรรรรรรรรรร รรรรรรรรรรรรรรรรรรรรรร (Expert system for choosing a plants should a well thought-out decision.) เเเเ เเเเเเเเเเเเเเเเเเ เเเเเเเเเเเเเเเเ เเเเเเเเเ เเเเเเ เเเเเเเ เเเเเเเเเ เเเเเเเเเ 55102010984 เเเเเเเเ B01 เเเเเเเเเเเเเ SC32A เเเเเเเเเเเเเเ เเเเเเเเเเเเเเเเเเเเเเเ

ระบบผู้เชี่ยวชาญเพื่อการตัดสินใจเลือกพันธุ์พืชในสวนหลังบ้าน

Embed Size (px)

Citation preview

ระบบผู้��เชี่ยวชี่าญเพื่�อการตั�ดสิ�นใจเลื�อกพื่�นธุ์��พื่�ชี่ในสิวนหลื�งบ�าน

(Expert system for choosing a plants should a well thought-out decision.)

เสนอ

อาจารย์เรองศั กดิ์�� ตระก�ลพุ�ทธิ�ร กษ์

จ ดิ์ท�าโดิ์ย์

นางสาว กรรณิ�กา เชื้!อร� "ง รหั สน�ส�ต 55102010984

ตอนเร$ย์น B01 กล�"มผู้�'เร$ย์น SC32A

คณิะว�ทย์าศัาสตร สาขาว�ทย์าการคอมพุ�วเตอร

ราย์งานน$!เป็+นส"วนหัน,-งของการศั,กษ์าราย์ว�ชื้า คพุ 463 ป็.ญญาป็ระดิ์�ษ์ฐ์

(CP463 ARTIFICIAL INTELLIGENT)

มหัาว�ทย์าล ย์ศัร$นคร�นทรว�โรฒ

ภาคการศั,กษ์าท$- 2 ป็3การศั,กษ์า 2557

คำ"าน"าราย์งานเร-อง ระบบผู้�'เชื้$-ย์วชื้าญเพุ-อการต ดิ์ส�นใจเลอกพุ นธิ�พุชื้ในสวน

หัล งบ'าน (Expert system for choosing a plants should a well

thought-out decision.) เป็+นส"วนหัน,-งของราย์ว�ชื้า คพุ 463 ป็.ญญาป็ระดิ์�ษ์ฐ์ (CP463 ARTIFICIAL INTELLIGENT) โดิ์ย์ม$ว ตถุ�ป็ระสงคเพุ-อการออกแบบและพุ ฒนา การสร'างระบบผู้�'เชื้$-ย์วชื้าญ (Expert System)

เป็+นการศั,กษ์าและเก8บรวบรวมข'อม�ลความร� 'จากการส มภาษ์ณิเก$-ย์วก บป็.ญหัาท$-ไดิ์'มาจากป็ระสบการณิความร� 'ของผู้�'เชื้$-ย์วชื้าญคอ ค�ณิพุ"อ เร-องการต ดิ์ส�นใจเลอกพุ นธิ�พุชื้ในสวนหัล งบ'าน ราย์งานฉบ บน$!รวบรวม ฐ์านความร� ' คอ ผู้ งต'นไม' (Decision Tree) และการสร'างกฎ รวมท !งต วอย์"างหัน'าจอการท�างานของระบบผู้�'เชื้$-ย์วชื้าญ ท$-ออกแบบและพุ ฒนาดิ์'วย์โป็รแกรมระบบผู้�'เชื้$-ย์วชื้าญ EXSYS เป็+นป็ระโย์ชื้นส�าหัร บใหั'ค�าแนะน�าป็ระกอบการต ดิ์ส�นใจเลอกพุ นธิ�พุชื้ ร กษ์าความร� 'และป็ระสบการณิของค�ณิพุ"อไป็ย์ งระบบใหั'สามารถุคงอย์�"ไดิ์'อย์"างถุาวร และท�าใหั'ข'อม�ลม$ค�ณิภาพุและสามารถุน�ามาใชื้'ไดิ์'อย์"างท นท"วงท$เม-อต'องการ

ผู้�'จ ดิ์ท�าหัว งเป็+นอย์"างย์�-งว"า ราย์งานเร-อง ระบบผู้�'เชื้$-ย์วชื้าญเพุ-อการต ดิ์ส�นใจเลอกพุ นธิ�พุชื้ในสวนหัล งบ'าน (Expert system for choosing

a plants should a well thought-out decision.) จะเป็+นป็ระโย์ชื้นต"อผู้�'ศั,กษ์าต"อไป็ หัากม$ข'อผู้�ดิ์พุลาดิ์ทางใดิ์ ทางคณิะผู้�'จ ดิ์ท�าต'องขออภ ย์มา ณิ ท$-น$!ดิ์'วย์

สิารบ�ญ

เน�#อหา

หน�า

ท$-มาและความส�าค ญ.......................................................1

ฐ์านความร� '..................................................................2

ผู้ งต'นไม' (Decision Tree)..........................................2

กฎ (Rules).............................................................4

หัน'าจอการท�างาน..........................................................9

ป็ระกาศัค�ณิ�ป็การ........................................................13

บรรณิาน�กรม.............................................................14

1

ชี่�อระบบ ระบบผู้��เชี่ยวชี่าญเพื่�อการตั�ดสิ�นใจเลื�อกพื่�นธุ์��พื่�ชี่ในสิวนหลื�งบ�าน

(Expert system for choosing a plants should a well thought-out decision.)

ที่มาแลืะคำวามสิ"าคำ�ญ

ป็.จจ�บ นไดิ์'เก�ดิ์ระบบผู้�'เชื้$-ย์วชื้าญข,!นมากมาย์ และถุ�กน�ามาป็ระย์�กตใชื้'ในงานหัลาย์ๆดิ์'าน เน-องจากความสามารถุของระบบท$-ท�าหัน'าท$-ไดิ์'เสมอนก บผู้�'เชื้$-ย์วชื้าญท$-เป็+นมน�ษ์ย์ เพุ-อใหั'ค�าแนะน�า อ$กท !งความร� 'และป็ระสบการณิต"างๆท$-ถุ�กถุ"าย์ทอดิ์ไป็ย์ งระบบจะสามารถุคงอย์�"ไดิ์'อย์"างถุาวร จ,งเล8งเหั8นความส�าค ญน�าแนวค�ดิ์ระบบผู้�'เชื้$-ย์วชื้าญมาป็ระย์�กตใชื้'ในการสร'างระบบผู้�'เชื้$-ย์วชื้าญเพุ-อการต ดิ์ส�นใจเลอกพุ นธิ�พุชื้ในสวนหัล งบ'าน

ระบบผู้�'เชื้$-ย์วชื้าญเพุ-อการต ดิ์ส�นใจเลอกพุ นธิ�พุชื้ในสวนหัล งบ'าน จะใหั'ข'อม�ลเก$-ย์วก บพุ นธิ�พุชื้ท$-เก$-ย์วข'องก บการจ ดิ์สวนน�าไป็ป็ระกอบการต ดิ์ส�นใจ โดิ์ย์เป็+นการศั,กษ์า เก8บรวบรวมข'อม�ลความร� 'จากการส มภาษ์ณิเก$-ย์วก บป็.ญหัาท$-ไดิ์'มาจากป็ระสบการณิความร� 'ของผู้�'เชื้$-ย์วชื้าญคอ ค�ณิพุ"อ และการค'นคว'าจากแหัล"งข'อม�ลอ-นเร-องการเลอกพุ นธิ�พุชื้ใหั'เหัมาะสมท$-จะป็ล�กในสวนแบบต"างๆ โดิ์ย์ใชื้'โป็รแกรมระบบผู้�'เชื้$-ย์วชื้าญ EXSYS ซึ่,-งเป็+นเคร-องมอในการสร'าง Expert System มาท�าหัน'าท$-ในการสร'างกฎและอน�มาน ในส"วนของการสร'างกฎน !น จะท�าการถุาม-ตอบเก$-ย์วก บการต ดิ์ส�นใจเลอกป็ล�กพุ นธิ�พุชื้ในสวนแบบต"างๆ และจ,งมาว�เคราะหัเพุ-อสร'างเป็+นผู้ งต'นไม' (Decision Tree)

เม-อสร'างกฎเร$ย์บร'อย์แล'วจะท�าการตรวจสอบก บข'อม�ลจากการส มภาษ์ณิผู้�'เชื้$-ย์วชื้าญคอ ค�ณิพุ"อ เพุ-อใหั'ม$ความเป็+นไป็ไดิ์'มากท$-ส�ดิ์

1

ซึ่,-งป็ระโย์ชื้นของระบบผู้�'เชื้$-ย์วชื้าญน$!คอ ท�าใหั'ไดิ์'ระบบผู้�'เชื้$-ย์วชื้าญท$-ใหั'ค�าแนะน�าป็ระกอบการต ดิ์ส�นใจเลอกพุ นธิ�พุชื้ ชื้"วย์ร กษ์าความร� 'และป็ระสบการณิของค�ณิพุ"อไป็ย์ งระบบใหั'สามารถุคงอย์�"ไดิ์'อย์"างถุาวร ชื้"วย์ท�าใหั'ข'อม�ลม$ค�ณิภาพุและสามารถุน�ามาใชื้'ไดิ์'อย์"างท นท"วงท$เม-อต'องการ

2

ฐานคำวามร��ผู้�งตั�นไม� (Decision Tree)

3

4

กฎ (Rules)

Rule 1IF: What purpose will this garden? Food AND Choose Type of that food-plants in Backyard? Vegetable AND Are you interested in the growing season? Yes AND Choose a season? SummerTHEN: Goal List: (Pumpkin, Bitter cucumber, Parsley, Luffa gourd, Lemon)

Rule 2IF: What purpose will this garden? Food AND Choose Type of that food-plants in Backyard? Vegetable AND Are you interested in the growing season? Yes AND Choose a season? RainyTHEN: Goal List: (Pumpkin, Chinese cabbage, Lettuce, Morning glory, Corn, Mixable Snap Bean)

Rule 3IF: What purpose will this garden? Food AND Choose Type of that food-plants in Backyard? Vegetable AND Are you interested in the growing season? Yes AND Choose a season? WinterTHEN: Goal List: (Tomatoes, Cauliflower, Cabbage, Chinese kale, Broccoli, Celery, Garlic, Shallot, Onion)

Rule 4IF: What purpose will this garden? Food

4

AND Choose Type of that food-plants in Backyard? Vegetable AND Are you interested in the growing season? NoTHEN: Goal List: (Cucumber, Lemon grass, Holy basil, Sweet basil, Ginger, Chili, Spring onion, Finger root, Galangal, Finger Chili)

5

Rule 5IF: What purpose will this garden? Food AND Choose Type of that food-plants in Backyard? Fruits AND Are you interested in the growing season? Yes AND Choose a season? SummerTHEN: Goal List: (Guava, Tamarine, Watermelon, Durian, Grape, Rose apple, Mango, Lichee)

Rule 6IF: What purpose will this garden? Food AND Choose Type of that food-plants in Backyard? Fruits AND Are you interested in the growing season? Yes AND Choose a season? RainyTHEN: Goal List: (Custard apple, Dragon fruit, Sapodilla, Pomelo, Grape, Pineapple, Guava, Jackfruit, Mangosteen, Orange, Longan)

Rule 7IF: What purpose will this garden? Food AND Choose Type of that food-plants in Backyard? Fruits AND Are you interested in the growing season? Yes AND Choose a season? WinterTHEN: Goal List: (Apple, Cherry, Watermelon, Grape, Orange, Strawberry, Lichee)

Rule 8IF: What purpose will this garden? Food

5

AND Choose Type of that food-plants in Backyard? Fruits AND Are you interested in the growing season? NoTHEN: Goal List: (Papaya, Banana, Coconut)

Rule 9IF: What purpose will this garden? Beautification AND Choose Type of that Beautification -plants in Backyard? Flowers AND Are you interested in the growing season? Yes

6

AND Choose a season? SummerTHEN: Goal List: (Allamanda, Bougaville, Golden

shower, Zinnia)Rule 10

IF: What purpose will this garden? Beautification AND Choose Type of that Beautification -plants in Backyard? Flowers AND Are you interested in the growing season? Yes AND Choose a season? RainyTHEN: Goal List: (Siam Tulip, Frangipani, Flamingo Plant, Bauhinia)

Rule 11IF: What purpose will this garden? Beautification AND Choose Type of that Beautification -plants in Backyard? Flowers AND Are you interested in the growing season? Yes AND Choose a season? WinterTHEN: Goal List: (Tulip, Orchid, Rose, Marigold, Chrysanthemum, Sunflower, Jasmine)

Rule 12IF: What purpose will this garden? Beautification AND Choose Type of that Beautification -plants in Backyard? Flowers AND Are you interested in the growing season? NoTHEN: Goal List: (Scrophulariaceae, Cockcomb)

Rule 13IF: What purpose will this garden? Beautification

6

AND Choose Type of that Beautification -plants in Backyard? Garden Tree AND How height do you want? Less than 1 meterTHEN: Goal List: (Rubber Plant, Croton, Dumb Cane, Peace Lily)

Rule 14IF: What purpose will this garden? Beautification AND Choose Type of that Beautification -plants in Backyard? Garden Tree AND How height do you want? More than 1 meterTHEN: Goal List: (Yellow Palm, Lady Palm, Bamboo palm, Cornstalk Plant)

7

Rule 15IF: What purpose will this garden? Landscape AND Choose Type of that landscape-plants in Backyard? Flowers AND Are you interested in the growing season? Yes AND Choose a season? SummerTHEN: Goal List: (Allamanda, Bougaville, Golden shower, Zinnia)

Rule 16IF: What purpose will this garden? Landscape AND Choose Type of that landscape-plants in Backyard? Flowers AND Are you interested in the growing season? Yes AND Choose a season? RainyTHEN: Goal List: (Siam Tulip, Frangipani, Flamingo Plant, Bauhinia)

Rule 17IF: What purpose will this garden? Landscape AND Choose Type of that landscape-plants in Backyard? Flowers AND Are you interested in the growing season? Yes AND Choose a season? WinterTHEN: Goal List: (Tulip, Orchid, Rose, Marigold, Chrysanthemum, Sunflower, Jasmine)

Rule 18IF: What purpose will this garden? Landscape AND Choose Type of that landscape-plants in Backyard? Flowers

7

AND Are you interested in the growing season? NoTHEN: Goal List: (Scrophulariaceae, Cockcomb)

Rule 19IF: What purpose will this garden? Landscape AND Choose Type of that landscape-plants in Backyard? Perennial plant AND How long that the plants growth? Slow growing AND How height of Perennial plant do you want? Less than 5 meterTHEN: Goal List: (Bullet wood, White cheesewood)

8

Rule 20IF: What purpose will this garden? Landscape AND Choose Type of that landscape-plants in Backyard? Perennial plant AND How long that the plants growth? Slow growing AND How height of Perennial plant do you want? More than 5 meterTHEN: Goal List: (Indian cork tree, Sea almond, Butterfly Tree, Wishing Tree, Teak)

Rule 21IF: What purpose will this garden? Landscape AND Choose Type of that landscape-plants in Backyard? Perennial plant AND How long that the plants growth? Fast growing AND How height of Perennial plant do you want? More than 5 meter THEN: Goal List: (Orange Jessamine, Night blooming jasmine, Ilang ilang )

Rule 22IF: What purpose will this garden? Landscape AND Choose Type of that landscape-plants in Backyard? Perennial plant AND How long that the plants growth? Fast growing AND How height of Perennial plant do you want? More than 5 meter THEN: Goal List: (White champaka, Michelia champaca, Devil Tree, Flam-boyant)

9

หน�าจอการที่"างาน1. หัน'าจอการท�างานของโป็รแกรม Exsys Developer

2. เป็>ดิ์ไฟลท$-ไดิ์'ออกแบบและพุ ฒนาระบบผู้�'เชื้$-ย์วชื้าญ

9

10

3. เม-อร นโป็รแกรม ระบบจะแสดิ์งค�าถุามเก$-ย์วก บว ตถุ�ป็ระสงคของการเลอกพุ นธิ�พุชื้ท$-จะจ ดิ์สวน หัากผู้�'ใชื้'เลอกตอบว"า Food คอการเลอกพุ นธิ�พุชื้ส�าหัร บป็ล�กเพุ-อน�ามาร บป็ระทาน

4. แสดิ์งค�าถุามเก$-ย์วก บการเลอกชื้น�ดิ์ของ พุ นธิ�พุชื้ส�าหัร บมาป็ล�กเพุ-อน�าไป็ร บป็ระทาน หัากผู้�'ใชื้'เลอกตอบว"า Vegetable

10

11

5. แสดิ์งค�าถุามเก$-ย์วก บผู้�'ใชื้'สนใจเร-องฤดิ์�กาลส�าหัร บเพุาะป็ล�กหัรอไม" หัากผู้�'ใชื้'เลอกตอบว"า Yes

6. แสดิ์งค�าถุามเก$-ย์วก บเลอกฤดิ์�กาลส�าหัร บการเพุาะป็ล�ก หัากผู้�'ใชื้'เลอกตอบว"า Winter

11

12

7. ระบบจะไดิ์'ข'อม�ลเป็+นราย์การพุ นธิ�พุชื้ส�าหัร บร บป็ระทาน ป็ระเภท พุชื้ผู้ ก ท$-เหัมาะส�าหัร บเพุาะป็ล�กและเก8บเก$-ย์วผู้ลผู้ล�ตในฤดิ์�หันาว และระบบจะแสดิ์งผู้ลล พุธิเป็+นราย์การพุ นธิ�พุชื้ไดิ์' ดิ์ งน$!

13

ประกาศคำ�ณู�ปการ

ราย์งานเร-อง ระบบผู้�'เชื้$-ย์วชื้าญเพุ-อการต ดิ์ส�นใจเลอกพุ นธิ�พุชื้ในสวนหัล งบ'าน (Expert system for choosing a plants should a well

thought-out decision.) ส�าเร8จและสมบ�รณิไดิ์'ดิ์'วย์ความกร�ณิาและความชื้"วย์เหัลออย์"างดิ์$ย์�-ง จาก

ขอขอบพุระค�ณิ ค�ณิพุ"อ ท$-ไดิ์'ใหั'ข'อม�ลความร� 'จากการส มภาษ์ณิเก$-ย์วก บป็.ญหัาท$-ไดิ์'มาจากป็ระสบการณิความร� ' เร-องการเลอกพุ นธิ�พุชื้ในสวนหัล งบ'าน เพุ-อเป็+นแนวค�ดิ์และน�าข'อม�ลมาออกแบบและพุ ฒนาระบบผู้�'เชื้$-ย์วชื้าญเพุ-อการต ดิ์ส�นใจเลอกพุ นธิ�พุชื้ในสวนหัล งบ'าน

ขอขอบค�ณิอาจารย์เรองศั กดิ์�� ตระก�ลพุ�ทธิ�ร กษ์ อาจารย์ป็ระจ�าว�ชื้า คพุ 463 ป็.ญญาป็ระดิ์�ษ์ฐ์ (ARTIFICIAL INTELLIGENT) ท$-ใหั'ไดิ์'ค�าป็ร,กษ์า แนะน�าแนวทางออกแบบและพุ ฒนา การสร'างระบบผู้�'เชื้$-ย์วชื้าญแก"ข'าพุเจ'าในคร !งน$!ใหั'ป็ระสบความส�าเร8จล�ล"วงไดิ์'ดิ์'วย์ดิ์$

กรรณิ�กา เชื้!อร� "ง

14

บรรณูาน�กรม

MultiLogic Exsys Developer. (1999). New York: MuitiLogic, Inc.

Online Exsys Corvid® Tutorials. (2009). สบค'นเม-อ 6 เมษ์าย์น 2558, จาก http://www.exsys.com/Tutorials/CorvidTutorials.html.

สวนสวรส. (2552). สิวนสิวย สิร�างสิรรคำ�คำวามสิ�ข สิวนสิวรสิ. สบค'นเม-อ 3 เมษ์าย์น 2558, จาก http://www.suansavarose.com/index.php