Skip to content

MNwAtThs/StitchMe

Repository files navigation

StitchMe

License: Apache 2.0 Flutter Node.js Python FastAPI Supabase

AI-powered wound assessment and treatment device with cross-platform applications for the University of Texas at San Antonio Senior Design capstone project. Transforms traditional wound care into an intelligent, automated system that combines computer vision, LiDAR scanning, and telemedicine capabilities.

🎯 Project Purpose

StitchMe revolutionizes wound care by creating an intelligent medical device that:

  • AI-Powered Assessment: Computer vision analyzes wound severity and recommends treatment
  • Cross-Platform Control: Flutter apps for iOS, Android, Web, Windows, macOS, and Linux
  • LiDAR 3D Scanning: iPhone LiDAR creates precise wound measurements and 3D models
  • Telemedicine Ready: Video calling connects patients with healthcare professionals
  • Device Integration: Bluetooth/WiFi pairing between mobile apps and treatment device
  • HIPAA Compliant: Secure data handling for medical information

πŸš€ Quick Start

# Clone and setup
git clone <repository-url>
cd StitchMe

# Run setup script
chmod +x scripts/setup-dev.sh
./scripts/setup-dev.sh

# Start Flutter app
cd apps/flutter_app && flutter run -d chrome
# Visit http://localhost:8080

πŸ—οΈ Architecture

StitchMe/
β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ flutter_app/         # Flutter app (Mobile + Desktop + Web)
β”‚   β”œβ”€β”€ device/              # Native device app (Raspberry Pi/Jetson Nano)
β”‚   β”‚   β”œβ”€β”€ python/          # Main device controller application
β”‚   β”‚   └── arduino/         # Arduino sensor integration
β”‚   └── native_modules/      # iOS LiDAR & Bluetooth integration
β”œβ”€β”€ services/
β”‚   β”œβ”€β”€ api/                 # Node.js + Express API server
β”‚   β”œβ”€β”€ ai-service/          # Python + FastAPI AI microservice
β”‚   └── realtime/            # WebRTC signaling server
β”œβ”€β”€ packages/
β”‚   β”œβ”€β”€ shared_models/       # Dart data models
β”‚   β”œβ”€β”€ core_utils/          # Utilities & validators
β”‚   β”œβ”€β”€ ui_kit/              # UI components & themes
β”‚   └── device_sdk/          # Device communication SDK
└── infrastructure/          # Docker, deployment configs

βœ… Development Status

Phase 1 β€” Foundation βœ… COMPLETE

  • Monorepo structure with apps/, services/, and packages/
  • Flutter cross-platform app with authentication UI
  • Backend API structure with Node.js and Python services
  • Development environment and build scripts ready

Phase 2 β€” Core Features πŸ”„ IN PROGRESS

  • Camera integration and image processing
  • iOS LiDAR 3D scanning with ARKit
  • Basic AI wound detection and analysis
  • Supabase backend integration

Phase 3 β€” AI & Communication ⏳ PLANNED

  • Advanced wound classification models (PyTorch)
  • WebRTC video calling system
  • Device pairing and control protocols
  • HIPAA compliance and security audit

πŸ› οΈ Technology Stack & Why

Our Choice: Flutter + Node.js + Python Hybrid

Why This Combination?

  • Flutter: Single codebase for iOS, Android, Web, Desktop + LiDAR support
  • Node.js API: Fast development + excellent WebRTC support for telemedicine
  • Python AI Service: PyTorch and OpenCV for advanced computer vision and ML
  • Supabase: Managed PostgreSQL + auth + real-time + HIPAA compliance options

Frontend Framework Comparison

Framework Platforms LiDAR Performance Medical Device Fit
Flutter βœ… iOS, Android, Web, Desktop βœ… iOS ARKit ⭐⭐⭐⭐⭐ βœ… Perfect
React Native iOS, Android, (Web) βœ… iOS ARKit ⭐⭐⭐⭐ ⚠️ Limited desktop
Native Apps Platform-specific βœ… Full access ⭐⭐⭐⭐⭐ ❌ Too complex
Web Only Web, PWA ❌ No access ⭐⭐⭐ ❌ Hardware limitations

Backend Technology Comparison

Technology Strengths Medical Use Case Team Fit
Node.js + Express βœ… WebRTC support, fast development βœ… Perfect for APIs βœ… Easy learning
Python + FastAPI βœ… AI/ML ecosystem, automatic docs βœ… Perfect for AI βœ… Great for ML
Java Spring Boot Enterprise-grade, robust ⚠️ Overkill for MVP ❌ Too complex
.NET Core Strong typing, performance ⚠️ Microsoft lock-in ❌ Platform limitations

Database & Services Comparison

Service Pros Cons Medical Device Fit
Supabase βœ… PostgreSQL, real-time, auth, HIPAA Newer service βœ… Perfect for MVP
Firebase Google ecosystem, real-time NoSQL limitations ⚠️ Limited complex queries
AWS Amplify Full AWS integration Complex, expensive ❌ Overkill for students
Custom PostgreSQL Full control Infrastructure overhead ❌ Too much work

🎯 Key Features

Mobile Apps (iOS/Android)

  • Wound scanning with camera + LiDAR integration
  • Device pairing with animated Bluetooth/WiFi connection
  • Real-time AI wound analysis and treatment recommendations
  • Video calling with healthcare professionals

Desktop & Web Apps

  • Healthcare provider dashboard and device management
  • Multi-device control and patient monitoring
  • Video consultations and medical record management
  • Hospital integration and compliance reporting

Device Native App (Raspberry Pi/Jetson Nano)

  • Physical device control (motors, pumps, actuators)
  • Real-time sensor monitoring (cameras, vitals, temperature)
  • Safety systems and emergency stops
  • Device status display on built-in touchscreen
  • Communication with mobile/desktop apps via Bluetooth/WiFi

AI & Hardware

  • Computer vision wound classification
  • 3D LiDAR wound measurement and mapping
  • Automated treatment recommendations
  • Real-time vital signs monitoring

πŸ› οΈ Development

# Flutter app
cd apps/flutter_app && flutter run -d chrome

# Backend services
cd services/api && npm run dev
cd services/ai-service && python main.py

# All services
docker-compose up -d

πŸŽ“ Academic Project

University of Texas at San Antonio - Senior Design Capstone

  • Timeline: Fall 2024 - Spring 2025 (2 semesters)
  • Team: 4-5 Electrical and Computer Engineering students
  • Objective: Design and build AI-powered medical device
  • Deliverables: Working prototype, documentation, clinical testing

πŸ“„ License

Licensed under the Apache License 2.0 - see LICENSE file for details.


Ready for clinical testing πŸ₯ | AI-powered diagnostics πŸ€– | Cross-platform deployment πŸ“±πŸ’»πŸŒ

About

EE/CPE 4812 Electrical & Computer Engineering Design I

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors