finalYearProject - Liver Disease Detection

TLDR
• Designed & Programmed a Full Stack web application using Flask with 6 web pages, integrating it with 13 machine learning & deep learning models trained on UCI ILPD dataset to accurately detect liver disease.
• Leveraged Drop-Off & Genetic Algorithm techniques identify optimal features & fine-tune model performance.
• Published research findings ( Reasearch Paper Link) derived from comparative analysis, contributing to the medical data analysis field.

What Inspired this?

Liver diseases are one of the major causes of death in the world. We, humans, have come a long way in the medical field and scientific advancements to treat diseases and it's evident that when these liver diseases are detected early, they can be treated easily. In order to be able to accurately predict if there’s a chance of the liver disease it is imperative to identify the features/symptoms which play a significant role in causing the LD. It is crucial to select the correct combination of significant features as it will improve the performance of the prediction models. We are proposing a system which will first identify the significant features and then use them to predict whether or not a person may suffer or is suffering from LD. Our system ought to be used as a supplementary tool in diagnosis. Data is essential and We will be using the dataset available on the UIC repository. We will be using genetic algorithms to identify the significant features and then use those features to train different classification models like k-Nearest Neighbors, k-means, Random Forest, Support Vector Machines, Naïve Bayes, Logistic Regression, etcetera which will predict if there’s a chance of LD for a person’s data. We will also be using neural networks with backpropagation to perform binary classification. Ideally our proposed solution should be able to identify the significant features and find the best model which will be able to predict with more accuracy or another statistical measure

This is how the Application looks like !

1. Sign Up Screen

Screenshot 2023-08-22 at 4 34 00 PM 2. Login Screen

login 3. Profile Page

profile 4. Predict Form

Screenshot 2023-08-22 at 4 34 09 PM 5. Landing Page<landing



Flow between Pages

flow

Architecture of Proposed System

architecture



State Diagram

State diagrams require that the system described is composed of a finite number of states sometimes, this is indeed the case, while at other times this is a reasonable abstraction. It’s a behavioral diagram and it represents the behavior using finite state transitions. state



Results

Results

The findings were published as a Reasearch Paper at 'Annals of the Romanian Society for Cell Biology' - https://www.annalsofrscb.ro/index.php/journal/article/view/2768/2300.

Note: I haven't tested the below steps in a while, so please take it with a grain of salt.

How to Install?

use this to install all the dependencies $ cd final_project $ pip install -r requirements.txt

for venv $ source final_project/final/bin/activate

create branches for use $ git branch <<branch_name>>

after u after installed the dependencies and activated the virtual environment, run the below cmds to run the web app $ export FLASK_APP=final_project $ export FLASK_DEBUG=0 $ flask run