Skip to content

Parth-Harmalkar/E.D.I

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– E.D.I. โ€” Enhanced Digital Intelligence

Social Vision Edition v2.0

E.D.I. (pronounced Edie) is a local-first, multi-modal social AI assistant that combines computer vision, speaker recognition, and a persistent relational memory system.

This project is not just a runtime application โ€” it builds a personal AI database over time, storing biometric encodings and long-term knowledge locally on disk.


โœจ Key Features

  • Real-time object detection using YOLOv8 (GPU / CUDA)
  • Face recognition without storing raw images
  • Voice authentication using speaker embeddings
  • Active speaker detection (vision + audio)
  • Persistent memory using a Neo4j-style knowledge graph
  • Fully local biometric storage (no cloud uploads)

๐Ÿง  Data Persistence Architecture (IMPORTANT)

E.D.I. continuously builds a structured โ€œbrainโ€ inside the data/ directory.
Understanding this layout is essential for backups, migrations, and privacy.

๐Ÿ“‚ Directory Structure

data/
โ”œโ”€โ”€ faces/
โ”‚   โ””โ”€โ”€ face_clusters.json
โ”œโ”€โ”€ voice/
โ”‚   โ””โ”€โ”€ voice_clusters.json
โ”œโ”€โ”€ memory/
โ”‚   โ””โ”€โ”€ knowledge_graph.json
โ””โ”€โ”€ temp/

๐Ÿง data/faces/face_clusters.json

Biometric Face Database

Stores numerical face encodings (no raw images)

Each person has a cluster of vectors captured from:

Front

Left

Right

Up

Down

Tracks quality and confidence scores to prevent learning blurry frames

Used for long-term identity recognition

๐ŸŽค data/voice/voice_clusters.json

Speaker Recognition Database

Stores 256-dimensional voice embeddings

Generated during vocal authorization

Allows identity recognition even when the user is off-camera

Used by the VoiceAuth module

๐Ÿง  data/memory/knowledge_graph.json

Persistent Relational Memory (Edieโ€™s โ€œSoulโ€)

Neo4j-style relational graph stored as JSON

Stores:

Facts (e.g., Parth โ†’ LIKES โ†’ Coffee)

Relationships (e.g., User โ†’ WORKS_ON โ†’ Project)

Episodic summaries of past interactions

Enables long-term personalization across sessions

โš ๏ธ Deleting this file resets Edieโ€™s personality and memory.

๐Ÿงช data/temp/

Temporary Runtime Storage

Used for:

Generated .wav files (Text-to-Speech)

Short-lived intermediate runtime data

Automatically cleared by the system

Safe to delete at any time

๐Ÿ› ๏ธ System Requirements Hardware NVIDIA GPU (recommended for YOLOv8)

CUDA-compatible drivers

Webcam and microphone

Software Python 3.10

Conda (recommended)

NVIDIA drivers + CUDA toolkit

๐Ÿ“ฆ requirements.txt (Version-Pinned) Due to compatibility issues between MediaPipe and NumPy 2.x, strict version pinning is required.

numpy==1.26.4
mediapipe==0.10.11
opencv-python==4.8.0.74
protobuf==3.20.3
ultralytics
google-generativeai
resemblyzer
face-recognition

โš ๏ธ Installing NumPy 2.x will crash MediaPipe.

๐Ÿš€ Installation & Setup

1๏ธโƒฃ Clone the Repository

git clone https://github.com/yourusername/EDI.git
cd EDI

2๏ธโƒฃ Create Conda Environment

conda create -n ai_lab python=3.10
conda activate ai_lab

3๏ธโƒฃ Install Dependencies

pip install -r requirements.txt

4๏ธโƒฃ Hardware Check Ensure NVIDIA drivers are installed and CUDA is available:

nvidia-smi

5๏ธโƒฃ Run E.D.I.

python main.py

๐ŸŽฎ First-Run Onboarding When E.D.I. detects a new person, it initiates identity calibration.

Face Scan

Captures five head orientations

Builds a face encoding cluster

Voice Authorization

Records a short authorization phrase

Generates a 256-dimensional speaker embedding

Knowledge Graph Initialization

Creates a persistent identity node

Links future memories and preferences

๐Ÿ”’ Privacy & Security Notice

This project stores biometric data locally on disk.

IMPORTANT

If you plan to publish your fork or make the repository public:

DO NOT commit the data/ directory

DO NOT commit .env files

Your face data, voice data, and memory graph should remain private.

๐Ÿ›ก๏ธ Recommended .gitignore

Virtual environments

.env .venv ai_lab/

Biometric & memory data

data/

Python cache

pycache/ *.pyc

OS files

.DS_Store Thumbs.db ๐Ÿงฉ Project Philosophy E.D.I. is designed as a stateful, embodied AI system, not a stateless chatbot. Its intelligence emerges over time through perception, memory, and interaction.

About

E.D.I. (Enhanced Digital Intelligence): A multi-modal Social AI Assistant powered by Gemini 2.5 Flash. Features GPU-accelerated object detection, biometric face/voice clusters, and a relational Knowledge Graph for persistent human recognition and long-term memory. ๐Ÿš€๐Ÿ‘๏ธ๐Ÿง 

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors