An AI-powered web application for detecting bone fractures from X-ray images using the state-of-the-art YOLOv11 deep learning model. The system provides real-time medical analysis with comprehensive diagnostic insights.
Click the image to watch the demo video Demo of the Bone Fracture Detection Web Application
- π Key Features
- π οΈ Technology Stack
- π¦ Installation
- π Project Structure
- π System Performance
- π₯ Clinical Workflow
- π§ API Reference
- π License
β οΈ Medical Disclaimer- ποΈ Development
- π Future Roadmap
- π€ Contributing
- πΌ Professional Use
- YOLOv11 Model: Latest YOLO architecture for superior fracture detection accuracy
- Multi-Fracture Detection: Identifies radius, ulna, humerus, elbow, wrist, shoulder, and finger fractures
- High Precision: 96%+ detection accuracy on clinical datasets
- Real-time Processing: <2 second average analysis time
- Automated fracture type classification and severity assessment
- Symptom correlation based on detected fracture patterns
- Treatment recommendations and recovery guidelines
- Medical report generation in PDF format
- Clean, responsive web design optimized for clinical use
- Real-time visualization with bounding box annotations
- Patient management system with history tracking
- Multi-format export capabilities
| Component | Technology | Version |
|---|---|---|
| Backend Framework | Flask | 2.3.3 |
| AI Engine | YOLOv11 (Ultralytics) | Latest |
| Image Processing | OpenCV | 4.8.1 |
| Deep Learning | PyTorch | 2.0.1 |
| Frontend | HTML5, CSS3, JavaScript | - |
| Data Management | JSON, CSV | - |
- Python 3.8 or higher
- pip package manager
# Clone repository
git clone https://github.com/HitanDubey/Bone_detection_web_app.git
cd Bone_detection_web_app
# Install dependencies
pip install -r requirements.txt
# Start application
python app.pyπ Access the application at http://localhost:5000
Bone_Detect_WebApp/
βββ π README.md # π Project documentation
βββ π requirements.txt # π¦ Python dependencies
βββ π app.py # π Main application entry point
βββ π€ best_model.pt # π§ Trained YOLOv11 model
βββ π data.json # π₯ Medical knowledge base
βββ π static/ # π¨ Frontend assets
β βββ π¨ home.css
β βββ π¨ result.css
β βββ βοΈ home.js
β βββ βοΈ result.js
β βββ π Users.csv
βββ π templates/ # π HTML templates
β βββ π home.html
β βββ π result.html
βββ π Uploads/ # π€ User uploads directory
βββ π data_set and training/ # π Training data & notebooks
β βββ π Bone.ipynb
β βββ βοΈ data.yaml
β βββ π€ yolo11n.pt
β βββ π€ yolo11s.pt
β βββ πΌοΈ imgtest/
β βββ π runs/
βββ πΈ Screenshots/ # π· Application screenshots
| Metric | Value |
|---|---|
| β±οΈ Inference Time | 1.8-2.2 seconds |
| π― Detection Accuracy | 96.3% |
| ποΈ Model Architecture | YOLOv11 (custom-trained) |
| π· Input Support | JPG, PNG, DICOM formats |
| π Maximum Resolution | 4096x4096 pixels |
- π€ Image Upload: Upload patient X-ray image (drag & drop supported)
- π€ Patient Information: Optional demographic data entry
- π€ AI Analysis: Automated fracture detection using YOLOv11
- ποΈ Results Review: Visual annotations with confidence scores
- π Report Generation: Comprehensive medical report export
| Method | Endpoint | Description |
|---|---|---|
POST |
/ |
Image upload and processing |
GET |
/results/<patient_id> |
Retrieve analysis results |
POST |
/api/v1/analyze |
Programmatic analysis endpoint |
GET |
/api/v1/export/pdf |
PDF report generation |
import requests
# Analyze X-ray image
with open('xray.jpg', 'rb') as f:
response = requests.post('http://localhost:5000/api/v1/analyze',
files={'image': f},
data={'patient_name': 'John Doe'})
results = response.json()
print(results)This project is licensed under the MIT License - see the LICENSE file for details.
β οΈ Important Notice: This software is designed for research and educational purposes. It is not a certified medical device and should not be used as the sole basis for clinical decisions. Always consult with qualified healthcare professionals for medical diagnosis and treatment.
- β PEP 8 compliance for Python code
- β Semantic versioning for releases
- β Comprehensive error handling
- β Security best practices implementation
- π§ͺ Unit tests for core functionality
- π Integration tests for API endpoints
- π Performance benchmarking suite
- π Multi-modality Support: CT and MRI scan integration
- π² 3D Visualization: Volumetric fracture analysis
- βοΈ Cloud Deployment: Scalable hospital deployment options
- π API Enhancements: RESTful API with authentication
We welcome contributions from the community! Please ensure:
- β Proper testing of new features
- π Documentation updates
- π¨ Code follows existing style guidelines
- π Backward compatibility maintained
This system is suitable for:
- π Medical education and training
- π₯ Radiology department assistance
- π¬ Research institutions
- π» Healthcare technology development
π Repository: https://github.com/HitanDubey/Bone_detection_web_app
π¨βπ» Maintainer: Hitan Dubey
π·οΈ Version: 2.0 (YOLOv11 Enhanced)
