An open API service indexing awesome lists of open source software.

https://github.com/anis196/bitesense

This project is a deep learning-based classification model using ResNet50 and TensorFlow to classify snake bites as Poisonous or Non-Poisonous based on wound patterns. The model is trained on an image dataset and fine-tuned for better accuracy using GPU.
https://github.com/anis196/bitesense

cuda-toolkit cudnn deep-neural-networks python resnet-50 tensorflow-gpu

Last synced: 8 months ago
JSON representation

This project is a deep learning-based classification model using ResNet50 and TensorFlow to classify snake bites as Poisonous or Non-Poisonous based on wound patterns. The model is trained on an image dataset and fine-tuned for better accuracy using GPU.

Awesome Lists containing this project

README

          

# 🐍BiteSense : Snake Bite Classification using GPU acceleration

This project is a **deep learning-based classification model** using **ResNet50** and **TensorFlow** to classify **snake bites as Poisonous or Non-Poisonous** based on wound patterns. The model is trained on an image dataset and fine-tuned for better accuracy using GPU.

---

## πŸš€ Features
βœ… **Deep Learning Model**: Uses ResNet50 as a feature extractor.
βœ… **Transfer Learning**: Fine-tuned for improved accuracy.
βœ… **Data Augmentation**: Helps generalization on unseen data.
βœ… **Real-time Predictions**: Classifies images of snake bites.
βœ… **GPU Acceleration**: Supports CUDA for faster training.

---

## πŸ› οΈ Installation & Setup

### 1️⃣ Clone the Repository
```bash
git clone https://github.com/anis196/snk-bite-det.git
cd snk-bite-det
```

### 2️⃣ Install Dependencies
```bash
pip install -r requirements.txt
```

### 3️⃣ Check GPU Availability (Optional)
```python
import tensorflow as tf
print("Num GPUs Available:", len(tf.config.list_physical_devices('GPU')))
```

### 4️⃣ Prepare the Dataset
Organize the dataset in the following structure:
```plaintext
/dataset
/Poisonous
- image1.jpg
- image2.jpg
/Non_Poisonous
- image1.jpg
- image2.jpg
```
πŸ”Ή **Update the dataset path** in `snk.py` before running the script.

---

## 🎯 Model Training & Usage

### 5️⃣ Train or Load the Model
If running for the first time, the model will train and save automatically.
```bash
python snk.py
```
To avoid retraining, the model is saved as `resnet50_snake_bite_classifier.h5` and will be loaded in future runs.

---

## 🐍 Making Predictions
Use an image file to test the model:
```python
from snk import predict_image

predict_image("path_to_new_image.jpg", model)
```
### **πŸ”Ή Example Output:**
```plaintext
Predicted: Poisonous 🐍 (Confidence: 0.87)
```
or
```plaintext
Predicted: Non-Poisonous βœ… (Confidence: 0.93)
```

---

## πŸ› οΈ Tools & Technologies Used
πŸ”Ή **Programming:** Python
πŸ”Ή **Frameworks:** TensorFlow, Keras
πŸ”Ή **Libraries:** OpenCV, NumPy, Matplotlib
πŸ”Ή **Database & Storage:** Local Storage
πŸ”Ή **Version Control:** Git

---
## πŸ“THE TRAINED MODEL HASN'T BEEN ADDED DUE TO ITS EXCESSIVE FILE SIZE

## πŸ“œ License
This project is licensed under the [**MIT License**](https://github.com/Anis196/Snk-bite-det/blob/main/LICENSE).

---

## πŸ“¬ Contact
For any queries, reach out at βœ‰οΈ [shaikhanis2004@gmail.com](mailto:shaikhanis2004@gmail.com).

---