Professional Documents
Culture Documents
Screenshot 2024-06-18 at 18.31.19
Screenshot 2024-06-18 at 18.31.19
Screenshot 2024-06-18 at 18.31.19
PREDICTION SYSTEM
BY
ILOCHI EMMANUEL
U20/NAS/CSC/…
JULY, 2024
ABSTRACT
The world is moving at a very high speed with innovation and development in the field of
information technology and with the sudden hike in the domain of artificial intelligence the
procedures for performing predictive analysis has moved to another great level revolutionizing
the whole medical and clinical ecosystem. However, the automation of the analytical process is
now made possible with the development of predictive systems using different artificial
intelligence and machine learning tools. In this work of research, the researcher suggest a unique
portable water prediction system that determines if water is portable (safe for human
consumption) or not. This work of research proposes very good portable water prediction system
that functions to determine whether a given water sample is portable (that is if it is safe for
human consumption) or not. This research work however was conducted in other to determine
and identify the machine learning algorithm that gives the highest level of accuracy. The model
was tested across various algorithms including Random forest algorithm which gave an accuracy
of 0.692, Logistic Regression algorithm which produced an accuracy of 0.507, Support Vector
Machine (SVM) which produced an accuracy level of 0.655, Decision Tree algorithm which
produced an accuracy of 0.606 and lastly the K-Nearest Neighbors which in turn produced and
accuracy level of 0.639. Moreover, at the end of the research it was noticed that the Random
Forest algorithm produced the best accuracy level.
ii
CHAPTER ONE
INTRODUCTION
1. To implement a very simple and easy to use user interface that would be accessible by
everyone to aid easy accessibility.
2. To train a binary classifier model that would be able to predict the portability of water
using the random forest machine learning algorithm.
3. To source training datasets (past climate data) from professional online and publicly
verifiable data repositories.
4. To use the sourced datasets to incorporate a data-driven portability prediction in order to
avail individuals the opportunity to access firsthand information.
This research work mainly centers on the design and implementation of a drinkable water
prediction system with special attention on addressing the challenges faced by individuals in
making informed decisions on whether a volume of water that is being considered is portable and
safe for drinking or not. The scope of this research work is limitless as it is applicable to every
aspect of human life where it is used to determine the portability of water both for human beings
and for other living organisms and animals.
CHAPTER TWO
LITERATURE REVIEW
• Hybrid models:
This category of portable water prediction systems refer to approaches that are integrated
and combine multiple prediction methodologies or techniques to enhance the accuracy
and reliability of water quality forecasts. This type of models take advantage of the
strengths of different prediction strategies, often merging rule-based systems with
machine learning algorithms in other to provide a comprehensive and adaptive solution
for predicting water quality. Some examples of these applications that fall under this
category include Rule-Based and Machine learning Hybrid, Integration of Statistical
Models with Machine Learning, Ensemble Models, Rule-Based and IoT-Integrated
Hybrid, etc.
CHAPTER THREE
SYSTEM ANALYSIS AND DESIGN
3.1 PREAMBLE
This chapter of this research work stands to span across the domain of the whole design
and analysis process of the system that is being proposed by this research work. This chapter
hopes on doing this by delving deeply into the methodology (Object Oriented Analysis and
Design) and also the particular approach through with the adopted methodology was applied.
3.2 SYSTEM ANALYSIS
The process of system analysis spans across all the processes that are involved in the
dissection of the system that is proposed by this study and also examining its different individual
components of their interactions with one another. This section of this research work however
strands to address the comprehensive process of system analysis of the proposed system and it
stretches across the evaluation of some of the existing systems, the identification of the
limitations that are existing within those systems and their enhancement strategies. Moreover, the
detailed analysis of the proposed system spans across a full modelling activities that makes use
of activity diagrams, the class diagrams and the use case diagrams.
Figure 3.2 Activity diagram for the system. Figure 3.3 Activity diagram for the
model.
The diagram above class diagram is the class diagram of the proposed system which
stands to display the activity that takes place in the proposed system using pictorial data
representation. From the diagram, it could be depicted that the activity that would be taking place
in the proposed system ranges from the patient visiting the system him/her
3.2.4.4 CLASS DIAGRAM OF THE PROPOSED SYSTEM
Class diagrams is one of the useful tool in the domain of the Unified Modelling language
(UML) diagrams that stands to describe the whole operational structure of a software system by
mapping out all the classes, attributes, methods and the relationships between the objects that
work together collaboratively to make the system function perfectly. Below is the illustration of
the class diagram for the proposed system.
The diagram above is used in this research work to represent the class diagram of the
proposed system, which is used in this context, physically depict the series of activities that is
going on in the proposed system. The diagram depicts the series of class exists between the
system to help it function properly.
Admin
4.2.2 Backend
4.2.2.1 Python
Python is a programing language that is very powerful and versatile. It is a high-level
programming language that is known for its ease of readability and its overall simplicity.
Because of this reason, it has become the most popular choice of programming language for both
the beginners and experienced developers. Because it supports many different paradigms and
also supports a large ecosystem of third-party packages that allows for a rapid development
across various domains such as web development, data analysis, artificial intelligence and
automation. It also offers dynamic typing to improve productivity and also allow for integration
with other language, tools and frameworks like Django and Flask to enable and ensure a more
efficient modern software development process.
4.2.2.2 Flask
The Flask framework is a simple lightweight framework for python that is flexible and is
used for the web. It is specially designed to be used for building web applications quickly with a
minimum overhead. It follows the WSGI (Web Server Gateway Interface) standard. It is based
on Werkzeug and Jinja2 in other to ensure a robust performance and efficient templating. Flask
has a micro framework nature that makes it suitable for web development purposes and also
offering developers the opportunity to be able to integrate more components that they need. It
gives a straightforward and intuitive API facility to allow for rapid development and prototyping
and also to make it ideal for small to medium-sized applications and RESTful APIs. The Flask
framework was also among the tools that was used in creating the backend of the proposed
system.
CHAPTER FIVE
SUMMARY, RECOMMENDATIONS AND CONCLUSION
5.1 OVERVIEW
This chapter of this work of research is used by the researcher of this work to give a
detailed conclusive summary of this project, the recommendations for future works that may
exist within this domain of knowledge, and lastly a detailed conclusion of this research work.
This chapter however summarizes everything that have been discussed in all the preceding
chapters of this project.
5.2 SUMMARY
At the beginning of the research project the problem statement that is connected to this
research work and the study's backdrop were explicitly outline and discussed thereby setting a
clear ground for the reason why this project research was embarked upon. However, the
theoretical underpinnings of this research were covered in the latter chapters of this paper,
together with a very descriptive review of the relevant systems that have been developed in the
past by previous researchers and are currently in place.
This research work also provided a thorough examination of the current existing systems,
pointed out their shortcomings, and did its best to take advantage of these issues (gaps in
knowledge) when developing the system that was suggested in this research work. Additionally,
a comprehensive system analysis was also conducted using some UML diagrams in the third
chapter (chapter 3) of this study; the system was explicitly analyzed utilizing use case diagrams,
activity diagrams, class diagrams, and class diagrams of the UML diagrams. Lastly, on the note
of the systems interface, a full description of the user interface and a list of all the programming
languages and frameworks utilized to carry out this project were also provided and analyzed in
detail.
5.3 RECOMMENDATIONS
This water analysis system is highly recommended to everyone who is located anywhere in
world and who is concerned with determining if water is drinkable or not (whether it is safe for
drinking or not). It is a revolutionize way of determining the portability of water easily when the
parameters of the water sample have been gotten through different processes and an individual is
left to decide if the water sample is safe for drinking or not.
5.4 CONCLUSION
Finally, at this juncture we have come to the end of this research as this particular section
of this research work stands to conclude the objectives that were defined at the beginning of this
research work. Nevertheless, this is not the conclusion (end) of the proposed system as this
research has not come to a halt with this conclusion but would continue to grow and add a lot of
new features and updates like the ability for users to be able to download the prediction results
and a whole lot of other cool features. However, for the purpose of this study which has a
limited scope, the system which has been proposed all through the process of this study, would
be made available to run locally on the laptop of the users and possibly be hosted online to be
made accessible to all the users worldwide.
REFERENCES
Kaddoura, S. (2022). Evaluation of Machine Learning Algorithm on Drinking Water Quality for
Better Sustainability. Sustainability, 14(18), 11478.
Gleick, P. H. (2014). The world's water 2014: The state of resource use and demand. Island
Press.
World Health Organization. (2019). The world health report 2019: Health a global priority.
World Health Organization.
Dalal, S., Onyema, E. M., Romero, C. A. T., Ndufeiya-Kumasi, L. C., Maryann, D. C.,
Nnedimkpa, A. J., & Bhatia, T. K. (2022). Machine learning-based forecasting of potability of
drinking water through adaptive boosting model. Open Chemistry, 20(1), 816-828.
Hallaq, D. O., El-Khaldi, K., & Hammouri, H. A. (2019). An artificial neural network approach
for predicting the performance of wastewater treatment plants. Journal of Environmental
Management, 231, 506-514.
Zulkifli, C. Z., Garfan, S., Talal, M., Alamoodi, A. H., Alamleh, A., Ahmaro, I. Y. Y., Sulaiman, S.,
Ibrahim, A. B., Zaidan, B. B., Ismail, A. R., Albahri, O. S., Albahri, A. S., Soon, C. F., Harun, N.
H., & Chiang, H. H. (2022). IoT-Based Water Monitoring Systems: A Systematic Review. Water,
14(22), 3621.
Chen, X., Li, Y., & Li, Y. (2020). Artificial intelligence for surface water quality monitoring and
assessment: a systematic literature analysis. Environmental Science and Pollution Research,
27(4), 3616-3633.
Antanasijevic, D., Jovanovic, M., & Stojanovic, Z. (2020). Machine learning for water quality
prediction: a review. Journal of Hydroinformatics, 22(3), 631-647.
Gharibi, H., Kisi, O., & Şahin, M. (2012). Application of artificial neural networks for prediction
of dissolved oxygen in rivers. Journal of Hydrology, 414, 255-265.
Zulkifli, C. Z., Garfan, S., Talal, M., Alamoodi, A. H., Alamleh, A., Ahmaro, I. Y. Y., Sulaiman, S.,
Ibrahim, A. B., Zaidan, B. B., Ismail, A. R., Albahri, O. S., Albahri, A. S., Soon, C. F., Harun, N.
H., & Chiang, H. H. (2022). IoT-Based Water Monitoring Systems: A Systematic Review. Water,
14(22), 3621.
Khot, I. M., & Surve, A. R. (2020). IoT Assisted Drinkable Water Quality Analysis System using
Machine Learning Techniques. International Journal for Research in Applied Science and
Engineering Technology, 8, 228-236.
Vijay, S., & Kamaraj, K. (2021). Prediction of water quality index in drinking water distribution
system using activation functions based Ann. Water Resources Management, 35(2), 535-553.
Hmoud Al-Adhaileh, M., & Waselallah Alsaade, F. (2021). Modelling and prediction of water
quality by using artificial intelligence. Sustainability, 13(8), 4259.
Kadam, A. K., Wagh, V. M., Muley, A. A., Umrikar, B. N., & Sankhua, R. N. (2019). Prediction of
water quality index using artificial neural network and multiple linear regression modelling
approach in Shivganga River basin, India. Modeling Earth Systems and Environment, 5, 951-
962.
Sakizadeh, M. (2016). Artificial intelligence for the prediction of water quality index in
groundwater systems. Modeling Earth Systems and Environment, 2, 1-9.
Nair, J. P., & Vijaya, M. S. (2022, August). River water quality prediction and index
classification using machine learning. In Journal of Physics: Conference Series (Vol. 2325, No.
1, p. 012011). IOP Publishing.
Haghiabi, A. H., Nasrolahi, A. H., & Parsaie, A. (2018). Water quality prediction using machine
learning methods. Water Quality Research Journal, 53(1), 3-13.
Derdour, A., Jodar-Abellan, A., Pardo, M. Á., Ghoneim, S. S., & Hussein, E. E. (2022).
Designing Efficient and Sustainable Predictions of Water Quality Indexes at the Regional Scale
Using Machine Learning Algorithms. Water, 14(18), 2801.
Alnaqeb, R., Alrashdi, F., Alketbi, K., & Ismail, H. (2022, December). Machine Learning-based
Water Potability Prediction. In 2022 IEEE/ACS 19th International Conference on Computer
Systems and Applications (AICCSA) (pp. 1-6). IEEE.
22
APPENDIXES
22