45
i MUSLIMAH CARE APPLICATION (ISLAMIC VERSION) BY USING RULE-BASED METHOD SEM II 2017/2018 PREPARED BY: NUR SHAFIKAH IZZATI BINTI ABD SANI COURSE & FACULTY Bachelor of Computer Science in Software Development Faculty of Informatics and Computing Universiti Sultan Zainal Abidin, Terengganu Malaysia.

MUSLIMAH CARE APPLICATION (ISLAMIC VERSION) BY ......i MUSLIMAH CARE APPLICATION (ISLAMIC VERSION) BY USING RULE-BASED METHOD SEM II 2017/2018 PREPARED BY: NUR SHAFIKAH IZZATI BINTI

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

  • i

    MUSLIMAH CARE APPLICATION (ISLAMIC VERSION)

    BY USING RULE-BASED METHOD

    SEM II 2017/2018

    PREPARED BY:

    NUR SHAFIKAH IZZATI BINTI ABD SANI

    COURSE & FACULTY

    Bachelor of Computer Science in Software Development

    Faculty of Informatics and Computing

    Universiti Sultan Zainal Abidin, Terengganu Malaysia.

  • ii

    DECLARATION

    I hereby declare that this is based on my original work except for quotations and

    citations from sources that are declare in acknowledgement. I also declare that

    it has not been previously or concurrently submitted for any other degree at

    University Sultan Zainal Abidin or other institution.

    ………………………………………………..

    Name: Nur Shafikah Izzati Binti Abd Sani

    Date :

  • iii

    DEDICATION

    Most achiever are people who have made a strong and deep dedication to

    pursuing a particular goal. The dedication took a tremendous amount of effort

    but without allah blessing, the project will not compete. So first of all, I grateful

    to allah the merciful for allow me to finish this project, Muslimah care

    Application (period tracker record Islamic version) by using prediction

    technique.

    I would like to thanks my supervisors, Pn Fauziah binti Wahab and other lecturer

    for guiding me throughout the whole process of completing my project. I really

    appreciate the continuous support from your supervision to complete my

    project.

    I express my warm thanks to my friend and all people that involve directly or

    indirectly in this project. Last but not least, the love of family is so much

    important. I would like to give a honourable mention to my family especially

    my parent to give me unmeasurable support in my study which encourage me to

    finish this project.

  • iv

    ABSTARCT

    Muslimah care (period tracker and fasting shared) by using prediction method technique

    is a system that help woman to know more about haidh and fasting. This system help

    woman to record their period and calculate their menstrual cycle based on fiqh. This

    system will calculate the average cycle length and predict the future period. This system

    also provide the reminder to user the next period, ovulations and pills need to be taken.

    Not only considered about the menstrual cycle this system also help user to check their

    knowledge about fasting. In this system, the user will answered the question given and

    the will know their understanding about fasting and menstrual cycle. This system also

    provide zikir that can be practice during their period.

    The current system is only focus on the period tracker only and not include the

    other topic such as fasting in the system. The current system also not provide any

    information about istihadah and nowadays many women not aware about this. So this

    system help the user to calculate their period until they reach the state of istihadah and

    help them to deal with it. Most of the muslim now are not aware about istihadah which

    this is one of the most issues that need to be care. So this system will help the user to

    record the period until reach istihadah state and calculate their period cycle.

    In conclusion, this system assist the user to explore more knowledge about

    period and fasting in term of the true fiqh. This system also able the user to deal with

    their period and istihadah efficiently.

    The technique choosed to be implement in this system is prediction method by

    using ruled based technique

  • v

    Contents Chapter 1 .................................................................................................................................... 1

    INTRODUCTION ..................................................................................................................... 1

    1.1 Project background ........................................................................................................ 1

    1.2 Problem Statement ......................................................................................................... 3

    1.3 Objective ........................................................................................................................ 3

    1.4. Scope .............................................................................................................................. 4

    1.5. Limitation of work. ............................................................................................................. 5

    1.6. Summary of chapter ............................................................................................................ 6

    Chapter 2 .................................................................................................................................... 7

    INTRODUCTION ..................................................................................................................... 7

    2.1. Project Introduction............................................................................................................. 7

    2.2. Comparison on menstrual cycle website/ application. ........................................................ 8

    2.3. Literature review of research ............................................................................................ 13

    2.4. Rule-Based Technique. ..................................................................................................... 15

    2.5 summary of chapter ...................................................................................................... 17

    Chapter 3 .................................................................................................................................. 18

    INTRODUCTION ................................................................................................................... 18

    3.1 Methodology of development. ..................................................................................... 18

    3.2 Development phase. ..................................................................................................... 20

    3.3 Software and Hardware Requirement ................................................................................ 23

    3.3.1 Software Requirement ............................................................................................. 23

    3.3.2 Hardware Requirement ................................................................................................... 24

    3.4 System Design ............................................................................................................... 25

    3.4.1 Context Diagram ............................................................................................................. 25

    3.4.2 Data Flow Diagram ......................................................................................................... 26

    3.4.3 Data Flow Diagram Level 1 ............................................................................................ 28

    3.5 Framework ................................................................................................................... 30

    3.6 Database Design ................................................................................................................. 31

    3.7 Summary of chapter ..................................................................................................... 39

    References ................................................................................................................................ 40

  • 1

    Chapter 1

    INTRODUCTION

    1.1 Project background

    Since these last few decades, an adoption on smartphones have been increasing,

    consumers have since had easy access to anything or keep track of their daily lives.

    With the now advanced mobile technologies, people can now use a wide range of

    applications. Muslimah care application is a type of application that help women track

    their period during haidh and notify them about fasting. A woman who has reached

    puberty normally experiences menstrual cycle. Menstrual cycle is the process of

    ovulation and menstruation that occur normally every month.

  • 2

    In the context of Islamic law, menstruation (haidh) means flows. Haidh is a type

    of blood that is flow from the womb of a woman every month. Women have regular

    period during their reproductive age.

    Haidh happen in minimum is one days and one night and the maximum of period

    is 15 days and 15 night as states in Mazhab Imam Syafi’e. The blood that flows less

    than one days and one night it is not haidh but it referred to istihadah. If the blood is

    flow over 15 days and 15 night it also called istihadah. This happen because of sickness.

    This will be compulsory for the women to solah for the balanced day. During

    Ramadhan, ones haidh stops during days, not proper to some women to eat and drink

    until sunset. That necessary to her to behave like a fasting person and the days still not

    counted as a fast and need to qadha of it.

  • 3

    1.2 Problem Statement

    The statement of problem that lead to develop this application is:

    i. The current mobile application not focus for Muslim which no

    information or awareness about istihadah and nifas

    ii. Most of Muslim women do not care about istihadah which this is very

    important because encourage our solah.

    1.3 Objective

    i. To develop an application that help Muslim women to track record their

    period and calculate their menstrual cycle include information about

    istihadah.

    ii. To design an application of period tracker using ruled based technique

    that notice them about their period’s status.

    iii. To implement the Islamic version of period tracker in mobile

    application.

  • 4

    1.4. Scope

    The proposed system is develop using android system. The reason of using an

    android because it more efficient than system. The scope of this system are

    user and system admin.

    i. User scope (anyone that user this application.)

    a. Able to store period record.

    b. Able to calculate average cycle of period.

    c. Able to predict future period.

    d. Able to get ready for the future period.

    ii. Application scope

    a. This application will calculate the average of their menstrual

    cycle.

    b. This application will generate a calendar.

    c. This application will alert user period status

    iii. Admin scope

    a. Admin will enter hadith or some ‘tazkirah’ about haid and

    women fiqh regularly.

  • 5

    1.5. Limitation of work.

    This application is focus for Muslim women. The user must know the

    range of days of menstrual cycle in order to figure out their monthly period. This

    application also not include the medical advice from health representative.

    Consulting a doctor is needed for the future information.

  • 6

    1.6. Summary of chapter

    This chapter begin with the project background which shows the

    overview of this application. After project background, this chapter is address

    problem statement of the system. Then this chapter also include the objective in

    developing this application. Last it followed by scope which include the user

    and the system.

  • 7

    Chapter 2

    INTRODUCTION

    2.1. Project Introduction

    Literature review is an evaluative report of information that signification

    in research process in developing system. The literature review also the process

    that should be describe, summarise and evaluate to the existing system, website

    or application. The literature review serves as a guide to a developer to improve

    the system weakness and develop a new system that is better than ever. The aims

    are to find and understand related approach that used before.

  • 8

    2.2. Comparison on menstrual cycle website/ application.

    Based on the problem statement, there are some website and an application for

    calculate menstrual cycle and track period. For example:

  • 9

    i. Menstrual Cycle Calculator

    Menstrual cycle calculator is a website that allow the user to only

    calculate their period cycle. This website only focus on calculation of the next

    period. The lack of this website is this system not provide an information of the

    user next period. This system also not provide the guide regarding Islam for the

    Muslims.

  • 10

    ii. My calendar(mobile application)

    This application is to track the user period. This application alert the user by

    notify the user about their next period. This application also calculate the cycle of the

    period. The design of this application is simple and easy to use. This application need

    to be installed in the smartphones and user can simply access.

  • 11

    iii. My calender

    This application is can is use to track user period. this application do not alert user but

    only notify the about their next period. this application also calculate the cycle of the

    period. this application need to be installed to use.

  • 12

    iv. Period tracker

    This application is can is use to track user period. This application do not alert user but

    only notify the about their next period. This application not calculate the cycle of the

    period. The user need to enter manually such as the period ended.

  • 13

    2.3. Literature review of research

    Author Title Objective Method/

    technique

    Advantages disadvantages

    Moglia,

    WHNP,

    MS,

    Henry V.

    Nguyen,

    FNP,

    MS,

    Kathy

    Chyjek,

    MD,

    Katherin

    e T.

    Chen,20

    16

    Applications

    for Menstrual

    Cycle Tracking

    To identify

    smartphone

    menstrual

    cycle tracking

    application

    and evaluate

    their

    accuracy,

    features and

    functionality.

    Prediction

    based on

    average cycle

    length.

    The

    evaluation

    contribute to

    mobile

    health

    literature by

    identifying

    free,

    accurate,

    menstrual

    cycle

    tracking

    application.

    This

    application is

    not

    monitoring by

    any regulatory

    agency

    I.F.Reijn

    ders,

    other,

    2017.

    New imaging

    markers for

    preconceptiona

    l and first

    trimester utero-

    To develop a

    feasible and

    reliable

    method to

    assess

    -Prediction

    with focus on

    the influence

    of period

    conceptional

    The image

    quality relies

    on ultrasound

    machine

    setting.

  • 14

    placenta

    vascularization

    preconceptio

    nal and early

    first volume

    on different

    virtual

    reality(VR)

    system

    lifestyle and

    environmenta

    l factor on

    human

    embryonic

    and fatal

    growth.

    -virtual

    reality

    technique.

    Sacks et

    al,2017

    Integrated

    wireless

    fertility

    tracking

    system.

    To provide an

    apparatus

    comprising a

    thermometer.

    The method

    use is

    comprises

    detecting via

    at least one

    acceleromete

    r.

    The

    smartphone

    or the device

    receives the

    message via

    its own

    wireless

    transceiver,

    then the

    message

    may be

    process by

    any suitable

    process on

    the devices.

    Not all

    implementatio

    n of the

    technique may

    be embodied

    as computer

    executable

    more suitable

    computing

    device

    operating in

    any suitable

    computer

    system.

  • 15

    2.4. Rule-Based Technique.

    The academic value to be used is rule-based technique. Rule-based system is a

    simple model that can be adapted to many problems. Rule-based technique is basically

    the concept of using the if-then statement. This type of system however becomes

    difficult to maintain if there are too many rules in a case. The system can be applied to

    a diverse of scenarios that supports validation and verification processes. This rule-

    based system is to achieve the goals of:

    a. Proving the certain properties hold for the output; and

    b. Providing the criteria that must be satisfied by the input to guarantee the desire

    properties.

    The section to be implemented to this rule-based system is the calculation of the

    period time. If the period time is less than 15 days, it is still considered as a normal

    period but if the period time exceeded 15 days, it is known to be the istihadah phase.

  • 16

    This some example of the calculation by using if-then statement to classify the period

    status.

    Blood Colour 115 PREGNANT LABOUR STATUS

    Red No No No Haid

    Brown Yes No No Istihadah

    Red Yes No Yes Nifas

    Dark Red No No No Haid

    The condition involved are blood colour, if the period is less than one day or more than

    15 days, and the result is concluded as status of the period.

  • 17

    2.5 summary of chapter

    Overall, in this chapter tell about the techniques use which will be give an impact in this

    application. This research will help in developing the system for muslim’s women to

    manage or record their period based on islmaic ways.

  • 18

    Chapter 3

    INTRODUCTION

    3.1 Methodology of development.

    The methodology defines for the analysis of principles and produces for some

    inquiring in some field. Methodology is used to systematically solve the problem to

    ensure this project is complete on time and achieve the objectives. Decide the method

    is the most important part for some project. There are many type of methodology that

    can be used for developed a project such as waterfall, prototyping, spiral development,

    extreme programming and iterative and incremental development. For this project

    development the method that have been choose is iterative and incremental

    development model.

  • 19

    To meet the objectives of the system development, iterative and incremental

    development model have been chosen. In any cycle of iterative and incremental model,

    it allow the repeated cycle during the development. At any cycle, the modification can

    be made to improve the initial planning and also can added the functional capabilities.

    The phase in incremental and iterative are initial planning, requirement, analysis and

    design, implementation and deployment.

  • 20

    3.2 Development phase.

    Iterative and incremental development consist of several phase start with initial

    planning, requirement, analysis and design, implementation and deployment. Following

    the explanation that describes all the phase that include in this project development.

    Figure 3.1 Iterative and incremental development

  • 21

    a) Initial planning phase

    In this phase, the activities is planned according to a given period to

    complete all the system start with brainstorm the ideas with supervisor and some

    proposed title of the project. From brainstorm we agree to choose the title for

    the system as Muslimah Care Application and the technique to be implement

    was prediction technique approach. In order to get the ideas, I reviewed the

    existing system and figure out the constraints of the existing system.

    b) Requirement phase

    After decide all the initial planning and the title of the project

    development, then we proceed on the defining the problem statement, objectives

    and the scope of the system. In requirement phase is to analyse the existing

    system and all the requirement are needed. In this phase, all the collection data

    of information method and the technique suitable have been decided. Prediction

    technique has been selected for give the best result in predict the next period and

    predict the ovulation days.

  • 22

    c) Analysis and design

    In this phase, the design is identify of the system and the development

    prototype based on the functionality of the project. The data collected from the

    analyse phase are need to be transform to design. Some diagram are built like

    context diagram (CD), entity relationship diagram (ERD) and the data flow

    design (DFD) are included in this chapter.

    d) Implementation and deployment

    In this phase the focus is on program and application development. The

    process of develop the application, module by module begins programming and

    coding. The complete system is approving to release to the end user. Any

    changing or missed requirement may force to redesign the system.

  • 23

    3.3 Software and Hardware Requirement

    In order to develop a system, the software and hardware are required. Without software

    and hardware the system is not functioning well.

    3.3.1 Software Requirement

    NO SOFTWARE PURPOSE

    1 Android Studio with Android SDK Used to code the program

    2 Microsoft word 2013 Used to prepared documentation of

    report.

    3 Google chrome To find the information

    4 Local web server

    Xampp (PHPMyAdmin)

    MySQL Workbench

    Provide the platform for database.

    5 Android 5.1 Operating system that used by the

    Oppo phone

    Table 1: Software Requirement

  • 24

    3.3.2 Hardware Requirement

    NO HARDWARE DESCRIPTION

    1 LAPTOP : DELL INTEL CORE i5 Windows 7

    To develop the project

    2 Printer : CANON E400 To print the report.

    3 Memory 8gb RAM memory The RAM of the laptop

    4 Phone : OPPO F1 Phone device for real device testing

    Table 2 : hardware Requirement

  • 25

    3.4 System Design

    3.4.1 Context Diagram

    Figure 3.2 : Context Diagram

    The context diagram for Muslimah Care Application is shown in the figure above. This

    application is only between user and the system and the admin and the system. The

    context diagram will explain more about this application and the flow between user and

    the administrator and what they are capable to do with this application.

  • 26

    3.4.2 Data Flow Diagram

    Figure 3.2 Data flow diagram level 0.

  • 27

    Description

    The DFD has two entities which is user andadmin. Register, login, manage period,

    manage cycle, manage Remainder manage personalize and manage information are

    process that involve in the system. There are six data store create which are,

    PERSONAL, PERIOD, MYCYCLE, MYREMAINDER,MYPERSONALIZE and

    MYINFORMATION.

    1. USER inputs user details to REGISTER process which the data is store in

    personal data store.

    2. USER inputs username to LOGIN process to enter the system. The login

    details are used from PERSONAL data store.

    3. USER input their period records to MANAGE PERIOD process and the

    period record are stored in PERIOD data store.

    4. From period data store data store mycycle will calculate the cycle of the

    period and that will be managed by the manage cycle process and will be the

    out to the user.

    5. The cycle record will be used in manage Remainder process to send an alert

    to the user.

    6. Admin input the information details and will be managed by manage

    information process and sill stored the information in INFORMATION data

    store.

  • 28

    3.4.3 Data Flow Diagram Level 1

    MANAGED USER PROCESS

    Description

    1. USER input register details into REGISTER process which sent the data

    output into USER data stores.

    2. USER input login details into LOGIN process which sends output into

    USER data stores

    3. USER update username details into UPDATE USERNAME process which

    send the output into USER data store.

  • 29

    MANAGED PERIOD PROCESS

    Description

    1. USER input period details into ADD PERIOD process which sent the data

    output into PERIOD data stores.

    2. USER input period details into UPDATE PERIOD process which sends

    output into PERIOD data stores

  • 30

    3.5 Framework

  • 31

    3.6 Database Design

  • 32

    Database Design (data dictionary)

    1. Table user

    No Attributes Description Type Key Length Default null

    1 username ‘username’

    represent

    the

    usernameof

    user.

    VARCHAR Primary

    key

    10

    2 Pswd ‘pswd’

    represent

    user

    password.

    VARCHAR 40

    3 fname ‘fname’

    represent

    user full

    name

    VARCHAR 50

    4 age ‘age’

    represent

    user age

    int

    5 s

    tat

    ‘stat’

    represent

    user status

    either

    VARCHAR 12

  • 33

    married or

    not.

    2. Table period

    No Attributes Description Type Key Length Default null

    1 startDate ‘startDate’

    represent the

    start date of

    user period.

    Date

    2 endDate ‘endDate’

    represent the

    end date of

    user period

    Date

    3 periodCycle ‘periodCycle’

    represent the

    user period

    cycle

    int

    4 username ‘username’

    represent the

    usernameof

    user.

    VARCHAR Primary

    key

    10

  • 34

    3. Table mycycle

    N

    o

    Attributes Description Type Key Lengt

    h

    Defau

    lt

    nul

    l

    1 periodPredictio

    n

    ‘periodPrediction

    ’ represent user

    next period

    prediction.

    Int

    2 ovulationPredic

    tion

    ‘ovulationPredict

    ion’ represent

    user ovulation

    prediction.

    Int

    3 username ‘username’

    represent the

    usernameof user.

    VARCH

    AR

    Prima

    ry key

    10

  • 35

    4. Table mypersonalize

    No Attributes Description Type Key Length Default null

    1 weight ‘weight’

    represent

    user weight

    Float

    2 temperature ‘temperature’

    represent

    user body

    temperature

    Float

    3 periodPred ‘periodPred’

    represent

    user period

    prediction

    int

    4 symptom ‘symptom’

    represent

    user current

    symptom

    varchar 50

    5 username ‘username’

    represent the

    usernameof

    user.

    VARCHAR Primary

    key

    10

  • 36

    5. Table myremainder

    N

    o

    Attributes Description Type Key Leng

    th

    Defau

    lt

    nu

    ll

    1 pillRemainder ‘pillRemainder’

    represent the

    remainder about

    pill taken to user

    Varchar 30

    2 periodRemainde

    r

    ‘periodRemainde

    r’ represent the

    remainder about

    the user period

    Varchar 30

    3 istihadahRemai

    nder

    ‘istihadahRemain

    der’ represent the

    remainder to user

    when they reach

    istihadah state

    Varchar 30

    4 fertilityRemaind

    er

    ‘fertilityRemaind

    er’ represent the

    remainder about

    user fertility

    Varchar 30

    5 ovulationRemai

    nder

    ‘ovulationRemai

    nder’ represent

    Varchar 30

  • 37

    the remainder

    during user

    ovulation phase

    6 Notes ‘notes’ represent

    the user notes.

    Varchar 100

    7 username ‘username’

    represent the

    usernameof user.

    VARCH

    AR

    Prima

    ry key

    10

  • 38

    6. Table myinformation

    No Attributes Description Type key length default null

    1 infodate ‘infodate’

    represent

    the

    information

    date

    date Primary

    key

    2 infoTitle ‘infoTitle’

    represent

    the

    information

    title.

    date

    3 infoNotes ‘infoNotes’

    represent

    the

    information

    notes

    dates

  • 39

    3.7 Summary of chapter

    Overall, this chapter discuss about the methodology that has been used in

    this project. The methodology use is iterative and incremental model. In this

    chapter also explain he software and hardware used in the application. This

    chapter also discuss about, project design and modelling was useful to show

    the application will work. All the diagram is include to show the flow of the

    system to give a better understanding about this application will work.

  • 40

    References

    Michelle L. Moglia, WHNP, MS, Henry V. Nguyen, FNP, MS, Kathy Chyjek, MD,

    Katherine T. Chen, MD, MPH, and Paula M. Castaño, Applications for Menstrual Cycle

    Tracking, 6, JUNE 2016

    I.F. Reijnders a , A.G.M.G.J. Mulders a , M.P.H. Koster a , A.H.J. Koning b , A.

    Frudiger a , S.P. Willemsen a, c , E. Jauniaux d , G.J. Burton e , R.P.M. Steegers-

    Theunissen a, f, * , E.A.P. Steegersa, New imaging markers for preconceptional and

    first trimester utero-placenta vascularization, 2017.