How aishwaryaprabhu24/online-recruitment-fraud-detection works
FraudShield is a job-posting fraud detection application backed by an XGBoost prediction API. A user enters job details or pastes an advertisement, the frontend submits it to Flask, and the results page presents the prediction and risk indicators. The repository also contains an offline machine-learning workflow for preparing features, training and evaluating models, and analyzing feature importance. The interactive request path is shown from excerpts; offline workflow links are limited where source was not sampled.
Main entry points: processed Feature and model files · AnalyzeJob.jsx Job submission · Results.jsx Results view · App.jsx Page router
Components 18
Web interface
- Page router
app/frontend/src/App.jsx - Home page
app/frontend/src/pages/Home.jsx - Job submission
app/frontend/src/pages/AnalyzeJob.jsx - API client
app/frontend/src/services/api.js - Results view
app/frontend/src/pages/Results.jsx - Probability chart
app/frontend/src/pages/Results.jsx - Risk indicators
app/frontend/src/pages/Results.jsx
Prediction service
- Flask API
app/backend/app.py - Prediction pipeline
app/backend/predictor.py
Model development
- Data preparation
preprocessing.py - Feature engineering
feature_engineering.py - Model training
smote_training.py - Model selection
select_final_model.py - Model evaluation
final_evaluation.py - SHAP analysis
shap_analysis.py
Model artifacts
- Feature and model files
dataset/processed
Other components
- Job seeker
- Prediction API
Connections 20
- Job seeker → Home page: opens
app/frontend/src/pages/Home.jsx - Page router → Home page: routes to
app/frontend/src/App.jsx - Page router → Job submission: routes to
app/frontend/src/App.jsx - Page router → Results view: routes to
app/frontend/src/App.jsx - Home page → Job submission: navigates to
app/frontend/src/pages/Home.jsx - Job seeker → Job submission: enters job
app/frontend/src/pages/AnalyzeJob.jsx - Job submission → API client: submits
app/frontend/src/pages/AnalyzeJob.jsx - API client → Prediction API: POSTs prediction
app/frontend/src/services/api.js - Prediction API → Flask API: routes to
app/backend/app.py - Flask API → Prediction pipeline: calls prediction
app/backend/app.py - Prediction pipeline → Feature and model files: loads artifacts
- Job submission → Results view: stores result
- Results view → Probability chart: renders
app/frontend/src/pages/Results.jsx - Results view → Risk indicators: renders
app/frontend/src/pages/Results.jsx - Data preparation → Feature engineering: prepares data
- Feature engineering → Feature and model files: saves features
feature_engineering.py - Model training → Feature and model files: saves models
- Model selection → Feature and model files: selects model
- Model evaluation → Feature and model files: writes metrics
- SHAP analysis → Feature and model files: writes explanations
shap_analysis.py