PetDerma is an advanced AI-powered web application designed to diagnose skin diseases in pets using computer vision and deep learning technologies. The platform features specialized diagnostic modules for both cats and dogs, providing accurate disease detection with confidence scores and treatment recommendations.
- Disease Detection: Flea Allergy, Healthy Skin, Ringworm, Scabies
- AI Model: ResNet-50 based classification
- Real-time Analysis: Instant diagnostic results with confidence scores
- Visual Feedback: Probability distribution charts for all conditions
- Disease Detection: Dermatitis, Fungal Infections, Healthy Skin, Hypersensitivity, Demodicosis, Ringworm
- Advanced Diagnostics: Comprehensive skin condition analysis
- Treatment Guidance: Detailed information about each condition
- User Feedback System: Integrated feedback collection for model improvement
- Dog Skin Dataset: Dog Skin Disease v3
- Cat Skin Dataset: Cat Skin Disease v3
- Python 3.8+: Core programming language
- Flask 3.0+: Web framework for API and routing
- PyTorch 2.0+: Deep learning framework for AI models
- torchvision: Computer vision transformations and models
- ResNet-50: Pre-trained convolutional neural network architecture
- PIL (Pillow): Image processing and manipulation
- NumPy: Numerical computing and array operations
- Matplotlib: Statistical plotting and visualization
- Pandas: Data manipulation and analysis
- Scikit-learn: Machine learning utilities
- HTML5/CSS3: Modern web standards
- Responsive Design: Mobile-first approach
PetDerma/
โโโ app.py # Main application launcher
โโโ requirements.txt # Python dependencies
โโโ README.md # Project documentation
โโโ templates/
โ โโโ index.html # Main landing page
โโโ static/ # Static assets
โโโ CatDerma/ # Cat skin disease module
โ โโโ app.py # CatDerma Flask application
โ โโโ cat_skin_disease_model.pth # Trained PyTorch model
โ โโโ cat_skin_model.ipynb # Training Dataset to get model
โ โโโ feedback_data.csv # User feedback storage
โ โโโ requirements.txt # Module-specific dependencies
โ โโโ templates/
โ โ โโโ index.html # CatDerma interface
โ โ โโโ home.html # Results display
โ โ โโโ about.html # Information page
โ โโโ static/uploads/ # Uploaded images storage
โโโ DogDerma/ # Dog skin disease module
โโโ app.py # DogDerma Flask application
โโโ best_model.pth # Trained PyTorch model
โโโ dog_skin_model.ipynb # Training Dataset to get model
โโโ feedback_data.csv # User feedback storage
โโโ requirements.txt # Module-specific dependencies
โโโ templates/
โ โโโ index.html # DogDerma interface
โ โโโ home.html # Results display
โ โโโ about.html # Information page
โโโ static/uploads/ # Uploaded images storage
- Python 3.8 or higher
- pip (Python package installer)
- Virtual environment (recommended)
git clone <repository-url>
cd PetDerma# Create virtual environment
python -m venv venv
# Activate virtual environment
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate# Upgrade pip and setuptools
python -m pip install --upgrade pip setuptools wheel
# Install required packages
pip install -r requirements.txtpython app.pyThis command will:
- Start the main PetDerma application on
http://localhost:5000 - Automatically launch CatDerma on
http://localhost:5001 - Automatically launch DogDerma on
http://localhost:5002
- Access the Platform: Navigate to
http://localhost:5000 - Choose Your Pet: Select either "Cat Diagnosis" or "Dog Diagnosis"
- Upload Image: Select a clear image of your pet's skin condition
- Get Results: View diagnostic results with confidence scores
- Review Information: Read detailed condition descriptions and treatment advice
- Image Quality: Use high-resolution, well-lit images
- Focus Area: Ensure the affected skin area is clearly visible
- File Formats: Supports JPG, JPEG, PNG formats
- Image Size: Optimal size is 224x224 pixels (automatically resized)
- Confidence Score: Percentage indicating model certainty
- Probability Distribution: Visual chart showing likelihood of each condition
- Condition Information: Detailed descriptions, symptoms, and treatment options
- Report Maker: Select respective options and Generate Report
- Base Model: ResNet-50 (pre-trained on ImageNet)
- Custom Classification Layer: Adapted for pet skin conditions
- Input Size: 224x224 RGB images
- Normalization: ImageNet standard normalization
- Flea Allergy: Allergic reaction to flea saliva
- Healthy: Normal, healthy skin condition
- Ringworm: Fungal infection affecting skin and hair
- Scabies: Parasitic mite infestation
- Dermatitis: Inflammatory skin condition
- Fungal Infections: Various fungal skin diseases
- Healthy: Normal, healthy skin condition
- Hypersensitivity: Allergic skin reactions
- Demodicosis: Demodex mite infestation
- Ringworm: Fungal infection affecting skin and hair
We welcome contributions to improve PetDerma! Please see our contribution guidelines:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
Important: PetDerma is designed to assist in identifying potential skin conditions but should not replace professional veterinary diagnosis and treatment. Always consult with a qualified veterinarian for proper medical advice and treatment of your pet's health conditions.
Made with โค๏ธ for pet health and well-being