LAPORAN SKRIPSI
SISTEM PAKAR UNTUK DIAGNOSA PENYAKIT TANAMAN KEDELAI MENGGUNAKAN METODE CERTAINTY FACTOR
RIF’AN HARDIYANTO NIM. 201051098
DOSEN PEMBIMBING Rina Fiati, ST, M.Cs Endang Supriyati, M.Kom
PROGRAM STUDI TEKNIK INFORMATIKA FAKULTAS TEKNIK UNIVERSITAS MURIA KUDUS 2017
SISTEM PAKAR UNTUK DIAGNOSA PENYAKIT TANAMAN KEDELAI MENGGUNAKAN METODE CERTAINTY FACTOR Nama mahasiswa
: Rif’an Hardiyanto
NIM
: 201051098
Pembimbing
: 1. Rina Fiati, ST, M.Cs 2. Endang Supriyati, M.Kom
RINGKASAN Sistem pakar untuk mendiagnosa penyakit tanaman kedelai ini dibangun dengan menerapkan metode certainty factor.Dalam proses penarikan kesimpulan sistem menggunakan metode certainty factor, dimana dalam penentuan Nilai CF berdasarkan hasil pengurangan dari Nilai MB (Measure of Belief) dan Nilai MD (Measure of Disbelief) pada tiap gejala yang bersumber dari akuisisi pengetahuan pakar. Nilai MB memiliki kisaran nilai antara 0 sampai 1, dimana jika nilai mendekati 1 maka tingkat kepercayaan tinggi sedangkan untuk Nilai MD memiliki kisaran nilai antara 0 sampai 1, dimana jika nilai mendekati 1 maka tingkat ketidakpercayaan tinggi. Sistem ini memberikan hasil berupa kemungkinan jenis penyakit tanaman kedelai yang dialami dan prosentase keyakinan disertai dengan saran pencegahan.
Kata Kunci: Sistem Pakar, Penyakit Tanaman Kedelai, Measure of Believe, Measure of Disbelieve, Certainty Factor .
Expert System For Diagnosing Diseases Of Soybean Plant Using Certainty Factor Method Nama mahasiswa
: Rif’an Hardiyanto
NIM
: 201051098
Pembimbing
: 1. Rina Fiati, ST, M.Cs 2. Endang Supriyati, M.Kom
ABSTRACT Expert system for diagnosing diseases of soybean plant is constructed by applying the method certainty factor. In the process of drawing conclusions using certainty factor system, wherein the determination value based on the reduction of CF MB Value (Measure of Belief) and Value MD (Measure of Disbelief) on each symptom that comes from the acquisition of expert knowledge. Values MB has a range of values between 0 and 1, where if the value is close to 1 then a high confidence level whereas for MD value has a range of values between 0 and 1, where if the value close to 1, the high level of distrust. This system provides results in the form of possible types of soybean plant disease experienced and percentage of convictions accompanied by prevention advice. Keywords: Sistem Pakar, Penyakit Tanaman Kedelai, Measure of Believe, Measure of Disbelieve, Certainty Factor.
KATA PENGANTAR Segala Puji bagi Allah SWT yang telah memberikan rahmat, taufiq, hidayah dan inayahnya sehingga penulis mampu menyelaraskan penyusunan skripsi ini yang berjudul “Sistem Pakar Untuk Diagnosa Penyakit Tanaman Kedelai Menggunakan Metode Certainty Factor”. Penyusunan skripsi ini ditujukan untuk memenuhi salah satu syarat memperoleh Gelar Kesarjanaan Program Studi Teknik Informatika Fakultas Teknik Universitas Muria Kudus. Pelaksanaan penyusunan skripsi ini tak lepas dari bantuan dari dukungan beberapa pihak, untuk itu penulis menyampaikan ucapan terima kasih kepada : 1. Bapak Dr. Suparnyo, SH,MS, selaku Rektor Universitas Muria Kudus. 2. Bapak Mohammad Dahlan, ST, MT, selaku Dekan Fakultas Teknik Universitas Muria Kudus. 3. Bapak Ahmad Jazuli, M.Kom, selaku Ketua Program Studi Teknik Informatika Universitas Muria Kudus. 4. Ibu Rina Fiati, ST,N.Cs selaku pembimbing I yang telah banyak memberikan masukan selama penyusunan skripsi ini. 5. Ibu Endang Supriyati, M.Kom selaku pembimbing II yang telah banayak memberikan masukan selama penyusunan skripsi ini. 6. Ibu dan Bapak serta Kakak-kakakku tersayang yang telah senantiasa memberikan dukungan, semangat, doa dan materi yang sangat berarti. 7. Teman-teman TI angkatan 2010 yang telah memberikan saran dan motivasi. 8. Semua pihak yang telah membantu penyusunan skripsi ini. Penulis menyadari adanya kekurangan dan ketidaksempurnaan dalam penulisan skripsi ini, karena itu penulis menerima kritik, saran dan masukan dari pembaca sehingga penulis dapat lebih baik di masa yang akan datang. Akhirnya penulis
berharap semoga skripsi ini bermanfaat khususnya bagi penulis dan
umumnya bagi para membaca.
Kudus, 1 Maret 2017 Penulis
DAFTAR ISI HALAMAN JUDUL .........................................................................................
i
HALAMAN PERSETUJUAN .........................................................................
ii
HALAMAN PENGESAHAN ..........................................................................
iii
PERNYATAAN KEASLIAN ..........................................................................
iv
ABSTRAK .........................................................................................................
v
ABSTRACT ......................................................................................................
vi
KATA PENGANTAR ...................................................................................... vii DAFTAR ISI .....................................................................................................
ix
DAFTAR GAMBAR ........................................................................................
xi
DAFTAR TABEL ............................................................................................. xiii DAFTAR LAMPIRAN .................................................................................... xiv BABI PENDAHULUAN............................................................................... ..
1
Latar Belakang Masalah................................................................................ .....
1
RumusanMasalah........................................................................................ .......
2
BatasanMasala............................................................................................ ........
3
TujuanPenelitian......................................................................................... ........
3
ManfaatPenelitian....................................................................................... ........
3
BAB II TINJAUAN PUSTAKA......................................................... .............
5
2.1 PenelitianTerkait…………………………………………………………...
5
2.2 LandasanTeori………………………………………………………….. ...
7
2.2.1 Kecerdasan Buatan……………………………………………… ............
7
2.2.2 Sistem Pakar…………………………………………… ..........................
8
2.2.3 Faktor Kepastian (Certainty Factor)………… ......................................... 21 2.2.4 Penyakit Tanaman Kedelai ........................................................................ 22 2.3 Perancangan Sistem ..................................................................................... 24 2.3.1 Unifield Modelling Language (UML) ....................................................... 24 2.3.2 PHP (PHP Hypertext Preprocessor) ......................................................... 29 2.3.3 HTML (Hypertext Markup Language) ...................................................... 30 2.3.4 Java Script ................................................................................................. 30 2.3.5 jQuery ........................................................................................................ 30 2.3.6 CSS (Cascading Style Sheet) ..................................................................... 30 2.3.7 MySQL ....................................................................................................... 31
2.3.8 Xampp ........................................................................................................ 32 2.4 KerangkaPemikiran ....................................................................................... 33 BAB III METODE PENELITIAN .................................................................. 35 3.1 Analisa Kebutuhan Sistem ........................................................................... 35 3.2 Diagram / Arsitektur Sistem Pakar Penyakit Kedelai ................................... 36 3.3 Analisa Sistem............................................................................................... 37 3.4 Analisa Kebutuhan Data dan Informasi ........................................................ 37 3.5 Analisa Pengguna .......................................................................................... 38 3.6 Analisa Tabel Keputusan .............................................................................. 39 3.7 Perancangan Rule .......................................................................................... 42 BABIV ANALISA DAN PEMBAHASAN SISTEM ...................................... 47 4.1 Pengguna Sistem ......................................................................................... 47 4.2 Perancangan Sistem ..................................................................................... 48 4.2.1 Perancangan Proses .................................................................................... 48 4.2.1.1 Context Diagram ..................................................................................... 48 4.2.1.2 Dekomposisi Sistem ................................................................................ 49 4.2.1.3 DFD Level 0 ........................................................................................... 50 4.2.1.4 DFD Level 1 Pendataan .......................................................................... 51 4.2.1.5 DFD Level 1 Konsultasi ......................................................................... 51 4.2.2 Perancangan Database ................................................................................ 52 4.2.2.1 Entity Relationship Diagram................................................................... 52 4.2.2.2 Transformasi ERD ke Tabel .................................................................... 52 4.2.2.3 Desain Database ..................................................................................... 54 4.2.2.4 Relasi Tabel ............................................................................................. 59 4.2.3 Desain Input dan Output ............................................................................ 58 4.2.3.1 Desain Input ............................................................................................ 58 4.2.3.2 Desain Output ......................................................................................... 61 4.3 Implementasi Sistem ..................................................................................... 64 4.3.1 Tampilan Menu .......................................................................................... 64 4.4 Pengujian Sistem ........................................................................................... 81 BAB V KESIMPULAN DAN SARAN ............................................................ 85 5.1 Kesimpulan ................................................................................................... 85 5.2 Saran .............................................................................................................. 86 DAFTAR PUSTAKA ......................................................................................... 87
DAFTAR GAMBAR Gambar 2.1
Konsep Dasar Fungsi Sistem Pakar ............................................ 10
Gambar 2.2
Arsitektur Sistem Pakar .............................................................. 16
Gambar 2.4
Kerangka Pemikiran.................................................................... 33
Gambar 3.1
Diagram Arsitektur Sistem Pakar Penyakit Kedelai ................... 36
Gambar 4.1
Context Diagram ......................................................................... 48
Gambar 4.2
Dekomposisi Sistem.................................................................... 49
Gambar 4.3
DFD Level 0 ............................................................................... 50
Gambar 4.4
DFD Level 1 Pendataan .............................................................. 51
Gambar 4.5
DFD Level 1 Konsultasi ............................................................. 51
Gambar 4.6
Entity Relationship Diagram ...................................................... 52
Gambar 4.7
Desain Relasi Tabel .................................................................... 56
Gambar 4.8
Form Home ................................................................................. 58
Gambar 4.9
Form Login ................................................................................. 58
Gambar 4.10 Form Input User ......................................................................... 59 Gambar 4.11 Form Input Data Gejala .............................................................. 59 Gambar 4.12 Form Input Penyakit ................................................................... 60 Gambar 4.13 Form Input Obat ........................................................................ 60 Gambar 4.14 Form Input Konsultasi ................................................................ 61 Gambar 4.15 Form Kelola User ....................................................................... 62 Gambar 4.16 Form List Gejala ......................................................................... 62 Gambar 4.17 Form List Penyakit ...................................................................... 63 Gambar 4.18 Form List Obat ............................................................................ 63 Gambar 4.19 Form Dugaan Penyakit ............................................................... 64 Gambar 4.20 Form Hasil Klarifikasi ................................................................ 64 Gambar 4.21 Tampilan Halaman Utama .......................................................... 65 Gambar 4.22 Source Code Halaman Utama ..................................................... 66 Gambar 4.23 Form Login ................................................................................. 67 Gambar 4.24 Source Code Form Login ............................................................ 68 Gambar 4.25 Form Kelola User ....................................................................... 68 Gambar 4.26 Source Code Kelola User............................................................ 69
Gambar 4.27 Form Kelola Gejala ..................................................................... 70 Gambar 4.28 Source Code Kelola Gejala ......................................................... 71 Gambar 4.29 Form Kelola Penyakit.................................................................. 72 Gambar 4.30 Source Code Kelola Penyakit ...................................................... 73 Gambar 4.31 Form Kelola Pengobatan dan Pencegahan .................................. 74 Gambar 4.32 Source Code Kelola Obat ............................................................ 74 Gambar 4.33 Form Konsultasi .......................................................................... 75 Gambar 4.34 Source Code Halaman Konsultasi ............................................... 76 Gambar 4.35 Hasil Klarifikasi Gejala ............................................................... 77 Gambar 4.36 Source Code klarifikasi Gejala .................................................... 78 Gambar 4.37 Perhitungan Certainty Factor ...................................................... 79 Gambar 4.38 Source Code Perhitungan Certainty Factor ................................ 80 Gambar 4.39 Hasil Diagnosa............................................................................. 80 Gambar 4.40 Source Code Hasil Diagnosa ....................................................... 80
DAFTAR TABEL Tabel 2.1
Perbandingan Penelitian Terdahulu dan yang akan dilakukan .....
6
Tabel 2.2
Definisi Sistem Pakar ....................................................................
8
Tabel 2.3
Perbandingan Sistem Konvensional dan Sistem Pakar ................. 13
Tabel 2.4
Perbandingan Kemampuan Pakar dan Sistem Pakar..................... 14
Tabel 2.5
Notasi Use Case Diagram ............................................................. 25
Tabel 2.6
Notasi Class Diagram ................................................................... 26
Tabel 2.7
Notasi Activity Diagram ................................................................ 27
Tabel 2.8
Notasi Sequence Diagram ............................................................. 28
Tabel 3.1
Tabel Data Penyakit ...................................................................... 39
Tabel 3.2
Tabel Data Gejala .......................................................................... 39
Tabel 3.3
Tabel Gejala Penyakit ................................................................... 40
Tabel 3.4
Tabel Nilai CF ............................................................................... 41
Tabel 3.5
Tabel Rule ..................................................................................... 42
Tabel 3.6
Hasil Klarifikasi Gejala ................................................................. 43
Tabel 4.1
Karakteristik Pengguna ................................................................. 47
Tabel 4.2
Struktur Tabel User ....................................................................... 54
Tabel 4.3
Struktur Tabel Gejala .................................................................... 54
Tabel 4.4
Struktur Tabel Penyakit ................................................................. 55
Tabel 4.5
Struktur Tabel Obat ....................................................................... 55
Tabel 4.6
Struktur Tabel Konsultasi ............................................................. 56
Tabel 4.7
Struktur Tabel Gejala Penyakit ..................................................... 57
Tabel 4.8
Struktur Tabel Obat Penyakit ........................................................ 57
Tabel 4.9
Struktur Tabel Gejala Konsultasi .................................................. 57
Tabel 4.10
Tabel Pengujian Login .................................................................. 81
Tabel 4.11
Tabel Pengujian Data User ........................................................... 81
Tabel 4.12
Tabel Pengujian Data Gejala ......................................................... 82
Tabel 4.13
Tabel Pengujian Data Penyakit ..................................................... 82
Tabel 4.14
Tabel Pengujian Data Obat ........................................................... 82
Tabel 4.15
Tabel Pengujian Konsultasi ........................................................... 83
DAFTAR LAMPIRAN Lampiran 1
Buku bimbingan skripsi
Lampiran 2
Lembar revisi ketua penguji
Lampiran 3
Lembar revisi anggota penguji 1
Lampiran 4
Lembar revisi anggota penguji 2