18 - AI Flashcards

1
Q

dijkstras algorithm

A
  • method of finding shortest path between 2 points on a graph
  • based on cost between nodes
    uses - GPS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

dijkstras algorithm steps

A
  • give the start index a value of 0
  • give each vertex connected to the start a working value - if it already has one replace only if lower
  • repeat until end vertex is reached and all vertexes are assigned a final value
  • trace the route from the end to the start to find the shortest path
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A* algorithm

A
  • based on Dijkstra but adds a heuristic value (intelligent guess on how far we have to reach the destination directly)
  • finds shortest path from start node to destination node
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how to calculate heuristic

A

Manhattan method
- find the across and down distance
pythagorus method
- find the direct distance using pythag

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

applications of shortest path

A
  • GPS
  • google maps
  • modelling spread of disease
  • IP routing (packet switching)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

AI

A

a machine with cognitive abilities eg problem solving and learning
split into:
- narrow
- general
- strong

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

narrow AI

A

when a machine has superior performance to a human in one specific task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

general AI

A

when a machine has a similar performance to a human in any intellectual task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

strong AI

A

when a machine has superior performance to a human in many tasks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

examples of AI

A
  • news generation based on live news feed
  • smart home devices
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

machine learning

A

subset of AI
- algorithms are trained and learn from their past mistakes and examples
- is possible for the system to make predictions and even take decisions based on previous scenarios
- offer fast and accurate outcomes due to very powerful processing capability
- have ability to manage and analyse
considerable volumes of complex data (would take humans to long)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

machine learning eg search engine

A
  • user types criteria into engine which uses search bots to locate websites matching
  • user choses one of the websites on page 1 (classed as a success since relevant pages are on 1)
  • if user has to go to page 2, 3 or 4 (classed as failure since relevant pages not on 1)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

unlabelled data

A

data which is unidentified and needs to be recognised.
Some processing would need to be done before it can be recognised asa specific group

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

types of machine learning

A
  • supervised
  • unsupervised
  • reinforcement
  • semi-supervised (active)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

supervised learning

A

makes use of regression analysis and classification analysis - used to predict outcomes based on past data
- needs input + correct outputs to train
- uses labelled data so desired output is known
- once trained - run using labelled data
- results compared with correct output - if errors needs refinement
- once trained run with unlabelled data to predict the outcome

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

supervised learning eg

A

eg classifying emails as spam, identifying handwriting

17
Q

unsupervised learning

A
  • identify hidden patterns from input data
  • not trained using right answer
  • by making data more organised patterns become evident
    (uses density estimation and k-mean clustering to do so)
  • evaluate the data to find any hidden patterns or structures within the data set
18
Q

unsupervised learning eg

A

eg product marketing
- a group of individuals with similar purchasing behaviour are regarded as a single unit for promotions

19
Q

reinforcement learning

A
  • learns on reward and punishment - uses trial and error to determine which gives the optimal outcome
  • increase the efficiency of the system by making use of optimisation techniques
20
Q

reinforcement learning eg

A

search engines, online games, robotics

21
Q

semi supervised learning

A
  • makes use of labelled and unlabelled data to train algorithms that can interactively query the source data and produce the desired output
  • makes use of as much unlabelled data as possible (cheaper)
  • small amount of labelled data is used
22
Q

semi supervised learning eg

A

classification of web pages
- a web crawler is used to look at large amounts of unlabelled web pages (cheaper than manually annotating them)

23
Q

deep learning

A

subset of machine learning
structures algorithms in layers (input, hidden, output) to create and ANN that can learn and make intelligent decisions on its own
modelled on human brain

24
Q

reasons for using deep learning

A
  • identify patterns which would be too complex or time consuming for humans
  • recognise objects and make them become labelled data which can be used to train new systems
  • More precise and accurate - with more hidden layers
  • Uses unstructured data
  • Outperforms other methods if larger data size
25
Q

artificial neural networks

A
  • based on the human brain
  • Weights assigned to connections between nodes
  • Data input and passed into system
  • Analysed at each subsequent hidden layer where characteristics are extracted
  • Repeated to achieve optimum outputs
  • labelled data is used to make sure response is correct if not refined using back propagation
26
Q

reasons for multiple hidden layers

A

More layers means its weights are more fine-tuned - input nodes can be mapped more accurately to output nodes

27
Q

uses of deep learning

A

text mining
computer assisted translation
photograph enhancement
turning monochrome to colour
chatbots

28
Q

text mining

A
  • text is translated into digital format
  • then analysed
  • machine learning used to determine book genre
29
Q

computer assisted translation

A
  • uses terminology database - linguistic databases that grow and ‘learn’ from translations being carried out
  • uses translation memories - automatically insert known translations for certain words, phrases
30
Q

photograph enhancement

A

deep learning trained by comparing smartphone and DSLR photos
photo is enhanced to DSLR quality by deep learning
large number of photographs already taken by a DSLR camera (but not by the
smartphone) are then used to test the model

31
Q

turning monochrome photos into colour

A

deep learning can be used to give a very accurate coloured image
trained by searching websites for data which allows it to recognise features then map a colour to a photograph

32
Q

chatbots

A

interact through instant messaging, artificially replacing patterns of human interaction using ML
typed messages or voice recordings make use of predefined scripts and ML
when a question is asked, a chatbot responds using the information known at the time

33
Q

ML vs DL

A
  • ML enables machine to make decisions based on past data - DL uses an ANN
  • ML only needs a little data to train - DL needs lots
  • ML identifies most features in data in advance - DL learns features of data from the data itself
  • ML uses modular approach - DL solves as one entity
  • ML takes long to test - DL testing is short
  • ML has clear rules explaining why each models stage was made - DL makes decisions based in its own reasoning - hard to understand (black box)
34
Q

future

A

AI - detection of crimes before they happen, development of humanoid AI to carry out human tasks
ML - increased efficiency of health diagnostics, better marketing
DL - increased personalisation in areas eg individual cancer care, hyper intelligent personal assistants

35
Q

back propagation

A
  • initially random weightings
  • initial output compared with expected - weights adjusted to minimise difference
  • calculus used to find error gradient in outputs - results fed back into ANN and weightings adjusted
  • once errors in output eliminated the ANN is functioning correctly
  • if errors still large repeated
36
Q

types of back propagation

A

static
- maps static inputs to static input
- mapping is instantaneous
- training is easier
recurrent
- activation is fed forward until a fixed value is achieved
- not instantaneous mapping
- training is harder

37
Q

regression

A
  • way of analysing data before it is input into a system or model
  • used to make predictions from given data by learning some relationship between the input and the output
  • helps in the understanding
    of how the value of a dependent variable changes when the values of independent variables are also changed
  • used in prediction eg weather forecasting
  • in ML used to predict the outcome of an event based on any relationship between variables