Inventory optimisation using AI made simple

Inventory optimisation is a classic use case for AI. Machine learning techniques can analyse your existing sales data to forecast demand on a SKU by SKU basis. This forecast information can then help you deploy inventory optimisation techniques to reduce stock outs whilst minimising working capital.

Step 1: Gather Your Data Start by consolidating your sales and inventory data. Most SMEs maintain this in spreadsheets or basic accounting software. Export this data into a CSV file. This file should ideally have columns like ‘Product Name’, ‘Date Sold’, ‘Quantity Sold’, and ‘Stock Remaining’.

Step 2: Choose an Easy-to-use AI Tool such as Google’s AutoML Tables – see below for instructions. It allows you to upload CSV files and automatically builds machine learning models for you.

Step 3: Upload Your CSV File Go to the chosen platform (e.g., AutoML Tables) and follow the prompts to upload your CSV file. Typically, this involves:

  • Creating a new project.
  • Clicking on an ‘Upload’ button.
  • Selecting your CSV file.

Step 4: Generate Insights Once uploaded, the platform will guide you through analyzing the data:

  • Forecasting: The tool can predict future sales based on past trends. For instance, if ‘Nature’s Delight’ tea sales spike every December, it will forecast a similar spike this coming December.
  • Anomaly Detection: It identifies unusual patterns. If there’s a sudden drop in sales of a particular product, it will highlight it, prompting you to investigate further.

Step 5: Interpret Results Most of these platforms provide easy-to-understand graphical results:

  • Charts & Graphs: Visual representations of sales trends, stock levels, and predictions.
  • Recommendations: Some tools also offer actionable recommendations. For instance, if a particular tea flavor’s stock is predicted to run out faster than usual, the tool might suggest an earlier reorder.

Step 6: Act on Insights Based on the insights:

  • Adjust your inventory orders.
  • Consider promotions or discounts on overstocked items.
  • Investigate any anomalies in sales patterns.

Step 7: Regular Updates To keep insights fresh and relevant:

  • Update your CSV file monthly or quarterly.
  • Re-upload to the AI tool for new predictions and recommendations.

Using AutoML Tables for inventory optimisation: A Step-by-Step Guide

1. Setup & Access:

  • Google Cloud Account: Before you can use AutoML Tables, you’ll need a Google Cloud account. If you don’t have one, you can sign up and often get free credits to explore their services.
  • Access AutoML Tables: Once logged in to the Google Cloud Console, navigate to the Navigation Menu (hamburger icon in the top-left corner) > Artificial Intelligence > Tables.

2. Create a New Dataset:

  • Click on the + NEW DATASET button.
  • Name your dataset, something relevant to your data, like “Tea Sales Forecast.”

3. Import Your Data:

  • You’ll be prompted to import data. Here, you can upload your CSV file. This is the file that has your sales and inventory data.
  • Once uploaded, AutoML Tables will automatically detect column types (numeric, categorical, date/time).

4. Identify the Target Column:

  • After importing, choose the column you want the model to predict. For inventory forecasting, this might be something like ‘Quantity Sold’ for the next month.

5. Train the Model:

  • Once the target is set, click on the TRAIN button. This will instruct AutoML Tables to start analyzing your data and build a model.
  • Training can take a few hours, depending on the size of your dataset.

6. Evaluate the Model:

  • After training is complete, you’ll be taken to the “Evaluate” tab.
  • Here, you’ll see various metrics that indicate how well the model performed. For non-tech users, focus on the “Mean Absolute Error” (lower is better). It gives an average of how much the model’s predictions deviate from actual values.

7. Deploy & Predict:

  • Once satisfied with the model’s performance, navigate to the “Deploy” tab and deploy the model.
  • After deploying, go to the “Predict” tab. Here, you can input new data (in the form of a CSV) to get future predictions.

8. Act on Insights:

  • Based on the predictions and insights from the model, make informed decisions regarding inventory ordering, promotions, etc.

Tips for Simplifying the Process:

  • Data Cleanliness: Ensure your CSV file is clean. Remove any blank rows, ensure consistent data formats, and avoid special characters in column names.
  • Regularly Re-train: As you gather more data over months, periodically re-train your model. This ensures it stays accurate and relevant.
  • Use Google’s Resources: Google provides tutorials, documentation, and support to help you navigate AutoML Tables.

While this is a simplified guide, remember that machine learning and prediction are complex fields. The initial setup and understanding might take some time, but once you get a hang of it, the process becomes more straightforward. With tools like AutoML Tables, the goal is to make advanced analytics more accessible to businesses of all sizes.

Using ChatGPT for pre-mortems

A pre-mortem is a powerful business technique where you take a leap into a future where your project has failed and you discuss where it went wrong. It helps teams identify potential issues and develop solutions before the project has launched. It involves critical thinking and some degree of creativity. But it can also generate some insights that in extreme cases can stop you from working on your project any further. Using ChatGPT for pre-mortems is an very low cost method of doing this without the need to convene any management meetings

Using ChatGPT for Pre-mortems

ChatGPT-4, the latest iteration (as of April 2023) of OpenAI’s powerful language model, is an invaluable business asset that can help reduce project management disasters. By using the right prompts, project teams can simulate failures before a project has started and use the analysis to identify and proactively mitigate potential risks. This method not only saves time and resources but also fosters a wider business culture of proactive problem solving.

Example Pre-mortem Prompt 1 – Product launch

“Assume that our new product launch has been a failure. The product was designed to do x and we developed it because we thought it would sell profitably in the y market. List the top 5 reasons why this might have occurred and suggest ways to address each of these issues.”

Why this works: This prompt encourages ChatGPT-4 to analyze and generate potential reasons for failure, helping the team identify potential risks and their corresponding solutions. By addressing the top 5 reasons, the model provides a focused analysis, ensuring that the most critical aspects are considered. Additionally, the prompt asks for ways to address each issue, allowing teams to develop preemptive strategies for success.

You can also ask ChatGPT to rank the reasons for failure in terms of likelihood, cost impact and so on. Use your description of what the product does to give ChatGPT as much background information as you can. Ask it follow up questions too.

Example Pre-mortem Prompt 2 – Marketing campaign

Prompt: “Imagine our marketing campaign for our new product x failed to achieve the goals we set in terms of sales and customer engagement. Our marketing campaign consisted of social media promotion, geo-targeted Google Ads and local mailshots. Describe four possible flaws in our campaign strategy and provide recommendations on how to improve each of them.”

Why it works: This prompt targets a specific area of the project, the marketing campaign, and directs ChatGPT-4 to evaluate potential shortcomings. Asking for a specific number of possible flaws helps ChatGPT to provide ran analysis that will have four separate elements which you can then rank. The specific request for recommendations for improvement will accelerate the process of finding solutions and help ideation.

Both these examples focus on product launches which is an important business process but there are many other areas where pre-mortems are helpful. Let’s look at one about recruitment.

Example Pre-mortem 3 – Recruitment

Prompt: “Our recent hiring process resulted in a high employee turnover rate within the first six months. Identify four factors that might have contributed to this outcome and suggest improvements for each factor in our hiring process.”

Why it works: This prompt focuses in on the hiring process and its potential impact on employee retention. By asking ChatGPT-4 to explore four contributing factors, the model is encouraged to delve into various aspects of the hiring process that might have led to a high turnover rate. This comprehensive examination helps the HR team pinpoint areas in need of improvement. By requesting suggestions for each factor, the team can develop a more effective hiring strategy to ensure they attract and retain the right talent.

The cost of doing pre-mortems

A typical business pre-mortem involves a meeting of your project team and a lot of discussion which takes time and therefore costs money. Of course, it can also save a lot of money down the line if it results in actionable outcomes that boost the chances of the project’s success. Using ChatGPT and similar tools to do a pre-mortem takes a few minutes and whilst not necessarily as effective as a full-blown pre-mortem management meeting, it can deliver results extremely cheaply. These results may deliver actionable outcomes on their own but just as significantly, they can be used as a business accelerant by acting as briefing notes for your own pre-mortem. Don’t forget too that you can ask ChatGPT to regenerate its response to come up with more ideas and that you can ask it to explain more about any aspects of its answers.

Conclusion

By integrating ChatGPT-4 into pre-mortem exercises, businesses can unlock innovative and efficient ways to identify and address potential project failures for negligible cost. By formulating targeted and focused prompts, teams can extract valuable and actionable insights from the AI, which enables them to make better decisions and reduce implementation risks.

Pre-mortem action point

Managers should do pre-mortems using AI tools like ChatGPT-4 as a matter of habit. Using ChatGPT for pre-mortems should be as habitualised as using Google for search used to be.