Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Digital Behavioral Identity Platform (DBIP)

Who are you, really? Not your name. Not your age. Your behavior.

DBIP builds a dynamic digital identity for every user β€” not from boring surveys, but from how they actually behave. Every click, every preference, every micro-decision shapes who they are in the system. Companies can then use these identities to simulate real user responses before launching a product.


✨ What It Does

Feature Description
πŸ” Auth Register & login with JWT-secured sessions
πŸ–±οΈ Interactions Submit micro-interactions (category, price, brand, decision speed)
🧬 Identity Engine Rule-based engine computes your behavioral profile in real-time
πŸ“Š Dashboard Visualize your identity with radar charts and category bars
🏒 Simulation Companies input a product and see predicted Like / Neutral / Dislike across all users

🧬 How Identity Is Built

No ML. No black box. Pure logic β€” transparent and explainable.

Price Sensitivity  β†’  majority of price range choices (low = high sensitivity)
Brand Preference   β†’  majority of branded vs generic choices
Decision Style     β†’  avg decision time < 10s = Fast, > 20s = Slow
Category Interests β†’  top 3 most interacted categories

Every new interaction instantly updates the profile. Watch your identity evolve in real-time.


πŸš€ Getting Started

Backend (Flask, no database needed β€” runs fully in memory)

cd backend
pip install -r requirements.txt
python app.py
# API live at http://localhost:8000

Frontend (React + Vite)

cd frontend
npm install
npm run dev
# App live at http://localhost:5173

🎭 Demo Accounts

Four pre-loaded users with randomized interaction histories β€” ready to explore on first launch.

Email Password
alice@demo.com password123
bob@demo.com password123
carol@demo.com password123
dave@demo.com password123

πŸ—‚οΈ Project Structure

digital-behavioral-identity/
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ app.py                  # Flask entry point
β”‚   β”œβ”€β”€ store.py                # In-memory data store + demo seed
β”‚   β”œβ”€β”€ config.py               # JWT config
β”‚   β”œβ”€β”€ engine/
β”‚   β”‚   └── identity_engine.py  # Rule-based identity + simulation logic
β”‚   └── routes/
β”‚       β”œβ”€β”€ auth.py             # Register / Login / Me
β”‚       β”œβ”€β”€ interactions.py     # Record interactions
β”‚       β”œβ”€β”€ identity.py         # Fetch identity profile
β”‚       └── simulation.py       # Product simulation across users
└── frontend/
    └── src/
        β”œβ”€β”€ components/
        β”‚   β”œβ”€β”€ Auth/            # Login & Register UI
        β”‚   β”œβ”€β”€ Dashboard/       # Identity profile + charts
        β”‚   β”œβ”€β”€ Interactions/    # Micro-interaction form
        β”‚   └── Simulation/      # Company simulation panel
        └── api/client.js        # Axios instance with JWT interceptor

πŸ› οΈ Tech Stack

  • Frontend β€” React 18, React Router, Recharts, Axios
  • Backend β€” Python 3, Flask, PyJWT, bcrypt
  • Storage β€” In-memory (prototype) β€” no database required

πŸ’‘ Built For

Final year project demonstrating the concept of behavioral identity profiling β€” a privacy-conscious alternative to traditional user surveys, where identity emerges naturally from interaction patterns.


Made with curiosity 🧠

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages