MediMatch is a command-line tool designed to suggest alternative medicines for patients when a specific medicine is unavailable. Leveraging machine learning techniques like clustering and K-Nearest Neighbors (KNN), MediMatch provides effective recommendations tailored to patient needs.
- Smart Clustering: Groups medicines based on chemical composition, usage, and reviews
- Alternative Finder: Suggests similar medicines when a preferred one is not available
- Review-Based Suggestions: Considers excellent, average, and poor reviews to enhance recommendation quality
- Extensible Dataset: Easily add new data to expand the system's functionality
- Programming Language: Python
- Libraries:
- Scikit-learn
- Pandas
- NumPy
The dataset (medicines.csv
) should have the following structure:
Medicine Name | Main Element | Numeric Value | Uses | Side Effects | Image URL | Manufacturer | Excellent Review % | Average Review % | Poor Review % |
---|---|---|---|---|---|---|---|---|---|
Avastin 400mg Injection | Bevacizumab | 400mg | Cancer of colon and rectum... | Rectal bleeding, ... | https://onemg.gumlet.io/l_watermark_346,w... | Roche Products India Pvt Ltd | 22 | 56 | 22 |
Augmentin 625 Duo Tablet | Amoxycillin | 500mg | Treatment of Bacterial... | Vomiting, Nausea,... | https://onemg.gumlet.io/l_watermark_346,w... | Glaxo SmithKline Pharmaceuticals | 47 | 35 | 18 |
- Python (version 3.8 or later)
- Pip (Python package manager)
-
Clone the Repository
git clone https://github.com/Pranjal-88/MediMatch.git cd MediMatch
-
Install Required Dependencies
pip install -r requirements.txt
-
Prepare Dataset
- Ensure your
medicines.csv
file is placed in the project root directory - Verify the CSV file follows the structure shown above
- Ensure your
-
Open the runner.py file
-
Modify the Query Medicine
- Locate the
query_medicine
variable inrunner.py
- Replace its value with the medicine name you want alternatives for
query_medicine = "Your Medicine Name Here"
- Locate the
-
Run the Program
python runner.py
-
View Results
- The program will display the closest alternative medicine on the terminal.
# In runner.py
query_medicine = "Zincold Tablet"
# Output will be shown like: