CoolFace
Apppublic

Niha1710/hiv-case-prediction

sourceHugging Facemitupdated 6mo agoView on Hugging Face
1likes
App README

๐Ÿ”ฌ HIV Occurrence Prediction

An AI-powered web application that predicts the risk of HIV occurrence based on patient demographic, clinical, and behavioral factors using Logistic Regression.


๐Ÿš€ Features

  • โ€”Clean, modern Streamlit UI
  • โ€”Logistic Regression model for risk prediction
  • โ€”Label Encoding for categorical variables
  • โ€”Probability-based risk output
  • โ€”Medical disclaimer included

๐Ÿ“‹ Input Features

FeatureType
AgeNumeric
GenderCategorical
Marital StatusCategorical
Education LevelCategorical
Employment StatusCategorical
Area of ResidenceCategorical
Number of Sexual PartnersNumeric
Condom UseCategorical
STI HistoryCategorical
Blood Transfusion HistoryCategorical
IV Drug UseCategorical
Previously Tested for HIVCategorical

๐Ÿง  Model

  • โ€”Algorithm: Logistic Regression
  • โ€”Preprocessing: Label Encoding
  • โ€”Output: Binary Classification (High Risk / Low Risk) + Probability

โš ๏ธ Disclaimer

This tool is for research and educational purposes only. It is not a substitute for professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider for HIV testing and counseling.


๐Ÿ› ๏ธ How to Run Locally

bash
pip install -r requirements.txt
streamlit run app.py

๐Ÿ“ Files

โ”œโ”€โ”€ app.py                  # Main Streamlit application
โ”œโ”€โ”€ model.pkl               # Trained Logistic Regression model
โ”œโ”€โ”€ label_encoder.pkl       # Label Encoder for categorical features
โ”œโ”€โ”€ requirements.txt        # Python dependencies
โ””โ”€โ”€ README.md               # This file