Skip to content

nirakarpatel/aashaai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒ Aasha.AI - Offline Multi-Disease AI Health Screening Platform

Aasha.AI Logo

Empowering ASHA Workers with AI-Powered Health Screening

Offline-First โ€ข Multi-Disease โ€ข Rural India

Flutter TensorFlow Lite License


๐ŸŽฏ Problem Statement

Rural India faces critical healthcare challenges:

  • Doctor Shortage: 1 doctor per 10,000+ people in villages
  • Poor Connectivity: Limited internet access for telemedicine
  • Late Diagnosis: Preventable diseases detected too late
  • High Costs: Expensive diagnostic tests unavailable locally

๐Ÿ’ก Our Solution

Aasha.AI brings AI-powered health screening directly to villages through ASHA workers' smartphones:

  • โœ… Works 100% Offline - No internet required
  • โœ… Multi-Disease Screening - TB, Skin, Anemia, Maternal Health
  • โœ… Instant Results - AI analysis in seconds
  • โœ… Smart Referrals - Nearest PHC recommendations
  • โœ… Patient Records - Offline-first with cloud sync

๐Ÿฅ Screening Modules

Module Input AI Model Risk Detection
TB Screening ๐ŸŽค Cough Audio Audio Classification TB risk indicators
Skin Disease ๐Ÿ“ท Photo Image Classification Fungal, Eczema, Ringworm
Anemia Check ๐Ÿ“ท Palm/Eye Photo Pallor Analysis Hemoglobin estimation
Maternal Health ๐Ÿ“‹ Questionnaire Risk Scoring Pregnancy danger signs
Symptom Triage ๐Ÿ“‹ Symptoms List Urgency Scoring Care urgency level

๐Ÿš€ Quick Start

Prerequisites

  • Flutter 3.0+ installed
  • Android Studio / VS Code
  • Android device or emulator

Installation

# Clone the repository
git clone https://github.com/yourusername/aasha-ai.git
cd aasha-ai

# Install dependencies
flutter pub get

# Run the app
flutter run

Build APK

flutter build apk --release

๐Ÿ“ฑ App Flow

Splash Screen
     โ”‚
     โ–ผ
ASHA Dashboard
     โ”‚
     โ”œโ”€โ”€ New Screening โ”€โ”€โ–บ Patient Registration โ”€โ”€โ–บ Select Module
     โ”‚                                                   โ”‚
     โ”‚                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
     โ”‚                    โ”‚                              โ”‚                              โ”‚
     โ”‚                    โ–ผ                              โ–ผ                              โ–ผ
     โ”‚               TB Module                    Skin Module                   Anemia Module
     โ”‚            (Record Cough)              (Capture Photo)              (Capture Palm/Eye)
     โ”‚                    โ”‚                              โ”‚                              โ”‚
     โ”‚                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                              โ”‚
     โ”‚                                   โ–ผ                                              โ”‚
     โ”‚                          AI Processing โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
     โ”‚                                   โ”‚
     โ”‚                                   โ–ผ
     โ”‚                           Result Screen
     โ”‚                      (Risk + Recommendation)
     โ”‚                                   โ”‚
     โ”‚                                   โ–ผ
     โ”‚                          Nearest PHC Map
     โ”‚
     โ””โ”€โ”€ Patient History โ”€โ”€โ–บ Filter by Risk โ”€โ”€โ–บ View Past Results

๐Ÿ—๏ธ Project Structure

aasha_ai/
โ”œโ”€โ”€ lib/
โ”‚   โ”œโ”€โ”€ main.dart                    # App entry point
โ”‚   โ”œโ”€โ”€ models/
โ”‚   โ”‚   โ”œโ”€โ”€ patient.dart             # Patient data model
โ”‚   โ”‚   โ””โ”€โ”€ screening_result.dart    # Screening result model
โ”‚   โ”œโ”€โ”€ screens/
โ”‚   โ”‚   โ”œโ”€โ”€ splash_screen.dart       # Animated splash
โ”‚   โ”‚   โ”œโ”€โ”€ login_screen.dart        # ASHA worker login
โ”‚   โ”‚   โ”œโ”€โ”€ home_screen.dart         # Dashboard with modules
โ”‚   โ”‚   โ”œโ”€โ”€ patient_registration_screen.dart
โ”‚   โ”‚   โ”œโ”€โ”€ cough_recording_screen.dart
โ”‚   โ”‚   โ”œโ”€โ”€ skin_scan_screen.dart
โ”‚   โ”‚   โ”œโ”€โ”€ anemia_scan_screen.dart
โ”‚   โ”‚   โ”œโ”€โ”€ maternal_health_screen.dart
โ”‚   โ”‚   โ”œโ”€โ”€ symptom_triage_screen.dart
โ”‚   โ”‚   โ”œโ”€โ”€ ai_processing_screen.dart
โ”‚   โ”‚   โ”œโ”€โ”€ result_screen.dart
โ”‚   โ”‚   โ””โ”€โ”€ patient_history_screen.dart
โ”‚   โ”œโ”€โ”€ services/
โ”‚   โ”‚   โ”œโ”€โ”€ storage_service.dart     # Hive local database
โ”‚   โ”‚   โ”œโ”€โ”€ tflite_service.dart      # AI inference
โ”‚   โ”‚   โ”œโ”€โ”€ audio_service.dart       # Audio recording
โ”‚   โ”‚   โ”œโ”€โ”€ image_service.dart       # Camera capture
โ”‚   โ”‚   โ””โ”€โ”€ location_service.dart    # PHC finder
โ”‚   โ”œโ”€โ”€ widgets/
โ”‚   โ”‚   โ”œโ”€โ”€ risk_indicator.dart      # Risk level badges
โ”‚   โ”‚   โ”œโ”€โ”€ module_card.dart         # Dashboard cards
โ”‚   โ”‚   โ”œโ”€โ”€ patient_card.dart        # Patient list items
โ”‚   โ”‚   โ”œโ”€โ”€ action_button.dart       # CTA buttons
โ”‚   โ”‚   โ””โ”€โ”€ symptom_checkbox.dart    # Touch-friendly checkboxes
โ”‚   โ””โ”€โ”€ utils/
โ”‚       โ”œโ”€โ”€ constants.dart           # Colors, styles, config
โ”‚       โ””โ”€โ”€ routes.dart              # Navigation routes
โ”œโ”€โ”€ assets/
โ”‚   โ”œโ”€โ”€ models/                      # TFLite model files
โ”‚   โ”œโ”€โ”€ icons/                       # App icons
โ”‚   โ””โ”€โ”€ images/                      # Logos and illustrations
โ””โ”€โ”€ README.md

๐Ÿง  AI Models

The app uses TensorFlow Lite for offline inference:

Model Size Input Output
TB Cough ~2MB Audio spectrogram Risk probability
Skin Disease ~3MB 224x224 image Disease class + confidence
Anemia ~2MB 224x224 palm/eye Pallor level
Maternal Risk ~500KB Feature vector Risk score

Model Placement

Place your trained .tflite models in:

assets/models/
โ”œโ”€โ”€ tb_cough.tflite
โ”œโ”€โ”€ skin_disease.tflite
โ”œโ”€โ”€ anemia_screen.tflite
โ””โ”€โ”€ maternal_risk.tflite

Note: The app includes mock predictions for demo purposes. Replace with real models for production.


๐Ÿ”ง Key Technologies

  • Flutter - Cross-platform mobile framework
  • TensorFlow Lite - On-device ML inference
  • Hive - Fast, lightweight local database
  • Firebase - Optional cloud sync (when online)
  • Geolocator - GPS for nearest PHC

๐ŸŒ Offline-First Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                      ASHA Worker Device                      โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚   Flutter   โ”‚  โ”‚   TFLite    โ”‚  โ”‚     Hive DB         โ”‚  โ”‚
โ”‚  โ”‚     UI      โ”‚โ—„โ”€โ”ค   Models    โ”‚  โ”‚  (Patients, Results)โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ”‚         โ”‚                                    โ”‚               โ”‚
โ”‚         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜               โ”‚
โ”‚                          โ”‚                                   โ”‚
โ”‚                    โ”Œโ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”                             โ”‚
โ”‚                    โ”‚   Sync    โ”‚                             โ”‚
โ”‚                    โ”‚  Service  โ”‚                             โ”‚
โ”‚                    โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜                             โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ”‚ When Online
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚  Firebase   โ”‚
                    โ”‚  Firestore  โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ“‹ Permissions Required

Add to android/app/src/main/AndroidManifest.xml:

<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.INTERNET"/>

๐ŸŽจ Design Principles

  1. Rural-Friendly UI - Large buttons, high contrast, simple navigation
  2. Minimal Text - Icon-based interface, easy for low-literacy users
  3. Multi-Language Ready - String resources extracted for i18n
  4. Low Resource - Optimized for low-end Android devices

๐Ÿ† Hackathon Features

  • โœ… Complete multi-disease screening platform
  • โœ… Offline AI inference
  • โœ… Animated recording with waveform
  • โœ… Step-by-step AI processing visualization
  • โœ… Color-coded risk levels
  • โœ… Nearest PHC with maps integration
  • โœ… Patient history with filters
  • โœ… Premium UI with gradients and animations

๐Ÿ”ฎ Future Roadmap

  • Hindi/Odia voice guidance
  • Emergency SMS alerts
  • High-risk zone heatmap
  • Government PHC API integration
  • Diabetes screening module
  • Eye disease detection
  • Dental health screening

๐Ÿ‘ฅ Team

Built with โค๏ธ for rural India


๐Ÿ“„ License

MIT License - See LICENSE for details


๐ŸŒŸ Star this repo if Aasha.AI helps rural healthcare! ๐ŸŒŸ

About

ai for healthcare

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors