Skip to content

Case studyML prototype · Flask

AI Integration Feasibility Analyzer: should this business adopt AI yet, and why

A prototype built around one question: would AI help this business at its current stage? It takes 11 signals about the business, among them its type, data availability, revenue, workforce skill, integration cost and potential improvement, and returns a yes or no with the reasons behind it.

PrototypeTrained on a synthetic dataset of 1,000 businesses, so its verdicts are not advice for real ones.

AI Integration FeasibilityPrototypescikit-learn · SHAPBusiness signals11 INPUTSBusiness typeRetailData availabilityHighAnnual revenueWorkforce skillIntegration costMediumPotential improvement0.42AnalyzeVERDICTReady for AIGradient boosting, explained with SHAPWhat pushed the verdictPotential improvementData availabilityWorkforce skillIntegration costAnnual revenueBusiness typePushes to yesPushes to no

Every verdict comes with the signals that drove it

Illustrative

The project at a glance

Client
AI Integration Feasibility AnalyzerAn applied-ML prototype built solo by our founder
Sector
AI adoption
Location
India
Platform
Machine-learning model behind a Flask web form
When
November 2024

The challenge

Should this business invest in AI yet, and which of its numbers decide that?

Our approach

How we approached it

  1. Prepare

    Encode and scale

    Categories are label-encoded and numbers standardised, then saved with joblib so the app reuses exactly the same steps.

    Sign-off: Saved with joblib for the app

  2. Model

    Gradient boosting

    A scikit-learn gradient-boosting classifier, checked on an 80/20 hold-out with a confusion matrix and an ROC curve.

    Sign-off: Checked on a 20% hold-out

  3. Explain

    Show the reasons

    SHAP values show how far each signal pushed a verdict, and a Flask form returns the verdict from its /predict route.

    Sign-off: Each verdict shows its SHAP reasons

The build

What we built

  • The model

    A gradient-boosting classifier over 11 business signals

  • Explained verdicts

    SHAP explanations for every verdict

  • Ready to serve

    Encoding and scaling saved with joblib for serving

  • A simple form

    A Flask form that returns the verdict

Stack

Built with

Tools we have used on client builds. We choose per project; no partner status is implied.

  • AI and data

    • Python
    • pandas
    • NumPy
    • scikit-learn
    • SHAP
    • joblib
    • matplotlib
    • seaborn
    • Google Colab
  • Back end and data

    • Flask

CreditsBuilt solo by our founder Shuja Ur Rahman in November 2024: the data, the model and the Flask app.

Start here

Three simple steps to get started

Tell us your problem in your own words. You do not need to know anything technical. If we are not the right fit, we say so in our first reply.

  1. Today

    Tell us the problem

    Fill in a short form or message us on WhatsApp. Plain words are fine.

  2. Within 1 business day

    A named lead replies

    With questions, or a time to talk it through on a call.

  3. Within 48 hours

    A fixed plan and price

    What we will build, by when, and what it costs. Then you decide.