Skip to content

het0814/Fairlens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

53 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ FairLens – AI-Powered Hiring Solution

FairLens is a cloud-based AI platform designed to promote diversity, equity, and inclusion (DEI) in hiring. It uses advanced machine learning models and LLMs to analyze resumes, detect biases, and provide fair candidate shortlisting β€” all while respecting privacy through PII anonymization.

Home Page

🧠 Key Features

  • πŸ€– AI-Powered Resume Screening using LLMs
  • πŸ“Š Real-Time Diversity Dashboard (Dash-based UI)
  • πŸ”’ PII Anonymization for candidate data security
  • 🎯 Custom Diversity Goal Setup for companies
  • ☁️ Secure Cloud Infrastructure with AWS Cognito, S3, and DynamoDB
  • πŸ’Έ Cost-Optimized Resume Parsing using GPT-4o Mini (~$0.000075 per resume)

πŸ“Έ UI Screenshots

πŸ” Login Page

Login Page

🎯 Diversity Goal Setup

Diversity Goal Setup

🏠 Home Page

Home Page

πŸ“‹ Job and Resume Management Dashboard

Job and Resume Management Dashboard

πŸ“Š HR Analytics Dashboard

HR Analytics Dashboard

πŸ“ˆ Resume Analysis Based on Diversity Goals

Resume analysis according to diversity goal

🧠 Individual Resume Analysis (v1)

Individual Resume Analysis

🧠 Individual Resume Analysis (v2)

Individual Resume Analysis 2


πŸ›  Tech Stack

  • Languages: Python, HTML, CSS, JavaScript
  • Frameworks/Libraries: Flask, Dash, Pandas, Scikit-learn, XGBoost, SVR, LangChain
  • Cloud: AWS Cognito, S3, DynamoDB, Boto3
  • AI & ML: OpenAI GPT-4o Mini, Random Forest, XGBoost, SVR
  • DevOps & Deployment: Modular MVC structure, secure AWS hosting


☁️ AWS Cloud Architecture

FairLens is built on a robust, scalable, and secure AWS infrastructure that supports its data processing, storage, and authentication needs.

πŸ”§ AWS Services Used

Service Purpose
Amazon Cognito User authentication and identity management
Amazon S3 Scalable storage for resumes and static assets
Amazon DynamoDB NoSQL database for storing structured company and job data
AWS Boto3 SDK Python SDK for seamless interaction with AWS services

πŸ—ΊοΈ Architecture Diagram

AWS Cloud Architecture

This architecture ensures seamless integration, low-latency performance, and secure handling of sensitive candidate data.


πŸ—οΈ System Architecture

πŸ“¦ Project Structure

fairlens/
β”œβ”€β”€ app.py
β”œβ”€β”€ dashboard/               # Dash UI
β”œβ”€β”€ anonymizer/              # PII Anonymization logic
β”œβ”€β”€ resume_parser/           # Resume handling and ML logic
β”œβ”€β”€ auth/                    # AWS Cognito integration
β”œβ”€β”€ utils/                   # Helper modules
β”œβ”€β”€ static/                  # CSS/JS files
β”œβ”€β”€ templates/               # HTML templates
β”œβ”€β”€ requirements.txt
└── README.md

βš™οΈ Setup & Installation

πŸ” Replace Environment Variables

Update the following placeholders in your .env or config file:

OPENAI_API_KEY=β€œ<your-openai-api-key>”
COGNITO_REGION="us-east-1"
COGNITO_USER_POOL_ID="<your-user-pool-id>"
COGNITO_CLIENT_ID="<your-client-id>"
COGNITO_CLIENT_SECRET="<your-client-secret>"

πŸ“₯ Installation Steps

git clone https://github.com/<your-username>/fairlens.git
cd fairlens
pip install -r requirements.txt
python app.py

πŸ” How It Works

  1. Company Onboarding: Register your organization and set diversity goals.
  2. Resume Submission: Upload resumes and job descriptions.
  3. Resume Parsing & Anonymization: All resumes are anonymized before analysis.
  4. AI Shortlisting: Candidates are matched using LLMs + diversity-weighted scoring.
  5. Diversity Dashboard: Monitor team composition and hiring pipeline health.

πŸ“Š Dashboard & Analytics

  • Live DEI statistics by role, department, and funnel stage
  • Predictive analytics for attrition, gender ratio, and performance
  • AI-generated insights for recruitment policy improvements

πŸ“ˆ Machine Learning Models

Model Algorithm Purpose
Attrition Prediction XGBoost Predicts risk of employee attrition
Gender/Diversity Forecast Random Forest Tracks inclusion metrics over time
Team Performance SVR Evaluates team performance vs. size
Resume Screening LLM + LangChain Identifies top candidates & removes bias

🌐 Real-World Impact

  • βš–οΈ Reduced unconscious bias in screening
  • πŸ‘₯ Increased underrepresented hires (by skill match)
  • πŸ“‰ Cost reduced to ~$0.000075/resume using GPT-4o Mini
  • πŸ” PII anonymization ensures candidate privacy

πŸ§ͺ Empirical Study Basis

FairLens uses dynamic weighting logic based on:

  • Province-level diversity data (e.g., Statistics Canada)
  • User-defined hiring objectives
  • Bias detection heuristics & LLM transparency

For example:

If the average representation of women in Manitoba is 48% compared to the national 55%, the diversity weight for women will be: 55/48 = 1.15.


🚧 Future Roadmap

  • Integrate with LangChain agents for job-specific reasoning
  • Add feedback loops to fine-tune AI shortlisting
  • Expand to multilingual resume processing

🀝 Contributors

  • Hetkumar Dineshbhai Patel
  • Bhagyesh Jayeshbhai Patel
  • Parth Jigneshkumar Patel
    Supervisor: Prof. Kobra Khanmohammadi

πŸ“¬ Contact

For questions or demo access:


FairLens β€” Because every qualified candidate deserves a fair shot. 🌍


πŸ“¦ Requirements

Before running the project, install the required Python packages:

pip install -r requirements.txt

☁️ AWS Services Used

FairLens utilizes a suite of AWS cloud services to ensure scalability, security, and performance:

AWS Service Purpose
Amazon Cognito User authentication and profile management
Amazon DynamoDB Structured data storage (job roles, company info, etc.)
Amazon S3 Storage for resume documents and other unstructured data
AWS Boto3 SDK Python interface for communication with AWS services

πŸ” End-to-End Flow Diagram

+------------------+
| Company Registers |
+--------+---------+
         |
         v
+------------------------+
| Set Diversity Goals    |
+--------+---------------+
         |
         v
+------------------------+
| Create Job Description |
+--------+---------------+
         |
         v
+------------------------+
| Upload Resumes         |
+--------+---------------+
         |
         v
+------------------------------+
| Resume Parsing & Anonymizer |
+--------+---------------------+
         |
         v
+------------------------------+
| AI Screening (LLMs + ML)     |
+--------+---------------------+
         |
         v
+------------------------------+
| Candidate Shortlist          |
+--------+---------------------+
         |
         v
+------------------------------+
| Diversity Dashboard & Report |
+------------------------------+

FairLens empowers organizations to make informed hiring decisions with transparency and accountability, combining fairness and performance at every step.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors