Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

darrehanrasool/Herbalist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

66 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Medicinal Plant Analysis using Deep Learning

Python Framework TensorFlow License Maintenance Render


๐Ÿ“ฅ View Sample Output

Curious about the results? Download a generated research report here:

โš ๏ธ Note regarding the Live Demo: The live application is hosted on Render's Free Tier, which has strict memory limitations (RAM). Deep Learning models like the Xception architecture used here require significant memory.

If the live demo fails to process an image or times out, it is likely due to the server running out of memory, not a bug in the code. For a smooth, stable experience, please run the application locally or deploy it to a cloud environment with at least 2GB of RAM.

๐Ÿ“– Overview

Herbalist is an advanced open-source research project designed to bridge the gap between botany and artificial intelligence. Utilizing a custom-tuned Xception CNN architecture, this tool identifies over 200+ medicinal plant species with high precision.

Beyond simple identification, Herbalist acts as a digital botanist, providing immediate insights into pharmacological properties, toxicity levels, and active chemical compoundsโ€”helping researchers and students digitize nature.

๐Ÿš€ Key Features

  • ๐Ÿ” High-Accuracy Identification: Achieved 96.79% validation accuracy using Transfer Learning (Xception).
  • โšก Real-Time Analysis: Instant processing of raw plant images via a Flask web interface.
  • ๐Ÿงช Detailed Pharmacological Reports: Automatically extracts medicinal values, active compounds (e.g., Aloin), and toxicity levels.
  • ๐Ÿ“„ PDF Report Generation: One-click export of research-grade reports for documentation.
  • ๐Ÿ“ฑ Responsive UI: Clean, modern interface built for easy drag-and-drop interaction.

๐Ÿ› ๏ธ Technology Stack

  • Deep Learning: TensorFlow, Keras, Xception Architecture (Separable Convolutions)
  • Backend: Python, Flask
  • Image Processing: OpenCV, PIL
  • Data Handling: Pandas, NumPy
  • Frontend: HTML5, CSS3, JavaScript

๐Ÿ“Š Model Performance

We trained the model on a curated dataset of medicinal plants, employing data augmentation techniques to ensure robustness in real-world scenarios.

Metric Score
Training Accuracy 93.34%
Validation Accuracy 96.79%
Loss < 0.2

๐Ÿ“ธ Screenshots

Landing Page Analysis Result
Landing Page Analysis Result

โš™๏ธ Installation & Usage

  1. Clone the Repository

    git clone [https://github.com/darrehanrasool/Herbalist.git](https://github.com/darrehanrasool/Herbalist.git)
    cd Herbalist
  2. Create a Virtual Environment

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install Dependencies

    pip install -r requirements.txt
  4. Run the Application

    python app.py
  5. Access the Web Interface Open your browser and navigate to http://localhost:5001

๐Ÿค Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ‘ค Author

Dar Rehan Rasool

  • Full Stack Architect & AI Researcher
  • Computer Science Dept, IUST Kashmir
  • GitHub Profile

If you like this project, please give it a โญ on GitHub!

About

"Deep learning-based AI model for medicinal plant analysis, enabling precise identification and classification. It enhances research and drug discovery by integrating AI with herbal sciences."

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors