An AI-powered portal that automates vendor invoice processing using Machine Learning — predicting freight costs and flagging suspicious invoices in real time.
| # | Objective |
|---|---|
| 01 | Predict accurate freight costs using shipment quantity and dollar values to eliminate manual estimation errors |
| 02 | Automatically detect and flag suspicious vendor invoices using a Random Forest classifier trained on historical billing patterns |
| 03 | Reduce invoice processing time and financial risk by providing real-time AI-driven insights to procurement and finance teams |
-
🚚 Freight Cost Predictor
- Input:
Dollars - Output: Estimated freight cost in dollars
- Best model auto-selected from Linear Regression, Decision Tree, and Random Forest
- Input:
-
🚩 Invoice Flag Detector
- Input: 7 invoice features
- Output:
CLEAR ✅orFLAGGED 🚩 - Model: Random Forest Classifier
| Detail | Info |
|---|---|
| Algorithms Trained | Linear Regression, Decision Tree, Random Forest |
| Selection Criteria | Lowest MAE (Mean Absolute Error) |
| Input Features | Quantity, Dollars |
| Output | Predicted Freight Cost ($) |
| Saved Model | models/predict_fright_model.pkl |
| Detail | Info |
|---|---|
| Algorithm | Random Forest Classifier |
| Input Features | invoice_quantity, invoice_dollars, Freight, total_item_quantity, total_item_dollars, total_brands, days_PO_to_invoice |
| Output | 0 = Clear, 1 = Flagged |
| Saved Model | models/predict_flag_invoice.pkl |
| Technology | Purpose |
|---|---|
| Python 3.8+ | Core programming language |
| Streamlit | Web app framework |
| Scikit-learn | Machine learning models |
| Pandas | Data manipulation |
| NumPy | Numerical computation |
| Joblib | Model serialization |
Vendor-Invoice-Intelligence-System/
│
├── app.py # Main Streamlit application
│
├── models/
│ ├── predict_fright_model.pkl # Trained freight cost model
│ ├── predict_flag_invoice.pkl # Trained invoice flag model
│ └── scaler.pkl # Feature scaler for invoice model
│
├── inference/
│ ├── predict_freight.py # Freight cost inference module
│ └── predict_invoice_flag.py # Invoice flag inference module
│
├── freight_cost_prediction/
│ ├── data_preprocessing.py # Data loading and feature prep
│ ├── model_evaluation.py # Model training and evaluation
│ └── train.py # Training pipeline
│
├── invoice_flagging/
│ ├── data_preprocessing.py # Invoice data loading and labeling
│ ├── model_evaluation.py # Classifier training and evaluation
│ └── train.py # Training pipeline
│
├── data/
│ └── inventory.db # Source database
│
├── Freight_Cost_predictor.png # App screenshot
├── Invoice_Flag_predictor.png # App screenshot
└── README.md # Project documentation
git clone https://github.com/imakash45/Vendor-Invoice-Intelligence-System.git
cd Vendor-Invoice-Intelligence-Systempip install streamlit scikit-learn pandas numpy joblibpython -m streamlit run app.pyhttp://localhost:8501
- Select Freight Cost Predictor from the sidebar
- Enter Dollars ($) — total invoice dollar value
- Click ⚡ Predict Freight Cost
- View the estimated freight cost instantly
- Select Invoice Flag Detector from the sidebar
- Enter all 7 invoice features:
- Invoice Quantity
- Invoice Dollars
- Freight
- Total Item Quantity
- Total Item Dollars
- Total Brands
- Days PO to Invoice
- Click 🔍 Analyze & Flag Invoice
- View result — CLEAR ✅ or FLAGGED 🚩
python freight_cost_prediction/train.pypython invoice_flagging/train.pyAkash Kumar
- GitHub: @imakash45
If you found this project helpful, please give it a ⭐ on GitHub!

