Documentation

Installation Guide

AI-Powered Drug Interaction Alert System | Machine Learning Healthcare Final Year Project with Source Code

Step-by-step Setup Verified Instructions Chat Support
Back to Project
Complete Guide

Installation Guide

Prerequisites

  • Python 3.8 or higher
  • pip package manager

Step 1: Open the Project Folder

Extract the downloaded files and open the folder named "Drug Interaction Alert System" in your terminal or command prompt.

Step 2: Install the Required Libraries

Run the following command to install every dependency at once:

pip install flask pandas numpy scikit-learn xgboost scipy joblib matplotlib seaborn wordcloud networkx

Step 3: Retrain the Models (Optional)

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.

Step 4: Start the Flask Application

Move into the web application directory and start the server:

cd drug_interaction_alert
python app.py

Step 5: Open the App in Your Browser

Visit the address below once the server is running:

http://localhost:5000

Step 6: Check a Drug Interaction

  1. Type a drug name in each field. Autocomplete suggestions appear after two characters.
  2. Click the Check Interaction button.
  3. View the severity level, the interaction description, and the source badge.

Using the JSON API

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

Need Help?

Our team is here to assist you with installation and setup.

Chat with Us
Chat with us