Skip to content

Prashanta4/gallbladder-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

28 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🩺 Gallbladder AI Diagnostic Tool

Gallbladder AI Logo Version Status License

Advanced AI-powered gallbladder condition classification from ultrasound images

πŸš€ Live Demo β€’ πŸ“‹ Features β€’ πŸ› οΈ Installation β€’ πŸ“– Documentation β€’ 🀝 Contributing


🌟 Overview

The Gallbladder AI Diagnostic Tool is a cutting-edge web application that leverages machine learning to analyze gallbladder ultrasound images and provide instant classification of various conditions. Built with modern web technologies and a focus on user experience, this tool serves as a powerful educational and research platform for medical professionals and students.

🎯 Key Highlights

  • ⚑ Instant Analysis - Get results in seconds, not hours
  • πŸ”’ Privacy First - No data storage, secure processing
  • 🎨 Modern UI - Professional, intuitive interface
  • πŸ“± Responsive - Works seamlessly across all devices
  • 🧠 AI-Powered - Advanced neural network classification
  • πŸ“Š Detailed Reports - Comprehensive analysis with confidence scores

✨ Features

πŸ”₯ Core Functionality

Feature Description
πŸ–ΌοΈ Image Upload Drag & drop or click to upload ultrasound images
πŸ” AI Classification Real-time gallbladder condition detection
πŸ“ˆ Confidence Scoring Percentage-based confidence metrics
πŸ“„ Report Generation Downloadable analysis reports
⚑ Instant Preview Live image preview with overlay controls

🎨 User Interface

  • Modern Design - Clean, professional medical interface
  • Smooth Animations - Engaging micro-interactions and transitions
  • Responsive Layout - Optimized for desktop, tablet, and mobile
  • Accessibility - WCAG compliant with proper contrast and navigation
  • Dark/Light Theme - Automatic theme adaptation

πŸ›‘οΈ Security & Privacy

  • No Data Storage - Images processed in memory only
  • Secure Transmission - HTTPS encrypted API communication
  • Input Validation - Comprehensive file type and size checking
  • Error Handling - Robust error management and user feedback

πŸš€ Live Demo

Experience the tool in action:

πŸ“± Try Live Demo β†’

Sample ultrasound images available for testing


πŸ› οΈ Installation

Prerequisites

Before you begin, ensure you have:

  • πŸ“¦ Web Server (Apache, Nginx, or local development server)
  • 🌐 Modern Browser (Chrome, Firefox, Safari, Edge)
  • πŸ”— Internet Connection (for CDN resources and API calls)

Quick Start

  1. Clone the repository

    git clone https://github.com/your-username/gallbladder-ai-diagnostic.git
    cd gallbladder-ai-diagnostic
  2. Serve the files

    # Using Python 3
    python -m http.server 8000
    
    # Using Node.js (http-server)
    npx http-server
    
    # Using PHP
    php -S localhost:8000
  3. Open in browser

    http://localhost:8000
    

πŸ“ Project Structure

gallbladder-ai-diagnostic/
β”œβ”€β”€ πŸ“„ index.html          # Main HTML structure
β”œβ”€β”€ 🎨 styles.css          # Professional styling
β”œβ”€β”€ ⚑ script.js           # Enhanced JavaScript functionality
β”œβ”€β”€ πŸ“– README.md           # This documentation
└── πŸ“ assets/             # Images and additional resources
    β”œβ”€β”€ πŸ–ΌοΈ screenshots/    # Application screenshots
    └── 🎯 icons/          # Custom icons and logos

πŸ”§ Configuration

API Endpoint

The application connects to a Hugging Face Spaces API by default:

const API_ENDPOINT = 'https://prasanta4-my-model-deployment.hf.space/predict';

Customization Options

File Upload Settings

// Maximum file size (10MB)
const MAX_FILE_SIZE = 10 * 1024 * 1024;

// Allowed file types
const ALLOWED_TYPES = ['image/jpeg', 'image/jpg', 'image/png', 'image/gif'];

UI Customization

/* Custom color scheme in styles.css */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
}

πŸ“– API Documentation

Request Format

Endpoint: POST /predict

Content-Type: multipart/form-data

Parameters:

Field Type Required Description
file File Yes Ultrasound image file

Response Format

{
  "filename": "ultrasound_image.jpg",
  "predicted_class": "Normal",
  "confidence_score": 0.95,
  "processing_time": 1250
}

Response Fields:

Field Type Description
filename string Original filename
predicted_class string Detected condition
confidence_score number Confidence (0.0-1.0)
processing_time number Processing time (ms)

Error Handling

{
  "error": "Invalid file format",
  "code": 400,
  "message": "Please upload a valid image file"
}

🎨 Screenshots

🏠 Homepage

Homepage

πŸ“€ Upload Interface

Upload

πŸ“Š Results Display

Results


πŸš€ Usage Guide

Step-by-Step Process

  1. πŸ“ Upload Image

    • Drag and drop an ultrasound image
    • Or click "Choose File" to browse
  2. πŸ‘οΈ Preview

    • Review the uploaded image
    • Verify image quality and clarity
  3. 🧠 Analyze

    • Click "Analyze Image" to start processing
    • Wait for AI analysis (typically 1-3 seconds)
  4. πŸ“Š View Results

    • Review classification and confidence score
    • Check additional metrics and information
  5. πŸ’Ύ Download Report

    • Generate a detailed analysis report
    • Save for future reference or sharing

πŸ’‘ Best Practices

  • βœ… High Quality Images - Use clear, well-lit ultrasound images
  • βœ… Proper Format - JPEG, PNG, or GIF formats work best
  • βœ… Reasonable Size - Keep files under 10MB for optimal performance
  • βœ… Professional Use - Always consult healthcare professionals for diagnosis

πŸ”¬ Technical Details

Technologies Used

Frontend Stack

  • HTML5 - Semantic markup and structure
  • CSS3 - Modern styling with flexbox/grid
  • JavaScript (ES6+) - Async/await, modern features
  • Bootstrap 5 - Responsive framework
  • Font Awesome 6 - Professional icons

External Dependencies

<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">

<!-- Font Awesome Icons -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">

<!-- Bootstrap JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>

Browser Compatibility

Browser Version Support
Chrome 88+ βœ… Full Support
Firefox 85+ βœ… Full Support
Safari 14+ βœ… Full Support
Edge 88+ βœ… Full Support

Performance Metrics

  • First Contentful Paint: < 1.5s
  • Largest Contentful Paint: < 2.5s
  • Cumulative Layout Shift: < 0.1
  • Time to Interactive: < 3.0s

πŸ§ͺ Testing

Manual Testing Checklist

  • File upload functionality
  • Drag and drop interface
  • Image preview display
  • API communication
  • Error handling
  • Report generation
  • Responsive design
  • Cross-browser compatibility

Sample Test Images

For testing purposes, you can use these sample ultrasound image categories:

  1. Normal Gallbladder - Clear, healthy tissue visualization
  2. Gallstones - Visible stone formations with acoustic shadowing
  3. Inflammation - Wall thickening and inflammatory changes
  4. Polyps - Small growths attached to the gallbladder wall

🀝 Contributing

We welcome contributions from the community! Here's how you can help:

πŸ› Bug Reports

Found a bug? Please create an issue with:

  • Clear description of the problem
  • Steps to reproduce the issue
  • Expected vs actual behavior
  • Screenshots if applicable
  • Browser/OS information

πŸ’‘ Feature Requests

Have an idea for improvement? Please include:

  • Detailed description of the feature
  • Use case scenarios
  • Potential implementation approach
  • Benefits for users

πŸ”§ Development

  1. Fork the repository
  2. Create a 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

πŸ“ Coding Standards

  • Use semantic HTML5 elements
  • Follow BEM methodology for CSS classes
  • Write ES6+ JavaScript with proper error handling
  • Include JSDoc comments for functions
  • Ensure responsive design principles
  • Test across multiple browsers

βš–οΈ Legal & Compliance

πŸ₯ Medical Disclaimer

⚠️ IMPORTANT: This application is intended for educational and research purposes only. It is not intended to diagnose, treat, cure, or prevent any disease. Always consult with qualified healthcare professionals for medical diagnosis and treatment decisions.

πŸ“‹ Regulatory Compliance

  • HIPAA Compliance: No patient data is stored or transmitted
  • GDPR Compliance: No personal data collection or processing
  • FDA Notice: Not intended for clinical diagnostic use
  • Educational Use: Designed for learning and research applications

πŸ”’ Privacy Policy

  • No Data Storage: Images are processed in memory only
  • No Tracking: No user analytics or tracking cookies
  • Secure Processing: All communications use HTTPS encryption
  • Local Operation: Client-side processing with external API calls only

πŸ“ž Support & Contact

πŸ†˜ Getting Help

  • πŸ“š Documentation: Check this README for detailed information
  • πŸ› Issues: Report bugs via GitHub Issues
  • πŸ’¬ Discussions: Join community discussions for questions
  • πŸ“§ Direct Contact: your-email@domain.com

🌐 Community


πŸ“ˆ Roadmap

🎯 Short-term Goals (Q1 2024)

  • Multi-language Support - Internationalization features
  • Batch Processing - Multiple image analysis
  • Enhanced Reports - PDF generation with charts
  • Accessibility Improvements - Screen reader optimization

πŸš€ Medium-term Goals (Q2-Q3 2024)

  • Mobile App - Native iOS/Android applications
  • Advanced Analytics - Detailed statistical analysis
  • Integration APIs - Third-party system integration
  • User Accounts - Personal analysis history

🌟 Long-term Vision (2024+)

  • 3D Visualization - Interactive 3D gallbladder models
  • Video Analysis - Real-time ultrasound video processing
  • AI Model Training - Custom model training interface
  • Telemedicine Integration - Remote consultation features

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

MIT License

Copyright (c) 2024 Gallbladder AI Diagnostics

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

πŸ™ Acknowledgments

πŸ‘¨β€πŸ’» Development Team

πŸŽ“ Research & Resources

  • Medical Literature: Latest gallbladder imaging research
  • AI Frameworks: TensorFlow, PyTorch communities
  • Open Source Libraries: Bootstrap, Font Awesome, and other amazing projects

🀝 Special Thanks

  • Medical professionals who provided expertise and feedback
  • Beta testers who helped improve the user experience
  • Open source community for tools and inspiration

🌟 Star History

Star History Chart


Made with ❀️ for the medical community

⬆️ Back to Top

About

Capstone Gallbladder disease Classification Webpage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published