Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Cataract disease Detection using Machine learning #337

Merged
merged 3 commits into from
Jul 30, 2024

Conversation

RajKhanke
Copy link
Contributor

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

@RajKhanke
Copy link
Contributor Author

@Avdhesh-Varshney @Atharv714 @TAHIR0110 please merge this pr along with level and label , it will resolve issue no 174. please also look towards my other PR's of maternal health risk , HIV , Dementia.

Copy link
Collaborator

@Avdhesh-Varshney Avdhesh-Varshney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Avdhesh-Varshney Avdhesh-Varshney merged commit c6d529b into TAHIR0110:main Jul 30, 2024
1 check passed
Copy link

🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀

@Avdhesh-Varshney Avdhesh-Varshney added level3 gssoc Associated with GSSOC approved prs are approved. labels Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved prs are approved. gssoc Associated with GSSOC level3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cataract Disease detection using Machine learning
2 participants