IMPLEMENTASI METODE FUZZY SUGENO SEBAGAI PENENTU STATUS GIZI DAN SOLUSI REKOMENDASI NUTRISI BAGI PENDERITA DIABETES BERBASIS ANDROID MOBILE
TUGAS AKHIR
Sebagai Persyaratan Guna Meraih Sarjana Strata 1 Teknik Informatika Universitas Muhammadiyah Malang
Oleh: M. FAJAR KURNIAWAN 07560016
JURUSAN TEKNIK INFORMATIKA FAKULTAS TEKNIK UNIVERSITAS MUHAMMADIYAH MALANG 2013
KATA PENGANTAR Dengan memanjatkan puji syukur kehadirat Allah SWT. Atas limpahan rahmat dan hidayah-Nya sehingga penulis dapat menyelesaikan tugas akhir yang berjudul : IMPLEMENTASI METODE FUZZY SUGENO SEBAGAI PENENTU STATUS GIZI DAN SOLUSI REKOMENDASI NUTRISI BAGI PENDERITA DIABETES BERBASIS ANDROID MOBILE Di dalam tulisan ini disajikan pokok-pokok pembahasan yang meliputi pendahuluan, landasan teori, perancangan sistem, implementasi dan pengujian sistem. Penulis menyadari sepenuhnya bahwa dalam penulisan tugas akhir ini masih banyak kekurangan dan keterbatasan. Oleh karena itu penulis mengharapkan saran yang membangun agar pembuatan tugas akhir ini bermanfaat bagi perkembangan ilmu pengetahuan ke depan.
Malang, Januari 2013
Penulis
DAFTAR ISI LEMBAR PERSETUJUAN LEMBAR PENESAHAN LEMBAR PERNYATAAN ABSTRAK ............................................................................................................i ABSTRACT ..........................................................................................................ii LEMBAR PERSEMBAHAN................................................................................iii KATA PENGANTAR ...........................................................................................iv DAFTAR ISI .........................................................................................................v DAFTAR GAMBAR ............................................................................................viii DAFTAR TABEL .................................................................................................x BAB I PENDAHULUAN .....................................................................................1 1.1 Latar Belakang ............................................................................................1 1.2 Rumusan Masalah.......................................................................................2 1.3 Batasan Masalah .........................................................................................3 1.4 Tujuan Penelitian ........................................................................................3 1.5 Metodologi Pengerjaan ...............................................................................3 1.6 Sistematika Penulisan .................................................................................5 BAB II LANDASAN TEORI ...............................................................................6 2.1 Diabetes ......................................................................................................6 2.1.1 Kriteria dan Klasifikasi Diabetes ........................................................6 2.1.1.1 Kriteria Diabetes .........................................................................6 2.1.1.2 Klasifikasi Diagnosa Diabetes ....................................................6 2.1.2 Diagnosa .............................................................................................8 2.1.3 Terapi Nurtisi Medis ...........................................................................9 2.1.3.1 Komposisi Makanan Yg Dianjurkan Bagi Penderita Diabetes ...9 2.1.3.2 Perilaku Sehat Bagi Penyandang Diabetes..................................11 2.1.3.3 Pilihan Makanan..........................................................................12 2.2 Logika Fuzzy ..............................................................................................14 2.3 Himpunan Fuzzy.........................................................................................15 2.4 Fungsi Keanggotaan ...................................................................................15
2.5 Sistem Inferensi Fuzzy ...............................................................................20 2.5.1 Metode Fuzzy Sugeno.........................................................................20 2.6 SQLite .........................................................................................................23 2.7 Perhitungan Status Gizi ..............................................................................24 2.8 Perhitungan Berat Badan Ideal Untuk Dewasa ..........................................24 2.9 Perhitungan Kebutuhan Energi dan Zat Gizi Untuk Dewasa .....................24 BAB III ANALISA DAN PERANCANGAN SISTEM .......................................25 3.1 Analisa Sistem ............................................................................................25 3.1.1 Pseudocode .........................................................................................25 3.1.1.1 Pseudocode Untuk Status Gizi ....................................................25 3.1.1.2 Pseudocode Untuk Tipe Diet.......................................................28 3.1.2 Rule Fuzzy ..........................................................................................29 3.1.3 Perancanan Unified Modelin Language (UML) .................................31 3.1.3.1 Use Case Diagram .......................................................................31 3.1.3.2 Activity Diaram ...........................................................................35 3.1.3.2.1 Activity Diagram Status Gizi Pasien ...................................35 3.1.3.2.2 Activity Diagram Tipe Diet Pasien .....................................36 3.1.3.2.3 Activity Diagram View Faktor Aktifitas .............................37 3.1.3.2.4 Activity Diagram View Faktor Stress .................................38 3.1.3.2.5 Activity Diagram View Help...............................................38 3.2 Perancangan Sistem ....................................................................................39 3.2.1 Squence ...............................................................................................39 3.2.1.1 Squence Diagram Status Gizi ......................................................39 3.2.1.2 Squence Diagram Tipe Diet ........................................................40 3.2.1.3 Squence Diagram Help................................................................40 3.2.2 Class Diagram .....................................................................................41 3.2.3 Perancangan Basis Data ......................................................................41 3.2.3.1 Desain Tabel................................................................................41 3.3 Perancangan Antar Muka (Interface) .........................................................43 3.3.1 From Menu Utama ..............................................................................43 3.3.2 Form Help ...........................................................................................44 3.3.3 Form Status Gizi .................................................................................44
3.3.4 Form Hasil Status Gizi ........................................................................45 3.3.5 Form Tipe Diet ....................................................................................46 3.3.6 Form Hasil Tipe Diet ..........................................................................47 BAB IV IMPLEMENTASI DAN PENGUJIAN ..................................................48 4.1 Kebutuhan Sistem .......................................................................................48 4.2 Implementasi ..............................................................................................48 4.2.1 Implementasi Database .......................................................................49 4.2.2 Implementasi Sistem ...........................................................................49 4.2.2.1 Halaman Awal .............................................................................50 4.2.2.2 Halaman Menu Utama ................................................................51 4.2.2.3 Halaman Menu Bantuan ..............................................................51 4.2.2.4 Halaman Menu Penentu Status Gizi............................................52 4.2.2.5 Halaman Menu Penentu Tipe Diet ..............................................53 4.2.2.6 Halaman Menu Faktor Aktifitas ..................................................54 4.2.2.7 Halaman Menu Faktor Stres........................................................55 4.3 Pengujian ....................................................................................................57 4.3.1 Pelaksanaan Uji Coba .........................................................................57 4.3.1.1 Pengujian Penentu Status Gizi ....................................................57 4.3.1.2 Pengujian Penentu Tipe Diet .......................................................59 4.4 Perhitungan Akurasi ...................................................................................61 4.4.1 Perhitungan Manual Data Yang Tidak Cocok ....................................64 BAB V PENUTUP ................................................................................................69 5.1 Kesimpulan .................................................................................................69 5.2 Saran ...........................................................................................................69 DAFTAR PUSTAKA............................................................................................70 LAMPIRAN ..........................................................................................................71
DAFTAR GAMBAR Gambar 2.1
Pilihan Makanan untuk Penyandang Diabetes...............................12
Gambar 2.2
Representasi Linear Naik ...............................................................16
Gambar 2.3
Representasi Linear Turun .............................................................17
Gambar 2.4
Kurva Segitiga ...............................................................................17
Gambar 2.5
Kurva Trapesium ...........................................................................18
Gambar 2.6
Kurva Bahu ....................................................................................18
Gambar 2.7
Kurva-S Pertumbuhan....................................................................19
Gambar 2.8
Kurva-S Penyusutan ......................................................................19
Gambar 2.9
Kurva Lonceng ..............................................................................20
Gambar 3.1
Himpunan fuzzy: Berat Badan........................................................30
Gambar 3.2
Himpunan Fuzzy: Tinggi Badan ....................................................31
Gambar 3.3
Use Case Diagram .........................................................................31
Gambar 3.4
Activity Diagram Status Gizi Pasien ..............................................35
Gambar 3.5
Activity Diagram Tipe Diet Pasien.................................................36
Gambar 3.6
Activity Diagram View Faktor Aktivitas .......................................37
Gambar 3.7
Activity Diagram View Faktor Stress.............................................38
Gambar 3.8
Activity Diagram View Help ..........................................................38
Gambar 3.9
Sequence Diagram Status Gizi.......................................................39
Gambar 3.10 Sequence Diagram Tipe Diet .........................................................40 Gambar 3.11 Sequence Diagram Help.................................................................40 Gambar 3.12 Class Diagram Aplikasi .................................................................41 Gambar 3.13 From Menu Utama .........................................................................43 Gambar 3.14 Form Help ......................................................................................44 Gambar 3.15 From Status Gizi ............................................................................45 Gambar 3.16 Form Hasil Status Gizi...................................................................45 Gambar 3.17 Form Tipe Diet...............................................................................46 Gambar 3.18 Form Hasil Tipe Diet .....................................................................47 Gambar 4.1
Koneksi Database ..........................................................................49
Gambar 4.2
Halaman Awal Sistem Aplikasi .....................................................50
Gambar 4.3
Halaman Menu Utama ...................................................................51
Gambar 4.4
Halaman Menu Bantuan ................................................................52
Gambar 4.5
Halaman Menu Penentu Status Gizi ..............................................52
Gambar 4.6
Halaman Menu Tipe Diet ..............................................................53
Gambar 4.7
Langkah Untuk Dapat Mengakses Menu Faktor Aktifitas ............54
Gambar 4.8
Halaman Lihat Faktor Aktifitas .....................................................55
Gambar 4.9
Langkah Untuk Dapat Mengakses Menu Faktor Stres ..................56
Gambar 4.10 Halaman Lihat Faktor Aktifitas .....................................................56 Gambar 4.11 Pengujian Halaman Menu Utama ..................................................57 Gambar 4.12 Pengujian Halaman Penentu Status Gizi .......................................58 Gambar 4.13 Halaman Hasil Status Gizi .............................................................59 Gambar 4.14 Halaman Menu Utama ...................................................................59 Gambar 4.15 Halaman Penentu Tipe Diet ...........................................................60 Gambar 4.16 Halaman Hasil Tipe Diet ...............................................................61
DAFTAR TABEL Tabel 2.1 Kadar Glukosa Darah Sewaktu dan Puasa .........................................9 Tabel 2.2 Daftar Makanan ..................................................................................13 Tabel 2.3 Kriteria IMT .......................................................................................24 Tabel 3.1 Aturan-Aturan dalam Penentuan Status Gizi .....................................29 Tabel 3.2 Definisi Aktor .....................................................................................32 Tabel 3.3 Definisi UC-01 Status Gizi Pasien .....................................................32 Tabel 3.4 Definisi UC-02 Tipe Diet Pasien ........................................................33 Tabel 3.5 Definisi UC-03 View Faktor Aktifitas ...............................................33 Tabel 3.6 Definisi UC-04 View Faktor Stress ....................................................34 Tabel 3.7 Definisi UC-05 View Help .................................................................34 Tabel 3.7 Tabel Bahan Pangan ...........................................................................42 Tabel 4.1 Perbandingan Status Gizi Pakar vs Fuzzy ..........................................61
DAFTAR PUSTAKA [1] Diet & Olahraga Penderita Diabetes. http://xamthone.biz/search/makananyang-dilarang-penderita-dm, Didownload pada 15 September 2011. [2] Famizal. 2010. Sejarah Perkembangan Fuzzy Logic. https://fahmizaleeits.wordpress.com/2010/04/09/sejarah-perkembanganfuzzy-logic/, Didownload pada 11 Maret 2012. [3] Hermawan, Stephanus. 2011. Mudah Memuat Aplikasi Android. Yogyakarta:Andi. [4] Kusumadewi, Sri. 2003. Artificial Intelligence (Teknik dan Aplikasi). Yogyakarta: Graha Ilmu. [5] Leksananingrum, Nawangsa.dkk. 2009. Perhitungan Kebutuhan Gizi Rumah Sakit Dr.Saiful Anwar. Malang. [6] Musbikhin. 2011. Pengantar Fuzzy Logic. http://www.musbikhin.com/pengantar-fuzzy-logic, Didownload pada 11 Maret 2012. [7] Original. 2011. Logika Fuzzy
Pengantar.
http://tha8990.blogspot.com/2011/07/logika-fuzzy-pengantar.html, Didownload pada 11 Maret 2012. [8] Perkumpulan endokrinologi indonesia. 2011. Konsesus Pengelolaan dan Pencegahan Diabetes Melitus Tipe 2 di Indonesia. [9] Shahab, Alwi. Diagnosis Penatalaksanaan Diabetes Melitus. Palembang. FK Unsri. [10] Suwandi. 2011. Aplikasi Sistem Inferensi Fuzzy Metode Sugeno Dalam Memperkirakan Produksi Air Mineral Dalam Kemasan. Yogyakarta: Universitas Negeri Yogyakarta. [11] 2013. Diet Untuk Diabetes. http://www.klikdokter.com/gizi/diet-untukdiabetes. Didownload pada 11 Maret 2012.
This document was created with Win2PDF available at http://www.daneprairie.com. The unregistered version of Win2PDF is for evaluation or non-commercial use only.