Added Cataract disease Detection using Machine learning #337
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #174
This project involves developing a machine learning model to detect cataracts from eye images and deploying it using a Streamlit web application. The project begins with data preparation in a Colab notebook, where the cataract dataset, consisting of images categorized into 'Cataract' and 'Normal', is loaded and preprocessed. A Convolutional Neural Network (CNN) model is then built and trained for 10 epochs on this dataset. The model's performance is evaluated using accuracy, precision, recall, F1 score, a classification report, and a confusion matrix.
Once the model is trained and evaluated, it is saved in the H5 format for future use. The Streamlit application is developed to allow users to upload eye images and receive predictions on whether the image indicates cataract or not. The application displays prediction results using st.error for 'Cataract' and st.success for 'Normal', with proper alignment and CSS styling for a user-friendly interface. Additionally, the application provides comprehensive information about cataracts, including global prevalence, leading causes, remedies, and risks, fetched from reputable sources such as the WHO.
To enhance user experience, the application features embedded Google Maps links for users to locate nearby eye clinics and dieticians, initially focused on Pune, with an option to enter any city and redirect to Google Maps. The app also includes visual aids like pie charts to represent statistical data. Overall, this project combines image processing, machine learning, and web development to create a practical tool for cataract detection and information dissemination.
model : CNN
also done entire data analysis and data science steps.
deploy on streamlit application for proper user input - output .
webapp.mp4