Overview

AI is just another tool to help deliver services. 

Designing any service starts with identifying user needs. If you think AI can help you meet user needs, consider your data and the specific technology you want to use. 

When assessing if AI can help you meet users’ needs, consider if:

  • there’s data containing the information you need, even if disguised or buried
  • it’s ethical and safe to use the data - see the UK Government’s Data Ethics Framework
  • you have a large quantity of data for the model to learn from
  • the task is large scale and repetitive enough that a human would struggle to carry it out
  • it would provide information a team could use to achieve outcomes in the real world

AI is not an all-purpose solution. Unlike a human, AI cannot infer, and can only produce an output based on the data a team inputs to the model.

As with all technology projects, make sure you can change your mind at a later stage and you can adapt the technology as your understanding of user needs changes.

Working with the right skills to assess AI

When identifying whether AI is the right solution, work with:

  • specialists who have a good knowledge of your data and the problem you’re trying to solve, such as data scientists
  • at least one domain knowledge expert who knows the environment where you will be deploying the AI model results

Consider your current data state

For your AI model to work, it needs access to a large quantity of data. 

Work with specialists who know your data to assess your data state, such as data scientists. 

You can assess whether your data is high enough quality for AI using a combination of:

  • accuracy
  • completeness
  • uniqueness
  • timeliness
  • validity
  • sufficiency
  • relevancy
  • representativeness
  • consistency

If your problem involves supporting an ongoing business decision process, plan to establish ongoing, up-to-date access to data while following data protection laws.

Choosing AI technology for your challenge

There is no one ‘AI technology’. Currently, widely-available AI technologies are mostly either supervised, unsupervised, or reinforcement machine learning. 

The machine learning techniques that can provide you with the best insight depend on the problem you’re trying to solve.

Machine learning techniqueDescriptionExamples of machine learning technique
ClassificationLearns the characteristics of a given category, allowing the model to classify unknown data points into existing categories
  • deciding if a consignment of goods undergoes border inspection
  • deciding if an email is spam or not
RegressionPredicts a value for an unknown data point
  • predicting the market value of a house from information such as its size, location, or age
  • forecasting the concentrations of air pollutants in cities
ClusteringIdentifies groups of similar data points in a dataset
  • grouping retail customers to find subgroups with specific spending habits
  • clustering smart-meter data to identify groups of electrical appliances, and generate itemised electricity bills
Dimensionality Reduction or Manifold LearningNarrows down the data to the most relevant variables to make models more accurate, or make it possible to visualise the data
  • used by data scientists when evaluating and developing other types of machine learning algorithms
RankingTrains a model to rank new data based on previously-seen lists
  • returning pages by order of relevance when a user searches a website

Common applications of machine learning

You can buy or adapt commercially available products for some types of problems for which machine learning is commonly used.

Machine Learning ApplicationDescriptionExamples
Natural Language Processing (NLP)Processes and analyses natural language, recognising words, their meaning, context, and the narrative
  • Converting speech into text for automatic subtitles generation
  • Automatically generating a reply to a customer’s email
Computer VisionThe ability of a machine or program to emulate human vision
  • Identification of road signs for self-driving vehicles
  • Face recognition for automated passport controls
Anomaly DetectionFinds anomalous data points within a data set
  • Identifying fraudulent activity in a user’s bank account
Time-Series AnalysisUnderstanding how data varies over time to conduct forecasting and monitoring
  • Conducting budget analyses
  • Forecasting economic indicators
Recommender SystemsPredicts how a user will rate a given item to make new recommendations
  • Suggesting relevant pages on a website, given the articles a user has previously viewed

Getting approval to spend

It can be difficult to be specific about the benefits from an AI project because of its experimental and iterative nature. 

To explore this uncertainty and provide the right level of information around the potential benefits, you can:

  • carry out some initial analysis on your data to help you understand how hard the problem is and how likely the project’s success would be
  • build your business case around a small-scale proof of concept (PoC) and use its results to prove your hypothesis

Once you have secured budget, allow enough time and resources to conduct a discovery to show feasibility. 

Discovery for projects using AI can often takes longer for similar projects that do not use AI.

Deciding whether to build or buy

When assessing if AI could help you meet user needs, consider how you will procure the technology. 

Define your purchasing strategy in the same way as you would for any other technology. 

Whether you build, buy or reuse (or combine these approaches) will depend on different considerations, including:

  • if the needs you’re trying to meet are unique to your organisation or you could fulfil users’ needs with generic components
  • the maturity of commercially available products that meet those needs
  • how your product needs to integrate with your existing infrastructure

Address ethical concerns about the use of AI from the start of the procurement process.

Read the guidelines for AI procurement from GOV.UK.

Building your AI solution

Your team can build or adapt off-the-shelf AI models or open-source algorithms in-house.

When making this decision, you should work with data scientists to consider whether:

  • your team has the skills to build an AI project in-house
  • your operations team can run and maintain an in-house AI solution

Buying your AI solution

You may be able to buy your AI technology as an off-the-shelf product, especially if it’s a common application of AI like optical character recognition. 

Buying your AI technology is not always suitable as the specifics of your data and needs can mean the supplier needs to significantly customise an existing model or build it from scratch.

Your AI solution needs to be integrated into an end-to-end service for your users, even if you can buy significant components off the shelf.

Read the guidelines for AI procurement from GOV.UK.

Allocating responsibility and governance for AI projects

You must understand who is responsible if the system fails when using AI. The problem may lie in a number of areas, including failures with the: 

  • data chosen to train the model
  • design of the model
  • coding of the software, or its deployment

Establish a responsibility record which defines who is responsible for different areas of the AI. Consider if:

  • the models are achieving their purpose and business objectives
  • there is a clear accountability framework for models in production
  • there is a clear testing and monitoring framework in place
  • your team has reviewed and validated the code
  • the algorithms are robust, unbiased, fair and explainable
  • the project fits with how citizens and users expect their data to be used

Depending on your organisation’s maturity, you could set up a dedicated board, committee or forum to handle AI data and model governance.

Recording accountability

You can keep a central record of all AI technologies you use, including:

  • where AI is in use
  • what the AI is used for
  • who’s involved
  • how it’s assessed or checked
  • what other teams rely on the technology

Read the Algorithmic Transparency Recording Standard on GOV.UK.