Download as pdf or txt
Download as pdf or txt
You are on page 1of 62

Health - Stats

Mobile based application

Submitted to
Sri Lanka Institute of Information Technology

In partial fulfillment of the requirements for the


Degree of Bachelor of Science in Information Technology
July 2020
Declaration
I hereby declare that the project work entitled Health Stats, submitted to the Sri Lanka Institute of
Information Technology is a record of an original work done by us, under the guidance of our
Supervisor Ms. Gayana Fernando. This project work is submitted in the partial fulfillment of the
requirement for the award of the degree of Bachelor of Science in Information Technology. The
results embodied in this report have not been submitted to any other University or Institution for
the award of any degree or diploma. Information derived from the published or unpublished work
of others has been acknowledged in the text and a list of references is given.

Project Title : Health Stats - Mobile base health application

Project ID : 20

Names of the authors

Student ID Student Name Signature

IT16060340 W.A.A.U.Senadilankara

Date of Submission: 03/04/2020

Internal Supervisor:

Ms. Gayana Fernando

Name Signature Date

Acceptance by Lecturer in charge:

Ms. Gayana Fernando

Name Signature Date

i
Abstract

Technological advancement has led to the growth and development of nations. Though it is so,
contemplating with the other countries the level of using the technology for the quotidian events
in our country is less. So here this research introduces a mobile application which is capable of
tracking and monitoring the health issues in the society and send relevant notifications to the
government health department. The mobile application was developed using the react framework
and it can be used in Android and IOS. The uniqueness of this system is, the users would be able
to upload the images and the locations related for those health issues and also it gives direct access
to the representatives of the government health department. The users only have to send their
correct location and upload it to the system and the system gets the information about the exact
location by the user and the location of their posts. So, that the users only have to download this
application and upload the photos and videos and also the users can share the others posts too.
Through this application, people can attain benefits and the help of the Municipal Council. Really
this health stats system, can save the valuable time of the people and they can solve their issues as
possible.

Keywords: Image processing, Static report, GPS Tracking, Health issues, Complains

ii
Acknowledgments

I would like to take this opportunity to acknowledge and extend my sincere gratitude to Ms.
Gayana Fernando for sharing her pearls of wisdom with me during the course of this research. And
I am overwhelmed in all humbleness and gratefulness to acknowledge my depth to the Academic
lecture panel of SLIIT for their comments about the research. The project experiences,
encouragements, suggestions given by Ms. Gayana Fernando were highly helpful throughout the
entire project development period in all the areas including developing the system and
documentations. She reserved her time and worked with a great dedication within her busy
schedule, it is a worthy hand to the project. Moreover, I would like to extend my gratitude to all
the individuals who have taken part in the survey and the interviews conducted in order to perform
the data analysis and I always express my gratitude to all colleagues of SLIIT Academy who where
been supportive in this process.

iii
Table of Contents

Contents
ABSTRACT............................................................................................................................................................
1. INTRODUCTION ........................................................................................................................................... 1
1.1 BACKGROUND CONTEXT ............................................................................................................................ 1
1.2 RESEARCH PROBLEM TO BE ADDRESSED ..................................................................................................... 2
1.3 RESEARCH QUESTIONS ............................................................................................................................... 2
1.4 RESEARCH OBJECTIVES .............................................................................................................................. 3
1.5 SCOPE OF THE RESEARCH ........................................................................................................................... 3
1.6 RESEARCH CONTRIBUTION ......................................................................................................................... 4
1.7 STRUCTURE OF THE REPORT ....................................................................................................................... 5
2. Literature review............................................................................................................................................. 6
2.1 INTRODUCTION ......................................................................................................................................... 6
2.2 GPS TRACKING ......................................................................................................................................... 7
2.3 DATA REPORT ........................................................................................................................................... 9
2.4 IMAGE PROCESSING ................................................................................................................................. 11
2.5 RESEARCH GAP ....................................................................................................................................... 13
3. Methodology .................................................................................................................................................. 14
3.1 PLANNING ............................................................................................................................................... 14
3.2 REQUIREMENT GATHERING AND ANALYSIS .............................................................................................. 17
3.3 DESIGN ................................................................................................................................................... 18
Architecture Design ................................................................................................................................ 19
Class Diagram........................................................................................................................................ 20
Interface Design ..................................................................................................................................... 21
Algorithm Design.................................................................................................................................... 31
Flow Chart ............................................................................................................................................. 31
3.4 IMPLEMENTATION ................................................................................................................................... 32
3.5 TESTING.................................................................................................................................................. 33
4. Results and Finding ....................................................................................................................................... 36
4.1 EVIDENCE ............................................................................................................................................... 36
4.2 DISCUSSION ............................................................................................................................................ 45
5. Conclusion ..................................................................................................................................................... 46
5.1 IMPORTANCE OF OUTCOMES ..................................................................................................................... 46
5.3 LIMITATIONS ........................................................................................................................................... 48
5.4 RECOMMENDATIONS ............................................................................................................................... 48
5.5 FUTURE WORK ........................................................................................................................................ 48
REFERENCES ................................................................................................................................................... 49

iv
List of Tables

Table 1:Product perspective............................................................................................................................... 13


Table 2: Login and Register System.......................................................................... Error! Bookmark not defined.
Table 3: Upload Post System ..................................................................................... Error! Bookmark not defined.
Table 4: Generate Static Report................................................................................ Error! Bookmark not defined.
Table 5: Tracking Location Using GPS Tracking .................................................... Error! Bookmark not defined.

List of Figure

Figure 1 : Architecture of the system..................................................................................................................... 7


Figure 2: Map showing.......................................................................................................................................... 8
Figure 3 : Data report in system ............................................................................................................................. 9
Figure 4: Business report in system...................................................................................................................... 10
Figure 5: Dashboards in system ........................................................................................................................... 10
Figure 6: Electricity digit meter ........................................................................................................................... 11
Figure 7: Results of preprocessing ....................................................................................................................... 12
Figure 8: Individual digit segmentation in system................................................................................................. 12
Figure 9: Designed Architecture .......................................................................................................................... 19
Figure 10: Class Diagram .................................................................................................................................... 20
Figure 11:Login interface .................................................................................................................................... 20
Figure 12: Register interface ................................................................................................................................ 22
Figure 13: News feed page .................................................................................................................................. 23
Figure 14: Update interface ................................................................................................................................. 24
Figure 15: Google location map interface............................................................................................................. 25
Figure 16: User profile edit interface.................................................................................................................... 26
Figure 17: Navigate bar interface ......................................................................................................................... 27
Figure 18: User sign out interface ........................................................................................................................ 28
Figure 19: Notification interface .......................................................................................................................... 29
Figure 20: Static report interface .......................................................................................................................... 30
Figure 21: Flow chart .......................................................................................................................................... 31
Figure 22: Component Diagram ........................................................................................................................... 32
Figure 23: Deployment Diagram .......................................................................................................................... 33
Figure 24:User register interface .......................................................................................................................... 36
Figure 25:User login interface ............................................................................................................................. 36
Figure 26: Upload post interface .......................................................................................................................... 37
Figure 27: Home page interface ........................................................................................................................... 39
Figure 28: Static report interface .......................................................................................................................... 39
Figure 29: Upload post code ................................................................................................................................ 43
Figure 30: Report Analysis code .......................................................................................................................... 45

v
1. INTRODUCTION
The purpose of adding this section is to give a clear definition on how this project will respond to
the exact research problem. This chapter clearly described the Background context, Research
problem, Research questions, Research objectives, Scope of the research, Research Contribution
and the Structure of the report as subheadings.

1.1 Background context


Nowadays Environmental pollution is a major threat which has affected to the security of living
beings in worldwide. As a result of this, so many diseases have emerged in order to reduce the
efficiency of health security.

There are so many ways of environmental pollution which is subdivided to three categories as Air,
Land and Water. As a result of the development of technology, it was influenced to make polluted
environment. This is a prominent way for entering. Thus, the effect of environmental pollution
leads to producing lot of non-communicable diseases as Dengue.

Those responsibilities are under the hands of the Department of Health and Security to take an
action for preventing the increment of pollution. If there is a proper way to connect with an
authority directly, that will be the best solution to take an action immediately.

As a solution to the above-mentioned problem, introducing and implementing a mobile application


will be help to reduce the gap between people and the authorities in order to maintain and build
the bridge of connection. When the photos and the location of polluted places are uploaded through
the above application, shared post can be watched by users. Also post can be searched by looking
at in which city is being polluted. The Department of health and security is connected through this
application in order to restrict the pollution by taking actions immediately. Afterwards the static
report will be provided through data gathering by this application. Further it will be helped to
mitigate spread of diseases in the environment.

1|Page
1.2 Research problem to be addressed
In current period, polluted areas are informed to the authorities from manual process. It is a long-
distance process and hence, the incidents are signified by the citizens and information will be
granted to specific authority. That information should be checked in order to check whether those
are correct or not. After the confirmation, they will take an action with respect to the granted
problem. Thus, the process tends to time wasting. As a result of wasting time, non-communicable
diseases will be expanded immensely. As a solution to this manual behavior, the research team
have been developed a mobile application which is able to connect the authorities with confirmed
details of pollutions. This system will be using the image processing technology to enhance images
or to extract some useful details from it.

As a solution to the above-mentioned problem, introducing and implementing a mobile application


will be help to reduce the gap between people and the authorities in order to maintaining and
building the bridge of connection. When the photos and the location of polluted places are
uploaded through the above application, shared post can be watched by users. Also post can be
searched by looking at in which city is being polluted. The Department of health and security is
connected through this application in order to restrict the pollution by taking actions immediately.
Afterwards the static report will be provided through data gathering by this application. Further it
will be helped to mitigate spread of diseases in the environment.

1.3 Research questions


The following were the research questions which led this project into a successful end.

• What are the common epidemic diseases in Sri Lanka and what can be tracked via an ICT
application?

• How to educate general public on hygienic factors?

• How to track and send notifications to authorized organization about epidemic diseases?

• How to provide collaboration within general public to share information?

2|Page
1.4 Research objectives
The following were the research objectives which were the solution for the research questions for
successful end of the project.

1. To identify the common epidemic diseases in Sri Lanka and what can be tracked via an
ICT application.

2. To develop an android based mobile application to provide guidelines on hygienic


factors.

3. To develop real time data tracking application in order to track and send notifications to
authorized organizations about epidemic diseases.

4. To develop a social network for general public to share ideas.

1.5 Scope of the research


Here in this project we can upload the health issues or else through giving the location and the
images, the representatives of the government health department can give their direct access to
this. Moreover the government health department can have a clear report at the end of the month
regarding the health issues and the environmental pollution that has been taken place in the whole
country provincially and they can take the necessary remedies for them through the help of the
Municipal councils relevant for those areas as much as possible. The most important thing is that,
people can share or like the posts that one has uploaded and it will make ease the above process.

3|Page
1.6 Research contribution
As a solution to the above-mentioned problem, introducing and implementing a mobile application
will be help to reduce the gap between people and the authorities in order to maintaining and
building the bridge of connection. When the photos and the location of polluted places are
uploaded through the above application, shared post can be watched by users. Also post can be
searched by looking at in which city is being polluted. The Department of health and security is
connected through this application in order to restrict the pollution by taking actions immediately.
Afterwards the static report will be provided through data gathering by this application. Further it
will be helped to mitigate spread of diseases in the environment. This might be contributed to
develop effectiveness of securing and protecting users own place or any other places.

Image processing and GPS tracking are used to execute this mobile application which potentially
stand by preventing diseases.

This Health Stat mobile application is provided information about the places that are being polluted
from the posts which are shared by users. Such that impact on environment could be easily
detected. After proving the information, either an authority or an informed person can be taken an
action to prevent pollution. All the incident will be updated to a database. Also, analysis of data is
deployed to build static report to reveal the current situation in monthly. It might be helpful for
determining the situation and is suggested suitable solutions in order to reducing the bad condition
on today. GPS tracking can be used to access the location which will be exactly happened and will
be known the time period is taken to arrive.

The timeframe of the project is limited to one month. Therefore, main requirements of the project
are identified and collected. More features are planned to add for develop facilities. The research
is more capable in interfaces designing, programming and database designing as well as data
analyzing. Unfortunately, the researcher does not have sufficient knowledge in image processing.
Thus, there are several issues occurred when implementing it. Main issues are time and technology.
Therefore, researcher had to spend some time to get knowledge for increasing his knowledge
capacity. Also, more information had collected to get knowledge on GPS tracking. So, time
management concept was followed in order to gain success on project.

After collecting sufficient available resources, the project can be implemented within a month

4|Page
1.7 Structure of the report

In first phase of the report, information about the background of the research area have been
provided, research problems have been recognized when proceeding the research and also the
solutions that arose have been solved in a suitable manner. Research questions are being covered
in first phase along with scope of research as well. In the second phase, literature review which is
a survey of scholarly sources related to this research topic area has been developed. Architecture
diagram of the new system, information about interfaces and algorithm are contained in the third
phase which is called Methodology. End of the third phase, implementing and testing of the new
system are discussed. Results and findings are included in fourth phase of the report. Finally,
outcomes of the system along with the limitations of the project are consisted.

5|Page
2. Literature review

2.1 Introduction
Currently in a situation, government authority takes responsibilities after they have got the
confirmation regarding that issue. People might be suffered from mentioned problem until they
will be taken actions on that issue. That may be an unpleasant experience that they have faced.
Any proper answer to this question is not provided to the group of people who was influenced till
the authority will making impact on this issue. There can be arising non-communicable diseases
among people. Therefore, it could be damaged to the self-security in human beings. In such
situation as disaster, an immediate action should be taken. When the proper information will not
be granting, authority might fail to resolve it quickly.

Nowadays, quick and fast data sharing technique are involved to solving lot of problem. According
to that concept, this new mobile application may give benefits to those who are facing issues as
mentioned before.

The proposed system will reduce the time taken and will increase the efficiency of the service.
Users get the responsibilities for their own post and precise information will be a benefit for
securing their lives

There are three areas which literature review is focused on. They are image processing, GPS
tracking and data report.

6|Page
2.2 GPS Tracking

GPS tracking is the surveillance of location to track the location of an entity remotely using of the
Global Positioning System (GPS). In various cases, GPS tracking is used. A system which was
detected dengue patients has been explained by Emmenual Reddy, Sarnil Kumar, Nicholas
Rollings, and Rohitash Chandra in 2015. In the last decades Dengue is a major health concern in
Fiji with the number of dengue outbreaks occurring. Mostly Dengue is transmitted from mosquito
bites. Also, early recognition of Dengue is very prominent to prevent spreading. Currently
diagnosing is very slow and time consuming which is done by hospitals. Therefore, it is important
to monitor the spread of Dengue since no vaccine cure currently available [1].

The proposed system is consisted of global positioning system (GPS) which is satellite-based
navigation system allows the accurate positioning of an object using satellite signals. That is used
for monitoring purpose. Thus, Dengue infected area will be identified by Health authority quickly
in Fiji.

Probably health care around the world is being potentially promoted by health information
technology. Usually mobile phones are being tended to carry by people with them rather than
desktop computers. Open source software is becoming popular in developing countries due to
above reason. In terms of that, this proposed mobile application was developed.

In the case of detected fever or any related feasible symptoms as severe headache, severe eye pain,
joint and muscle pain(myalgia), skin rash, mild bleeding manifestation, low white blood cell count,
nausea/vomiting and joint swell, users take precautionary steps that is advised by the mobile
application. Afterward user’s current location is tracked via the GPS tracker and information is
stored in a database. Path of data transmission from the mobile application is followed by below.

Figure 1 : Architecture of the system

7|Page
Here there is a feature where a case of dengue can be reported by the patients. The location of the
user which is based in terms of GPS coordinates is updated on the database, Once the user reports
a case. Dengue map is generated using locations which are given on the Dengue tracker website.
Location of people infected with Dengue Fever in the island of Viti Levu, Fiji is followed as below.

Figure 2: Map showing

The above proposed system can be used to identify and control the spread of dengue with efficient
and cost-effective way. There seems to be some limitations under this application. For instance,
not everyone has a smart phone and some people may not smart phone literate. Also, application
requires the user to have internet credit and to have the mobile data enable.

8|Page
2.3 Data Report

According to Sandra Durcevic an overview of data report is an evaluation tool. Further past present
and future business information can be assessed using this evaluation tool while keeping way of
the overall performance of the company. Various data are being combined with it and it can be
used to make decisions [2].

Data analysis is the science of examine row data while drawing the conclusions about that
information. Data, analyses, conclusions, and recommendations have been presented in data
report. It can be either month or annual report which cover a wide variety of objectives and topics.
Rules and practices are different with respect to the type of the data report. Roadmap technique
can be helpful for preparing data report more productively. Determining the audience is essential
before you will make the report.

Following figure represent a roadmap which is used to enter for building data report

Figure 3 : Data report in system

Make sure to keep your report with shunning visuals, possible objectives, sharply written content,
actionable report with simple language along with a complete story and try to use a professional
software to develop it. Remember that it should have a proper detail plan with relevant KPIs.

Following is an example for making business report.

9|Page
A company need to keep an eye on their monetary operations. Thus, the heart of any business is
called finance. Therefore, Financial KPI Dashboards reveal financial health of a company in
general.

Figure 4: Business report in system

Above figure represent some of Financial KPI Dashboards’ must be chosen carefully by the
retailers. With having lack of confusing retail KPI dashboard should be made.

Figure 5: Dashboards in system


Above figure represent some of Retail KPI Dashboards.

10 | P a g e
2.4 Image Processing

Lamiaa A. Elrefaei introduced a system to obtain efficiently and accurately reading of the
electricity digital meter based on image processing. To acquire the image of the electricity meter,
the black camera of the mobile phone is used in this system. Also disadvantages of method of
manual electric meter reading were being stimulated to build automated system. since man power
and time consumption rate is higher in manual process. Therefore, sequence of image processing
functions was being applied to automatically extract and recognize the digits of the meter reading
images from electricity meters in Saudi Arabia [3].

Figure 6: Electricity digit meter

There are three main stages that image goes through: preprocessing which cropping numeric
reading area at the end, individual digit segmentation which scan and cropped numeric area
vertically and horizontally and produced 6 isolate digits, and finally recognizing digits by
comparing each segmented digit with the digit’s templates.

Four main steps are contained in preprocessing stage as convert RGB image to grayscale, image
binarization, noise reduction and crop reading area. Below figure reveals the results of
preprocessing

11 | P a g e
Figure 7: Results of preprocessing

Vertical scanning and horizontal scanning were being done in digit segmentation to produced 6
isolate digits. Below figures reveal the results of individual digit segmentation.

Figure 8: Individual digit segmentation in system

Digits recognition stage consists of two steps, feature extraction and template matching. This
technique is based on number of white pixels.

In Saudi Arabia, this proposed system has been tested on 21 images of electric meters captured by
camera. The results show, 96.49% accuracy rate of recognition and 85.71% accuracy rate of
electric meter readings. Mobile application could be developed by using proposed system.
Disadvantage of this system was can only read Arabic digit electric meters.

12 | P a g e
2.5 Research gap
The gap between the existing applications and the proposed application are the existing
applications are working according to different various, they’re not friendly with environment.
Proposed application is very environment friendly because application runs in environment things
based on photos, videos. And the existing applications not generate a report but proposed one
generate a static report to health department for help their working schedule doing correct and
neatly. The google location used to identify the exact location about users post.

Table 1:Product perspective

13 | P a g e
3. Methodology
The methodology subtopic contains all the information’s about the methodology what this research
has used to develop the mobile application. There are five phases of methodology are planning,
analyzing, designing, implementation and testing are described in this further section. The “Health
Stats” Agile method will be used to develop this application. The reason is when the application
developing it is risky and has some complex scope.

3.1 Planning
First of all I divided this planning in to four main sprints and through the first sprint I prepared a
Gantt chart to be success in this application and also gathered the data, about which method should
be used for this application, the language that should be used and also the way to develop. And
later on, in the second sprint I planned the things that a user could do within this application such
as uploading images, and giving the locations etc. In the third sprint, I planed the way to create a
report through linking with the health department and the way to create the report usefully for this
health department. Finally, in the fourth sprint I planned the way to develop this application
without any errors and make it a useful one and to be success in this project.

• Identifying business value

The main business value of this application is that, though we upload and share lots of videos and
images in Facebook, all the people cannot be found in Facebook and this application can directly
intermediate for the health issues of the people and take the necessary remedies for those problems.
Not only that, the eco-friendly people and environmentalists can take the necessary steps against
the people who pollute the environment.

• Feasibility Analysis

Once the project has identified the important functions, feasibility analysis was done to gather the
opportunities, threat and limits associated with the project. The following feasibility analysis was
done to ensure whether the project was technically, economically and organizationally feasible or
not. Each of these feasibility analysis sections is discussed below.

14 | P a g e
Technical feasibility
In technically feasibility, it cleared out that the project size is no more complex for complete within
the time range and the familiarity with the application and the technology is excellent with the
project with me to carried out the project. The benefits and cost associated with the system were
identified as the economic feasibility and the estimate of the hardware, software and other
technological conditions wanted to develop the system.

Software:

• Operating system, windows 10 (64 bits) or above version


• Android studio version 3.2.1
• Java development kit (JDK)
• Adobe Photoshop CS6
• Firebase
• Visual studio code 2015
• Microsoft office 2016

Hardware:

• Android device
• Intel core i7 processor
• 8GB or above RAM
• Keyboard and mouse
• Router

15 | P a g e
Economic feasibility

The result of a financial evaluation is calculated together with other parties to make the decision on project
investments, as the good investment estimate helps ensure that the reliable project is carried out in a way that
gives it the best chance of achieving project objectives.

Organizational feasibility

Risk management is the one of most important areas of work. I have measured the risks I face
during this project.

The biggest risks were the time and data gathering. And the statistical report made some small
risks to this application. Unexpected expansion of the project and modification of documents to
final demand before completion. And next risk was the budget how I estimate, unexpected budget
was increase and broadening the scope of the project under budget risk. Due to insufficient
resources, operational risks, lack of communication with friends and failure to identify the assigned
task. Another major risk was the technical risk. And these were the ones that made the project too
complex to complete, a lack of up-to-date technology that did not have enough support, either in
the technical areas, or in the performance and failure of the devices used for project.

Ultimately, there was also the risk of a program, that is, I was prioritizing many system or strategy
changes. These are the risks I was face during the process of a particular project. A work plan was
developed to discuss the project implementation, monitoring and closure procedures, include
future measures. Standards and documentation were used to coordinate project activities.

16 | P a g e
3.2 Requirement gathering and Analysis
Collecting requirements and analysis requirements for a project is the most important part of the
SDLC for project managers and internal project stakeholders. The analysis stage was focused on
collecting requirements for such a system and analyzing the problems and advantages of these
systems, which lead to the development of a common system. First, a circular system was
analyzed, and strengths and problem were identified. A research is overseen the development of
an Android and Apple based mobile application that would provide solutions for insurance clients.

Requirement Gathering
According to the identified requirements the gathering of information had to be carried out.
Gathered data sources are interviews, questioner and refers literature review.

• Interviews

Project team had interviewed the members in Health Department in Colombo to get knowledge
about the environment pollution, types of diseases and discuss how the data that can be
implemented to develop the application.

• Questionnaires

Questionnaire was prepared and distributed as a Google form to WhatsApp groups, Facebook and
other social Medias. The questionnaire is given in appendix A and the results can be seen in
appendix B. This questionnaire was issued to the users and employees in Health department to get
details and ideas how to develop the application. Based on the gathered data via the Google form
and the automated analysis through graphs and tables reveals the general opinion about the
knowingness on proper disposal of garbage and the side effects of unwanted garbage gatherings
without cleanups. The general users were in the stage of identifying the side effects and the
diseases that generated through the nonconventional garbage disposal and they had the general
opinion on whether the garbage is collected in a timely or untimely manner by the government.
Also, by a raw glance of the gathered data we can determine that Most of the people who gave
opinions have a certain amount of knowledge over how the environmental pollution can happen
even by a small thing such as collecting garbage in a certain place for a long time. Also, most of
the people who answered the questionnaire are determined (53.8% to be exact) that the using of a
mobile application can encourage the people to be awake on the mentioned matter and help with
their abilities to do their part on saving the environment and the eco systems in it. So that finalizes
the idea that the application to include interfaces concerned with uploading content (images) and
starting a conversation the mentioned matter. So, it concludes that a location selection service to
be integrated within the application so that the community can convince the responsible parties,
such as government / Municipal council / garbage collecting department to take action the matter

17 | P a g e
• literature review

The main target of the literature review is to inform the reader what knowledge and idea have been
established on a topic and what their weaknesses and strengths are. And also compare the early
research finding the ideas of the project research and how to enhance the research ideas using new
technologies. Mainly refers journals in IEEE, Google scholar and some digital libraries.

The areas of the literature review are,

• Study about Google Location concept.


• Study about the methodologies and technologies.
• Study about Android applications and Apple applications.
• Advantages, disadvantages and limitations of those methodologies and technologies.
• Study about the Garbage Recycling concept.

3.3 Design

The design phase shows how each part of the research would work in terms of user interface,
database, software, algorithms and logic. The research has designed the following sub-phase to
develop the application into a fully developed.

• Design the UML diagram


• Design the interfaces
• Login page
• Register page
• Home page
• Notification page
• User profile page
• Chat box page
• Static report page
• Google navigation page

• Design database
• Use for Firebase

• Design the algorithm and logics


• Suitable GPS system
• Calculate data to Static report

18 | P a g e
Architecture Design

The user has to face many difficulties if they have to face these problems in offline method. If
means, the users have to wait a long time until they get solution from the Health department. As a
solution for this problem when the users get some problem, they should be sent photos or videos
of the issue happened and sent it to the system with their location. Through this suggest application,
then can find out exact location of the users very easily using GPS tracking. Another benefit of
this above application is when the user uploads their details to this application, the most suitable
solution will be suggesting or provided by the Health department immediately without wasting
their valuable time.

Figure 9: Designed Architecture

19 | P a g e
Class Diagram

The following diagram describe the major classes and the relationships among the classes in the
development project.

Figure 11:Class diagram

Figure 10: Class Diagram

20 | P a g e
Interface Design

• Login Interface

Figure 11: Login interface

This is the first interface user seen after the download Health Stats application. Then user
must include his or her National ID card num to recognize to the system for real data about the
user. And user can make a password as they wish. If it is a new user they must click to Register
for a new account.

21 | P a g e
• Register Interface

Figure 12: Register interface

This interface allows new users to register for the application by creating their own account. It
requires valid details about NIC, Username, Email, Contact number and a unique password.

22 | P a g e
News Feed Page

Figure 13: News feed page

After login to the user account then news feed menu in the home page will appear for selection to
get an idea about application for users.

23 | P a g e
• Post Upload and Delete Interface

Figure 14: Update interface

User selecting the Image or Video in their phone gallery he or she can Post that Post to this interface
using the Current Location of that post. And if it is a wrong post user can Remove and post another
one again. This interface will allow user to say something about that post in the bar of Description.

24 | P a g e
• Google Location Map Interface

Figure 15: Google location map interface

This interface shows the exact location what users include their post locations. And Health
Department or any other volentiers can make a decission for that.

25 | P a g e
• User profile edit Interface

Figure 16: User profile edit Interface


Figure 16: User profile edit interface

In this interface user can edit their profile how he or she like. Admin not suggest any things for
users in this interface.

26 | P a g e
• Navigate Bar Interface

Figure 17: Navigate Bar Interface


Figure 17: Navigate bar interface

This interface requires these options to users for edit their profile or any other application supports.

27 | P a g e
• User Sign Out Interface

Figure 18: User sign out interface

User can sign out any time if they want, but if they are sing in again the application load the same
user account for users.

28 | P a g e
• Notification Interface

Figure 19: Notification interface

Every user in this can get notifications what other users are uploads and what there are doing in
this application. Health department can send notification to all the users using this interface

29 | P a g e
• Static Report Interface

Figure 20: Static report interface

This interface shows every month end static report for users and health department to get good
idea for how the things going on and what are the peek areas in Sri Lanka.

30 | P a g e
Algorithm Design

• Flow Chart

Figure 21: Flow chart

Above flow chart will give the idea of how application working in order. It starts with the
registration details of the user. The user enters the registration details, next step is login part. All
the registration and login steps are over and details are validated, then user can access to the main
window in this application. If user details are not correct then the application show an error
message Please Enter Valid Details. The user done what if he or she wants to do and they can log
out from the application.

31 | P a g e
3.4 Implementation

The implementation step is to build and implement the effective output after an error test. The
Android and IOS mobile application based on “Health Stats” focused some main components, they
are,

This project has developed the following major components.

1. How to data gather and make a report of stats.

2. How to send a red alert to the Health Department using this system.

3. Get exact live location using GPS tracking.

In order to develop the components using React Native mobile developing language for access this
application to both Android and IOS. To develop this application using Visual Studio Code for
main developing id. And mainly Using Gmail website to send the notification to Health
Department. Google Location API using to get the live location of the users posts to tracking and
using Firebase to access some websites to improve the quality of this application. The Mongo DB
using to create the databases.

Following diagram show all the Components in this application and how they are connected with
other components.

Figure 22: Component Diagram

32 | P a g e
In this diagram shows the physical deployed architecture in this application.

Figure 23: Deployment Diagram

3.5 Testing
Under this testing phase, the research conducted the test plan by using the white box, black box
and integration testing methods. The test method is performed before the application is released to
certify that the developed software complies with the specifications and standard quality
requirements. During the testing phase the project organized to present the tests on the health
application as a whole and also component by component.

33 | P a g e
• Unit testing

The research use unit testing method to test every part in the system separately. Each part is tested
separately to check whether every functionality is working correct or not. This is the main testing
key word to test this system because every units are attached with each other. And they are the
main units in this system.

1. To test the image proccing.

2. To test the static repot.

3. To test the GPS tracking.

4. To test the verification of data.

• Integration testing

If the unit test completely done, then all the components integrate together to test integration
testing. And test all the functions again. This testing method test all the functionalities in Health
Stats are working properly or not. If the all data using in this system must communicate with each
other correctly because if only a one data is missing so the integrated part is not work in properly.
The application connects with the Servers to get some data.

• System testing

After the completion of the system, can find out how the final system works correctly without
errors and bugs. And the testing’s system testing is the final one because after this stage past
correctly system can spread to users without any doubt.

34 | P a g e
Performance:

1. Amount of processes the system performs and the number of facts it collects.
2. Response time of the system.
3. Development of the system.

Usability:

1. Better communication with users.


2. User-friendly interfaces and process.
3. Wait notifications.
4. Best performance.

Security

1. Password handling.
2. User and expert clearance.
3. Security in user accounts

Documentation

1. Precision
2. Simplicity
3. Review

35 | P a g e
4. Results and Finding

This session to discuss the results and their discussions that the research got from the research
project. The test subtitles contain screenshots of the results in the mobile health application
and parts of the code and main algorithms to perform the way the results are obtained. During
the discussion, the approaches used by the project and the identified solutions that deviate from
the original plans.

4.1 Evidence
This subsection shows screenshots of the Health Stats mobile based health application, the
code and the algorithms related to the complete functions are performed.

4.1.1 Upload Post


The figure above shows first step in this application how the user uploads a post using this
application. If user done that steps, he she can go through the next interface to upload their posts.

Figure 24: User Login Figure 25: User Register


Interface Interface
Figure 24:User register
36 | P a g e
interface
Figure 25:User login
interface
Figure 26: Upload post
interface

In this interface, users can upload their photos and videos to see other users using this application.
Users must include two type things; they are location of the post and the description. After
complete these things they can upload their posts.

37 | P a g e
Table 2: Upload Post System
Test Case: Upload Posts.
Pre-Condition: user should be registered to the system.

TC Sequence Test description Input Value Expected Result

2 2.1 When description is User must type a Field up to


empty description to description bar.
every post they
are posting
2.2 When not set the Set the exact Blink a message set
location location of the the location.
post

38 | P a g e
4.1.2 Static Report
These are the main interfaces in this application. Users can surf anything in home page and they
can share others posts and they can comment or mention other users.

And the next interface it generates every month data report like statistical report for users and
Health department to see how is this application helpful for their duties. And any volunteers can
get action to help peoples.

Figure 27: Home page interface Figure 28: Static report interface

39 | P a g e
Table 3: Generate Static Report
Test Case: Generate static report
Pre-Condition: User should go main menu in system.

TC Sequence Test description Input Value Expected Result

03 3.1 User not click Add to Field is full.


notifications generate
3.2 User not click static Calculate Next report time calculate.
report icon data and
generate
report

40 | P a g e
4.1.3 Tracking Location

These interfaces show the users exact location in their posts using GPS tracking system to
help Health Department to doing their role correct and efficiency.

41 | P a g e
Table 4: Tracking Location Using GPS Tracking
Test Case: Tracking post location
Pre-Condition: The Client need to insert the location

TC Sequenc Test description Input Value Expected Result


e
04 4.1 When field is Add location Going to google map
empty please interface

4.2 Search field is Search areas Show the search areas in


empty in map map with red dot.

42 | P a g e
4.1.4 Code Fragment

4.1.4.1 Upload Post

post.save().then(() => {
resolve({ status: 200, message: `${data.title} Posted `, photos: data.photos });
}).catch((e) => {
console.log('post: create: ', e);
reject({ status: 500, message: "Error creating post" });
});
});
};
this.updatePost = (request) => {

return new Promise(async (resolve, reject) => {

PostModel.findOne({ postId: request.postId })


.then((data) => {
const tkn = jwt.decode(request.token, config.JWT_secret);
if (request.type === 'like') {
let updated = false;
if (data.likes === undefined) {

data.likes = [{ userId: tkn.nic }];


console.log('boost 1', data.likes);
updated = true;
} else {
const temp = data.likes;
const index = data.likes.findIndex((val) => val.userId === tkn.nic);
console.log('boost 2', index);
if (index === -1) {
data.likes.push({ userId: tkn.nic })

} else {
data.likes.splice(index, 1);
}
// data.likes = temp;
updated = true;

Figure 29: Upload post code

43 | P a g e
4.1.4.2 Report Analysis

function ByCategory(data) {
return new Promise((resolve, reject) => {
let dengue = 0;
let garbage = 0;
let other = 0;
let sever1 = 0;
let sever2 = 0;
let sever3 = 0;
let sever4 = 0;
let sever5 = 0;
for (let i = 0; i < data.length; i++) {
if (data[i].category == "dengue") {
dengue += 1;

}
if (data[i].category == "other") {
other += 1;
}
if (data[i].category == "garbage") {
garbage += 1;
}
if (data[i].severity == 1) {
sever1 += 1;
}
if (data[i].severity == 2) {
sever2 += 1;
}
if (data[i].severity == 3) {
sever3 += 1;
}
if (data[i].severity == 4) {
sever4 += 1;
}
if (data[i].severity == 5) {
sever5 += 1;
}
}

44 | P a g e
resolve({ dengue, garbage, other, sever1, sever2, sever3, sever4, sever5 })
});
}
function ForCharts(data) {
return new Promise((resolve, reject) => {

resolve({ dengue, garbage, other, sever1, sever2, sever3, sever4, sever5 })


});
}

Figure 30: Report Analysis code

4.2 Discussion

The problems got while implementing the mobile application and how the research have led to
solve those problems are discussed under this subsection along with the components and
specifications deviated from the project as showed in the proposal and the reasons for those
deviations.

During this project I had to face some problems while implementing the Health Stats
mobile based environment pollution application. The laptop got slow while developing the project
using Android Studio. And then I inserted an external RAM. The incorrect estimation of time while
developing the application caused an increase of stress level. Sometimes the project was not going
in right path because some requirements were changing. Lack of up-to-date technology caused too
complexity to implement the application. Gathering reliable details was also a huge problem that
I have to face during this project

45 | P a g e
5. Conclusion
This session describes a brief summarization on all the topics discussed whole mobile application.
This session contains Importance of output, limitations of project, Recommendation and Future
works. Firstly, the major of this project with the concurrent situations is discussed. Then the
limitation factors are discussed in summary, followed by recommendations that can be made
further to improve the outcome of the system is discussed.

5.1 Importance of outcomes

The main purpose of this research was to enhance the user’s friendly application, to overcome their
problems and challenges of health problems. Users can manage time more efficiency through this
application. There are many health applications in play store but this mobile application has
designed with special feature the user can identify it using the special logo in our application.
Health state is an efficient application to determine the health problems in an environment around
the users as they do not want to arrival to the government or health organization all the time. This
application automatically calculates all the problems of the users using its technology. The user
only has to download this application and should upload the photos and videos the area in to this
application with its location. Other major function is suggesting a suitable solution with the
connection of health department. This application gives many advantages for users. They are

• It saves the valuable time of the users as they do not want to visit anywhere to inform their
issues.

• Reduce the time consumed for waiting for a solution agent, to arrive using GPS technology.

• Gives the best solution, using the health department.

46 | P a g e
5.2 How Objectives Were Met

During my project I was able to achieve all the objectives that I was expecting to
fulfill in preparing this application. First, I was in need of identifying the common epidemic
diseases in Sri Lanka and what can be track via an ICT application and I was able to achieve this
objective through a google form which I sent via WhatsApp and Facebook to be completed by few
groups of people.

Secondly to develop an android based mobile application to provide


guidelines on hygienic factors, I got some examples from the other applications and apply it for
both Android and IOS.

Next to develop the real time data tracking application in order to track and send
notifications to authorized organizations about epidemic diseases, I Used the google maps and I
was able to be success in my third objective too.

Finally, to develop a social network for general public to share ideas, I achieve it through
allowing to add comments and likes in a user-friendly manner. All in all, I was able to achieve my
objectives through the help of the modern technological tack ticks and could be success in creating
my application.

47 | P a g e
5.3 Limitations
During the development of the project, follow limitation constraints are figured out.

• The mobile application does not support any platform other than Android and IOS.
• Users not respond the questions and fill some fields correctly.
• The application not work without internet connection.
• Lack of the knowing some users use the mobile application.
• Sampling problems.
• Server should work properly to get good result in application.

5.4 Recommendations
• User should have Android or Apple mobile phone.
• User should have fast internet connection.
• User should have minimum of 16GB storage and minimum of 2GB RAM.

5.5 Future Work

This application mainly considers environment pollution and good health activities for users. This
application provides import functionality for users, but this system may add new functionality and
with some limitation, the application of this system is open to future research.

• Develop the image processing segment for provide clear image from report of statistics.

• Mobile application development to support other platforms.

• Develop the application using Sinhala language to support users.

48 | P a g e
REFERENCES

[1] J. OLSON, "Pocket Book of Ophthalmology.", British Journal of Ophthalmology,


vol. 83, no. 2, pp. 252c-252c, 1999. Available: 10.1136/bjo.83.2.252c.
[2] M. Das, "Static analysis of large programs (invited talk) (abstract only)", ACM
SIGPLAN Notices, vol. 34, no. 11, p. 1, 1999. Available: 10.1145/328691.328692.
[3] D. Nicholas, D. Clark and E. Herman, "ResearchGate: Reputation
uncovered", Learned Publishing, vol. 29, no. 3, pp. 173-182, 2016. Available:
10.1002/leap.1035.
[4] M. Mendiola, M. Kalnicki and S. Lindenauer, "Valuable Features in Mobile
Health Apps for Patients and Consumers: Content Analysis of Apps and User
Ratings", JMIR mHealth and uHealth, vol. 3, no. 2, p. e40, 2015. Available:
10.2196/mhealth.4283.
[5]"How To Write Data Reports For Your Business - See Examples", BI Blog | Data
Visualization & Analytics Blog | datapine, 2020. [Online]. Available:
https://www.datapine.com/blog/data-report-examples/. [Accessed: 03- Jul- 2020].
[6]"(PDF) The Use of Statistics in Health Sciences: Situation Analysis and
Perspective", ResearchGate, 2020. [Online]. Available:
https://www.researchgate.net/publication/289585992_The_Use_of_Statistics_in_
Health_Sciences_Situation_Analysis_and_Perspective. [Accessed: 03- Jul- 2020].
[7]"Vital and health statistics. Series 2, Data evaluation and methods
research", Scimagojr.com, 2020. [Online]. Available:
https://www.scimagojr.com/journalsearch.php?q=73008&tip=sid. [Accessed: 03-
Jul- 2020].

49 | P a g e
Appendix A
Questionnaires

50 | P a g e
51 | P a g e
Appendix B
Result of Questionnaire

52 | P a g e
53 | P a g e
54 | P a g e
55 | P a g e
56 | P a g e

You might also like