WEBVTT
Kind: captions
Language: en-PL

00:00:00.310 --> 00:00:02.550
I am at the University of Western Australia (UWA).

00:00:02.550 --> 00:00:07.049
This is one of the most advanced
autonomous cars in the world, and that design

00:00:07.049 --> 00:00:11.130
should make it think I'm a banana
and run over me.

00:00:11.130 --> 00:00:17.310
Please don't try this at home.

00:00:17.310 --> 00:00:21.380
However, before I recover the value of the paid tuition by
committing insurance fraud,

00:00:21.380 --> 00:00:25.769
let's try to understand what's going on in the brain of
our autonomous bus.

00:00:25.769 --> 00:00:30.369
We have been working on autonomous vehicles for over 80 years
.

00:00:30.369 --> 00:00:35.271
In the early years, we had sensational
successes by placing magnetically charged

00:00:35.271 --> 00:00:38.950
metal spikes that the vehicle could use
for navigation.

00:00:38.950 --> 00:00:43.100
While this was a surprisingly well-performing solution,
especially considering the primitive

00:00:43.100 --> 00:00:46.620
level of computing technology at the time,
it is not scalable.

00:00:46.620 --> 00:00:51.680
In Australia alone, we have 800,000 kilometers of
roads, of which only 40%

00:00:51.680 --> 00:00:52.680
are paved.

00:00:52.680 --> 00:00:57.180
While this solution may get you from point A
to point B, it won't get you anywhere

00:00:57.180 --> 00:00:58.730
else.

00:00:58.730 --> 00:01:02.080
So we need something much more
scalable.  So

00:01:02.080 --> 00:01:03.380
maybe we should use GPS?

00:01:03.380 --> 00:01:07.369
While it's great for telling us
where we are, it's not particularly

00:01:07.369 --> 00:01:11.252
precise: you know your car is on the road,
but you don't know which

00:01:11.252 --> 00:01:12.252
part of it.

00:01:12.252 --> 00:01:16.630
We could collide with a bus traveling
in another lane.

00:01:16.630 --> 00:01:20.109
We already use
visual navigation when navigating the roads.

00:01:20.109 --> 00:01:24.810
We use it to stay in our lane,
avoid hitting a bus in front of us,

00:01:24.810 --> 00:01:27.850
and to warn about
road hazards by detecting road signs.

00:01:27.850 --> 00:01:31.560
Especially since cameras are becoming cheaper and cheaper.

00:01:31.560 --> 00:01:35.229
For this reason, most serious attempts to create
commercial autonomous cars

00:01:35.229 --> 00:01:38.969
use visible light and high-
resolution cameras.

00:01:38.969 --> 00:01:44.240
However, this requires us to understand how
digital image recognition works.

00:01:44.240 --> 00:01:49.420
Considering how easy it is for humans to notice
and identify objects, we often forget that this is a

00:01:49.420 --> 00:01:51.630
truly amazing achievement.

00:01:51.630 --> 00:01:55.759
Even within the entire animal kingdom, the human sense of
sight is particularly highly developed.

00:01:55.759 --> 00:02:00.539
There is a rather compelling theory that
our extremely complex brain evolved to

00:02:00.539 --> 00:02:02.310
process images.

00:02:02.310 --> 00:02:07.209
Individuals who could perceive subtle differences
in the shape and shade of edible and poisonous

00:02:07.209 --> 00:02:13.000
berries, or spot a lion lurking in the tall grass,
had a significant advantage

00:02:13.000 --> 00:02:18.500
and were able to pass on these genes to
future generations.

00:02:18.500 --> 00:02:22.989
According to this theory, science, literature, art,
and engineering – such useful

00:02:22.989 --> 00:02:27.920
areas of life – are unexpected byproducts of the
existence of a complex brain that

00:02:27.920 --> 00:02:29.290
evolved to process images.

00:02:29.290 --> 00:02:34.629
When we want to replicate human object identification capabilities
in computers, especially those with limited

00:02:34.629 --> 00:02:38.930
computing resources,
we encounter several challenges.

00:02:38.930 --> 00:02:43.870
To understand why, let's look at the example of
road sign identification.  They

00:02:43.870 --> 00:02:47.950
have very regular shapes, bright
and contrasting colors.

00:02:47.950 --> 00:02:52.000
They are also quite universal: if we
can recognize the signs in one country,

00:02:52.000 --> 00:02:55.129
we should have no problem doing so in others.

00:02:56.129 --> 00:03:01.370
This standardization is a result of the National Conference
on Street and Highway Safety (NCSHS)

00:03:01.370 --> 00:03:06.510
in 1924, which laid the foundation for the design of
traffic signs and continues to influence the

00:03:06.510 --> 00:03:07.840
road landscape around us.

00:03:07.840 --> 00:03:12.440
Apparently, this committee was very afraid of sharp
objects, because they decided to create a

00:03:12.440 --> 00:03:16.730
system based on shape – warnings for
more dangerous threats

00:03:16.730 --> 00:03:18.799
have more corners.

00:03:18.799 --> 00:03:22.990
Pedestrian warnings – not that important, let’s
make them triangular, with three corners.

00:03:22.990 --> 00:03:25.650
Speed ​​limit – a little more important,
let’s say four.

00:03:25.650 --> 00:03:28.469
Stop sign, oh man, eight sides.

00:03:28.469 --> 00:03:33.069
The committee decided that a level crossing is the most
dangerous thing of all, hence this sign

00:03:33.069 --> 00:03:38.659
has not ten, not twenty, not even
50, but an infinity of corners: the shape we

00:03:38.659 --> 00:03:40.769
commonly call a circle.

00:03:40.769 --> 00:03:46.000
I'm in Australia, so one of the
most important signs to recognize

00:03:46.000 --> 00:03:48.000
are the warning signs:

00:03:47.000 --> 00:03:51.700
beware of passing kangaroos, cows,
short-tailed skinks, and snakes.

00:03:51.700 --> 00:03:56.370
Which of these animals would be most dangerous to collide with at
110 kilometers per hour

00:03:56.370 --> 00:03:57.370
?

00:03:57.370 --> 00:04:00.269
Regardless of which one you don't want
to hit, we want to make sure

00:04:00.269 --> 00:04:04.379
our car is able to recognize the sign
from a distance and

00:04:04.379 --> 00:04:05.950
react appropriately.

00:04:05.950 --> 00:04:09.060
How to make the computer recognize our sign?

00:04:09.060 --> 00:04:11.230
Here is one possible solution.

00:04:11.230 --> 00:04:12.230
Okay.

00:04:12.230 --> 00:04:16.949
It is a yellow square with a thick black border,
rotated 45 degrees, with the silhouette of a

00:04:16.949 --> 00:04:18.630
kangaroo in the center.

00:04:18.630 --> 00:04:22.400
Let's start with the border: four lines
intersecting at a 90-degree angle.

00:04:22.000 --> 00:04:23.500
But what is a line?

00:04:23.500 --> 00:04:25.000
Well, is she... simple?

00:04:25.000 --> 00:04:25.900
Excellent!

00:04:25.900 --> 00:04:30.510
But this doesn't help us write computer program code,
so we'll have to come up with some kind of

00:04:30.510 --> 00:04:31.810
algorithm.

00:04:31.810 --> 00:04:35.470
Let's look at the pixels and consider only those that
are black.

00:04:35.470 --> 00:04:38.220
Let's choose one of them and look
at its neighbors.

00:04:38.220 --> 00:04:39.690
Are any of them also black?

00:04:39.690 --> 00:04:42.090
No, okay, let's try another one.

00:04:42.090 --> 00:04:43.610
What came out this time?

00:04:43.610 --> 00:04:48.240
Yes, great, so let's check the
neighboring pixels, are they also black?

00:04:48.240 --> 00:04:49.240
Excellent!

00:04:49.240 --> 00:04:50.370
Let's check the neighbors again.

00:04:50.370 --> 00:04:51.800
And their neighbors again.

00:04:51.800 --> 00:04:52.800
And the next.

00:04:52.800 --> 00:04:53.850
And more.

00:04:53.850 --> 00:04:55.880
Now let's connect their coordinates.

00:04:55.880 --> 00:04:57.800
Is the slope relatively even?

00:04:57.800 --> 00:05:00.610
Great – that means we found the line.

00:05:00.610 --> 00:05:04.259
Let's repeat this a few more times and if the drawn
lines create a shape similar to a diamond,

00:05:04.259 --> 00:05:07.980
we have found a road sign.

00:05:07.980 --> 00:05:11.630
Now that we have identified our square,
we need to check if it is actually a warning sign

00:05:11.630 --> 00:05:13.680
and not just a random crate on the side of the road.

00:05:13.680 --> 00:05:18.530
We will do this by taking the average RGB value
from inside our square and checking

00:05:18.530 --> 00:05:22.710
whether it is yellow or not, which will allow
us to determine whether it is a warning sign or the

00:05:22.710 --> 00:05:24.960
aforementioned box on the side of the road.

00:05:24.960 --> 00:05:28.319
Now we need to figure out what the
sign is warning us about.

00:05:28.319 --> 00:05:32.569
If they are kangaroos, we should slow down
and be especially careful.

00:05:32.569 --> 00:05:36.840
If, on the other hand, it warns us about a drop bear,
then the only appropriate reaction should be to

00:05:36.840 --> 00:05:40.669
roll up the windows and escape as quickly as possible.

00:05:40.669 --> 00:05:45.110
For such identification, we need an even
more advanced line detection algorithm

00:05:45.110 --> 00:05:48.770
and matrix transformation to take into account
that we can see the silhouette of a kangaroo from a certain

00:05:48.770 --> 00:05:50.979
angle.

00:05:50.979 --> 00:05:55.940
But not all kangaroo drawings look the
same – we need to have a database of existing designs.

00:05:55.940 --> 00:05:57.569
What if tree branches obscure the sign?

00:05:57.569 --> 00:06:01.949
This could completely distort the image:
we would have to accept the entire spectrum of

00:06:01.949 --> 00:06:05.430
kangaroo shapes and add a function
to remove branches from the photo.  You would have to

00:06:05.430 --> 00:06:09.349
do this for every sign,
pedestrian crossing, traffic light

00:06:09.349 --> 00:06:10.690
and road marking you know of.

00:06:10.690 --> 00:06:12.860
And a few more you might have forgotten about.  You

00:06:12.860 --> 00:06:17.200
can start to see how quickly
this becomes a very complex nightmare for a programmer.

00:06:17.200 --> 00:06:22.710
Instead of hiring a poorly paid, overworked, sleep-
deprived, caffeine-addicted engineering student

00:06:22.710 --> 00:06:27.169
to manually program it to recognize
every object your car might encounter,

00:06:27.169 --> 00:06:29.600
you can use a computer to do it for you.

00:06:29.600 --> 00:06:32.190
This is where broadly defined
machine learning comes into play.

00:06:32.190 --> 00:06:37.490
One approach is a neural network:
similar in operation to the neurons in the human brain.

00:06:37.490 --> 00:06:42.470
Instead of a set of
step-by-step instructions, a

00:06:42.470 --> 00:06:47.810
network of complex relationships between
inputs, analysis, and outputs is used.

00:06:47.810 --> 00:06:52.230
Here's how you can apply it to a
16-pixel image.

00:06:52.230 --> 00:06:56.270
We start with 16 neurons that track
the brightness of each

00:06:56.270 --> 00:06:57.960
pixel.

00:06:57.960 --> 00:07:02.120
These neurons then send their value to a
set of 20 more neurons, which compare their outputs

00:07:02.120 --> 00:07:04.669
and themselves produce an output based
on a specific rule.

00:07:04.669 --> 00:07:08.740
For example, this node can calculate the average
brightness of four adjacent pixels,

00:07:08.740 --> 00:07:11.840
ignoring the other inputs.

00:07:11.840 --> 00:07:15.400
The results of all 20 comparisons are sent
to the next layer of the neural network,

00:07:15.400 --> 00:07:18.400
which performs another round of comparisons.  The

00:07:18.400 --> 00:07:22.680
next layers continue to analyze the image,
until the last layer is called the output layer.

00:07:22.680 --> 00:07:26.379
At this point, the network "knows" that the input image
contained the letter A and returns "A"

00:07:26.379 --> 00:07:27.460
as the final result.

00:07:27.460 --> 00:07:31.970
Feeding a different image as input to the same
neural network would produce the output "B".

00:07:31.970 --> 00:07:37.360
While it may seem like magic, these complex behaviors
stem entirely from simple relationships.

00:07:37.360 --> 00:07:41.050
Unlike normal programming,
no one manually goes through the network

00:07:41.050 --> 00:07:43.380
and sets the weights of the neurons.  This

00:07:43.380 --> 00:07:46.650
is done by a special training program.

00:07:46.650 --> 00:07:52.550
Our network training set is essentially
pattern recognition on steroids.

00:07:52.550 --> 00:07:56.710
We will start with several hundred randomly arranged networks,
each with slightly different

00:07:56.710 --> 00:07:57.770
node weights.

00:07:57.770 --> 00:08:01.560
Of course, when we introduce sample images,
the results we get will be

00:08:01.560 --> 00:08:03.010
completely nonsensical.

00:08:03.010 --> 00:08:06.599
But some will be slightly less nonsensical
than others.

00:08:06.599 --> 00:08:10.569
These networks are the fittest of those
generated and, as in evolution,

00:08:10.569 --> 00:08:13.220
we allow them to combine to produce the next
generation of networks.

00:08:13.220 --> 00:08:17.770
We also introduce subtle random mutations
that can make the next generation

00:08:17.770 --> 00:08:20.699
even better than its parents...
or a complete failure.

00:08:20.699 --> 00:08:25.160
Then we take the ones that work really
well and combine them again to create the

00:08:25.160 --> 00:08:26.189
next generation.

00:08:26.189 --> 00:08:30.490
From them we select the best and combine them,
creating the next generation, and the next, and the next,

00:08:30.490 --> 00:08:31.949
and the next.

00:08:31.949 --> 00:08:36.490
Eventually, after hundreds or even thousands of generations
using enormous computing power,

00:08:36.490 --> 00:08:40.890
we obtain a network that performs well
almost always with almost all

00:08:40.890 --> 00:08:42.570
samples.

00:08:42.570 --> 00:08:46.850
During training, the network slowly begins
to identify the characteristics of

00:08:46.850 --> 00:08:49.890
each analyzed object.

00:08:49.890 --> 00:08:54.430
If you or I were describing a bus,
we would probably say it is bright yellow

00:08:54.430 --> 00:08:56.329
with lots of windows and a large side mirror.  The

00:08:56.329 --> 00:09:00.330
network differs in that it will sometimes identify features
that, while genuinely derived from the training data,

00:09:00.330 --> 00:09:05.050
are not necessarily reflected
in the real world.

00:09:05.050 --> 00:09:09.940
Here is one particularly dangerous
attack, created by an American team of researchers.

00:09:09.940 --> 00:09:14.380
They trained a neural network using
publicly available road sign databases.

00:09:14.380 --> 00:09:18.920
After several weeks of training, they were able to
correctly identify stop signs

00:09:18.920 --> 00:09:20.260
like this one.

00:09:20.260 --> 00:09:24.000
Then they glued white and black strips to the sign.

00:09:24.000 --> 00:09:28.640
You and I can still recognize it as a stop,
but the neural network the team created cannot.

00:09:28.640 --> 00:09:32.370
She was certain it was a 45 mph speed limit sign.


00:09:32.370 --> 00:09:36.420
If this neural network were controlling an
autonomous vehicle, it would drive

00:09:36.420 --> 00:09:38.070
through the intersection without stopping.

00:09:38.070 --> 00:09:43.290
Instead of recognizing the shape or letters
S T O P that you and I recognize as a

00:09:43.290 --> 00:09:47.750
stop sign, I think the neural network
was paying attention to something else.

00:09:47.750 --> 00:09:52.250
I think that since the number 4 always has a
white area in the middle and the number

00:09:52.250 --> 00:09:56.010
5 has a sort of line at the bottom, she
noticed these features and, knowing that

00:09:56.010 --> 00:10:01.870
they only appear in the context of the
45 limit sign, she decided to do so.

00:10:01.870 --> 00:10:06.660
This problem will always occur when we have
limited computing power and memory.

00:10:06.660 --> 00:10:10.730
If there is a complicated and a simple way
to identify a character, both performing equally well

00:10:10.730 --> 00:10:14.910
on the training set, then the
evolutionary mechanism of the algorithm will choose the

00:10:14.910 --> 00:10:17.750
simpler option.

00:10:17.750 --> 00:10:20.519
So what makes my blouse
so dangerous?

00:10:20.519 --> 00:10:26.300
Here's a presentation created by the folks at Google
working on Google Vision AI.

00:10:26.300 --> 00:10:30.329
Using it, they identify the object
in the photo and manage to correctly determine

00:10:30.329 --> 00:10:31.760
that it is a banana.

00:10:31.760 --> 00:10:34.470
And now they add a picture of a toaster to it.

00:10:34.470 --> 00:10:38.010
However, no simple photo of a toaster will
confuse Google as to what the object

00:10:38.010 --> 00:10:39.010
in the photo is.

00:10:39.010 --> 00:10:40.530
Oh no sir, they are much smarter.  Oh

00:10:40.530 --> 00:10:41.570
my!

00:10:41.570 --> 00:10:44.760
One hundred percent sure it's a toaster.

00:10:44.760 --> 00:10:46.910
But it doesn't even look like a toaster!

00:10:46.910 --> 00:10:48.820
What's going on here?

00:10:48.820 --> 00:10:53.279
This is what the classifier considers to be the pure
essence of "toasteriness".

00:10:53.279 --> 00:10:58.260
When the neural network sees this pattern, it ignores
everything else and simply looks for the toaster.  The

00:10:58.260 --> 00:11:02.480
Google team called these "adversarial patches,"
and they're surprisingly easy

00:11:02.480 --> 00:11:03.480
to create.  That's what

00:11:03.480 --> 00:11:05.260
I have on my T-shirt.

00:11:05.260 --> 00:11:07.330
The algorithm thinks it's a banana.

00:11:07.330 --> 00:11:12.570
As long as the camera can see it,
the algorithm should completely ignore me

00:11:12.570 --> 00:11:14.240
and potentially hit me.

00:11:14.240 --> 00:11:16.850
He thinks that all he does is
run over a banana.

00:11:16.850 --> 00:11:20.130
So let's test what happens
in the real world.

00:11:20.130 --> 00:11:22.180
What will the UWA bus do?

00:11:22.180 --> 00:11:26.620
I'm wearing the right shirt, the bus has the
wrong sensors, a few more meters

00:11:26.620 --> 00:11:28.459
and I'll become a banana pancake.

00:11:28.459 --> 00:11:30.480
Only the bus... stops.

00:11:30.480 --> 00:11:34.150
That's because, while the neural network may
have been tricked, a

00:11:34.150 --> 00:11:38.360
fail-safe system kicked in: infrared proximity sensors
stopped the vehicle when I got

00:11:38.360 --> 00:11:39.880
too close.

00:11:39.880 --> 00:11:43.770
No autonomous system should operate
without redundant detection systems.

00:11:43.770 --> 00:11:48.139
In addition to proximity sensors, we could also
use government databases

00:11:48.139 --> 00:11:51.630
containing the locations and types of all
road signs deployed in the country.

00:11:51.630 --> 00:11:55.510
We could then compare them with the results of
observations of the surroundings.

00:11:55.510 --> 00:11:59.329
Google also appears to be improving
Vision AI performance.

00:11:59.329 --> 00:12:03.329
Here is a Python program I wrote
using Google Vision AI.

00:12:03.329 --> 00:12:07.940
I take a photo and Google AI identifies
the best potential answers to the question of

00:12:07.940 --> 00:12:09.540
what's in the photo.

00:12:09.540 --> 00:12:14.620
Here we see that it correctly identified
the banana.

00:12:14.620 --> 00:12:18.020
Here we have some book.

00:12:18.020 --> 00:12:20.779
And finally, the toolkit.

00:12:20.779 --> 00:12:26.420
We expected the program to work correctly:
remember, Google AI was trained for precisely these kinds of

00:12:26.420 --> 00:12:27.420
tasks.

00:12:27.420 --> 00:12:32.620
I would like to know what happens
when I add one of the "adversarial patches" designed

00:12:32.620 --> 00:12:35.610
specifically to trick Google AI.

00:12:35.610 --> 00:12:41.510
We see that a banana is still a banana, a book
is still a book, and this

00:12:41.510 --> 00:12:44.910
toolkit is still a toolkit.

00:12:44.910 --> 00:12:48.540
Either Google lied to us when they said they were
able to fool their own AI

00:12:48.540 --> 00:12:54.019
or, more likely, the current version of AI
is better than the 2017 version

00:12:54.019 --> 00:12:56.089
described in the scientific paper.

00:12:56.089 --> 00:12:59.980
I think the same thing is happening here as in the
game of whack-a-mole: when research

00:12:59.980 --> 00:13:05.480
shows how to cheat the AI,
engineers behind the scenes

00:13:05.480 --> 00:13:07.420
quietly fix the problem.

00:13:07.420 --> 00:13:11.660
While this might help in the short term, I would
n't trust my life to an AI that

00:13:11.660 --> 00:13:15.560
may or may not stop at the next stop
until Google finds and corrects the

00:13:15.560 --> 00:13:16.560
error.

00:13:16.560 --> 00:13:21.780
To create truly safe autonomous vehicles,
they must not only reliably identify

00:13:21.780 --> 00:13:27.320
objects, but also understand how this data
fits into the broader context of the driving situation.

00:13:27.320 --> 00:13:31.320
As vehicles become increasingly intelligent
, where do we draw the line between the

00:13:31.320 --> 00:13:35.290
human passenger and the vehicle
becoming more and more like us?

00:13:35.290 --> 00:13:37.529
This was James Dingley from Atomic Frontier.

00:13:37.529 --> 00:13:39.230
Keep looking up!  (Keep Looking Up).

