AI-Powered Drug Interaction Alert System | Machine Learning Healthcare Final Year Project with Source Code
Back to ProjectExtract the downloaded files and open the folder named "Drug Interaction Alert System" in your terminal or command prompt.
Run the following command to install every dependency at once:
pip install flask pandas numpy scikit-learn xgboost scipy joblib matplotlib seaborn wordcloud networkx
The trained model files are already included, so this step is optional. If you want to retrain them, open the notebook in Jupyter:
jupyter notebook Drug_Interaction_Alert_System.ipynb
Running all cells will regenerate drug_interaction_model.pkl, tfidf_vectorizer.pkl, and label_encoders.pkl.
Move into the web application directory and start the server:
cd drug_interaction_alert
python app.py
Visit the address below once the server is running:
http://localhost:5000
Send a POST request to the endpoint below with a JSON body containing drug1 and drug2 to get a severity response programmatically:
POST http://localhost:5000/api/check
Our team is here to assist you with installation and setup.