Sapience AI is a local-first AI wellness monitoring system that analyzes voice stability, typing rhythm, and gait patterns.
The project is designed to help users understand daily wellness changes in a simple, privacy-focused way.
Sapience AI observes three daily behavior signals:
- Voice stability
- Typing stability
- Walking / gait stability
The goal is not to diagnose disease, but to provide simple wellness insights using AI and local-first architecture.
- Futuristic Flutter frontend
- Voice Check screen
- Typing Test screen
- Gait Test screen
- Daily Report screen
- Insights screen
- Settings & Privacy screen
- FastAPI backend
- SQLite local database schema
- Supabase-ready cloud sync
- Python local AI engine
- Librosa-based vocal analysis
- Local LLM concept using GGUF models
The app should be simple enough for anyone to use.
Main UI ideas:
- Simple words
- Big buttons
- Clean layout
- Easy wellness score
- No complex medical language
Sensitive raw data should stay on the user's device.
Raw data that should stay local:
- Voice recordings
- Typing logs
- Walking sensor data
Only encrypted summaries should be synced to the cloud.
- Flutter
- Dart
- Material UI
- FastAPI
- Python
- Pydantic
- Supabase
- Python
- Librosa
- NumPy
- SciPy
- llama-cpp-python concept
- SQLite
- Supabase / PostgreSQL
Sapience-AI/
├── backend/
│ └── FastAPI backend
├── flutter_app/
│ └── Flutter frontend app
├── local_ai/
│ └── Local AI and vocal analysis
├── database/
│ └── SQLite and Supabase schemas
├── docs/
│ └── Project documentation
├── README.md
└── .gitignore
Go to the Flutter app folder:
cd flutter_appInstall dependencies:
flutter pub getRun the app:
flutter runFor Chrome:
flutter run -d chromeGo to the backend folder:
cd backendCreate a virtual environment:
py -3.11 -m venv .venvActivate the environment:
.\.venv\Scripts\activateInstall dependencies:
python -m pip install -r requirements.txtRun the FastAPI server:
python -m uvicorn app.main:app --reloadOpen in browser:
http://127.0.0.1:8000/health
| Method | Endpoint | Description |
|---|---|---|
| GET | /health |
Backend health check |
| POST | /register |
User registration |
| POST | /login |
User login |
| POST | /sync-report |
Sync encrypted wellness report |
The local AI engine is designed to process sensitive data on the user's device.
Current AI-related components:
- Voice analysis module
- Fundamental frequency analysis
- Jitter calculation
- Stability score generation
- Local LLM advice generation concept
Sapience AI follows a privacy-first approach.
- Raw audio is not uploaded to cloud
- Raw typing data is not uploaded to cloud
- Raw walking sensor data is not uploaded to cloud
- Only encrypted summaries should be synced
Sapience AI is not a medical diagnosis app.
It does not diagnose diseases or medical conditions. It only provides general wellness insights. If unusual results continue for several days, users should consult a qualified doctor.
- Connect Flutter frontend with FastAPI backend
- Add real microphone data collection
- Add accelerometer-based gait analysis
- Add real typing rhythm tracking
- Connect Supabase authentication
- Improve local AI model
- Add encrypted report syncing
- Add dashboard analytics
Completed:
- Flutter UI prototype
- FastAPI backend
- Local AI architecture
- Database schemas
- Documentation
- GitHub repository setup
Created by Fokrul.