A Machine Learning-based web application that predicts the likelihood of drug relapse based on various behavioral and lifestyle inputs.
This project uses a Deep Learning (LSTM) model to analyze user inputs and predict whether a person is at Low Risk or High Risk of Relapse.
The app is built using Streamlit for UI and TensorFlow/Keras for prediction.
- 🧠 ML-based relapse prediction
- 🎛️ Interactive UI with sliders and dropdowns
- ⚡ Real-time prediction
- 📊 Probability score output
- 💻 Runs locally using Streamlit
- User enters data
- Data is preprocessed (encoding + scaling)
- Input reshaped for LSTM model
- Model predicts relapse probability
- Result shown as:
- ✅ Low Risk
⚠️ High Risk
- Python
- Streamlit
- TensorFlow / Keras (LSTM)
- Pandas, NumPy
- Scikit-learn
drug_relapseProject/
│── app.py
│── train.py
│── patient_drug_relapse_dataset.csv
│── drug_relapse_lstm_model.keras
│── scaler.pkl
│── label_encoders.pkl
│── screenshot1.png
│── screenshot2.png
│── README.md
streamlit run app.py# drug_relapseProject
