TAKARIR Analysis
: analisis
Artificial Intelligence
: kecerdasan buatan
Backward chaining
: pelacakan yang dimulai dari tujuan, selanjutnya dicari aturan yang memiliki tujuan tersebut untuk kesimpulannya
Certanty Factor
: faktor kepastian
Database
: basis data
Data flow diagram
: diagram alir data
Delete
: hapus
Design
: desain
Development environment : lingkungan pengembangan Edit
: mengubah
Expert system
: sistem pakar
Flowchart
: grafik alir
Foreign key
: kunci asing
Form
: formulir
Forward chaining
: penalaran yang dimulai dari fakta menuju konklusi
Hardware
: perangkat keras
Input
: pemasukan data
Inteligent System
: sistem cerdas
Interface
: tampilan
Java Server Pages
: bahasa pemrograman web di java
xi
Login
: proses untuk memasuki suatu sistem menggunakan kata kunci
Logout
: proses untuk keluar dari sistem
Output
: hasil keluaran sistem
Password
: kata kunci
Primary key
: kunci utama yang digunakan dalam database dan bersifat unik
Privilege
: hak akses
Software
: perangkat lunak
Source code
: kode program
Update
: perbaharui
Username
: nama pengguna
xii
DAFTAR ISI
HALAMAN JUDUL ....................................................................................................i LEMBAR PENGESAHAN DOSEN PEMBIMBING .............................................ii LEMBAR PENGESAHAN DOSEN PENGUJI ......................................................iii LEMBAR PERNYATAAN KEASLIAN..................................................................iv HALAMAN PERSEMBAHAN .................................................................................v HALAMAN MOTTO ................................................................................................vi KATA PENGANTAR ..............................................................................................vii SARI .............................................................................................................................x TAKARIR....................................................................................................................xi DAFTAR ISI ............................................................................................................xiii DAFTAR GAMBAR ................................................................................................xvi DAFTAR TABEL .................................................................................................. xvii BAB 1 PENDAHULUAN
I.1. Latar Belakang ...............................................................................................1 I.2. Rumusan Masalah ..........................................................................................3 I.3. Lingkup Masalah ............................................................................................3 I.4. Tujuan Penelitian ...........................................................................................4 I.5. Manfaat Penelitian .........................................................................................4 I.6. Metodologi Penelitian ....................................................................................4 I.7. Sistematika Penulisan .....................................................................................6 BAB II LANDASAN TEORI 2.1 Kecerdasan Buatan Secara Umum.....................................................................8
xiii
2.2 Sistem Pakar....................................................................................................8 2.2.1
Struktur Sistem Pakar .......................................................................12
2.2.2
Komponen Sistem pakar ..................................................................14
2.2.3
Metode Inferensi ..............................................................................14 2.2.3.1 Pelacakan ke belakang (Backward Chaining).......................15 2.2.3.2 Pelacakan ke depan (Forward Chaining) .............................16
2.2.4
Representasi Pengetahuan ................................................................16
2.2.5
Ketidakpastian dengan Teori Certainty Factor (Teori Kepastian) ...18
2.3
Teori Unified Modeling Language (Bahasa Model Pemersatu)...................21
2.4
Penyakit Akibat Gigitan Nyamuk.................................................................21 a. Malaria.......................................................................................................22 b. Demam Berdarah (Dengue Fever).............................................................26 c. Chikungunya..............................................................................................29 d. Kaki Gajah (Filariasi).................................................................................32 e. Radang Otak (West Nile Virus).................................................................35
BAB III METODOLOGI 3.1 Analisis Kebutuhan Perangkat Lunak .............................................................37 3.1.1
Metode Analisis ...............................................................................37
3.1.2
Hasil Analisis
................................................................................37
3.1.2.1 Analisis Kebutuhan Proses ...................................................37 3.1.2.2 Analisis Kebutuhan Masukan ..............................................38 3.1.2.3 Analisis Kebutuhan Keluaran ..............................................39 3.1.3
Kebutuhan Antar Muka ...................................................................40
xiv
3.1.4
Analisis Kebutuhan Perangkat Lunak ..............................................40
3.1.5
Analisis Kebutuhan Perangkat Keras................................................41
3.2 Perancangan Perangkat Lunak ........................................................................41 3.2.1 Metode Perancangan ...........................................................................41 3.2.2 Hasil Perancangan ...............................................................................42 3.2.2.1 Unified Modeling Language (UML) ......................................42 a. Use Case Diagram...............................................................42 b. Class Diagram.....................................................................43 c. Sequence Diagram...............................................................44 3.2.2.2 Perancangan Aturan.................................................................52 3.2.2.3 Perancangan Mesin Inferensi...................................................53 3.2.2.4 Perancangan Tabel Basis Data ................................................55 3.2.2.5 Relasi Antar Tabel....................................................................59 3.2.2.6 Perancangan Antar Muka ........................................................59 3.3 Implementasi Perangkat Lunak ...................................................................... 65 3.3.1 Batasan Implementasi .........................................................................65 3.3.2 Implementasi Antar Muka...................................................................65 3.3.3 Implementasi Prosedural......................................................................90 BAB IV HASIL DAN PEMBAHASAN 4.1 Pengujian..........................................................................................................97 4.1.1 Pengujian Kesalahan Pada Sistem..........................................................97 4.1.2 Pengujian Kebenaran Pada Sistem........................................................100 4.2.2 Analisis Kinerja ....................................................................................114
xv
BAB V SIMPULAN DAN SARAN 5.1 Kesimpulan ...................................................................................................115 5.2 Saran ..............................................................................................................115 DAFTAR PUSTAKA
xvi
DAFTAR TABEL
Tabel 2.1 Tabel Perbandingan Gejala Demam Berdarah dan Chikungunya.........31 Tabel 3.1 Tabel User.............................................................................................55 Tabel 3.2 Tabel Berita...........................................................................................55 Tabel 3.3 Tabel Dokter..........................................................................................56 Tabel 3.4 Tabel Penyakit.......................................................................................56 Tabel 3.5 Tabel Gejala..........................................................................................57 Tabel 3.6 Tabel Aturan..........................................................................................57 Tabel 3.7 Tabel Jenis Kelamin..............................................................................58 Tabel 3.8 Tabel Rumah Sakit................................................................................58
xvii
DAFTAR GAMBAR
Gambar 2.1. Arsitektur sistem pakar....................................................................12 Gambar 2.2. Pemecahan masalah pada pakar......................................................13 Gambar 2.3. Struktur pemecahan masalah pada sistem pakar.............................14 Gambar 2.4. Proses backward chaining...............................................................16 Gambar 2.5. Proses forward chaining..................................................................16 Gambar 2.6. Hirarki Pengetahuan........................................................................17 Gambar 2.7. Kombinasi aturan ketidakpastian.....................................................19 Gambar 3.1. Use Case Diagram……………………………..………………….43 Gambar 3.2. Class Diagram.................................................................................44 Gambar 3.3. Sequence Diagram Login Admin….…….……......………………45 Gambar 3.4. Sequence Diagram Admin Mengelola Berita..................................46 Gambar 3.5. Sequence Diagram Admin Mengelola Data Dokter........................47 Gambar 3.6. Sequence Diagram Admin Kelola Rumah Sakit.............................48 Gambar 3.7. Sequence Diagram Login Dokter....................................................49 Gambar 3.8. Sequence Diagram Dokter Mengelola Gejala.................................50
Gambar 3.9. Sequence Diagram Konsultasi Pasien...........................................51 Gambar 3.10. Flowchart Sistem Pakar untuk Mendiagnosis Penyakit Akibat Gigitan Nyamuk.....................................................................................................54
xviii
Gambar 3.11 Relasi Tabel Sistem Pakar untuk Mendiagnosis Penyakit Akibat Gigitan Nyamuk.....................................................................................................59 Gambar 3.12. Rancangan antar muka login.........................................................60 Gambar 3.13. Rancangan antar muka input berita...............................................61 Gambar 3.14. Rancangan Antar Muka Input Data Dokter...................................61 Gambar 3.15. Rancangan Antar Muka Input Gejala............................................62 Gambar 3.16. Rancangan Antar Muka Input Aturan............................................62 Gambar 3.17. Rancangan Antar Muka Input Konsultasi......................................63 Gambar 3.18. Rancangan Antar Muka index.......................................................64 Gambar 3.19. Implementasi Antar Muka Halaman Utama..................................66 Gambar 3.20. Daftar Berita………................................................................…..67 Gambar 3.21. Halaman Nyamuk..........................................................................68 Gambar 3.22. Halaman Penyakit..........................................................................69 Gambar 3.23. Halaman Daftar Rumah Sakit........................................................70 Gambar 3.24. Halaman Kontak............................................................................71 Gambar 3.25. Administrasi...................................................................................72 Gambar 3.26. Halaman Administrasi Berita…....................................................73 Gambar 3.27. Halaman Ubah Berita...............................................................….74 Gambar 3.28. Halaman Hapus Berita...................................................................74 Gambar 3.29. Halaman Daftar Dokter.................................................................75 Gambar 3.30. Halaman Detail Dokter.................................................................76
xix
Gambar 3.31. Halaman Ubah Dokter...................................................................77 Gambar 3.32. Halaman Administrasi Admin.......................................................78 Gambar 3.33. Halaman Ubah Password...............................................................79 Gambar 3.34. Halaman Tambah Dokter...............................................................80 Gambar 3.35. Halaman Tambah Berita................................................................81 Gambar 3.36 Halaman Pakar/Dokter....................................................................82 Gambar 3.37. Halaman Administrasi Dokter.......................................................83 Gambar 3.38. Halaman Daftar Gejala..................................................................84 Gambar 3.39. Halaman Tambah Gejala...............................................................85 Gambar 3.40. Halaman Klasifikasi Gejala Berdasarkan Penyakit.......................86 Gambar 3.41. Halaman Nilai MB-MD Gejala.....................................................87 Gambar 3.42. Halaman Ubah Gejala....................................................................88 Gambar 3.43. Halaman Konsultasi.......................................................................89 Gambar 3.44. Halaman Hasil Konsultasi.............................................................90 Gambar 4.1. Tampilan Halaman error Jika input Data Tidak Lengkap..............98 Gambar 4.2 Tampilan Pesan Kesalahan Jika input Data Tidak Ditemukan.......99 Gambar 4.3 Tampilan Halaman error Jika input Tidak Sesuai Aturan..............99 Gambar 4.4 Tampilan Jendela Dialog Jika Belum Memilih..............................100 Gambar 4.5 Konsultasi Satu Gejala Satu Penyakit............................................102 Gambar 4.6 Hasil Konsultasi Satu Gejala Satu Penyakit...................................103 Gambar 4.7 Konsultasi Satu Gejala Beberapa Penyakit.....................................105
xx
Gambar 4.8 Konsultasi Satu Gejala Beberapa Penyakit.....................................106 Gambar 4.9 Hasil Konsultasi Detail Salah Satu Jenis Penyakit.........................107 Gambar 4.10 Konsultasi Beberapa Gejala Satu Penyakit...................................109 Gambar 4.11 Hasil Konsultasi Beberapa Gejala Satu Penyakit.........................110 Gambar 4.12 Konsultasi Beberapa Gejala Beberapa Penyakit...........................112 Gambar 4.13 Hasil Konsultasi Beberapa Gejala Beberapa Penyakit.................113
xxi