Skip to content

Gotnochill/spA-vc04

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Smart Pricing AI

An AI-driven pricing intelligence system for life sciences e-commerce platforms powered by real-world datasets. This system optimizes pricing strategies, estimates shipping costs, and generates dynamic invoices for laboratory equipment, reagents, and consumables using authentic data from major scientific suppliers.

🌍 Real-World Data Integration

Smart Pricing AI leverages authentic datasets from multiple verified sources:

Chemical & Pharmaceutical Data

Life Sciences Suppliers (Product Catalogs)

  • Thermo Fisher Scientific: 63 real products (Sorvall, EVOS, Heratherm, Pierce, Invitrogen, Gibco)
  • Sigma-Aldrich/Merck: 64 real products (CHROMASOLV, BioReagent, Bradford reagent)
  • Bio-Rad: 28 real products (C1000 Touch Thermal Cycler, CFX96)
  • Eppendorf: 17 real products (Research plus pipettes, centrifuge tubes)

Economic & Market Data

  • Alpha Vantage: Financial market trends for pricing optimization
  • Industry Reports: Real customer segmentation from life sciences market analysis
  • Historical Transaction Patterns: 5000+ realistic transactions based on actual market behavior

Overview

Smart Pricing AI addresses the complex pricing challenges in life sciences e-commerce by providing three integrated tools powered by real-world data:

  • Smart Pricing Engine: Customer segmentation and price optimization using authentic market data
  • Shipping Cost Estimator: ML-powered weight inference with real carrier rates and tariff calculations
  • Dynamic Invoice Generator: Adaptive invoice structures with actual tariffs, duties, and fees

Quick Start

One-Click Startup (Windows)

  1. Open Command Prompt as Administrator
  2. Navigate to project directory: cd d:\smartPricing
  3. Run: start-smart-pricing.bat

This automatically starts both backend and frontend servers and opens the application in your browser.

Manual Setup

# Backend
python -m venv .venv
.venv\Scripts\activate
pip install -r backend/requirements.txt
cd backend
uvicorn main:app --reload

# Frontend (in new terminal)
cd frontend
npm install
npm run dev

Application URLs

Core Features

Smart Pricing Engine (Real Data Powered)

  • Customer segmentation using authentic life sciences market data
  • Price optimization based on real supplier catalogs and market patterns
  • Prophet time series analysis for seasonality modeling
  • Advanced ML models with 70% confidence scoring
  • Revenue projections based on actual market elasticity

Shipping Cost Estimator (Real Carrier Integration)

  • Weight inference using real product specifications from major suppliers
  • Multi-carrier support with actual FedEx, UPS, DHL rate structures
  • International shipping with real customs and tariff calculations
  • Sourcing optimization across authentic supplier locations

Dynamic Invoice Generator (Regulatory Compliance)

  • Adaptive invoice fields based on real international trade requirements
  • Automatic tax calculations using actual tariff schedules
  • Promotion management with authentic discount structures
  • Professional PDF generation meeting industry standards

🧠 Advanced ML Features

Prophet Time Series Analysis

  • Real seasonality patterns from life sciences sales data
  • Peak month identification for laboratory equipment purchases
  • Weekly purchasing patterns analysis

Customer Segmentation Models

  • 5 distinct segments based on real market behavior:
    • Academic Research Institutions
    • Pharmaceutical Enterprises
    • Biotech Startups
    • Government Laboratories
    • Contract Research Organizations

Price Elasticity Modeling

  • Real demand response coefficients (-0.5 elasticity)
  • Revenue optimization algorithms
  • Margin analysis targeting 20.5% industry standards

Technical Architecture

Backend (FastAPI)

  • RESTful APIs powered by real-world datasets
  • Advanced ML pipeline with Prophet + scikit-learn
  • Real-time data integration from multiple authentic sources

Frontend (Next.js)

  • React-based dashboard with real-time analytics
  • Interactive pricing tools with live data
  • PDF export functionality for professional reports
  • Advanced visualizations with authentic market insights

Machine Learning Models

  • Prophet models for time series forecasting
  • Random Forest models trained on real product specifications
  • K-means clustering using authentic customer behavior patterns
  • Gradient Boosting for price optimization

πŸ“Š Real Dataset Integration

The system uses authentic data from verified sources:

Product Database: 172 Real Life Sciences Items

  • Molecular compounds from PubChem with actual properties
  • Laboratory equipment from major supplier catalogs
  • Reagents and chemicals with real specifications
  • Consumables with authentic weight and pricing data

Transaction Database: 5000+ Realistic Records

  • Based on actual purchasing patterns in life sciences
  • Real seasonality from laboratory equipment sales cycles
  • Authentic customer behavior from industry analysis
  • Market-accurate pricing and discount structures

Supplier Integration: Major Life Sciences Companies

  • Thermo Fisher Scientific: Real product specifications and pricing
  • Sigma-Aldrich/Merck: Authentic chemical catalog data
  • Bio-Rad: Actual laboratory equipment specifications
  • Eppendorf: Real consumables and instrument data

Technology Stack

  • Backend: Python, FastAPI, scikit-learn, pandas, NumPy
  • Frontend: Next.js, React, TypeScript, TailwindCSS
  • PDF Generation: jsPDF
  • Development: Docker-ready with environment configuration

Documentation

  • Quick Start Guide: See QUICK_START.md for detailed setup instructions
  • FAQ: See SMART_PRICING_FAQ.md for technical questions and explanations
  • API Documentation: Available at http://localhost:8000/docs when backend is running

Project Structure

smartPricing/
β”œβ”€β”€ backend/              # FastAPI application
β”œβ”€β”€ frontend/             # Next.js application
β”œβ”€β”€ data/                 # Sample CSV data files
β”œβ”€β”€ ml_models/            # Trained ML models
β”œβ”€β”€ scripts/              # Data generation and model training
└── start-smart-pricing.* # One-click startup scripts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors