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 HIV prediction using Machine Learning #334

Merged
merged 3 commits into from
Aug 8, 2024
Merged

Conversation

RajKhanke
Copy link
Contributor

@RajKhanke RajKhanke commented Jul 28, 2024

Resolves #320

This project aims to develop a web application for predicting HIV disease status using a machine learning model. The application leverages the powerful XGBoost algorithm, which has been pre-trained to analyze a variety of health-related and behavioral inputs to determine the likelihood of an individual being HIV positive. The inputs include factors such as age, marital status, history of sexually transmitted diseases (STDs), educational background, HIV testing history, AIDS education, places of seeking sex partners, sexual orientation, drug-taking habits, and awareness before marriage.

The application is built using Streamlit, a popular framework for creating interactive web applications in Python. The user interface is designed to be both functional and visually appealing, featuring stylish fonts, custom CSS for enhanced aesthetics, and relevant images to provide an engaging experience. Users can input their data through sliders and select boxes, ensuring an intuitive and user-friendly interaction.

One of the standout features of the application is the dynamic and responsive design. The app includes a background image related to HIV/AIDS awareness, adding context and visual depth. Additionally, a moving HIV ribbon image is positioned in the corner, symbolizing the cause and drawing attention to the importance of awareness and education. The input and output sections are enclosed in stylish containers with shadows and rounded borders, enhancing readability and focus.

The model's prediction process involves label encoding categorical variables to convert them into numerical format suitable for the model. Upon clicking the 'Predict' button, the app processes the input data, applies the XGBoost model, and displays the prediction result. If the model predicts a positive HIV status, a highlighted error message is shown; otherwise, a success message indicates a negative result.

This project not only demonstrates the practical application of machine learning in healthcare but also highlights the importance of accessible tools for early detection and awareness. By providing a seamless and informative user experience, the application aims to contribute to the ongoing efforts in HIV prevention and education. The integration of relevant imagery and user-friendly design principles ensures that the tool is not only functional but also engaging and supportive of the overall mission to combat HIV/AIDS.

Algorithms used :
XGBOOST , Random Forest , Logistic Regression , Gradient Boosting Machine

(also performed entire data analysis ,EDA ,feature engineering , model comparison and evaluation)

deployed with the help of Streamlit application as follows :

webapp.mp4

@RajKhanke
Copy link
Contributor Author

RajKhanke commented Jul 28, 2024

@Atharv714 @Avdhesh-Varshney @TAHIR0110 please merge this pr along with the level and label of gssoc'24. it will resolve the issue no #320

@RajKhanke
Copy link
Contributor Author

please also look towards my other pr of maternal health risk prediction

@RajKhanke
Copy link
Contributor Author

@Avdhesh-Varshney ?

@TAHIR0110 TAHIR0110 added level2 gssoc Associated with GSSOC labels Aug 8, 2024
@TAHIR0110 TAHIR0110 self-requested a review August 8, 2024 06:12
@TAHIR0110
Copy link
Owner

@RajKhanke merged!

@TAHIR0110 TAHIR0110 merged commit a74a17d into TAHIR0110:main Aug 8, 2024
1 check passed
Copy link

github-actions bot commented Aug 8, 2024

🎉 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! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gssoc Associated with GSSOC level2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

💡[Feature]: HIV disease prediction using Machine learning
2 participants