Resources about Artificial Intelligence

--

Over the years I read and saved a lot of articles about AI. Following a course at the Scottish Digital Academy recently about AI in Government, I have even more. So sharing back here.

little white robot
Photo by Franck V. on Unsplash

What’s AI?

AI is a collection of different technologies. When they come together, they enable a machine to sense, comprehend, act, and learn with what seems like human levels of intelligence.

There are 2 main characteristics:

Autonomy: ability to perform tasks in complex environments without constant guidance by a user

Adaptivity: ability to improve performance by learning from experience

More definitions of sub parts of AI

  • Machine learning: find patterns in data
  • Voice recognition: recognition and translation of spoken language into text by computers. Older people usually like apps based on this, it feels more natural to them than using a phone or an app
  • Chatbot: computer program or an artificial intelligence which conducts a conversation via auditory or textual methods
  • Natural Language Processing: processing and analysing large amounts of natural language data.
  • Intelligence Agents: an autonomous entity which acts, directing its activity towards achieving goals (i.e. it is an agent), upon an environment using observation through sensors and consequent actuators
  • Robotic Process Automation (RPA): a computer mimicking human actions to complete a process without human intervention. This often involves using software to capture and manipulate data from other computer programs, according to pre-set rules. It is used to automate workflows consisting of highly repeatable tasks where data will conform to predefined characteristics.

Different ways the UK Government is using AI

Innovation in the UK Government — Youtube video
Demonstrating the benefits of Artificial Intelligence in Government with the Rubik’s Cube — Youtube video

An AI needs to reliably beat the average human. It might not do it the same way a human would do it though.

What AI can do

  • analyse more and more data
  • automate repetitive learning and discovering through data
  • add intelligence to existing data
  • adapt through progressive learning algorithm
  • achieve incredible accuracy
  • get the most out of the data
Putting data to good use — GDS video on Youtube

Data Ethics Framework (GOV.UK)

  • start with clear user need and public benefit
  • be aware of relevant legislation and codes of practice
  • use data that is proportionate to the user need
  • understand the limitations of the data
  • ensure robust practices and work within your skillset
  • make your work transparent and be accountable
  • embed data use responsibly

Chatbots

A computer program or an artificial intelligence which conducts a conversation via auditory or textual methods.

2 sorts:

  • Rule based: basic, know only about rules that have been pre-programmed
  • AI based: intelligent, learns from conversations using ML techniques. For this one, it implies: machine learning — learn from previous conversations — uses voice recognition if it’s voice bot rather than a chatbot, and natural language recognition to understand what the user is trying to convey

Some bot principles by Jenny Thai (FutureGov)

  1. set the scope of the bot and keep it simple (most important — scope can change!)
  2. it should always introduce itself -with a personality — and be clear it’s not a person
  3. always suggest the next step
  4. respect and use the medium of chat
  5. provide an escape route
  6. track, measure and iterate
  7. always respond and be supportive

More on this:

Work done on Waste Permits for Newcastle City Council. The service used to be paper based, you would apply and receive the permit via mail. A lot of users were unaware and would end up on site with a van full of garbage and the workers would have to deal with very confrontational situations. I wrote about this previously for the Service Design in Government conference and the slides of the talk are available here

Machine Learning (ML)

Supervised, unsupervised and reinforcement Machine Learning basically are a description of ways in which you can let machines or algorithms loose on a data set. The machines would also be expected to learn something useful out of the process. — Ronald van Loon

Supervised learning

Enable computers to learn from labelled training data without being programmed to.

The two parts of supervised learning are:

  • Classification: assign a label to training data
  • Regression: predict a continuous value for predictive analysis and modelling

The process:

  • you start with a question
  • collect the training data
  • split the data between training and testing data
  • train the machine learning algorithm with sufficient and accurate data
  • test the machine learning algorithm using the test data
  • collect feedback
  • use the feedback
  • iterate

The government has used it to tag its content (GDS), it was done manually initially and then machine learning was used. More on the Taxonomy principles

supervised learning diagram
Image from Ronald van Loon

Unsupervised learning

There are no labels or correct outputs. The task is to discover the structure of the data: for example, grouping similar items to form ‘’clusters’’, or reducing the data to a small number of importance ‘’dimensions’’, also data visualisation.

We find patterns that we didn’t know existed

unsupervised learning diagram
Image from Ronald van Loon

Reinforcement learning

Commonly used in situations where an AI agent like a self-driving car must operate in an environment and where feedback about good or bad choices is available with some delay. Also used in games where the feedback may become available only at the end of the game

reinforcement learning diagram
Image from Ronald van Loon

More on Machine Learning

Deep Learning

Training a machine to show a human behaviour.

Several ‘’layers’’ of simple processing units are connected in a network so that the input to the system is passed through each one of them in turn.

The Department of Transport (DfT) is the Thurrock Council to detect potholes. The pothole-spotter system, which will be mounted to refuse collection vehicles, consists of high-definition cameras which will take high quality pictures of roads and pavements.

An integrated navigation system and intelligent software will build up an image library and help officers identify problems before they become potholes.

Natural Language Processing (NLP)

It can be used to extract data. NHS do that a lot to improve their search and content.

How it works:

The Basics of Natural Language Processing (By SparkCognition) — Youtube video

An example is Amelia the chat bot used by Enfield Council. A sentiment analysis has been added, so the answers will be adapted depending on the interpretation of the mood of the customer (upset, unsure, etc..)

More on this

Robotic Process Automation (RPA)

Automation can perform repetitive tasks. This allows staff to spend more on professionally rewarding work, such as customer service. Well done, RPA can improve organisational cohesion and the personal satisfaction of employees. The video below is an example of use of RPA in banking.

Deloitte Cognitive Automation Banking — Youtube video

Things to keep in mind

The result you will get from your data set is only as good as your data is.

  • you can introduce biases or have insufficient data
  • GDPR: get the right data and make sure you’re allowed to use it and keep it
  • data can become corrupted and can restrict diversity
  • you might not have the right data or enough data
  • always balance the accuracy of the algorithm with the fairness of results
  • define the level of accuracy which will define success

--

--